blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 6
214
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
50
| license_type
stringclasses 2
values | repo_name
stringlengths 6
87
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 15
values | visit_date
timestamp[us]date 2016-08-04 09:00:04
2023-09-05 17:18:33
| revision_date
timestamp[us]date 1998-12-11 00:15:10
2023-09-02 05:42:40
| committer_date
timestamp[us]date 2005-04-26 09:58:02
2023-09-02 05:42:40
| github_id
int64 436k
586M
⌀ | star_events_count
int64 0
12.3k
| fork_events_count
int64 0
6.3k
| gha_license_id
stringclasses 7
values | gha_event_created_at
timestamp[us]date 2012-11-16 11:45:07
2023-09-14 20:45:37
⌀ | gha_created_at
timestamp[us]date 2010-03-22 23:34:58
2023-01-07 03:47:44
⌀ | gha_language
stringclasses 36
values | src_encoding
stringclasses 17
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 1
class | length_bytes
int64 5
10.4M
| extension
stringclasses 15
values | filename
stringlengths 2
96
| content
stringlengths 5
10.4M
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b12253bba57beda11e46412453f0db9e2f382237
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3554/CH13/EX13.1/Ex13_1.sce
|
eeb9f7f5ce7a9b97ca14faba5c4c8229c022ff2b
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 434
|
sce
|
Ex13_1.sce
|
// Exa 13.1
clc;
clear all;
// Given data
// Refer circuit given in Fig no.13.2(b) given on page no.381
Shaft=3; // Shaft stroke in inches
Wiper=0.9;// in inches
R=5; // Total resistance(R1+R2) in K ohms
Vt=5; // Applied voltage in volts
// Solution
R2=Wiper/Shaft * R ;// in k Ohms
// Since Vo/Vt=R2/(R1+R2);
// Therefore
Vo=R2/(R) *Vt; // Output Voltage(R1+R2)
printf(' The output voltage = %.1f V \n',Vo);
|
f9804a261787509b56d115a3c5f09656507b3e96
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/551/CH4/EX4.21/21.sce
|
7704f51a5402e413d1c4438012369c2f27bf5794
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 278
|
sce
|
21.sce
|
clc
Qv=90; //kJ
Qp=-95; //kJ
W=-18; //kJ
U_l=105; //kJ
W_lm=0;
Q_lm=90;
U_m=U_l+90;
dU_mn=Qp-W;
U_n=U_m+dU_mn;
dQ=Qv+Qp;
dW=dQ;
W_nl=dW-W;
disp("W_nl(in kJ)=")
disp(W_nl)
disp("U_l in kJ =")
disp(U_l)
disp("U_m in kJ =")
disp(U_m)
disp("U_n in kJ")
disp(U_n)
|
4e9e17036c5c0986d05aecf0e8f652f98bc39fc2
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3886/CH9/EX9.6/9_6.sce
|
d097410dec0c3cb5b7767ac1eac92b8d38b53617
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 910
|
sce
|
9_6.sce
|
//Centroid of the gusset plate
//refer fig. 9.15
//The composite area is divided into algebraic sum and differences of simple geometries
//for rectangle
A1=160*280 //mm^2
x1=140 //mm
y1=80 //mm
//for triangle
A2=280*40/2 //mm^2
x2=2*280/3 //mm
y2=160+40/3 //mm
//1st hole
A3=(-%pi*21.5^2)/(4) //mm^2
x3=70 //mm
y3=50 //mm
//second hole
A4=-363.05 //mm^2
x4=140 //mm
y4=50 //mm
//third hole
A5=-363.05 //mm^2
x5=210 //mm
y5=50 //mm
//fourth hole
A6=-363.05 //mm^2
x6=70 //mm
y6=120 //mm
//fifth hole
A7=-363.05 //mm^2
x7=140 //mm
y7=130 //mm
//sixth hole
A8=-363.05 //mm^2
x8=210 //mm
y8=140 //mm
A=A1+A2+A3+A4+A5+A6+A7+A8 //mm^2
sumAixi=A1*x1+A2*x2+A3*x3+A4*x4+A5*x5+A6*x6+A7*x7+A8*x8 //mm^3
xbar=sumAixi/A //mm
sumAiyi=A1*y1+A2*y2+A3*y3+A4*y4+A5*y5+A6*y6+A7*y7+A8*y8
ybar=sumAiyi/A //mm
printf("\xbar=%.3f mm \nybar=%.3f mm",xbar,ybar)
|
4b47d6b27ef57e6211ce0b20e226a7b8e198954e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3683/CH5/EX5.10/Ex5_10.sce
|
07a4c7b6cc01759af29b75be02d8ff4606492f00
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 600
|
sce
|
Ex5_10.sce
|
P=280//in kN
e=50//eccentricity, in mm
b=300//width, in mm
D=300//depth, in mm
sigma_cc=4//in MPa
sigma_cbc=5//in MPa
m=18.66//modular ratio
cover=50//in mm
Asc=4*0.785*20^2//four 20 mm dia bars, in sq mm
Ag=b*D//in sq mm
Ac=Ag-Asc//in sq mm
sigma_cc_cal=P*10^3/(Ac+1.5*m*Asc)//in MPa
I=b*D^3/12 + (m-1)*Asc*(D/2-cover)^2//in mm^4
z=I/(D/2)//in mm^3
sigma_cbc_cal=P*10^3*e/z//in MPa
sigma_max=sigma_cc_cal + sigma_cbc_cal//in MPa
sigma_min=sigma_cc_cal - sigma_cbc_cal//in MPa
mprintf("Maximum stress = %f MPa (compressive)\nMinimum stress = %f MPa (tensile)", sigma_max,sigma_min)
|
71f886cca1859bdee48d7eaabfc6a20f40f35f1c
|
a5de878687ee2e72db865481785dafbeda373e2a
|
/trunck/OpenPR-0.0.2/macros/buildmacros.sce
|
44307d442fade6d362003d21652290aa3c62263f
|
[
"BSD-3-Clause"
] |
permissive
|
Augertron/OpenPR
|
8f43102fd5811d26301ef75e0a1f2b6ba9cbdb73
|
e2b1ce89f020c1b25df8ac5d93f6a0014ed4f714
|
refs/heads/master
| 2020-05-15T09:31:08.385577
| 2011-03-21T02:51:40
| 2011-03-21T02:51:40
| 182,178,910
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 98
|
sce
|
buildmacros.sce
|
tbx_build_macros('OpenPR', get_absolute_file_path('buildmacros.sce'));
clear tbx_build_macros;
|
38fd0247bcd89295c37229b131b15a0aa2994a86
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/896/CH18/EX18.7/7.sce
|
dbc6c175fab14964b326c74b5c52f50b817a9cba
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 253
|
sce
|
7.sce
|
clc
//Example 18.7
//Calculate the value of turbulent kinematic viscosity
K=0.00576//m^2/s^2
eta=0.0196//m^2/s^3
C_mew=0.09//dimentionless
v_t=C_mew*(0.00576)^2/(0.0196)//m^2/s
printf("the value of turbulent kinematic viscosity is %f m^2/s",v_t);
|
1407b58076069e4f399fdce947ca781b9497987a
|
f133ac48bce34834531e4aaf040d93391b483a4d
|
/rc2poly.sci
|
17cc063926925a3e9167aebf4e67a574986171d1
|
[] |
no_license
|
vlraik/SCILAB-Signal-Processing-toolbox-FOSSEE
|
a816836c0daafd1a9afa059a6dad1524bdc340bc
|
e5d265f759548647c08c5d4acc8cab266b0a3174
|
refs/heads/master
| 2021-01-19T03:02:28.082316
| 2016-07-31T13:43:13
| 2016-07-31T13:43:13
| 51,532,013
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,430
|
sci
|
rc2poly.sci
|
/*
*rc2poly
*Convert reflection coefficient to prediction filter polynomial
*Syntax:
*a = rc2poly(k)
*[a, efinal] = rc2poly(k, r0)
*
*
*Desciption:
*a = rc2poly(k) converts the reflection coefficients k corresponding to the lattice structure to the
*prediction filter polynomial a, with a(1) = 1. The output a is row vector of length length(k) + 1.
*
*[a,efinal] = rc2poly(k,r0) returns the final prediction error efinal based on
* the zero-lag autocorrelation, r0.
*
* EXAMPLE:
* Consider a lattice IIR filter given by a set of reflection coefficients.
* Find its equivalent prediction filter representation.
*
*
* k = [0.3090 0.9800 0.0031 0.0082 -0.0082];
* a = rc2poly(k)
*
*OUTPUT:
*a = 1.0000 0.6148 0.9899 0.0000 0.0032 -0.0082
*
*
*
*AUTHOR: Vrishabh Lakhani
*Sources: Kay, Steven M. Modern Spectral Estimation. Englewood Cliffs, NJ: Prentice-Hall, 1988.
*/
function [a,efinal] = rc2poly( k,varargin)
[lhs,rhs]=argn(0)
if rhs==1 then
a = k(1); //sets the output vector a to the first element of k
for i = 2:length(k) //loop through the remaining elements of k
a = [ a+conj(a(i-1:-1:1))*k(i) k(i) ]; //levinson's recursion
end
a = [1 a];
return a
elseif rhs>1 then //to find efinal
a = k(1);
for i = 2:length(k)
a = [ a+conj(a(i-1:-1:1))*k(i) k(i) ]; //levinson's recursion
end
a = [1 a];
return a,a($) //return the prediction polynomial
end
endfunction
|
a4ed1a907288f88118691b5d566b46ebd93eb2a9
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3840/CH5/EX5.6/Ex5_6.sce
|
45dbf9c65db7a0b9a2c611dbf96e68ecd0c24856
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
Ex5_6.sce
|
clear
//
//
//
//Variable declaration
D=8.92*10**3 //density(kg/m**3)
rho=1.73*10**-8 //resistivity(ohm m)
W=63.5 //atomic weight
Na=6.02*10**26 //avagadro number
e=1.6*10**-19 //charge(c)
//Calculation
n=D*Na/W
mew=1/(rho*n*e) //mobility(m**2/Vs)
//Result
printf("\n mobility is %0.5f m**2/Vs",mew)
printf("\n answer given in the book is wrong")
|
189ef17b40ec42b087be875a22fc00804352c477
|
bbdc72de6d7eef74128eaf52b1f040053943de38
|
/Code/Système Triangulaire Supérieur_SL.sci
|
ac10bd2a3698d01f82088033681000e7d3208f03
|
[] |
no_license
|
Abdel-BHPC/Numerical-analysis
|
46bb4dbcd26e00d6c4f405fe59a1ba433b8b72e0
|
2bcdb80d9ab8890d036eac3cce92b595abb88784
|
refs/heads/main
| 2023-03-02T14:11:06.939206
| 2021-02-08T08:40:07
| 2021-02-08T08:40:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 603
|
sci
|
Système Triangulaire Supérieur_SL.sci
|
/*
Etideur:
Jinshan GUO
Objectif:
Fonction à resoudre le problème de Ux=y
Containtes:
U est une matrice carrée triangulaire supérieur
y est un vecteur colonne
Valeur retour:
x
*/
function [x]=slosup(U,y)
nb_lignes = size(U)(1); //Nombre lignes de matrice
for i=nb_lignes:-1:1
if abs(U(i,i)) < %eps then
error("Matrice U est non inversible");
end
sum_temp = 0;
for j=i+1:nb_lignes
sum_temp = sum_temp + U(i,j)*x(j);
end
x(i) = 1/U(i,i)*(y(i)-sum_temp);
end
endfunction
|
48d63889ef5a11ec4489523ba13ae49525ce07f1
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3433/CH7/EX7.4/Ex7_4.sce
|
9ebd590a80095ecda8da787d1277445efba8fd2f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 946
|
sce
|
Ex7_4.sce
|
clear;
clc;
funcprot(0);
//given data
Q = 0.1;//in m^3/s
N = 1200;//rotational speed in rev/min
beta2_ = 50;//in deg
D = 0.4;//impeller external diameter in m
d = 0.2;//impeller internal diameter in m
b2 = 31.7;//axial width in mm
eff = 0.515;//diffuser efficiency
H = 0.1;//head losses
De = 0.15;//diffuser exit diameter
A = 0.77;
B = 1;
g = 9.81;
//Calculations
U2 = %pi*N*D/60;
cr2 = Q/(%pi*D*b2/1000);
sigmaB = (A - H*tan(beta2_*%pi/180))/(B - H*tan(beta2_*%pi/180));
ctheta2 = sigmaB*U2*(1-H*tan(beta2_*%pi/180));
Hi = U2*ctheta2/g;
c2 = sqrt(cr2^2 + ctheta2^2);
c3 = 4*Q/(%pi*De^2);
HL = 0.1*Hi + 0.485*((c2^2)-(c3^2))/(2*g) + (c3^2)/(2*g);
H = Hi - HL;
eff_hyd = H/Hi;
//Results
printf('The slip factor = %.3f.',sigmaB);
printf('\n The manometric head = %.2f m.',H);
printf('\n The hydraulic efficiency = %.1f percentage.',eff_hyd*100);
//there is a very small error in the answer given in textbook
|
1333483cc7f639d593b7cf04f2695559b1d3e69b
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1040/CH4/EX4.1.a/Chapter4_Ex1_a.sce
|
34ff568da031cb287047b5f8c9307d5c1e1ab07e
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,117
|
sce
|
Chapter4_Ex1_a.sce
|
//Harriot P.,2003,Chemical Reactor Design (I-Edition) Marcel Dekker,Inc., USA,pp 436.
//Chapter-4 Ex4.1.a Pg No. 135
//Title:Diffusivity of Chlorine at 573K and 1.5atm
//===========================================================================================================
clear
clc
//INPUT
S_g=235;//Total surface per gram (m2/g)
V_g=0.29E-6;//Pore volume per gram (cm3/g)
rho_p=1.41;
D_He=0.0065;//Effective diffusivity of He (cm2/sec)
M_He=4;//Molecular weight of He
M_Cl2=70.09;//Molecular weight of Cl2
T_ref=293;//Reference temperature
T_degC=300;
T=T_degC+273;//Reaction temperature(K)
//CALCULATION
r_bar=2*V_g/S_g;//Mean Pore radius
D_Cl2=D_He*((M_He/M_Cl2)*(T/T_ref))^(0.5);//Assuming Knudsen flow at 573K
//OUTPUT
//Console Output
mprintf('The predicted diffusivity of Chlorine is %0.2E cm2/s ',D_Cl2);
//File Output
fid= mopen('.\Chapter4_Ex1_a_Output.txt','w');
mfprintf(fid,'The predicted diffusivity of Chlorine is %0.2E cm2/s ',D_Cl2);
mclose(fid);
//============================================END OF PROGRAM=================================================
|
6b6367baabc8cdf184ad95a82c588629bfd4009f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/752/CH15/EX15.7.1/15_7_1.sce
|
12b60474a9dc4fdc5a18a1694bd52fba02495112
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,077
|
sce
|
15_7_1.sce
|
clc;
//page no 574
//prob no. 15.7.1
// In this problem data regarding the sea water is given
conductivity = 4;//measured in S/m
rel_permittivity =80;
u=4*%pi*10^-7;
f1=100;//measured in Hz
f2=10^6;//measured in Hz
// A) first it is necessary to evaluate the ratio of conductivity/w*rel_permittivity
w1=2*%pi*f1;
r=conductivity/w1*rel_permittivity;
//after the calculation this ratio is much greater than unity. Therefore we have to use following eq to calculate the attenuation coeff as
a=sqrt(w1*conductivity*u/2);
disp('N/m',a,'The attenuation coeff is');
// By using the conversion factor 1N=8.686 dB
a_dB=a*8.686;
disp('dB/m',a_dB,'The attenuation coeff in dB/m is');
// B)
w2=2*%pi*f2;
r=conductivity/w2*rel_permittivity;
//after the calculation this ratio is much greater than unity. Therefore we have to use following eq to calculate the attenuation coeff as
a=sqrt(w2*conductivity*u/2);
disp('N/m',a,'The attenuation coeff is');
// By using the conversion factor 1N=8.686 dB
a_dB=a*8.686;
disp('dB/m',a_dB,'The attenuation coeff in dB/m is');
|
d2534d3e3dec6601213adee9589543719c52a14f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1379/CH3/EX3.1.1/example3_1.sce
|
f0c445893139194d89cca33ca7f49d64c3a8adc6
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 791
|
sce
|
example3_1.sce
|
//exapple 3.1
clc; funcprot(0);
// Initialization of Variable
rho=998;
mu=1.002/1000;
x=48/100;
u=19.6/100;
x1=30/100;
b=2.6;
//calculation
//part1
disp("fluid in boundary layer would be entirely in streamline motion ");
Re=rho*x*u/mu;
printf("reynolds no is %.2e",Re);
//part 2
Re1=rho*x1*u/mu;
delta=x1*4.64*Re1^-.5;
disp(delta*1000,"boundary layer width in (mm):");
//part3
y=0.5*delta;//middle of boundary layer
ux=3/2*u*y/delta-.5*u*(y/delta)^3;
disp(ux*100,"velocity of water in (cm/s):");
//part4
R=0.323*rho*u^2*Re1^-0.5;
disp(R,"shear stress at 30cm in (N/m^2):");
//part5
Rms=0.646*rho*u^2*Re^-0.5;
disp(Rms,"mean shear stress experienced over whole plate in (N/m^2)");
//part6
F=Rms*x*b;
disp(F,"total force experienced by the plate in (N)")
|
dfb73a96b54a5509654f393a8e3580c77197e864
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1040/CH7/EX7.1.b/Chapter7_Ex1_b.sce
|
882f08df840f4a19b99965f55564d9b3d9778e5a
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,046
|
sce
|
Chapter7_Ex1_b.sce
|
//Harriot P.,2003,Chemical Reactor Design (I-Edition) Marcel Dekker,Inc.,USA,pp 436.
//Chapter-7 Ex7.1.b Pg No.260
//Title:Reaction Volume and Reactor Size
//===========================================================================================================
clear
clc
//INPUT
k2=8.5;//Reaction rate constant (L/mol-sec)
T=50;//Reaction condition temperature(°C)
P=2;//Reaction Pressure (atm)
H_O2=8*10^4;// Solubility (atm/mol fraction)
F=17000//Feed rate (L/hr)
C_B_feed=1.6;//Feed concentration(M)
C_B_product=0.8;//Product concentration(M)
k_L_a=900;//Liquid film mass transfer coefficient(hr-1)
k_g_a=80;//Gas film mass transfer coefficient(mol/hr L atm)
Epsilon=0.1;//Porosity
Kg_a=0.596;//Refer the overall reaction rate calculated in Ex7.1.a
percent_inc=0.2;//Percentage excess required for reactor volume
//CALCULATION
delta_C_B=C_B_feed-C_B_product;
mol_O2_needed=F*delta_C_B/4;
N_air=100;//Assuming 100 mole of feed air
f_O2=0.209;//Fraction of O2
f_N2=1-f_O2;//Fraction of N2
N_O2_in=N_air*f_O2;
N_N2_in=N_air*f_N2;
N_O2_out=N_O2_in/2;//Half of O2 fed
N_N2_out=N_N2_in;
N_air_out=N_N2_out+N_O2_out;
P_O2_out=P*(N_O2_out/N_air_out);
P_O2_in=P*(N_O2_in/N_air);
P_O2_bar=(P_O2_in-P_O2_out)/(log(P_O2_in/P_O2_out));//Log mean Pressure
volume=mol_O2_needed/(Kg_a*P_O2_bar);
reactor_vol=volume+volume*percent_inc;
volume_gal=volume*0.264;
reactor_vol_gal=reactor_vol*0.264;
//OUTPUT
//Console Output
mprintf('\n Reaction volume calculated : %0.0f L ',volume );
mprintf('\n Reactor size to be chosen : %0.0f L',reactor_vol);
//File Output
fid= mopen('.\Chapter7_Ex1_b_Output.txt','w');
mfprintf(fid,'\n Reaction volume calculated : %0.0f L ',volume );
mfprintf(fid,'\n Reactor size to be chosen : %0.0f L',reactor_vol);
mclose(fid);
//=============================================END OF PROGRAM============================================================
// Disclaimer : The numerically calculated value of reaction volume is 18008 L not 18000 L as mentioned in the textbook
|
a1123edd698d1ff0355810d643e439cf60f2c196
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2175/CH4/EX4.5/4_5.sce
|
003b6738c771ed6717a656514189cbd6c26e8fe0
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 329
|
sce
|
4_5.sce
|
clc;
R_=8314.5;
m_=28;
R=R_/m_
p1=1.05;//bar
p2=4.2;//bar
s2=R*log(p1)/1000;
s1=R*log(p2)/1000;
disp("change of entropy is:");
disp("kJ/kg K",s2-s1);
T=15+273;
V=0.03;
m=p1*V*10^5/(R*T);
S1=m*s1;
S2=m*s2;
Q=T*(S1-S2);
disp("heat rejected is:");
disp("kJ/kg",Q);
W=-Q;
disp("work done is:");
disp("kJ",W)
|
decf8fb3dc674ab5c9eef3ce78287a0269c82369
|
1d7cb1dbfad2558a4145c06cbe3f5fa3fc6d2c08
|
/Scilab/Redundant Receivers/inc/Qfunc.sci
|
f45f5e15a543145c3bfdfb03cccc56bde9051b1a
|
[] |
no_license
|
lrayzman/SI-Scripts
|
5b5f6a8e4ae19ccff53b8dab7b5773e0acde710d
|
9ab161c6deff2a27c9da906e37aa68964fabb036
|
refs/heads/master
| 2020-09-25T16:23:23.389526
| 2020-02-09T02:13:46
| 2020-02-09T02:13:46
| 66,975,754
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 451
|
sci
|
Qfunc.sci
|
// Q-function
//
// (c)2011 L. Rayzman
// Created : 10/18/2011
// Last Modified: 10/18/2011 - Added Eye Measurement Tool
//////////////////////////////////////Q-Function////////////////////////////////////
function Qofx = Qfunc(x)
// Extracts waveform data from CSDF ASCII files
//
// Inputs:
// x - Self-explanatory
//
// Outputs:
// Qofx - Self-explanatory
Qofx = 0.5 * erfc(x/sqrt(2));
endfunction
|
ba34dcdc5f04271515834f0c2caef9f7aa567dab
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/965/CH9/EX9.17/17.sci
|
c6112b5a05c6282d29c36f566df0c828dc9a0cdf
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,014
|
sci
|
17.sci
|
clc;
clear all;
disp("square plate")
x=0.4;//m
L=0.75;//mm
ts=28;// degree C
rhol=993.95;//kg/m^3
k=62.53*10^(-2);//W/m.C
mu=728.15*10^(-6);// kg/ms
hfg=2402*10^3;// J/kg
rhov=0.561;//kg/m^3
g=9.81;// m/s
tsat=42;// degree C
delx=(4*k*mu*(tsat-ts)*x/(g*rhol*(rhol-rhov)*hfg))^0.25;
disp("mm",delx*1000,"The film thickness at the bottom of plate =")
hx=k/delx;
disp("W/m^2.C",hx,"heat transfer coefficient =")
delL=(4*k*mu*(tsat-ts)*L/(g*rhol*(rhol-rhov)*hfg))^0.25;
disp("mm",delL*1000,"The film thickness at the bottom of plate =")
hL=4*k/(3*delL);
disp("W/m^2.C",hL,"heat transfer coefficient =")
h=1.2*hL;
disp("W/m^2.C",h,"The overall heat transfer coefficient =")
Q=h*L*L*(tsat-ts);
disp("kW",Q/1000,"rate of heat transfer per metre width, Q =")
m=Q/hfg;//kg/hr
disp("kg/hr",m*3600,"Condensate flow rate =")
hinc=h*(sin(%pi*25/180))^0.25;
disp("W/m^2.C",hinc,"heat transfer coefficient when the plate is inclined 25 degree with the horizontal")
Re=4*m/(mu*L);
disp(Re,"Re =")
|
1d5eb0a0dbd14ffe6862a28c7ae4541044bb472a
|
53a108238b9fda736d1411a9722d4043922e73e3
|
/lab4.sce
|
bb15ff503ef3cfb95b740cbe1159da4aeed353aa
|
[] |
no_license
|
3reedm/scilab
|
708d315412cdb48590c66821d78a883e28b5a7e6
|
2508a225d5e8b744da1be7443f5831b665a60aee
|
refs/heads/master
| 2020-03-18T01:56:55.225475
| 2018-05-20T16:27:39
| 2018-05-20T16:27:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 8,237
|
sce
|
lab4.sce
|
// Сохранение графиков
function[]=save_graphics(b,z)
b_ = 0
for i=2:length(b)
b_ = b_ + (i-1)*b(i)
end
b_ = 1/b_
a = 0.001:0.001:b_-0.001
l = length(a)
for i=1:l
[N1(i), M1(i), M3(i)] = get_data(a(i),b,z)
end
properties = gda()
// x labels default
properties.x_label.text="a";
properties.x_label.font_style = 6;
properties.x_label.font_size = 4;
properties.x_label.foreground = 5;
properties.x_location = "origin";
// y labels default
properties.y_label.font_style = 6;
properties.y_label.font_size = 4;
properties.y_label.foreground = 3;
properties.y_location = "origin";
properties.thickness = 2;
properties.foreground = 2;
// y name
properties.y_label.text="N1";
clf()
plot2d(a, N1, 3)
xs2eps(gcf(),'N1.eps')
// y name
properties.y_label.text="M1";
clf()
plot2d(a, M1, 3)
xs2eps(gcf(),'M1.eps')
// y name
properties.y_label.text="M3";
clf()
plot2d(a, M3, 3)
xs2eps(gcf(),'M3.eps')
endfunction
// Сохранение информации в файл *.csv
function[]=save_data(a,b,z)
b_ = 0
for i=2:length(b)
b_ = b_ + (i-1)*b(i)
end
[N1, M1, M3, N1m, N2, N3, N4, N2m, N3m, M2] = get_data(a,b,z)
data = [a, b, M1, M2, M3, N1, N2, N3, N4, N1m, N2m, N3m]
write_csv(data, "data.csv", ";")
endfunction
// Получение значений pv, Pzv, bz, pp, Pzp, p, pcheck, Pz, pm, Pzm,
// Pzmcheck, w, wh, wz
function[pv, Pzv, bz, pp, Pzp, p, pcheck, ..
Pz, pm, Pzm, Pzmcheck, w, wh, wz]=get_stats(a,b,z)
n = 100000
b_ = 0
l = length(b)
for i=2:l
b_ = b_ + (i-1)*b(i)
end
ro = a * b_
a_ = 1 - a
for i=1:l
B(i) = 0
for j=i:l
B(i) = B(i) + b(j)
end
end
// ~p
for i=1:l
pv(i) = 0
for j=i:l
pv(i) = pv(i) + get_C(j-1,i-1)*a^(i-1)*a_^(j-i)*b(j)
end
end
// ~P(z)
Pzv = get_Pzv(z,pv)
// b(z)
bz = get_bz(z,b)
// pp
// Pv
for i=2:l
Pv(i) = 0
for j=i:l
Pv(i) = Pv(i) + pv(j)
end
end
// qp
for i=2:l
qp(i) = 0
for j=2:i-1
qp(i) = qp(i) + qp(j)*Pv(i-j+2)
end
qp(i) = 1/pv(1) * (Pv(i)+qp(i))
end
clear Pv
// p+(0)
pp(1) = 0
for i=2:l
pp(1) = pp(1) + qp(i)
end
pp(1) = 1 / (1+pp(1))
// p+(i)
for i=2:l
pp(i) = pp(1)*qp(i)
end
clear qp
// P+(z)
Pzp = get_Pzp(z,a,b_,pv)
// p
p(1) = pp(1)
ph(2) = pp(1) + pp(2)
for i=3:l
ph(i) = pp(i)
end
for i=2:l
tmp1 = 0
for k=1:l-1
tmp2 = 0
for j=max(2,i-k+1):i
tmp2 = tmp2 + ph(j)*B(k+1)*get_C(k-1,i-j)*a^(i-j)*a_^(k-i+j-1)
end
tmp1 = tmp1 + tmp2
end
p(i) = a * tmp1
end
clear ph
// pcheck
//pcheck(1) = pp(1)
for i=2:l
// left part
lp = 0
for k=i-1:l-1
lp = lp + B(k+1)*get_C(k-1, i-2)*a^(i-2)*a_^(k-i+1)
end
lp = pp(1) * lp
// right part
rp = 0
for j=2:i
tmp = 0
for k=i-j+1:l-1
tmp = tmp + B(k+1)*get_C(k-1, i-j)*a^(i-j)*a_^(k-i+j-1)
end
rp = rp + pp(j) * tmp
end
pcheck(i) = a * (lp+rp)
end
// P(z)
Pz = get_Pz(z,a,a_,b,b_,pv,pp(1))
// p*
pm(1) = 1/a_ * pp(1)
for i=2:l
// left part
lp = 0
for k=i:l-1
lp = lp + B(k+1)*get_C(k-2, i-2)*a^(i-2)*a_^(k-i)
end
lp = pp(1) * lp
// left middle part
lmp = 0
for j=2:i
tmp = 0
for k=i-j+2:l-1
tmp = tmp + B(k+1)*get_C(k-2, i-j)*a^(i-j)*a_^(k-i+j-2)
end
lmp = lmp + pp(j) * tmp
end
// right middle part
rmp = 0
for k=i+1:l
rmp = rmp + b(k)*get_C(k-2, i-1)*a^(i-1)*a_^(k-i-1)
end
rmp = pp(1) * rmp
// right part
rp = 0
for j=2:i+1
tmp = 0
for k=i-j+3:l
tmp = tmp + b(k)*get_C(k-2, i-j+1)*a^(i-j+1)*a_^(k-i+j-3)
end
if (i<l)
rp = rp + pp(j) * tmp
end
end
pm(i) = a * (lp+lmp+rmp+rp)
end
// P*(z)
Pzm = get_Pzm(z,pm)
// P*check(z)
Pzmcheck = get_Pzmcheck(z,a,a_,b(1),pp(1),pp(2),b,b_,pv)
// w
w(1) = 1 - ro
w(2) = a/a_ * w(1)
for i=2:l-1
w(i+1) = 0
for j=1:i-2
w(i+1) = w(i+1) + w(j+1)*a*b(i-j)
end
w(i+1) = (w(i)*(1-a*b(2))-w(1)*a*b(i)-w(i+1)) / a_
end
// w^
wh(1) = w(1) + w(2)
for i=2:l-1
wh(i) = w(i+1)
end
// w(z)
wz = get_wz(z,a,a_,b,w(1))
endfunction
// Получение значений N1, M1, M3, N1m, N2, N3, N4, N2m, N3m, M2
function[N1, M1, M3, N1m, N2, N3, N4, N2m, N3m, M2,l]=get_data(a,b,z)
n = 100000
b_ = 0
l = length(b)
for i=2:l
b_ = b_ + (i-1)*b(i)
end
ro = a * b_
a_ = 1 - a
for i=1:l
B(i) = 0
for j=i:l
B(i) = B(i) + b(j)
end
end
[pv, Pzv, bz, pp, Pzp, p, pcheck, ..
Pz, pm, Pzm, Pzmcheck, w, wh, wz]=get_stats(a,b,z)
// N1
N1 = numderivative(list(get_Pzp,a,b_,pv),1)
// N2
N2 = 0
for i=1:l
N2 = N2 + (i-1)*pp(i)
end
// N3
N3 = numderivative(list(get_Pz,a,a_,b,b_,pv,pp(1)),1)
// N4
N4 = 0
for i=1:l
N4 = N4 + (i-1)*p(i)
end
// N1m
N1m = numderivative(list(get_Pzm,pm),1)
// N2m
N2m = numderivative(list(get_Pzmcheck,a,a_,b(1),pp(1),pp(2),b,b_,pv),1)
// N3m
N3m = 0
for i=1:l-1
N3m = N3m + (i-1)*pm(i)
end
// M1
M1 = 0
for i=1:l
M1 = M1 + (i-1)*w(i)
end
// M2
M2 = numderivative(list(get_wz,a,a_,b,w(1)),1)
// M3
M3 = 0
for i=1:l-1
M3 = M3 + (i-1)*wh(i)
end
l= a*(M3+b_)
endfunction
// C - число сочетаний без повторений
function[R]=get_C(n,k)
R = factorial(n) / (factorial(k) * factorial(n-k))
endfunction
// ~P(z)
function[R]=get_Pzv(z,pv)
l = length(pv)
R = 0
for i=1:l
R = R + z^(i-1)*pv(i)
end
endfunction
// b(z)
function[R]=get_bz(z,b)
l = length(b)
R = 0
for i=1:l
R = R + z^(i-1)*b(i)
end
endfunction
// P+(z)
function[R]=get_Pzp(z,a,b_,pv)
up = (1-z) * get_Pzv(z,pv) * (1-a*b_)
down = get_Pzv(z,pv) - z
R = up/down
endfunction
// P(z)
function[R]=get_Pz(z,a,a_,b,b_,pv,pp0)
bbeta = get_bz(a*z+a_,b)
Pzp = get_Pzp(z,a,b_,pv)
up = (1-bbeta) * (Pzp - pp0 + z*pp0)
down = 1 - z
R = up/down + pp0
endfunction
// P*(z)
function[R]=get_Pzm(z,pm)
l = length(pm)
R = 0
for i=1:l
R = R + z^(i-1)*pm(i)
end
endfunction
// P*check(z)
function[R]=get_Pzmcheck(z,a,a_,b0,pp0,pp1,b,b_,pv)
bbeta1 = get_bz(a*z+a_,b)
bbeta2 = get_bz(a_,b)
Pzp = get_Pzp(z,a,b_,pv)
tmp = a*z + a_
up1 = tmp - bbeta1
down1 = tmp * (1-tmp)
tmp2 = bbeta1/tmp - bbeta2/a_
R = pp0/a_ + a*pp0*z*up1/down1 + a*(Pzp-pp0)*up1/down1 + ..
a*pp0*tmp2 + a/z*(Pzp-pp0)*tmp2 + a/a_*(Pzp-pp0-pp1*z)*(bbeta2-b0)
endfunction
// w(z)
function[R]=get_wz(z,a,a_,b,w0)
bbeta = get_bz(z,b)
up = (z-1) * (a_+a*bbeta)
down = z - a_ - a*bbeta
R = up*w0/down
endfunction
|
442ef16fdf891231b4e121888b93c7c3f1b288e6
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3392/CH4/EX4.2/Ex4_2.sce
|
18457bf5e95b0455279006790806399813e64f32
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 794
|
sce
|
Ex4_2.sce
|
clc
// initialization of variables
clear
// Material properties
E=200 //GPa
A=100 //mm^2
Y1=500 //M Pa
Y2=250 // MPa
// calculations
E=E*10^9 // Pa
A=A*10^-6 //m^2
Y1=Y1*10^6 // Pa
Y2=Y2*10^6 //Pa
L_FG=1 //m
L_CD=2 // m
P1=Y2*A
e=P1*L_FG/(E*A)
e_FG=e
e_CD=e
P2=E*A*e_FG/L_FG
P3=E*A*e_CD/L_CD
Py=2*P1+2*P2+P3
//results
printf('part (a) \n')
printf(' Yield Load Py = %.1f kN and the displacement is %.2f mm',Py/10^3,e*10^3)
// part(b)
P4=Y1*A
e=P4*L_FG/(E*A)
P5=E*A*e/L_CD
P=2*P1+2*P4+P5
printf('\n part (b) \n')
printf(' Yield Load P = %.1f kN and the displacement is %.2f mm',P/10^3,e*10^3)
// Fully plastic load
P6=Y2*A*2
Pp=2*P1+2*P4+P6
e_CD=P6*L_CD/(E*A)
printf('\n Fully Plastic Load Pp = %.1f kN and the displacement is %.2f mm',Pp/10^3,e_CD*10^3)
|
edb56b92af36ae0df5a19a048ded27b65f76ce37
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2513/CH14/EX14.2/14_2.sce
|
89d258b2fc72c5cffef2282deb749c357ccfada8
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 333
|
sce
|
14_2.sce
|
clc
//initialisation of variables
v=1.34//fps
s=3.7*10^-3//fps
k=0.8//ft
r=20//ft
k1=0.04//ft
v=3.0//fps
v1=5.0//fps
d=10^-1//ft
d1=1.34//ft
//CALCULATIONS
K=r*k1//ft
V=sqrt(r)//times
D=d*(v/d1)^2//cm
D1=d*(v1/d1)^2//cm
//RESULTS
printf('the minimum velocity and the gradient at the which coarse quartz=% f cm',D1)
|
b6d7a887804ff1143c7dd09dfab9e377991e1457
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1952/CH4/EX4.1/Ex4_1.sce
|
c4a3b0c57821e68c8605f1078888f5a8896f6e32
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
Ex4_1.sce
|
// chapter 4 , Example4 1 , pg 117
c=3*10^8 //speed of light(in m/sec)
h=6.625*10^-34//planck's constant(in J s)
lam=1.2*10^-10//wavelength(in m)
E=(h*c)/(lam*1.6*10^-19) //energy of photon(in eV)
p=h/lam //momentum of photon
printf("Energy of photo\n")
printf("E=%.1f eV\n",E)
printf("momentum of photon(in Kg m/sec)\n")
disp(p)
|
2eb2931935f2dc8fd72b50469cdfd50dcef0c8db
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1511/CH2/EX2.8/ex2_8.sce
|
94f3510c89b6e1ea3e3a90f317e28bd6b188b179
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
ex2_8.sce
|
// Example 2.8 page no-49
clear
clc
L=1400
E_diff=12400/L //eV
del_E=2.15
L2=12400/del_E
printf("\nE2-E1=%.2f eV\n1850 A° line is from 6.71 eV to 0 eV\nTherefore, second photon must be from %.2f to 6.71 eV.\nLambda=%d A°.",E_diff,E_diff,L2)
|
599a4bef97ca8f7027ea95d7d64c73edf5ed3cf6
|
39c5c468df5e2bde0147a30cf092fc8da3e7ed3e
|
/UFRGS/calcNumerico/area1/exemplo_jacobi.sce
|
ccb5afe0c0814a24ab724fa13b90af7e4705de38
|
[] |
no_license
|
andredxc/Files
|
9dffc9fe5f7e923b83035d794dfa15c930cdb898
|
e32309b9ab548b829b04be66c2776cf9c9c6656e
|
refs/heads/master
| 2021-06-03T10:44:01.606242
| 2020-09-21T15:39:48
| 2020-09-21T15:39:48
| 107,410,076
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 259
|
sce
|
exemplo_jacobi.sce
|
A = [3 2 1 0 0 0 0 0
2 6 2 1 0 0 0 0
1 2 6 2 1 0 0 0
0 1 2 6 2 1 0 0
0 0 1 2 6 2 1 0
0 0 0 1 2 6 2 1
0 0 0 0 1 2 6 2
0 0 0 0 0 1 2 6]
b = [1 1 1 1 1 1 1 1]'
x1 =[0 0 0 0 0 0 0 0]'
[x,dx] = jacobi(A,b,x1,10^(-3),1000)
|
104460552ca11699f8430e47a175fed04c3c64d0
|
9d59fb06cf0644f9c0c84aae7977eeff57116a45
|
/SCILAB/SCILAB-2.sce
|
82df5b55dcca410417766224aaabaabe443e30ac
|
[] |
no_license
|
aguadix/RQ
|
f353b8fa0e36828c8cca9af53f5c3275ed476a75
|
43e8a31003bf038b0cd72487868c760829b9797c
|
refs/heads/master
| 2023-03-07T10:50:29.102260
| 2023-03-06T01:35:58
| 2023-03-06T01:35:58
| 53,548,175
| 1
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,620
|
sce
|
SCILAB-2.sce
|
clear; clc;
// SCILAB-2.sce
// Constantes
A = 1; alpha = 0.5; omega = 2;
// Funciones
function y = f(t)
y = A*exp(-alpha*t).*sin(omega*t);
endfunction
dt = 0.001; tfin = 10; t = 0:dt:tfin;
y = f(t);
// Gráficas
scf(1); clf(1);
plot(t,y);
xgrid; xlabel('t'); ylabel('y');
// Objetivos
yobj = 0.5;
indexyobj = find(y>yobj,1);
tyobj = t(indexyobj)
plot(tyobj,yobj,'b.');
ya = 0.1; yb = 0.2;
indexyayb = find(y>ya & y<yb);
tyayb = t(indexyayb);
yyayb = y(indexyayb);
plot(tyayb,yyayb,'b.');
// Máximo y mínimo global
[ymax,indexymax] = max(y)
tymax = t(indexymax)
plot(tymax,ymax,'ro');
[ymin,indexymin] = min(y)
tymin = t(indexymin)
plot(tymin,ymin,'ro');
// Ceros
indexy0 = find(y(1:$-1).*y(2:$)<0) + 1;
ty0 = t(indexy0)
y0 = y(indexy0)
plot(ty0,y0,'bo');
// Extremos
dy = diff(y);
indexye = find(dy(1:$-1).*dy(2:$)<0) + 1;
tye = t(indexye)
ye = y(indexye)
plot(tye,ye,'rx');
// Puntos de inflexión
d2y = diff(y,2);
indexyi = find(d2y(1:$-1).*d2y(2:$)<0) + 1;
tyi = t(indexyi)
yi = y(indexyi)
plot(tyi,yi,'gx');
// Integral
ta = 0.5; indexta = find(t==ta);
tb = 2.5; indextb = find(t==tb);
indexI = indexta:indextb;
tI = t(indexI);
yI = y(indexI);
I = inttrap(tI,yI)
rectspos = [tI; yI; dt*ones(1,length(tI)); yI];
rectsneg = [tI; zeros(1,length(tI)); dt*ones(1,length(tI)); -yI];
fill = 10*ones(1,length(tI));
xrects(rectspos,fill);
xrects(rectsneg,fill);
// Derivada
t0 = 3;
y0 = y(t==t0)
plot(t0,y0,'m.')
dydt = dy/dt;
dydt0 = dydt(t==t0)
yt = y0 + dydt0*(t-t0);
plot(t,yt,'m--')
// Ejes
a1 = gca;
tlo = 0; tup = tfin; ylo = -1; yup = 1;
a1.data_bounds = [tlo,ylo;tup,yup];
|
2124ed9103369f3f1cc5424b461dae3a6874e853
|
78ff3e16a288175ff606f38ee5ee877d4844773e
|
/6_chapter/6_02_solution.sce
|
23b0221448d9f40ce055f3bfbaf2b91106889e69
|
[] |
no_license
|
rngalvan/fluid-mech-cengel
|
16c12ed8f71f25c812700be4322328c5663b71cf
|
ee45f924e73cbb8b5716fac43504dac15ffd1f64
|
refs/heads/master
| 2021-05-27T20:52:22.586023
| 2013-04-17T04:25:37
| 2013-04-17T04:25:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,009
|
sce
|
6_02_solution.sce
|
//Solution 6-2
WD=get_absolute_file_path('6_02_solution.sce');
datafile=WD+filesep()+'6_02_example.sci';
clc;
exec(datafile)
//unit conversions
theta = theta * %pi / 180 //from [degrees] to [radians]
z_1 = z_1 / 100 //from [cm] to [m]
z_2 = z_2 / 100 //from [cm] to [m]
A_1 = A_1 * 10**-4 //from [cm^2] to [m^2]
A_2 = A_2 * 10**-4 //from [cm^2] to [m^2]
//(a)
V_1 = mdot / (rho * A_1) //continuity equation at inlet
V_2 = mdot / (rho * A_2) //continuity equation at outlet
P_1_gauge = rho * g *((V_2**2 - V_1**2)/(2 * g) + z_2 - z_1) //from bernoulli equation
printf("The guage pressure at the centre of inlet is %1.2f kPa", P_1_gauge / 1000)
//(b)
F_Rx = beta1 * mdot * (V_2 * cos(theta) - V_1) - P_1_gauge * A_1 //from momentum equation in X direction
F_Rz = beta1 * mdot * V_2 * sin(theta) //from momentum equation in Z direction
printf("\nThe anchoring force needed to hold the elbow is given by")
printf("\n1.In positive X direction = %1.0f N", F_Rx)
printf("\n2.In positive Z direction = %1.0f N", F_Rz)
|
01c22b67d5ac9d1923df2aaf7016cd45d61b5c07
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/587/CH11/EX11.10/example11_10.sce
|
a6b47199510a5fa96820eb5eb34ab952529754aa
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 775
|
sce
|
example11_10.sce
|
clear;
clc;
//Example11.10[Installing a Heat Exchanger to Save Energy and Money]
//Given:-
Cp=4.18;//[kJ/kg.degree Celcius]
Th_in=80,Tc_in=15;//Inlet temperatures of hot and cold water[degree Celcius]
m=15/60;//[kg/s]
e=0.75;//Effectiveness
t=24*365;//Operating Hours[hours/year]
neta=0.8;//Eficiency
cost=1.10;//[$/therm]
//Solution:-
Q_max=m*Cp*(Th_in-Tc_in);//[kJ/kg.degree Celcius]
disp("kJ/kg.degree Celcius",Q_max,"Maximun Heat recover is")
Q=e*Q_max;//[kJ/s]
E_saved=Q*t*3600;//[kJ/year]
disp("kJ/year",E_saved,"The energy saved during an entire year will be")
F_saved=(E_saved/neta)*(1/105500);//[therms]
disp("therms/year",F_saved,"Fuel savings will be")
M_saved=F_saved*cost;//[$/year]
disp("per year",M_saved,"The amount of money saved is $")
|
e2ff6497211edaf284f4e1f717861ef4ba293362
|
dea76a7789cbd968b8baea7680a9b49f49577a8d
|
/reduxPlusSagaPlusTest/commandsRan.tst
|
1700beb03bd122a650d68f6801ee72d550c6be1c
|
[] |
no_license
|
mkdirJava/plainTypescript
|
6ab213a624847a424145cb9fbdc0952b077bb9da
|
17e05ba4533578ab48de165621bfd992a23e81f7
|
refs/heads/master
| 2021-08-28T00:16:54.053676
| 2019-07-13T13:44:43
| 2019-07-13T13:44:43
| 195,509,123
| 0
| 0
| null | 2021-08-11T06:02:12
| 2019-07-06T07:05:14
|
JavaScript
|
UTF-8
|
Scilab
| false
| false
| 990
|
tst
|
commandsRan.tst
|
To install Jest on a Typescript project
npm i jest @types/jest ts-jest -D
Explanation:
Install jest framework (jest)
Install the types for jest (@types/jest)
Install the TypeScript preprocessor for jest (ts-jest) which allows jest to transpile TypeScript on the fly and have source-map support built in.
Save all of these to your dev dependencies (testing is almost always a npm dev-dependency)
https://basarat.gitbooks.io/typescript/docs/testing/jest.html
To install Karama more info look to
http://karma-runner.github.io/4.0/config/configuration-file.html
# Install Karma:
$ npm install karma --save-dev
# Install plugins that your project needs:
$ npm install karma-jasmine karma-chrome-launcher karma-firefox-launcher jasmine-core --save-dev
This is for Cypress io
npm install cypress --save-dev @cypress/webpack-preprocessor typescript ts-loader
# If this is from a blank project
npm install cypress webpack @cypress/webpack-preprocessor typescript ts-loader
|
61ca3c4465dafdaec0ade3ab1aac8bee99c81a65
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1442/CH2/EX2.2/2_2.sce
|
5f00f4f5bc7a44cd9ece78e1e7b0e73b95c66770
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 333
|
sce
|
2_2.sce
|
clc
//initialisation of variables
n= 0.25 // k mol
M= 32 //kg/kmol
V= 0.5 //m^3
//CALCULATIONS
m= n*M
d= m/V
v= 1/d
v1= V/n
//RESULTS
printf ('mass of oxygen = %.f kg',m)
printf ('\n density of oxygen = %.f kg/m^3',d)
printf ('\n specific volume = %.4f kg/m^3',v)
printf ('\n molar specific volume = %.f m^3/kmol',v1)
|
9d21db387a2dac3533baf8218e84eb11d7e968ad
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2159/CH5/EX5.7/57.sce
|
80a56623993aa807d56e2b05a5050fd421df1d5c
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 208
|
sce
|
57.sce
|
// problem 5.7
l=0.77
H=0.39
H1=0.6
Dp=H+H1
Cd=0.623
g=9.81
Q=(2*Cd*l*((2*g*H*H*H)^0.5))/3
v=Q/(l*Dp)
Ha=(v*v)/(2*g)
q=(2*Cd*l*((2*g)^0.5)*(((H+Ha)^1.5)-(Ha^1.5)))/3
disp(q,"discharge in m3/sec")
|
a998c231e4545b756f0242150b13069c49492d57
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3630/CH3/EX3.10/Ex3_10.sce
|
3486f099853ea666d050fa1db6d7cd089ce88663
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 291
|
sce
|
Ex3_10.sce
|
clc;
//ex3.10
Vlpk=20.5; //volt
RL=5100; //ohm
Ilpk=Vlpk/RL; //Ampere// from v=r*i
Vave=13.1; //volt//from v=r*i
Iave=Vave/RL; //Ampere
disp('mA',Ilpk*1000,"Ilpk="); //The answers vary due to round off error
disp('mA',Iave*1000,"Iave="); //The answers vary due to round off error
|
979cfd5c6d584b2b367fb97b9a4b1c26196a01dc
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1962/CH1/EX1.2/example1_2.sce
|
ceecd8dc7c54574d3d3ae2cc2d2bce9805fb36ff
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
example1_2.sce
|
//example1.2
//page 12
clc; funcprot(0);
//initialissation of variable
delP=10^6;//change in pressure
V=1//volume
Beta=2.2*10^9;
delV=-delP/V/Beta;
perV=-delV*100/V;//percent change
disp(perV,"the percent change in volume (%);");
clear
|
ee8b4fc29f68b9f81352e70cea62265191d61e4c
|
dc43d2d07e54764662d2629492544cc614c391a7
|
/Guass_Jordan.sce
|
a973bbfc86b73f8fd1247661d0205a7d444cc436
|
[] |
no_license
|
CaptainLazarus/Scilab
|
6634ea1774f00e1a25b5b05c622429bfc51f9abf
|
3af1504ebbdb784e6493a8c4b264e6994c45a02b
|
refs/heads/master
| 2020-04-16T19:27:39.496867
| 2019-02-26T05:53:48
| 2019-02-26T05:53:48
| 165,860,221
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 323
|
sce
|
Guass_Jordan.sce
|
function Guass_Jordan(a,b)
[row,col] = size(a)
for j = 1:col
for i = 1:row
if(i ~= j)
b(i) = a(j,j)*b(i)/a(i,j) - b(j)
a(i , :) = a(j,j)*a(i,:)/a(i,j) - a(j,:)
end
end
end
c = []
for i = 1:row
c(i) = b(i)/a(i,i)
end
disp(c)
endfunction
|
f2585da729bb0bc7af90997d630ec6fc832e5e5a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3428/CH9/EX4.9.10/Ex4_9_10.sce
|
e36fce2093b53b8e1f9abcd2a90cca10e46ae5a4
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 350
|
sce
|
Ex4_9_10.sce
|
//Section-4,Example-3,Page no.-I.66
//To calculate percentage of light absorbed by the given solution.
z_1=40/100 //z_1=(I/I_0)
x=2
C_1=20
y=(log10(100/40)/(x*C_1)) //y=e/M
C_2=40
z_2=y*C_2*x //z_2=log(I_0/I_t)=log(z_3)where z_3=(I_0/I_t)
z_3=10^z_2
I_t=(100/z_3)
p_l=(100-I_t)
disp (p_l,'Percentage of light absorbed')
|
20743082ca8cfbd771d91c2ccaabcfe4679280e3
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/462/CH7/EX7.1/ex_7_1.sce
|
0eeed6e7758c94e693ae987e76b2e78e9ca67289
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 691
|
sce
|
ex_7_1.sce
|
//example 7.1//
clc
//clears the screen//
clear
//clears the command window//
e=input('Enter the enable i/p level (1or0) :');
//accepting the input of enable//
r=input('enter the R i/p level(1or0):');
//accepting the inputs from the user//
s=input('enter the S i/p level(1or0):');
//accepting the input S from the user//
qn=input('Enter the previous output value (1or0):');
//accepting the old input from the user//
flag=0;
if e==0 then
//calculating the output//
op=qn ;
elseif(s==0 & r ==0) then
op=qn ;
elseif ( s ==1& r ==1) then
disp('The inputs are illegal')
flag=1;
else
op=s;
end
if(flag==0)
disp('output(Qn+1)=')
disp(op)
end
//displaying the output//
|
e27bf8c83f1b2ced81e66921520a60bb0b194733
|
64647656adb5d4ff3cbb1147f2009fd55a598d27
|
/macros/buildmacros.sce
|
a8c969bfd0f322dafd5aef9eca989122a5f4f9fd
|
[] |
no_license
|
esc0rpi0n/modbus-blocks
|
353ae5e5df9da7a6afc9bd5d264670b1e132e655
|
44664b3424e9b7b98fab0216676977fb7ad29544
|
refs/heads/master
| 2020-04-02T05:15:19.835714
| 2017-06-14T08:18:01
| 2017-06-14T08:18:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 713
|
sce
|
buildmacros.sce
|
mode(-1)
toolboxname='modbusblocks'
pathB=get_absolute_file_path('buildmacros.sce')
disp('Building macros in ' +pathB)
genlib(toolboxname+'lib',pathB,%t)
disp('Building Scicos palette ...')
blocks=['MB_INIT_TCP.sci';..
'MB_INIT_RTU.sci';..
'MB_READ_COIL_STATUS.sci';..
'MB_READ_INPUT_STATUS.sci';..
'MB_READ_HOLDING_REGS.sci';..
'MB_READ_INPUT_REGS.sci';..
'MB_FORCE_SINGLE_COIL.sci';..
'MB_PRESET_SINGLE_REG.sci';..
'MB_FORCE_MULTIPLE_COILS.sc';..
'MB_PRESET_MULTIPLE_REGS.sci']
load(SCI+'/macros/scicos/lib')
exec(SCI+'/macros/util/create_palette.sci',-1)
build_palette(blocks,pathB,'ModbusBlocks')
clear pathB genlib toolboxname blocks
|
cfd19ebe563eee37cf636366ca87e91712afede1
|
897ce6a3fd5b682122c396af7e24fa53014c7cb3
|
/src_script/scilab/_import/rtsx_10/SerialLink.sci
|
43a8720bdfdd4ee66a1932ab82fa7c39294415b3
|
[] |
no_license
|
stub22/glue-ai-v1_friendularity
|
e66f5ab357eba45de2def6f7900f414e358a4125
|
74949dc3e9b0d08b39857735aad901915e61322d
|
refs/heads/master
| 2022-12-19T18:57:01.336831
| 2017-08-04T12:55:12
| 2017-08-04T12:55:12
| 284,544,364
| 0
| 0
| null | 2020-10-14T00:08:14
| 2020-08-02T21:24:34
|
Java
|
UTF-8
|
Scilab
| false
| false
| 4,416
|
sci
|
SerialLink.sci
|
// SerialLink.sci creates a SerialLink robot structure
// www.controlsystemslab.com July 2012
//
// Parameters
// Link(i) Link structure (inherited from L)
// gravity direction of gravity [gx gy gz]
// base pose of robot's base (4x4 homog xform)
// tool robot's tool transform, T6 to tool tip (4x4 homog xform)
// name name of robot, used for graphical display
// manuf annotation, manufacturer's name
//
// nj number of joints
// config joint configuration string, eg. 'RRRRRR'
// mdh kinematic convention boolean (0=DH, 1=MDH)
//
// Usage: RM = SerialLink(L, options)
function rm=seriallink(L,varargin)
rm=_Serial_Link(L,varargin);
endfunction
function rm=SerialLink(L,varargin)
rm=_Serial_Link(L,varargin);
endfunction
function rm=_Serial_Link(L,varargin)
varargin = varargin($);
varnum=length(varargin);
sdhflag = 0; // flag for stdDH
mdhflag = 0; // flag for modDH
nlinks=size(L,1); // number of links
rm.nj = nlinks; // number of joints
rm.mdh = 0; // default to stdDH
rm.conf = ''; // joint configuration string
for i=1:nlinks
rm.Link(i)=L(i);
if rm.Link(i).mdh then
mdhflag = 1; // modified DH detected
rm.mdh = 1; // modDH
else sdhflag = 1; // standard DH detected
end
if L(i).sigma then rm.conf=strcat([rm.conf,'P']);
else rm.conf=strcat([rm.conf,'R']);
end
end
if (sdhflag & mdhflag) then // mixed DH conventions not allowed
rm = []; //return null matrix
error('Robot has mixed DH link conventions');
end
rm.name = '';
rm.manuf = '';
rm.comment = '';
rm.base = eye(4,4);
rm.tool = eye(4,4);
rm.gravity = [0; 0; 9.81];
rm.workspace=[];
rm.viewangle=[];
if pmodulo(varnum,2) then // number of arguments is odd. Error!
error("Input argument number is odd. You must miss something!");
else
for iv =1:2:varnum-1 // select only command at odd position
if type(varargin(iv))==10 then // check if string (it should be!)
varargin(iv)=convstr(varargin(iv),'l'); // convert to lower
else
error("Parameter name must be a string (perhaps you forget to put it in quotes)!");
end
select varargin(iv),
case 'name' then
if type(varargin(iv+1))==10 then
rm.name = varargin(iv+1);
else error("Robot name must be a string");
end
case 'manuf' then
if type(varargin(iv+1))==10 then
rm.manuf = varargin(iv+1);
else error("Robot manufacturer must be a string");
end
case 'comment' then
if type(varargin(iv+1))==10 then
rm.comment = varargin(iv+1);
else error("Comment must be a string");
end
case 'viewangle' then
if size(varargin(iv+1))==[1,2] then
rm.viewangle = varargin(iv+1);
else error("Value for robot viewangle must be 1 x 2 vector");
end
case 'base' then
if ishomog(varargin(iv+1),'valid') then
rm.base = varargin(iv+1);
else error("Value for robot base must be 4 x 4 matrix");
end
case 'tool' then
if ishomog(varargin(iv+1),'valid') then
rm.tool = varargin(iv+1);
else error("Value for robot tool must be 4 x 4 matrix");
end
case 'gravity' then
if size(varargin(iv+1))== [3 1] then
rm.gravity = varargin(iv+1);
else error("Value for robot gravity must be 3 x 1 vector");
end
end // select varargin(iv)
end // for iv=1:2:varnum-1
end // if pmodulo(varnum,2)
endfunction
|
8df5a33feba629ebd4435556a79eacc3604360ba
|
efba0810ec7227f4fe228c95563e792b0b9eee9c
|
/macros/plotly.sci
|
135c7ef42d462c68ef1ed0a7ab2d5fc80bf19b55
|
[] |
no_license
|
mstroehle/Plotly
|
99d626c68ddb65f388034fa4e24b276d04a7cfec
|
e360ffcae3639471e72e4ee742878443e9072737
|
refs/heads/master
| 2023-03-23T09:13:19.890260
| 2020-04-21T16:34:29
| 2020-04-21T16:34:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 721
|
sci
|
plotly.sci
|
function plotly(x,y)
//if the file plotly.html already exists, delete it
if getos() == 'Windows' then unix('del plotly.html');
else unix('rm -f plotly.html'); end
header='<head><script src=""https://cdn.plot.ly/plotly-latest.min.js""></script></head>';
container='<div id=""container"" style=""width:600px;height:400px;""></div>';
// data = '{x: ['+strcat(string(x),",")+'],y: ['+strcat(string(y),",")+'] }';
st = struct("x",x,"y",y);
data = toJSON(st);
js='<script>CONTAINER = document.getElementById(""container"");Plotly.plot( CONTAINER,['+data+'] );</script>';
write('plotly.html', [header;container;js])
if getos() == 'Windows' then winopen('plotly.html') end
endfunction
|
260cc246b9609d0d4d51b72e475d4f954cab635d
|
127061b879bebda7ce03f6910c80d0702ad1a713
|
/bin/PiLab_imp.sci
|
def3c6811e6769d9a2345711e1b609ba253f12c4
|
[] |
no_license
|
pipidog/PiLib-Scilab
|
961df791bb59b9a16b3a32288f54316c6954f128
|
125ffa71b0752bfdcef922a0b898263e726db533
|
refs/heads/master
| 2021-01-18T20:30:43.364412
| 2017-08-17T00:58:50
| 2017-08-17T00:58:50
| 100,546,695
| 0
| 1
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 3,791
|
sci
|
PiLab_imp.sci
|
// **** Purpose ****
// This codes can modify the onsite potential of wannier Hr to mimic
// the effects of simple impurities.
// **** Variables ****
// ==== << PiLab Inputs >> ====
// [imp.HrRead]: 1x1, str, 'wan'/'spl'/'hdr'
// <= specify the Hr to read.
// [imp.PotState]: 1xn, int
// <= states that onsite fields are applied
// [imp.PotStreng]: 1xn, real
// <= energy shift of each assigned sublattice
// ==== << PiLab Outputs >> ====
// [imp.R0_index]: 1x1, int
// => index of R=0 unit cell in the loaded uc_index
// [imp.pot_orig]: tot_wf x 1, real
// => original onsite potential of each WF.
// [imp.pot_corr]: tot_wf x 1, real
// => onsite potential corrections of each WF.
// **** Version ****
// 02/24/2016: first built
// **** Comment ****
function PiLab_imp(project_name)
disp('{imp}: starting calculation ...');
c1=clock();
printf('\n');
printf(' => start time: %4d/%02d/%02d %02d:%02d:%02d\n',c1);
// loading variables ===============================================
disp('{imp}: loading variables ...');
PiLab_loader(project_name,'imp','user','trim');
load(project_name+'_imp.sod');
load(project_name+'_'+imp.HrRead+'.sod');
disp(' => all data loaded')
// check variables ================================================
disp('{imp}: checking variables ...')
check_var=(imp.HrRead=='wan' | imp.HrRead=='hdr' | imp.HrRead=='spl');
if check_var~=%t then
disp('Error: PiLab_imp, imp.HrRead must '...
+'be ''wan'', ''hdr'', ''spl'' !');
abort;
end
check_var=(length(imp.PotState)==length(imp.PotStreng))
if check_var~=%t then
disp('Error: PiLab_imp, imp.PotState and imp.PotStreng '...
+'must have the same length!');
abort;
end
disp(' => all variables passed')
// core part =======================================================
disp('{imp}: running core part ...');
disp(' => collecting information')
select imp.HrRead
case 'wan'
tot_state=length(wan.state_info(:,1));
imp.R0_index=PIL_row_find(wan.uc_index(:,1:3),[0,0,0]);
H0_mat=..
wan.Hr_mat(:,(imp.R0_index-1)*tot_state+1:imp.R0_index*tot_state)..
/wan.uc_index(imp.R0_index,4);
case 'hdr'
tot_state=length(hdr.state_info(:,1));
imp.R0_index=PIL_row_find(hdr.uc_index,[0,0,0]);
H0_mat=..
hdr.Hr_mat(:,(imp.R0_index-1)*tot_state+1:imp.R0_index*tot_state);
case 'spl'
tot_state=length(spl.state_info(:,1));
imp.R0_index=PIL_row_find(spl.uc_index,[0,0,0])
H0_mat=..
spl.Hr_mat(:,(imp.R0_index-1)*tot_state+1:imp.R0_index*tot_state);
end
H0_mat=full(H0_mat);
if max(imp.PotState) > tot_state then
disp('Error: PiLab_imp, imp.PotState '...
+'has state label that does''t exist !');
abort;
end
disp(' => modifying onsite potentials')
imp.pot_orig=diag(H0_mat);
imp.pot_corr=zeros(tot_state,1);
imp.pot_corr(imp.PotState)=imp.PotStreng';
// output information ==============================================
disp('{imp}: output information ...')
fid=mopen(project_name+'_imp.plb','a+');
PIL_print_mat('imp.R0_index, @f:f, R=0 unit cell in the uc index ',..
imp.R0_index,'i',fid(1));
PIL_print_mat('imp.pot_orig, @f:f, original onsite potentials'..
+' of each WFs',imp.pot_orig,'r',fid(1));
PIL_print_mat('imp.pot_corr, @f:f, onsite potential corrections'..
+' of each WFs',imp.pot_corr,'r',fid(1));
mclose(fid(1))
// finishing program ===============================================
save(project_name+'_imp.sod','imp');
disp('{imp}: finishing calculation ...');
disp(' => time elapse '+string(etime(clock(),c1))+ ' seconds');
endfunction
|
7cc04051bc9a3b1f814d5a4a0f99316ae98735e1
|
1db0a7f58e484c067efa384b541cecee64d190ab
|
/macros/levdown.sci
|
f09612bfd035ac22d42ead1c2d7eef31fcc52aff
|
[] |
no_license
|
sonusharma55/Signal-Toolbox
|
3eff678d177633ee8aadca7fb9782b8bd7c2f1ce
|
89bfeffefc89137fe3c266d3a3e746a749bbc1e9
|
refs/heads/master
| 2020-03-22T21:37:22.593805
| 2018-07-12T12:35:54
| 2018-07-12T12:35:54
| 140,701,211
| 2
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 376
|
sci
|
levdown.sci
|
function [a,e]=levdown(a, efinal)
ee=a($);
a = (a-a($)*flipdim(a,2,1))/(1-a($)^2);
a=a(1:$-1)
econj=conj(ee);
econj=econj';
e = efinal/(1.-(econj.*ee));
endfunction
|
aa84430aec3c0d8b0a36cc43374b31b5b0fa71d0
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1835/CH11/EX11.10/Ex11_10.sce
|
1652ade03aeb10a408da406af6713d9f4092d4bd
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,291
|
sce
|
Ex11_10.sce
|
//CHAPTER 11 ILLUSRTATION 10 PAGE NO 296
//TITLE:VIBRATIONS
//FIGURE 11.18
clc
clear
//===========================================================================================
//INPUT DATA
PI=3.147
g=9.81// ACCELERATION DUE TO GRAVITY IN N /m^2
E=200*10^9// YOUNGS MODUKUS OF SHAFT MATERIAL IN Pascals
D=.03// DIAMETER OF SHAFT IN m
L=.8// LENGTH OF SHAFT IN m
r=40000// DENSITY OF SHAFT MATERIAL IN Kg/m^3
W=10// WEIGHT ACTING AT CENTRE IN N
//===========================================================================================
I=PI*D^4/64// MOMENT OF INERTIA OF SHAFT IN m^4
m=PI*D^2/4*r// MASS PER UNIT LENGTH IN Kg/m
w=m*g
DELTA=W*L^3/(48*E*I)// STATIC DEFLECTION DUE TO W
DELTA1=5*w*L^4/(384*E*I)// STATIC DEFLECTION DUE TO WEIGHT OF SHAFT
Fn=.4985/(DELTA+DELTA1/1.27)^.5
//==========================================================================================
printf('FREQUENCY OF TRANSVERSE VIBRATION = %.3f Hz',Fn)
|
0888ccf0a4723fa6b221bd6529d7ab25f75eec8a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/683/CH7/EX7.6/SC_6.sce
|
9bd23f00682429577e5a599963886417caa9b8cb
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
SC_6.sce
|
// sum 7-6
clc;
clear;
P=1500;
FOS=2;
Pd=FOS*P;
l=280;
E=207*10^3;
I=Pd*l^2/(%pi^2*E);
D=(64*I/(%pi*(1-0.8^4)))^(1/4);
D=8;
d=6.4;
// printing data in scilab o/p window
printf("D is %0.1f mm ",D);
printf("\n d is %0.1f mm ",d);
|
c76886fbd2c5bde08934230466b5c6f80a47a4cb
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3014/CH8/EX8.2/Ex8_2.sce
|
277e8fa44d57fc0de7dfd1306f4e8c17a6505086
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 355
|
sce
|
Ex8_2.sce
|
clc
// Given that
H_c= 3.3e4 // // Magnetic field in A/m
T_c = 7.2 // Critical temperature in kelvin
T = 5 // Temperature in kelvin
printf("Example 8.2\n")
printf("Standard formula used \tH_c = H_c_0*(1-(T/T_c)^2) \n")
H_c_0 = H_c*(1-(T/T_c)^2)^(-1) // Calculation of critical field
printf("Magnetic Field at %d K is %e A/m\n\n\n",T,H_c_0)
|
c52a487d7389ada1ba92df348b0f9c1c182d4734
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/199/CH7/EX7.17.a/Example_7_17_a.sce
|
2782c08997c3368dd983c40e3e8052ce15e57b9a
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 379
|
sce
|
Example_7_17_a.sce
|
// Chapter7
// Page.No-296
// Example_7_17_a
// Nominal frequency
// Given
clear;clc;
R2=1.5*10^3;
R1=10*10^3;
R3=10*10^3;
C1=0.001*10^-6;
V=12; // Supply voltage
Vc=R3*V/(R2+R3); // Using voltage divider rule
printf("\n Terminal voltage Vc is = %.2f V \n",Vc) // Result
fo=2*(V-Vc)/(V*R1*C1);
printf("\n Approximate Nominal freq fo is = %.1f Hz \n",fo) // Result
|
a7ff1e36910b75015dc00f0bded7ddc357eac469
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1592/CH11/EX11.3/example_11_3.sce
|
03cb79e2143bd8afc436461ac4dccc9234e25f90
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 464
|
sce
|
example_11_3.sce
|
//Scilab Code for Example 11.3 of Signals and systems by
//P.Ramakrishna Rao
//Hilbert Transform
clc;
clear xr n t x1 x2;
clear;
n=1;
for t=-1:0.01:1
xr(n)=exp(%i*2*%pi*t);
n=n+1;
end
//Computing Hilbertb Transform
x1=hilbert(real(xr));
x2=hilbert(imag(xr));
x=x1+x2;
t=-1:0.01:1;
plot(t,xr);
title('Given Signal x(t)');
xlabel('time t-->');
figure(1);
t=-1:0.01:1;
plot(t,imag(x));
title('Hilbert Transform');
xlabel('time t-->');
|
ce23977fa4684242984defb0665d349334fa11bc
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1319/CH4/EX4.7/4_7.sce
|
077c11f937886380af5a9f76f32123c5e1c90c4f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 390
|
sce
|
4_7.sce
|
//Dynamometer wattmeter power calculation of the load
clc;
clear;
P=250; // Power Recorded by the wattmeter
V=200; // Load voltage
R=2000; // Resistance of the highly non-inductive pressure coil
I=V/R; // Ohm's Law
Pcoil=V*I; // Power Absorbed by the pressure coil
Pl=P-Pcoil; // Power taken by the load
printf('The Power taken by the load = %g watts. \n',Pl)
|
fb64faab87c187943fec0ba75087e81d063e9f8c
|
4ed576b765859807d6c29665521e0697d6f9bae7
|
/archive/03/ex3.6.sce
|
52beab94af1e01508e9aa14e498636a74ecee850
|
[] |
no_license
|
sbednarz/scilab
|
96b9182730fa48d11f27840fc197d151adb01e2c
|
28f81c58bc4972eeb41f403cb157fb989e809f41
|
refs/heads/master
| 2021-07-11T04:42:04.289126
| 2021-05-17T20:55:19
| 2021-05-17T20:55:19
| 100,467,366
| 3
| 1
| null | 2020-06-19T06:49:18
| 2017-08-16T08:37:06
|
Scilab
|
UTF-8
|
Scilab
| false
| false
| 2,624
|
sce
|
ex3.6.sce
|
// ex3.6
// https://en.wikipedia.org/wiki/Extent_of_reaction
// https://www.youtube.com/watch?v=fuk1zTdJifM
// 2A <=> B + 3C
// Given:
// A0 >0
// B0 >0
// C0 >0
// K
// calc at eq
// A, B, C
function eq = model1(x)
Xi = x(1) // extent of reaction
A = -2*Xi + A0
B = 1*Xi + B0
C = 3*Xi + C0
eq(1) = B*C^3 - K*A^2
endfunction
A0 = 2 // mol/L
B0 = 1 // mol/L
C0 = 0 // mol/L
K = 79.734375
guess = [0.5]
x = fsolve(guess, model1)
Xi = x(1)
A = -2*Xi + A0
B = 1*Xi + B0
C = 3*Xi + C0
printf("Xi=%.3f\n", Xi)
printf("A=%.3f\n", A)
printf("B=%.3f\n", B)
printf("C=%.3f\n", C)
//-----------------------------------------------------
// A + B <=> C + D
// Given:
// A0 >0
// B0 >0
// C0 >0
// D0 >0
// K
// calc at eq
// A, B, C, D
function eq = model2(x)
Xi = x(1) // extent of reaction
A = -1*Xi + A0
B = -1*Xi + B0
C = 1*Xi + C0
D = 1*Xi + D0
eq(1) = C*D - K*A*B
endfunction
// #1
A0 = 1 // mol/L
B0 = 1 // mol/L
C0 = 0 // mol/L
D0 = 0 // mol/L
K = 1
guess = [0]
x = fsolve(guess, model2)
Xi = x(1)
A = -1*Xi + A0
B = -1*Xi + B0
C = 1*Xi + C0
D = 1*Xi + D0
printf("\nCase: A0=%.1f mol/L B0=%.1f mol/L A0=%.1f mol/L B0=%.1f mol/L K=%.1f\n", A0,B0,C0,D0,K)
printf("Xi=%.3f\n", Xi)
printf("A=%.3f\n", A)
printf("B=%.3f\n", B)
printf("C=%.3f\n", C)
printf("D=%.3f\n", D)
// #2
A0 = 1 // mol/L
B0 = 1 // mol/L
C0 = 1 // mol/L
D0 = 1 // mol/L
//
K = 1
guess = [0]
x = fsolve(guess, model2)
Xi = x(1)
A = -1*Xi + A0
B = -1*Xi + B0
C = 1*Xi + C0
D = 1*Xi + D0
printf("\nCase: A0=%.1f mol/L B0=%.1f mol/L A0=%.1f mol/L B0=%.1f mol/L K=%.1f\n", A0,B0,C0,D0,K)
printf("Xi=%.3f\n", Xi)
printf("A=%.3f\n", A)
printf("B=%.3f\n", B)
printf("C=%.3f\n", C)
printf("D=%.3f\n", D)
// #3
A0 = 1 // mol/L
B0 = 1 // mol/L
C0 = 0.5 // mol/L
D0 = 0.5 // mol/L
//
K = 1
guess = [0]
x = fsolve(guess, model2)
Xi = x(1)
A = -1*Xi + A0
B = -1*Xi + B0
C = 1*Xi + C0
D = 1*Xi + D0
printf("\nCase: A0=%.1f mol/L B0=%.1f mol/L A0=%.1f mol/L B0=%.1f mol/L K=%.1f\n", A0,B0,C0,D0,K)
printf("Xi=%.3f\n", Xi)
printf("A=%.3f\n", A)
printf("B=%.3f\n", B)
printf("C=%.3f\n", C)
printf("D=%.3f\n", D)
// #4
A0 = 0 // mol/L
B0 = 0 // mol/L
C0 = 1 // mol/L
D0 = 1 // mol/L
//
K = 1
guess = [0]
x = fsolve(guess, model2)
Xi = x(1)
A = -1*Xi + A0
B = -1*Xi + B0
C = 1*Xi + C0
D = 1*Xi + D0
printf("\nCase: A0=%.1f mol/L B0=%.1f mol/L A0=%.1f mol/L B0=%.1f mol/L K=%.1f\n", A0,B0,C0,D0,K)
printf("Xi=%.3f\n", Xi)
printf("A=%.3f\n", A)
printf("B=%.3f\n", B)
printf("C=%.3f\n", C)
printf("D=%.3f\n", D)
|
d5e02966ba85e6022bad72265199a92fae2b69c9
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2198/CH2/EX2.9.4/Ex2_9_4.sce
|
cfd7c6f28c29f9a1f76fc2baf771eab57b4e134a
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 309
|
sce
|
Ex2_9_4.sce
|
//Ex 2.9.4
clc;clear;close;
format('v',8);
//Given :
T=27+273;//K
V1=0.4;//V
V2=0.42;//V
I1=10;//mA
I2=20;//mA
VT=T/11600;//V
Eta=1/log(I1/I2)*(V1-V2)/VT
disp(Eta,"Value of Eta : ");
Io=I1/(exp(V1/Eta/VT)-1)*10^-3;//A
disp(Io*10^9,"Current, Io in nA : ");
//Ans in the book is not accurate.
|
630673b15046c62faf0a5fac660d492e3d8fac82
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/569/CH3/EX3.31/3_31.sci
|
6199f0620bcb9d2da98ddc0a6818d091bd22ee54
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
sci
|
3_31.sci
|
//to point out the reading that can be rejected by chavenets criterion
clc;
x=[5.3 5.73 6.77 5.26 4.33 5.45 6.09 5.64 5.81 5.75]*10^-3;
d=[-.313 .117 1.157 -.353 -1.283 -.163 .477 .027 .197 .137]*10^-3;
n=10;
X=sum(x)/n;
s=sqrt(sum(d^2)/(n-1));
a=abs(d)/s;disp(a);
for i=1:10,
if a(i)>1.96 then
disp(x(i),'rejected value');
end
end
|
dc37dbe60ac8ac9b83c7bc05967917ce4bae6131
|
a62e0da056102916ac0fe63d8475e3c4114f86b1
|
/set12/s_Industrial_Instrumentation_K._Krishnaswamy_And_S._Vijayachitra_1436.zip/Industrial_Instrumentation_K._Krishnaswamy_And_S._Vijayachitra_1436/CH8/EX8.8/ex8_8.sce
|
46fa371f87cf7f1827a9398fae62fef619cdd84c
|
[] |
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
| 179
|
sce
|
ex8_8.sce
|
errcatch(-1,"stop");mode(2);//Example 8.8, page no-511
wn=sqrt(3)
x=3.2/(2*wn)
printf("Damping coefficient = %.3f\nNatural frequency of Oscillation = %.3f",x,wn)
exit();
|
9fdf74a77d230c52d8803dbec923ba59aac34b5d
|
b26239033e0d21476c77ff50326b32231c2a3b00
|
/Workspace/missionB1.sce
|
468ebbef02005d911e40226db18f6fdf97249d35
|
[] |
no_license
|
SmartGuyy/Exolife
|
1c9a5bfdb8b16523e9681170fe4cb2cb12613e3a
|
eb477766dffe7edd9022d0cf46028980489c6277
|
refs/heads/master
| 2021-06-17T03:56:00.785128
| 2017-03-17T09:39:04
| 2017-03-17T09:39:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 383
|
sce
|
missionB1.sce
|
// Chargement de l'image
img_input=readpbm("C:\Users\DimitriXPS\Documents\GitHub\Exolife\Exolife\Images\Mission 5\Gliese 667Cc_surface.pbm");
<<<<<<< HEAD
// Do a normalisation on the image
display_gray(histogramme(normalisation(img_input)));
=======
// Effectuer la fonction normalisation sur l'affichage
display_gray(normalisation(img_input))
>>>>>>> origin/Dimitri
|
dbeae04c9a17534fabfe8ace96733709caa23cca
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2666/CH8/EX8.1/8_1.sce
|
d7eef7cd18421426bf332a1ea486bdc594fea1c6
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 300
|
sce
|
8_1.sce
|
clc
//initialisation of variables
p1=53//psi
p2=54//psi
t=638//lb-ft
d=275//rpm
h1=50.26//sq in
h2=49.48//sq in
g=(10/12)//lb-ft
h=33000//lbf
//CALCULATIONS
I=(p1*h1+p2*h2)*g*d/(h)//ihp
P=2*%pi*d*t/h//bhp
M=P/I*100//percent
//RESULTS
printf('the mechanical efficiency=% f percent',M)
|
8791a37f0f4d781b35acdaa48346b47816fda42c
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3768/CH6/EX6.9/Ex6_9.sce
|
d5c5731b065570dea349b3698effc77b66aa42ff
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 511
|
sce
|
Ex6_9.sce
|
//Example number 6.9, Page number 120
clc;clear;
close;
//Variable declaration
Ee=10; //electron kinetic energy(eV)
Ep=10; //proton kinetic energy(eV)
e=1.6*10**-19; //charge(c)
me=9.1*10**-31; //mass(kg)
mp=1.67*10**-27; //mass(kg)
//Calculation
cebar=sqrt(2*Ee*e/me); //electron velocity(m/s)
cpbar=sqrt(2*Ep*e/mp); //proton velocity(m/s)
//Result
printf("electron velocity is %.3e m/s",cebar)
printf("\n proton velocity is %.3e m/s",cpbar)
//answers given in the book are wrong
|
8261a471de844def88a6a6c6a27c65d5eefb7c90
|
aab7e40582be003ebdf6f5ad6f1efcdaef4c63d6
|
/macros/JSONWrite.sci
|
fc5deea5b59207f3dc1699674174cad4026790bc
|
[] |
no_license
|
sengupta/Scilab-JSON
|
578370e2470d630afd7c21c5ec5040ee3200d6d0
|
209a65d4b979ce3ff147ebda58c237236783f403
|
refs/heads/master
| 2021-01-18T18:35:13.647060
| 2012-04-03T13:51:34
| 2012-04-03T13:51:34
| 1,687,912
| 2
| 1
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 72
|
sci
|
JSONWrite.sci
|
// A simple JSON Writer
function JSON = JSONWrite(Struct)
endfunction
|
6c1666a4e9f200ea32cf1946350bfa0e07eb730e
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/source/2.5/macros/percent/%b_h_spb.sci
|
5646b6be2a3486167d9a1750e4c80d769ec52175
|
[
"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
| 161
|
sci
|
%b_h_spb.sci
|
function r=%b_h_spb(a,b)
// perform logical elementwise and a&b where a is a boolean sparse matrix
// and b a boolean matrix
// Copyright INRIA
r=sparse(a)&b
|
c85b3accb889658c980862b816c2e49dab390e2b
|
b5b8080da626573a49252737f2fd67dca771b156
|
/notes.tst
|
fbe07421c114c2d32007059f03bbe288c9d91d7e
|
[] |
no_license
|
GabrielYSirat/GPU
|
6cd378854d02b2d39f73db0307fe3b51c71baed2
|
a64bf434d687ddc90453afefea6441fc91333efc
|
refs/heads/master
| 2021-08-30T07:11:51.429075
| 2017-12-16T16:41:44
| 2017-12-16T16:41:44
| 114,474,856
| 0
| 0
| null | 2017-12-16T16:41:45
| 2017-12-16T16:31:10
|
C++
|
UTF-8
|
Scilab
| false
| false
| 229
|
tst
|
notes.tst
|
float displaydata(float * datavalues, int stepval) {
float scratchreaddisplay(float * reconstructiondata, float * scratchdata, const char * filename, bool readtile) {
fullnumberoflasers in tile class
B_DistributionsLoopintern.pgm
|
5cd5764b8fddc26f510d98fdc4d5383d71814321
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2666/CH10/EX10.7/Ex10_7.sce
|
8185676e40770a2067c342083be92626d52861f1
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 368
|
sce
|
Ex10_7.sce
|
clc
//initialisation of variables
h1=0.9//percent
h2=0.6//percent
t=400//ft per sec
s=0.8//ft
a=20//degree
p=500//ft
r=p*cosd(a)-t//ft
r1=p*sind(a)//ft
j=50000//ft
w=6700//ft lb
e=10.2//ft
t1=778//F
//CALCULATIONS
V=t/s//ft per sec
V1=sqrt(r^2+r1^2)//ft lb
N=w/(e*t1)*100//percent
//RESULTS
printf('The nozzle and blade efficiency=% f percent',N)
|
e2e2b44bf78d676c5f5260a4c623dd97cc7c708e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3775/CH7/EX7.1/Ex7_1.sce
|
64466ed7d304101fa4a2f91028bd360c93432716
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 225
|
sce
|
Ex7_1.sce
|
//Ex 7.1 page 260
clc;
clear;
close;
N1=1000;// rpm
Va1=200;// V
alfa=60;// degree
Va2=230;// V
N2=2*Va2*sqrt(2)*cos(alfa*%pi/180)*N1/Va1/%pi
printf('\n Speed of motor = %d rpm',N2)
// ans in the textbook is not accurate.
|
b020a921be0120d45234156e2da6e5f18b451acb
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/615/CH8/EX8.16/8_16.sce
|
cc6f8bd8dcc4de6f49e5067cfa55e9fea8bcf3e0
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 443
|
sce
|
8_16.sce
|
//Fuels and Combustion//
//Example 8.16//
C=3;//weight of carbon in 1kg of coal sample in Kilograms//
WO2=C*32/12;//weight of oxygen in carbon sample in Kilograms//
WA=WO2*100/23;//weight of air in the carbon sample in Kilograms//
printf('weight of air required for combustion of carbon=WA=%fKg',WA);
MA=WA/28.92;//mol of air in kilograms//
VA=MA*22.4;//Volume of air required in m3 air//
printf('\nVolume of air required=VA=%fm3',VA);
|
e4a3010059849508a6beff39c7a9785b3f9826b9
|
a62e0da056102916ac0fe63d8475e3c4114f86b1
|
/set9/s_Engineering_Physics_K._V._Kumar_3537.zip/Engineering_Physics_K._V._Kumar_3537/CH2/EX2.11/Ex2_11.sce
|
9ae4019ddf2d99bf833622061571ec47d83d8b18
|
[] |
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
| 288
|
sce
|
Ex2_11.sce
|
errcatch(-1,"stop");mode(2);//Example 2_11
;
;
//To find the slit width
d=2 //units in meters
lemda=500*10^-9 //units in meters
x=5*10^-3 //units in meters
a=(d*lemda)/x*10^3
printf("The slit width is %.1f mm",a)
exit();
|
ceda2838c97241e2474089fcae7b93576ad9b46f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/24/CH18/EX18.1/Example18_1.sce
|
cf811e23dae5f5fe9c518a5bbae34887310f8a4c
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 314
|
sce
|
Example18_1.sce
|
exec('degree_rad.sci', -1)
//Given that
Vs = 1482 //in m/s
Vw = 343 //in m/s
//Sample Problem 18-1
printf("**Sample Probelm 18-1**\n")
//deltaT = d/V = D*sin(theta)/V
//D*sin(90)/Vs = D*sin(theta)/Vw
theta = rtod(asin(Vw/Vs))
printf("The actual angle at which source is present, is %fdegree", theta)
|
81dfab217e59e1e9cd63291eb684ed924525c314
|
1bb72df9a084fe4f8c0ec39f778282eb52750801
|
/test/REP4.prev.tst
|
96e5fea8e46ff14dfca18a4db9294a565254994c
|
[
"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
| 279
|
tst
|
REP4.prev.tst
|
considerNonPrimitive
Expanding for base=2, level=4, reasons+features=primitive
Refined variables=a,b,c
ReasonFactory: primitive, code="primitive"
isNonPrimitive? rmap2=[0+2*a,0+2*b,0+3*c], gcdAdd=2, gcdMul=1
PrimitiveReason.consider(
"a²+b²-c²",
"a²+b²-c²") =
unknown
|
bafd8631541e146c3db8813bb4bcfd3ac29687e8
|
45a93944a52f35e5601f5eebc0ff0e0c885849fd
|
/scripts/genererRandUniforme.sci
|
b6ab2a932e5024a05c7cdd7177b96350bf3fd2e4
|
[] |
no_license
|
madox35/Simulations-numeriques
|
ae32655f213f5a1dc04de86387652264a5b56aa0
|
11d59864210370b2524ad533bf864d0968053131
|
refs/heads/master
| 2020-03-17T13:32:10.082544
| 2018-05-21T21:14:09
| 2018-05-21T21:14:09
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 115
|
sci
|
genererRandUniforme.sci
|
function Xi = genererRandUniforme(borneA,borneB, iter)
Xi = grand(iter,1,'unf',borneA,borneB);
endfunction
|
360b813c899058808b44eae6cbce21af4144032c
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/548/CH3/EX3.04/3_04.sce
|
8f7a5df1fbb01ba1a31d965beb8c861e06370a33
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 214
|
sce
|
3_04.sce
|
pathname=get_absolute_file_path('3_04.sce')
filename=pathname+filesep()+'3_04data.sci'
exec(filename)
printf("\Answer:\n")
printf("\pressur altitude: %f Km\n",Hp)
printf("\n\density altitude : %f Km\n\n",Hd)
|
3d321803011685df042d77a4464e20ed2068ba7d
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3733/CH32/EX32.7/Ex32_7.sce
|
057d720c9fe719e210142c1aa5e16806a1f24d23
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 361
|
sce
|
Ex32_7.sce
|
// Example 32_7
clc;funcprot(0);
//Given data
UF=0.5;// Use factor
CF=0.4;// Capacity factor
//Calculation
// Use factor=E/(P_c*t);.... (1)
// Capacity factor=(average load/P_c)=(E/(P_c*8760));....(2)
// Dividing euations (1) and (2) we get,
T=(8760*CF)/(UF);// hours
printf('\nThe number of hours of its operation during the year=%0.0f hours',T);
|
bd7d7bdd1c1767622e61cf0ccada222b790ce7b0
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/24/CH5/EX5.1/Example5_1.sce
|
89ea84c9ec2d6fd601c6b8bc2926d1216ae1f787
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 524
|
sce
|
Example5_1.sce
|
exec("degree_rad.sci",-1)
//Given that
m = .20 //in kg
F_1 = 4 * [1,0]
F_2 = 2 * [-1,0]
F_3 = 1 * [cos(dtor(30)),sin(dtor(30))]
//Sample Problebb nmkn nm 5-1
printf("**Sample Problem 5-1**\n")
acceleration_a = F_1(1)/m
acceleration_b = F_2(1)/m
acceleration_c = (F_2(1) + F_3(1))/m
printf("The acceleration of puck in case a is %d m/s^2\n",acceleration_a)
printf("The acceleration of puck in case b is %d m/s^2\n",acceleration_b)
printf("The acceleration of puck in case c is %f m/s^2\n",acceleration_c)
|
1c5ed248a93f9e702804afd55d9f2c7120d2170b
|
482cdc3e27e99afe860829eff3e593caa62202e3
|
/src/Assignment1_Tests/test16.tst
|
2e7e197f4f39fcb14687e21ead7c0b9a123aa997
|
[] |
no_license
|
abrageddon/DLXCompiler
|
e153430de4412fe48a34955851352d0fd73ab2d8
|
2d1abd102f723c2e1f0ed5893e86c7d0ceb42914
|
refs/heads/master
| 2020-12-30T10:50:20.955331
| 2011-12-02T03:34:59
| 2011-12-02T03:34:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 31
|
tst
|
test16.tst
|
do ddo do1 od2 od if else fi;
|
fbf2042743a865a47783f0594c83d18699264fd2
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3401/CH10/EX10.10/Ex10_10.sce
|
1de0d5066cdc6e193f0e5a210faaf757f37c493c
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 223
|
sce
|
Ex10_10.sce
|
clc
T=300 //K
k=8.617*10**-5//eV/K
e=1.6*10**-19 //C
alphaF=0.99
alphaR=0.20
Ic=1//mA
IB=0.050//mA
Vcesat=k*T*log(((Ic*(1-alphaR)+IB)*alphaF)/((alphaF*IB-(1-alphaF)*Ic)*alphaR))
disp(Vcesat,"VCEsat in V is=")
|
4902061917634b0ed064be97a80b7843350ea19e
|
5a546c6ca54da199fa9941e0b7fc3a35b1833ed8
|
/practical_lab1/tp1.sce
|
509b3cb1279a28b221bb2da8736f93836c3f0911
|
[] |
no_license
|
lejarx/PDEandFiniteDifference
|
3185fddc1fa935b622dc27cfc264d29ce9f81494
|
297e41e168be7aa8eb0fcce7b0b8facad5542f00
|
refs/heads/master
| 2021-05-26T16:44:32.954468
| 2014-03-06T23:07:07
| 2014-03-06T23:07:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 408
|
sce
|
tp1.sce
|
clc
clear all
// constants
T = 0.5
L = 1
M = 999
N = 19
delta_t = T/ (M+1)
delta_x = L/ (N+1)
// initial condition
function [f] = initialCondition(x)
f = exp(-(x^2))*x*(1-x)
endfunction
// using the initialCondition function
for i = 1: N + 2
u(1, i) = initialCondition(delta_x*(i-1))
end
x = (0:N+1)*delta_x
plot(x, u(1,:))
//for n = 2 : M + 2
// u(n, 1) = 0
// u(n, N + 2) = 0
//end
|
d5dbcfeeb1a7a03ec6817e64f85f0a5a4958165a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/226/CH2/EX2.9/example9_sce.sce
|
d7a3adee48e84e0f98ed1da625e5cecd3a841073
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 232
|
sce
|
example9_sce.sce
|
//chapter 2
//example 2.9
//page 48
printf("\n")
printf("given")
P1=700*10^-3;Vf=.7;
//at 25C
If=P1/Vf;
disp("If")
//at 65C
D=5*10^-3;T=65-25;
P2=P1-D*T
If=P2/Vf;
printf( "maximum forward current at 65C is %3.3fA\n",If)
|
91d15c9d1cff3ce30ee1181ea44117ba4a364aee
|
0d6a074efca7f6d9d5b1ec4413faf975046ec9af
|
/lms.sce
|
bbee9563434d69847adac6631c01c48a9c7286b5
|
[] |
no_license
|
rishabh1217/Adaptive-noise-cancellation-algorithms-LMS-and-RLS-SCILAB
|
e36c0d52c4eaabe74c8b71d177c4ba2237198273
|
f9786644f0d61efa4a7af8bbb9c9163fea0d34f8
|
refs/heads/master
| 2022-12-22T14:20:29.442433
| 2020-10-01T11:00:13
| 2020-10-01T11:00:13
| 300,246,859
| 0
| 0
| null | 2020-10-01T10:58:57
| 2020-10-01T10:58:56
| null |
UTF-8
|
Scilab
| false
| false
| 1,343
|
sce
|
lms.sce
|
// set len of signal mp
mp=500
// set time vector n
n=(1:1:mp ) ;
// set len of filter hmm and hmp
nfilter =20 ;
// set noise vector
R= .2 // variance Gaussian
av =0 // mean Gaussian
sd =sqrt(R) // std Gaussian
v = grand(1,mp,'nor',av,sd) ;// generate white gaussian
hmm = zeros(1,nfilter) ;
hmp = zeros(1,nfilter) ;
// est vector is dest
dest=zeros(1, mp);
// create input signal x in theta
dtheta =2*%pi/mp ;
x=dtheta*n ;
// create desired vector d as sin(x)
d =sin(x) ;
figure(0) ;
plot (x ,d) ;
// set xmm init vector
i=1 ;
x1=x; // we are using x as d + noise so we store x as x1
// now create input vector x with noise
x= d+v ;
deltn =.01 // step size
// begin computation for i statement
for i=1: mp-nfilter ;
i ;
xmm = x(1:1, i: (nfilter+i -1) ) ;
in= i+1 ;
// set next input vector
//xmp = x(1:1, in: (nfilter+in -1) ) ;
// compute thedhat value from xmm ' *hmm
// dhat is set to zero vector first
dhat = xmm*hmm' ;
// update est vector
dest(i) = dhat ;
// compute last error
elast= d(i) - dhat ;
elast ;
// update hmm vector
hmp= hmm + xmm*elast*deltn ;
hmm =hmp ;
// next step
end ;
d ;
dest ;
figure(1);
subplot(221) ;
title (' true signal ');
plot(x1, d);
subplot(222) ;
title (' signal + noise ');
plot(x1, x);
subplot(224)
title (' filtered signal ');
plot(x1, dest);
subplot(223)
title (' noise ');
plot(x1, v);
|
34c7eed7a5c4da19d1cac51e82fb6700245a6c17
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3825/CH7/EX7.18/Ex7_18.sce
|
c426883dba71533aba77c14cb3f010a6adb7e2fe
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 225
|
sce
|
Ex7_18.sce
|
clc
T1=350
Te1=450
Te2=250
P1=250
P2=100
R=8.314
Cp=(7*R)/2
me1=(Cp*log(Te1/T1))-(R*log(P2/P1))
me2=(Cp*log(Te2/T1))-(R*log(P2/P1))
mprintf("me1(se1-si)+me2(se2-si)=%fkJ/K",me1+me2)//ans vary due to roundoff error
|
01036e0a85f44b1a4ff3a8b4812bd61521794900
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1358/CH8/EX8.0/Example8.sce
|
ca9b9189fa750bd25869e60bfdacc0c985d1725c
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 280
|
sce
|
Example8.sce
|
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Turbomachinery Design and Theory,Rama S. R. Gorla and Aijaz A. Khan, Chapter 8")
disp("Cavitation in Hydraulic Machinery")
disp("Just Theory No Solved/Unsolved Examples")
|
bc7d70c8a9f233a32b9959a83447e145fbb72232
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/343/CH1/EX1.54/ex_54.sce
|
60be19caf15452efc235ac3361ce7937e4598ffb
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 555
|
sce
|
ex_54.sce
|
R1=2; //Assigning values to parameters
R2=10;
R3=2;
R4=5;
R5=1;
R6=4;
I1=28;
I2=2;
A=[11,-5,-1;5,-17,10;1,10,-13.5]; //Applying KCL at the two nodes
B=[280;0;20];
V=inv(A)*B;
I1=V(1,1)/R1;
I2=(V(1,1)-V(2,1))/R3;
I3=(V(1,1)-V(3,1))/R2;
I4=(V(2,1)-V(3,1))/R5;
I5=V(2,1)/R4;
I6=V(3,1)/R6;
disp("Amperes",I1,"Current I1")
disp("Amperes",I2,"Current I2")
disp("Amperes",I3,"Current I3")
disp("Amperes",I4,"Current I4")
disp("Amperes",I5,"Current I5")
disp("Amperes",I6,"Current I6")
|
94ba85ce8760d65d8c6e87ac242a797e5734544f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3813/CH1/EX1.4.a/Ex1_4a.sce
|
da4c8b7063743d193963ca7366ad699b281a6a40
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 628
|
sce
|
Ex1_4a.sce
|
//Electric Drives:concepts and applications by V.subrahmanyam
//Publisher:Tata McGraw-Hill
//Edition:Second
//Ex1_4a
clc;
clear;
V=440;// voltage in V
Ia=80;// Current in A
Na=1200;//Speed in rpm
Na1=125.6;// Speed in rad/sec
R1=0.55;// Resistance in ohm
R2=110;// Resistance in ohm
N0=600;// Speed in rpm
N01=62.8;//Speed in rpm
Nf=300;// Speed in rpm
Nf1=31.4;// Speed in rpm
Rsh=1.256;// Resistance in ohm
E=V-(Ia*R1);
K=E/Na1;
E1=K*N01;
Tf=K*Ia;
E2=E1*(Nf/N0);
V2=E2+(Ia*R1);
Is=(V2/Rsh)+Ia;
Il=Is+(V/R2);
Pi=V*Il;
Po=Tf*Nf1;
Eff=(Po/Pi)*100;
disp(Eff,'the effeciency of the motor in % is:')
|
6eece4e2733076dfb5dd07bf4c4878630e948905
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1580/CH6/EX6.3/Ch06Ex3.sce
|
58db50e875a40d6dba26671644543a9215355d3e
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 503
|
sce
|
Ch06Ex3.sce
|
// Scilab Code Ex6.3 : Page-6.10 (2004)
clc;clear;
t = 3e-14; // Mean free time, sec
m = 9.1e-31; // Mass of electron, kg
e = 1.6e-19; // Charge of electron, C
r = 1.85e-10; // Radius of sodium atom, m
a = 4*r/sqrt(3); // Sodium has BCC structure
n = 2/(a^3); // Number of electron per unit volume
rho = m/(n*(e^2)*t); // Electrical resistivity, ohm m
printf("\nElectrical resistivity = %3.3e ohm m", rho);
// Result
// Electrical resistivity = 4.620e-08 ohm m
|
a4203ab4f639b9f2077b2b34e8feb8285b592264
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1319/CH12/EX12.10/i_10.sce
|
61ece873e01f54992f0db608bde1ee01bcf13121
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 709
|
sce
|
i_10.sce
|
//Calculation of Current and power dissipated in resistors connected in series.
clc;
clear;
R1=100;
R2=200;
R3=300;
Rt=R1+R2+R3;
V=250;
//Ohm's Law V=I*R
I=V/Rt;
// Power Loss Equation P=(I^2)*R
P1=(I^2)*R1;
P2=(I^2)*R2;
P3=(I^2)*R3;
Pt=P1+P2+P3;
P=V*I;
disp('ohms',Rt,'The total resistance in the circuit =')
disp('amperes',I,'The Current in the circuit =')
disp('watts',P1,'The power loss in the 100 ohms resistor =')
disp('watts',P2,'The power loss in the 200 ohms resistor =')
disp('watts',P3,'The power loss in the 300 ohms resistor =')
disp('watts',Pt,'The total power loss in the circuit =')
disp('watts',P,'The power loss in the circuit (using P=V*I ) =')
|
41315e0f0c3fad6fff25f013138828b1017d84a6
|
676ffceabdfe022b6381807def2ea401302430ac
|
/solvers/AcousticSolver/Tests/APE_2DPulseWall_WeakDG_MODIFIED.tst
|
cb7f10ace9f62346c8b0425031e6663c28a9950b
|
[
"MIT"
] |
permissive
|
mathLab/ITHACA-SEM
|
3adf7a49567040398d758f4ee258276fee80065e
|
065a269e3f18f2fc9d9f4abd9d47abba14d0933b
|
refs/heads/master
| 2022-07-06T23:42:51.869689
| 2022-06-21T13:27:18
| 2022-06-21T13:27:18
| 136,485,665
| 10
| 5
|
MIT
| 2019-05-15T08:31:40
| 2018-06-07T14:01:54
|
Makefile
|
UTF-8
|
Scilab
| false
| false
| 845
|
tst
|
APE_2DPulseWall_WeakDG_MODIFIED.tst
|
<?xml version="1.0" encoding="utf-8"?>
<test>
<description>desc P=400</description>
<executable>AcousticSolver</executable>
<parameters>APE_2DPulseWall_WeakDG_MODIFIED.xml</parameters>
<files>
<file description="Session File">APE_2DPulseWall_WeakDG_MODIFIED.xml</file>
</files>
<metrics>
<metric type="L2" id="1">
<value variable="p" tolerance="1e-4">6.7577</value>
<value variable="u" tolerance="1e-7">0.014607</value>
<value variable="v" tolerance="1e-7">0.00571716</value>
</metric>
<metric type="Linf" id="2">
<value variable="p" tolerance="1e-4">13.659</value>
<value variable="u" tolerance="1e-7">0.0280936</value>
<value variable="v" tolerance="1e-7">0.0108992</value>
</metric>
</metrics>
</test>
|
a9908d7f5eadfafb7bdfaead8b1d68364a312fa4
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2840/CH1/EX1.8/ex1_8.sce
|
6c4fa83c31b79ec8e1a82b64c23d9e7541bd9522
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
ex1_8.sce
|
clc;
clear all;
A = 2e-4; // Area of steel wire in meter square
Y = 2e11 // Young's modulus in Newton per meter square
F = A*Y //l = L in this problem hence eliminating and rearranging equation of Y
disp('N',F,'The value of force is')
|
0fcda8fe4a2a7483dc6256f2ef1aae6f6d409cf2
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2939/CH9/EX9.3/Ex9_3.sce
|
97a0ed75624ceabb70a8894768d58dda5159a198
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 371
|
sce
|
Ex9_3.sce
|
//Ex9_3
clc;
//Given:
f=1.0014;// seperation factor
s=4;// series
p=6;// parallel
// Note: The global yield for s stages in series is(f)^s and each parallel stages simply multiplies the yield of the stage, Hence overall yield with p parallel stages (each with s stages in series) will be Y=p*(f)^s
//Solution:
Y=p*(f)^s;
printf("The net yield is = %f",Y)
|
bb24d57ad6af11f62e5949fd5b51e92d5c1f0d86
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/source/2.1.1/tmp/ensta/tp.sci
|
510bb4e53def56108c65637f0fbc1ce63e8ed10a
|
[
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] |
permissive
|
clg55/Scilab-Workbench
|
4ebc01d2daea5026ad07fbfc53e16d4b29179502
|
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
|
refs/heads/master
| 2023-05-31T04:06:22.931111
| 2022-09-13T14:41:51
| 2022-09-13T14:41:51
| 258,270,193
| 0
| 1
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 2,989
|
sci
|
tp.sci
|
// Initialisations ...
s = poly(0,'s'); s = syslin('c',s*s/s);
// approx(G,ll) returns approximation of G by elts in ll
deff('res=approx(G,ll)',...
['res=0';
'n=length(ll)';
'for k=1:n,res=res+ll(k);end';
'res=res+horner(clean(G-res),0)'])
// W3dg1(p) returns p(0) (p degree one)
deff('res=w3dg1(p)','res=horner(p,0)+0*poly(0,''s'')');
// W3dg2(p) returns p1 with damping(p1) = k damping(p)
deff('p1=w3dg2(p,k)',...
['damp=coeff(p,1)';
'p1=poly([coeff(p,0),k*damp,coeff(p,2)],''s'',''coeff'')';])
Gr=(s+1)*(s-1)*(s+2)*(s^2+0.3*s+1)/((s+0.5)*(s^2*(s^2-0.1*s+2)*(s^2+0.1*s+1)));
G=Gr/s;
r=size(G);
fmin=0.01;fmax=10;
frq=calfrq(G,fmin,fmax);
W=pfss(G,'c');
W(1)=clean(w(1));
appr=[];yesno=[];
for k=1:size(w);
appr=[appr;'G'+string(k-1);];yesno=[yesno;'yes'];
end
yesno=x_mdialog("Choose elements",appr,yesno)
appr=' ';
for k=1:size(w)-1;
if yesno(k)=='yes' then appr=appr+'W('+string(k)+'),';end
end
k=size(w);
if yesno(k)=='yes' then appr=appr+'W('+string(k)+')';end
execstr('bode([G;approx(G,list('+appr+'))],frq)')
[lnum,dcgain]=factors(G,'c');
nb=length(lnum);
denominators=[];
numerators=[];
for k=1:nb,
lnumk=lnum(k);
denominators=[denominators;pol2str(lnumk)];
if degree(lnumk)==1 then
numerators=[numerators;pol2str(w3dg1(lnumk))];end
if degree(lnumk)==2 then
numerators=[numerators;pol2str(w3dg2(lnumk,2))];end
end
Numerators=x_mdialog('Denominators Numerators',Denominators,Numerators);
// J(s)
Js=1;
for k=1:nb,
Js=Js*evstr(numerators(k))/evstr(denominators(k));
end
sp=poly(0,'s');
Ms=sp+1;Ns=(sp+1);
mnns=x_mdialog("Choose Ms and Ns",[pol2str(Ms);'1/'+pol2str(sp+1)],...
[pol2str(Ms);'1/'+pol2str(sp+1)]);
Ms=evstr(Mnns(1));
Ns=evstr(Mnns(2));
Sys1=sysdiag(1,1,1,1,Ms);Sys2=sysdiag(1,Ns);
W5is=[];
for k=1:nb
W5is=[W5is;'W5'+string(k)];
end
w5=x_mdialog('Choose W5i s',W5is,string(ones(nb,1)));
ww5=[];
for k=1:nb;ww5(k)=evstr(w5(k));end
Rg=[diag(ww5');ones(ww5')]*[W(1)+W(2);W(2);W(3);W(4)];
U=[0,-1;1,-1];
amin = 0; amax = 2;
while (amax -amin)/amax > 1e-2,
a = (amin + amax)/2; write(%io(2),a,'(f6.4)')
w3=(1/2)*horner((1+s^3),s/a)*w3coeff;
P=sysdiag(tf2ss(w3),Rg)*U;
Ptmp=Sys1*P*Sys2;
[sk,mu]=H_inf(Ptmp,r,0.8,1.2,1);
if mu == [] then amin = a; else amax = a; end
end
w3=(1/ab)*horner((1+s^3),s/amin)*w3coeff;
P=sysdiag(tf2ss(w3),Rg)*U;
//xbasc();
xset("window",1);gainplot([w3;errmul],.1,1,0.005);
Ptmp=Sys1*P*Sys2;
[Ktmp,mu]=H_inf(Ptmp,r,0.9,1.1,30);
K=ss2tf(Ktmp)/s;
ks=trfmod(K);
olp=ks*proc;
rep2 = repfreq(ks,frq);
xbasc(2);
xset("window",2);xselect();nyquist(olp,0.03,0.8,0.00015);
m_circle(20*log(2.05)/log(10));xset("dashes",0);
sensit = rep1 ./(rep3 + rep1.*rep2);
xbasc(3);
xset("window",3);xselect();gainplot(frq,[sensit;rep1;rep2],['G/(1+KG)';'G';'K']);
www=lft(Ptmp,Ktmp);
xbasc(5);xset("window",5);xselect();
gainplot(www,0.01,10);
www1=lft(ss2tf(P),r,ks);
xbasc(6);xset("window",6);xselect();
gainplot(www1,0.01,10,['W3G/(1+KG)';'W50G0/(1+KG)';'W51G1/(1+KG)';'W52G2/(1+KG)']);
|
91555f86ece2354f064fa4bc1de0afa176c7537e
|
519e9f150ad545fb1477c968ebca12ac98c0b1ef
|
/LoopStatement.tst
|
b25d7b48b95dd4cd84c2c465252e804ae3a3c497
|
[] |
no_license
|
bhanushashank/Hack_Computer
|
5f877b72474bbed568f4871d76811ba41195d1c5
|
8c1996bcf5c9ff42f6f16ed24b6586f894784831
|
refs/heads/main
| 2023-06-16T04:51:55.973740
| 2021-07-17T09:58:08
| 2021-07-17T09:58:08
| 386,899,862
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,005
|
tst
|
LoopStatement.tst
|
load HackComputer.hdl,
output-file LoopStatement.out,
compare-to LoopStatement.cmp,
output-list
RAM64[16]%D1.10.1
RAM64[18]%D1.10.1
RAM64[19]%D1.10.1
RAM64[20]%D1.10.1;
ROM32K load LoopStatement.hack,
// start = 1, inc = 1, end = 100
set RAM64[16] 1,
set RAM64[18] 1,
set RAM64[19] 100,
// No.of clock cycles must be more than the number of executed instructions in the program
repeat 2450 {
tick, tock,
}
output;
set reset 1,
tick, tock,
set reset 0,
// start = 1, inc = 2, end = 100
set RAM64[16] 1,
set RAM64[18] 2,
set RAM64[19] 100,
repeat 1300 {
tick, tock,
}
output;
set reset 1,
tick, tock,
set reset 0,
// start = 50, inc = 1, end = 100
set RAM64[16] 50,
set RAM64[18] 1,
set RAM64[19] 100,
repeat 1250 {
tick, tock,
}
output;
set reset 1,
tick, tock,
set reset 0,
// start = -100, inc = 10, end = 500
set RAM64[16] -100,
set RAM64[18] 10,
set RAM64[19] 500,
repeat 2700 {
tick, tock,
}
output;
|
cae1f40e8e2b48588e4542a0b3911e412adf0b3d
|
98187bfe7a07f2d387b0cc75137b39b9eb012d00
|
/OuvertureC.sce
|
6d4ad6c3ba3c0e393400b30d1a91534cc834dddd
|
[] |
no_license
|
Minial/Squelette
|
a50b9ec88f135d1392bf336478a7854973c25009
|
6356c7e1f52d45ff153335565b7049ff2f297b7b
|
refs/heads/master
| 2020-04-19T11:41:10.640079
| 2019-02-03T16:40:38
| 2019-02-03T16:40:38
| 168,173,672
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 147
|
sce
|
OuvertureC.sce
|
function [ImgO] = OuvertureC(Img)
exec('.\DilatationC.sce',-1)
exec('.\OuvertureC.sce',-1)
ImgO=DilatationC(ErosionC(Img))
endfunction
|
e2fcc8304bf2f092238230f07ee3fe220a801ead
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1910/CH9/EX9.5/Chapter95.sce
|
0ddda3c9467c2dd4c12afc0a80a229bb09fc7f6f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 769
|
sce
|
Chapter95.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 9, Example 5")
//A nickel wire of length(L)=0.1m,Diameter(D)=1mm or .001m
//Submerged horizontally in water at pressure=1 atm(101kPa) requires current,I=150A at voltage ,E=2.2V to maintain wire at temprature(T1)=110°C
L=0.1;
T1=110;
D=0.001;
I=150;
E=2.2;
//Area(A)=[%pi*D*L]
A=%pi*D*L;
//The saturation temprature of water at one atmospheric pressure(101kPa) is T2=100°C.
T2=100;
//We can write from energy balance E*I=h*A*(T1-T2),we can find heat transfer coefficient from it.
//h is heat transfer coefficient
disp("Heat transfer coefficient in W/m^2 is")
h=(E*I)/(A*(T1-T2))
|
76465ba67e12dc1f266c0b5213635d5bc33c9bf1
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3821/CH10/EX10.1/Example10_1.sce
|
0ed5768dce2642858c57de57b48fe64f62eb3ad3
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
Example10_1.sce
|
/////Chapter 10 Properties Of Steam
////Example 10.1 Page No:183
///Find Dryness fuction of steam
///Input data
clc;
clear;
mw=15; //Water steam
ms=185; //Dry steam
///Calculation
x=((ms)/(ms+mw))*100; //Dryness fuction of steam in %
///Output
printf('Dryness fuction of steam= %f percent \n',x);
|
0f1c847eb7967b16baad884ad4c38f70ae726aee
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2384/CH2/EX2.11/ex2_11.sce
|
b653481b3f6a11d7d81f56b25edf0bf99eadd0ea
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
ex2_11.sce
|
// Exa 2.11
clc;
clear;
close;
format('v',4)
// Given data
R1 = 4;// in ohm
R2 = 3;// in ohm
R3 = 2;// in ohm
R_L = 5;// in ohm
I = 6;// in A
V = 15;// in V
// V-R1*I1-R3*(I1+I) = 0;
I1 = (V-R3*I)/(R1+R3);// in A
I = I1 + I;// in A
Vth = R3*I;// in V
Rth = ((R1*R3)/(R1+R3)) + R2;// in ohm
// current in 5 ohm resistance
I_L = Vth/(Rth+R_L);// in A
disp(I_L,"The current in 5 ohm resistance in A is");
|
1e6622059dcbdec70000cbc59a6cb91421ae47cd
|
99b4e2e61348ee847a78faf6eee6d345fde36028
|
/Toolbox Test/poly2ac/poly2ac6.sce
|
8c1b7783225dbc72509323a1be3741dead0d77e2
|
[] |
no_license
|
deecube/fosseetesting
|
ce66f691121021fa2f3474497397cded9d57658c
|
e353f1c03b0c0ef43abf44873e5e477b6adb6c7e
|
refs/heads/master
| 2021-01-20T11:34:43.535019
| 2016-09-27T05:12:48
| 2016-09-27T05:12:48
| 59,456,386
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 359
|
sce
|
poly2ac6.sce
|
//o/p when char type is given as i/p
a = 'hash';
efinal = 0.2; // Step prediction error
r = poly2ac(a,efinal); // Autocorrelation sequence
disp(r);
//Output
//!--error 10000
//Input arguments must be numeric.
//at line 31 of function rlevinson called by :
//at line 41 of function poly2ac called by :
//r = poly2ac(a,efinal);
//
|
8f9d095671887cfe17317b6ea6b74884e79774b4
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3574/CH5/EX5.4/EX5_4.sce
|
4cfdeb7fd3c75d797392133788c433f7c8039467
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,176
|
sce
|
EX5_4.sce
|
// Example 5.4
// Computation of (a) Amount of torque that must be removed from the motor
// shaft to maintain 1760r/min (b) Expected minimum startimg torque for the
// lower voltage (c) Percent change in developed torque caused by 10% drop in
// system voltage.
// Page No. 185
clc;
clear;
close;
// Given data
hp=50; // Horsepower
n=1760; // Rated speed of machine
v1=460;
// (a) Amount of torque that must be removed from the motor shaft to maintain
// 1760r/min
v2=v1*0.90;
Trated=hp*5252/n; //Rated torque
TD2=Trated*(v2/v1)^2;
Treduction=Trated-TD2;
// (b) Expected minimum startimg torque for the lower voltage
Tlr=1.40*Trated;
Tlr2=Tlr*(v2/v1)^2;
// (c) Percent change in developed torque caused by 10% drop in system voltage
Tchange=(TD2-Trated)/Trated;
Tchanger=(Tlr2-Tlr)/Tlr;
// Display result on command window
printf("\n Amount of torque that must be removed from the motor shaft = %0.1f lb-ft",Treduction);
printf("\n Expected minimum starting torque for the lower voltage = %0.1f lb-ft ",Tlr2);
printf("\n Percent change in developed torque = %0.0f Percent ",Tchanger*100);
|
f7ac50c9c51f5e8ef36137b3cf3f64ff89efc43c
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1046/CH6/EX6.3/6_3.sce
|
c56fd4040f3dd9e2a12e9785e11051348ff24402
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 3,460
|
sce
|
6_3.sce
|
//Example 6.3
//Calculate the rate of boiling.
//Given
A=12.5673
B=4234.6
pv=1.813
T1=200 //C, tube wall temp.
//For methanol
Tc=512.6 //K, critical temp.
w=0.556 //acentric factor
Zra=0.29056-0.08775*w
R=0.08314 //m^3bar/gmol K, universal gas constant
Pc=80.9 //bar, critical temp.
Mw=32 //g, molecular wt
//Calculation
//Estimation of liquid and vapour properties
//from antoine eq.
T=B/(A-log(pv)) //K, boiling point
Te=(T1+273)-T //K, excess temp.
Tm=((T1+273)+T)/2 //K, mean temp.
//Liquid properties
//(a)
Tr=T/Tc //K, reduced temp.
//from Rackett technique
Vm=R*Tc*(Zra)^(1+(1-Tr)^(2/7))/Pc //m^3/kg mol, molar volume
rhol=Mw/Vm //kg/m^3, density of satorated liquid density
//(b)
//from Missenard technique
T2=348 //K,given data temp.
T3=373 //K,given data temp.
Cp2=107.5 //j/g mol K specific heat at T2
Cp3=119.4 //j/g mol K specific heat at T3
//By linear interpolation at T=353.7 K
Cp=Cp2+(Cp3-Cp2)*((T-T2)/(T3-T2)) //kj/kg mol C, specific heat at T=353.7 K
Cp_=Cp*0.03125 //kj/kg C
//(c)Surface tension at given temp.(K)
T4=313
St4=20.96
T5=333
St5=19.4
//By linear interpolation at T=353.7 K
S=17.8 //dyne/cm, surface temp.
//(d) liquid viscosity
T6=298
MUt6=0.55 //cP, liquid viscosity at temp=298
MU=((MUt6)^-0.2661+((T-T6)/233))^(-1/0.2661) //cP
//(e)Prandtl no. a,b,c are constant
a=0.3225
b=-4.785*10^-4
c=1.168*10^-7
kl=a+b*T+c*T^2 //W/m C, thermal conductivity
Prl=Cp_*1000*MU*10^-3/kl //Prandtl no.
//(f)heat of vaporization at 337.5 K
Lv=1100 //kj/kg, enthalpy of vaporization
//Properties of methanol vapour at Tm
//(a)
Vm1=R*Tm/pv //m^3/kg mol, molar volume
rhov=Mw/Vm1 //kg/m^3, density of vapour
//(b) a1,b1,c1,d1 are costants
a1=-7.797*10^-3
b1=4.167*10^-5
c1=1.214*10^-7
d1=-5.184*10^-11
//thermal conductivity of vapour
kv=a1+b1*Tm+c1*Tm^2+d1*Tm^3 //W/m C
//(c)heat capacity of vapour, a2,b2,c2,d2 are costants
a2=21.15
b2=7.092*10^-2
c2=2.589*10^-5
d2=-2.852*10^-8
//heat capacity of vapour, in kj/kh mol K
Cpv=a2+b2*Tm+c2*Tm^2+d2*Tm^3
//(d)viscosity of vapour
T7=67
MUt7=112
T8=127
MUt8=132
//from linear inter polation at Tm
MUv=1.364*10^-5 //kg/m s
//from Rohsenow's eq.
Csf=0.027 //constant
n=1.7 //exponent value
//from eq. 6.6
g=9.8 //m/s^2, gravitational constant
//heat flux //kW/m^2
Q=MU*10^-3*Lv*(g*(rhol-rhov)/S*10^-3)^(1/2)*(Cp_*Te/(Csf*Lv*(Prl)^n))^3
//from eq. 6.11
//from eq 6.11, critical heat flux
Qmax=0.131*Lv*(rhov)^(1/2)*(S*10^-3*g*(rhol-rhov))^(1/4)
//dimensionless radius r_
r=0.016
r_=r*(g*(rhol-rhov)/(S*10^-3))^(1/2)
//peak heat flux
Qmax1=Qmax*(0.89+2.27*exp(-3.44*sqrt(r_)))
//from eq. 6.12
//heat transfer coefficient hb
d=0.032 //m, tube diameter
hb=0.62*((kv^3)*rhov*(rhol-rhov)*g*(Lv*10^3+0.4*Cpv*Te)/(d*MUv*Te))^(1/4)
Qb=hb*Te //kw/m^2, heat flux
BR=Qb*10^-3/Lv //kg/m^2s, boilng rate
printf("The boilins rate is %f kg/m^2 h",BR*3600)
|
c9d60c1464575b8dbde38c4f1f41f5d63804d6be
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/browsable_source/2.5/Unix-Windows/scilab-2.5/macros/scicos_blocks/EXPBLK_f.sci
|
0c3bdc571938db3f2697ea77ce5a6d972cde9da2
|
[
"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
| 1,004
|
sci
|
EXPBLK_f.sci
|
function [x,y,typ]=EXPBLK_f(job,arg1,arg2)
// Copyright INRIA
x=[];y=[];typ=[];
select job
case 'plot' then
standard_draw(arg1)
case 'getinputs' then
[x,y,typ]=standard_inputs(arg1)
case 'getoutputs' then
[x,y,typ]=standard_outputs(arg1)
case 'getorigin' then
[x,y]=standard_origin(arg1)
case 'set' then
x=arg1;
graphics=arg1(2);label=graphics(4)
model=arg1(3);
if size(label,'*')==2 then label=label(2),end
while %t do
[ok,a,label]=getvalue('Set a^u block parameters',..
'a (>0)',list('vec',1),label)
if ~ok then break,end
if or(a<=0) then
message('a^u : a must be positive')
else
graphics(4)=label
model(8)=a;
x(2)=graphics;x(3)=model
break
end
end
x(3)(11)=[] //compatibility
case 'define' then
in=1
a=%e
model=list('expblk',-1,-1,[],[],[],[],%e,[],'c',[],[%t %f],' ',list())
label=[string(in);'%e']
gr_i=['xstringb(orig(1),orig(2),''a^u'',sz(1),sz(2),''fill'');']
x=standard_define([2 2],model,label,gr_i)
end
|
d423bee5a3e24075c576b360331c784b24223187
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/680/CH5/EX5.09/5_09.sce
|
49e7ee86ee79f691d81c67b67248164b9c151360
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,046
|
sce
|
5_09.sce
|
//Problem 5.09:
//initializing the variables:
nCO2 = 7.5
nCO = 1.3
nO2 = 8.1
nN2 = 83.1
//calculation:
//Determine the amount of oxygen fed for combustion. Since nitrogen does not react (key component), using the ratio of oxygen to nitrogen in air will provide the amount of oxygen fed:
O2f = (21/79)*83.1
//A balanced equation for the combustion of the hydrocarbon in terms of N moles of the hydrocarbon and n hydrogen atoms in the hydrocarbon yields
//NC3Hn + 22.1O2 ---> 7.5CO2 + 1.3CO + 8.1O2 + N(n/2)H2O
//The moles of hydrocarbon, N, is obtained by performing an elemental carbon balance:
//3N = 7.5 + 1.3
N = 8.8/3
//Similarly, the moles of water formed is obtained by performing an elemental oxygen balance:
//2(22.1) = 2(7.5) + 1.3 + 2(8.1) + N(n/2)
//A = N(n/2)
A = 44.2 - 15 - 1.3 - 16.2
//The number of hydrogen atoms, n, in the hydrocarbon is then
n = 2*A/N
//Since n = 8, the hydrocarbon is C3H8, propane.
printf("\n\nResult\n\n")
printf("\n n= %.0f\n",n)
printf("\n the hydrocarbon is C3H8, propane")
|
72489485a6eba126ff808dc6ceecbf3ce8e3398e
|
e1fcb98fc42106c41335695379d620ba376ad2ab
|
/Integração/simpson2.sci
|
18bfb8bac444ca33e15d7db72d89ab6e817e0ea5
|
[] |
no_license
|
LuizFelipeLemon/CN
|
82c142ff28c2cb63d1f8cb433965d63089628235
|
605076edd4ea218dd5e49dbba2b109f61efa9cfa
|
refs/heads/master
| 2021-08-19T16:08:20.094123
| 2017-11-26T20:51:15
| 2017-11-26T20:51:15
| 103,070,142
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 410
|
sci
|
simpson2.sci
|
function A = simpson2(a,b,n,y)
// Description of name(input)
h = (b-a)/n
x = a:h:b
y = f(x)
A = y(1)
for i = 2:n
if modulo(i,3) == 1
A = A + 2*y(1)
else
A = A + 3*y(i)
end
end
A = (3*h/8)*(A + y(n+1))
endfunction
function y = f(x)
// Description of name(input)
y = sin(x);
endfunction
|
0de978857f9517de624ec157bc1bc61df9d7e66f
|
a8592d34f144b71794ebf30f1c2a1b5faf0b053c
|
/AkarPersamaan/scilab/soal_04.sce
|
cee10fd0e975e89a04ac42f94c6c9545d4ed28f2
|
[] |
no_license
|
f-fathurrahman/ffr-MetodeNumerik
|
ee9a6a7153b174b1ba3d714fe61ccbd1cb1dd327
|
e3a9da224c0fd5b32e671708e890018a3c4104c4
|
refs/heads/master
| 2023-07-19T22:29:38.810143
| 2023-07-07T10:02:34
| 2023-07-07T10:02:34
| 107,272,110
| 2
| 2
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,362
|
sce
|
soal_04.sce
|
V = 3 // m^3
function f = soal_04(v)
// Constants
Ru = 0.518 // kJ/(kg K)
// methane
Pc = 4600 // kPa
Tc = 191 // Kelvin
//
a = 0.427 * Ru^2 * Tc^2.5 / Pc
b = 0.0866 * Ru * Tc / Pc
T = -40 + 273 // K
P = 65000 // kPa
//
denum1 = v - b
denum2 = v*(v + b)*sqrt(T)
f = Ru*T*denum2 - a*denum1 - P*denum1*denum2
endfunction
function P = eval_P(v)
// Constants
Ru = 0.518 // kJ/(kg K)
// methane
Pc = 4600 // kPa
Tc = 191 // Kelvin
//
a = 0.427 * Ru^2 * Tc^2.5 / Pc
b = 0.0866 * Ru * Tc / Pc
T = -40 + 273 // K
P = 65000 // kPa
//
denum1 = v - b
denum2 = v*(v + b)*sqrt(T)
P = Ru*T/denum1 - a/denum2
endfunction
function do_plot()
v1 = 0.001
v2 = 0.005
Npoints = 100
v = linspace(v1, v2, Npoints)
f = zeros(1,Npoints)
for i = 1:Npoints
f(i) = soal_04(v(i))
printf("%18.10f %18.10f\n", v(i), f(i))
end
clf()
plot(v, f)
xgrid()
xs2pdf( gcf(), "soal_04.pdf" )
endfunction
// do_plot()
exec("bisection.sce", -1)
root = bisection( soal_04, 0.0025, 0.0030 )
printf("At root = %18.10f\n", eval_P(root))
exec("regula_falsi.sce", -1)
root = regula_falsi( soal_04, 0.0025, 0.0030 )
printf("At root = %18.10f\n", eval_P(root))
exec("ridder.sce", -1)
root = ridder( soal_04, 0.0025, 0.0030 )
printf("At root = %18.10f\n", eval_P(root))
if getscilabmode() ~= "STD"
quit()
end
|
97b275a6fdbc9c867fd0b1f1ec562692f56058f4
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/52/CH1/EX1.18/Example1_18.sce
|
c2c2b07d7aceedd0930e4db6942c8e0ff71ee159
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 212
|
sce
|
Example1_18.sce
|
//Example 1.18
//Program to Compute Cross-correlation of given sequences
//x(n)=[1 2 1 1], h(n)=[1 1 2 1];
clear;
clc ;
close ;
x=[1 2 1 1];
h=[1 1 2 1];
h1=[1 2 1 1];
y=convol(x,h1);
disp(round(y));
|
6553868aa864c1d04eec3c6a9b1ec795e8cc368e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1118/CH7/EX7.8/eg7_8.sce
|
c7f116b8f06e33bcfb898b3cd3826ffd3164c609
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 321
|
sce
|
eg7_8.sce
|
clear;
//clc();
d=3;
r=0.01;
cn=2*(%pi)*8.85*10^(-12)/log([d/r])*1000000000000;
printf("\n the capacitance is: %.2f F/km\n ",cn);
cl=0.5*cn;
printf("\n the line to line capacitance is: %.2f*10^(-9)F/km\n ",cl);
bc=2*(%pi)*50*cn;
printf("\n the capacitance susceptance is: %.2f*10^(-6) S/km\n ",bc/1000);
|
2f8a6821935ad8c8e1cfd388d6b28112f8bc0c99
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1748/CH1/EX1.1.p/prob1_1.sce
|
3c83b488675bda8ea76cdb8e2dcfd117c5ab59a0
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 347
|
sce
|
prob1_1.sce
|
// Prob 1.1
clc;
clear;
close;
format('v',5);
// Given data
s=36;//no. of slots
p=4;//no. of poles
ph=3;//no. of phase
s1=s/ph;//no. of slots pe phase
m=s1/p;//no. of slots per pole per phase
alfa=180*p/s;//slot angle in degree
Kd=sind(m*alfa/2)/(m*sind(alfa/2));//distribution factor
disp(Kd,"Distribution factor for 36 slots : ");
|
21db4be4ca22b8774d6ed70b33ee28a65b530c92
|
33f77c32fb16283501d950b6fc6b43a07914f32e
|
/scilab_autopilot/lib/phys/screw/screw_new.sce
|
6b1ef77a30fbb862d3644c4200f563eab1e7e45f
|
[] |
no_license
|
CLUBMODELISMECEADSTOULOUSE/autopilot
|
26b79d6a2a632f08989a5528e82f553616617646
|
a6ffae2f8a86fbc79e636ddd5173af104e1af9cd
|
refs/heads/master
| 2021-01-21T00:59:06.271128
| 2015-10-25T09:31:54
| 2015-10-25T09:31:54
| 34,409,237
| 1
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 77
|
sce
|
screw_new.sce
|
function [screw] = screw_new(res, mom)
screw = [ res; mom ];
endfunction
|
d38a0a49d3851ef37e2e3d4605c5661b25e6908b
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1970/CH6/EX6.15/Ch06Exa15.sce
|
c7c44b0a313e42475978acf8e4d647471255d9da
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,262
|
sce
|
Ch06Exa15.sce
|
// Scilab code Exa6.15: : Page-246 (2011)
clc; clear;
S = string(rand(2,1))
S(1,1) = 'antiparallel spin'
S(2,1) = 'parallel spin'
for i = 1:2
if S(i,1) == 'antiparallel spin' then
printf("\nFor Fermi types :")
printf("\n\n The selection rules for allowed transitions are : \n\tdelta I is zero \n\tdelta pi is plus \nThe emited neutrino and electron have %s",S(i,1))
elseif S(i,1) == 'parallel spin' then
printf("\nFor Gamow-Teller types :")
printf("\nThe selection rules for allowed transitions are : \n\tdelta I is zero,plus one and minus one\n\tdelta pi is plus\nThe emited neutrino and electron have %s",S(i,1))
end
end
// Calculation of ratio of transition probability
M_F = 1; // Matrix for Fermi particles
g_F = 1; // Coupling constant of fermi particles
M_GT = 5/3; // Matrix for Gamow Teller
g_GT = 1.24; // Coupling constant of Gamow Teller
T_prob = g_F^2*M_F/(g_GT^2*M_GT); // Ratio of transition probability
// Calculation of Space phase factor
e = 1.6e-19; // Charge of an electron, coulomb
c = 3e+08; // Velocity of light, metre per sec
K = 8.99e+9; // Coulomb constant
R_0 = 1.2e-15; // Distance of closest approach, metre
A = 57; // Mass number
Z = 28; // Atomic number
m_n = 1.6749e-27; // Mass of neutron, Kg
m_p = 1.6726e-27; // Mass of proton, Kg
m_e = 9.1e-31; // Mass of electron. Kg
E_1 = 0.76; // First excited state of nickel
delta_E = ((3*e^2*K/(5*R_0*A^(1/3))*((Z+1)^2-Z^2))-(m_n-m_p)*c^2)/1.6e-13; // Mass difference, mega electron volts
E_0 = delta_E-(2*m_e*c^2)/1.6e-13; // End point energy, mega electron volts
P_factor = (E_0-E_1)^5/E_0^5; // Space phase factor
printf("\nThe ratio of transition probability = %4.2f\nThe space phase factor = %4.2f", T_prob, P_factor);
// Result
// The emited neutrino and electron have antiparallel spin
// For Gamow-Teller types :
// The selection rules for allowed transitions are :
// delta I is zero,plus one and minus one
// delta pi is plus
// The emited neutrino and electron have parallel spin
// The ratio of transition probability = 0.39
// The space phase factor = 0.62
|
d9769593dba7393b6da317caa5ffe1d0c8ca12ab
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/965/CH2/EX2.35/35.sci
|
3980db2aaa4844c211e92f0df6793b34a09915ed
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 262
|
sci
|
35.sci
|
clc;
clear all;
disp("heat loss per length")
r1=10*10^(-3);//m
r2=20*10^(-3);//m
r3=(20+30)*10^(-3);//m
t1=600;// degree C
t3=1000;// degree C
kB=0.2;// W/(m*C)
Ql=2*3.1416*(t1-t3)/((log (r3/r2))/kB);
disp("W/m",Ql,"heat transfer per unit length = ")
|
2d0c893fa2848d3334d88ce161c9d19447249d6c
|
6e257f133dd8984b578f3c9fd3f269eabc0750be
|
/ScilabFromTheoryToPractice/Computing/testexo5g.sce
|
7d1e1fe778d31c20107e2873b309e37e87c2f064
|
[] |
no_license
|
markusmorawitz77/Scilab
|
902ef1b9f356dd38ea2dbadc892fe50d32b44bd0
|
7c98963a7d80915f66a3231a2235010e879049aa
|
refs/heads/master
| 2021-01-19T23:53:52.068010
| 2017-04-22T12:39:21
| 2017-04-22T12:39:21
| 89,051,705
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 12
|
sce
|
testexo5g.sce
|
u7=2^[2:9]
|
f0457d6c44107f38e044e585064c7128ef35fd0a
|
e4e988635315b331ef09f9cab70b128c9201e720
|
/tables/superdarn/hdw/hdw.dat.tst
|
7b76cddc10a3dbc92ec685ceb3e53adab45a79f3
|
[] |
no_license
|
sshepherd/CVR-RST
|
58756530763a6936c3d4027baee5d18b7ce81810
|
13fc69b71a860c7996e2ccee86d7188a007649dc
|
refs/heads/master
| 2021-01-15T21:48:46.788040
| 2015-09-02T20:04:17
| 2015-09-02T20:04:17
| 28,063,941
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 390
|
tst
|
hdw.dat.tst
|
# SD_BEGIN>
# This file defines all the hardware parameters for all the radars
# the format of the file is:
# station_id, year, yr_sec, lat, long, altitude, boresite, bm_sep,
# vdir, atten, tdiff, phidiff, interfer_pos[3], rec_rise
#
# This set of data is for Goose Bay
#
0 2999 31556736 +53.32 -60.46 50.0 +5.00 +3.24 +1.0 10.0 +0.4778 +1.0 +1.5 +100.0 +0.0 100.0 2 75 16
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.