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
24b945867ef12f421181c0777c5cb8d07929a8e2
449d555969bfd7befe906877abab098c6e63a0e8
/1733/CH1/EX1.19/1_19.sce
77a294e0ad95c5e454ef91357b11154f38a83c5a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
423
sce
1_19.sce
//1.19 clc; T=1/50; V=32; Vp=0.63*V+0.5; C=0.4*10^-6; Ip=10*10^-6; Rmax=(V-Vp)/Ip; printf("Rmax=%.0f ohm", Rmax) Vv=3.5; Iv=10*10^-3; Rmin=(V-Vv)/Iv; printf("\nRmin=%.0f ohm", Rmin) R=T/(C*log(1/(1-0.63))); printf("\nR=%.0f ohm", R) disp('since the value of R is between Rmin and Rmax so the value is suitable') R4=50*10^-6/C; printf("\nR4=%.0f ohm", R4) R3=10^4/(0.63*V); printf("\nR3=%.0f ohm", R3)
0783d891cc9bd5f5e9644a4ce7733a5d08dcaa0a
449d555969bfd7befe906877abab098c6e63a0e8
/2252/CH19/EX19.5/Ex19_5.sce
c49bfb308f5321c53389bb3105bf9cac7e6b312a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
529
sce
Ex19_5.sce
//calculating shaft power V=100//voltage applied to series motor Ra=.22//armature resistance Rse=.13//series field resistance Rm=Ra+Rse//total resistance Ia=45//current in armature circuit Eb=V-Ia*Rm Pm=Eb*Ia//mechanical power developed Wc=750//iron and friction losses Psh=Pm-Wc mprintf("Shaft power=%f kW\n",Psh/1000) //calculating torque developed N=750//speed in rpm Ta=60*Pm/(2*%pi*N) mprintf("Total torque=%f N-m\n",Ta) //calculating shaft torque Tsh=60*Psh/(2*%pi*N) mprintf("Shaft torque=%f N-m",Tsh)
eb774eea25bda54cc154450ad9ba2f7ceb277fc9
449d555969bfd7befe906877abab098c6e63a0e8
/3161/CH8/EX8.2/Ex8_2.sce
b9feabfd0baa655c046e19861ecd896225db49f6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,146
sce
Ex8_2.sce
clc; //page 436 //problem 8.2 //Given frequency range fc - fm = 0.995MHz to fc + fm = 1.005Mhz //Double side message bandwidth is fM fM= (1.005 - 0.995)*10^6 / 2; disp('Message bandwidth is '+string(fM)+' Hz'); //The textbook contains a calculation error here. //The calculated fM in the textbook is 500kHz instead of 5kHz, //Following which all the solutions obtained here are erroneous. //Given input signal strength Si= 1mW //Let output signal strength be So //So=Si/2 Si= 10^(-3); So= Si/2; disp('Signal output strength is '+string(So)+' dB'); //Given Power Spectral Density n = 10^-9 W/Hz //Let output noise strength be No n= 10^-9; No= (n*fM)/2; disp('Output Noise Strength is '+string(No)+' dB'); //Let SNR at filter output be SNR SNR= So / No; disp('Output SNR of the DSB-SC wave is '+string(SNR)+' dB'); //By reduction of message signal Bandwidth the Output Noise strength changes //Let the new output noise strength, bandwidth and SNR be be No_new, fM_new and SNR_new respectively fM_new = 75/100*fM; No_new = n*fM_new/4; SNR_new = So / No_new; disp('Changed SNR is '+string(SNR_new)+' dB');
f5c70e3f215d402af4b0dc105cd3c932a15cc30b
449d555969bfd7befe906877abab098c6e63a0e8
/2840/CH8/EX8.3/ex8_3.sce
526a61e638d16f1ec90742ed97363222a1eb8a5b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
ex8_3.sce
clc; clear all; m = 9.1*1e-31; //Mass of electron in kg e = 1.6*1e-19; // Charge on electron in coulumb t = 3*1e-14; // Relaxation time in seconds n = 5.8*1e28; //Number of electrons in cubic meter rho =m/(n*t*e*e);//The resistivity of metal u = 1/(n*e*rho);//The mobility of electron disp('Ohm.meter',rho,'The resistivity of metal is'); disp('sqaure meter per volt.second',u,'The mobility of electron is'); //slight variation in ans than book.. checked in calculator also(Mistake in textbook)
9a0f6f2ab22938ae6d291c9b4e58dccccf947b5d
449d555969bfd7befe906877abab098c6e63a0e8
/2870/CH10/EX10.6/Ex10_6.sce
78640d962fcc9b5f8937340dece18f68d04a44b5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex10_6.sce
clc;clear; //Example 10.6 //given data P1=10; P2=500; P3=500; P4=15000; P5=P4; P6=4000; P7=P5; P8=P7; P9=P7; P10=P6; P11=P10; P12=P3; P13=10; //enthalpies at the various states and the pump work per unit mass of fluid flowing through them are h1=191.81; h2=192.30; h3=640.09; h4=643.92; h5=1087.4; h6=h5; h7=1101.2; h8=1089.8; h9=3583.1; h10=3155; h11=3679.9; h12=3014.8; h13=2335.7; wIin=0.49; wIIin=3.83; wIIIin=13.77; //calculations y=(h5-h4)/((h10-h6)+(h5-h4)); z=(1-y)*(h3-h2)/(h12-h2); h8=(1-y)*h5+(y*h7); qin=(h9-h8)+(1-y)*(h11-h10); qout=(1-y-z)*(h13-h1); nth=1-(qout/qin); disp(y,'fraction of steam extracted from closed feedwater'); disp(z,'fraction of steam extracted from open feedwater'); disp(nth,'thermal efficiency is')
fa4842947d963b4d037d8b3397ebef6585e5d7f9
993c10f7706af779d36ea4b5254792a34da554c1
/ann/practice/adaline/treina_adaline_momentum.sce
62dfd490acaccdb5dc45617df6a790710787c9c9
[]
no_license
francislz/college_codes
e1c113a29fcb704a243e5a942bf2c629157d315a
41bbefbe13135eb2654815aeb546a44462847b87
refs/heads/master
2022-01-29T11:15:15.597217
2018-11-01T22:40:13
2018-11-01T22:40:13
155,784,263
1
0
null
null
null
null
UTF-8
Scilab
false
false
1,363
sce
treina_adaline_momentum.sce
exec('adaline.sce',-1); function [W_atual, b_atual, VetorSEQ] = treina_adaline_momentum(W, b, X, yd, alfa, beta_, max_epocas, tol) N = size(X); N = N(2);//Recebe o numero de colunas de X SEQ = tol; //Inicializa o SEQ com o valor da tolerancia; epoca = 1; //Inicializa a epoca VetorSEQ = []; //Inicializa o VetorSEQ W_atual = W; W_anterior = W; b_atual = b; b_anterior = b; while (epoca <= max_epocas) & (SEQ >= tol), //Enquanto nao atingir a epoca maxima e o erro nao for minimo SEQ = 0; //Reseta a Soma dos Erros Quadraticos for i = 1:N //Ate o tamanho de N ajustar os pesos y = yadaline(W_atual, b_atual, X(:,i)); //Recebe o valor do perceptron para os pesos atuais erro = yd(i) - y; // Erro da diferenca das funcoes W_futuro = W_atual + (alfa*erro*X(:,i)') + (beta_ * (W_atual - W_anterior)); //Ajusta os pesos b_futuro = b_atual + (alfa*erro) + (beta_ * (b_atual - b_anterior)); //Ajusta o Bias W_anterior = W_atual; W_atual = W_futuro; b_anterior = b_atual; b_atual = b_futuro; SEQ = SEQ + erro^2; //Soma do Erro end VetorSEQ = [VetorSEQ SEQ]; //Concatena no final o valor dos erros Quadraticos epoca = epoca + 1; //Incrementa a epoca end endfunction
7c59022d26ee74b2453e63f7a1d9f8f862af6658
449d555969bfd7befe906877abab098c6e63a0e8
/1163/CH23/EX23.1/example_23_1.sce
651f034d35fef79cf0f16f94423ce1608b023fdc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
699
sce
example_23_1.sce
clear; clc; disp("--------------Example 23.1----------------") // display the example printf("In UNIX, the well-known ports are stored in a file called fetcfservices. Each line in this file gives\nthe name of the server and the well-known port number.The following shows the port for FTP. Note that FTP can use port 21 with either UDP or TCP.\n\n$grep ftp /etc/services\nftp 21/tcp\nftp 21/udp"); printf("\n\nSNMP uses two port numbers (161 and 162), each for a different purpose.\n\n$grep snmp /etc/services\nsnmp 161/tcp #Simple Net Mgmt Proto\nsnmp 161/udp #Simple Net Mgmt Proto\nsnmptrap 162/udp #Traps for SNMP");
c26ca28dfd000134fed39208a4dee5ae2560e79a
449d555969bfd7befe906877abab098c6e63a0e8
/1664/CH6/EX6.14/Ex6_14.sce
b93675d483150252d6444e40f9e06c463f5b0e64
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
290
sce
Ex6_14.sce
//Example No.6.14. //Page No.191. //To find interplanar distance. clc;clear; // (h,k,l) are the miller indices of the given lattice plane (212). h = 2; k = 1; l = 2; a = 2.04;//Lattice constant -[A]. d = (a/sqrt(h^2+k^2+l^2)); printf("\nThe interplanar distance is %.2f A",d);
545e3b26fae452c7fbb65b4323b7b6ae7eea5269
449d555969bfd7befe906877abab098c6e63a0e8
/2951/CH9/EX9.2.A/additional_ex_2.sce
8341d6473a9a1832b7e4ba7f41205bde075d2df7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
413
sce
additional_ex_2.sce
clc; clear; P_box1=0.25; //P(box1) P_box2=0.25; //P(box2) P_box3=0.25; //P(box3) P_box4=0.25; //P(box4) Pdef_1=0.05; //P(defective/box1) Pdef_2=0.3; //P(defective/box2) Pdef_3=0.10; //P(defective/box3) Pdef_4=0.20; //P(defective/box4) Pcomp_def=(P_box1*Pdef_1)+(P_box2*Pdef_2)+(P_box3*Pdef_3)+(P_box4*Pdef_4); //Theoram of total probability disp(Pcomp_def," P(component is defective)=");
c592de5c0741a2914bf3dc43eef338314936d0f3
449d555969bfd7befe906877abab098c6e63a0e8
/1332/CH14/EX14.7/14_7.sce
8744c763427bad68136f8e9f8fdacb8382ac5fac
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
247
sce
14_7.sce
//Example 14.7 //Gaussian Quadrature Formula //Page no. 463 clc;close;clear; deff('y=f(x)','y=cos(x)*log(x)') s=0; for i=0:2:2000 s=s+integrate('((-1)^(i/2))*(x^i)/factorial(i)*log(x)','x',0,1) end disp(s,'Till 1000 terms .... I =')
a0e84bdef8bf054c202e1c8aa022aa8fe5f712da
449d555969bfd7befe906877abab098c6e63a0e8
/374/CH5/EX5.3.a/53a.sci
1d555b3536d17511d2f40faa371efce293a07846
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
564
sci
53a.sci
//chapter 5 example 3a// clc clear //threshold temperature=To,ratio of current densities=R,current density=Jth,curren density at 20 deg =J1,current density at 80deg=J2// //J1=Jth*(exp((273+20)/160))// //J2=Jth*(exp((273+80)/160))// K1=(exp((273+20)/160)); K2=(exp((273+80)/160)); R=K2/K1;//for AlGaAs// printf("\n ratio of current densities for AlGaAs=%f\n",R) //J1=Jth0*exp(273+20)/55/ //J2=Jtho(exp((273+80)/55// K1a=(exp((273+20)/55)); K2a=(exp((273+80)/55)); R1=K2a/K1a;//for AlGaAsp// printf("\n ratio of current densities for AlGaAsp=%f\n",R1)
256720963b61044f2ff22ea3a5efee36d4df64cc
f23cac45e0a1e3e9444fd3bb8e11d56a5be97cf8
/odeferm.sci
3e658dbf0c7bd1a3dfeea9f4733d6ed4799726b2
[]
no_license
paulaperdigaoram/YOGURT
4cd805bfb9a06630fba0d990ad7edbbf3786903b
fc95ba5408e085c91bca2a04084fc36b2ea39f95
refs/heads/master
2020-03-22T07:56:53.718648
2018-08-23T17:31:35
2018-08-23T17:31:35
139,734,779
0
0
null
null
null
null
UTF-8
Scilab
false
false
188
sci
odeferm.sci
function dxdt = odeferm(t,x) U = Umax*x(2)/(KS+x(2)) rX = U*x(1) rS = -rX/Y rP = (a*U+b)*x(1) dxdt(1) = rX dxdt(2) = rS dxdt(3) = rP endfunction
55fb4909d700c6355ed5005c4450bd07c312526e
449d555969bfd7befe906877abab098c6e63a0e8
/3020/CH18/EX18.1/ex18_1.sce
076fe5a2ac402f0e1eb2cb82aad0f800e0ed6a28
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
640
sce
ex18_1.sce
clc; clear all; T=300;//temperature in kelvin ue=0.4;//electon mobility in m^2/V*s uh=0.2;//hole mobility in m^2/V*s k=1.38e-23;//boltzman constant h=6.626e-34;//planks constant m0=9.1e-31; e = 1.6e-19; // Charge of an electron Eg=0.7; mh=0.37*m0; me=0.55*m0; r = ((2*%pi*k*T)/(h^2))^1.5;// Temporary variable s = exp((-Eg*e)/(k*T));// Temporary variable ni=2*((me*mh)^(3/4))*r*s disp('m^-3',ni,'the intrinsic consentration is:') rho = ni*e*(ue+uh);// Intrinsic Conductivity disp('1/(ohm.meter)',rho,'The intrinsic conductivity is') p = 1/rho; // Intrinsic resistivity disp('Ohm.meter',p,'The intrinsic resistivity is')
a6099876cca35002fa31176e3e9ac9827d75fed9
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set6/s_Electrical_Measurements_Measuring_Instruments_K._Shinghal_2318.zip/Electrical_Measurements_Measuring_Instruments_K._Shinghal_2318/CH5/EX5.3.a/ex_5_3_a.sce
9d7a64f04b45307ee0b6506ef6e42cee86645a05
[]
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
186
sce
ex_5_3_a.sce
errcatch(-1,"stop");mode(2);//Example 5.3.a: Logarithmic increment ; ; //given data : theta1=12.5; theta2=10; lamda=log(theta1/theta2); disp(lamda,"Logarithmic increment, = ") exit();
05689940edf84a1170818050a65491daddc9966f
449d555969bfd7befe906877abab098c6e63a0e8
/3472/CH39/EX39.34/Example39_34.sce
12d6c3b964c922812e4f7f2449e0dae467201828
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
993
sce
Example39_34.sce
// A Texbook on POWER SYSTEM ENGINEERING // A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar // DHANPAT RAI & Co. // SECOND EDITION // PART IV : UTILIZATION AND TRACTION // CHAPTER 1: INDUSTRIAL APPLICATIONS OF ELECTRIC MOTORS // EXAMPLE : 1.34 : // Page number 713 clear ; clc ; close ; // Clear the work space and console // Given data T_l = 150.0 // Load torque(kg-m) t = 15.0 // Duration of load torque(sec) T_m = 85.0 // Motor torque(kg-m) N = 500.0 // Speed(rpm) s_fl = 0.1 // Full-load slip // Calculations g = 9.81 slip = N*s_fl*2*%pi/60 // Slip(rad/sec) k = slip/T_m T_0 = 0 // No-load torque(kg-m) J = -g*t/(k*log((T_l-T_m)/(T_l-T_0))) // Moment of inertia of flywheel(kg-m^2) // Results disp("PART IV - EXAMPLE : 1.34 : SOLUTION :-") printf("\nInertia of flywheel required, J = %.f kg-m^2\n", J) printf("\nNOTE: ERROR : Calculation mistake in the textbook solution")
98fdf873b3db41ffea6118171c338a5e2b8fac94
4be0defdbe24271cce8f61cece32e7a4b15c65af
/signal_s1/ldussouc_tdimage/ldussouc.sce
e75cc9457c06346f00317fffcf3958551d0194d2
[]
no_license
imac2018/tds
2c41830e26435bb2b8c4a40b3700c9f166bba4dc
8712438b81088d2f2d9c691b3c689e0926c597f5
refs/heads/master
2020-05-30T07:19:34.709677
2017-05-24T09:42:23
2017-05-24T09:42:23
69,675,399
2
2
null
null
null
null
UTF-8
Scilab
false
false
1,094
sce
ldussouc.sce
y = imread("M:\Documents\c++\tds\signal_s1\ldussouc_tdimage/koala.jpg") y_mono = y(:,:, 1) function ret = moyenneur(img) ret = img for i = [2:1:299] for j = [2:1:299] moyenne = img(i,j) /9 + img(i+1,j) /9 + img(i-1,j) /9 + img(i,j+1) /9 + img(i,j-1) /9 + img(i-1,j-1) /9 + img(i+1,j+1) /9 + img(i-1,j+1) /9 + img(i+1,j-1) /9 ret(i,j) = floor(moyenne) end end endfunction function ret = derivateurH(img) ret = img for i = [2:1:299] for j = [2:1:299] ret(i,j) = abs(img(i-1,j) - img(i+1,j)) end end endfunction function ret = median(img) ret = img for i = [2:1:299] for j = [2:1:299] tableau = [img(i,j), img(i+1,j), img(i-1,j), img(i,j+1), img(i,j-1), img(i-1,j-1), img(i+1,j+1), img(i-1,j+1), img(i+1,j-1)] tableau_trie = gsort(tableau,'g','i') ret(i,j) = tableau_trie(5) end end endfunction y_mono_moyenneur = moyenneur(y_mono) y_mono_derivateurH = derivateurH(y_mono) y_mono_median = median(y_mono) imshow(y_mono_median)
97ac6ff7b7164fcdd79bd224a538e45227dcf419
449d555969bfd7befe906877abab098c6e63a0e8
/1418/CH26/EX26.7/EX26_7.sce
7b17eb0d85c9618670f95433fef7b7520049bb75
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,217
sce
EX26_7.sce
//EXAMPLE 26.7 //LONG SHUNT COMPOUND GENERATOR clc; funcprot(0); //Variable Initialisation Po=300*10^3;.............//Output power in Watts V=600;.............//Terminal voltage in Volts Rsh=75;............//Resistance of shunt field in Ohms Ra=0.03;...........//Resistance of armature in Ohms Rse=0.012;.........//Resistance of series field in Ohms Rd=0.036;...........//Diverter resistance in Ohms Rcf=0.011;.........//Commutating field winding resistance in Ohms Io=Po/V;..........//Output current in Amperes Ish=V/Rsh;..........//Current through shunt field in Amperes Ia=Io+Ish;...........//Armature current in Amperes Vse=Ia*Rse;........//Voltage drop on series field in Volts Rc=(Rse*Rd)/(Rse+Rd);........//Combined resistance of series field resistance and diverter resistance in Ohms Rta=Ra+Rc+Rcf;.........//Total armature circuit resistance in Ohms Va=Ia*Rta;..........//Armature voltage drop in Volts Eg=V+Va;..........//EMF generated in the armature in Volts disp(Eg,"EMF generated in the armature in Volts:"); Pg=Eg*Ia/1000;..........//Power generated by the armature in Kila Watts y=round(Pg*10)/10; disp(y,"Power generated by the armature in Kilo Watts:");
04d493a2e04ac2db6de53adf1fe1437579391746
449d555969bfd7befe906877abab098c6e63a0e8
/2330/CH5/EX5.9/ex5_9.sce
d54ddfd2628683855d5f95796a7bff7c57e8a984
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
ex5_9.sce
// Example 5.9 format('v',5) clc; clear; close; // given data V_BE= 0.7;//in V V_CC= 15;// in V R_E= 100;// in Ω R_C= 910;// in Ω R_B= 430*10^3;// in Ω bita= 300;// unit less // The collector current, I_C= (V_CC-V_BE)/(R_E+R_B/bita);// in A I_C= I_C*10^3;// in mA disp(I_C,"The value of I_C in mA is : "); I_C= I_C*10^-3;// in A // The collector to emitter voltage, V_CE= V_CC-I_C*(R_C+R_E);// in V disp(V_CE,"The value of V_CE in volts is : ")
cc901e9d04d9e5d49ff0fa372cb614d2c98e3434
449d555969bfd7befe906877abab098c6e63a0e8
/2333/CH3/EX3.15/15.sce
ae0a2688aff621085fb6d46c80f6af0e3b764a88
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
490
sce
15.sce
clc // Given that lambda_1 = 6000 // wavelength of light in angstrom lambda_2 = 4500 // wavelength of light in angstrom theta = 30 // Angle in degree // Sample Problem 15 on page no. 158 printf("\n # PROBLEM 15 # \n") printf(" Standard formula used \n") printf(" n*lambda= sin(theta)/N \n") n = lambda_2/(lambda_1-lambda_2) // order calculation e_d = n*lambda_1*1e-8/sin(theta*%pi/180) N = 1/e_d // Number of lines per cm printf(" \n Number of lines per cm is %d.\n",N )
4dae3310d2dbe3baece310c5ffbea78798d72058
449d555969bfd7befe906877abab098c6e63a0e8
/3793/CH6/EX6.5/exp_6_5.sce
519654d610bf07640b8e8021d481e31b80ba2836
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,132
sce
exp_6_5.sce
clear; clc; function[Ybus,I]=fbsub(Ybus,nbus,I); for k=1:nbus; if k==1; for j=2:nbus; Ybus(k,j)=Ybus(k,j)/Ybus(k,k); end else for j=2:nbus; if j<=k; for m=1:j-1; Ybus(k,j)=Ybus(k,j)-Ybus(k,m)*Ybus(m,j); end else for m=1:k-1; Ybus(k,j)=Ybus(k,j)-Ybus(k,m)*Ybus(m,j); end Ybus(k,j)=Ybus(k,j)/Ybus(k,k); end end end end for k=1:nbus; if k==1; I(k)=I(k)/Ybus(k,k); else for j=1:k-1; I(k)=I(k)-Ybus(k,j)*I(j); end I(k)=I(k)/Ybus(k,k); end end for k=nbus:-1:1; if k==nbus; disp('node voltages'); disp(Ybus); else for j=nbus:-1:k+1; I(k)=I(k)-Ybus(k,j)*I(j); end end end endfunction Ybus=[4 3 6;2 8 5;1 5 9]; nbus=3; I=[1;1;1]; [Ybus,I]=fbsub(Ybus,nbus,I); V1=1/Ybus(1,1); V2=(1/Ybus(2,2))*(1-2*V1); V3=(1/Ybus(3,3))*(1-1*V1-4.25*V2); VV3=V3; VV2=(V2-Ybus(2,3)*V3); VV1=(V1-Ybus(1,2)*VV2-Ybus(1,3)*V3); V=[VV1 ; VV2 ;VV3] disp("V is"); disp(V);
c77d10881891c78017cd2e0738a1b4f69d936fcb
449d555969bfd7befe906877abab098c6e63a0e8
/1910/CH4/EX4.7/Chapter47.sce
29987d59f603e5c2bad81aeaf77925cc4e7d541f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,196
sce
Chapter47.sce
// Display mode mode(0); // Display warning for floating point exception ieee(1); clear; clc; disp("Introduction to heat transfer by S.K.Som, Chapter 4, Example 7") //Radius in m ro = 0.15; //Initial temperature in °C Ti = 530; //Temperature of surrounding in °C Tinfinity = 30; //Heat transfer coefficient in W/(m^2*K) h = 380; //Thermal conductivity of aluminium in W/(m*K) k = 200; //Thermal diffusivity in m^2/s alpha = 8.5*(10^(-5)); //Given radius at which temperature has to be find out in m r = 0.12; //Given time in seconds t = 265; //Fourier number Fo = (alpha*t)/(ro^2); //Biot number Bi = (h*ro)/k; //From fig. 4.15, at this fourier number,Fo and (1/Bi), we have dimensionless temperature //ratio to be 0.6 //From fig. 4.16 for this (1/Bi) and (r/ro), we have another dimensionless //temperature to be 0.9 //Temperature in °C T = Tinfinity+(0.9*0.6)*(Ti-Tinfinity); disp("Temperature at this radius in °C") T //From fig. 4.17, for this Bi and Fo*Bi*Bi, we have ratio of heats as //Q/Qi=0.4 //Heat transfer per metre in J/m Q = (((((0.4*k)*%pi)*ro)*ro)*(Ti-Tinfinity))/alpha; disp("Heat transfer rate per unit length in MJ/m") Q = Q/(10^6)
9f84f5d9b7a50d81f96d6e9005fce3df1b126fa9
364f7d17c4f024c39c47c99bda284bacb913d470
/macros/affine2d.sci
f42b6cbc726ceb63ee0b3109ecb814ff6644b5c0
[]
no_license
msharsha/FOSSEE-Image-Processing-Toolbox
6ce7bafc187b99b9e01d1eedcc09a11c3a80370d
f8b16bc3329f9186a3b362f29d9a40d20b48cfd4
refs/heads/master
2020-12-02T07:55:57.553927
2017-07-10T07:41:21
2017-07-10T07:41:21
96,747,260
0
0
null
2017-07-10T07:14:37
2017-07-10T07:14:37
null
UTF-8
Scilab
false
false
1,120
sci
affine2d.sci
// Copyright (C) 2015 - IIT Bombay - FOSSEE // // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt // Author: Yash S. Bhalgat // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in function tform = affine2d(image) //Creates an affine2d object for input 3x3 matrix. // //Calling Sequence //y = affine2d(mat) // //Parameters //mat : It is a 3x3 matrix which specifies forward affine2d transformation. //y : an affine2d object with similar properties as the input. // //Description //y = affine2d(mat) returns the affine2d object where a 3x3 numeric matrix is given as input //It encapsulates 2d affine geometri transformation. // //Examples //a=[1 2 0;3 4 0;5 1 1]; //y=affine2d(a); //disp(y); //Authors // Yash S. Bhalgat image_list = mattolist(image) out = raw_affine2d(image) sz = size(out) for i=1:sz tform(:, :, i) = out(i) end endfunction
d1c8fd18209e34da1a1c12ac701a659675db23e5
1232196a72221f6cc0ee0a9a47111ef1188dafe9
/xcos_blocks/peakdet_func.sci
0b36a6e3279d02d45adc859e86a23df3ba29ce8e
[]
no_license
sumagin/rasp30
06dc2ee1587a4eaf3cf5fb992375b8589617f882
a11dcffaed22dbac1f93c2f4798a48c7b0b1f795
refs/heads/master
2021-01-24T23:51:54.459864
2016-07-08T22:03:43
2016-07-08T22:03:43
16,685,217
2
3
null
2015-07-23T15:28:49
2014-02-10T05:17:38
C
UTF-8
Scilab
false
false
783
sci
peakdet_func.sci
function block=peakdet_func(block,flag) if flag==1 r = 1:block.ipar(1) block.outptr(1)(r)=block.x(r) elseif flag==0 A = 400 kappa=0.7 Ut=0.02585 j = 1:block.ipar(1) row = length(block.ipar(1)) expin = ((A*kappa*(block.inptr(1)(j)-block.x(j)))-block.x(j))/Ut expin_a = expin < -100*ones(row,1) expin_1=expin_a.*((-1)*(block.rpar(2*j-1)./block.rpar(2*j))); expin_b = expin > 10*ones(row,1) expin_2=expin_b.*((block.rpar(2*j-1)./block.rpar(2*j))*(exp(10)-1)); expin_c = expin > -100*ones(row,1) & expin < 10*ones(row,1) expin_3=expin_c.*(block.rpar(2*j-1)./block.rpar(2*j)).*(exp(expin_c.*expin)-1); block.xd(j)=expin_1+expin_2+expin_3 end endfunction
a6f85d70096d3a73dba91e545e549dd44c0923e4
449d555969bfd7befe906877abab098c6e63a0e8
/2135/CH1/EX1.33/Exa_1_33.sce
e848b3ed42a34ed09ad7e633dfa9e19330216174
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
398
sce
Exa_1_33.sce
//Exa 1.33 clc; clear; close; format('v',9); //Given Data : T1=300;//K T2=2300;//K Gamma=1.5; m=1;//Kg //Cp=0.85+0.0004*T+50*10^-5*T^2 H2subH1=integrate('m*(0.85+0.00004*T+5*10^-5*T^2)','T',T1,T2);//KJ/Kg disp(H2subH1,"Change in enthalpy in KJ/Kg : "); U2subU1=integrate('m*(0.85+0.00004*T+5*10^-5*T^2)/Gamma','T',T1,T2);//KJ/Kg disp(U2subU1,"Change in internal energy in KJ : ");
90680a32469d307ee0c87d4ec74466a0f4c34e16
449d555969bfd7befe906877abab098c6e63a0e8
/167/CH5/EX5.10/ex10.sce
1d5c5fb50b629e3397e2fd276fc097952fa7be70
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,048
sce
ex10.sce
//example 10 //cooling of refrigant 134-a by water clear clc disp('We take the entire heat exchanger as the system. This is a control volume since mass crosses the system boundary during the process.') disp('For each fluid stream since there is no mixing. Thus, m1=m2=mh and m3=m4=mr') mr=6 //mass flow rate of R-134a in kg/min h1=62.982 //specific enthalpy of water in kJ/kg h2=104.83 //specific enthalpy of water in kJ/kg P3=1 //pressure of R-134a at inlet in MPa T3=70 //temperature of R-134a at inlet in Celsius h3=303.85 //specific enthalpy corresponding to P3,T3 in kJ/kg P4=1 //pressure of R-134a at exit in MPa T4=35 // temp. of R-134a at exit in Celsius h4=100.87 // corresponding to P4,T4 in kJ/kg mw=mr*(h4-h3)/(h1-h2) //mass flow rate of the cooling water in kg/min qin=mw*(h2-h1) //the heat transfer rate from the refrigerant to water in kJ/min printf("\n Hence,mass flow rate of the cooling water required is = %.1f kg/min. \n",mw); printf("\n Heat transfer rate from refrigerant to water is = %.0f kJ/min. \n",qin);
df327cc17fd4881087751bbcccb7e3115bfb46e8
36c5f94ce0d09d8d1cc8d0f9d79ecccaa78036bd
/Falling Targets.sce
21dc940a6d7510438657fec3b94fbd024e7761cd
[]
no_license
Ahmad6543/Scenarios
cef76bf19d46e86249a6099c01928e4e33db5f20
6a4563d241e61a62020f76796762df5ae8817cc8
refs/heads/master
2023-03-18T23:30:49.653812
2020-09-23T06:26:05
2020-09-23T06:26:05
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
31,492
sce
Falling Targets.sce
Name=Falling Targets PlayerCharacters=Ascended Tracking BotCharacters=Long Strafe Bot.bot;Long Strafe Bot.bot;Long Strafe Bot.bot;Long Strafe Bot.bot;Long Strafe Bot.bot;Long Strafe Bot.bot IsChallenge=true Timelimit=30.0 PlayerProfile=Ascended Tracking AddedBots=Long Strafe Bot.bot;Long Strafe Bot.bot;Long Strafe Bot.bot;Long Strafe Bot.bot;Long Strafe Bot.bot;Long Strafe Bot.bot PlayerMaxLives=0 BotMaxLives=0;0;0;0;0;0 PlayerTeam=1 BotTeams=2;2;0;0;0;0 MapName=empty.map MapScale=7.0 BlockProjectilePredictors=true BlockCheats=true InvinciblePlayer=false InvincibleBots=false Timescale=1.0 BlockHealthbars=false TimeRefilledByKill=0.0 ScoreToWin=1000.0 ScorePerDamage=1.0 ScorePerKill=10.0 ScorePerMidairDirect=0.0 ScorePerAnyDirect=0.0 ScorePerTime=0.0 ScoreLossPerDamageTaken=0.0 ScoreLossPerDeath=0.0 ScoreLossPerMidairDirected=0.0 ScoreLossPerAnyDirected=0.0 ScoreMultAccuracy=true ScoreMultDamageEfficiency=false ScoreMultKillEfficiency=false GameTag=Click-timing, Flick, Reflex WeaponHeroTag=pistol DifficultyTag=2 AuthorsTag=Lac BlockHitMarkers=false BlockHitSounds=false BlockMissSounds=true BlockFCT=true Description=Enjoy the this scenario!! GameVersion=1.0.7.2 ScorePerDistance=0.0 [Aim Profile] Name=At Feet MinReactionTime=1.0 MaxReactionTime=1.0 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=15.0 TrackSpeed=3.5 TrackError=3.5 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=40.0 ShootFOV=15.0 VerticalAimOffset=-200.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 [Aim Profile] Name=Low Skill At Feet MinReactionTime=0.35 MaxReactionTime=0.45 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=20.0 TrackSpeed=3.0 TrackError=5.0 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=60.0 ShootFOV=25.0 VerticalAimOffset=-200.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 [Aim Profile] Name=Low Skill MinReactionTime=0.35 MaxReactionTime=0.45 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=20.0 TrackSpeed=3.0 TrackError=5.0 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=60.0 ShootFOV=25.0 VerticalAimOffset=0.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 [Aim Profile] Name=Default MinReactionTime=0.3 MaxReactionTime=0.4 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=15.0 TrackSpeed=3.5 TrackError=3.5 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=40.0 ShootFOV=15.0 VerticalAimOffset=0.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 [Bot Profile] Name=Long Strafe Bot DodgeProfileNames=Long Strafes DodgeProfileWeights=100.0 DodgeProfileMaxChangeTime=0.1 DodgeProfileMinChangeTime=0.1 WeaponProfileWeights=1.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0 AimingProfileNames=At Feet;Low Skill At Feet;Low Skill;Default;Default;Default;Default;Default WeaponSwitchTime=1.0 UseWeapons=true CharacterProfile=Long Strafer SeeThroughWalls=false NoDodging=false NoAiming=true [Character Profile] Name=Ascended Tracking MaxHealth=1.0 WeaponProfileNames=pistol;;;;;;; MinRespawnDelay=0.1 MaxRespawnDelay=0.1 StepUpHeight=0.0 CrouchHeightModifier=0.5 CrouchAnimationSpeed=2.0 CameraOffset=X=0.000 Y=0.000 Z=385.000 HeadshotOnly=false DamageKnockbackFactor=4.0 MovementType=Base MaxSpeed=500.0 MaxCrouchSpeed=500.0 Acceleration=0.0 AirAcceleration=16000.0 Friction=0.0 BrakingFrictionFactor=0.0 JumpVelocity=100.0 Gravity=1.0 AirControl=0.25 CanCrouch=false CanPogoJump=false CanCrouchInAir=true CanJumpFromCrouch=false EnemyBodyColor=X=0.771 Y=0.000 Z=0.000 EnemyHeadColor=X=1.000 Y=1.000 Z=1.000 TeamBodyColor=X=1.000 Y=0.888 Z=0.000 TeamHeadColor=X=1.000 Y=1.000 Z=1.000 BlockSelfDamage=false InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=0.0 MainBBType=Cylindrical MainBBHeight=260.0 MainBBRadius=50.0 MainBBHasHead=false MainBBHeadRadius=45.0 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Cylindrical ProjBBHeight=260.0 ProjBBRadius=50.0 ProjBBHasHead=false ProjBBHeadRadius=45.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.2 JetpackFullFuelTime=4.0 JetpackFuelIncPerSec=1.0 JetpackFuelRegensInAir=false JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=false AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.0 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=0.0 VerticalSpawnOffset=0.0 SpawnXOffset=0.0 SpawnYOffset=0.0 [Character Profile] Name=Long Strafer MaxHealth=1.0 WeaponProfileNames=;;;;;;; MinRespawnDelay=0.1 MaxRespawnDelay=0.1 StepUpHeight=75.0 CrouchHeightModifier=0.5 CrouchAnimationSpeed=1.0 CameraOffset=X=0.000 Y=0.000 Z=100.000 HeadshotOnly=false DamageKnockbackFactor=4.0 MovementType=Base MaxSpeed=1300.0 MaxCrouchSpeed=500.0 Acceleration=12000.0 AirAcceleration=16000.0 Friction=300.0 BrakingFrictionFactor=2.0 JumpVelocity=1250.0 Gravity=0.7 AirControl=0.125 CanCrouch=false CanPogoJump=false CanCrouchInAir=false CanJumpFromCrouch=false EnemyBodyColor=X=0.771 Y=0.000 Z=0.000 EnemyHeadColor=X=1.000 Y=1.000 Z=1.000 TeamBodyColor=X=1.000 Y=0.888 Z=0.000 TeamHeadColor=X=1.000 Y=1.000 Z=1.000 BlockSelfDamage=false InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=0.0 MainBBType=Spheroid MainBBHeight=190.0 MainBBRadius=95.0 MainBBHasHead=false MainBBHeadRadius=45.0 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Cylindrical ProjBBHeight=260.0 ProjBBRadius=50.0 ProjBBHasHead=false ProjBBHeadRadius=45.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.2 JetpackFullFuelTime=4.0 JetpackFuelIncPerSec=1.0 JetpackFuelRegensInAir=false JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=true AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.0 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 SpawnXOffset=0.0 SpawnYOffset=0.0 [Dodge Profile] Name=Long Strafes MaxTargetDistance=4000.0 MinTargetDistance=200.0 ToggleLeftRight=true ToggleForwardBack=false MinLRTimeChange=0.1 MaxLRTimeChange=0.1 MinFBTimeChange=0.2 MaxFBTimeChange=0.5 DamageReactionChangesDirection=false DamageReactionChanceToIgnore=1.0 DamageReactionMinimumDelay=0.1 DamageReactionMaximumDelay=1.0 DamageReactionCooldown=1.0 DamageReactionThreshold=1.0 DamageReactionResetTimer=0.1 JumpFrequency=0.5 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=1.0 MaxJumpTime=1.0 LeftStrafeTimeMult=0.1 RightStrafeTimeMult=0.1 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Weapon Profile] Name=pistol Type=Hitscan ShotsPerClick=1 DamagePerShot=100.0 KnockbackFactor=4.0 TimeBetweenShots=0.1 Pierces=false Category=SemiAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=2.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=0.5 ReloadTimeFromPartial=0.5 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=25.0 DelayBeforeShot=0.0 HitscanVisualEffect=None ProjectileGraphic=Ball VisualLifetime=0.1 WallParticleEffect=Gunshot HitParticleEffect=Flare BounceOffWorld=false BounceFactor=0.5 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=1.0 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=4.0 RecoilNegatable=false DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 ProjectileTrail=None RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=false AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=false MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=72.099998 ADSFOVScale=Horizontal (4:3) ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=100.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,5.0 SpreadSCA=1.0,1.0,-1.0,5.0 SpreadMSA=1.0,1.0,-1.0,5.0 SpreadMCA=1.0,1.0,-1.0,5.0 SpreadSSH=0.0,0.1,0.0,0.0 SpreadSCH=1.0,1.0,-1.0,5.0 SpreadMSH=0.0,0.1,0.0,0.0 SpreadMCH=1.0,1.0,-1.0,5.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=false TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=1.0 AAMaxSpeed=360.0 AADeadZone=0.0 AAFOV=360.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.175 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Map Data] reflex map version 8 global entity type WorldSpawn String32 targetGameOverCamera end UInt8 playersMin 1 UInt8 playersMax 16 Bool8 mode1v1 1 brush vertices -80.000000 0.000000 16.000008 384.000000 0.000000 16.000008 384.000000 0.000000 -240.000000 -80.000000 0.000000 -240.000000 -80.000000 -16.000000 16.000008 384.000000 -16.000000 16.000008 384.000000 -16.000000 -240.000000 -80.000000 -16.000000 -240.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 144.000000 176.000000 32.000000 400.000000 176.000000 32.000000 400.000000 176.000000 16.000000 144.000000 176.000000 16.000000 144.000000 0.000000 32.000000 400.000000 0.000000 32.000000 400.000000 0.000000 16.000000 144.000000 0.000000 16.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 128.000000 176.000000 -240.000000 384.000000 176.000000 -240.000000 384.000000 176.000000 -256.000000 128.000000 176.000000 -256.000000 128.000000 0.000000 -240.000000 384.000000 0.000000 -240.000000 384.000000 0.000000 -256.000000 128.000000 0.000000 -256.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 384.000000 176.000000 -240.000000 384.000000 176.000000 16.000000 400.000000 176.000000 16.000000 400.000000 176.000000 -240.000000 384.000000 0.000000 -240.000000 384.000000 0.000000 16.000000 400.000000 0.000000 16.000000 400.000000 0.000000 -240.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 384.000000 192.000000 -240.000000 384.000031 192.000000 15.999985 640.000000 448.000000 16.000000 640.000000 176.000000 -240.000092 640.000000 448.000000 -240.000000 384.000031 176.000000 15.999985 640.000000 176.000000 15.999954 384.000000 176.000000 -240.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 1 0 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000 brush vertices -16.000000 32.000000 32.000000 0.000000 32.000000 32.000000 0.000000 32.000000 -240.000000 -16.000000 32.000000 -240.000000 -16.000000 0.000000 32.000000 0.000000 0.000000 32.000000 0.000000 0.000000 -240.000000 -16.000000 0.000000 -240.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 384.000000 192.000000 16.000000 160.000000 192.000000 16.000061 160.000000 592.000000 384.000000 384.000153 176.000000 384.000000 384.000000 592.000000 384.000000 160.000000 176.000000 16.000061 160.000061 176.000000 384.000122 384.000000 176.000000 16.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 2 6 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 1 0 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000 brush vertices 144.000000 592.000000 32.000000 144.000000 592.000000 384.000000 160.000000 592.000000 384.000000 160.000000 592.000000 32.000000 144.000000 0.000000 32.000000 144.000000 0.000000 384.000000 160.000000 0.000000 384.000000 160.000000 0.000000 32.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 144.000000 592.000000 400.000000 400.000000 592.000000 400.000000 400.000000 592.000000 384.000000 144.000000 592.000000 384.000000 144.000000 0.000000 400.000000 400.000000 0.000000 400.000000 400.000000 0.000000 384.000000 144.000000 0.000000 384.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 384.000000 592.000000 16.000000 384.000000 592.000000 384.000000 400.000000 592.000000 384.000000 400.000000 592.000000 16.000000 384.000000 0.000000 16.000000 384.000000 0.000000 384.000000 400.000000 0.000000 384.000000 400.000000 0.000000 16.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -80.000000 592.000000 16.000008 160.000000 592.000000 16.000008 160.000000 592.000000 -240.000000 -80.000000 592.000000 -240.000000 -80.000000 576.000000 16.000008 160.000000 576.000000 16.000008 160.000000 576.000000 -240.000000 -80.000000 576.000000 -240.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -96.000000 592.000000 32.000000 160.000000 592.000000 32.000000 160.000000 592.000000 16.000000 -96.000000 592.000000 16.000000 -96.000000 0.000000 32.000000 160.000000 0.000000 32.000000 160.000000 0.000000 16.000000 -96.000000 0.000000 16.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -96.000000 592.000000 32.000000 -80.000000 592.000000 32.000000 -80.000000 592.000000 -256.000000 -96.000000 592.000000 -256.000000 -96.000000 0.000000 32.000000 -80.000000 0.000000 32.000000 -80.000000 0.000000 -256.000000 -96.000000 0.000000 -256.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -96.000000 592.000000 -240.000000 160.000000 592.000000 -240.000000 160.000000 592.000000 -256.000000 -96.000000 592.000000 -256.000000 -96.000000 0.000000 -240.000000 160.000000 0.000000 -240.000000 160.000000 0.000000 -256.000000 -96.000000 0.000000 -256.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 144.000000 592.000000 -608.000000 144.000000 592.000000 -256.000000 160.000000 592.000000 -256.000000 160.000000 592.000000 -608.000000 144.000000 0.000000 -608.000000 144.000000 0.000000 -256.000000 160.000000 0.000000 -256.000000 160.000000 0.000000 -608.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 144.000000 592.000000 -608.000000 400.000000 592.000000 -608.000000 400.000000 592.000000 -624.000000 144.000000 592.000000 -624.000000 144.000000 0.000000 -608.000000 400.000000 0.000000 -608.000000 400.000000 0.000000 -624.000000 144.000000 0.000000 -624.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 384.000000 592.000000 -608.000000 384.000000 592.000000 -240.000000 400.000000 592.000000 -240.000000 400.000000 592.000000 -608.000000 384.000000 0.000000 -608.000000 384.000000 0.000000 -240.000000 400.000000 0.000000 -240.000000 400.000000 0.000000 -608.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 400.000000 592.000000 32.000000 656.000000 592.000000 32.000000 656.000000 592.000000 16.000000 400.000000 592.000000 16.000000 400.000000 0.000000 32.000000 656.000000 0.000000 32.000000 656.000000 0.000000 16.000000 400.000000 0.000000 16.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 656.000000 592.000000 16.000000 656.000000 592.000000 -240.000000 640.000000 592.000000 -240.000000 640.000000 592.000000 16.000000 656.000000 0.000000 16.000000 656.000000 0.000000 -240.000000 640.000000 0.000000 -240.000000 640.000000 0.000000 16.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 400.000000 592.000000 -240.000000 656.000000 592.000000 -240.000000 656.000000 592.000000 -256.000000 400.000000 592.000000 -256.000000 400.000000 0.000000 -240.000000 656.000000 0.000000 -240.000000 656.000000 0.000000 -256.000000 400.000000 0.000000 -256.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 160.000000 192.000000 -240.000000 384.000000 192.000000 -240.000000 384.000000 592.000000 -608.000000 160.000000 176.000000 -608.000000 160.000000 592.000000 -608.000000 384.000000 176.000000 -240.000000 384.000000 176.000000 -608.000000 160.000000 176.000000 -240.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 4 0 1 2 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 4 3 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 5 1 0 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 6 5 7 0x00000000 brush vertices 400.000000 592.000000 16.000000 400.000000 592.000000 -240.000000 384.000000 592.000000 -240.000000 384.000000 592.000000 16.000000 400.000000 368.000000 16.000000 400.000000 368.000000 -240.000000 384.000000 368.000000 -240.000000 384.000000 368.000000 16.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 144.000000 576.000000 32.000000 160.000000 576.000000 32.000000 160.000000 576.000000 -256.000000 144.000000 576.000000 -256.000000 144.000000 368.000000 32.000000 160.000000 368.000000 32.000000 160.000000 368.000000 -256.000000 144.000000 368.000000 -256.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 entity type CameraPath UInt8 posLerp 2 UInt8 angleLerp 2 entity type PlayerSpawn Vector3 position -48.000000 0.000000 -112.000000 Vector3 angles 90.000000 0.000000 0.000000 Bool8 teamB 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 272.000000 608.000000 -576.000000 Vector3 angles -360.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 272.000000 608.000000 351.999969 Vector3 angles -180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 592.000000 528.000000 -112.000031 Vector3 angles -90.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 240.000000 528.000000 -112.000031 Vector3 angles -90.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 544.000000 496.000000 -16.000031 Vector3 angles -90.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 544.000000 496.000000 -208.000031 Vector3 angles -90.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 192.000000 416.000000 -304.000000 Vector3 angles -360.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 192.000000 416.000000 80.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 352.000000 480.000000 -448.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0 entity type PlayerSpawn Vector3 position 352.000000 480.000000 224.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamA 0 Bool8 initialSpawn 0 Bool8 modeCTF 0 Bool8 modeFFA 0 Bool8 modeTDM 0 Bool8 mode1v1 0 Bool8 modeRace 0 Bool8 mode2v2 0
4b9904c356f7fa8d342de85660a07a83297b7c79
449d555969bfd7befe906877abab098c6e63a0e8
/1299/CH15/EX15.60/example15_60.sce
0bcc6dbc908733a73b4530af6b9e54a74f82c7e9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
229
sce
example15_60.sce
//Example 15.60 //root locus clear;clc; xdel(winsid()); s=%s; //substituting "a=15" in the numerator num=2*(s+15); den=s*(s+2)*(s+10); G=syslin('c',num/den); evans(G); axes_handle.grid=[1 1] mtlb_axis([-5 5 -5 5]);
7384928e9279c8856df5e1824b2f43a015acfa32
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.5/tests/examples/rowregul.man.tst
1c446b7543e0bea6582258c621504465a34fd5f4
[ "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
143
tst
rowregul.man.tst
clear;lines(0); s=%s; w=[1/s,0;s/(s^3+2),2/s]; Sl=tf2ss(w); [Stmp,Ws]=rowregul(Sl,-1,-2); Stmp('D') // D matrix of Stmp clean(ss2tf(Stmp))
f94b93b4e78c7300044e20a728213f22155c4bc3
449d555969bfd7befe906877abab098c6e63a0e8
/2126/CH6/EX6.15/15.sce
42c6ecadf70c116f7b4f5d3779fb4ad774344479
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,501
sce
15.sce
clc clear //Input data P1=0.56 //Inlet pressure of compressor in bar T1=260 //Temperature at inlet of compressor in K pr_c=6 //Pressure ratio of compressor eff_c=0.85 //Compressor efficiency u=360*(5/18) //Flight velocity in m/s D=3 //Propeller diameter in m eff_p=0.8 //Efficiency of propeller eff_g=0.95 //Gear reduction efficiency pr_t=5 //Expansion ratio eff_t=0.88 //Turbine efficiency T3=1100 //temperature at turbine inlet in K eff_n=0.9 //Nozzle efficiency Cp=1005 //Specific heat capacity at constant pressure of air in J/kg-K CV=40000 //Calorific value in kJ/kg k=1.4 //Adiabatic constant of air R=287 //Specific gas constant in J/kg-K //Calculation P2=pr_c*P1 //Exit pressure of compressor in bar T2s=T1*(pr_c)^((k-1)/k) //Exit temperature of compressor at isentropic proces in K T2=T1+((T2s-T1)/eff_c) //Exit temperature of compressor in K Wc=Cp*(T2-T1)*10^-3 //Power input to compressor in kJ/kg of air C1=u //Air velocity in m/s, since C1 is resultant of u C=C1/eff_p //Average velocity in m/s C2=(2*C)-C1 //Exit velocity from compressor in m/s Ap=0.25*%pi*D^2 //Area of propeller passage in m^2 Q=Ap*C //Quantity of air inducted in m^3/s mf=((T3-T2)*Cp)/((CV*10^3)-(Cp*T3)) //Mass flow rate of fuel in kg/s f=mf //Fuel consumption in kg/kg of air AFR=1/mf //Air fuel ratio P3=P2 //Exit pressure of combustion chamber in bar, Since process is at constant pressure P4=P3/pr_t //Exit pressure of turbine in bar T4s=T3/((pr_t)^((k-1)/k)) //Exit temperature of turbine at isentropic proces in K, wrong calculation T4=T3-(eff_t*(T3-T4s)) //Exit temperature of turbine in K Po=(1+f)*Cp*(T3-T4)*10^-3 //Power output per kg of air in kJ/kg of air Pa=Po-Wc //Power available for propeller in kJ/kg of air Pe=P1 //Exit pressure in bar, Since exit is at ambient conditions Tes=T4/((P4/Pe)^((k-1)/k)) //Exit temperature of nozzle at isentropic proces in K Cj=sqrt(2*Cp*eff_n*(T4-Tes)) //Jet velocity in m/s Fs=((1+f)*Cj)-u //Specific thrust in Ns/kg, F in N Pp=((0.5*P1*10^5*Q*(C2^2-C1^2))/(R*T1))*10^-3 //Propulsive power by propeller in kJ/s Ps=Pp/eff_g //Power supplied by the turbine in kW ma=Ps/Pa //Air flow rate in kg/s Fj=ma*Cj*10^-3 //Jet thrust in kN, calculation mistake Fp=(Pp*eff_p)/u //Thrust produced by propeller in kN //Output printf('(A)Air fuel ratio is %3.2f\n (B)Thrust produced by the nozzle is %3.3f kN\n (C)Thrust by the propeller is %3.3f kN\n (D)mass flow rate through the compressor is %3.2f kg/s',AFR,Fj,Fp,ma)
40ece86eb950a300446f71e484797a8614491f98
19fd40cb94855327f6f4db1330b2ccec188b13cb
/Codigos_Scilab/MQ.sce
92741ba279da39dc107398bb3280160a5aafe50a
[]
no_license
Afcam/Materiais-Eletricos-Magneticos
6e22194419f2704f5e49c4dc9f5b282ccabafc11
0fb3c8847a7c5a8ee9d46d7be1280eceefe08c79
refs/heads/master
2023-07-24T21:50:12.675217
2018-05-11T13:27:25
2018-05-11T13:27:25
126,596,938
0
0
null
null
null
null
UTF-8
Scilab
false
false
555
sce
MQ.sce
//Exemplo: Ajuste de Modelo por Mínimos Quadrados //%Programa:MQ.sce clear; //Pontos Experimentais yp = [ 0.1 1.8 2.7 3.1 3.8 4.2]; //Corrente [A] xp = [ 0 1 2 3 4 5 ]; //Tensão [V] plot(xp,yp,'or'); //Modelo Adotado: y = k*(x^p) p = 3/5; //Expoente Fracionário (Modelo) g = xp.^p; //Função Base k = sum(yp.*g)/sum(g.*g); //Ajuste da Constante do Modelo xc = linspace(min(xp),max(xp),100); //Base de Plotagem do Modelo Ajustado yc = k*(xc.^p); //Modelo Ajustado plot(xc,yc,'b'); title('Modelo Ajustado (azul) e Pontos Experimentais (vermelho)');
5ac0911e5201385cdc149b906146f6a0a173d296
449d555969bfd7befe906877abab098c6e63a0e8
/992/CH6/EX6.4/ex6_4.sce
881738d63ebf9a604774aeaa2a5c2cd173b5c7c6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
156
sce
ex6_4.sce
//Exa:6.4 clc; clear; close; //Given: Fmax=3;//in kHz Bw=20;//in MHz Bs=2*Fmax*1000; n=(20*1000000)/Bs; printf("\n\t number of stations = %f",n);
9a276a907cdc5633b7a526e2e4d2fbc0222c868a
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.2/Unix/scilab-2.2/macros/percent/%rfr.sci
3d944364f2577130e8b14296d195e9d375c9b8f9
[ "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
115
sci
%rfr.sci
function [f]=%rfr(s1,s2) //f=[s1;s2] //! [s1,s2]=sysconv(s1,s2) f=tlist('r',[s1(2);s2(2)],[s1(3);s2(3)],s1(4))
4f8364465efa53ab4e842f3ecfe2cf107716652e
449d555969bfd7befe906877abab098c6e63a0e8
/226/CH1/EX1.4/example4_sce.sce
6ff9fa5b04773e1efe523bc86c3970adc2019104
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
example4_sce.sce
//chapter 1 // eaxample 1.4 //page 26 printf("\n") printf("given") T1=25;T2=35;T3=45; I0=30//nA disp("I0(35)=I0*2^(T2-T1)/10") //on solving I0(35)=I0*2^((T2-T1)/10); printf("current at 35c is %dnA\n",I0(35)) disp("I0(45)=I0*2^(T3-T1)/10") //on solving I0(45)=30*2^2; printf("current at 45c is %dnA\n",I0(45))
a227631704ea86999950f85cc1831e96d9f3fe1e
449d555969bfd7befe906877abab098c6e63a0e8
/542/CH11/EX11.14/Example_11_14.sci
d9972423fe3ad5cc8db011e2920ef3c5bd69f471
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
8,663
sci
Example_11_14.sci
clear; clc; xdo = 0.98; //per cent of ortho top product xwo = 0.125; //per cent of ortho bottom product function[f]=product(x) f(1) = 100 - x(1) - x(2); //x(1) is D and x(2) is W f(2) = 60 - x(1)*xdo - x(2)*xwo; funcprot(0); endfunction x = [0,0]; y = fsolve(x,product) printf("\n D = %.2f kmol & W = %.2f kmol",y(1),y(2)); printf("\n Let us assume that the distillate contains 0.6 mole per cent meta and 1.4 mole per cent para"); printf("\n Component Feed Distillate Bottoms "); printf("\n (kmol) (mole per cent) (kmol) (mole per cent) (kmol) (mole per cent) "); printf("\n Ortho %.3f %.2f %.2f %.2f %.2f %.2f ",60,60,y(1)*0.98,98,y(2)*0.125,12.5); printf("\n Meta %.3f %.2f %.2f %.2f %.2f %.2f ",4,4,y(1)*0.006,0.6,y(2)*0.083,8.3); printf("\n Para %.3f %.2f %.2f %.2f %.2f %.2f ",36,36,y(1)*0.014,1.4,y(2)*0.792,79.2); ao = 1.7; //relative volatility of ortho relative to para am = 1.16; //relative volatility of meta relative to para ap =1; //relative volatility of para w.r.t. to itself xso = 0.125; xsm = 0.083; xsp = 0.792; xwo = 0.125; xwp = 0.083; xwm = 0.792; yso = ao*xso/(ao*xso+ap*xsp+am*xsm); ysm = am*xsm/(ao*xso+ap*xsp+am*xsm); ysp = ap*xsp/(ao*xso+ap*xsp+am*xsm); //Equations of operating lines //Above the feed point Ln = 5*y(1); //Liquid downflow Vn = 6*y(1); //Vapour up //Assuming the feed is liquid at its boiling point F = 100; //feed Lm = Ln+F; //liquid downflow Vm = Lm-y(2); //Vapour up x1o = poly([0],'x1o'); x11 = roots(yso - (Lm/Vm)*x1o + (y(2)/Vm)*xwo); x1p = poly([0],'x1p'); x12 = roots(ysp - (Lm/Vm)*x1p + (y(2)/Vm)*xwp); x1m = poly([0],'x1m'); x13 = roots(ysm - (Lm/Vm)*x1m + (y(2)/Vm)*xwm); x1 = [x11 x13 x12]; ax1 = [ao*x11 am*x13 ap*x12]; y1 = [ax1(1)/(ax1(1)+ax1(2)+ax1(3)) ax1(2)/(ax1(1)+ax1(2)+ax1(3)) ax1(3)/(ax1(1)+ax1(2)+ax1(3))]; x2o = poly([0],'x2o'); x21 = roots(y1(1) - (Lm/Vm)*x2o + (y(2)/Vm)*xwo); x2p = poly([0],'x2p'); x22 = roots(y1(3) - (Lm/Vm)*x2p + (y(2)/Vm)*xwp); x2m = poly([0],'x2m'); x23 = roots(y1(2) - (Lm/Vm)*x2m + (y(2)/Vm)*xwm); x2 = [x21 x23 x22]; printf("\n plate compositions below the feed plate"); printf("\n Component xs axs ys x1 ax1 y1 x2"); printf("\n o %.3f %.3f %.3f %.3f %.3f %.3f %.3f",xso,ao*xso,yso,x1(1),ax1(1),y1(1),x2(1)); printf("\n m %.3f %.3f %.3f %.3f %.3f %.3f %.3f",xsm,am*xsm,ysm,x1(2),ax1(2),y1(2),x2(2)); printf("\n p %.3f %.3f %.3f %.3f %.3f %.3f %.3f",xsp,ap*xsp,ysp,x1(3),ax1(3),y1(3),x2(3)); printf("\n %.3f %.3f %.3f %.3f %.3f %.3f %.3f",xso+xsm+xsp,ao*xso+am*xsm+ap*xsp,yso+ysm+ysp,x1(1)+x1(2)+x1(3),ax1(1)+ax1(2)+ax1(3),y1(1)+y1(2)+y1(3),x2(1)+x2(2)+x2(3)); ax2 = [ao*x2(1) am*x2(2) ap*x2(3)]; y2 = [ax2(1)/(ax2(1)+ax2(2)+ax2(3)) ax2(2)/(ax2(1)+ax2(2)+ax2(3)) ax2(3)/(ax2(1)+ax2(2)+ax2(3))]; x3o = poly([0],'x3o'); x31 = roots(yso - (Lm/Vm)*x3o + (y(2)/Vm)*xwo); x3p = poly([0],'x3p'); x32 = roots(ysp - (Lm/Vm)*x3p + (y(2)/Vm)*xwp); x3m = poly([0],'x3m'); x33 = roots(ysm - (Lm/Vm)*x3m + (y(2)/Vm)*xwm); x3 = [x31 x33 x32]; ax3 = [ao*x3(1) am*x3(2) ap*x3(3)]; y3 = [ax3(1)/(ax3(1)+ax3(2)+ax3(3)) ax3(2)/(ax3(1)+ax3(2)+ax3(3)) ax3(3)/(ax3(1)+ax3(2)+ax3(3))]; x4o = poly([0],'x4o'); x41 = roots(yso - (Lm/Vm)*x4o + (y(2)/Vm)*xwo); x4p = poly([0],'x4p'); x42 = roots(ysp - (Lm/Vm)*x4p + (y(2)/Vm)*xwp); x4m = poly([0],'x4m'); x43 = roots(ysm - (Lm/Vm)*x4m + (y(2)/Vm)*xwm); x4 = [x41 x43 x42]; ax4 = [ao*x4(1) am*x4(2) ap*x4(3)]; y4 = [ax4(1)/(ax4(1)+ax4(2)+ax4(3)) ax4(2)/(ax4(1)+ax4(2)+ax4(3)) ax4(3)/(ax4(1)+ax4(2)+ax4(3))]; x5o = poly([0],'x5o'); x51 = roots(yso - (Lm/Vm)*x5o + (y(2)/Vm)*xwo); x5p = poly([0],'x5p'); x52 = roots(ysp - (Lm/Vm)*x5p + (y(2)/Vm)*xwp); x5m = poly([0],'x5m'); x53 = roots(ysm - (Lm/Vm)*x5m + (y(2)/Vm)*xwm); x5 = [x51 x53 x52]; ax5 = [ao*x5(1) am*x5(2) ap*x5(3)]; y5 = [ax5(1)/(ax5(1)+ax5(2)+ax5(3)) ax5(2)/(ax5(1)+ax5(2)+ax5(3)) ax5(3)/(ax5(1)+ax5(2)+ax5(3))]; x6o = poly([0],'x6o'); x61 = roots(yso - (Lm/Vm)*x6o + (y(2)/Vm)*xwo); x6p = poly([0],'x6p'); x62 = roots(ysp - (Lm/Vm)*x6p + (y(2)/Vm)*xwp); x6m = poly([0],'x6m'); x63 = roots(ysm - (Lm/Vm)*x6m + (y(2)/Vm)*xwm); x6 = [x61 x63 x62]; ax6 = [ao*x6(1) am*x6(2) ap*x6(3)]; y6 = [ax6(1)/(ax6(1)+ax6(2)+ax6(3)) ax6(2)/(ax6(1)+ax6(2)+ax6(3)) ax6(3)/(ax6(1)+ax6(2)+ax6(3))]; x7o = poly([0],'x7o'); x71 = roots(yso - (Lm/Vm)*x7o + (y(2)/Vm)*xwo); x7p = poly([0],'x7p'); x72 = roots(ysp - (Lm/Vm)*x7p + (y(2)/Vm)*xwp); x7m = poly([0],'x7m'); x73 = roots(ysm - (Lm/Vm)*x7m + (y(2)/Vm)*xwm); x7 = [x71 x73 x72]; printf("\n Component ax2 y2 x3 ax3 y3 x4 ax4"); printf("\n o %.3f %.3f %.3f %.3f %.3f %.3f %.3f",ax2(1),y2(1),x3(1),ax3(1),y3(1),x4(1),ax4(1)); printf("\n m %.3f %.3f %.3f %.3f %.3f %.3f %.3f",xsm,am*xsm,ysm,x1(2),ax1(2),y1(2),x2(2)); printf("\n p %.3f %.3f %.3f %.3f %.3f %.3f %.3f",xsp,ap*xsp,ysp,x1(3),ax1(3),y1(3),x2(3)); printf("\n Component y4 x5 ax5 y5 x6 ax6 y6"); printf("\n o %.3f %.3f %.3f %.3f %.3f %.3f %.3f",y4(1),x5(1),ax5(1),y5(1),x6(1),ax6(1),y6(1)); printf("\n m %.3f %.3f %.3f %.3f %.3f %.3f %.3f",y4(2),x5(2),ax5(2),y5(2),x6(2),ax6(2),y6(2)); printf("\n p %.3f %.3f %.3f %.3f %.3f %.3f %.3f",y4(3),x5(3),ax5(3),y5(3),x6(3),ax6(3),y6(3)); ax7 = [ao*x7(1) am*x7(2) ap*x7(3)]; y7 = [ax7(1)/(ax7(1)+ax7(2)+ax7(3)) ax7(2)/(ax7(1)+ax7(2)+ax7(3)) ax7(3)/(ax7(1)+ax7(2)+ax7(3))]; x8o = poly([0],'x8o'); x81 = roots(yso - (Ln/Vn)*x8o + (y(2)/Vn)*xwo); x8p = poly([0],'x8p'); x82 = roots(ysp - (Ln/Vn)*x8p + (y(2)/Vn)*xwp); x8m = poly([0],'x8m'); x83 = roots(ysm - (Ln/Vn)*x8m + (y(2)/Vn)*xwm); x8 = [x81 x83 x82]; ax8 = [ao*x8(1) am*x8(2) ap*x8(3)]; y8 = [ax8(1)/(ax8(1)+ax8(2)+ax8(3)) ax8(2)/(ax8(1)+ax8(2)+ax8(3)) ax8(3)/(ax8(1)+ax8(2)+ax8(3))]; x9o = poly([0],'x9o'); x91 = roots(yso - (Ln/Vn)*x9o + (y(2)/Vn)*xwo); x9p = poly([0],'x9p'); x92 = roots(ysp - (Ln/Vn)*x9p + (y(2)/Vn)*xwp); x9m = poly([0],'x9m'); x93 = roots(ysm - (Ln/Vn)*x9m + (y(2)/Vn)*xwm); x9 = [x91 x93 x92]; printf("\n Component x7 ax7 y7 x8 ax8 y8 x9"); printf("\n o %.3f %.3f %.3f %.3f %.3f %.3f %.3f",x7(1),ax7(1),y7(1),x8(1),ax8(1),y8(1),x9(1)); printf("\n m %.3f %.3f %.3f %.3f %.3f %.3f %.3f",x7(2),ax7(2),y7(2),x8(2),ax8(2),y8(2),x9(2)); printf("\n p %.3f %.3f %.3f %.3f %.3f %.3f %.3f",x7(3),ax7(3),y7(3),x8(3),ax8(3),y8(3),x9(3)); printf("\n Component x7 ax7 y7 x8 ax8 y8 x9"); printf("\n o %.3f %.3f %.3f %.3f %.3f %.3f %.3f",y4(1),x5(1),ax5(1),y5(1),x6(1),ax6(1),y6(1)); printf("\n m %.3f %.3f %.3f %.3f %.3f %.3f %.3f",y4(2),x5(2),ax5(2),y5(2),x6(2),ax6(2),y6(2)); printf("\n p %.3f %.3f %.3f %.3f %.3f %.3f %.3f",y4(3),x5(3),ax5(3),y5(3),x6(3),ax6(3),y6(3));
e81f685ca7578f8e5efdc1b652652208bd9d797b
a3f5b45d29e397db1fc6800b4336dd9f85e4e07d
/projects/software_stack/vm/MemoryAccess/BasicTestTemp/BasicTestTemp.tst
fd24a630112c479d560b355f1435bf4da07b3855
[]
no_license
idrisr/nand2tetris
1f5e4ac469489f415e70ee626fa592a9e5730d78
b491e96ce9fc54cccf8aea07214c95cb4ffaa4f5
refs/heads/master
2016-09-06T03:17:26.716980
2015-01-03T01:59:22
2015-01-03T01:59:22
27,518,528
0
0
null
null
null
null
UTF-8
Scilab
false
false
504
tst
BasicTestTemp.tst
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/07/MemoryAccess/BasicTestTemp/BasicTestTemp.tst // load BasicTestTemp.asm, load BasicTestTempManual.asm, output-file BasicTestTemp.out, compare-to BasicTestTemp.cmp, output-list RAM[0]%D1.6.1 RAM[256]%D1.6.1 RAM[257]%D1.6.1; set RAM[0] 256, set RAM[1] 300, set RAM[2] 400, set RAM[3] 3000, set RAM[4] 3010, repeat 100 { ticktock; } output;
8d65afd491e7933918ac55044602ad43ad546599
449d555969bfd7befe906877abab098c6e63a0e8
/3428/CH3/EX1.3.23/Ex1_3_23.sce
2b22b565a04bd589e5a3364af43f2e7b48f2dd1c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
565
sce
Ex1_3_23.sce
//Section-1,Example-6,Page no.AC-273 //To calculate the amount of lime and soda required for the softening of 1 million litres of water. clc; A_1=1.5 //H+(ppm) A_2=396.5 //HCO3-(ppm) A_3=42.0 //Mg2+(ppm) A_4=90.00 //Ca2+(ppm) A_5=14 //FeSO4.7H2O(ppm) V=(10^6/10^6) L_R=(74/100)*((A_1*(100/2))+(A_2*(100/122))+(A_3*(100/24))+(A_5*(100/278)))*V*(100/91) disp(L_R,'Lime requirement(kg)') S_R=(106/100)*((A_1*(100/2))-(A_2*(100/122))+(A_3*(100/24))+(A_4*(100/40))+(A_5*(100/278)))*V*(100/97.2) disp(S_R,'Soda requirement(kg)')
fc637257d79afabe051e8221b3ed96cc991aec87
caafd05eb866a2bd249681ceeb5734ca2df71833
/TP3/calcoef.sci
9e1df83ab2ce60144d87558498722f0ab14e6ccc
[ "MIT" ]
permissive
mmewen/MT09-numerical-analysis
5fb1f251e86f9d43d7eeb23ce7bcc91d6ca3fa8b
cde3871aa885811bc31166e778b2a4f052e74b64
refs/heads/master
2021-01-11T22:11:18.631204
2017-01-14T10:59:23
2017-01-14T10:59:23
78,934,966
0
0
null
null
null
null
UTF-8
Scilab
false
false
365
sci
calcoef.sci
function [cc] = calcoef(T, y) n = length(T); exec("cald.sci", -1); d = cald(T, y); h = T(n) - T(1:n-1); cc = zeros(n-1, 4); cc(:, 1) = y(1:n-1); cc(:, 2) = d(1:n-1); cc(:, 3) = (y(2:n) - y(1:n-1)) ./ (h .* h) + d(1:n-1) ./ h; cc(:, 4) = (d(2:n) + d(1:n-1)) ./ (h .* h) - 2* (y(2:n) - y(1:n-1)) ./ (h .* h .* h); endfunction
569c8d140e7474ce42467506943ebc50422e2169
449d555969bfd7befe906877abab098c6e63a0e8
/3831/CH17/EX17.3/Ex17_3.sce
82198db42d8d7db2b1e7ed446fb3ffc0dd6b7ab5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
364
sce
Ex17_3.sce
// Example 17_3 clc;funcprot(0); // Given data m_h=80.0;// kg m_m=0.008;// kg // Solution BMRbym_human=293*(m_h^-0.25);// kJ/kg.d BMRbym_mouse=293*(m_m^-0.25);// kJ/kg.d printf("\nThe BMR per unit mass of an 80.0 kg human,(BMR/m)_human=%2.0f kJ/kg.d \nThe BMR per unit mass of an 8.00 gram mouse,(BMR/m)_mouse=%3.0f kJ/kg.d",BMRbym_human,BMRbym_mouse);
87ed5c948a9f20560bfa0f7780c17b2e1ee80d30
91bba043768342a4e23ee3a4ff1aa52fe67f7826
/cs/142/3/tests/test20.tst
b9b1cfaf06eee10edf3f5c79a51d37fdc38efcfa
[]
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
123
tst
test20.tst
type newType = short; var newType : newType; void newType (int a, short b, newType c) { PRINT SYMBOL TABLE }
39a09c059c6200f9ae731140037fa609412ef063
b51b428c608eb45addd88eaa690a9d3ad63f1b8f
/stepresponsetest.sce
90380759b20c1ce626219d074ea6cfa91aa09ad5
[]
no_license
AntiJoe/PID-tuning
18d57deebfc470a726189963e5fada6ce5d59155
bebbfae49743eba90d43b2bac3c74f2446e21e15
refs/heads/master
2021-01-19T10:11:31.016248
2015-03-26T02:20:55
2015-03-26T02:20:55
32,894,466
0
0
null
null
null
null
UTF-8
Scilab
false
false
681
sce
stepresponsetest.sce
s = %s; clf(0);clf(1); k=1; z=0.2; w=6.2; g = syslin('c', k*w^2/(s^2+2*z*w*s+w^2)); kp=10; ti=20; td=5;// not used du=1;// if derivative is used = 1... not used = 0 c = syslin('c', (kp + (ti/kp)/s)+ (du*td/kp)*s); h = g*c/(1+g*c); scf(0); subplot(2,1,1),bode (g); subplot(2,1,2),bode (h); t = [0:0.01:3]; scf(1); plot2d(t,csim('step',t,g),3); //step responce of plant plot2d(t,csim('step',t,h),6); //step responce of plant + controller for i= 1:25 c = syslin('c', (kp + (ti/kp)/s)+ (du*i/kp)*s); h = g*c/(1+g*c); plot2d(t,csim('step',t,h),7+i); end xtitle('Testing Derivative action', 'Radians/sec', 'Magnitude'); e=gce(); p=e.children(1); datatipCreate(p);
0cb3a2a243557498a03bd1d0b5cedfd9e38407b9
449d555969bfd7befe906877abab098c6e63a0e8
/1475/CH1/EX1.20/Example_1_20.sce
c18f4e6049d5a086a8d24293a208e36c8b678f1f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Example_1_20.sce
//Example 1.20 clc; clear; N=factorial(5); disp(N,"total No. of ways in which 5 Persons can occupy seats in row ="); M=factorial(4)*2; disp(M,"No. of favourable cases such that A and B can sit next to each other= "); P=M/N; disp(,P,"Probability that A and B can sit next to each other= ");
e8b5dcfb7af14f6c1487edacb1529caf959465fd
449d555969bfd7befe906877abab098c6e63a0e8
/1952/CH13/EX13.1.15/Ex15.sce
90c0492eef7dc7d97ba04b24a741bb58383f46e9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
509
sce
Ex15.sce
// Additional solved numerical questions , Example(set 1) 15_b_3 , pg 352 a=2.88*10^-8 //lattice constant (in cm) d=7200 //density (in Kg/m^3) C=8/a^3 // atomic concentration n=8 //number of atoms/cell n1=C/n //unit cell concentration //since density =7200 Kg/m^3 //7200 Kg = 10^6 cc //hence 1Kg = (10^6)/7200 cc N=(n1*10^6)/7200 //number of unit cells present in 1 Kg of metal printf("Number of unit cells present in 1 Kg of metal=") disp(N) printf("unit cells")
ef14d8a3ff75c9f7c7309c3e1547d9842eec7008
449d555969bfd7befe906877abab098c6e63a0e8
/2063/CH7/EX7.12/7_12.sce
9ac9a1dc98b92cbf276a7fc3af4d58c6ddae6f26
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
879
sce
7_12.sce
clc clear //Input data d=0.15;//Diameter of the piston in m l=0.19;//Length of the stroke in m V=0.00091;//Clearance volume in m^3 N=250;//Speed of the engine in rpm M=6.5;//Indicated mean effective pressure in bar c=6.3;//Gas consumption in m^3/hr H=16000;//Calorific value of the has in kJ/m^3 r1=1.4;//Polytropic index //Calculations Vs=(3.14*d^2*l)/4;//Swept volume in m^3 Vt=Vs+V;//Total cylinder volume in m^3 r=Vt/V;//Compression ratio na=(1-(1/r^(r1-1)))*100;//Air standard efficiency in percent A=(3.14*d^2)/4;//Area of the bore in m I=(M*10^5*l*A*N)/(1000*60);//Indicated power in kW Hs=(c*H)/(60*60);//Heat supplied per second nt=(I/Hs)*100;//Indicated thermal efficiency in percent //Output printf('(a)The air standard efficiency is %3.1f percent\n (b)Indicated power is %3.3f kW\n (c)Indicated thermal efficiency is %3.1f percent',na,I,nt)
ce1a333c6a1d441707df7bba01203fcc47a29282
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.3/macros/percent/%spfs.sci
ba5c787e9c300ddfc26dd9e6446ced5da730d45f
[ "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
63
sci
%spfs.sci
function a=%spfs(a,b) // [a;b] a sparse b full a=[a;sparse(b)]
bebb5fccde912debed45d6b38ba90ae68f3450e7
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.1/Unix/scilab-2.1/macros/auto/freson.sci
a9918c7028d8eff5041a130d360c20cf426d95ce
[ "MIT", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931111
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
895
sci
freson.sci
function [fr,g]=freson(h,selec) [lhs,rhs]=argn(0) [n,d]=h(2:3); if type(n)=1 then n=poly(n,varn(d),'c'),end d0=coeff(d,0) if d0=0 then error('infinite gain at zero frequency'), end; ar0=abs(coeff(n,0)/d0)^2 //look for omega such that derivative of magn. is zero niw=horner(n,%i*poly(0,'w')); diw=horner(d,%i*poly(0,'w')) niw=real(niw*conj(niw));diw=real(diw*conj(diw)); modul_d=derivat(niw/diw);w=roots(modul_d(2)); //roots >0 eps=1.e-7 fr=[];g=[];for i=w', if abs(imag(i))<eps then if real(i)>0 then mod2=abs(freq(niw,diw,real(i))) if mod2>ar0 then fr=[fr;real(i)],g=[g;mod2], end; end; end, end; if fr=[] then return,end fr=fr/(2*%pi); if rhs=1 then g=sqrt(g/ar0) else if part(selec(1),1)='f' then g=sqrt(g/ar0) else g=10*log(g)/log(10) end; end;
fbf0d47eb073a58250c343d786362d88799206db
449d555969bfd7befe906877abab098c6e63a0e8
/2507/CH4/EX4.4/Ex4_4.sce
add3a97a404b7e2836dad7cc59423b1dc965972d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
501
sce
Ex4_4.sce
clc clear printf("Example 4.4 | Page number 103 \n\n"); //find Cv and Cp //Given data t = poly(0,'t'); //°C //Temperature in °C u = 196 + .718*t; //KJ/kg //specific internal energy pv = 287*(t+273); //Nm/kg //p is pressure and v = specific volume //Solution Cv = coeff(derivat(u)); printf("Specific heat at constant volume,Cv = %.3f kJ/kgK\n",Cv(1)); h = u + pv*.001 //KJ/kg //enthalpy Cp = coeff(derivat(h)); printf("Specific heat at constant pressure,Cp = %.3f kJ/kgK",Cp(1));
341b558e2abe91d05f7e7518264403c06801cb3d
449d555969bfd7befe906877abab098c6e63a0e8
/3754/CH31/EX31.5/31_5.sce
f7957836bb9daf4be1596eaad51345ac666601b4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
31_5.sce
clear// //Variables C = 1.0 * 10**-9 //Capacitance (in Farad) L1 = 4.7 * 10**-3 //Inductance1 (in Henry) L2 = 47.0 * 10**-6 //Inductance2 (in Henry) //Calculation L = L1 + L2 //Net inductance (in Henry) fo = 1/(2*%pi*(L * C)**0.5) //Frequency of oscillations (in Hertz) //Result printf("\n Frequency of oscillations is %0.2f ",fo*10**-3)
6975ddb744a8fa1ae79f867814e05aac98fdea6c
b513eb49824ff62ddd2289a920c92cfcb362d5f2
/magister/course_1/ushakov/scilab/plot.sce
d5fb1fe49b5c52d6c74893758e8f0e77d6ba3e4f
[]
no_license
kirillin/ifmo
6264ac42ec2031777145b39d4930f2f645e1d316
633919ba09d43814298c3a2145d5d6f72b5b068e
refs/heads/master
2021-01-12T09:32:27.270130
2018-11-18T12:17:46
2018-11-18T12:17:46
76,181,268
3
1
null
null
null
null
UTF-8
Scilab
false
false
959
sce
plot.sce
W = O //plot([0,50], [1.05,1.05], "g--") plot(W.time, W.values(:, 1), "k--"); plot(W.time, W.values(:, 2), "b"); plot(W.time, W.values(:, 3), "r"); plot(W.time, W.values(:, 4), "g"); //plot(W.time, W.values(:, 1), "b"); //plot(W.time, W.values(:, 2), "k--"); //plot([0,4], [1.3+0.065, 1.3+0.065], "r--") //plot([0,4], [1.3-0.065, 1.3-0.065], "r--") //plot([0,4], [0.7+0.035, 0.7+0.035], "g--") //plot([0,4], [0.7-0.035, 0.7-0.035], "g--") xgrid(color(200,200,200),1); xlabel("$\LARGE t, [sec]$"); //ylabel("$\LARGE h$"); a = gca() a.font_size = 4; a.x_label.font_size = 5; a.y_label.font_size = 5; a.children.children.thickness = 2; a.data_bounds = [0,0;30,3] //a.title.text = "$\LARGE y(t, \Delta q_7)$"; a.title.text = "$\LARGE y(t, q_j)$"; a.title.font_size = 5 legend("$g(t)$", "$y(t, 0)$", "$y(t, 0.2)$", "$y(t, -0.2)$", 1) //legend("$g(t)$", "$y(t, 0.3)$", "$y(t, 0)$", "$y(t, -0.3)$", 1) //legend("$y(t)$", "$g(t)$", 1) //legend("y(kT)", "y(t)", 4)
0f16daf89b756b9d20b4df36b98e66a34fcc9c8f
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.4.1/macros/util/%b_triu.sci
fdc005cd537f9f558458551afd5891d7a68c401b
[ "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
312
sci
%b_triu.sci
function d=%b_triu(a,k) // g_triu - implement triu function for sparse matrix, rationnal matrix ,.. // Copyright INRIA [lhs,rhs]=argn(0) if rhs==1 then k=0,end [m,n]=size(a) if k<=0 then mn=mini(m,n-k) else mn=min(m+k,n) end a=matrix(a,m*n,1) i=(1:mn)+((1:mn)+(k-1))*m d(m*n,1)=%f d(i)=a(i) d=matrix(d,m,n)
7ef569a7d02d3c4fdae7761e3fc14ac0faf71120
1bb72df9a084fe4f8c0ec39f778282eb52750801
/test/MO2.prev.tst
dd19171a29cff2c13a003db00ca675f77ea56ef7
[ "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
639
tst
MO2.prev.tst
720 monomial order tests: 0 failed + 64 - 64 + 128 + 128*x4^4 + 128*a^2*x4^4 + 128*a^2*b*x4^4 + 16384*a^4*b^2*x4^8 signature=/x4.08/b.02/a.04 characteristic(false,true )=/x4.08/b.02/a.04 characteristic(true ,false)=/08/02/04;16384 characteristic(true, true )=/x4.08/b.02/a.04;16384 SIGNATURE=~~~~ getFactorOf( + a^4*b^2) = + 16384*x4^8 + 24*a^4*b^2*x4^8 / + 100*a^3*b^2 = + 0 gcd( + 24*a^6*b^6*c*x4^8, + 100*a^5*b^4) = + 4*a^5*b^4 lcm( + 24*a^6*b^6*c*x4^8, + 100*a^5*b^4) = + 600*a^6*b^6*c*x4^8 + 2400*a^6*b^6*c*x4^8 / + 100*a^5*b^4 = + 24*a*b^2*c*x4^8 (32*x^2).reducePowerCoefficient("x") = 4, + 2*x^2
852f066dab3731a71aa8cbdd066af82845aa92b4
449d555969bfd7befe906877abab098c6e63a0e8
/858/CH2/EX2.12/example_12.sce
0108a5adc07f405a2a10d975885f9b673939c84a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
example_12.sce
clc clear printf("example 2.12 page number 74\n\n") //to find the vapor pressure of water w_water=540 //in gm w_glucose=36 //in gm m_water=18; //molar mass of water m_glucose=180; //molar mass of glucose x=(w_water/m_water)/(w_water/m_water+w_glucose/m_glucose); p=8.2*x; depression=8.2-p; printf("depression in vapor pressure = %f Pa",depression*1000)
6d3639e073d86d3809287ad20c1db7847b97cb61
449d555969bfd7befe906877abab098c6e63a0e8
/3740/CH7/EX7.8/Ex7_8.sce
659deb1ad314e78ce2e9abd277d09f9dad00e84f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
358
sce
Ex7_8.sce
//Optoelectronics - An Introduction, 2nd Edition by J. Wilson and J.F.B. Hawkes //Example 7.8 //OS=Windows XP sp3 //Scilab version 5.5.2 clc; clear; //given d=5e-6;//Thickness of Si layer in m D=3.4e-3;//Minority carrier diffusion coefficient in m^2 s^-1 Tdiff=(d^2)/(2*D);//Diffusion time of carriers in s mprintf("\n Tdiff = %.1e s",Tdiff);
cd839195a6eee9cdf062de1433800d5ef823b25c
449d555969bfd7befe906877abab098c6e63a0e8
/551/CH13/EX13.3/3.sce
a320b137f13f8c59de58d1e2770232f80eec4086
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
923
sce
3.sce
clc p1=18*10^5; //Pa T1=683; //K T2=T1; r1=6; //ratio V4/V1; Isentropic compression r2=1.5; //ratio V2/V1; Isothermal expansion y=1.4; V1=0.18; //m^3 disp("(i) Temperatures and pressures at the main points in the cycle") T4=T1/(r1)^(y-1); disp("T4=") disp(T4) disp("K") T3=T4; disp("T3=") disp(T3) disp("K") p2=p1/r2; disp("p2=") disp(p2/10^5) disp("bar") p3=p2/(r1)^y; disp("p3=") disp(p3/10^5) disp("bar") p4=p1/(r1)^y; disp("p4=") disp(p4/10^5) disp("bar") disp("(ii) Change in entropy =") dS=p1*V1/T1/10^3*log(r2); disp(dS) disp("kJ/K") disp("(iii) Mean thermal efficiency of the cycle") Qs=T1*(dS); Qr=T4*(dS); n=1-Qr/Qs; disp("n=") disp(n) disp("(iv) Mean effective pressure of the cycle =") pm=(Qs-Qr)/8/V1/100; //bar disp(pm) disp("bar") n=210; //cycles per minute disp("(v) Power of the engine =") P=(Qs-Qr)*n/60; //kW disp(P) disp("kW")
cc498e2271efc0ddcbfa7b0c640bac1e03c54dc6
449d555969bfd7befe906877abab098c6e63a0e8
/2444/CH6/EX6.20/ex6_20.sce
6091c463eb3f3af4afca35f2d3842003757992c1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
403
sce
ex6_20.sce
// Exa 6.20 clc; clear; close; format('v',5) // Given data A = 300;// voltage gain Rin = 1.5;// in k ohm Rout = 50;// in k ohm Beta = 1/15;// unit less Af = A/(1+(Beta*A));// unit less disp(Af,"The voltage gain is"); Rinf = (1+(Beta*A))*Rin;// in k ohm disp(Rinf,"The input resistance in k ohm is"); Routf = Rout/(1+(Beta*A));// in k ohm disp(Routf,"The output resistance in k ohm is");
958f1ede29d19a7644cf03764cadd67facdf7969
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH4/EX4.35/Ex4_35.sce
3628db3da70cba1448901628488f73c1fb2295fa
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
130
sce
Ex4_35.sce
clear //Given d=5 t=2 K=3.0 //Calculation D=d+(t-t/K) //Result printf("\n New separation between the plates are %0.2f mm",D)
4ea0b2ed5f3263245c894a7198c39cec21cba108
449d555969bfd7befe906877abab098c6e63a0e8
/555/CH6/EX6.7/7.sce
bab5492ab0dbc32ae9dc4ed15bc435112c53a943
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
540
sce
7.sce
// Implementation of example 6.7 // Basic and Applied Thermodynamics by P.K.Nag clc clear // T temperature,W work done,Q heat trnsfer.. // Radiation from panel is proportional to area and T2^4 // so if A is area then Q2=K*A*(T2)^4 // for minimum area we differentiate the expression A=W/[K*(T2^3)*(T1-T2)].. // finally the expression for minimum area is Amin=256*W/[27*K*(T1^4)] W=1 // kW K= 5.67*10d-9 // W/(m^2)*(K^4) T1=1000 // K Amin= (256*W*1000)/[27*K*(T1*T1*T1*T1)]; printf("minimum area = %.4f m^2",Amin); // end
1c217841ebf8f2ebaed87081a0e8dc1c62eead9f
449d555969bfd7befe906877abab098c6e63a0e8
/1694/CH3/EX3.15/EX3_15.sce
937859c6969979615b828742ac86d1a2c330a17e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
343
sce
EX3_15.sce
clear; clc; printf("\nEx3.15\n"); //page no.-132 //given v=10^-6;........//velocity in m/s m=10^-9;.......//mass in kg a=10^-4;.......//width in m h=6.62*10^-34;....//planck's constant in J-s E=(m*v^2)/2......//kinetic energy in joule n=sqrt((8*m*a^2*E)/h^2).........//quantum number printf("\nquantum number is 3*10^14\n");
17bb5650b9dd697dfb8930e0d2f481932f57b994
449d555969bfd7befe906877abab098c6e63a0e8
/2165/CH6/EX16.28/6_28.sce
21c506dac90a26580a7ff36ab00e7a6a341d5ac8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
497
sce
6_28.sce
clc //initialisation of variables p=100//lb/in62 p1=0.5//lb/in^2 T1=659.3//C.H.U/lb T2=26.2//C H U/lb W=181//C H U/lb H1=66//C H U/lb H2=115//C H U /lb D=0.912//C H U/lb H3=533.4//C H U/lb T3=108.5 //Degree C T4=26.4//Degree C W1=82.1/(D*H3)//lb s=1-W1//lb //CALCULATIONS T=W/(T1-T2)*100//percent Wd=H1+(H2*s)//C H U/lb H=T1-T3//C H U//lb TE=Wd/H*100//percent //RESULTS printf('the without bleeding % f pecent',T) printf('the proper weight of steam is bled=% f percent',TE)
e579899c92227e997d440538a2d9d7b3e8d49a37
491f29501fa7d484a5860f64aef3fa89fb18ca3d
/.sandbox/robotics/RX90Control/src/Trajectory.sci
a8debcdb9e911d7f60c3fbbccf4b7f07f35b4f95
[ "Apache-2.0" ]
permissive
siconos/siconos-tutorials
e7e6ffbaaea49add49eddd317c46760393e3ef9a
0472c74e27090c76361d0b59283625ea88f80f4b
refs/heads/master
2023-06-10T16:43:13.060120
2023-06-01T07:21:25
2023-06-01T07:21:25
152,255,663
7
2
Apache-2.0
2021-04-08T12:00:39
2018-10-09T13:26:39
Jupyter Notebook
UTF-8
Scilab
false
false
4,650
sci
Trajectory.sci
// Copyright (C) INRIA 1999-2008 // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License version 2 as published // by the Free Software Foundation. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General // Public License for more details. // // You should have received a copy of the GNU General Public License along // with this program; if not, write to the Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. //% // @file ActuationModel/NoDynamics/TaskFunctionControl/Trajectory.scilab // @author Florence Billet // // Affiliation(s): INRIA, team BIPOP // // Email(s): Florence.Billet@inria.fr // // @brief Compute the position, velocity and acceleration desired at a given time t // // Description: // //% // Compute the position, velocity and acceleration desired at a given time t // @param t (float) time // // @return position (float vector, size = NDOF) desired position in task space // @return velocity (float vector, size = NDOF) desired velocity in task space // @return acceleration (float vector, size = NDOF) desired acceleration // in task space // @return contacts (int vector, variable size <= NCONTACTS ) number of the // lines of contact vector which correspond to effectives contacts at t. // function [position, velocity, acceleration, contacts] = Trajectory(t) if(CVERSION) then if getTrajectoryName() == 'RX90Circle' then taille = [6, 1]; end; if getTrajectoryName() == 'PA10Infinity' then taille = [7, 1]; end; [position_c, velocity_c, acceleration_c, contacts_c] = fort("trajectory", t, 1, "d", "out", taille, 2, "d", taille, 3, "d", taille, 4, "d", [1,1], 5, "i"); end; if(~CVERSION | DEBUG) then if getTrajectoryName() == 'RX90Circle' then a = %pi/3; r = 0.2; position = zeros(6, 1); velocity = zeros(6, 1); acceleration = zeros(6, 1); position(1) = (0.45 + 0.07)*cos(%pi/2 - %pi/3) + ... 0.38*cos(%pi/2 - %pi/3 + %pi/6); position(2) = r*cos(a*t) + 0.42 + (0.45 + 0.07)*sin(%pi/2 - %pi/3) + ... 0.38*sin(%pi/2 - %pi/3 + %pi/6) - r; position(3) = r*sin(a*t); position(4) = 0.1*cos(%pi/2 - %pi/3); position(5) = 0.15*cos(%pi/2 - %pi/3); velocity(1) = 0; velocity(2) = - r*a*sin(a*t); velocity(3) = r*a*cos(a*t); acceleration(1) = 0; acceleration(2) = - r*a^2*cos(a*t); acceleration(3) = - r*a^2*sin(a*t); contacts = 0; elseif getTrajectoryName() == 'PA10Infinity' then a = %pi/3; ry = 0.4; rz = 0.3; position = zeros(7, 1); velocity = zeros(7, 1); acceleration = zeros(7, 1); position(1) = 0.45*cos(17*%pi/32 - %pi/2) + 0.48*sin(%pi/6); position(2) = ry*sin(a*t)*cos(a*t)/(1 + (cos(a*t))^2) + ... 0.48*cos(%pi/6) - 0.45*sin(17*%pi/32 - %pi/2) + 0.335; position(3) = rz*sin(a*t)/(1 + (cos(a*t))^2); position(6) = 0.158*sin(%pi/2 - (%pi/4 + %pi/6)); velocity(1) = 0; velocity(2) = ry*(cos(a*t)^2*a/(1 + cos(a*t)^2) - ... sin(a*t)^2*a/(1 + cos(a*t)^2) + ... 2*sin(a*t)^2*cos(a*t)^2*a/(1 + cos(a*t)^2)^2); velocity(3) = rz*(cos(a*t)*a/(1 + cos(a*t)^2) + ... 2*sin(a*t)^2*cos(a*t)*a/(1 + cos(a*t)^2)^2); acceleration(1) = 0; acceleration(2) = ry*(-4*cos(a*t)*a^2*sin(a*t)/(1 + cos(a*t)^2) + ... 6*cos(a*t)^3*a^2*sin(a*t)/(1 + cos(a*t)^2)^2 - ... 6*sin(a*t)^3*a^2*cos(a*t)/(1 + cos(a*t)^2)^2 + ... 8*sin(a*t)^3*cos(a*t)^3*a^2/(1 + cos(a*t)^2)^3); acceleration(3) = rz*(-sin(a*t)*a^2/(1 + cos(a*t)^2) + ... 6*cos(a*t)^2*a^2*sin(a*t)/(1 + cos(a*t)^2)^2 + ... 8*sin(a*t)^3*cos(a*t)^2*a^2/(1 + cos(a*t)^2)^3 - ... 2*sin(a*t)^3*a^2/(1 + cos(a*t)^2)^2); contacts = 0; end; end; if(CVERSION) then if(DEBUG) then if(or(abs(position_c-position)>EPS)) then printf("max(abs(position_c-position)) = %g\n", max(abs(position_c-position))); end; if(or(abs(velocity_c-velocity)>EPS)) then printf("max(abs(velocity_c-velocity)) = %g\n", max(abs(velocity_c-velocity))); end; if(or(abs(acceleration_c-acceleration)>EPS)) then printf("max(abs(acceleration_c-acceleration)) = %g\n", max(abs(acceleration_c-acceleration))); end; if(contacts_c ~= contacts) then printf("contacts_c different de contacts\n"); end; end; position = position_c; velocity = velocity_c; acceleration = acceleration_c; contacts = contacts_c; end; endfunction
b86581dd479998d6d0e0f0c3e1b64e7ac43828b7
449d555969bfd7befe906877abab098c6e63a0e8
/409/CH23/EX23.6/Example23_6.sce
e7ab9708d6cf802b6ce7fef4321a9d04fbdd816a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
592
sce
Example23_6.sce
clear; clc; // Example 23.6 printf('Example 23.6\n\n'); //page no. 700 // Solution //Given N2 = 1 ;// Moles of N2 - [kg mol] P = 100 ;// Pressure of gas - [kPa] T1 = 18 ;// Initial temperature - [degree C] T2 = 1100 ;// Final temperature - [degree C] // In the book it is mentioned to use tables in Appendix D6 to calculate enthalpy change, we get H_T1 = 0.524;// Initial enthalpy -[kJ/kg mol] H_T2 = 34.715 ;// Final enthalpy - [kJ/kg mol] del_H = H_T2 - H_T1 ;// Change in enthalpy - [kJ/kg] printf('\n Change in enthalpy of N2 over given range is %.3f kJ/kg mol N2 .\n ',del_H);
d8f4c86724e588590f22eae63e9d8964293bbbd2
0919e454d74183a2ee1a4b05a37bcf9154e64d87
/02/Nand2FullAdder.tst
5507860f5b9404cb46e7689afb802142752338b1
[]
no_license
youkidearitai/nand2tetris
311b2e8d2fdf9fccbda7c775b8d4cbb74254d07f
0e67824885724ec8fe7a8f2dcd74763a42fbb703
refs/heads/master
2021-11-28T06:17:33.980008
2021-11-08T15:55:44
2021-11-08T15:55:44
42,762,825
7
1
null
null
null
null
UTF-8
Scilab
false
false
448
tst
Nand2FullAdder.tst
load Nand2FullAdder.hdl, output-file Nand2FullAdder.out, compare-to Nand2FullAdder.cmp, output-list a b c carry sum; set a 0, set b 0, set c 0, eval, output; set a 0, set b 0, set c 1, eval, output; set a 0, set b 1, set c 0, eval, output; set a 0, set b 1, set c 1, eval, output; set a 1, set b 0, set c 0, eval, output; set a 1, set b 0, set c 1, eval, output; set a 1, set b 1, set c 0, eval, output; set a 1, set b 1, set c 1, eval, output;
226175c1a92fbb379b2a3d432c00cddcb40547a8
449d555969bfd7befe906877abab098c6e63a0e8
/608/CH20/EX20.23/20_23.sce
c4c8bf5778d401d09ec3e01e20b4096dd0543bd9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
913
sce
20_23.sce
//Problem 20.23: A single-phase, 220 V/1760 V ideal transformer is supplied from a 220 V source through a cable of resistance 2 ohm. If the load across the secondary winding is 1.28 kohm determine (a) the primary current flowing and (b) the power dissipated in the load resistor. //initializing the variables: V1 = 220; // in Volts V2 = 1760; // in Volts V = 220; // in Volts RL = 1280; // in Ohms R = 2; // in Ohms //calculation: //Turns ratio, tr = N1/N2 = V1/V2 tr = V1/V2 //Equivalent input resistance of the transformer, //R1 = RL*(tr^2) R1 = RL*(tr^2) //Total input resistance Rin = R + R1 // Primary current I1 = V1/Rin //For an ideal transformer V1/V2 = I2/I1, I2 = I1*tr //Power dissipated in load resistor RL P = I2*I2*RL printf("\n\n Result \n\n") printf("\n (a) primary current flowing is %.0f A", I1) printf("\n (b) power dissipated in the load resistor is %.0f W", P)
4dce0a00e597fcf28d073bfb8d49e46eaf6965a2
449d555969bfd7befe906877abab098c6e63a0e8
/2207/CH5/EX5.3.1/ex_5_3_1.sce
af6eb8d74c03514c392c3c92572f3324dde2b52b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
279
sce
ex_5_3_1.sce
//Example 5.3.1: Maximum frequency clc; clear; close; //given data : T_off=100;// in micro-sec L=40;// in micro-H C=5;// in micro-farad R=4;//in ohm Tr=((2*%pi)/sqrt((1/(C*10^-6*L*10^-6))-(R^2/(4*(L*10^-6)^2))))*10^6; f=(1/(Tr+T_off))*10^3; disp(f,"maximum frequency,f(kHz) = ")
97b77bb63d67602887cfb1a8996041cb9fcf04ce
449d555969bfd7befe906877abab098c6e63a0e8
/2519/CH8/EX8.1/Ex8_1.sce
b0144f905fe4c646fe2b0e4c9ea7335adbce4ada
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
257
sce
Ex8_1.sce
clc clear //Initialization of variables P=500 //psia T=700 //F J=778 //calculations dpds=1490 *144/J //results printf("dp by ds at constant volume = %d F/ft^3/lbm",dpds) disp("The answer is a bit different due to rounding off error in textbook")
ce85300244cfb8aa510efd937989e2ed180cd39c
449d555969bfd7befe906877abab098c6e63a0e8
/380/CH4/EX4.9/4_9.txt
825b5338486e1b046f8474b01d3848ed98ed64b8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,696
txt
4_9.txt
//Caption:Find the (a) generator voltage (b) generator current (c) efficiency //Exa:4.9 clc; clear; close; //Refer to fig:4.29 //For region A V_bA=230;//in Volts S_bA=.46000;//Volt-Ampere I_bA=S_bA/V_bA;//in Amperes Z_bA=V_bA/I_bA;//in ohms Z_g_pu=(0.023+%i*0.092)/Z_bA; R_L_pu=0.023/Z_bA; X_L_pu=0.069/Z_bA; //For region B //Per unit parameters on high-voltage side of the step-up transformer V_bB=2300;//in Volts S_bB=46000;//Volt-Ampere I_bB=S_bB/V_bB;//in Amperes Z_bB=V_bB/I_bB;//in ohms R_H_pu=2.3/Z_bB; X_H_pu=6.9/Z_bB; R_cH_pu1=13800/Z_bB; X_mH_pu1=6900/Z_bB; Z_l_pu=(2.07+%i*4.14)/Z_bB;//Per-unit impedance of transmission line //Per unit parameters on high-voltage side of the step-down transformer X_mH_pu2=9200/Z_bB; R_cH_pu2=11500/Z_bB; //For region C V_bC=115;//in Volts S_bC=46000;//Volt-Ampere I_bC=S_bC/V_bC;//in Amperes Z_bC=V_bC/I_bC;//in ohms R_L_pu=0.00575/Z_bC; X_L_pu=0.01725/Z_bC; V_L_pu=1*(cosd(0)+%i*sind(0)); I_L_pu=1*(cosd(-30)+%i*sind(-30)); E_l_pu=V_L_pu+(R_L_pu+%i*X_L_pu)*I_L_pu; I_l_pu=I_L_pu+E_l_pu*(0.01-%i*(1/80)); E_g_pu=E_l_pu+I_l_pu*(0.02+%i*0.06+0.018+%i*0.036+0.02+%i*0.06); I_g_pu=I_l_pu+E_g_pu*((1/120)-%i*(1/60)); V_g_pu=E_g_pu+I_g_pu*(0.02+0.02+%i*0.08+%i*0.06); V_g=V_bA*V_g_pu; disp(abs(V_g),'(a) Generator Voltage (in Volts)='); disp(atand(imag(V_g)/real(V_g)),'Phase of generated voltage (in degree)='); I_g=I_bA*I_g_pu; disp(abs(I_g),'(b) Generator current (in Amperes)='); disp(atand(imag(I_g)/real(I_g)),'Phase of generator current (in degree)='); P_o_pu=0.866;//rated power output at pf=0.866 lagging P_in_pu=real(V_g_pu*conj(I_g_pu)); Eff=P_o_pu/P_in_pu; disp(Eff*100,'(c) Efficiency (%)=');
4cd5648d45151b8171a01e97b0d566211e26223b
9cb37875b74a713c93c09fa50ccc70ac0f71ecdb
/CostDistanceKCD/Justin/JustinHri/human.sce
c716757853d13a50b5d2e3aee9e8e5fd039774d1
[]
no_license
jmainpri/move3d-assets
a5b621daaedaaf8784fed0da1e80d029c83f3983
939db49d17a14e052bb58324b70e6112803d3105
refs/heads/master
2021-01-16T17:48:56.669119
2016-02-16T14:04:09
2016-02-16T14:04:09
20,237,987
1
0
null
null
null
null
UTF-8
Scilab
false
false
2,924
sce
human.sce
#************************************************************ # Scenario of Test # # date : Thu Nov 13 13:04:44 2008 #************************************************************ p3d_sel_desc_name P3D_ENV Test p3d_sel_desc_name P3D_ROBOT superman p3d_set_robot_steering_method Linear p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1278.269287 0.000000 233.628326 3.539829 1.769915 -176.991150 5.280245 -1.760082 3.520164 1.760082 -3.520153 -3.520153 0.000000 52.802368 1.760082 52.802368 119.685349 56.322510 -47.522121 17.600796 56.322510 -10.560470 88.003937 28.161266 89.764023 -14.080633 56.322510 -42.241886 -15.840704 98.564407 26.401184 14.080633 -1.760082 5.280245 8.800387 -5.280235 0.000000 -1.760082 105.604713 5.280245 0.000000 102.000000 0.000000 0.000000 -75.683380 0.000000 0.000000 -75.683380 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 1376.597900 0.000000 217.895767 1.769915 1.769915 -180.000000 0.000000 0.000000 3.520164 0.000000 0.000000 0.000000 -38.721733 160.167160 31.681408 -24.641102 66.882980 -33.441490 0.000000 0.000000 0.000000 0.000000 132.005905 54.562428 103.844635 -17.600786 -96.804321 -77.443459 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 98.564407 0.000000 0.000000 102.000000 0.000000 0.000000 -75.683380 0.000000 0.000000 -75.683380 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_sel_desc_name P3D_ROBOT justin p3d_set_robot_steering_method Linear p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -7.866273 -3.539824 40.951328 -37.411504 0.000000 0.000000 56.833824 -87.315628 -68.534904 54.277283 73.549667 -23.675022 40.575218 -15.000000 -46.000000 -8.000000 119.000000 138.000000 62.000000 29.000000 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -4.000000 -19.500000 28.300000 -8.800000 0.000000 0.000000 13.372668 -63.716812 -23.402164 79.056046 68.534904 -2.780238 25.530972 -15.000000 -46.000000 -8.000000 119.000000 138.000000 62.000000 29.000000 p3d_constraint_dof p3d_fixed_jnt 1 6 0 0 1 0.000000 0 1 p3d_constraint_dof p3d_fixed_jnt 1 7 0 0 1 0.000000 0 1 p3d_constraint_dof p3d_min_max_dofs 0 2 3 2 0 0 2 0.000000 135.000000 0 1 p3d_constraint_dof p3d_lin_rel_dofs 1 4 0 2 2 3 0 0 3 -1.000000 -1.000000 0.000000 0 1 p3d_constraint_dof p3d_fixed_jnt 1 17 0 0 1 -15.000000 0 1 p3d_constraint_dof p3d_fixed_jnt 1 18 0 0 1 -46.000000 0 1 p3d_constraint_dof p3d_fixed_jnt 1 19 0 0 1 -8.000000 0 1 p3d_constraint_dof p3d_fixed_jnt 1 20 0 0 1 119.000000 0 1 p3d_constraint_dof p3d_fixed_jnt 1 21 0 0 1 138.000000 0 1 p3d_constraint_dof p3d_fixed_jnt 1 22 0 0 1 62.000000 0 1 p3d_constraint_dof p3d_fixed_jnt 1 23 0 0 1 29.000000 0 1
94c75fc0b49af61045aae1a310a74aaa184e7d96
449d555969bfd7befe906877abab098c6e63a0e8
/343/CH2/EX2.6/ex2_6.sce
3cc8f64d00107d4317a6de50ed15e5947bc00e5a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
147
sce
ex2_6.sce
function y=f(t),y=6*t,endfunction //Defining the voltage equation T=3; Res=intg(0,3,f)/(T); disp("Volts",Res,"Average voltage value");
3986ae8352dfaf06fabd179203b536bd4f921d0b
3c47dba28e5d43bda9b77dca3b741855c25d4802
/microdaq/examples/audio_processing_demo.sce
4117e41cf354cfc48a78bf4ea57510da2ff15d8a
[ "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
891
sce
audio_processing_demo.sce
// Data acqisition parameters Rate = 44100; Channel = 1; aiRange = [-1, 1]; // analog input range: ±1V aoRange = [-2.5, 2.5]; // analog output range: ±2.5V isContinuous = %T; isDifferential = %F; initialAOData = zeros(Rate / 10, 1); Gain = 1.5; // Init analog input/output scanning mdaqAIScanInit(Channel, aiRange, isDifferential, Rate, -1); mdaqAOScanInit(Channel, initialAOData, aoRange, isContinuous, Rate, -1); // Start scanning - analog input and output mdaqAOScanStart(); mdaqAIScanStart(); // Acquire data in the loop while(mdaqKeyRead(1) == %F) // Audio stream acqisition audioData = mdaqAIScanRead(Rate / 10, 1); // Signal processing audioData = audioData * Gain; // Queue audio stream data mdaqAOScanData(Channel, audioData, %T); end // When finished stop analog input/output scanning mdaqAOScanStop(); mdaqAIScanStop();
be2f2f362cd3923a6d9286f42cd5a9c6f4f8477a
449d555969bfd7befe906877abab098c6e63a0e8
/3311/CH14/EX14.10/Ex14_10.sce
e45629a90f8c911b700dcaa4a428e76357b2dfd6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,465
sce
Ex14_10.sce
// chapter 14 // example 14.10 // Determine the firing angle of the armature convertor, speed of the motor and firing angle of the field convertor // page-885-886 clear; clc; // given P=25; // in HP (power rating of motor) E0=320; // in V (voltgae rating of motor) N=960; // in rpm Eac=210; // in V (ac input voltage) Ra=0.2; // in ohm (armature resistance) Rf=130; // in ohm (field resistance) K_a=1.2; // in V/A rad/s (motor voltage constant) T=110; // in Nm (torque developed) alpha_a=0; // in degree (firing angle for armature convertor) N2=1750; // in rpm // calculate Ep=Eac/sqrt(3); Em=sqrt(2)*Ep; // calculation of peak value of phase voltage Ef=(3*sqrt(3)*Em/%pi)*cosd(alpha_a); If=Ef/Rf; // since T=Ia*Ka*If, therefore we get Ia=T/(K_a*If); w=N*(2*%pi/60); Eb=K_a*If*w; Ea=Eb+Ia*Ra; // since Ea=(3*sqrt(3)*Em/%pi)*cosd(alpha), therefore we get alpha=acosd((Ea/Em)*(%pi/(3*sqrt(3)))); Ea1=(3*sqrt(3)*Em/%pi)*cosd(alpha_a); Eb1=Ea1-Ia*Ra; w1=Eb1/(K_a*If); N1=w1*(60/(2*%pi)); w2=N2*(2*%pi/60); // since Eb=K_a*If*w, therefore we get If=Eb1/(K_a*w2); Ef=If*Rf; // since Ef=(3*sqrt(3)*Em/%pi)*cosd(alpha_f), therefore we get alpha_f=acosd((Ef/Em)*(%pi/(3*sqrt(3)))); printf("\nThe firing angle of the armature convertor is \talpha= %.2f degree",alpha); printf("\nThe speed of the motor is \t\t\t N1= %.2f rpm",N1); printf("\nThe firing angle of the field convertor is \t alpha_f= %.2f",alpha_f); // Note: The answer varies slightly due to precise calculations
dbb37aa20bec84aba8114b219f9ec94a52c6828d
449d555969bfd7befe906877abab098c6e63a0e8
/1544/CH2/EX2.6/Ch02Ex6.sce
8b243423fa713574fd8c8dca5584b06a859029bc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,505
sce
Ch02Ex6.sce
// Scilab code Ex2.6: Pg 43 (2008) clc; clear; E = 64; // E.m.f of battery, V R1 = 6; // Resistance, ohm R2 = 4; // Resistance, ohm // Part (a) // Since R1 & R2 are parallel to one another hence, their equivalent resistance is equal to the sum of reciprocal of their individual resistances R_BC = ( R1*R2)/( R1 + R2 ); // Equivalent resistance across branch BC, ohm R_AB = 5.6; // Resistance across branch AB, ohm // Since R_AB & R_BC are in series, therefore, their equivalent resistance is equal to the sum of their individual resistances R_AC = R_AB + R_BC; // Total circuit resistance, ohm // From Ohm's law, V = I*R, solving for I I = E/R_AC; // Total circuit current, A // Part (b) V_BC = I*R_BC; // Potential difference across branch BC, V I1 = V_BC/R1; // Electric current through resistor R1, A // Part (c) // Since P = I^2*R P_AB = I^2*R_AB; // Power dissipated by 5.6 ohm resistance, W printf("\nThe current drawn fron the supply = %1d A ", I); printf("\nThe current through %1d ohm resistor = %3.1f A", R1, I1); printf("\nThe power dissipated by %3.1f ohm resistor = %5.1f W", R_AB, P_AB); // Result // The current drawn fron the supply = 8 A // The current through 6 ohm resistor = 3.2 A // The power dissipated by 5.6 ohm resistor = 358.4 W
1aebe083272daaff343301360743dbd1b0bcb3a0
449d555969bfd7befe906877abab098c6e63a0e8
/1823/CH1/EX1.8/SolEx1_8.sce
4f531741f5e3f3f607d16c84ed3ce2739cb1e58b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
422
sce
SolEx1_8.sce
//find the Norton equivalent for the network to the left of terminals a; b. //Solved Example 1.8 page no 19 clear clc printf("\n find the Norton equivalent for the network to the left of termin") V1=10//V V2=15//V R1=4//ohm R2=6//ohm Iab1=V1/R1 Iab2=V2/R2 printf("\n Then by superpostion ") In=Iab1+Iab2 Zth=(R1*R2)/(R1+R2) Yn=1/Zth//Rth=Zth printf("\n The value of In =%0.2f A and Yn= %0.4f A",In,Yn)
f1712f3305dd70cc44d13b9e7bd179248ce8f8fb
7c82ece01341a445b10f5cccd1ff7c8614e1c5a2
/TP1_Linear system/Deflation.sci
9bbadfcceaa84607a9c45cf62b52642e1b852281
[ "MIT" ]
permissive
PaulEmmanuelSotir/TPs_3IF
87116bcf91d7f871f77bef26e35684f02c5ece87
51e1b82837bd2e9e01fe84721f127c469f1f24a7
refs/heads/master
2021-06-01T15:55:23.452046
2016-05-24T13:54:53
2016-05-24T13:54:53
43,512,483
0
0
null
null
null
null
UTF-8
Scilab
false
false
659
sci
Deflation.sci
function [vecs,lambdas] = Deflation(A,nbr_val_propre) // Output variables initialisation (not found in input variables) vecs=[]; lambdas=[]; // Display mode mode(0); // Display warning for floating point exception ieee(1); k = 30; // ! L.4: real(nbr_val_propre) may be replaced by: // ! --> nbr_val_propre if nbr_val_propre is Real. vecs = cell(real(nbr_val_propre),1); lambdas = zeros(nbr_val_propre,1); for i = mtlb_imp(1,nbr_val_propre) [v,lambda_v] = PuissancesIterees(A,k); [u,truc] = PuissancesIterees(mtlb_t(A),k); A = mtlb_s(A,(lambda_v*(v*u'))/(u'*v)); lambdas = mtlb_i(lambdas,i,lambda_v); vecs(i).entries = v; end; endfunction
e39abc397ba06facd8dea41a341668e07a4f7f47
449d555969bfd7befe906877abab098c6e63a0e8
/1052/CH18/EX18.2/182.sce
7887e5baa75be5d870d49c9b3d9ff171f5751f12
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
505
sce
182.sce
clc; //Example 18.2 //page no 227 printf("\n Example 18.2 page no 227\n\n"); //cal. equivalent length of pipe that would cause the same head los for gate and globe valve located in piping D=3//diameter of pipe,in L_gate=7//L/D ratio for fully open gate valve L_globe=300//L/D ratio for globe valve L_eq_gate=L_gate*D//equivalent length for gate valve printf("\n L_eq_gate=%f in",L_eq_gate); L_eq_globe=L_globe*D//equivalent length for globe valve printf("\n L_eq_globe=%f in ",L_eq_globe);
4a35f1ec55311d1681bcc9824e6e90ba14c89e59
d465fcea94a1198464d7f8a912244e8a6dcf41f9
/kMatlab/loader.sce
2eee7deffcfd104b79beebb889736658fe39ca81
[]
no_license
manasdas17/kiks-scilab
4f4064ed7619cad9e2117a6c0040a51056c938ee
37dc68914547c9d0f423008d44e973ba296de67b
refs/heads/master
2021-01-15T14:18:21.918789
2009-05-11T05:43:11
2009-05-11T05:43:11
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
59
sce
loader.sce
path=get_absolute_file_path("loader.sce") load(path+"lib")
9b945acdf0bc3069da3a203a80168ddb13d7d10b
449d555969bfd7befe906877abab098c6e63a0e8
/978/CH6/EX6.1/Example6_1.sce
c802468473b813cc4507cefb1ad872a77614b64a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
264
sce
Example6_1.sce
//chapter-6,Example6_1,pg 169 n=8//8-bit resolution(conversion of 1 in 256) Tr=10*10^-6//total trace time(256 conversions in 10*10^-6 s) Nc=256//total conversions S=(Nc/Tr)//speed of ADC printf("speed of ADC\n") printf("S=%.2f conversions/sec",S)
0d149caf863b220008be99996e3ed05c66fe7b97
449d555969bfd7befe906877abab098c6e63a0e8
/2825/CH3/EX3.7/Ex3_7.sce
6ea695440f3e5f067dec1e19361aaa640fc2d3c2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
582
sce
Ex3_7.sce
//Ex3_7 Pg-184 clc disp("We know that (I0)*T2 = (I0)*T1*(2)^((T2-T1/10))") disp("Substituting the given values,we have ") disp("(40*10^(-6)) = (25*10^(-6)*(2)^x) where x=(T2-T1)/10") disp("(2)^x = 1.6") disp("Taking log on both sides,one obtains") disp(" x*log(2) = log(1.6)") disp("or x = log(1.6)/log(2)") x=log(1.6)/log(2) disp(" Now x = (T2-T1)/10 or 0.678 = (T2-25)/10") T1=25 //temperature T1 T2=x*10+T1 //temperature T2 diff_temp=T2-T1 //change in temperature printf("\n So the change in temperature = %.2f degree celsius",diff_temp)
87b3b92ad9385cfbef256b0f5b99ef2aa42aa51f
449d555969bfd7befe906877abab098c6e63a0e8
/2522/CH10/EX10.8/exm10_8.sce
87d5be571e4c5139285a4f37efeeea3a251841c5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
261
sce
exm10_8.sce
// page no 328 // example no 10.8 // TRANSFER A PROGRAM TO AN ADDRESS IN HL REGISTER clc; printf('\n \nThe program can be transfered using Jump instruction. \n \n'); printf('PCHL a 1 byte instruction can also be used in place of Jump instruction \n \n');
fcc27b4362a6ab52a1a2e6bbef4bcacf15ae4fe5
52bc9d4a4a76ae754ef5ed1e1bfaa3734778e40b
/lab8/lab8.sce
f54ee72ead6c19019c587c4ebcd662692464f88c
[]
no_license
DavidShagabaev/mathmod-labs
4850686841cac662c49350dad6fd1a3e2a02d4a7
8832962a354e40b0860e45c440d962727ad53871
refs/heads/main
2023-08-30T19:20:26.965258
2021-11-14T17:02:40
2021-11-14T17:02:40
427,987,455
0
0
null
null
null
null
UTF-8
Scilab
false
false
516
sce
lab8.sce
t=0:0.01:30; //R=0;(первый случай) R=0.00041;//(второй случай) x0=[8;10]; p_cr=50; V=50; q=1; tau1=36; tau2=30; p1=10; p2=12; a1=p_cr/(tau1*tau1* p1*p1* V* q); a2=p_cr/(tau2*tau2* p2*p2* V* q); b=p_cr/(tau1*tau1*tau2*tau2* p1*p1* p2*p2* V * q); c1=(p_cr-p1)/(tau1*p1); c2=(p_cr-p2)/(tau2*p2); function dxdy=syst(t, x) dxdy(1)= x(1)-((b/c1)+R)* x(1)*x(2)-(a1/c1)* x(1)*x(1); dxdy(2)= (c2/c1)*x(2)-(b/c1)*x(1)*x(2)-(a2/c1)*x(2)*x(2); endfunction x=ode(x0, 0, t, syst); plot(t, x);
3cd52784135ff270f04c6e3facfe589070d4a9a6
4483ff664b4d01c53114a7fc535625c197c8f989
/green routing/roulewheel.sci
f16e0645315ab626c73240e03a3285b726b4b419
[]
no_license
winash1618/myproject
be9b77d4a405edce7e625a999803016b50ab99d0
2132e76e6a996bee19f356a2b68af827fa6c621b
refs/heads/master
2022-12-06T06:09:06.487979
2020-08-20T02:00:54
2020-08-20T02:00:54
288,880,158
0
0
null
null
null
null
UTF-8
Scilab
false
false
484
sci
roulewheel.sci
function [gog] =roulewheel() for i=1:pop tdis(i)=sum(dis(i,:) end for i=1:pop pdis(i)=tdis(i)/(sum(tdis) end for i=1:pop cdis(i)=cdis(i)+pdis(i) end for i=1:pop jin=rand for j=1:pop if j==1 & jin<cdis(j) a(i,:)=a(j,:) else if cdis(j-1)<jin<cdis(j) a(i,:)=a(j,:) end end end end gog=a endfunction
79b84fa597b0ee083e9e2a3b2380061a8ce6902a
90ee2315583fd980367421b5516fc008eb133c22
/MENU/testscripts/mqsc_stopnastel1.tst
6037c1b223dc2c04bc7fbdadeb04d0ba57911338
[]
no_license
skmpersonal/docs
8503f989d3eff41238c2f756b924e6530ec8e26c
ed8c9b3b5a3a9c1e413ceac2ba5016aa29743014
refs/heads/master
2021-01-17T05:32:59.924577
2017-07-07T19:26:42
2017-07-07T19:26:42
96,567,160
0
0
null
null
null
null
UTF-8
Scilab
false
false
41
tst
mqsc_stopnastel1.tst
stop SERVICE(SYSTEM.DEFAULT.NSQ.SERVICE)
c563bce51e8e741eb4995ba40e1ed9253c393165
449d555969bfd7befe906877abab098c6e63a0e8
/443/CH8/EX8.5/8_5.sce
e52bbb0974f412917c7f188253a800d29fc98591
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
701
sce
8_5.sce
pathname=get_absolute_file_path('8_5.sce') filename=pathname+filesep()+'8_5_data.sci' exec(filename) //Air fuel ratio when nozzle tip is neglected AF=((Cda*Da^2)/(Cdf*Df^2))*sqrt(Pa/Pf) //Air fuel ratio when the nozzle tip is taken into account AFn=((Cda*Da^2)/(Cdf*Df^2))*sqrt(Pa/Pf)*sqrt(dp/(dp-Pf*g*hf*10^-5)) //Minimum air velocity or critical air velocity required to start fuel flow when nozzle tip is provided(in m/s) Cmin=sqrt((2*g*hf*Pf)/Pa) printf("\n\nRESULTS\n\n") printf("\nAir-fuel ratio when nozzle tip is neglected:%f\n",AF) printf("\nAir-fuel ratio when nozzle tip is taken into account:%f\n",AFn) printf("\nminimum air velocity required to start fuel flow:%f\n",Cmin)
c763e1460e2b3e989cb8a694f40c82cbe51cd1bd
449d555969bfd7befe906877abab098c6e63a0e8
/1223/CH2/EX2.3/Ex2_3.sce
342a761b546f01a10a7bdcd0c206b971e5ff6f79
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
864
sce
Ex2_3.sce
clear; clc; //Example 2.3 V_O=12;//(V)peak output voltage I_L=0.12;//(A)current delivered to the load R=V_O/I_L; printf('\neffective load resistance=%.2f Ohm\n',R) V_Y=0.7;//(V)diode cut in voltage v_S=V_O+2*V_Y; printf('\npeak value of v_S=%.2f V\n',v_S) v_Srms=v_S/sqrt(2); printf('\nrms voltage=%.2f V\n',v_Srms) //let x=N1/N2 Vin=120;//(V)input line voltage x=Vin/v_Srms; printf('\nturns ratio=%.2f \n',x) VM=12;//(V) Vr=5/100*VM; printf('\nripple voltage=%.2f V\n',Vr) f=60;//(Hz) input frequency C=VM/(2*R*Vr*f); printf('\nfilter capacitance=%f F\n',C) i_Dmax=(VM/R)*(1+2*%pi*sqrt(VM/(2*Vr))); printf('\npeak diode current=%.2f A\n',i_Dmax) R=0.1;//Kohm i_Davg=(1/(2*%pi))*sqrt(2*Vr/VM)*((VM/R)*(1+%pi*sqrt(VM/(2*Vr)))); printf('\naverage diode current=%f mA\n',i_Davg) PIV=v_S-V_Y; printf('\npeak inverse voltage=%.2f V\n',PIV)
978351d1874144b5af0e2c8a19a6ca8e93d4f8d5
449d555969bfd7befe906877abab098c6e63a0e8
/1553/CH10/EX10.26/10Ex26.sce
46ddb1be0a304ff1d9a93da3fdba4fbda5cb9596
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
10Ex26.sce
//chapter 10 Ex 26 clc; clear; close; decRate=10/100; presentValue=162000; years=2; valueAfter=presentValue*(1-decRate)^years; valueBefore=presentValue/(1-decRate)^years; mprintf("The value after 2 years will be Rs.%d \n and before 2 years was Rs.%d",valueAfter,valueBefore);
4c95488a2ab3498897fea4121e1c225231e9ffda
1573c4954e822b3538692bce853eb35e55f1bb3b
/DSP Functions/allpasslp2bs/test_5.sce
4d811ac65b2f3e3d8b0d6ed83be1ef691f78b684
[]
no_license
shreniknambiar/FOSSEE-DSP-Toolbox
1f498499c1bb18b626b77ff037905e51eee9b601
aec8e1cea8d49e75686743bb5b7d814d3ca38801
refs/heads/master
2020-12-10T03:28:37.484363
2017-06-27T17:47:15
2017-06-27T17:47:15
95,582,974
1
0
null
null
null
null
UTF-8
Scilab
false
false
251
sce
test_5.sce
// Test #5 : Input Argument #1 range test exec('./allpasslp2bs.sci',-1); [n,d]=allpasslp2bs(11,[0.35,0.53]); //!--error 10000 //Wo must lie between 0 and 1 //at line 39 of function allpasslp2bs called by : //[n,d]=allpasslp2bs(11,[0.35,0.53]);
85102f7651e66c5ee7070d6ed665cc144fba357d
cf99f338f2e97fd7e8ae1ad9b640101832f787ba
/assignments/assignment-2/psi.sci
249e4e9236563bbee5f897a132f9a2e831ecfd8d
[]
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,205
sci
psi.sci
//====================================================== // Function to calculate basis functions and derivatives // // num = local node number // der = derivative: 0 = function; 1 = d/dxi_1; 2 = d/dxi_2 // xi1 = xi1 coordinate (range 0-1) // xi2 = xi2 coordinate (range 0-1) //====================================================== function result = psi (num, der, xi1, xi2 ) if( der == 0 ) select num case 1 then result = (1-xi1) * (1-xi2); case 2 then result = xi1 * (1-xi2); case 3 then result = (1-xi1) * xi2; case 4 then result = xi1 * xi2; else result = 0; end elseif( der == 1 ) select num case 1 then result = -1 * (1-xi2); case 2 then result = (1-xi2); case 3 then result = -xi2; case 4 then result = xi2; else result = 0; end elseif( der == 2 ) select num case 1 then result = -1 * (1-xi1); case 2 then result = -xi1; case 3 then result = (1-xi1); case 4 then result = xi1; else result = 0; end else result = 0; end // der endfunction
a32132446d62252f0a251fb73966923faabfab28
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.2/macros/percent/%pnl.sci
cd4a76117ba8943ab7795de24895b4a02e926599
[ "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
128
sci
%pnl.sci
//[r]=%pnl(l1,l2) //correspond a l'operation logique l1==l2 avec l2 une liste //et l1 une matrice de polynomes //! r=%t //end
295ab5870fecd9fbcaf3aebd81ea22ba93c441c8
449d555969bfd7befe906877abab098c6e63a0e8
/2414/CH5/EX5.5/Ex5_5.sce
95d7bbf62e2e7ba9e16966d4692be812c8365912
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
685
sce
Ex5_5.sce
clc; clear all; //page no 152 //prob no. 5.5 //for input spectrum f=[-20:.001:20]; //x axis V=[1 zeros(-20+.001:.001:20-.001) 1]; //y axis clf; subplot(211); plot2d(f,V,[5],rect=[-130,0,130,2]) a=gca(); // Handle on axes entity a.x_location = "origin"; a.y_location = "origin"; xtitle('Input Spectrum','f,kHz',''); xgrid //for output spectrum f=[-120:.01:120]; //x axis V=[1 zeros(-120+.01:.01:-80-.01) 1 zeros(-80+.01:0.01:80-0.01) 1 zeros(80+.01:.01:120-.01) 1] subplot(212); plot2d(f,V,[5],rect=[-130,0,130,2]) a=gca(); // Handle on axes entity a.x_location = "origin"; a.y_location = "origin"; xtitle('Output Spectrum','f,kHz',''); xgrid
941607a9183b811c8b3b951f3eb6d69a7f2666c5
449d555969bfd7befe906877abab098c6e63a0e8
/2681/CH7/EX7.5/Ex7_5.sce
b11b918e8358512ea62e55caab4128cfe9873e23
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
216
sce
Ex7_5.sce
//resistance //given clc l=11d-3 d=0.2d-6 w=8d-3 delta_s=6.17d+7 Rp=l/(w*d*delta_s)//resistance Rp=round(Rp*1000)/1000///rounding off decimals disp(Rp,'the resistance for the given parameter in ohm')//ohm
dd695d2f105e33ad20fa3b67c71b84a98884785b
1bb72df9a084fe4f8c0ec39f778282eb52750801
/test/GR4.prev.tst
657c6d5170b288427fb002f3eeaedacb23a28839
[ "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
208
tst
GR4.prev.tst
(" - 80 - 96*x + 16*x^2 - 128*x*y + 16*y^2 - 96*z - 128*x*z - 128*y*z - 128*x*y*z + 16*z^2").getGrowingFactors (" - 4 - 8*x + 4*x^2 - 8*y - 16*x*y + 4*y^2 - 8*z - 16*x*z - 16*y*z - 16*x*y*z + 4*z^2") = null
85464ae105929259eabd4131484b2b9a818e1de4
449d555969bfd7befe906877abab098c6e63a0e8
/2414/CH8/EX8.9/Ex8_9.sce
35e05e0d7ec9fe82e65500fa1fcdc798f63a7147
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
387
sce
Ex8_9.sce
clc; close(); clear(); //page no 290 //prob no. 8.9 //All frequencies in kHz W=10; fs=2*W; Tf=1/fs; mprintf('(a) The minimum sampling rate is %i kHz\n',fs); mprintf('The frame time is %i micro second\n',Tf*10^3); tr=0.01*Tf //ms Bt=0.5/tr; mprintf('The maximum rise time is %.1f micro second\n',tr*10^3); mprintf('The approximate transmission bandwidth is %i kHz\n',Bt);
778d94ba92c00ed840469966231eabd5f11b69e8
449d555969bfd7befe906877abab098c6e63a0e8
/887/CH2/EX2.15/2_15.sce
8a1503f8d1c67366b0e5c902ab0c58917261c185
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
533
sce
2_15.sce
clc //ex2.15 //KVL over the supermesh, we get eqn-1 -20+4(i1)+8(i2)=0 //Vx=2(i2) ohm's law //writing an expression for the source current in terms of mesh currents and substituting Vx from above, we get eqn-2 (1/2)i2=i2-i1 //Putting eqn-1 and eqn-2 in standard form 4(i1)+8(i2)=20 and i1-(1/2)i2=0 //solving for currents in matrix method(Ax=b) A=[4,8;1,-1/2]; //coeffcient matrix b=[20;0]; //constant matrix x=A\b; //solution disp(x(1),'Value of i1 in amperes') disp(x(2),'Value of i2 in amperes')
f6b8437ca656f024cd6f846c1bb0b4af9966143a
449d555969bfd7befe906877abab098c6e63a0e8
/1163/CH10/EX10.4/example_10_4.sce
495fdc63c898f9bc8c7c564a3eea820c9322ae0d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
698
sce
example_10_4.sce
clear; clc; disp("--------------Example 10.4---------------") //words x1=[0 0 0]; y1=[0 1 1]; x2=[1 0 1 0 1]; y2=[1 1 1 1 0]; // formula to find Hamming distance 'd' d1=bitxor(x1,y1); d2=bitxor(x2,y2); function [count]= num_of_ones (d)// function to find the number of ones in a binary number count=0; for i=1:length(d) if(d(i)== 1) count = count+1; // number of one's end end endfunction d=num_of_ones(d1); // calling the function printf("\nThe Hamming distance d(OOO, 011) is %d.\n",d); // display result d=num_of_ones(d2); // calling the function printf("\nThe Hamming distance d(10101, 11110) is %d.\n",d); // display result
19474ffbdcf7ed9e04c6469f33e5b8239f39ee33
449d555969bfd7befe906877abab098c6e63a0e8
/443/CH17/EX17.31/17_31.sce
048fe9624d90397cbc5e467bdd298af5c585a6f0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
727
sce
17_31.sce
pathname=get_absolute_file_path('17_31.sce') filename=pathname+filesep()+'17_31_data.sci' exec(filename) //Heat supplied(in kJ/h) H=Vg*CV*60 //Heat equivalent of bp(in kJ/hr) Hbp=bp*60*60 //Heat lost in jacket cooling water(in kJ/hr) Hc=(Vc*dwc*Cvw)*60 //Mass of gas used(in kg/min) mg=Vg*Pg //Mass of exhaust gases(in kg/min) m=ma+mg //Heat carried away by exhaust gases(in kJ/h) Hex=m*Ceg*(Tex-Ta)*60 //Unaccounted losses(in kJ/h) Hloss=H-(Hbp+Hc+Hex) printf("\n\nRESULTS\n\n") printf("\nHeat supplied:%f\n",H) printf("\nHeat equivalent of bp:%f\n",Hbp) printf("\nHeat lost in jacket cooling water:%f\n",Hc) printf("\nHeat lost to exhaust gases:%f\n",Hex) printf("\nHeat lost to radiation:%f\n",Hloss)
743cabaa4bbe52d91b464c01d0aba4e6a9992b52
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH14/EX14.3/Ex14_3.sce
494fb73254165f9641406b31f1ce33d8f09c128d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
251
sce
Ex14_3.sce
clear //Given N=150 A=2*10**-2 //m**2 B=0.15 //T f=60 //Calculation // w=2*%pi*f E0=N*A*B*w //Result printf("\n Peak value of e.m.f is %0.0f V",E0) printf("\n Average value of induced e.m.f is zero")
e3f8eece1c0544640b7901253fa985ad042b62e1
449d555969bfd7befe906877abab098c6e63a0e8
/1670/CH11/EX11.3/11_3.sce
b0773f1c23302b0b65f1849cb99b0b3add39f52a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
889
sce
11_3.sce
//Example 11.3 //Gauss-Seidel Method //Page no. 370 clc;clear;close; U=[60,60,60,60;40,0,0,50;20,0,0,40;0,10,20,30] deff('y=d(i,j)','y=(U(i-1,j-1)+U(i+1,j+1)+U(i-1,j+1)+U(i+1,j-1))/4') //diagonal 5 point formula deff('y=s(i,j)','y=(U(i-1,j)+U(i+1,j)+U(i,j-1)+U(i,j+1))/4') //std 5 point formula U(2,2)=d(2,2); for k=0:5 for i=2:3 p=3; for j=2:3 if k==0 & i==2 & j==2 then U(i,j)=d(i,j) else U(i,j)=s(i,j) end if k==0 then printf('\n U%i = %g\n',i+j-p,U(i,j)) else printf('\n U%i(%i) = %g\n',i+j-p,k,U(i,j)) end end p=2; end printf('\n\n') end printf('\nHence the solution is : \n\n') for i=2:3 for j=2:3 printf(' U%i = %g, ',i,U(i,j)) end end
6456faf0c1f6343a209ab8e757882173914b6d81
6fac1681a9db5e3a162d5f8b2502db7a2ea4ee3b
/Project2/Fractals/Midpoint Displacemente Terrain/Midpoint Displacement Generator.sci
0e89b470bf7843025703c0c959fc474aa1df5b7d
[]
no_license
dajvisha/ComputerGraphics
867b762d3252456df61cd93f2ed95e3525dd44ef
8bec34c1ac93cefe56f589ac021e105f6ee630d6
refs/heads/master
2022-11-17T17:23:41.040244
2017-12-02T02:54:09
2017-12-02T02:54:09
112,243,334
1
0
null
null
null
null
UTF-8
Scilab
false
false
4,130
sci
Midpoint Displacement Generator.sci
// Función que itera todas las partes del mapa de altura // siguiendo el mismo algoritmo. function mapa_iteracion = midpoint(mapa_iteracion, izq_x, der_x, abajo_y, arriba_y, amplitude, smoothing, ene) // Inicialización de los puntos medios de la parte a resolver midx = (izq_x + der_x) / 2; midy = (abajo_y + arriba_y) / 2; // Se obtienen los valores de los lados arriba y abajo, // los renglones. mapa_iteracion(izq_x,midy) = 1/2 * (mapa_iteracion(izq_x,abajo_y) + mapa_iteracion(izq_x,arriba_y)) + amplitude * (-1+(2*rand(1))) * (2^(-smoothing * ene)); mapa_iteracion(der_x,midy) = 1/2 * (mapa_iteracion(der_x,abajo_y) + mapa_iteracion(der_x,arriba_y)) + amplitude * (-1+(2*rand(1))) * (2^(-smoothing * ene)); // Se obtienen los valores de los lados izquierda y derecha, // las columnas. mapa_iteracion(midx,abajo_y) = 1/2 * (mapa_iteracion(izq_x,abajo_y) + mapa_iteracion(der_x,abajo_y)) + amplitude * (-1+(2*rand(1))) * (2^(-smoothing * ene)); mapa_iteracion(midx,arriba_y) = 1/2 * (mapa_iteracion(izq_x,arriba_y) + mapa_iteracion(der_x,arriba_y)) + amplitude * (-1+(2*rand(1))) * (2^(-smoothing * ene)); // Se obtienen los valores de la casilla de en medio, // el centro. mapa_iteracion(midx,midy) = 1/4 * (mapa_iteracion(izq_x,midy) + mapa_iteracion(der_x,midy) + mapa_iteracion(midx,abajo_y) + mapa_iteracion(midx,arriba_y)) + amplitude * (-1+(2*rand(1))) * (2^(-smoothing * ene)); endfunction // Función principal que inicializa los valores del mapa de altura // y manda llamar a la función de iteraciones dándole el pedazo // del mapa a resolver. Despliega al final el mapa en forma gráfica. function midpoint_displacement(n, bb, bl, lb, ll, amp, smo) // La función lee en orden los valores de n, A(1,1), A(1,last), // A(last,1), A(last,last), inicializa el mapa en ceros y // añade los valores al mapa. beg = 1; last = (2^n) + 1 mapa_final = zeros(last, last) mapa_final(beg,beg) = bb; mapa_final(beg,last) = bl; mapa_final(last,beg) = lb; mapa_final(last,last) = ll; // Estructura de repetición que divide el mapa para su iteración // de tal forma que se usa una metodología algorítmica // divide and conquer que obtiene el mapa resultante de // aplicar el algoritmo a todo el mapa. i = 0; while i < n pedazos = (2^i); pedazos_ancho = (2^n) / pedazos; xpedazo = 0 while xpedazo < pedazos ypedazo = 0 while ypedazo < pedazos // Inicia los valores a pasar donde se indica // el pedazo a resolver de forma divide and // conquer izq_x = pedazos_ancho * xpedazo; der_x = pedazos_ancho + izq_x; abajo_y = pedazos_ancho * ypedazo; arriba_y = pedazos_ancho + abajo_y; // Llamada a la función recursiva mapa_final = midpoint(mapa_final, izq_x + 1, der_x + 1, abajo_y + 1, arriba_y + 1, amp, smo, i); ypedazo = ypedazo + 1; end xpedazo = xpedazo + 1; end i = i + 1; end // Muestra del resultado final de forma gráfica surf(mapa_final); disp(mapa_final); i = 1; j = size(mapa_final,2) while i < j k = 1; while k < j disp("triangle {") mprintf("<%f, %f, %f>",i, mapa_final(i,k), k) mprintf("<%f, %f, %f>",(i + 1), mapa_final(i + 1,k), k) mprintf("<%f, %f, %f>",i, mapa_final(i,(k + 1)), (k + 1)) disp("texture { Red }}") disp("triangle {") mprintf("<%f, %f, %f>",(i + 1), mapa_final(i + 1,k), k) mprintf("<%f, %f, %f>",(i + 1), mapa_final((i + 1),(k + 1)), (k + 1)) mprintf("<%f, %f, %f>",i, mapa_final(i,(k + 1)), (k + 1)) disp("texture { Blue }}") k = k + 1; end i = i + 1; end endfunction
3493b1b079c3e88cfdeb029dc97516d36cbf9d79
449d555969bfd7befe906877abab098c6e63a0e8
/1709/CH6/EX6.1/6_1.sce
f2972f2b203c85a283ca112e3ff542c73ed2fb2f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
241
sce
6_1.sce
clc //Initialization of variables m=5 //lbm P=50 //psia T=500 + 460 //R //calculations disp("From saturated steam tables,") s1=0.4110 //B/lbm R s2=1.7887 //B/lbm R dS=m*(s2-s1) //results printf("Change in entropy = %.3f B/R",dS)
6aa248cb6ff48262ea7198db266957b9b0d09048
449d555969bfd7befe906877abab098c6e63a0e8
/650/CH2/EX2.4/4.sce
c1315811a06061bdd68e44ac264502f7f1150be1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
622
sce
4.sce
clc g=9.8; //m/s^2 dz=0.2; //m ; dz1=z1-z2=z1-z2 rho=1000; //kg/m^3 dz1=2; //m ; dz1=z1-z_A dz2=0; //m ; dz2=z1-z_B dz3=-1.5; //m ; dz3=z1-z_C v2=sqrt(2*g*dz); v_A=v2; v_B=v2; v_C=v2; p_A=rho*g*(dz1-v_A^2/2/g); p_B=rho*g*(dz2-v_B^2/2/g); p_C=rho*g*(dz3-v_C^2/2/g); disp("Velocity at pt. A =") disp(v_A) disp("m/s") disp("Velocity at pt. B =") disp(v_B) disp("m/s") disp("Velocity at pt. C =") disp(v_C) disp("m/s") disp("Pressure at pt. A =") disp(p_A) disp("kN/m^2") disp("Pressure at pt. B =") disp(p_B) disp("kN/m^2") disp("Pressure at pt. C =") disp(p_C) disp("kN/m^2")
e9940ac80493efd87cc9a1c1b1e908076c6bb47e
449d555969bfd7befe906877abab098c6e63a0e8
/3755/CH8/EX8.11/Ex8_11.sce
fd0051368cd9403bae5ac19eb01890b58e44e548
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
374
sce
Ex8_11.sce
clear // // // //Variable declaration e=1.6*10^-19; //charge of electron z=0.3*10^-3; //thickness(m) VH=1*10^-3; //hall voltage(V) Ix=10*10^-3; //current(A) Bz=0.3; //magnetic field(T) //Calculation n=Ix*Bz/(VH*z*e); //charge carrier concentration(m^-3) //Result printf("\n charge carrier concentration is %e m^-3",n)
2d3e6751ba6f5a306a4c6ebb5ef49e261d29d05c
449d555969bfd7befe906877abab098c6e63a0e8
/25/CH7/EX7.2/7_2.sce
f323085be3b2024e17c25207d27f316e979c99ab
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
568
sce
7_2.sce
//example:-7.2,page no.-342. // program to compute the length of the line for resonance at 5 GHZ and the Q of the resonator. W=0.0049;c=3*10^8;f=5*10^9;Zo=50;eipsilar=2.2;ko=104.7;tandelta=0.001; Rs=0.0184; // taken from example 7.1. eipsilae=1.87; // effective permittivity. l=c/(2*f*sqrt(eipsilae)); // resonator length. B=(2*%pi*f*sqrt(eipsilae))/c; alphac=Rs/(Zo*W); alphad=(ko*eipsilar*(eipsilae-1)*tandelta)/(2*sqrt(eipsilae)*(eipsilar-1)); alpha=alphac+alphad; Q=B/(2*alpha); disp(l,'length of the line in meter = ') disp(Q,'Q of the resonator = ')