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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
488d00fc95eacc07bcf96766d10391ca283a7d21
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1247/CH2/EX2.14/example2_14.sce
|
587863ba633962519c61e25f5dc6907ab1ffc225
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 337
|
sce
|
example2_14.sce
|
clear;
clc;
// Stoichiometry
// Chapter 2
// Basic Chemical Calculations
// Example 2.14
// Page 24
printf("Example 2.14, Page 24 \n \n");
// solution
m = 100 //[kg] Lye (basis)
m1 = 73 //[kg] NaOH
M1 = 40 // NaOH
M2 = 62 // Na2O
p = (M2*m1)/(2*M1)
printf("percentage of Na2O in the solution is "+string(p)+".")
|
05495f94f7dff6d0dfe69fcbec416411d3cba96e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2657/CH1/EX1.4/Ex1_4.sce
|
f23f858f56a4cccc152902f4040c0647464954bd
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 988
|
sce
|
Ex1_4.sce
|
//Calculations on four stroke petrol engine
clc,clear
//Given:
bp=35 //Brake power in kW
eta_m=80 //Mechanical efficiency in percent
bsfc=0.4 //Brake specific fuel consumption in kg/kWh
A_F=14/1 //Air-fuel ratio
CV=43000 //Calorific value in kJ/kg
//Solution:
//(a)
ip=bp*100/eta_m //Indicated power in kW
//(b)
fp=ip-bp //Frictional power in kW
//(c)
//Since, 1 kWh = 3600 kJ
eta_bt=1/(bsfc*CV/3600) //Brake thermal efficiency
//(d)
eta_it=eta_bt/eta_m*100 //Indicated thermal efficiency
//(e)
m_f=bsfc*bp //Fuel consumption in kg/hr
//(f)
m_a=A_F*m_f //Air consumption in kg/hr
//Results:
printf("\n (a)The indicated power, ip = %.2f kW\n (b)The friction power, fp = %.2f kW",ip,fp)
printf("\n (c)The brake thermal efficiency, eta_bt = %.1f percent\n (d)The indicated thermal efficiency, eta_it = %.1f percent",eta_bt*100,eta_it*100)
printf("\n (e)The fuel consumption per hour, m_f = %.1f kg/hr\n (f)The air consumption per hour, m_a = %d kg/hr\n\n",m_f,m_a)
|
f9b8c4344eaafd9cc2882d6fba2596bdb5b9e9eb
|
7e1b0b7ceda8e9c25d67d330a7bb5e562a01f27a
|
/ProbInverses/TP1/exo4.sci
|
10afa848c7fe40e048e493d24729892d4c69ead5
|
[] |
no_license
|
sebherv/master2
|
59b8232e62bef140636bfad8c986bbd10e7d7beb
|
b8cd8bcde1ae3ae7a5bca58183804faa21456dd8
|
refs/heads/master
| 2021-09-13T19:33:50.766722
| 2018-02-09T15:09:24
| 2018-02-09T15:09:24
| 103,376,025
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 461
|
sci
|
exo4.sci
|
// Exo 4: plotting and projecting confidence regions
// Gen data et gen modèle
// Our model is m2 (with 3 parameters), our Cm is inv(G2'*G2)
exec('/Users/sebh/Desktop/MasterII/repos_master2/ProbInverses/TP1/01genTestDistribs.sce',-1);
exec('/Users/sebh/Desktop/MasterII/repos_master2/ProbInverses/TP1/02leastsquares.sce',-1);
Cm = inv(G2'*Ct*G2);
covmls=correlationMatrix(Cm)
ins1D=sqrt(4)*sqrt(diag(Cm))
// Calcul des ellipses à 95% pour 3 paramètres
|
7b5f70ccfd014ab3528fe071d25d01fd869ce32f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3769/CH8/EX8.20/Ex8_20.sce
|
cd74e2d4ed8c942ccdb5e693087e62a01798572f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 237
|
sce
|
Ex8_20.sce
|
clear
//Given
e=1.6*10**-19
f=6.8*10**15
r=0.51*10**-10
u=4*3.14*10**-7 //T/A m
//Calculation
//
I=e*f
B=(u*I)/(2*r)
M=1*I*%pi*r**2
//Result
printf("\n The effective dipole moment is %0.0f *10**-24 Am**2",M*10**24)
|
e4284e46c588ef86828a44e7e0a587a4c897aa1a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1754/CH2/EX2.11/Exa2_11.sce
|
53ba1384474e2a1a32b4e34dc66ba139d64841a6
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 429
|
sce
|
Exa2_11.sce
|
//Exa 2.11
clc;
clear;
close;
//Given data
IES=10^-14;//in A
alfaF=1;//unitless
alfaR=0.1;//unitless
//Formula : alfaF*IES=alfaR*ICS
ICS=(alfaF/alfaR)*IES;//in Ampere
disp(ICS,"Collector base junction saturation current in Ampere : ");
RelativeSize=ICS/IES;//unitless
disp("Collector is "+string(RelativeSize)+" times larger in size than emitter.");
BetaR=alfaR/(1-alfaR);//unitless
disp(BetaR,"Value of BetaR : ");
|
24b639cc56147bda5f0b80c1237c8340c2938777
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3012/CH9/EX9.13/Ex9_13.sce
|
54dba7c119390e44ddce34f4e62be49d2f341dd3
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 6,617
|
sce
|
Ex9_13.sce
|
// Given:-
Wnetdot = 45.00 // in MW
T1 = 300.00 // in kelvin
p1 = 100.00 // in kpa
etac = 0.84 // The isentropic efficiency of the compressor
T3 = 1400.00 // in kelvin
p2 = 1200.00 // in kpa
p3 = p2
etat = 0.88 // isentropic efficiency of the turbine
T5 = 400.00 // in kelvin
p4 = 100.00 // in kpa
p5 = p4
T7 = 400.00 // in degree celcius
p7 = 8.00 // in MPa
etatw =0.9 // isentropic efficiency of turbine of the vapor cycle
p8 = 8.00 // in kpa
p9 = p8
etap = 0.8 // isentropic efficiency of pump of the vapor cycle
T0 = 300.00 // in kelvin
p0 = 100.00 // -in kpa
// Analysis
// With procedure similar to that used in the examples of chapters 8 and 9,we can determine following property data
h1 = 300.19 // in kj/kg
h2 = 669.79 // in kj/kg
h3 = 1515.42 // in kj/kg
h4 = 858.02 // in kj/kg
h5 = 400.98 // in kj/kg
h6 = 183.96 // in kj/kg
h7 = 3138.30 // in kj/kg
h8 = 2104.74 // in kj/kg
h9 = 173.88 // in kj/kg
s1 = 1.7020 // in kj/kg.k
s2 = 2.5088 // in kj/kg.k
s3 = 3.3620 // in kj/kg.k
s4 = 2.7620 // in kj/kg.k
s5 = 1.9919 // in kj/kg.k
s6 = 0.5975 // in kj/kg.k
s7 = 6.3634 // in kj/kg.k
s8 = 6.7282 // in kj/kg.k
s9 = 0.5926 // in kj/kg.k
// Part(a)
// By applying mass and energy rate balances
// Calculations
mvdotbymgdot = (h4-h5)/(h7-h6) // ratio of mass flow rates of vapor and air
mgdot = (Wnetdot*10**3)/(((h3-h4)-(h2-h1)) + mvdotbymgdot*((h7-h8)-(h6-h9))) // mass flow rate of air in kg/s
mvdot = mvdotbymgdot*mgdot // mass flow rate of vapor in kg/s
Wgasdot = mgdot*((h3-h4)-(h2-h1))*10**-3 // net power developed by gas turbine in MW
Wvapdot = mvdot*((h7-h8)-(h6-h9))*10**-3 // net power developed by vapor cycle in MW
// Results
printf( ' Mass flow rate of air is: %.2f kg/s.',mgdot)
printf( ' Mass flow rate of vapor is: %.2f kg/s.',mvdot)
printf( ' Net power developed by gas turbine is: %.2f MW.',Wgasdot)
printf( ' Net power developed by vapor cycle is: %.2f MW.',Wvapdot)
// Part(b)
// The net rate of exergy increase of the air passing through the combustor is
Edotf32 = mgdot*(h3-h2-T0*(s3-s2))*10**-3 // in MW
// The net rate exergy is carried out by the exhaust air stream at 5 is
Edotf51 = mgdot*(h5-h1-T0*(s5-s1))/10**3 // in MW
// The net rate exergy is carried out as the water passes through the condenser is
Edotf89 = mvdot*(h8-h9-T0*(s8-s9))*10**-3 // in MW
R = 8.314 // universal gas constant, in SI units
M = 28.97 // molar mass of air in grams
// The rate of exergy destruction for air turbine is
Eddott = mgdot*T0*(s4-s3-(R/M)*log(p4/p3))/10**3 // in MW
// The rate of exergy destruction for compressor is
Eddotc = mgdot*T0*(s2-s1-(R/M)*log(p2/p1))/10**3 // in MW
// The rate of exergy destruction for steam turbine is
Eddotst = mvdot*T0*(s8-s7)/10**3 // in MW
// The rate of exergy destruction for pump is
Eddotp = mvdot*T0*(s6-s9)/10**3 // in MW
// For heat exchanger
EddotHE = T0*(mgdot*(s5-s4)+mvdot*(s7-s6))/10**3 // in MW
// Results
printf( ' Balance sheet')
printf( 'Net exergy increase of the gas passing')
printf( ' Through the combustor: %.2f MW',Edotf32)
printf( 'Disposition of the exergy:')
printf( '• Net power developed')
printf( 'gas turbine cycle %.2f MW',Wgasdot)
printf( 'vapor cycle %.2f MW',Wvapdot)
printf( '• Net exergy lost')
printf( 'with exhaust gas at state 5 %.2f MW',Edotf51)
printf( 'from water passing through condenser %.2f MW',Edotf89)
printf( '• Exergy destruction')
printf( 'air turbine %.2f MW',Eddott)
printf( 'compressor %.2f MW',Eddotc)
printf( 'steam turbine %.2f MW',Eddotst)
printf( 'pump %.2f MW',Eddotp)
printf( 'heat exchanger %.2f MW',EddotHE)
|
d0012b25088c568ed780ba8f4b78f4eafc8b4015
|
8fd5474ab7779b552e5f198a3ce4afc4d82cb47f
|
/SCAN_16010-4002-001_NEW.sce
|
9dc1158ddd2241a84f6b96f8206ec29918b8898f
|
[] |
no_license
|
2-BiAs/UCASI_ALIGNMENT_SCAN
|
807353741517c084007cdf978b149f34f8a13dae
|
85b8d79f50e23051cbf365385b49e05293827941
|
refs/heads/master
| 2020-06-21T10:26:29.419281
| 2017-05-19T02:01:27
| 2017-05-19T02:01:27
| 74,790,458
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 18,168
|
sce
|
SCAN_16010-4002-001_NEW.sce
|
clear
clc
clf(1); clf(2); clf(3); clf(4)
format('v', 10)
csvDefault("eol", "windows")
csvDefault("blank", "on")
[ok, sPartNumber] = getvalue("Input Part Number", "PN", list("str", 1), ["16010-4002-001"]);
if ~ok then
abort
end
[ok, sSerialNumber] = getvalue("Input Serial Number", "SN", list("str", 1), ["default"]);
if ~ok then
abort
end
directory = uigetdir(pwd(), "Select Working Directoy");
status = chdir(directory)
realpath = cd(directory)
if ~status then
disp('failed to change directory')
abort
end
if ~isdir(directory) then
[status, err] = mkdir(sSerialNumber, 'imgs')
if status ~= 1 then
disp(err)
abort
end
end
//exec('WriteMatrixCSV.sci');
//exec('PointMatrixToList.sci');
//Define Surface Parameters
fConicConstant = -1.374;
fRadiusOfCurvature = 38.448; //(mm)
iConcavity = +1; //-1 = concave //+1 = convex //no 0!
fOffset = 0.0; // mm
fPolynomialCoefficients = [0];
//...
// [ 0, 0, 2.8265179e-6, -4.8964451e-7;...
// 0, 6.5191331e-5, -1.8966279e-7, 0;...
// -5.9920375e-5, -7.0557011e-7, 0, 0;...
// -2.6125317e-7, 0, 0, 0];
//
fRadiusOfCurvature = abs(fRadiusOfCurvature) * -iConcavity;
fPolynomialCoefficients = fPolynomialCoefficients * -iConcavity;
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//Define Scan Parameters
fOD = 70; //(mm)
fID = 28;
iN_R = 24; //20; //Number of radial steps
iN_T = 16; //20; //Number of angular steps
fXs = 0;
fYs = 0;
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
//Build Polynomial Terms
sPolynomialTerms = '';
iNM = size(fPolynomialCoefficients);
iN = iNM(1);
iM = iNM(2);
for i = 1:iN
for j = 1:iM
if fPolynomialCoefficients(i, j) ~= 0 then
sPolynomialTerms = sPolynomialTerms + '+ ' + string(fPolynomialCoefficients(i,j)) +...
' * (x - fXs * ones(x)).^(' + string(i) + ' - 1) .* (y - fYs * ones(y)).^(' + string(j) + ' - 1)';
end
end
end
//Build Polynomial Normal Terms
sPnX = '';
sPnY = '';
iNM = size(fPolynomialCoefficients);
iN = iNM(1);
iM = iNM(2);
for i = 1:iN
for j = 1:iM
if fPolynomialCoefficients(i, j) ~= 0 then
sPnX = sPnX + '- ' + string(fPolynomialCoefficients(i,j)) +...
' * ((x - fXs * ones(x)).^' + string(i-1) +' * ' + string(i-1) + ') .* (y - fYs * ones(y)).^' + string(j-1) + ' .* (x - fXs * ones(x)).^(-1)';
sPnY = sPnY + '- ' + string(fPolynomialCoefficients(i,j)) +...
' * ((x - fXs * ones(x)).^' + string(i-1) + ' * ' + string(j-1) + ') .* (y - fYs * ones(y)).^' + string(j-1) + ' .* (y - fYs * ones(y)).^(-1)';
end
end
end
//Build Conic Equation
sConic = 'z = (x.^2 - 2 * x * fXs + fXs^2 * ones(x) + y.^2 - 2 * y * fYs + fYs^2 * ones(y)) .*...
(R * (ones(x) + sqrt(ones(x) - (1 + fConicConstant) * (x.^2 - 2 * x * fXs + fXs^2 * ones(x) + y.^2 - 2 * y * fYs + fYs^2 * ones(y)) / R^2))) .^ (-1) ';
//Build Conic Normals
sCnX = 'nx = -(2 * x - 2 * fXs * ones(x)) .* (R * (ones(x) + sqrt(ones(1)-(x.^2 - 2 * x * fXs + fXs^2 * ones(x) + y.^2 - 2 * y * fYs + fYs^2 * ones(y)) * (1 + fConicConstant) / R^2))).^(-1)-...
(1 / 2) * (x.^2 - 2 * x * fXs + fXs^2 * ones(x) + y.^2 - 2 * y * fYs + fYs^2 * ones(y)) .* (1 + fConicConstant) .* (2 * x - 2 * fXs * ones(x)) .*...
((R^3 * (ones(x) + sqrt(ones(x) - (x.^2 - 2 * x * fXs + fXs^2 * ones(x) + y.^2 - 2 * y * fYs + fYs^2 * ones(y)) * (1 + fConicConstant) / R^2)).^2)...
.* sqrt(ones(x) - (x.^2 - 2 * x * fXs + fXs^2 * ones(x) + y.^2 - 2 * y * fYs + fYs^2 * ones(y)) * (1 + fConicConstant) / R^2)).^(-1) ';
sCnY = 'ny = -(2 * y - 2 * fYs * ones(y)) .* (R * (ones(x) + sqrt(ones(1)-(x.^2 - 2 * x *fXs+fXs^2 * ones(x) + y.^2 - 2 * y * fYs + fYs^2 * ones(y)) * (1 + fConicConstant) / R^2))).^(-1)-...
(1 / 2) * (x.^2 - 2 * x *fXs + fXs^2 * ones(x) + y.^2 - 2 * y *fYs+fYs^2 * ones(y)) * (1 + fConicConstant) .* (2 * y - 2 *fYs* ones(y)) .*...
((R^3 * (ones(x) + sqrt(ones(x) - (x.^2 - 2 * x *fXs+fXs^2 * ones(x) + y.^2 - 2 * y *fYs+fYs^2 * ones(y)) * (1 + fConicConstant) / R^2)).^2)...
.* sqrt(ones(x) - (x.^2 - 2 * x *fXs+fXs^2 * ones(x) + y.^2 - 2 * y *fYs+fYs^2 * ones(y)) * (1 + fConicConstant) / R^2)).^(-1) ';
//Define Surface Funtions
deff('z = Z(x, y, R)', sConic + sPolynomialTerms);
deff('x = X(r, t)', 'x = r'' * cos(t)');
deff('y = Y(r, t)', 'y = r'' * sin(t)');
//deff('x = X(u, v)', 'x = (u * cos(fTheta))'' * ones(v) - ones(u'') * (v * sin(fTheta))');
//deff('y = Y(u, v)', 'y = (u * sin(fTheta))'' * ones(v) + ones(u'') * (v * cos(fTheta))');
//Define Normal Fuctions
deff('nx = nX(x, y, R)', sCnX + sPnX);
deff('ny = nY(x, y, R)', sCnY + sPnY);
//Define Domain in the Polar Parameters (r, t)
r = linspace(fID / 2, fOD / 2, iN_R);
t = linspace(0, 2 * %pi, iN_T);
x = X(r, t);
y = Y(r, t);
z = Z(x, y, fRadiusOfCurvature);
NX = nX(x, y, fRadiusOfCurvature);
NY = nY(x, y, fRadiusOfCurvature);
NZ = ones(NX);
NX = NX; //Flip normals? or not
NY = NY;
NZ = NZ;
fig_the = scf(1);
[xf, yf, zf] = nf3d(x', y', z');
xset('colormap', jetcolormap(128));
plot3d1(xf, yf, zf, theta = 300, alpha = 60, leg = "@@", flag = [-1 6 4]);
axes_the = gca();
axes_the.axes_reverse = ["off", "off", "off"];
//facets_the = axes_the.children(1);
//facets_the.hiddencolor = -1;
//colorbar(min(z), max(z));
INV_NMAG = (NX.^2 + NY.^2 + NZ.^2).^(-1/2);
NX = NX .* INV_NMAG;
NY = NY .* INV_NMAG;
NZ = NZ .* INV_NMAG;
[a, b] = size(x);
for i = 1:a
x_list((i - 1) * b + 1 : i * b) = x(i, :)
end
[a, b] = size(y);
for i = 1:a
y_list((i - 1) * b + 1 : i * b) = y(i, :)
end
[a, b] = size(z);
for i = 1:a
z_list((i - 1) * b + 1 : i * b) = z(i, :)
end
[a, b] = size(NX);
for i = 1:a
NX_list((i - 1) * b + 1 : i * b) = NX(i, :)
end
[a, b] = size(NY);
for i = 1:a
NY_list((i - 1) * b + 1 : i * b) = NY(i, :)
end
[a, b] = size(NZ);
for i = 1:a
NZ_list((i - 1) * b + 1 : i * b) = NZ(i, :)
end
xarrows([x_list; x_list + NX_list*10], [y_list; y_list + NY_list*10], [z_list; z_list + NZ_list*10], 25)
//xs2pdf(gcf(), pwd() + '\' + string(sSerialNumber) + '\imgs\' + string(sPartNumber) + '_'...
// + string(sSerialNumber) + '_SURFACE.pdf');
/////////////////////////////////Apply normal offset to target points
x_list = x_list + fOffset * NX_list;
y_list = y_list + fOffset * NY_list;
z_list = z_list + fOffset * NZ_list;
///////////////////////////////////////////////////////////////// SAVE TARGET POINTS
sFileToSave = 'TARGET_POINTS.csv';
sTempFile = TMPDIR + "\" + sFileToSave;
fFile = mopen(sTempFile, 'wt');
for i=1:length(x_list) - 1
mfprintf(fFile, "%.6f, %.6f, %.6f, %.6f, %.6f, %.6f\n", x_list(i), y_list(i), z_list(i), NX_list(i), NY_list(i), NZ_list(i));
end
mfprintf(fFile, "%.6f, %.6f, %.6f, %.6f, %.6f, %.6f", x_list($), y_list($), z_list($), NX_list($), NY_list($), NZ_list($));
mclose(fFile);
dos('move ' + sTempFile + ' ' + pwd() + '\' + sFileToSave);
/////////////////////////////////////////////////////////////////
M_Actual = csvRead('ACTUAL_POINTS.csv');
[a b] = size(M_Actual)
for i=1:iN_R
x_actual(i, 1:iN_T) = M_Actual((i - 1) * iN_T + 1:i * iN_T, 1)';
y_actual(i, 1:iN_T) = M_Actual((i - 1) * iN_T + 1:i * iN_T, 2)';
z_actual(i, 1:iN_T) = M_Actual((i - 1) * iN_T + 1:i * iN_T, 3)';
end
[a, b] = size(x_actual);
for i = 1:a
x_actual_list((i - 1) * b + 1 : i * b) = x_actual(i, :)
end
[a, b] = size(y_actual);
for i = 1:a
y_actual_list((i - 1) * b + 1 : i * b) = y_actual(i, :)
end
[a, b] = size(z_actual);
for i = 1:a
z_actual_list((i - 1) * b + 1 : i * b) = z_actual(i, :)
end
z_error = z_actual - Z(x_actual, y_actual, fRadiusOfCurvature);
fig_error2 = scf(3);
xset('colormap', jetcolormap(128));
[xf, yf, zf] = nf3d(x_actual', y_actual', z_error' * 1000);
plot3d1(xf, yf, zf, theta = 300, alpha = 60, leg = "@@", flag = [-1 6 4]);
colorbar(min(z_error * 1000), max(z_error * 1000),,fmt="%.3f");
a = gca();
a.view = "2d";
a.axes_reverse = ["off", "off", "off"];
format('v', 10)
a.x_label.text = "$\Large X \tt(mm)$";
a.y_label.text = "$\Large Y \tt(mm)$";
a.title.text = "$\text{\begin{gather}\Huge{Surface \ Error}$" + ...
"$\\ \LARGE{" + sPartNumber + " \ SN" + sSerialNumber + "}$" + ...
"$\\ \small{R_{nom} = " + string(fRadiusOfCurvature) + "mm}$" +...
"\end{gather}}$";
mkdir('/' + sSerialNumber);
mkdir('/' + sSerialNumber + '/imgs');
xs2pdf(gcf(), pwd() + '\' + string(sSerialNumber) + '\imgs\' + string(sPartNumber) + '_'...
+ string(sSerialNumber) + '_FIGURE_ERROR_REAL.pdf');
function zt = ZT(x, y, parameters)
// zt = Z(x - parameters(1) + parameters(4) * sign(x),...
// y - parameters(2) + parameters(5) * sign(y),...
// fRadiusOfCurvature) + parameters(3);
zt = Z(x - parameters(1) + parameters(4) * cos(atan(y, x)),...
y - parameters(2) + parameters(4) * sin(atan(y, x)),...
fRadiusOfCurvature) + parameters(3);
endfunction
function ze = ZE(parameters, x_exp, y_exp, z_exp)
ze = ZT(x_exp, y_exp, parameters) - z_exp;
endfunction
param_noms = [0, 0, 0, 0, 0];
//param_binf = [-%inf, -%inf, -%inf, -.020, -%inf];
//param_bsup = [%inf, %inf, %inf, -.019, %inf];
[f, param_opt] = leastsq(list(ZE, x_actual_list', y_actual_list', z_actual_list'), param_noms);
//[f, param_opt] = leastsq(list(ZE, x_actual_list', y_actual_list', z_actual_list'),'b', param_binf, param_bsup, param_noms);
//z_error_ls_fit_all = z_actual - (Z(x_actual - param_opt(1), y_actual - param_opt(2), param_opt(4)) + param_opt(3));
//z_error_ls_fit_all = - z_error_ls_fit_all; //This makes the sign correct so that a positive error is in the outward surface normal dirrection
z_error_ls = z_actual - (Z(x_actual - param_opt(1), y_actual - param_opt(2), fRadiusOfCurvature));
z_error_ls_xyz = z_actual - (Z(x_actual - param_opt(1), y_actual - param_opt(2), fRadiusOfCurvature) + param_opt(3));
z_error_ls_xyz_tool = z_actual - (Z(x_actual - param_opt(1) + param_opt(4) * cos(atan(y_actual, x_actual)), y_actual - param_opt(2) + param_opt(4) * sin(atan(y_actual, x_actual)), fRadiusOfCurvature) + param_opt(3));
//z_error_ls = -z_error_ls; //This makes the sign correct so that a positive error is in the outward surface normal dirrection
fig_error2 = scf(4);
xset('colormap', jetcolormap(128));
[xf, yf, zf] = nf3d(x_actual', y_actual', z_error_ls' * 1000);
plot3d1(xf, yf, zf, theta = 300, alpha = 60, leg = "@@", flag = [-1 6 4]);
colorbar(min(z_error_ls * 1000), max(z_error_ls * 1000),,fmt="%.3f");
e = gce();
e.parent.title.text = "$\Large Z_{err} \tt(\mu m)$";
a = gca();
a.view = "2d";
a.axes_reverse = ["off", "off", "off"];
format('v', 10)
a.x_label.text = "$\Large X \tt(mm)$";
a.y_label.text = "$\Large Y \tt(mm)$";
a.title.text = "$\text{\begin{gather}\Huge{Surface \ Error}$" + ...
"$\\ \LARGE{" + sPartNumber + " \ SN" + sSerialNumber + "}$" + ...
"$\\ \normalsize{R_{nom} = " + string(fRadiusOfCurvature) + "mm}$" +...
"$\\ \normalsize{X_{offset} = " + string(round(param_opt(1)*1000)/1000) + "mm}$" +...
"$\\ \normalsize{Y_{offset} = " + string(round(param_opt(2)*1000)/1000) + "mm}$" +...
"\end{gather}}$";
//facets_a = a.children(1);
//facets_a.hiddencolor = -1;
mkdir('/' + sSerialNumber);
mkdir('/' + sSerialNumber + '/imgs');
xs2pdf(gcf(), pwd() + '\' + string(sSerialNumber) + '\imgs\' + string(sPartNumber) + '_'...
+ string(sSerialNumber) + '_FIGURE_ERROR_FIT_XY.pdf');
//fig_error2 = scf(5);
//xset('colormap', jetcolormap(128));
//[xf, yf, zf] = nf3d(x_actual', y_actual', z_error_ls_fit_all' * 1000);
//plot3d1(xf, yf, zf, theta = 300, alpha = 60, leg = "@@", flag = [-1 6 4]);
//colorbar(min(z_error_ls_fit_all * 1000), max(z_error_ls_fit_all * 1000),,fmt="%.3f");
//
//e = gce();
//e.parent.title.text = "$\Large Z_{err} \tt(\mu m)$";
//
//a = gca();
//a.view = "2d";
//a.axes_reverse = ["off", "off", "off"];
//
//format('v', 10)
//a.x_label.text = "$\Large X \tt(mm)$";
//a.y_label.text = "$\Large Y \tt(mm)$";
//a.title.text = "$\text{\begin{gather}\Huge{Surface \ Error}$" + ...
// "$\\ \LARGE{" + sPartNumber + " \ SN" + sSerialNumber + "}$" + ...
// "$\\ \small{R_{bf} = " + string(round(param_opt(4)*1000)/1000) + "mm}$" +...
// "$\\ \small{X_{offset} = " + string(round(param_opt(1)*1000)/1000) + "mm}$" +...
// "$\\ \small{Y_{offset} = " + string(round(param_opt(2)*1000)/1000) + "mm}$" +...
// "$\\ \small{Z_{offset} = " + string(round(param_opt(3)*1000)/1000) + "mm}$" +...
// "\end{gather}}$";
//
////facets_a = a.children(1);
////facets_a.hiddencolor = -1;
//
//mkdir('/' + sSerialNumber);
//mkdir('/' + sSerialNumber + '/imgs');
//xs2pdf(gcf(), pwd() + '\' + string(sSerialNumber) + '\imgs\' + string(sPartNumber) + '_'...
// + string(sSerialNumber) + '_FIGURE_ERROR_FIT_XYZR.pdf');
////////////////////////////////////////////////////////
fig_error2 = scf(7);
xset('colormap', jetcolormap(128));
[xf, yf, zf] = nf3d(x_actual', y_actual', z_error_ls_xyz_tool' * 1000);
plot3d1(xf, yf, zf, theta = 300, alpha = 60, leg = "@@", flag = [-1 6 4]);
colorbar(min(z_error_ls_xyz_tool * 1000), max(z_error_ls_xyz_tool * 1000),,fmt="%.3f");
e = gce();
e.parent.title.text = "$\Large Z_{err} \tt(\mu m)$";
a = gca();
a.view = "2d";
a.axes_reverse = ["off", "off", "off"];
format('v', 10)
a.x_label.text = "$\Large X \tt(mm)$";
a.y_label.text = "$\Large Y \tt(mm)$";
a.title.text = "$\text{\begin{gather}\Huge{Surface \ Error}$" + ...
"$\\ \LARGE{" + sPartNumber + " \ SN" + sSerialNumber + "}$" + ...
"$\\ \normalsize{X_{shift} = " + string(round(param_opt(4)*1000)/1000) + "mm}$" +...
"$\\ \normalsize{Y_{shift} = " + string(round(param_opt(5)*1000)/1000) + "mm}$" +...
"$\\ \normalsize{X_{offset} = " + string(round(param_opt(1)*1000)/1000) + "mm}$" +...
"$\\ \normalsize{Y_{offset} = " + string(round(param_opt(2)*1000)/1000) + "mm}$" +...
"$\\ \normalsize{Z_{offset} = " + string(round(param_opt(3)*1000)/1000) + "mm}$" +...
"\end{gather}}$";
//facets_a = a.children(1);
//facets_a.hiddencolor = -1;
mkdir('/' + sSerialNumber);
mkdir('/' + sSerialNumber + '/imgs');
xs2pdf(gcf(), pwd() + '\' + string(sSerialNumber) + '\imgs\' + string(sPartNumber) + '_'...
+ string(sSerialNumber) + '_FIGURE_ERROR_FIT_XYZT.pdf');
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
//
//
//[M N] = size(x)
//
//for i = 1 : M - 1
// for j = 1 : N - 1
// grad_zu(i, j) = ((z_error_ls_fit_all(i, j) - z_error_ls_fit_all(i + 1, j)) / sqrt((x_actual(i, j) - x_actual(i + 1, j)) ^ 2 + (y_actual(i, j) - y_actual(i + 1, j)) ^ 2) + (z_error_ls_fit_all(i, j + 1) - z_error_ls_fit_all(i + 1, j + 1)) / sqrt((x_actual(i, j + 1) - x_actual(i + 1, j + 1)) ^ 2 + (y_actual(i, j + 1) - y_actual(i + 1, j + 1)) ^ 2)) / 2;
//
// grad_zv(i, j) = ((z_error_ls_fit_all(i, j) - z_error_ls_fit_all(i, j + 1)) / sqrt((x_actual(i, j) - x_actual(i, j + 1)) ^ 2 + (y_actual(i, j) - y_actual(i, j + 1)) ^ 2) + (z_error_ls_fit_all(i + 1, j) - z_error_ls_fit_all(i + 1, j + 1)) / sqrt((x_actual(i + 1, j) - x_actual(i + 1, j + 1)) ^ 2 + (y_actual(i + 1, j) - y_actual(i + 1, j + 1)) ^ 2)) / 2;
//
//
// x_grad(i,j) = (x_actual(i, j) + x_actual(i, j + 1) + x_actual(i + 1, j) + x_actual(i + 1, j + 1)) / 4;
// y_grad(i,j) = (y_actual(i, j) + y_actual(i, j + 1) + y_actual(i + 1, j) + y_actual(i + 1, j + 1)) / 4;
// end
//end
//
//grad_mag = (grad_zu.^2 + grad_zv.^2).^(1/2) * 50 * 10^3;
////grad_mag = grad_zv * (50 * 10^3);
//slope_error = scf(6);
//xset('colormap', jetcolormap(128));
//[xf, yf, zf] = nf3d(x_grad', y_grad', grad_mag');
//plot3d1(xf, yf, zf, theta = 300, alpha = 60, leg = "@@", flag = [-1 6 4]);
//colorbar(min(grad_mag), max(grad_mag),,fmt="%.3f");
//
//e = gce();
//e.parent.title.text = "$\Large ||{\nabla Z_{err}}|| \tt\Big(\frac{\mu m}{50 mm}\Big)$";
//
//a = gca();
//a.view = "2d";
//a.axes_reverse = ["off", "on", "on"];
//
//format('v', 10)
//a.x_label.text = "$\Large X \tt(mm)$";
//a.y_label.text = "$\Large Y \tt(mm)$";
//a.title.text = "$\text{\begin{gather}\Huge{Slope \ Error}$" + "$\\ \LARGE{' + sPartNumber +' \ SN" + sSerialNumber + "}$" +...
// "$\\ \LARGE{R_{bf} = " + string(param_opt(4)) + " mm}\end{gather}}$";
//
//facets_a = a.children(1);
//facets_a.hiddencolor = -1;
//
//mkdir('/' + sSerialNumber);
//mkdir('/' + sSerialNumber + '/imgs');
//xs2pdf(gcf(), pwd() + '\' + string(sSerialNumber) + '\imgs\' + string(sPartNumber) + '_'...
// + string(sSerialNumber) + '_SLOPE_ERROR_FIT_XYZR.pdf');
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
vTS = datevec(now());
sTimeStampTemp = string(vTS(1:5));
for i = 1 : size(sTimeStampTemp, "*")
sTimeStamp(i) = strcat(tokens(sTimeStampTemp(i), " "), "");
end
/////////////////////////////////////////////Write RAW points to output folder
sFileToSave = 'Surface_Points_' + [sTimeStamp(1)+sTimeStamp(2)+sTimeStamp(3)+sTimeStamp(4)+sTimeStamp(5)] + '.csv';
sTempFile = TMPDIR + "\" + sFileToSave;
fFile = mopen(sTempFile, 'wt');
for i=1:size(M_Actual, 1) - 1
mfprintf(fFile, "%f.6, %f.6, %f.6, %f.6, %f.6, %f.6\n", M_Actual(i, 1), M_Actual(i, 2), M_Actual(i, 3), M_Actual(i, 4), M_Actual(i, 5), M_Actual(i, 6));
end
mfprintf(fFile, "%f.6, %f.6, %f.6, %f.6, %f.6, %f.6", M_Actual($, 1), M_Actual($, 2), M_Actual($, 3), M_Actual($, 4), M_Actual($, 5), M_Actual($, 6));
mclose(fFile);
dos('move ' + sTempFile + ' ' + pwd() + '\' + string(sSerialNumber) + '\' + sFileToSave);
|
da112274bee9321add2d81d3d07fcfa847a17822
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/572/CH13/EX13.6/c13_6.sce
|
e6905b75cfdbc0bf0e0540bef0766b24cf1d4a33
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,672
|
sce
|
c13_6.sce
|
//(13.6) A mixture of 1 kmol of gaseous methane and 2 kmol of oxygen initially at 25C and 1 atm burns completely in a closed, rigid container. Heat transfer occurs until the products are cooled to 900 K. If the reactants and products each form ideal gas mixtures, determine (a) the amount of heat transfer, in kJ, and (b) the final pressure, in atm.
//solution
//variable initialization
nCH4 = 1 //moles of methane in kmol
nO2 = 2 //moles of oxygen in kmol
T1 = 25 //in degree celcius
p1 = 1 //in atm
T2 = 900 //in kelvin
Rbar = 8.314 //universal gas constant
//The chemical reaction equation for the complete combustion of methane with oxygen is
//CH4 + 2O2 ----> CO2 + 2H2O
//part(a)
//with enthalpy of formation values from table A-25
hfbarCO2 = -393520
hfbarH2O = -241820
hfbarCH4 = -74850
//with enthalpy values from table A-23
deltahbarCO2 = 37405-9364
deltahbarH2O = 31828-9904
Q = ((hfbarCO2 + deltahbarCO2)+2*(hfbarH2O + deltahbarH2O) - hfbarCH4) + 3*Rbar*(T1+273-T2)
printf('the amount of heat transfer in kJ is: %f',Q)
//part(b)
p2 = p1*(T2/(T1+273)) //in atm
printf('\nthe final pressure in atm is: %f',p2)
|
ba7f32b87ae4f0907fdcef3afc760f59cc0c4813
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/608/CH22/EX22.05/22_05.sce
|
c53f41c75a4b41aa6c55f222e7ce410393c1bbab
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 824
|
sce
|
22_05.sce
|
//Problem 22.05: A 3-phase, 60 Hz induction motor has 2 poles. If the slip is 2% at a certain load, determine (a) the synchronous speed, (b) the speed of the rotor and (c) the frequency of the induced e.m.f.’s in the rotor.
//initializing the variables:
p = 2/2; // number of pairs of poles
f = 60; // in Hz
s = 0.02; // slip
//calculation:
//ns is the synchronous speed, f is the frequency in hertz of the supply to the stator and p is the number of pairs of poles.
ns = f/p
//The the rotor runs at
nr = ns*(1 - s)
//frequency of the e.m.f.’s induced in the rotor bars is
fr = ns - nr
printf("\n\n Result \n\n")
printf("\n(a) synchronous speed is %.0f rev/sec",ns)
printf("\n(b) rotor speed is %.1f rev/sec",nr)
printf("\n(c) frequency of the e.m.f.’s induced in the rotor bars is is %.1f Hz",fr)
|
fdb0397e1080095882394cc9475ba37ffa645a9e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/494/CH4/EX4.6/4_6.sce
|
343a5cb1738023acfc96f6cc03e90c48b0e06458
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 592
|
sce
|
4_6.sce
|
//All the quantities are expressed in SI units
alpha1 = 4;
alpha2 = -1.1;
alpha3 = -4;
cl_1 = 0.55; //cl at alpha1
cl_2 = 0; //cl at alpha2
c_m_qc1 = -0.005; //c_m_qc at alpha1
c_m_qc3 = -0.0125; //c_m_qc at alpha3
//the lift slope is given by
a0 = (cl_1 - cl_2)/(alpha1-alpha2);
//the slope of moment coefficient curve is given by
m0 = (c_m_qc1 - c_m_qc3)/(alpha1-alpha3);
//from eq.4.71
x_ac = -m0/a0 + 0.25;
printf("\nRESULTS\n--------\nThe location of the aerodynamic center is\n x_ac = %1.3f\n",x_ac)
|
57a003c1e0cf202768e592022304fc8cff293009
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/source/2.2/macros/scicos/MFCLCK_f.sci
|
c56bc13c1598e5bf8d0cd745f11e1f47ee401812
|
[
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] |
permissive
|
clg55/Scilab-Workbench
|
4ebc01d2daea5026ad07fbfc53e16d4b29179502
|
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
|
refs/heads/master
| 2023-05-31T04:06:22.931111
| 2022-09-13T14:41:51
| 2022-09-13T14:41:51
| 258,270,193
| 0
| 1
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 949
|
sci
|
MFCLCK_f.sci
|
function [x,y,typ]=MFCLCK_f(job,arg1,arg2)
x=[];y=[];typ=[];
select job
case 'plot' then
standard_draw(arg1)
graphics=arg1(2); [orig,sz]=graphics(1:2)
xstringb(orig(1),orig(2),['M. freq';'clock'],sz(1),sz(2),'fill')
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);dt=model(8)
nn=model(9)
[ok,label,dt,nn]=getvalue('Set Multifrequency clock parameters',..
['Block label';'basic period (1/f)';'multiply by (n)'],..
list('str',1,'vec',1,'vec',1),[label;string(dt);string(nn)])
if ok then
model(9)=nn
model(8)=dt;
hh=model(11);hh(2)=dt<>0;model(11)=hh
graphics(4)=label
x(2)=graphics;x(3)=model
end
case 'define' then
model=list('mfclck',0,0,1,2,[],0,0,2,'d',[%f %f],[%f %f])
x=standard_define([2 2],model)
end
|
63a707693151db4b15c38ebafde1f2f56f644200
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3745/CH1/EX1.24/Ex1_24.sce
|
42662fa683787ba5c9802d993b585373963d01e5
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 987
|
sce
|
Ex1_24.sce
|
// Ex 24 Page 366
clc;clear;close;
// Given
b=3;//cm
a=4.5;//cm
f=9*10**9;//Hz
v=3*10**10;//cm/s
lamda=v/f;//cm
printf("\n For TE10 mode:")
m=1;// for TE10 mode
lamda_c = 2*a/m;//cm
rho=sqrt(1-(lamda/lamda_c)**2)
lamda_g=lamda/rho;//cm
vg=rho*v;//cm/s
vp=v/rho;//cm/s
ZTE=120*%pi/rho;//ohm
printf("\n cutoff wavelength = %.f cm",lamda_c)
printf("\n guide wavelength = %.2f cm",lamda_g)
printf("\n Group velocity = %.1e m/s",vg/100)
printf("\n Phase velocity = %.1e m/s",vp/100)
printf("\n Characteristic wave impedence = %.f ohm",ZTE)
printf("\n\n For TM11 mode:")
m=1;n=1// for TE10 mode
lamda_c = 2/sqrt((m/a)**2+(n/b)**2);//cm
rho=sqrt(1-(lamda/lamda_c)**2)
lamda_g=lamda/rho;//cm
vg=rho*v;//cm/s
vp=v/rho;//cm/s
ZTM=120*%pi*rho;//ohm
printf("\n cutoff wavelength = %.f cm",lamda_c)
printf("\n guide wavelength = %.2f cm",lamda_g)
printf("\n Group velocity = %.1e m/s",vg/100)
printf("\n Phase velocity = %.1e m/s",vp/100)
printf("\n Characteristic wave impedence = %.f ohm",ZTM)
|
0dbd5d76c94831832425918e54ac6564e437c509
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/503/CH2/EX2.9/ch2_9.sci
|
1a1df4d389007f79d15df92a25f9ae121e5c49c7
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 385
|
sci
|
ch2_9.sci
|
// calculation of hysterisis and eddy current losses
clc;
P1=1500;
f1=50;
P2=3000;
f2=75;
A=[1 50;1 75]; //P/f=A+B*f
B=[30;40];
v=A\B;
disp('at 50Hz');
P_h=v(1)*f1;disp(P_h,'hysterisis loss(W)');
P_e=v(2)*f1^2;disp(P_e,'eddy current loss(W)');
disp('at 75Hz');
P_h=v(1)*f2;disp(P_h,'hysterisis loss(W)');
P_e=v(2)*f2^2;disp(P_e,'eddy current loss(W)');
|
5652844d571d26b50fd1b16cb2efb64ced5f5f41
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/323/CH4/EX4.17/4_17.sci
|
12ad94d408f6a414e1e48bc14edfde3ce7d56d46
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 916
|
sci
|
4_17.sci
|
funcprot(0)
function [polar] = rect2polar(x,y) //Function to convert rectangular coordinates to polar coordinates
polar=ones(1,2)
polar(1)=sqrt((x^2)+(y^2))
polar(2)=atan(y/x)
polar(2)=(polar(2)*180)/%pi
endfunction
clc
Po=200*10^3 //Output Power
f=50 //frequency in hertz
Vl=440
n=91 //efficiency
pf=0.86
Vph=Vl //For a delta connected load
//Since the efficiency and output power have been given in the question, the input power can be easily calculated
Pi=(Po/n)*100
printf("\n Input power=%.2f kW \n",Pi*10^-3)
//Since the input power is now known we can calculate the line current
Il=Pi/(sqrt(3)*Vl*pf)
printf("\n Il=%.1f A \n",Il)
Iph=Il/sqrt(3)
printf("\n Iph=%.1f A \n",Iph)
apc=Iph*pf //Active component of phase current
printf("\n Active component of phase current=%.1f A \n",apc)
rpc=Iph*sqrt(1-pf^2)
printf("\n Reactive component of phase current=%.1f A \n",rpc)
|
eb5601fe2a782356f893dcc9777aaf67f309b847
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1931/CH7/EX7.17/17.sce
|
576a8bd09f236ae7c9d9dd937b01b9c5f7339f2c
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
17.sce
|
clc
clear
//INPUT DATA
x=6.40*10^7//electrical conductivity in mho m^-1
t=300//temperature of copper in k
L=2.44*10^-8//Lorentz number in W ohm K^-2
//CALCULATION
K=x*t*L//thermal conductivity of copper in W m^-1 K^-1
//OUTPUT
printf('The thermal conductivity of copper is %3.2f W.m^-1.K^-1',K)
|
742305388be00a754fbe35a35c679070df7eb2a0
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1985/CH14/EX14.7/Chapter14_example7.sce
|
242dede47fc1e5fd156e08b31e140184669bae13
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 337
|
sce
|
Chapter14_example7.sce
|
clc
clear
//Input data
M=2300//Magnetization in A/m
B=0.00314//Flux density in Wb/m^2
uo=(4*3.14)*10^-7//Permeability of free space in H/m
//Calculations
H=(B/uo)-M//Magnetizing force in A/m
ur=(M/H)+1//Relative permeability
//Output
printf('The magnetizing force is %3.0f A/m \n The relative permeability is %3.1f',H,ur)
|
295e7799114ca4d86687fac801f3e5b90e78e8b0
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1466/CH3/EX3.9/3_9.sce
|
19326b318a21071a5441b6fd2029184d93fd1b6f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 279
|
sce
|
3_9.sce
|
clc
//initialisation of variables
g= 32.2 //ft/sec^2
d= 12 //in
h= 0.1 //m
w= 240 //r.p.m
W= 62.4 //lbft/sec^2
//CALCULATIONS
P= (%pi*(d/24)^4*W*(2*%pi*4)^2)/(4*g)
Pt= P+%pi*(d/24)^2*W*(h/12)
//RESULTS
printf (' Total pressure on bottom of cylinder = %.3f Lb ',Pt)
|
d35383f9c4e3edc6bddec25fcaa7bc7566d0abca
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1994/CH2/EX2.3/Example2_3.sce
|
886c3204a8905c545d302cd67e35655c00d6abaa
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 167
|
sce
|
Example2_3.sce
|
//Chapter-2,Example2_3,pg 2_12
n=4
Vofs=15
Res=Vofs/((2^n)-1)
D=bin2dec('0110')//decimal equivalent
Vo=Res*D
printf("output voltage\n")
printf("Vo=%.2f V",Vo)
|
9a224720844c33741b816d87e8f776bad8389f7b
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1943/CH4/EX4.5/Ex4_5.sce
|
d809fa7d9a92f85b58cd65f12ea0b19c3239b8cd
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,376
|
sce
|
Ex4_5.sce
|
clc
clear
//Input data
C=83.7;//The amount of carbon present in the fuel oil according to ultimate analysis of a fuel oil in %
H=12.7;//The amount of hydrogen present in the fuel oil according to ultimate analysis of a fuel oil in %
O=1.2;//The amount of oxygen present in the fuel oil according to ultimate analysis of a fuel oil in %
N=1.7;//The amount of nitrogen present in the fuel oil according to ultimate analysis of a fuel oil in %
S=0.7;//The amount of sulphur present in the fuel oil according to ultimate analysis of a fuel oil in %
td=27;//The dry bulb temperature of combustion air in degree centigrade
tw=21;//The wet bulb temperature of combustion air in degree centigrade
E=0.3;//Excess air and assuming complete combustion in %
t=200;//Temperature to find total volume of combustion products in degree centigrade
p=1.013;//Pressure to find total volume of combustion procucts in bar
//Calculations
Wth=(11.5*(C/100))+[34.5*((H/100)-(O/100)*(1/8))]+(4.3*(S/100));//Theoretical air required per kg of fuel in kg
WA=(1+E)*Wth;//Actual air required per kg of fuel in kg/kg fuel
sh=0.0132;//Specific humidity at DBT and WBT in kg moisture/kg dry air
W=WA*sh;//Water vapour entering with air per kg fuel in kg vap/kg fuel
Tw=(9*(H/100))+WA;//Total water vapour formed per kg fuel in kg
CO2=(44/12)*(C/100);//mass of carbondioxide gas per kg of fuel
O2=0.232*E*Wth;//Mass of oxygen gas per kg of fuel
N2=0.768*(1+E)*Wth+(N/100);//Mass of nitrogen gas per kg of fuel
SO2=(64/32)*(S/100);//Mass of nitrogen gas per kg of fuel
H2O=1.383;//Mass of water per kg of fuel
M=(CO2/44)+(O2/32)+(N2/28)+(SO2/64)+(H2O/18);//Moles of combustion gases formed per kg fuel
VG=M*22.4*[(273+t)/273]*(1.013/1.013);//Volume of flue gases at 200 degree centigrade and 1.013 bar per kg fuel
CO21=((CO2/44)/[(CO2/44)+(O2/32)+(N2/28)])*100;//Composition of dry flue gas CO2 by volume
O21=((O2/32)/[(CO2/44)+(O2/32)+(N2/28)])*100;//Composition of dry flue gas O2 by volume
N21=((N2/28)/[(CO2/44)+(O2/32)+(N2/28)])*100;//Composition of dry flue gas N2 by volume
//Output
printf('(a)The total volume of combustion products at 200 degee centigrade and 1.013 bar = %3.2f m^3 \n (b)The dry flue gas analysis based on carbondioxide,oxygen and nitrogen is \n Carbondioxide = %3.2f percent \n Oxygen = %3.2f percent \n Nitrogen = %3.2f percent',VG,CO21,O21,N21)
|
40099c6edcdac13c62f2a7af422c2751be116faf
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2606/CH4/EX4.15/ex4_15.sce
|
76a06bc04550a9d9f92987167f33d387c8664f2e
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
ex4_15.sce
|
//Page Number: 4.17
//Example 4.15
clc;
//Given
//x(t)=10cos(wct+3sinwmt)
//Comparing with standard equation
B=3;
fm=1D+3; //hz
fb=2*(B+1)*fm;
//(a)fm is doubled
fma=2*fm;
fba=2*(B+1)*fma;
disp(fba,"fb with 2fm: ");
//(b)fm is one halved
fmb=fm/2;
fbb=2*(B+1)*fmb;
disp(fbb,"fb with 0.5fm: ");
|
ef6dbf8e35aab39a9438691b564f5ac53ef3c49d
|
931df7de6dffa2b03ac9771d79e06d88c24ab4ff
|
/Run and Gun.sce
|
61e61933f3b37edea39535fb9d246520fb49cc08
|
[] |
no_license
|
MBHuman/Scenarios
|
be1a722825b3b960014b07cda2f12fa4f75c7fc8
|
1db6bfdec8cc42164ca9ff57dd9d3c82cfaf2137
|
refs/heads/master
| 2023-01-14T02:10:25.103083
| 2020-11-21T16:47:14
| 2020-11-21T16:47:14
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 19,044
|
sce
|
Run and Gun.sce
|
Name=Run and Gun
PlayerCharacters=Player
BotCharacters=Counter-Striker Bot PEEKER.bot;Counter-Striker Bot PEEKER.bot
IsChallenge=false
Timelimit=60.0
PlayerProfile=Counter-Striker
AddedBots=Counter-Striker Bot PEEKER.bot;Counter-Striker Bot PEEKER.bot
PlayerMaxLives=0
BotMaxLives=0;0
PlayerTeam=1
BotTeams=1;1
MapName=Lijiang-CC.map
MapScale=5.0
BlockProjectilePredictors=true
BlockCheats=true
InvinciblePlayer=false
InvincibleBots=false
Timescale=1.0
BlockHealthbars=true
TimeRefilledByKill=5.0
ScoreToWin=100.0
ScorePerDamage=0.0
ScorePerKill=100.0
ScorePerMidairDirect=0.0
ScorePerAnyDirect=0.0
ScorePerTime=0.0
ScoreLossPerDamageTaken=0.0
ScoreLossPerDeath=0.0
ScoreLossPerMidairDirected=0.0
ScoreLossPerAnyDirected=0.0
ScoreMultAccuracy=true
ScoreMultDamageEfficiency=false
ScoreMultKillEfficiency=false
GameTag=Run'n and Gun'n
WeaponHeroTag=Pistol and a Rifle
DifficultyTag=4
AuthorsTag=Mdog864
BlockHitMarkers=false
BlockHitSounds=false
BlockMissSounds=true
BlockFCT=true
Description=Move through the map gunning down anything that moves! Work on small clip high damage 6 shooter, or 30 rounds spraying targets with the Scar.
GameVersion=1.0.8.0
ScorePerDistance=0.0
MBSEnable=false
MBSTime1=0.25
MBSTime2=0.5
MBSTime3=0.75
MBSTime1Mult=1.0
MBSTime2Mult=2.0
MBSTime3Mult=3.0
MBSFBInstead=false
MBSRequireEnemyAlive=false
[Aim Profile]
Name=cs
MinReactionTime=0.18
MaxReactionTime=0.3
MinSelfMovementCorrectionTime=0.007
MaxSelfMovementCorrectionTime=0.035
FlickFOV=10.0
FlickSpeed=1.0
FlickError=3.0
TrackSpeed=3.5
TrackError=3.5
MaxTurnAngleFromPadCenter=90.0
MinRecenterTime=0.25
MaxRecenterTime=0.4
OptimalAimFOV=35.0
OuterAimPenalty=1.1
MaxError=35.0
ShootFOV=1.0
VerticalAimOffset=-5.0
MaxTolerableSpread=2.0
MinTolerableSpread=0.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[Aim Profile]
Name=Default
MinReactionTime=0.3
MaxReactionTime=0.4
MinSelfMovementCorrectionTime=0.001
MaxSelfMovementCorrectionTime=0.05
FlickFOV=30.0
FlickSpeed=1.5
FlickError=15.0
TrackSpeed=3.5
TrackError=3.5
MaxTurnAngleFromPadCenter=75.0
MinRecenterTime=0.3
MaxRecenterTime=0.5
OptimalAimFOV=30.0
OuterAimPenalty=1.0
MaxError=40.0
ShootFOV=15.0
VerticalAimOffset=0.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[Bot Profile]
Name=Counter-Striker Bot PEEKER
DodgeProfileNames=cs peek
DodgeProfileWeights=1.0
DodgeProfileMaxChangeTime=10.0
DodgeProfileMinChangeTime=0.1
WeaponProfileWeights=1.5;1.5;1.5;1.0;1.0;1.0;1.0;1.0
AimingProfileNames=cs;cs;cs;cs;cs;Default;Default;Default
WeaponSwitchTime=5.0
UseWeapons=true
CharacterProfile=Counter-Striker
SeeThroughWalls=true
NoDodging=false
NoAiming=false
[Character Profile]
Name=Player
MaxHealth=500.0
WeaponProfileNames=Six Shooter;SCAR;Bow & Arrow;;;;;
MinRespawnDelay=3.0
MaxRespawnDelay=5.0
StepUpHeight=75.0
CrouchHeightModifier=0.75
CrouchAnimationSpeed=1.0
CameraOffset=X=0.000 Y=0.000 Z=0.000
HeadshotOnly=false
DamageKnockbackFactor=1.0
MovementType=Base
MaxSpeed=1100.0
MaxCrouchSpeed=250.0
Acceleration=6000.0
AirAcceleration=16000.0
Friction=7.5
BrakingFrictionFactor=1.25
JumpVelocity=800.0
Gravity=2.5
AirControl=1.0
CanCrouch=true
CanPogoJump=false
CanCrouchInAir=true
CanJumpFromCrouch=true
EnemyBodyColor=X=0.468 Y=0.195 Z=0.095
EnemyHeadColor=X=0.847 Y=0.012 Z=0.018
TeamBodyColor=X=0.016 Y=0.440 Z=0.072
TeamHeadColor=X=0.016 Y=0.440 Z=0.072
BlockSelfDamage=true
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=true
AirJumpCount=0
AirJumpVelocity=800.0
MainBBType=Cylindrical
MainBBHeight=250.0
MainBBRadius=35.0
MainBBHasHead=true
MainBBHeadRadius=25.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=250.0
ProjBBRadius=35.0
ProjBBHasHead=true
ProjBBHeadRadius=25.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.5
JetpackFullFuelTime=1000.0
JetpackFuelIncPerSec=100.0
JetpackFuelRegensInAir=true
JetpackThrust=6000.0
JetpackMaxZVelocity=600.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=;;;
HideWeapon=false
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=5.0
BlockedSpawnRadius=256.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.0
AllowBufferedJumps=true
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=200.0
HealthRegenPerSec=25.0
HealthRegenDelay=7.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=2048.0
VerticalSpawnOffset=0.0
SpawnXOffset=0.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
[Character Profile]
Name=Counter-Striker
MaxHealth=100.0
WeaponProfileNames=pistol;M4A4;Projectile Rifle;Six Shooter;SCAR;;;
MinRespawnDelay=3.0
MaxRespawnDelay=5.0
StepUpHeight=75.0
CrouchHeightModifier=0.75
CrouchAnimationSpeed=1.0
CameraOffset=X=0.000 Y=0.000 Z=0.000
HeadshotOnly=false
DamageKnockbackFactor=1.0
MovementType=Base
MaxSpeed=1100.0
MaxCrouchSpeed=250.0
Acceleration=6000.0
AirAcceleration=16000.0
Friction=7.5
BrakingFrictionFactor=1.25
JumpVelocity=800.0
Gravity=2.5
AirControl=1.0
CanCrouch=true
CanPogoJump=false
CanCrouchInAir=true
CanJumpFromCrouch=true
EnemyBodyColor=X=0.468 Y=0.195 Z=0.095
EnemyHeadColor=X=0.847 Y=0.012 Z=0.018
TeamBodyColor=X=0.016 Y=0.440 Z=0.072
TeamHeadColor=X=0.016 Y=0.440 Z=0.072
BlockSelfDamage=true
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=true
AirJumpCount=0
AirJumpVelocity=800.0
MainBBType=Cylindrical
MainBBHeight=250.0
MainBBRadius=35.0
MainBBHasHead=true
MainBBHeadRadius=25.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=250.0
ProjBBRadius=35.0
ProjBBHasHead=true
ProjBBHeadRadius=25.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.5
JetpackFullFuelTime=1000.0
JetpackFuelIncPerSec=100.0
JetpackFuelRegensInAir=true
JetpackThrust=6000.0
JetpackMaxZVelocity=600.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=;;;
HideWeapon=false
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=5.0
BlockedSpawnRadius=256.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.0
AllowBufferedJumps=true
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=200.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=2048.0
VerticalSpawnOffset=0.0
SpawnXOffset=0.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
[Dodge Profile]
Name=cs peek
MaxTargetDistance=10000.0
MinTargetDistance=0.0
ToggleLeftRight=true
ToggleForwardBack=false
MinLRTimeChange=0.125
MaxLRTimeChange=0.5
MinFBTimeChange=0.2
MaxFBTimeChange=0.5
DamageReactionChangesDirection=false
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=0.0
DamageReactionResetTimer=0.1
JumpFrequency=0.01
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.25
TargetStrafeOverride=Ignore
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=1.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.0
BlockedMovementReactionMax=0.125
[Weapon Profile]
Name=Six Shooter
Type=Hitscan
ShotsPerClick=1
DamagePerShot=200.0
KnockbackFactor=0.1
TimeBetweenShots=0.5
Pierces=false
Category=FullyAuto
BurstShotCount=1
TimeBetweenBursts=0.5
ChargeStartDamage=10.0
ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000
ChargeTimeToAutoRelease=2.0
ChargeTimeToCap=1.0
ChargeMoveSpeedModifier=1.0
MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000
MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000
InheritOwnerVelocity=0.0
OriginOffset=X=0.000 Y=0.000 Z=0.000
MaxTravelTime=5.0
MaxHitscanRange=100000.0
GravityScale=1.0
HeadshotCapable=true
HeadshotMultiplier=2.0
MagazineMax=6
AmmoPerShot=1
ReloadTimeFromEmpty=1.5
ReloadTimeFromPartial=1.5
DamageFalloffStartDistance=2200.0
DamageFalloffStopDistance=4500.0
DamageAtMaxRange=20.0
DelayBeforeShot=0.0
HitscanVisualEffect=Tracer
ProjectileGraphic=Ball
VisualLifetime=0.5
WallParticleEffect=None
HitParticleEffect=None
BounceOffWorld=false
BounceFactor=0.0
BounceCount=0
HomingProjectileAcceleration=0.0
ProjectileEnemyHitRadius=1.0
CanAimDownSight=false
ADSZoomDelay=0.0
ADSZoomSensFactor=0.7
ADSMoveFactor=1.0
ADSStartDelay=0.0
ShootSoundCooldown=0.08
HitSoundCooldown=0.08
HitscanVisualOffset=X=0.000 Y=0.000 Z=-80.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=0.1
RecoilNegatable=true
DecalType=1
DecalSize=30.0
DelayAfterShooting=0.0
BeamTracksCrosshair=false
AlsoShoot=
ADSShoot=
StunDuration=0.0
CircularSpread=true
SpreadStationaryVelocity=0.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.0
HitscanVisualRadius=6.0
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
ProjectileTrail=None
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=true
AimPunchAmount=0.0
AimPunchResetTime=0.05
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=true
MinimumDecelVelocity=0.0
PSRManualNegation=false
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=0
CancelReloadOnKill=false
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=No Scope
ADSFOVOverride=72.099998
ADSFOVScale=Quake/Source
ADSAllowUserOverrideFOV=true
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.1
Explosive=false
Radius=500.0
DamageAtCenter=100.0
DamageAtEdge=0.0
SelfDamageMultiplier=0.5
ExplodesOnContactWithEnemy=false
DelayAfterEnemyContact=0.0
ExplodesOnContactWithWorld=false
DelayAfterWorldContact=0.0
ExplodesOnNextAttack=false
DelayAfterSpawn=0.0
BlockedByWorld=false
SpreadSSA=1.0,1.0,-1.0,0.0
SpreadSCA=1.0,1.0,-1.0,0.0
SpreadMSA=1.0,1.0,-1.0,0.0
SpreadMCA=1.0,1.0,-1.0,0.0
SpreadSSH=1.0,1.0,-1.0,0.0
SpreadSCH=1.0,1.0,-1.0,0.0
SpreadMSH=1.0,1.0,-1.0,0.0
SpreadMCH=1.0,1.0,-1.0,0.0
MaxRecoilUp=5.0
MinRecoilUp=5.0
MinRecoilHoriz=0.0
MaxRecoilHoriz=0.0
FirstShotRecoilMult=1.0
RecoilAutoReset=true
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.35
AAMode=2
AAPreferClosestPlayer=false
AAAlpha=0.05
AAMaxSpeed=0.5
AADeadZone=0.0
AAFOV=30.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=true
AABlocksMouse=false
AAOffTimer=0.0
AABackOnTimer=0.0
TriggerBotEnabled=true
TriggerBotDelay=0.01
TriggerBotFOV=0.1
StickyLock=false
HeadLock=true
VerticalOffset=0.0
DisableLockOnKill=false
UsePerShotRecoil=false
PSRLoopStartIndex=0
PSRViewRecoilTracking=0.45
PSRCapUp=9.0
PSRCapRight=4.0
PSRCapLeft=4.0
PSRTimeToPeak=0.095
PSRResetDegreesPerSec=40.0
UsePerBulletSpread=false
PBS0=0.0,0.0
[Weapon Profile]
Name=SCAR
Type=Hitscan
ShotsPerClick=1
DamagePerShot=25.0
KnockbackFactor=4.0
TimeBetweenShots=0.096
Pierces=false
Category=FullyAuto
BurstShotCount=1
TimeBetweenBursts=0.5
ChargeStartDamage=10.0
ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000
ChargeTimeToAutoRelease=2.0
ChargeTimeToCap=1.0
ChargeMoveSpeedModifier=1.0
MuzzleVelocityMin=X=87000.000 Y=0.000 Z=0.000
MuzzleVelocityMax=X=87000.000 Y=0.000 Z=0.000
InheritOwnerVelocity=0.0
OriginOffset=X=0.000 Y=0.000 Z=0.000
MaxTravelTime=5.0
MaxHitscanRange=100000.0
GravityScale=0.0
HeadshotCapable=true
HeadshotMultiplier=2.0
MagazineMax=30
AmmoPerShot=1
ReloadTimeFromEmpty=0.5
ReloadTimeFromPartial=0.5
DamageFalloffStartDistance=100000.0
DamageFalloffStopDistance=100000.0
DamageAtMaxRange=25.0
DelayBeforeShot=0.0
HitscanVisualEffect=None
ProjectileGraphic=Arrow
VisualLifetime=0.1
WallParticleEffect=None
HitParticleEffect=Flare
BounceOffWorld=false
BounceFactor=0.5
BounceCount=0
HomingProjectileAcceleration=0.0
ProjectileEnemyHitRadius=0.01
CanAimDownSight=false
ADSZoomDelay=0.0
ADSZoomSensFactor=0.7
ADSMoveFactor=1.0
ADSStartDelay=0.0
ShootSoundCooldown=0.08
HitSoundCooldown=0.08
HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=4.0
RecoilNegatable=false
DecalType=0
DecalSize=20.0
DelayAfterShooting=0.0
BeamTracksCrosshair=false
AlsoShoot=
ADSShoot=
StunDuration=0.0
CircularSpread=true
SpreadStationaryVelocity=300.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.0
HitscanVisualRadius=6.0
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
ProjectileTrail=None
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=false
AimPunchAmount=0.0
AimPunchResetTime=0.2
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=false
MinimumDecelVelocity=0.0
PSRManualNegation=false
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=0
CancelReloadOnKill=false
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=No Scope
ADSFOVOverride=72.099998
ADSFOVScale=Quake/Source
ADSAllowUserOverrideFOV=true
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.1
Explosive=false
Radius=100.0
DamageAtCenter=0.0
DamageAtEdge=0.0
SelfDamageMultiplier=0.5
ExplodesOnContactWithEnemy=false
DelayAfterEnemyContact=0.0
ExplodesOnContactWithWorld=false
DelayAfterWorldContact=0.0
ExplodesOnNextAttack=false
DelayAfterSpawn=0.0
BlockedByWorld=false
SpreadSSA=0.0,0.1,-1.0,0.0
SpreadSCA=0.0,0.1,-1.0,0.0
SpreadMSA=0.0,0.1,-1.0,0.0
SpreadMCA=0.0,0.1,-1.0,0.0
SpreadSSH=0.0,0.1,-1.0,0.0
SpreadSCH=0.0,0.1,-1.0,0.0
SpreadMSH=0.0,0.1,-1.0,0.0
SpreadMCH=0.0,0.1,-1.0,0.0
MaxRecoilUp=0.8
MinRecoilUp=0.8
MinRecoilHoriz=-0.6
MaxRecoilHoriz=0.6
FirstShotRecoilMult=1.0
RecoilAutoReset=false
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.35
AAMode=0
AAPreferClosestPlayer=false
AAAlpha=0.05
AAMaxSpeed=1.0
AADeadZone=0.0
AAFOV=30.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=true
AABlocksMouse=false
AAOffTimer=0.0
AABackOnTimer=0.0
TriggerBotEnabled=false
TriggerBotDelay=0.0
TriggerBotFOV=1.0
StickyLock=false
HeadLock=false
VerticalOffset=0.0
DisableLockOnKill=false
UsePerShotRecoil=false
PSRLoopStartIndex=0
PSRViewRecoilTracking=0.45
PSRCapUp=9.0
PSRCapRight=4.0
PSRCapLeft=4.0
PSRTimeToPeak=0.175
PSRResetDegreesPerSec=40.0
UsePerBulletSpread=false
PBS0=0.0,0.0
[Weapon Profile]
Name=Bow & Arrow
Type=Projectile
ShotsPerClick=1
DamagePerShot=125.0
KnockbackFactor=0.1
TimeBetweenShots=0.5
Pierces=false
Category=Charge
BurstShotCount=1
TimeBetweenBursts=0.5
ChargeStartDamage=29.0
ChargeStartVelocity=X=3500.000 Y=0.000 Z=150.000
ChargeTimeToAutoRelease=99.0
ChargeTimeToCap=0.5
ChargeMoveSpeedModifier=0.7
MuzzleVelocityMin=X=15000.000 Y=0.000 Z=150.000
MuzzleVelocityMax=X=15000.000 Y=0.000 Z=150.000
InheritOwnerVelocity=0.0
OriginOffset=X=0.000 Y=0.000 Z=0.000
MaxTravelTime=5.0
MaxHitscanRange=100000.0
GravityScale=1.0
HeadshotCapable=true
HeadshotMultiplier=2.0
MagazineMax=0
AmmoPerShot=3
ReloadTimeFromEmpty=0.5
ReloadTimeFromPartial=0.5
DamageFalloffStartDistance=100000.0
DamageFalloffStopDistance=100000.0
DamageAtMaxRange=80.0
DelayBeforeShot=0.0
HitscanVisualEffect=Tracer
ProjectileGraphic=Arrow
VisualLifetime=0.5
WallParticleEffect=None
HitParticleEffect=Blood
BounceOffWorld=false
BounceFactor=0.0
BounceCount=0
HomingProjectileAcceleration=0.0
ProjectileEnemyHitRadius=1.0
CanAimDownSight=false
ADSZoomDelay=0.0
ADSZoomSensFactor=0.7
ADSMoveFactor=1.0
ADSStartDelay=0.0
ShootSoundCooldown=0.08
HitSoundCooldown=0.08
HitscanVisualOffset=X=0.000 Y=0.000 Z=-80.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=0.1
RecoilNegatable=true
DecalType=0
DecalSize=30.0
DelayAfterShooting=0.0
BeamTracksCrosshair=false
AlsoShoot=
ADSShoot=
StunDuration=0.0
CircularSpread=true
SpreadStationaryVelocity=0.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.0
HitscanVisualRadius=6.0
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
ProjectileTrail=None
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=true
AimPunchAmount=0.0
AimPunchResetTime=0.05
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=true
MinimumDecelVelocity=0.0
PSRManualNegation=false
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=0
CancelReloadOnKill=false
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=No Scope
ADSFOVOverride=72.099998
ADSFOVScale=Quake/Source
ADSAllowUserOverrideFOV=true
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.0
Explosive=false
Radius=500.0
DamageAtCenter=100.0
DamageAtEdge=0.1
SelfDamageMultiplier=0.5
ExplodesOnContactWithEnemy=false
DelayAfterEnemyContact=0.0
ExplodesOnContactWithWorld=false
DelayAfterWorldContact=0.0
ExplodesOnNextAttack=false
DelayAfterSpawn=0.0
BlockedByWorld=false
SpreadSSA=1.0,1.0,-1.0,0.0
SpreadSCA=1.0,1.0,-1.0,0.0
SpreadMSA=1.0,1.0,-1.0,0.0
SpreadMCA=1.0,1.0,-1.0,0.0
SpreadSSH=1.0,1.0,-1.0,0.0
SpreadSCH=1.0,1.0,-1.0,0.0
SpreadMSH=1.0,1.0,-1.0,0.0
SpreadMCH=1.0,1.0,-1.0,0.0
MaxRecoilUp=0.0
MinRecoilUp=0.0
MinRecoilHoriz=0.0
MaxRecoilHoriz=0.0
FirstShotRecoilMult=1.0
RecoilAutoReset=true
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.35
AAMode=2
AAPreferClosestPlayer=false
AAAlpha=1.0
AAMaxSpeed=1.0
AADeadZone=0.0
AAFOV=180.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=true
AABlocksMouse=false
AAOffTimer=0.0
AABackOnTimer=0.0
TriggerBotEnabled=true
TriggerBotDelay=0.0
TriggerBotFOV=1.0
StickyLock=false
HeadLock=true
VerticalOffset=0.0
DisableLockOnKill=false
UsePerShotRecoil=false
PSRLoopStartIndex=0
PSRViewRecoilTracking=0.45
PSRCapUp=9.0
PSRCapRight=4.0
PSRCapLeft=4.0
PSRTimeToPeak=0.095
PSRResetDegreesPerSec=40.0
UsePerBulletSpread=false
PBS0=0.0,0.0
[Map Data]
|
25543e8ec7ab575aa053ed3ee5ec150b139f42f3
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2777/CH4/EX4.16/Ex4_16.sce
|
04e11d4fc3943a7a05690af36c01ff3d9afd3003
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,278
|
sce
|
Ex4_16.sce
|
// ELECTRICAL MACHINES
// R.K.Srivastava
// First Impression 2011
// CENGAGE LEARNING INDIA PVT. LTD
// CHAPTER : 4 : DIRECT CURRENT MACHINES
// EXAMPLE : 4.16
clear ; clc ; close ; // Clear the work space and console
// GIVEN DATA
Out_hp = 20; // Output of the Motor in HP
eta = 90/100; // Full load efficiency of the Motor
V = 220; // Motor voltage in Volts
ns = 5; // Number of the step of Starter
Rf = 220; // Field Resistance in Ohms
cr = 1.8; // Lowest Current rating is 1.8 times of the Full load current
Cu = 5/100; // Total Copper loss is 5% of the Input
// CALCULATIONS
Out = 20 * 746; .. // Output of the Motor in Watt
Inp = (Out/eta); // Input of the Motor in KiloWatt
I = Inp/Rf; // Full-Load Current in Amphere
Cu_l = Inp*Cu; // Total Copper loss in Watts
olf = (V ^ 2)/Rf; // Ohmic loss in the Fiels in the Watts
Acu = Cu_l - olf; // Armature Copper loss in Watts
Ra = Acu/(I * I); // Armature Resistance in Ohms
I2 = I * cr; // Lower Current in Amphere
n = ns - 1; // Number of the Resistance
gama = ( (I2 * Ra)/Rf ) ^ (1/(n + 1)); // Current Ratio
I1 = I2/gama; // Initial Current in amphere
R1 = V/I1; // Initial Resistance in Ohms
R2 = gama * R1; // Initial Resistance in Ohms
r1 = R1 - R2; // Graded Resistance in Ohms
R3 = gama * R2; // Initial Resistance in Ohms
r2 = gama * r1; // Graded Resistance in Ohms
r3 = gama ^ 2 * r1; // Graded Resistance in Ohms
r4 = gama ^ 3 * r1; // Graded Resistance in Ohms
// DISPLAY RESULTS
disp("EXAMPLE : 4.16 : SOLUTION :-") ;
printf("\n (a) Graded Resistances are %.4f Ohms, %.4f Ohms, %.4f Ohms and %.4f Ohms \n",r1,r2,r3,r4);
|
394bf77573c9e56a5d9ff57050d621bbc2d92131
|
d2b4190265ddc2ddd6f63bacfdafae9504390fd0
|
/SquareWaveFunc.sce
|
75bb5ada4def95db2648ed537a1ed04380ec97ea
|
[] |
no_license
|
santushtisharma10/AppliedMathematics_with_Scilab
|
8dd80f3a36298d844a42a37619e309b53022204d
|
28b4de4244768c0bb0eba1daea86d69021d89400
|
refs/heads/main
| 2023-05-29T04:40:42.507269
| 2021-06-04T13:25:58
| 2021-06-04T13:25:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 163
|
sce
|
SquareWaveFunc.sce
|
clc;
x = [1 2 3 4 5 6 7 8 9 10 ];
y = [5 0 5 0 5 0 5 0 5 0 ];
plot2d2(x,y)
xlabel('VALUES OF x');
ylabel('VALUES OF y');
title('SQUARE WAVE FUNCTION');
|
3b5a0b9d3ffd620d225114ba6174bf8b564ec74c
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3682/CH7/EX7.4/Ex7_4.sce
|
9aaa28843d8c95a3b69dcf479368f24d411cf0d9
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,548
|
sce
|
Ex7_4.sce
|
// Exa 7.4
clc;
clear;
// Given data
n=2; // Second order Butterworth filter
fH=1000; // Lower cut off frequency(Hz)
// Solution
printf('Let C = 0.1 μF. \n');
C=0.1*10^-6; // Farads
// Since fH = 1/(2 * %pi * R*C);
// Therefore;
R = 1/(2*%pi*fH*C);
printf(' The calculated value of R = %.1f kΩ. \n',R/1000);
printf(' From Table 7.1, for n=2, the damping factor alpha = 1.414.');
alpha=1.414;
A0 = 3-alpha;
printf('\n Then the pass band gain A0 = %.3f. \n',A0);
printf('\n');
printf(' The transfer function of the normalized second order low-pass Butterworth filter is 1.586 ');
printf('\n ----------------');
printf('\n Sn^2+1.414*Sn+1');
// Since Af= 1 + Rf/Ri = 1 + 0.586;
printf('\n Since A0= 1.586 so Let Rf = 5.86 kΩ and Ri = 10 kΩ to make A0 = 1.586.' );
printf(' \n The circiuit realized is as shown in Fig. 7.4 with component value as mentioned above.');
printf('\n By considering minimum DC offset condition, the modified value of R and C comes out to be R = 1.85 kΩ and C=0.086 μF.');
printf('\n\n\n Frequency, f in Hz Gain magnitude in dB 20 log(vo/vi)\n');
// Frequency Response
x=[0.1*fH,0.2*fH,0.5*fH,1*fH,5*fH,10*fH]
for i = 1:1:6
response(i) = 20*log10(A0/(sqrt(1+(x(i)/fH)^4)));
printf(' %d %.2f \n',x(i),response(i));
end
|
de67ef3476e744ee28e7174b34f87458fd908562
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1088/CH2/EX2.1/Example1.sce
|
3e576a5d35f818dbc2e1892cee454fa8d4d3e492
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 439
|
sce
|
Example1.sce
|
clear()
clc
disp('Example 1 : Display the current working shell ')
disp('***************************************************************************')
disp('Answer : ')
printf('The current Working Shell is ')
if (getos()=='Linux') then
unix_w("echo $SHELL")
else
printf("%s",getshell())
end
disp('***************************************************************************')
|
c12c49a819e8c58b19373bc1008aae98c265b428
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/564/DEPENDENCIES/3_2data.sci
|
0e2bb9a3d8811b268391215e91d8c8886efb1f59
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 123
|
sci
|
3_2data.sci
|
a=4;//major axis,in mm
b=3;//minor axis of bar,in mm
T=100000;//applied torque,in N.mm
G=76923;//shear modulus,in N/mm^2
|
3f2111595701721f960073a5376742e2a85bd415
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3411/CH5/EX5.4/Ex5_4.sce
|
ef1229c92617be4df4650204f321155bdf7b842d
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 470
|
sce
|
Ex5_4.sce
|
//Example 5_4
clc();
clear;
//To calculate the inter planar distance
a=0.82 //units in nm
b=0.94 //units in nm
c=0.75 //units in nm
h=1
k=2
l=3
d=1/sqrt((((h/a)^2)+((k/b)^2)+((l/c)^2))) //units in nm
printf("The Distance between (1,2,3) planes and (2,4,6) planes is d123=%.2fnm and d246=%.2fnm",d,d/2)
//In textbook the answer is printed wrong as d123=0.11nm and d246=0.055nm but the correct answers are d123=0.21nm and d246=0.11nm
|
a464f4793b4bf1ad5742916aa3826cc1e1688bdd
|
a62e0da056102916ac0fe63d8475e3c4114f86b1
|
/set14/s_Materials_Science_R._S._Khurmi_And_R._S._Sedha_2153.zip/Materials_Science_R._S._Khurmi_And_R._S._Sedha_2153/CH3/EX3.16/ex_3_16.sce
|
092ae57ace9e43ea86bb913081cb1ff1123f6de3
|
[] |
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
| 183
|
sce
|
ex_3_16.sce
|
errcatch(-1,"stop");mode(2);//Example 3.16 : volume
;
;
format('v',7)
//given data :
a=0.2665; // in mm
c=0.4947;// in mm
V=(3*sqrt(3)*a^2*c)/2;
disp(V,"volume,V(mm^3) = ")
exit();
|
1d82650f03135832adc04bb64708e6a0dc4f7acf
|
717ddeb7e700373742c617a95e25a2376565112c
|
/2474/CH3/EX3.2/Ch03Ex02.sce
|
b931523ccd5b989e5070df449cc6f6d7c50b6de6
|
[] |
no_license
|
appucrossroads/Scilab-TBC-Uploads
|
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
|
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
|
refs/heads/master
| 2021-01-22T04:15:15.512674
| 2017-09-19T11:51:56
| 2017-09-19T11:51:56
| 92,444,732
| 0
| 0
| null | 2017-05-25T21:09:20
| 2017-05-25T21:09:19
| null |
UTF-8
|
Scilab
| false
| false
| 324
|
sce
|
Ch03Ex02.sce
|
// Scilab code Ex3.2: Pg.125 (2008)
clc; clear;
T = 5800; // Temperature of sun, K
b = 2.898e-003; // Wein's constant, m-K
lamda_m = b/T; // Peak wavelength of solar spectrum, m
printf("\nPeak wavelength of solar spectrum = %5.1f nm", lamda_m/1e-009);
// Result
// Peak wavelength of solar spectrum = 499.7 nm
|
9164b55c6bad81fdcd06cfe9abd3987ede936052
|
676ffceabdfe022b6381807def2ea401302430ac
|
/solvers/IncNavierStokesSolver/Tests/ChanFlow_3DH1D_Parallel_mode1.tst
|
0d0af7bcb5a6ae41ef8a7d839f80c7fb42db05b4
|
[
"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
| 1,074
|
tst
|
ChanFlow_3DH1D_Parallel_mode1.tst
|
<?xml version="1.0" encoding="utf-8"?>
<test>
<description>3D homogeneous 1D Channel Flow, SEM parallelisation (2 proc)</description>
<executable>IncNavierStokesSolver</executable>
<parameters>ChanFlow_3DH1D_Parallel_mode1.xml</parameters>
<processes>2</processes>
<files>
<file description="Session File">ChanFlow_3DH1D_Parallel_mode1.xml</file>
</files>
<metrics>
<metric type="L2" id="1">
<value variable="u" tolerance="1e-6">3.44241e-14</value>
<value variable="v" tolerance="1e-6">2.09484e-13</value>
<value variable="w" tolerance="1e-6">0</value>
<value variable="p" tolerance="1e-6">4.8457e-11</value>
</metric>
<metric type="Linf" id="2">
<value variable="u" tolerance="1e-6">2.72504e-13</value>
<value variable="v" tolerance="1e-6">3.29175e-13</value>
<value variable="w" tolerance="1e-6">1.22076e-18</value>
<value variable="p" tolerance="1e-6">1.33911e-10</value>
</metric>
</metrics>
</test>
|
859eae77413c0a7528d66e3e2f966c1a681a3fd8
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1184/CH2/EX2.8/Ex2_8.sce
|
4be56a1d435bfe54d32d3d02817e21f3f2cc0a3e
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 147
|
sce
|
Ex2_8.sce
|
//Example 2-8, Page No- 38
clear
clc
gain_dB = 40
pout_W= 100
pin_W = pout_W/10^4
printf('The input power is %.2f watt',pin_W);
|
c518b8f34e6280ff10ddf54856dc81227398b2c9
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1358/CH2/EX2.8/Example28.sce
|
5e0e23e5a5ef4678d3de3a2d4c86ede87efcab91
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 696
|
sce
|
Example28.sce
|
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Turbomachinery Design and Theory,Rama S. R. Gorla and Aijaz A. Khan, Chapter 2, Example 8")
//D2 is siameter in meter, N is rpm, Cr2 in m/s and Cw2=U2 in m/s , V velocity of flow in m/s
D2 = 0.6;
N = 550;
Cr2 = 3.5;
U2 = %pi*D2*N/60
Cw2 = U2
g = 9.81;
V=2.5;
disp("Head in meters from where water is being lifted is :")
H = Cw2 * U2/ g - (V^2)/(2*g)
//b2 is width
//Qis discharge Q=piD2b2Cr2 in m3/s
b2 = 0.082;
disp("Discharge Q is in m3/s:")
Q = %pi * D2 * b2 * Cr2
disp("Power P in Kilowatts is given as :")
rho = 1000; //density of water 1000kg/m3
P = rho*g*Q*H/1000
|
d75394cb1e656cb463c56c91ef329d4fbae5488f
|
1bb72df9a084fe4f8c0ec39f778282eb52750801
|
/test/PO2.prev.tst
|
79dc5d3598f0374957285e8afc4d83ebfdf75899
|
[
"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
| 1,113
|
tst
|
PO2.prev.tst
|
a^4*m11^2 - 2*a^2*b^2*m11^2 + b^4*m11^2 + 4*a^3*b*m11*m12 - 4*a*b^3*m11*m12 + 4*a^2*b^2*m12^2 + 2*a^4*m11*m13 - 2*b^4*m11*m13 + 4*a^3*b*m12*m13 + 4*a*b^3*m12*m13 + a^4*m13^2 + 2*a^2*b^2*m13^2 + b^4*m13^2 + a^4*m21^2 - 2*a^2*b^2*m21^2 + b^4*m21^2 + 4*a^3*b*m21*m22 - 4*a*b^3*m21*m22 + 4*a^2*b^2*m22^2 + 2*a^4*m21*m23 - 2*b^4*m21*m23 + 4*a^3*b*m22*m23 + 4*a*b^3*m22*m23 + a^4*m23^2 + 2*a^2*b^2*m23^2 + b^4*m23^2 - a^4*m31^2 + 2*a^2*b^2*m31^2 - b^4*m31^2 - 4*a^3*b*m31*m32 + 4*a*b^3*m31*m32 - 4*a^2*b^2*m32^2 - 2*a^4*m31*m33 + 2*b^4*m31*m33 - 4*a^3*b*m32*m33 - 4*a*b^3*m32*m33 - a^4*m33^2 - 2*a^2*b^2*m33^2 - b^4*m33^2
getVariablePowers(a,b)=a^4 + a^3*b + a^2*b^2 + a*b^3 + b^4
groupBy(a,b)=
+ a^4*(m11^2 + 2*m11*m13 + m13^2 + m21^2 + 2*m21*m23 + m23^2 - m31^2 - 2*m31*m33 - m33^2)
+ 4*a^3*b*(m11*m12 + m12*m13 + m21*m22 + m22*m23 - m31*m32 - m32*m33)
+ 2*a^2*b^2*( - m11^2 + 2*m12^2 + m13^2 - m21^2 + 2*m22^2 + m23^2 + m31^2 - 2*m32^2 - m33^2)
+ 4*a*b^3*( - m11*m12 + m12*m13 - m21*m22 + m22*m23 + m31*m32 - m32*m33)
+ b^4*(m11^2 - 2*m11*m13 + m13^2 + m21^2 - 2*m21*m23 + m23^2 - m31^2 + 2*m31*m33 - m33^2)
|
1bf406adc760fd400cfadf0fb8b7a54b2713ca18
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2093/CH3/EX3.8/exa_3_8.sce
|
c9bf1dd35abe1b0145df0fa6d2e771f418823403
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 279
|
sce
|
exa_3_8.sce
|
// Exa 3.8
clc;
clear;
close;
// Given data
V_BE= 0.7;// in V
V_CE= 3;// in V
I_C= 1;// in mA
I_C=I_C*10^-3;// in A
bita= 100;
I_B= I_C/bita;// in A
// V_CE= V_BE+V_CB and V_CB= I_B*R_B
R_B= (V_CE-V_BE)/I_B;// in Ω
disp(R_B*10^-3,"The value of R_B in kΩ is : ")
|
015ea3a25185099d3bf576d844d6ffa9da219c5b
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3446/CH2/EX2.10/Ex2_10.sce
|
cbbd7800fe7729cf2b1df38d514f02896119f37d
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,238
|
sce
|
Ex2_10.sce
|
//Exa_2.10
// TO find ABS/BH(average busy season per busy hour) calling rates, design cell capacity for the switch and design Erlangs.
clc;
clear all;
Rlines=15000;//Residential lines
Blines=80000;//Business lines
PWElines=5000;//PBX, WATS, and Foreign Exchange (FX) lines
CR_R=2;//Call rates for Rlines
CR_B=3;// call rates for Blines
CR_PWE=10;//call rates for PWElines
HT_R=140;//average holding time for Rlines(sec)
HT_B=160;//average holding time for Blines(sec)
HT_PWE=200;//average holding time for PWE lines(sec)
Slines=100000;// no of lines carried by switch
HD_ABS=1.5;// HD/ABS for the switch
//solution
percentR_lines=Rlines/Slines;
percentB_lines=Blines/Slines;
percentPWE_lines=PWElines/Slines;
CCSR=CR_R*HT_R/100;
CCSB=CR_B*HT_B/100;
CCSPWE=CR_PWE*HT_PWE/100;
CR=CR_R*percentR_lines+CR_B*percentB_lines+CR_PWE*percentPWE_lines;
printf('The call rate is %.1f calls per line \n ',CR);
CCS=CCSR*percentR_lines+CCSB*percentB_lines+CCSPWE*percentPWE_lines;
AvgHTperline=CCS*100/CR;
ABS_BH_calls=CR*Slines;
ABS_BH_usage=CCS/36*Slines;
printf('Design cell capacity based on HD is %d calls \n',HD_ABS*ABS_BH_calls);
printf(' DESIGN Erlangs based on HD is %d \n',round(HD_ABS*ABS_BH_usage));
|
d05bbb2f6c785c4a62aebe50d96f75a8ae838350
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3862/CH2/EX2.8/Ex2_8.sce
|
6f0d373be249616fb13a66a0b9fb3e6a42891144
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 640
|
sce
|
Ex2_8.sce
|
clear
//
//variable declaration
P1=20.0
P2=30.0
P3=20.0
theta3=60.0*%pi/180.0
//Taking horizontal direction towards left as x axis and the vertical downward direction as y axis.
////sum of vertical Fy & sum of horizontal forces Fx is zero
//Assume direction of Fx is right
//Assume direction of Fy is up
Fx=20.0*cos(theta3)
Fy=P1+P2+P3*sin(theta3)
R=sqrt((Fx**2)+(Fy**2))
printf("\n R= %0.4f KN",R)
alpha=atan(Fy/Fx)*180/%pi
printf("\n alpha= %0.2f °",alpha)
//moment at A
MA=P1*1.5+P2*3.0+P3*sin(theta3)*6.0
//The distance of the resultant from point O is given by:
d=MA/R
x=d/sin(alpha*%pi/180)
printf("\n x= %0.3f m",x)
|
cc1db132d60c62c0c94f34575c8f3c9c59422900
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/296/CH4/EX4.5/eg4_5.sce
|
6fcf323559e1535b1f07ccf475e33f74b3358a88
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 512
|
sce
|
eg4_5.sce
|
A = 0.5;
Na = 10^17;
p0 = Na;
ni = 1.5*10^10;
dp = 5*10^16;
x = 10^-5;
up = 500;
Tp = 10^-10;
kT = 0.0259;
q0 = 1;
q = 1.6*10^-19;
Dp = kT*up/q0;
Lp = sqrt(Dp*Tp);
p = p0 + dp*exp(-x/Lp);
E = kT*log(p/ni);
E0 = 1.1/2 + E;
Ip = q*A*Dp*dp*exp(-x/Lp)/Lp;
Qp = q*A*dp*Lp;
Qp0 = Qp*10^6;
disp(E0,"steady state separation between Fp and Ec (in eV)=")
disp(Ip,"hole current (in ampere)=")
disp(Qp,"excess stored hole charge (in coulomb)=")
disp(Qp0,"excess stored hole charge (in micro-coulomb)=")
|
3d8b48a3155c5ce473034f4bfc1f73bae14d44e2
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2333/CH6/EX6.12/12.sce
|
f7221fe8acadc96d2cd9168a66555e5cc32bf007
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 358
|
sce
|
12.sce
|
clc
// Given that
P_in = 100 // power of input signal in mW
P_out = 50 // power of output signal in mW
// Sample Problem 12 on page no. 280
printf("\n # PROBLEM 12 # \n")
alpha = (10 * log10(P_in / P_out))//calculation for absorption coefficient
printf("\n Standard formula used \n alpha=10/L*log(Pi/Po).\n")
printf("\n Attenuation loss is %f dB. ",alpha)
|
0f0f9293937b46f7aa75c64cfb92a9b48e253458
|
59e7c95649eb8894e1d6f0bcac3ca7ea2b023217
|
/Ordem da Equação.sce
|
0c8fa7660c39d4fafc74eff7db0ea48166befb87
|
[] |
no_license
|
nascimento-luciano/Scilab-Matlab
|
cb5ee9d97df3ed0f4311573df0fd37a88b3394d8
|
1cba42b68cc7954ff4c7dd6b13c7d8e6bd3d039e
|
refs/heads/main
| 2023-03-19T21:06:18.691193
| 2021-03-18T00:57:29
| 2021-03-18T00:57:29
| 348,877,701
| 1
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 321
|
sce
|
Ordem da Equação.sce
|
clc
clear
close
deff('y2dot=f(ydot,y)','y2dot=-4*y-0.8*ydot');
y(1)=5e-3;
ydot(1)=0;
y2dot(1)=f(ydot(1),y(1));
dt=.05;
t=0:dt:10;
for i=2:length(t)
ydot(i)=ydot(i-1)+dt*y2dot(i-1);
y(i)=y(i-1)+dt*ydot(i-1);
y2dot(i)=f(ydot(i),y(i));
end
Y=[y ydot y2dot]; // [azul,verde,vermelho]
X=[t' t' t'];
plot(X,Y)
|
c20d19a8c83cc59449aa663d28c56ca83e4dc531
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2735/CH16/EX16.14/Ex16_14.sce
|
be3dced6397be14d68b93fbbff32a4f949d3e418
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 220
|
sce
|
Ex16_14.sce
|
clc
clear
//Initialization of variables
dH=-2369859 //Btu
r=1.986 //Gas constant
dn=5.5 //Change in number of moles
T=536.7 //R
//calculations
dQ=dH+dn*r*T
//results
printf("Higher heating value = %d Btu",dQ)
|
589ea8771cbc23099cf0fea5724fe2f6eea8ad64
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/257/CH6/EX6.21/example6_21.sce
|
4a21ae9885659dbac8904d40fdb06a2c2bff0bd5
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 335
|
sce
|
example6_21.sce
|
syms R1 R2 R3 C1 C2 C3 L1 L2 s;
T1=1/(R3*(R1+s*L1)*(R2+s*L2)*C1*C2*C3*s^3)
L1=-1/(s*(R1+s*L1)*C1);
L2=-1/(s*(R2+s*L2)*C1);
L3=1/(-(s*L2+R2)*s*C2);
L4=1/(-s*R3*C2)
L5=-1/(s*R3*C3)
delta=1-(L1+L2+L3+L4+L5)+(L1*L3 + L1*L4 + L1*L5 + L2*L4 + L2*L5 + L3*L5)-(L1*L3*L5)
del1=1;
TF=(T1*del1)/delta ;
disp(TF,"Vo/VI = ")
|
27422cc95e0f36bd7b38109d21572a33608d36ac
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/581/CH5/EX5.11/Example5_11.sce
|
08b45cba542b21e3ebe94acaf206a5fefd0d9723
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 392
|
sce
|
Example5_11.sce
|
clear;
clc;
printf("\t Example 5.11\n");
Q=14; //steady heat transfer,W
D=0.06; //diameter of heat source,m
l=0.3;; // length of source below surface ,m
T=308; //temperature of heat source,K
T1=294; //temperature of surface,K
k=(Q/(T-T1))*(1-(D/2)/(D*10))/(4*3.14*D/2)+0.025; // thermal conductivity of soil
printf("\t thermal conductivity is : %.3f W/(m*K)\n",k);
//end
|
4126d812cb234332b7a903f38eb762f9ff556279
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2084/CH13/EX13.11w/13_11w.sce
|
2418e15d26054c8c02eb3bc80b42f270466149cb
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 885
|
sce
|
13_11w.sce
|
//developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 13.11w
//calculation of the velocity of the water coming out of the opening
//given data
AA=.5//area(in m^2) of the tank
AB=1*10^-4//area(in m^2) of the cross section at the bottom
m=20//mass(in kg) of the load
h=50*10^-2//height(in m)of the water level
g=10//gravitational acceleration(in m/s^2) of the earth
rho=1000//density of the water(in kg/m^3)
//calculation
//from the equation............P = P0 + (h*rho*g)//pressure at the bottom
r=m*g/AA//in above equation it is the value of (h*rho*g)
//on solving,we get............PA = P0 + (400 N/m^2)
//from Bernoulli equtation.....P1 + (rho*g*h1) + (rho*v1^2/2) = P2 + (rho*g*h2) + (rho*v2^2/2)
//we get
vB=sqrt((2*(r+(rho*g*h)))/rho)
printf('the velocity of the water coming out of the opening is %3.1f m/s',vB)
|
8d66ee230b637fbb8bf781b9ca467c910327c6a2
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/635/CH2/EX2.7/Ch02Ex7.sci
|
5fe8c5b684eeeabace77362db0088bd92351b404
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,011
|
sci
|
Ch02Ex7.sci
|
// Scilab Code Ex2.7 Bond formation Energy for K+ and Cl- ion pair: Page-70 (2010)
eps_0 = 8.854D-12; // Absolute electrical permittivity of free space, coulomb sqaure per newton per metre square
e = 1.6D-19; // Electronic charge, C
IP_K = 4.1; // Ionization potential of potassium, electron-volt
EA_Cl = 3.6; // Electron affinity of chlorine, electron-volt
delta_E = IP_K - EA_Cl; // Net energy required to produce the ion-pair, electron-volt
Ec = delta_E; // Coulomb energy equals net energy required to produce the ion pair, in electron-volt
// Since Ec = -e/(4*%pi*eps_0*R), solving for R
R = -e/(4*%pi*eps_0*Ec); // Separation between K+ and Cl- ion pair, m
disp(Ec,"The bond formation energy for K+ and Cl- ion pair, in eV, is : ");
disp(R/1D-10, "The separation between K+ and Cl- ion pair, in angstrom, is : ");
//Result
// The bond formation energy for K+ and Cl- ion pair, in eV, is :
// 0.5
// The separation between K+ and Cl- ion pair, in angstrom, is :
// - 28.760776
|
2b8c8a10249ffcd9a59fae9807d3cf38e905929a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2201/CH3/EX3.12/ex3_12.sce
|
a244ab5195956e605602f06877000e4f4dc2ae0a
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 178
|
sce
|
ex3_12.sce
|
// Exa 3.12
clc;
clear;
close;
// Given data
N_A = 2*10^16;// in /cm^3
N_D = 10^16;// in /cm^3
C = N_A-N_D;// in /cm^3
disp(C,"Carrier concentration in holes/cm^3 is");
|
bb362ed6f0b318097a9e353f5d64ec1495da8917
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/50/CH3/EX3.12/ex_3_12.sce
|
4599b1c2375c216afb29ad57d154dca41aa4832d
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 686
|
sce
|
ex_3_12.sce
|
//example no. 3.12
//solve system by decomposition method
A=[1 1 -1;2 2 5;3 2 -3]
b=[2;-3;6]
// hence we can observe that LU decomposition method fails to solve this system since the pivot L(2,2)=0;
//we note that the coefficient matrix is not a positive definite matrix and hence its LU decomposition is not guaranteed,
//if we interchange the rows of A as shown below the LU decomposition would work,
A=[3 2 -3;2 2 5;1 1 -1]
b=[6;-3;2]
[U,L]=LandU(A,3) // call LandU function to evaluate U,L of A,
n=3;
Z=fore(L,b);
X=back(U,Z)
|
460d89028eea2873da82eb2e050f788f8f3795db
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3760/CH4/EX4.32/Ex4_32.sce
|
8f3532ec8b320ad0d4ccb9c9279433709cd0086d
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 837
|
sce
|
Ex4_32.sce
|
clc;
Vt=230;//Supply voltage
P=4;//No of poles
A=2;//No of parallel paths for armature conductors
Z=500;//No of armature conductors
Ra=0.2;//armature circuit resistance in ohm
Rs=0.1;//field resistance in ohm
Il=40;//line current
N=1000;//rated speed in rpm
Ia1=40;//armature current for dc series motor at 40 A line current
Ia2=20;//armature current for dc series motor at 20 A line current
//For 40A line current
Ea1=Vt-Ia1*(Ra+Rs);//counter emf
//For 20A line current
Ea2=Vt-Ia2*(Ra+Rs);//counter emf
//Let, phi_1=flux at 40 A, phi_2=flux at 20 A line current
//phi_2=0.6*(phi_1)
//(Ea1/Ea2)=(n1*phi_1)/(n2*phi_2)
//(218/224)=(1000*(phi_1))/(n2*(0.6*(phi_1))
n2=(1000*224)/(218*0.6);//speed of motor at line current of 20 A at 230 V
printf('Speed of motor at line current of 20 A at 230 V is %f rpm.',round(n2));
|
173052b7b03d22c6c8ccf41bda825d3474dd4dd5
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1364/CH9/EX9.1.1/9_1_1.sce
|
2b808164db077e35f93495e53b3f6a5fbefbaaa2
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 302
|
sce
|
9_1_1.sce
|
clc
//initialisation of variables
d= 1.6 //lb/ft^3
vk= 6.2*10^-6 //ft^2/sec
R= 1.8 //lbf
v= 100 //ft/sec
d1= 64 //lb/ft^3
vk1= 1.7*10^-5 //ft62/sec
l= 10 //ft
//CALCULATIONS
u= v*vk1/(vk*l)
u1= v*vk1/(vk*l*1.98)
r= d1*l^2*(u/100)^2/d
F= r*R
//RESULTS
printf (' resistance= %.f lbf ',F)
|
828fa65879974029a215e7d12d51416fae96c9ca
|
b80969c9d72c732b0153d0de2b8fd28dc10d8a16
|
/Biologie/Site/sauvegarde/28.07.2016/www/Documents/simulation/equationDifferentielle/chapitre3/ex16.sci
|
9a30a18a29ba2c7dc4eeeb26f4c44680cbd1536d
|
[] |
no_license
|
adamdepossylux/stem_cells
|
6a2596a0734e3604b570cfdaa1e6cb798d13d7b7
|
e1ffdf24a223fea3a3606a0bd262067edc81f5b9
|
refs/heads/master
| 2020-04-01T17:26:21.772875
| 2017-05-10T15:15:09
| 2017-05-10T15:15:09
| 61,795,551
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 344
|
sci
|
ex16.sci
|
clf;
c=3.986e+5;
function[y]=f16(x,u)
y(1)=u(2);
y(2)=-c*u(1)/((u(1)^2+u(3)^2)^(3/2));
y(3)=u(4);
y(4)=-c*u(3)/((u(1)^2+u(3)^2)^(3/2));
endfunction
T=2*24*60*60;
//Q1
teta=linspace(0,2*%pi,1001);
r=6400;
plot2d(r*cos(teta),r*sin(teta),2);
y0=[6400+35786;0;0;3.07];
t=linspace(0,T,5001);
y=ode(y0,0,t,f16);
comet(y(1,:),y(3,:))
|
972523c3b824081519842635c15e7a07727b8d81
|
61da6be21995bc4b23f268b03fc13d0a33d818f3
|
/test/split.tst
|
fe3192f7df6919c592ac81dc884be4869bdd6c10
|
[
"BSD-3-Clause",
"BSD-2-Clause"
] |
permissive
|
warmchang/reposurgeon
|
657fe5f63fdd0db560b46ccff11478c73c69b150
|
43e553d9ff0ad4a9c39f4c94b58856f2e5c99297
|
refs/heads/master
| 2020-12-08T19:41:16.920673
| 2020-01-10T14:58:55
| 2020-01-10T14:58:55
| 233,076,382
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 114
|
tst
|
split.tst
|
## Test the split command
set echo
set interactive
set quiet
read <mergeinfo.svn
:6 split at 2
prefer git
inspect
|
13960ca86d797f3bdd974ed0eab783f27c1521c7
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3363/CH2/EX2.2/Ex2_2.sce
|
a8d0fcdda732d14c342df03cb7599427751033ac
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 165
|
sce
|
Ex2_2.sce
|
//Example 2.2, page 49
clc
h=6.63*10^-34//Joule-sec
vo=5.6*10^14
w=h*vo
printf("\npower is %e per sec",w)
ev=(1/(1.6*10^-19))
wo=w*ev
printf("\nEnergy is %f ev",wo)
|
c8cddf3f374e7f1b4e1dcddd39d6f237a1d9ca7c
|
a62e0da056102916ac0fe63d8475e3c4114f86b1
|
/set5/s_Electrical_Machines_-_1_T._Singh_704.zip/Electrical_Machines_-_1_T._Singh_704/CH2/EX2.37/ex2_37.sce
|
07235aca9174fbf7256395ebbca540036fef048e
|
[] |
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
| 877
|
sce
|
ex2_37.sce
|
errcatch(-1,"stop");mode(2);//Caption:In a dc machine calculate speed at which the induced emf will be 250 Volts and also calculate the increase in main flux of field in percentage for induced emf of 250 Volts and speed 700 rpm
//Exam:2.37
;
;
E_1=220;//Primary emf(in Volts)
N_1=750;//Speed of the machine at 220 Volts
E_2=250;//Secondary emf(in Volts)
N_2=(E_2/E_1)*N_1;//Speed of the machine at which emf will be 250 Volts
disp(N_2,'Speed of the machine at which emf will be 250 Volts=');
N_3=700;//Speed of the machine when main field flux increase
E_3=250;//induced emf when flux increase(in Volts)
F_x=(E_3/E_2)*(N_2/N_3);//Ratio of flux when speed is N_3 and N_2
F=(F_x-1)*100;//Percentage change in flux for induced emf of 250 Volts and speed 700 rpm(in %)
disp(F,'Percentage change in flux when induced emf 250 Volts and speed 700 rpm(in %)=');
exit();
|
760fca5f01aa17d0b70c8dfe7fc580d8500c587f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/431/CH5/EX5.14/EX5_14.sce
|
fa7e73ea51d8c88dd09a15ea2d57b2b2109ac7b7
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
EX5_14.sce
|
//chapter 5
//example 5.14
//page 443
clear;
clc;
disp("example 5.14");
disp("star connected alternator")
printf("\n");
KVA=1500; //rating
ph=3; //3-phase
V_l=6600; //voltage
Ra=0.4 //armature resistance
Xs=6; //reactance
Ia=(KVA*1000)/(sqrt(3)*V_l);
printf("Full-load current= %d A\n",Ia);
V=V_l/sqrt(3);
printf("Voltage per phase=%d V\n",V);
disp("for 0.8 lagging power facor");
pf=0.8; //power factor
phi=acosd(pf);
E=sqrt((V*cosd(phi)+Ia*Ra)^2+(V*sind(phi)+Ia*Xs)^2)
printf("induced emf=%f V\n\n",E);
disp("then at 0.8 leading power factor");
Vt=4743; //solved manually
printf("termial Voltage, line-to-line=%d V\n",(sqrt(3)*Vt))
|
3e57b8009a8f9eeac92d55b300e32d6690ba01e6
|
01ecab2f6eeeff384acae2c4861aa9ad1b3f6861
|
/sci2blif/dsgnmtrcs.sce
|
7ae14d79834df6edeab994095c7eba1a36d7b03e
|
[] |
no_license
|
jhasler/rasp30
|
9a7c2431d56c879a18b50c2d43e487d413ceccb0
|
3612de44eaa10babd7298d2e0a7cddf4a4b761f6
|
refs/heads/master
| 2023-05-25T08:21:31.003675
| 2023-05-11T16:19:59
| 2023-05-11T16:19:59
| 62,917,238
| 3
| 3
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 16,266
|
sce
|
dsgnmtrcs.sce
|
dgn=figure('figure_position',[300,300],'figure_size',[300,300],'auto_resize','on','background',[27],'figure_name','Design Metrics');
delmenu(dgn.figure_id,gettext('File'))
delmenu(dgn.figure_id,gettext('?'))
delmenu(dgn.figure_id,gettext('Tools'))
delmenu(dgn.figure_id,gettext('Edit'))
toolbar(dgn.figure_id,'off')
dgn.color_map = hotcolormap(32)
handles.dummy = 0;
handles.Power=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.26,0.86,0.22,0.14],'Relief','flat','SliderStep',[0.01,0.1],'String','Power','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Power','Callback','');
handles.Power_val=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,1],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.41,0.86,0.28,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Power_val','Callback','');
handles.Power_w=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','bold','ForegroundColor',[0,0,0],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.7,0.86,0.22,0.14],'Relief','flat','SliderStep',[0.01,0.1],'String','W','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Power_w','Callback','');
handles.Area=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','bold','ForegroundColor',[0,0,0],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.15,0.76,0.7,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','FPAA Area Percentage Utilized','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Area','Callback','');
handles.Area_Si=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.03,0.64,0.22,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','Elements','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Area_Si','Callback','');
handles.AreaSi_val=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,1],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.25,0.63,0.1,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','AreaSi_val','Callback','');
handles.AreaSi_per=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[16],'FontUnits','points','FontWeight','bold','ForegroundColor',[0,0,0],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.35,0.64,0.05,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','%','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','AreaSi_per','Callback','');
handles.Area_Tile1=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.43,0.64,0.1,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','CAB','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Area_Tile1','Callback','');
handles.AreaTile_val1=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,1],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.54,0.63,0.1,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','AreaTile_val1','Callback','');
handles.AreaTile_per1=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[16],'FontUnits','points','FontWeight','bold','ForegroundColor',[0,0,0],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.64,0.64,0.15,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','%','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','AreaTile_per1','Callback','');
handles.Area_Tile2=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.71,0.64,0.1,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','CLB','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Area_Tile2','Callback','');
handles.AreaTile_val2=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,1],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.82,0.63,0.1,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','AreaTile_val2','Callback','');
handles.AreaTile_per2=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[16],'FontUnits','points','FontWeight','bold','ForegroundColor',[0,0,0],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.92,0.64,0.4,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','%','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','AreaTile_per2','Callback','');
handles.Enum=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','bold','ForegroundColor',[0,0,0],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.033,0.52,0.93,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','Number of Individual FPAA Components','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Enum','Callback','');
handles.Eota=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.08,0.4,0.11,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','OTA','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Eota','Callback','');
handles.Eota_val=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,1],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.19,0.39,0.1,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Eota_val','Callback','');
handles.Efgota=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.36,0.4,0.18,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','FGOTA','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Efgota','Callback','');
handles.Efgota_val=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,1],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.54,0.39,0.1,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Efgota_val','Callback','');
handles.Ecap=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.71,0.4,0.1,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','CAP','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Ecap','Callback','');
handles.Ecap_val=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,1],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.82,0.39,0.1,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Ecap_val','Callback','');
handles.Enfet=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.06,0.22,0.13,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','NFET','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Enfet','Callback','');
handles.Enfet_val=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,1],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.19,0.22,0.1,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Enfet_val','Callback','');
handles.Epfet=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.36,0.22,0.13,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','PFET','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Epfet','Callback','');
handles.Epfet_val=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,1],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.49,0.22,0.1,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Epfet_val','Callback','');
handles.Etgate=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.65,0.22,0.17,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','TGATE','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Etgate','Callback','');
handles.Etgate_val=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,1],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.82,0.22,0.1,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Etgate_val','Callback','');
handles.Enmirror=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.06,0.05,0.23,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','NMIRROR','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Enmirror','Callback','');
handles.Enmirror_val=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,1],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.29,0.05,0.1,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Enmirror_val','Callback','');
handles.Eble=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.44,0.05,0.13,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','BLE','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Eble','Callback','');
handles.Eble_val=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,1],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.54,0.05,0.1,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Eble_val','Callback','');
handles.Efg=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.68,0.05,0.1,0.12],'Relief','flat','SliderStep',[0.01,0.1],'String','FGs','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Efg','Callback','');
handles.Efg_val=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,1],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[0,0,0],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.78,0.05,0.1,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Efg_val','Callback','');
handles.Efg_per=uicontrol(dgn,'unit','normalized','BackgroundColor',[1,1,0.4],'Enable','on','FontAngle','normal','FontName','mukti narrow','FontSize',[16],'FontUnits','points','FontWeight','bold','ForegroundColor',[0,0,0],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.88,0.05,0.1,0.13],'Relief','flat','SliderStep',[0.01,0.1],'String','%','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','Efg_per','Callback','');
|
b85bcd876a6b52b71056ab297da9259f75287ec7
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2138/CH3/EX3.9/ex_3_9.sce
|
ef44dc42941ccfe2451f4e287ebacdc2bab0df33
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,202
|
sce
|
ex_3_9.sce
|
//Example 3.9 // resistance and current
clc;
clear;
close;
//given data :
V=240; // voltage in volts
r1=2; // resistance in ohm
r2=3; // resistance in ohm
r3=8.8; // resistance in ohm
r4=10; // resistance in ohm
r5=3; // resistance in ohm
R1=(r1*r2)/(r1+r2); // equivalent resistance of parallel branch
R2=R1+r3; // equivalent resistance of section ABC
R3=(R2*r4)/(R2+r4);
R=R3+r5; // total resistance of section AD
I=V/R;
V1=I*r5; // voltage drop across r5
V2=V-V1; // voltage drop across section ABC
I1=V2/r4; // current flowing through r4 resistance
I2=I-I1; // current in r3 resistance
V3=I2*r3; // voltage drop across r3 resistance, section ABC
V4=V2-V3; // voltage drop between section AB
I3=V4/r1; // current flowing through r1 resistance
I4=V4/r2; // current flowing through r2 resistance
disp(I3,"current flowing through r1 (2 ohms) resistance,I3(A) = ")
disp(I4,"current flowing through r2 (3 ohms)resistance,I4(A) = ")
disp(R,"total resistance,R(ohm) = ")
disp(V1,"voltage drop across r5(3 ohms) resistance,V1(V) = ")
disp(V2,"voltage drop across section ABC,V2(V) = ")
disp(V3,"voltage drop across r3 resistance(8.8 ohms),V3(V) = ")
disp(V4," voltage drop between section AB,V4(V) = ")
|
7be10b74d71c726b37c26d64c4e1d44562593182
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/172/CH11/EX11.1/ex1.sce
|
bae723cedbc2ece411c40dc13bc8eebc657730ba
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 849
|
sce
|
ex1.sce
|
//Ques 1
//To determine the efficiency of Rankine cycle
clc
clear
//1-Inlet state of pump
//2-Exit state of pump
P2=2000;//Exit pressure in kPa
P1=10;//Inlet pressure in kPa
v=0.00101;//specific weight of water in m^3/kg
wp=v*(P2-P1);//work done in pipe in kJ/kg
h1=191.8;//Enthalpy in kJ/kg from table
h2=h1+wp;//enthalpy in kJ/kg
//2-Inlet state for boiler
//3-Exit state for boiler
h3=2799.5;//Enthalpy in kJ/kg
//3-Inlet state for turbine
//4-Exit state for turbine
//s3=s4(Entropy remain same)
s4=6.3409;//kJ/kg
sf=0.6493;//Entropy at liquid state in kJ/kg
sfg=7.5009;//Entropy difference for vapor and liquid state in kJ/kg
x4=(s4-sf)/sfg;//x-factor
hfg=2392.8;//Enthalpy difference in kJ/kg for turbine
h4=h1+x4*hfg;//Enthalpy in kJ/kg
nth=((h3-h2)-(h4-h1))/(h3-h2);
printf('Percentage efficiency = %.1f ',nth*100);
|
d6e925e6aff6c6cf4fa1ad962ddcde56dff6d9cd
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2339/CH8/EX8.23.1/Ex8_23.sce
|
69c308dc51d02934ba2f602d7a63a87864f25574
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 290
|
sce
|
Ex8_23.sce
|
clc
clear
V1=5;
P1=1;
P2=5;
n=1.25;
Em=0.9;
IP=[n/(n-1)]*[P1*100*V1/60]*[((P2/P1)^((n-1)/n))-1];
SP=IP/Em;
printf('Shaft Power: %3.1f kW',SP);
printf('\n');
IsoP=P1*100*V1*(log(P2/P1))*(1/60);
Eo=IsoP/SP;
printf('Overall Efficiency: %3.0f Percent',Eo*100);
printf('\n');
|
b7d3de6fcc3aaa707b51438703ebe5c2488f215c
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2126/CH7/EX7.9/9.sce
|
a69b1a4d6227a72772acf9303c8ab9544060d16e
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 699
|
sce
|
9.sce
|
clc
clear
//input data
u=2800 //rocket speed in m/s
Cj=1400 //effective exhaust velocity in m/s
mp=5 //propellent flow rate in kg/s
q=6500 //heat of propellent per kg of propellant mixture in kJ/kg
//calculation
s=u/Cj //effective jet speed ratio
np=(2*s)/(1+s^2) //propulsive efficiency
F=Cj*mp*10^-3 //thrust in kN
Pt=F*10^3*u*10^-6 //Thrust power in MW, F in N
Pe=Pt/np //engine outputin MW
nth=Pe*10^3/(mp*q) //thermal efficiency, Pe in kW
no=np*nth //overall efficiency
//output
printf('(A)propulsive efficiency is %3.1f \n (B)propulsive power is %3.1f MW\n (C)engine outut is %3.1f MW\n (D)thermal efficiency is %3.4f \n (E)overall efficiency is %3.3f',np,Pt,Pe,nth,no)
|
6a0b6b8a00e0310ca29fae2fd51d803a7762506c
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2498/CH2/EX2.22/ex2_22.sce
|
1409854a81b8014a8a924762a67b5913a9e456da
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 469
|
sce
|
ex2_22.sce
|
// Exa 2.22
clc;
clear;
close;
format('v',7)
// Given data
V_L = 25;// in V
I_L = 200;// in mA
I_L = I_L * 10^-3;// in A
R_L = V_L/I_L;// in ohm
Gamma = 3/100;
//Gamma = 1/(6*sqrt(2)*(omega^2)*L*C);
f = 50;// in Hz
omega = 2*%pi*f;// in rad/sec
//LC = 1/( 6*sqrt(2)*(omega^2)*Gamma )
L = R_L/(3*omega);// in H
disp(L,"The value of L in H is");
C = 1/( 6*sqrt(2)*(omega^2)*Gamma*L );// in F
C = C * 10^6;// in µF
disp(C,"The value of C in µF is");
|
ae47c0b6809d3f44bdf25f7ecf76bc9f1fa98a23
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/980/CH7/EX7.7/7_7.sce
|
416d9879a012854a2e8468347d2a2cf19d118145
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 353
|
sce
|
7_7.sce
|
clc;
clear;
format('v',6);
V1=60;
V2=20;
r1=2; //in cm
r2=6; //in cm
r=4; //in cm
disp("where A and B are constants.","V=A*ln(r)+B","The potential V as a function of coordinates is ");
disp("B=85.2","A=-36.4","using the given data,we get");
V=-36.4*log(r)+85.2;
disp(V,"The potential at r=4 cm,V(in volt)=");
|
26472ec381ba76f1a3f33630c1bb72ae6c20f56e
|
9e81e75d5f9cddfd3c9fe8eb932ce2e9de0fdf39
|
/libs/lib_interLinear.sce
|
8f78d95b242d1046b38f873d0a8571f2a4ab20c7
|
[] |
no_license
|
pimentafm/TPEAM313_ajustLinearInjuncionado
|
1c2735218973cac3374cbfc951565675bc538945
|
2fcba16336844ff38f1e6089cd492c2666f68880
|
refs/heads/master
| 2021-08-21T21:03:17.515970
| 2017-11-29T02:46:29
| 2017-11-29T02:46:29
| 112,415,589
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 5,420
|
sce
|
lib_interLinear.sce
|
// Topografia IV
// Allan Turini Speroto 78233
// Fernando Martins Pimenta 80018
// Gabriel Batista Freitas 82718
// Matheus Lopes Vieira 80020
// Funções para o processamento da interseção linear
function [Lb, Xa, sigma_d_xy] = getParams(Xp, Yp)
/*
Retorna os vetores Lb, Xa e sigma_d_xy
Lb: vetor das observações injuncionadas
Xa: vetor dos parâmetros injuncionados
sigma_d_xy: vetor dos desvios padrão das distâncias e coordenadas
*/
for i = 1:num.dists
Lb(i) = dist(i).dist;
sigma_d_xy(i) = dist(i).stdd;
end
for i = 1:num.coords
py = 2*i+num.coords
px = py-1
//inj(i).X inj(i).Y
Lb(px) = inj(i).X;
Lb(py) = inj(i).Y;
sigma_d_xy(px) = inj(i).stdd_x
sigma_d_xy(py) = inj(i).stdd_y
end
Xa = [Xp;Yp;Lb(num.dists+1:length(Lb))];
endfunction
function [CLb, P] = getMVC_P(varianciaPriori, sigma_d_xy)
CLb = diag(sigma_d_xy^2);
P = varianciaPriori*inv(CLb);
endfunction
function F = inters_linear_2D_red(Xa)
/*
Retorna o modelo funcional das distâncias
F: resultado do modelo funcional (Distâncias + Injunções)
*/
for i = 1:num.coords
px = 2*i+1;
py = px+1;
dx(i) = Xa(px) - Xa(1);
dy(i) = Xa(py) - Xa(2);
D(i) = sqrt(dx(i)^2 + dy(i)^2);
end
//Injunções
for i = 1:(num.coords)
px = 2*i+1;
py = px+1;
n = 2*i-1;
I(n) = Xa(px);
I(n+1) = Xa(py);
end
F = [D; I]
endfunction
function [X0] = getX0(Lb, Xa, pos)
/*
Retorna o vetor de parametros X0
*/
dx = Lb(num.dists+3)-Lb(num.dists+1);
dy = Lb(num.dists+4)-Lb(num.dists+2);
D = sqrt(dx^2 + dy^2);
Az = azimute(dx, dy);
aux1 = D^2+(Lb(1)^2)-(Lb(2)^2);
aux2 = 2*D;
S = sqrt(4*(D^2)*Lb(1)^2-aux1^2);
if pos ~= 'esquerda' // ponto à direita de A-> B
X0(1) = Lb(num.coords+1) + aux1*sin(Az)/aux2 + S*cos(Az)/aux2;
X0(2) = Lb(num.coords+2) + aux1*cos(Az)/aux2 - S*sin(Az)/aux2;
else
X0(1) = Lb(num.coords+1) + aux1*sin(Az)/aux2 - S*cos(Az)/aux2;
X0(2) = Lb(num.coords+2) + aux1*cos(Az)/aux2 + S*sin(Az)/aux2;
end
X0 = [X0; Xa(3:length(Xa))];
endfunction
function [varianciaPosteriori] = getVarPost(V, P, GL)
/*
Retorna a variância à posteriori
*/
varianciaPosteriori = (V'*P*V)/GL;
endfunction
function X_quad(var_pri, var_post, nc, gl,fig)
/*
Executa o teste de X-quadrado
var_pri: variância a priori
var_post: variância a posteriori
nc: nível de confiança
gl: graus de liberdade
fig: objeto onde será plotado o resultado do teste (info_bar)
*/
X_calc = var_post*gl/var_pri;
niv_sig = 1 - nc /100;
lim_esq = 0.5*niv_sig;
lim_dir = 1-lim_esq;
[X_inf] = cdfchi("X", gl, lim_esq, lim_dir);
[X_sup] = cdfchi("X", gl, lim_dir, lim_esq);
if (X_calc> X_inf & X_calc < X_sup) then
fig.info_message=msprintf("Hipótese básica, H0: %3.0f = %8.3f, NÃO REJEITADA ao nível de significância de %3.0f%%", var_pri, var_post, 100*niv_sig);
else
fig.info_message=msprintf("Hipótese básica, H0: %3.0f = %8.3f, REJEITADA ao nível de significância de %3.0f%%", var_pri, var_post, 100*niv_sig);
end
endfunction
function geraGrafico(handles, Xa, MVCxy)
/*
Plota o gráfico na interface e as elipses dos erros
Xa: Vetor com as coordenadas ajustadas
MCVxy: Matriz variância covariância das coordenadas ajustadas
*/
handles.grafico.visible = 1;
//Cria vetores com apenas as coordenasdas X e Y
for i=1:(length(Xa)-2)/2
px = 2*i+1;
py = px+1;
vetx(i) = Xa(px);
vety(i) = Xa(py);
end
// Extensão do gráfico
Xmin = -min(abs(vetx))-1000;
Ymin = -min(abs(vety))-1000;
Xmax = max(abs(vetx))+1000;
Ymax = max(abs(vety))+1000;
plot2d(Xp,Yp,-1,"031", " ", [Xmin, Ymin, Xmax, Ymax]);
for i=1:(length(Xa)-2)/2
xstring(vetx(i), vety(i), inj(i).ponto);
end
// Plotagem dos vértices e alinhamestos
xpoly(vetx, vety, "lines", 1);
xy = get("hdl");
xy.mark_background=1;
xy.foreground=1;
xy.thickness=1;
xy.mark_style=6;
xy.mark_size=4;
xy.closed = 'off';
// Plotagem dos vértices em relação ao ponto p
for i=1:(length(Xa)-2)/2
px = 2*i+1;
py = px+1;
vetxp(1) = Xa(1);
vetyp(1) = Xa(2);
vetxp(2) = Xa(px);
vetyp(2) = Xa(py);
xpoly(vetxp, vetyp, "lines", 1);
xyp = get("hdl");
xyp.mark_background=1;
xyp.foreground=1;
xyp.thickness=1;
xyp.line_style=6;
xyp.closed = 'off';
end
//Desenha as elipses absolutas
for i=1:length(Xa)/2
py=2*i;
px= py-1;
MVCponto = MVCxy(px:py, px:py); // Matriz 2x2
[ae(i), be(i), aza(i)] = error_elipse(MVCponto, nc);
draw_elipse(Xa(px), Xa(py), ae(i), be(i), aza(i));
end
// Plotagem do ponto p
xpoly(Xa(1), Xa(2), "marks");
p = get("hdl");
p.mark_background=1;
p.foreground=0;
p.mark_style=9;
p.mark_size=1;
xstring(Xa(1), Xa(2), "p");
endfunction
|
d8bb97892fdc8dfc746cc91c9943415885f42182
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1163/CH3/EX3.15/example_3_15.sce
|
883e5d92b537175788b75aaebf45fe95bdd4ed3a
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,278
|
sce
|
example_3_15.sce
|
clear;
clc;
disp("--------------Example 3.15---------------")
printf("Another example of a nonperiodic composite signal is the signal received by an old-fashioned analog black-and-white TV.\n");
s=30; // screen is scanned 30 times per second
//screen resolution = 525 x 700
vl=525;
hl=700;
pixels=vl*hl; // total number of pixels
pixels_per_second=pixels*s; // pixels scanned per second
cycles_per_second=pixels_per_second/2; // 2 pixels per cycle in the worst-case scenario i.e alternating black and white pixels
bandwidth = cycles_per_second*10^-6;
b7=bandwidth*0.7; // 70% of the bandwidth
final =ceil(b7); // final rounded bandwidth
// display the result
printf("The bandwidth needed in the worst-case scenario i.e alternating black and white pixels where we need to represent \none color by the minimum amplitude and the other color by the maximum amplitude is %5.4f MHz.\n\n",bandwidth);
printf("This worst-case scenario has such a low probability of occurrence that the assumption is that we need only 70 percent\nof this bandwidth, which is %3.2f MHz. Since audio and synchronization signals are also needed, a %d MHz bandwidth\nhas been set aside for each black and white TV channel.\nAn analog color TV channel has a 6-MHz bandwidth.",b7,final);
|
888640c463e5319dbc2e220abb3d1c4f5654cea1
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1332/CH13/EX13.5/13_5.sce
|
1b588f1a614146634bcfaf6d7ab617d6a034f409
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,131
|
sce
|
13_5.sce
|
//Example 13.5
//Stirlings Central Difference Derivatives
//Page no. 426
clc;close;clear;
printf(' x\t\t y\t\t d\t\t d2\t\t d3\n')
printf('---------------------------------------------------------------------------')
h=0.01;s=0.5;
deff('y=f1(x,s)','y=((z(x,3)+z(x-1,3))/2+s*z(x-1,4)+(z(x-1,5)+z(x-2,5))*(3*s^2-1)/12)/h')
deff('y=f2(x,s)','y=(z(x-1,4))/h^2')
deff('y=f3(x,s)','y=(z(x-1,5)+z(x-2,5))/(2*h^3)')
z=[1.00,1.00000;1.01,1.00499;1.02,1.00995;1.03,1.01489;1.04,1.01980;1.05,1.02470;1.06,1.02956;1.07,1.03441;1.08,1.03923;1.09,1.04403;1.10,1.04881;1.11,1.05357;1.12,1.05830;1.13,1.06301;1.14,1.06771;1.15,1.07238;1.16,1.07703];
for i=3:5
for j=1:19-i
z(j,i)=z(j+1,i-1)-z(j,i-1)
end
end
printf('\n')
for i=1:17
for j=1:5
if z(i,j)==0 then
printf(' \t')
else
printf('%.7f\t',z(i,j))
end
end
printf('\n')
end
printf('\n\ny1(1.125) = %g (exact value = 0.4771404)',f1(13,0.5))
printf('\n\ny2(1.125) = %g (exact value = -0.20951)',f2(13,0.5))
printf('\n\ny3(1.125) = %g (exact value = 0.27935)',f3(13,0.5))
|
b6164b72a1bbe0f98138dc3cdcdd2144629c6a6c
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1757/CH6/EX6.13/EX6_13.sce
|
36eaf0f7002c03521939091e4a02a7c3555740cf
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 380
|
sce
|
EX6_13.sce
|
//Example6.13 // Determine the time constant of the integrator
clc;
clear;
close;
Vo = 20 ;
t = 1*10^-3 ;
VI = -1 ; // at t =0 ;
// The output voltage of an integrator is define as
RC = t/10 ;
disp(' The time constant of the given filter is RC = '+string(RC)+ ' sec ');
R = 1*10^3 ; // we assume
C = RC/R ;
disp('The capacitor value is = '+string(C)+ ' F');
|
de938ed91a8a5b907a667dd1d857be98e8075fab
|
089894a36ef33cb3d0f697541716c9b6cd8dcc43
|
/NLP_Project/test/blog/bow/bow.18_1.tst
|
29eb634bf1013aaa4c22705c52f0cd17d4b3efeb
|
[] |
no_license
|
mandar15/NLP_Project
|
3142cda82d49ba0ea30b580c46bdd0e0348fe3ec
|
1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2
|
refs/heads/master
| 2020-05-20T13:36:05.842840
| 2013-07-31T06:53:59
| 2013-07-31T06:53:59
| 6,534,406
| 0
| 1
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 3,867
|
tst
|
bow.18_1.tst
|
18 25:0.5 30:0.1 69:0.25 200:2.0 202:0.14285714285714285 995:1.0 1357:1.0 1388:1.0 1462:1.0
18 6:1.0 14:0.037037037037037035 54:0.1 69:0.25 121:0.16666666666666666 200:1.0 202:0.14285714285714285 409:1.0 941:1.0 995:1.0 1730:1.0
18 4:0.09090909090909091 6:1.0 14:0.037037037037037035 25:1.0 30:0.2 43:0.3333333333333333 49:0.08333333333333333 55:0.25 56:0.3333333333333333 60:1.0 69:0.25 70:1.0 199:0.14285714285714285 236:0.3333333333333333 237:1.0 255:0.3333333333333333 271:1.0 286:1.0 290:1.0 331:1.0 356:0.25 388:1.0 409:1.0 490:0.2 568:1.0 952:1.0 1039:1.0 1207:1.0 1211:1.0
18 6:0.5 25:1.0 30:0.1 54:0.2 84:0.2 183:0.25 193:0.5 199:0.2857142857142857 200:1.0 207:0.2 226:1.0 249:0.125 271:1.0 281:1.0 356:0.25 449:0.5 978:1.0 979:1.0 982:1.0 984:0.5 985:1.0 986:1.0 987:1.0 988:1.0 989:1.0 1440:1.0
18 6:0.5 14:0.037037037037037035 1439:1.0
18 17:0.03225806451612903 171:0.5 517:1.0
18 4:0.09090909090909091 6:0.5 10:0.5 14:0.07407407407407407 17:0.03225806451612903 25:0.5 30:0.1 42:0.25 54:0.1 121:0.16666666666666666 193:0.5 200:2.0 278:1.0 352:0.5 386:1.0 574:1.0 678:1.0 923:1.0 957:1.0 1007:1.0 1636:1.0
18 6:0.5 14:0.037037037037037035 54:0.2 249:0.125 344:1.0 449:0.5 941:1.0 1069:1.0 1203:1.0
18 10:0.5 30:0.1 42:0.25 56:0.3333333333333333 69:0.25 74:0.4 84:0.2 121:0.16666666666666666 140:0.5 262:1.0 404:1.0 903:1.0 1044:0.5 1065:1.0 1092:1.0 1162:1.0 1211:1.0
18 1405:1.0
18 4:0.2727272727272727 6:1.0 21:1.0 25:0.5 42:0.25 45:0.5 54:0.1 56:0.3333333333333333 189:0.25 214:2.0 222:1.0 237:1.0 589:1.0 1109:1.0 1407:1.0
18 4:0.09090909090909091 6:1.5 10:0.5 30:0.2 249:0.125 294:1.0 691:1.0 1092:1.0
18 4:0.09090909090909091 14:0.037037037037037035 25:0.5 30:0.2 69:0.5 199:0.14285714285714285 200:1.0 281:1.0 356:0.25 369:1.0 923:1.0 1069:1.0 1093:1.0 1109:1.0
18 19:0.05263157894736842 25:0.5 189:0.25 200:1.0 203:1.0 207:0.2 622:1.0 807:1.0 1231:1.0 1232:1.0 1355:1.0
18 4:0.09090909090909091 54:0.1 255:0.3333333333333333 389:1.0 1081:1.0
18 14:0.037037037037037035 25:0.5 56:0.3333333333333333 1161:1.0 1486:1.0
18 1343:1.0
18 10:0.5 249:0.125 356:0.25 797:1.0 1343:1.0 1361:1.0
18 14:0.07407407407407407 25:0.5 49:0.08333333333333333 121:0.16666666666666666 170:1.0 183:0.25 187:1.0 199:0.2857142857142857 200:1.0 214:2.0 250:1.0 761:1.0 1201:1.0 1238:1.0 1257:1.0 1625:1.0
18 6:1.0 14:0.037037037037037035 30:0.1 56:0.3333333333333333 159:0.125 199:0.2857142857142857 200:1.0 214:1.0 294:1.0 356:0.25 378:1.0 545:0.5 600:0.5 652:1.0 923:1.0 1077:1.0 1239:1.0 1361:1.0 1407:1.0 1412:1.0 1629:1.0
18 14:0.037037037037037035 30:0.1 250:1.0 470:1.0 652:1.0
18 14:0.037037037037037035 581:0.5 842:1.0
18 10:0.5 199:0.14285714285714285 404:1.0 420:1.0
18 203:1.0 249:0.125
18 6:0.5 49:0.08333333333333333 98:1.0 199:0.14285714285714285 208:1.0 356:0.25 369:1.0 557:1.0 807:1.0 982:1.0 1407:1.0
18 1343:1.0
18 3:0.3333333333333333 6:0.5 14:0.037037037037037035 25:0.5 170:1.0 199:0.14285714285714285 221:0.5 294:1.0 356:0.5 1361:1.0 1629:1.0
18 14:0.037037037037037035 470:1.0
18 30:0.1 66:0.25 303:0.5 698:1.0
18 19:0.05263157894736842 25:0.5 199:0.2857142857142857 207:0.2 286:1.0 355:1.0 369:1.0 543:1.0 1214:1.0 1232:1.0
18 30:0.1 227:1.0 1355:1.0
18 10:0.5 19:0.05263157894736842 25:0.5 146:1.0 203:1.0 356:0.25 1134:1.0 1310:1.0 1361:1.0
18 4:0.18181818181818182 6:0.5 25:1.0 30:0.1 187:1.0 249:0.125 320:1.0 369:1.0 602:1.0 901:1.0 1109:1.0 1129:1.0 1355:1.0
18 19:0.05263157894736842 199:0.14285714285714285 744:1.0
18 6:0.5 10:0.5 25:1.0 30:0.2 45:0.5 50:1.0 69:0.25 74:0.2 186:1.0 412:1.0 695:1.0 954:0.5 968:1.0 1016:1.0 1030:1.0 1065:1.0 1102:1.0
18 30:0.1 55:0.25 69:0.5 74:0.2 143:0.5 200:2.0 456:0.3333333333333333 803:0.5 1038:1.0 1044:0.5 1065:1.0 1066:1.0 1097:1.0 1247:1.0
18 3:0.3333333333333333 6:0.5 25:0.5 30:0.1 39:1.0 69:0.5 183:0.25 193:0.5 199:0.14285714285714285 317:1.0 503:1.0 731:1.0 965:1.0 966:1.0 1132:1.0 1357:1.0
|
c6dbddf54347d882b7694d3a7c1f235a8fb18bd8
|
68e53df229b123d7681a4f7fa4db43b4982d5362
|
/dlyapchol.sce
|
a4f3ffd8f28ae0218a6005cca01969bd9e554e63
|
[] |
no_license
|
yeoleparesh/Control-system
|
06c30e594d51fec7a8ffabc452a7866b38604a23
|
dee7fbfd3c2c46cc1d4d0a3cb8af45d918da972b
|
refs/heads/master
| 2021-01-17T12:38:05.661769
| 2019-01-03T12:03:53
| 2019-01-03T12:03:53
| 59,283,431
| 0
| 3
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 229
|
sce
|
dlyapchol.sce
|
// Function dlyapchol
//lyapunov equation
a =[-0.25 0.25; 0.6 -0.4];
b=[1.5442;0];
r=dlyapchol(a,b)
//generalized lyapunov equation
a =[-0.25 0.25; 0.6 -0.4];
b=[1.5442;0];
e=[11 22 ;33 44];
r1=dlyapchol(a,b,e)
|
dc7e0c5d27150630d55507dab87efa2346f20b7b
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3547/CH2/EX2.16/Ex2_16.sce
|
02b9652be9cfd3d45190bd14a216b288faf06903
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,193
|
sce
|
Ex2_16.sce
|
// Example No. 2.16
// To find the length of DCF so that the pulse width (FWHM) at the output of the DCF is twice the pulse width at the input of the TF
// Page No. 84
clc;
clear;
// Given data
beta2TF=-21*(10^(-12))^2; // Dispersion coefficient of transmission fiber in s^2/km
beta2DCF=130*(10^(-12))^2; // Dispersion coefficient of dispersion compensating fiber in s^2/km
LTF=80; // Length of transmission fiber in km
TFWHM=12.5*10^(-12); // Full-width at half-maximum
T0=TFWHM/1.665; // Half-width
// The length of required DCF
LDCF1=(sqrt(3)*T0^2-beta2TF*LTF)/beta2DCF; // Length of dispersion compensating fiber in km
LDCF2=(-sqrt(3)*T0^2-beta2TF*LTF)/beta2DCF; // Length of dispersion compensating fiber in km
// Displaying the result in command window
printf('\n The length of DCF so that the pulse width (FWHM) at the output of the DCF is twice the pulse width at the input of the TF = %0.2f km',LDCF1);
printf(' or = %0.2f km',LDCF2);
|
e2aae1e1d899e19ed098b07357b8aafb69a34f74
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/569/CH3/EX3.3/3_3.sci
|
e2e9da35453da6902b0743bfb3b95d58412a0bf1
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 370
|
sci
|
3_3.sci
|
// Calculate the range of readings
clc;
fsd=1000;
TP=100;
Efsd=(1/100)*1000;
disp(Efsd,'magnitude of Error when specified in terms of full scale deflection (w)=')
disp('Thus the meter will read between 90W and 110W')
Etv=(1/100)*100;
disp(Etv,'magnitude of Error when specified in terms of true value (w)=')
disp('Thus the meter will read between 99W and 101W')
|
de58fe98917dcc0d1b05b309bbc35e4559eb7bff
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1370/CH2/EX2.3/example2_3.sce
|
2ab08636035d8013043837244c549063eeeff72b
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 547
|
sce
|
example2_3.sce
|
//example2.3
clc
disp("Consider shunt generator as shown in the fig 2.29")
disp("I_a=(I_L)+(I_sh)")
disp("I_sh=(V_t)/(R_sh)")
disp("Now, V_t=250 V")
disp("and, R_sh=100 ohm")
i=250/100
disp(i,"Therefore, I_sh(in A)=")
disp("Load power=5 kW")
disp("Therefore, P=(V_t)*(I_L)")
i=(5*10^3)/250
disp(i,"I_L(in A)=P/(V_t)=")
i=20+2.5
disp(i,"(I_a)[in A]=(I_L)+(I_sh)=")
disp("E=(V_t)+((I_a)*(R_a))[neglect V_brush]")
E=250+(22.5*0.22)
disp(E,"Therefore, E(in V)=")
disp("This is the induced emf to supply the given load.")
|
19969cadc9e99d530668031a58c367bbceb5f3c6
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/243/CH4/EX4.3/4_03.sce
|
74c85ffca9a82dfa9266f1b22f613cc32348348d
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 805
|
sce
|
4_03.sce
|
//Example No. 4_03
//Pg No. 64
clear ; close ; clc ;
a = 0.1
b = 0.4
for i = 1:8
afrac(i) = floor(a*2)
a = a*2 - floor(a*2)
bfrac(i) = floor(b*2)
b = b*2 - floor(b*2)
end
afrac_s = '0' + '.' + strcat(string(afrac)) //string form binary equivalent of a i.e 0.1
bfrac_s = '0' + '.' + strcat(string(bfrac))
mprintf('\n 0.1_10 = %s \n 0.4_10 = %s \n ', afrac_s , bfrac_s)
for j = 8:-1:1
summ(j) = afrac(j) + bfrac(j)
if summ(j) > 1 then
summ(j) = summ(j)-2
afrac(j-1) = afrac(j-1) + 1
end
end
summ_dec = 0
for k = 8:-1:1
summ_dec = summ_dec + summ(k)
summ_dec = summ_dec*1/2
end
disp(summ_dec,'sum =')
disp('Note : The answer should be 0.5, but it is not so.This is due to the error in conversion from decimal to binary form.')
|
14a839285611c341a22add5927a9db683bd18c90
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3640/CH2/EX2.8/Ex2_8.sce
|
52b925862779b50b62f8029a4389f3fae8de19dc
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,070
|
sce
|
Ex2_8.sce
|
clc
VLB=2400 //line to base voltage in volts
Ix=2005 //current in amperes
xda=VLB/(sqrt(3)*Ix)
mprintf("xda=%fΩ\n",xda)//ans may vary due to roundoff error
Ifv=116 //current in amperes
ma1=VLB/(sqrt(3)*Ifv)//equal to ma` in textbook
mprintf("má=V1B/Ifv=%fΩ\n",ma1)//ans may vary due to roundoff error
//from ex 2_7
V1=VLB/sqrt(3) //reference phasor in volts
kVAB=9375 //rated kVA
I1B=(kVAB*1000)/(sqrt(3)*VLB)//current in amperes
pf=0.8 //power factor
I1=I1B*exp((-1)*%i*(acos(pf)))//current in amperes
Ef=V1+%i*I1*xda
disp('Ef='+string(Ef)+'V')//ans may vary due to roundoff error
mprintf("If=|Ef|/má=%fA\n",abs(Ef)/ma1)//ans may vary due to roundoff error
Voc=2960 //line to line volatge in Volts
mprintf("V1oc=%fV\n",Voc/sqrt(3))//ans may vary due to roundoff error
If=240 //current in amperes
Efmax=ma1*If
mprintf("Efmax=%dV\n",Efmax)//ans in textbook is wrong
I1max=(Efmax-V1)/xda //ans in textbook is wrong
mprintf("I1max=%fA\n",I1max)//ans may vary due to roundoff error
mprintf("Qmax=%fMVAR",sqrt(3)*VLB*I1max*(10^-6))//ans may vary due to roundoff error
|
7613874aee970c46ea6a99a32fab9776666aeda3
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3673/CH9/EX9.a.6/Example_a_9_6.sce
|
a28cb176b3148f76fbbbf21cabf30a09400fc91a
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 852
|
sce
|
Example_a_9_6.sce
|
//Example_a_9_6 page no:406
clc;
Vl=400;
Vrnmag=400/sqrt(3);
Vrnang=0;
Vynmag=400/sqrt(3);
Vrnang=-120;
Vbnmag=400/sqrt(3);
Vrnang=-240;
R=10;
omega=314;
L=1;
C=100*10^-6;
Yph=(1/R)+(1/(%i*omega*L))+(%i*omega*C);
Iph=Vrnmag*Yph;//multiplication of Vrnmag and Yph is rounded off in text book so output line current varies sligthly
Iphmag=sqrt(real(Iph)^2+imag(Iph)^2);
Iphang=atand(imag(Iph)/real(Iph));
P=sqrt(3)*Vl*Iphmag*cosd(Iphang);
pf=cosd(Iphang);
disp(Iphmag,"the magnitude of line current is (in A)");
disp(Iphang,"the angle of line current is (in degree)");
disp(P,"the power is (in W)");
disp(pf,"the power factor is");
//multiplication of Vrnmag and Yph is rounded off in text book so output line current varies sligthly
//Iphmag and Iphang are rounded off in text book so calculated power varies with the textbook
|
d69c7a050f58ba9011448ea6e5deaa590c907d2a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3035/CH14/EX14.1/Ex14_1.sce
|
965ef375040acc49bf294725de2031784941d7d5
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 534
|
sce
|
Ex14_1.sce
|
// Variable Declaration
TMS = 0.5 //Time multiplier setting
I_f = 5000.0 //Fault current(A)
CT = 500.0/5 //CT ratio
set_plug = 1.0 //Relay plug set
I_relay = 5.0 //Rated relay current(A)
// Calculation Section
PSM = I_f/(CT*set_plug*I_relay) //Plug setting multiplier
T1 = 1.0 //Time of operation for obtained PSM & TMS of 1 from graph.Refer Fig 14.22
T2 = TMS*3/T1 //Time of operation(sec)
// Result Section
printf('Operating time of the relay = %.1f sec' ,T2)
|
c4599ca7afe3bbaa001be3e177001d29659305dc
|
676ffceabdfe022b6381807def2ea401302430ac
|
/solvers/IncNavierStokesSolver/Tests/Hex_channel_m3_srhs_par.tst
|
e5d68d27b8d0731db9ef381f6f90e03588800ecf
|
[
"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
| 1,082
|
tst
|
Hex_channel_m3_srhs_par.tst
|
<?xml version="1.0" encoding="utf-8"?>
<test>
<description>3D channel flow, Hexahedral elements, P=3, Successive RHS(5), par(2)</description>
<executable>IncNavierStokesSolver</executable>
<parameters>--use-scotch Hex_channel_m3_srhs.xml</parameters>
<processes>2</processes>
<files>
<file description="Session File">Hex_channel_m3_srhs.xml</file>
</files>
<metrics>
<metric type="L2" id="1">
<value variable="u" tolerance="1e-8">4.54205e-13</value>
<value variable="v" tolerance="1e-8">5.92873e-13</value>
<value variable="w" tolerance="1e-8">2.56712e-12</value>
<value variable="p" tolerance="1e-8">8.8739e-11</value>
</metric>
<metric type="Linf" id="2">
<value variable="u" tolerance="1e-8">1.89675e-12</value>
<value variable="v" tolerance="1e-8">2.84934e-12</value>
<value variable="w" tolerance="1e-8">1.51304e-11</value>
<value variable="p" tolerance="1e-8">3.4398e-10</value>
</metric>
</metrics>
</test>
|
ce851966711bb2f9985321ac9ebd69d5baa065b0
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2282/CH4/EX4.15/ex4_15.sce
|
5f9e9a4f5c755275f6ce268f28a2a34de45c3dc0
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 242
|
sce
|
ex4_15.sce
|
// Example 4.15, page no-156
clear
clc
p=10000 //power fed to the antenna in W
ag=60 //Antenna gain
loss=2 //Power lossin feed system
adb=10*log10(p)
EIRP=adb+ag-loss
printf("Earth station EIRP = %ddB",EIRP)
|
30ebcff88298adf537dc0de947d301b97879202e
|
20253970b7dd99e615215029609de822e2bf855d
|
/judge/tests/52063/17.tst
|
c06783a7593331aa1af84555a6e82acfd9a6b6fe
|
[] |
no_license
|
B-Rich/CATS
|
d26d6c85cfc1dbdc78fa16f691adbfccc615df03
|
d299e328f9e7498ecd9f58f64069fcd57536db00
|
refs/heads/master
| 2021-01-01T06:10:11.322262
| 2011-06-21T15:06:06
| 2011-06-21T15:06:06
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,260
|
tst
|
17.tst
|
999 997
100
621 555 22
621 555 243
621 555 278
621 555 229
621 555 209
621 555 23
621 555 5
621 555 154
621 555 21
621 555 125
621 555 128
621 555 52
621 555 326
621 555 9
621 555 375
621 555 188
621 555 58
621 555 71
621 555 149
621 555 168
621 555 1
621 555 61
621 555 165
621 555 79
621 555 140
621 555 11
621 555 67
621 555 163
621 555 347
621 555 87
621 555 56
621 555 29
621 555 117
621 555 221
621 555 116
621 555 126
621 555 19
621 555 13
621 555 40
621 555 69
621 555 54
621 555 172
621 555 94
621 555 25
621 555 174
621 555 16
621 555 191
621 555 259
621 555 158
621 555 130
621 555 27
621 555 107
621 555 44
621 555 254
621 555 85
621 555 268
621 555 101
621 555 115
621 555 283
621 555 42
621 555 181
621 555 194
621 555 160
621 555 84
621 555 111
621 555 35
621 555 113
621 555 2
621 555 105
621 555 214
621 555 171
621 555 135
621 555 31
621 555 34
621 555 47
621 555 15
621 555 98
621 555 50
621 555 144
621 555 183
621 555 91
621 555 131
621 555 232
621 555 53
621 555 222
621 555 37
621 555 39
621 555 153
621 555 7
621 555 74
621 555 310
621 555 3
621 555 64
621 555 201
621 555 120
621 555 76
621 555 95
621 555 81
621 555 298
621 555 207
|
9ce8c719abc96fc9099ca5a9e249d6a12ce08b12
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1439/CH13/EX13.2/13_2.sce
|
4ad6e9965f690476f72ecf57ccc350676cea56ad
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 235
|
sce
|
13_2.sce
|
clc
//initialisation of variables
r= 82.4 //ohms
k= 0.002768 //ohm^-1
R1= 326 //ohm
//CALCULATIONS
K= r*k
K1= (K/R1)
//RESULTS
printf ('cell constant= %.4f cm^-1',K)
printf ('\n specific conductance= %.3e ohm^-1 cm^-1',K1)
|
d08226ec47b122e5fe466b688ded8b97fa90531f
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/browsable_source/2.4/Unix-Windows/scilab-2.4/macros/m2sci/indentsci.sci
|
138fe578c6c8e04c8a2863634183121ddd245529
|
[
"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
| 103
|
sci
|
indentsci.sci
|
function [txt]=indentsci(txt)
//
//!
// Copyright INRIA
bl=' '
txt=bl(ones(prod(size(txt)),1))+txt
|
44f1ead599ed24b4180aac5ea011240a1a4095ec
|
a62e0da056102916ac0fe63d8475e3c4114f86b1
|
/set9/s_Engineering_Mechancis-schaum_Series_Mclean_3137.zip/Engineering_Mechancis-schaum_Series_Mclean_3137/CH16/EX16.52/Ex16_52.sce
|
55b61efdda193f36b8b5118557b04f04dbfe94c8
|
[] |
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
| 237
|
sce
|
Ex16_52.sce
|
errcatch(-1,"stop");mode(2);//Initilization of variables
W=32.2 //lb
T=120 //lb
m=1 //slug
r=6/12 //ft
//Calculations
w=sqrt((T*(3/5)*4)/(m*r*3)) //rad/s
//Result
printf('The angular speed permissible is %f rad/s',w)
exit();
|
910cb604809fc24acf45329d24c79ba1a25a96c3
|
a62e0da056102916ac0fe63d8475e3c4114f86b1
|
/set10/s_Fiber_Optics_Communication_H._Kolimbiris_2855.zip/Fiber_Optics_Communication_H._Kolimbiris_2855/CH12/EX12.3/Ex12_3.sce
|
d50b4fd49a9793415549a05bdbe3e592e9b71af3
|
[] |
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
| 257
|
sce
|
Ex12_3.sce
|
errcatch(-1,"stop");mode(2);//Chapter 12
//page no 432
//given
;
all;
Pt1=-18; //in dBm for 50/125 micron fiber
Pt2=-10; //in dBm for 100/125 micron fiber
Pd=Pt1-Pt2;
printf("\n Additional Power = %0.0f dBm",Pd);
exit();
|
f53ce486f3fce0e87abc8f17548d02d60c1e8611
|
de14a6897d4397228a52bacb8905b8807370ef4b
|
/gibbs2.sci
|
1f6b19e49981bb28a76f562d35f6a60324b10e87
|
[] |
no_license
|
JustineMarlow/MT94-RapportLaTeX
|
20b670965a47ce85beecc15865d14ec9cc4d305b
|
3dfaa665b5691621410f8eafdf76ecaf081b92d1
|
refs/heads/master
| 2021-09-06T17:54:58.174773
| 2018-02-09T09:57:52
| 2018-02-09T09:57:52
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 262
|
sci
|
gibbs2.sci
|
function out=S2(x,p)
somme=0;
for i=0:p
somme=somme+cos((2*i+1)*x)/(2*i+1)^2;
end
out=%pi/2-somme*4/%pi;
endfunction
//pas de discontinuite, donc pas d'effet Gibbs
clf;
x=linspace(-%pi,%pi,10000);
n=100;
plot(x,S2(x,n));
title("n=100");
|
c3ea9815f9e9c7d41757a263c10e78c3a2159b39
|
0cb85cd0c88a9b9f0cca4472742c2bf9febef2d8
|
/klava/kernel/tests/klaviotest/tests/vio_chsize.tst
|
ac426d05d1cb21605db22e2c75b3106e7ed58876
|
[] |
no_license
|
seth1002/antivirus-1
|
9dfbadc68e16e51f141ac8b3bb283c1d25792572
|
3752a3b20e1a8390f0889f6192ee6b851e99e8a4
|
refs/heads/master
| 2020-07-15T00:30:19.131934
| 2016-07-21T13:59:11
| 2016-07-21T13:59:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 5,036
|
tst
|
vio_chsize.tst
|
# vio_chsize.tst
#
# (virtual IO: operations that change file size)
#
read 0 5716 1.tmp
expect 0 5716 0
compare_file 1.tmp data1.dat
# shrink file
set_size 0x1500
expect 0
read 0x1400 0x100 1.tmp
expect 0 0x100 0
compare_file 1.tmp result13.dat
read 0x1400 0x100 1p.tmp portion
expect 0 0x100 0
compare_file 1p.tmp result13.dat
read 0x1400 0x100 1b.tmp iobuf
expect 0 0x100 0
compare_file 1b.tmp result13.dat
read 0x1400 0x100 1bp.tmp iobuf portion
expect 0 0x100 0
compare_file 1bp.tmp result13.dat
read 0x1400 0x200 2.tmp
expect 0x800000CA 0 0
read 0x1400 0x200 2p.tmp portion
expect 0 0x100 0
compare_file 2p.tmp result13.dat
read 0x1400 0x200 2b.tmp iobuf
expect 0x800000CA 0 0
read 0x1400 0x200 2bp.tmp iobuf portion
expect 0 0x100 0
compare_file 2bp.tmp result13.dat
# grow file
set_size 0x2000
expect 0
get_size
expect 0 0x2000
read 0x1584 0xD0 3.tmp
expect 0 0xD0 0
compare_file 3.tmp result3.dat
read 0x1584 0xD0 3p.tmp portion
expect 0 0xD0 0
compare_file 3p.tmp result3.dat
read 0x1584 0xD0 3b.tmp iobuf
expect 0 0xD0 0
compare_file 3b.tmp result3.dat
read 0x1584 0xD0 3bp.tmp portion iobuf
expect 0 0xD0 0
compare_file 3bp.tmp result3.dat
# read block at the end of real IO
read 0x1584 0x100 4.tmp
expect 0 0x100 0
compare_file 4.tmp result14.dat
read 0x1584 0x100 4p.tmp portion
expect 0 0x100 0
compare_file 4p.tmp result14.dat
read 0x1584 0x100 4b.tmp iobuf
expect 0 0x100 0x0
compare_file 4b.tmp result14.dat
read 0x1584 0x100 4bp.tmp iobuf portion
expect 0 0x100 0x0
compare_file 4bp.tmp result14.dat
# read block at the end of virtual IO
read 0x1F00 0x100 5.tmp
expect 0 0x100 0
compare_file 5.tmp zero256.dat
read 0x1F00 0x100 5p.tmp portion
expect 0 0x100 0
compare_file 5p.tmp zero256.dat
read 0x1F00 0x100 5b.tmp iobuf
expect 0 0x100 0x0
compare_file 5b.tmp zero256.dat
read 0x1F00 0x100 5bp.tmp iobuf portion
expect 0 0x100 0x0
compare_file 5bp.tmp zero256.dat
# read block overlapping end of virtual IO
read 0x1F00 0x200 6.tmp
expect 0x800000CA 0 0
read 0x1F00 0x200 6p.tmp portion
expect 0 0x100 0
compare_file 6p.tmp zero256.dat
read 0x1F00 0x200 6b.tmp iobuf
expect 0x800000CA 0 0
read 0x1F00 0x200 6bp.tmp iobuf portion
expect 0 0x100 0x0
compare_file 6bp.tmp zero256.dat
# read block past the end of virtual IO
read 0x2000 0x100 7.tmp
expect 0x800000CA 0 0
read 0x2000 0x100 7p.tmp portion
expect 0 0 0
read 0x2000 0x100 7b.tmp iobuf
expect 0x800000CA 0 0
read 0x2000 0x100 7bp.tmp iobuf portion
expect 0 0 0x0
# auto-grow file by writing past EOF
write 0x4000 data3.dat
expect 0 0x2000
get_size
expect 0 0x6000
read 0x4000 0x2000 8.tmp
expect 0 0x2000 0
compare_file 8.tmp data3.dat
read 0x4000 0x2000 8p.tmp portion
expect 0 0x2000 0
compare_file 8p.tmp data3.dat
read 0x4000 0x2000 8b.tmp iobuf
expect 0 0x2000 0x0
compare_file 8b.tmp data3.dat
read 0x4000 0x2000 8bp.tmp iobuf portion
expect 0 0x2000 0x0
compare_file 8bp.tmp data3.dat
# read past new EOF
read 0x4000 0x3000 9.tmp
expect 0x800000CA 0 0
read 0x4000 0x3000 9p.tmp portion
expect 0 0x2000 0
compare_file 9p.tmp data3.dat
read 0x4000 0x3000 9b.tmp iobuf
expect 0x800000CA 0 0
read 0x4000 0x3000 9bp.tmp iobuf portion
expect 0 0x2000 0x0
compare_file 9bp.tmp data3.dat
# shrink file and grow it again, the data should be cleared
set_size 0x5F00
expect 0
get_size
expect 0 0x5F00
set_size 0x6000
expect 0
get_size
expect 0 0x6000
read 0x5F00 0x100 10_1.tmp
expect 0 0x100 0
compare_file 10_1.tmp zero256.dat
read 0x5F00 0x100 10_1p.tmp portion
expect 0 0x100 0
compare_file 10_1p.tmp zero256.dat
read 0x5F00 0x100 10_1b.tmp iobuf
expect 0 0x100 0x0
compare_file 10_1b.tmp zero256.dat
read 0x5F00 0x100 10_1bp.tmp iobuf portion
expect 0 0x100 0x0
compare_file 10_1bp.tmp zero256.dat
# this data should be retained
read 0x5E00 0x100 10_2.tmp
expect 0 0x100 0
compare_file 10_2.tmp data4.dat
read 0x5E00 0x100 10_2p.tmp portion
expect 0 0x100 0
compare_file 10_2p.tmp data4.dat
read 0x5E00 0x100 10_2b.tmp iobuf
expect 0 0x100 0x0
compare_file 10_2b.tmp data4.dat
read 0x5E00 0x100 10_2bp.tmp iobuf portion
expect 0 0x100 0x0
compare_file 10_2bp.tmp data4.dat
set_size 0x2000
expect 0
get_size
expect 0 0x2000
read 0x4000 0x2000 10.tmp
expect 0x800000CA 0 0
read 0x4000 0x2000 10p.tmp portion
expect 0 0 0
read 0x4000 0x2000 10b.tmp iobuf
expect 0x800000CA 0 0
read 0x4000 0x2000 10bp.tmp iobuf portion
expect 0 0 0x0
set_size 0x6000
expect 0
get_size
expect 0 0x6000
read 0x4000 0x100 11.tmp
expect 0 0x100 0
compare_file 11.tmp zero256.dat
read 0x4000 0x100 11p.tmp portion
expect 0 0x100 0
compare_file 11p.tmp zero256.dat
read 0x4000 0x100 11b.tmp iobuf
expect 0 0x100 0x0
compare_file 11b.tmp zero256.dat
read 0x4000 0x100 11bp.tmp iobuf portion
expect 0 0x100 0x0
compare_file 11bp.tmp zero256.dat
|
5f4f0dc7b6be9ea83a85f62740c06d1a66057752
|
3fb2b65e8ef9208e822aad35c618441282e08a30
|
/MetodeNumerik/interpolasi dan polinom/interpolasi_lagrangre.sce
|
82e19e4bc31dce0ff146b0cb44f978ce2bfd7f04
|
[] |
no_license
|
Lukmannudin/TugasKuliah
|
33031fb4f6ff0ab7a5849cda3ea15330e2527c3f
|
19738c858dea539f0a5569f27be68b1a56c2aa89
|
refs/heads/master
| 2020-03-07T15:49:59.414761
| 2018-06-09T07:41:39
| 2018-06-09T07:41:39
| 127,565,939
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 33
|
sce
|
interpolasi_lagrangre.sce
|
function lagrangre()
endfunction
|
8873a1031fa695d071aa5d7e69bf8c9b1728dc9b
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2138/CH4/EX4.10.a/EX_4_10_a.sce
|
bb83ff3d44176b0e9d51917a7f390d9036d8564b
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 621
|
sce
|
EX_4_10_a.sce
|
//Example 4.10.a//total load of lights and fans
clc;
clear;
close;
lp=50;//no. of light points
lw=60;//wattage of light points
fp=20;//no. of fan points
fw=100;//wattage of fan points
wpp=10;//no. of wall plug points
wppw=60;//wattage of wall plug points
bp=5;//no. of bell points
bpw=40;//wattage of bell points
ppp=8;//power plug points
pppw=5000;//wattage of power plug points
lpw=lp*lw;//wattage of 50 lamps
fpw=fp*fw;//wattage of 20 fans
wpppw=wpp*wppw;//wattage of wall plug points
bpww=bp*bpw;//wattage of bell points
tl=lpw+fpw+wpppw+bpww;//total wattage
disp(tl,"total wattage of lightning load is in watts ")
|
10f53181dd2c252f95cf9b4b949626b66fe2d5b9
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3886/CH6/EX6.10/6_10.sce
|
ec227cc593165b32383a4d6b70277543a8244d89
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 203
|
sce
|
6_10.sce
|
//Force P required to raise the load
eta=0.70
W=2500 //N
//refer fig. 6.17
//For third order pulley
//VR=2^2-1
//For whole system
VR=3+3
P=W/(eta*VR) //N
printf("Required force p=%.2f N",P)
|
37f3860dfb1a6286edde075eb01837bd5842f679
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1634/CH1/EX1.25/example1_25.sce
|
163cc97a355adc3ab7361e75bfce73d5788f4377
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 415
|
sce
|
example1_25.sce
|
//exapple 1.25
clc; funcprot(0);
// Initialization of Variable
time=4+20/60+30/3600;
accn=time*9.8565/3600;//acceleration
stime=time+accn;//sideral time
disp("local mean time in past midnight observed:");
a=modulo(stime*3600,60);
printf("seconds %.3f",a);
b=modulo(stime*3600-a,3600)/60;
printf(" minutes %i",b);
c=(stime*3600-b*60-a)/3600;
if c>24 then
c=c-24;
end
printf(" hours %i",c);
|
8108b9c6bdaf0b41bd07a1ed50b68045d024be39
|
4b1d4672fa994587ea62810e2f0c57b3a652f278
|
/CSpeech_Session2_SDL.sce
|
95a38d74ebe95894e5c980d348c34f7b3b2da68c
|
[
"Apache-2.0"
] |
permissive
|
VCSchoots/Colour-Speech
|
57305d6c20875c52e130dabaf705773404e2aec8
|
df1d5f13c1bb944f918acafb3cc562e918ee3195
|
refs/heads/master
| 2021-07-02T00:47:58.475654
| 2019-03-04T19:51:39
| 2019-03-04T19:51:39
| 136,158,365
| 0
| 0
|
Apache-2.0
| 2018-09-12T10:15:08
| 2018-06-05T10:06:37
|
Scilab
|
UTF-8
|
Scilab
| false
| false
| 9,321
|
sce
|
CSpeech_Session2_SDL.sce
|
####### INITIATION #######
# Initiation of the scenario and the main PCL-file
scenario = "CSpeech";
scenario_type = fMRI_emulation;# set to fMRI at the scanner!
pcl_file = "CSpeech_Session1_MAIN.pcl";
pulse_code = 255;
pulses_per_scan = 1;
scan_period = 2000;
write_codes = true;
default_output_port = 1;
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !! at the scanner, uncomment all lines with port_code (use search function)
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# the resolution of the screen/ adapt to fit projector
screen_height = 768;
screen_width = 1024;
screen_bit_depth = 32;
# keep SDL as simple as possible and stay clear of the parallel port
response_matching = simple_matching;
response_port_output = true;
active_buttons = 4;
button_codes = 1,2,3,4; # 1 = ENTER-exp-subj # 2 yes # 3 no # 4 SPACEBAR-exp
# basic colours and fonts
default_background_color = 82,82,82; # grey as in PPM, adjust to picture background
default_font = "arial";
default_font_size = 20;
default_text_color = 0,0,0; # black
default_text_align = align_center;
######### BEGIN ##########
begin;
##########################
picture {} default; # blank screen
picture { box { height = 3; width = 30; color = 0, 0, 0; } horz_s;
x = 0; y = 0;
box { height = 30; width = 3; color = 0, 0, 0; } vert_s;
x = 0; y = 0;
box { height = 3; width = 3; color = 255, 255, 255; } dot_s;
x = 0; y = 0;
} fixation; # fixation cross
picture { text { caption = " "; } t_info1; x = 0; y = 50;
text { caption = " "; } t_info2; x = 0; y = 0;
text { caption = "Druk [ENTER] om door te gaan of [Esc] om te onderbreken. "; } t_info3; x = 0; y = -50;
} p_info; # text
picture { text { caption = "Wachten op de scanner...
"; } t_countdown; x = 0; y = 0;
} p_countdown; # countdown picture for when the scanner is collecting 30 volume-weighting volumes before the exp. starts.
######## GENERAL PICTURES ########
picture {
text {caption = "Welkom bij dit experiment.
De eerste taak duurt ongeveer drie kwartier (4 delen met 3x pauze),
de tweede taak duurt ook ongeveer drie kwartier, en tot slot
maken we een anatomische scan van tien minuten.
Als eerste komt nu een kalibratie van de oogcamera.
OK (wijsvinger) >";
} t_instruction_1; x = 0; y = 0;
} p_welcome;
picture { text { caption = "Deel 1: Plaatjes Benoemen
Je krijgt een serie plaatjes te zien. Het is de bedoeling
dat je stil (in je hoofd) de plaatjes benoemt (dus: als
je een vleermuis ziet, zeg je in je hoofd 'vleermuis').
Af en toe komt er na het plaatje een stip in beeld.
Terwijl die stip er staat, moet je het woord hardop
uitspreken. We nemen je respons op, spreek s.v.p. luid
en duidelijk.
(wijsvinger) >"; } t_instruction_naming_1; x = 0; y = 0;
} p_instr_naming;
picture { text { caption =
"Je krijgt nu eerst een oefenronde, zodat je kunt wennen
aan de taak in de scanner. Het is tijdens het hele experiment
BELANGRIJK DAT JE JE BLIK IN HET MIDDEN HOUDT,
op het kruis of de stip, ook als het plaatje komt. De
plaatjes in de oefenronde zijn andere dan in het experiment.
(wijsvinger) >"; } t_traininginstr_1; x = 0; y = 0;
} p_instr_training;
picture { text { caption =
"Wil je nog een ronde oefenen?
Druk wijsvinger voor ja, middelvinger voor nee."; } t_training_1; x = 0; y = 0;
} p_training;
picture { text { caption = "Prima!
Druk wijsvinger om door te gaan met het experiment."; } t_training_1b; x = 0; y = 0;
} p_aftertraining;
picture { text { caption = "Bedankt! Deel 1 is klaar.
Druk wijsvinger om door te gaan naar de instructies
voor het tweede (laatste) deel."; } t_end_part11; x = 0; y = 0;
} p_end_part1;
picture { text { caption = "Deel 2: Kleur benoemen
Nu ga je dezelfde plaatjes bekijken, maar dit keer
zeg je in jezelf de typische kleur van het object
(bijv. 'zwart' voor vleermuis of 'wit' voor sneeuwpop).
Als de stip in beeld is moet je hetzelfde hardop zeggen.
(wijsvinger) >"; } t_instruction_judgement_1; x = 0; y = 0;
} p_instr_judgement;
picture { text { caption = "PAUZE"; } t_pause_1a; x = 0; y = 30;
text { caption = "Je hebt nu pauze. Blijf stil liggen s.v.p.";}t_pause_1b; x = 0; y = 0;
text { caption = "De proefleider zal zo verdergaan met [ENTER].";}t_pause_1c; x = 0; y = -30;
} p_pauze;
picture { text { caption = "Oogkalibratie? [SPATIE] ja, [ENTER] nee."; } t_eyeQuest; x=0; y=0;
} p_eyeQuest;
picture { text { caption = "Het experiment is nu afgelopen.
Bedankt voor het meedoen!
Wij drukken straks op [ENTER]. Dan volgt nog één oogkalibratie,
en tot slot de anatomische scan (10 minuten)."; } t_end_1; x = 0; y = 0;
} p_end_1;
###################### for the eyetracker calibration ############################
trial { #instructions
trial_duration = 5000;
stimulus_event {
picture{
text { caption = "Kalibratie oogcamera
In deze taak moet je je blik op het kruisje fixeren "; } introtext;
x=0;y=0;
} textpic;
code = "instr_text";
}instr_event;
}text_eyetr;
trial { #Show focus point
trial_duration = 2000;
stimulus_event {
picture {
box {height = 3; width = 30; color = 250, 250, 250;}horizontal;
x=0;y=0;
box {height = 30; width = 3; color = 250, 250, 250;}vertical;
x=0;y=0;
}cross;
code = "calibr_cross";
port_code = 15; # needs to be there at scanner!! (for proper log file eyetracker)
} crossevent;
}eyetrial;
######## STIMULI #########
##### sound file(s) ######
sound { wavefile { filename = "WAV-files\\Beep.wav"; preload = true;} w_beep;
} s_beep;
sound_recording {
duration = 5000;
use_date_time = false;
} recording;
####### array that preloads all the pictures before starting the experiment #########
array {
bitmap { filename = "pictures\\bat1_.jpg"; }bat1;
bitmap { filename = "pictures\\box1_.jpg"; }box1;
bitmap { filename = "pictures\\cactus1_.jpg"; }cactus1;
bitmap { filename = "pictures\\cactus2_.jpg"; }cactus2;
bitmap { filename = "pictures\\cactus3_.jpg"; }cactus3;
bitmap { filename = "pictures\\carrot1_.jpg"; }carrot1;
bitmap { filename = "pictures\\cherry1_.jpg"; }cherry1;
bitmap { filename = "pictures\\cherry2_.jpg"; }cherry2;
bitmap { filename = "pictures\\cherry3_.jpg"; }cherry3;
bitmap { filename = "pictures\\crocodile1_.jpg"; }crocodile1;
bitmap { filename = "pictures\\crocodile2_.jpg"; }crocodile2;
bitmap { filename = "pictures\\crocodile3_.jpg"; }crocodile3;
bitmap { filename = "pictures\\fire_truck1_.jpg"; }fire_truck1;
bitmap { filename = "pictures\\fire_truck2_.jpg"; }fire_truck2;
bitmap { filename = "pictures\\fire_truck3_.jpg"; }fire_truck3;
bitmap { filename = "pictures\\frog1_.jpg"; }frog1;
bitmap { filename = "pictures\\frog2_.jpg"; }frog2;
bitmap { filename = "pictures\\frog3_.jpg"; }frog3;
bitmap { filename = "pictures\\igloo1_.jpg"; }igloo1;
bitmap { filename = "pictures\\lobster1_.jpg"; }lobster1;
bitmap { filename = "pictures\\lobster2_.jpg"; }lobster2;
bitmap { filename = "pictures\\lobster3_.jpg"; }lobster3;
bitmap { filename = "pictures\\mouse1_.jpg"; }mouse1;
bitmap { filename = "pictures\\pineapple1_.jpg"; }pineapple1;
bitmap { filename = "pictures\\snowman1_.jpg"; }snowman1;
bitmap { filename = "pictures\\strawberry1_.jpg"; }strawberry1;
bitmap { filename = "pictures\\strawberry2_.jpg"; }strawberry2;
bitmap { filename = "pictures\\strawberry3_.jpg"; }strawberry3;
bitmap { filename = "pictures\\swan1_.jpg"; }swan1;
bitmap { filename = "pictures\\tank1_.jpg"; }tank1;
bitmap { filename = "pictures\\tank2_.jpg"; }tank2;
bitmap { filename = "pictures\\tank3_.jpg"; }tank3;
bitmap { filename = "pictures\\tomato1_.jpg"; }tomato1;
bitmap { filename = "pictures\\tomato2_.jpg"; }tomato2;
bitmap { filename = "pictures\\tomato3_.jpg"; }tomato3;
bitmap { filename = "pictures\\tooth1_.jpg"; }tooth1;
bitmap { filename = "pictures\\turtle1_.jpg"; }turtle1;
bitmap { filename = "pictures\\turtle2_.jpg"; }turtle2;
bitmap { filename = "pictures\\turtle3_.jpg"; }turtle3;
} stimuli;
####### visual stimuli trials ########
picture { bitmap { filename = "Pictures\\empty.bmp"; preload = true; } b_target; #width = 222; height = 222; } b_target;
x = 0; y = 0;
box { height = 3; width = 30; color = 0, 0, 0; } horz_s_pic;
x = 0; y = 0;
box { height = 30; width = 3; color = 0, 0, 0; } vert_s_pic;
x = 0; y = 0;
box { height = 3; width = 3; color = 255, 255, 255; } dot_s_pic;
x = 0; y = 0;
} p_target;
trial {
trial_duration = stimuli_length;
stimulus_event {
picture p_target;
code = "target";
port_code = 20; # needs to be there at scanner!! (for proper log file eyetracker)
time = 0;
duration = 690;# 700 ms minus security (hard coded because SDL has to precede PCL)
}target_event;
}trial_target;
picture {ellipse_graphic {ellipse_width = 20; ellipse_height = 20; color = 0, 0, 0; rotation = 30;} circle;
x = 0; y = 0;
} cue; # speech cue
trial {
trial_duration = stimuli_length;
stimulus_event {
picture cue;
code = "speech_cue";
port_code = 60;
time = 0;
duration = 1990;# 2000 ms minus security
}cue_event;
}trial_cue;
|
0f1858e0a0bc344fc3331419e4b3aa6b296b3f5e
|
9f9364e082d4bc2f7ee5cbd7a489642615821873
|
/src/testCases/test3-12.tst
|
fdafb58f9ffa0de498f763e5cec26cc6a20bf179
|
[] |
no_license
|
abrageddon/DLX-Opt
|
4602617f83ddf8cb0fea83fecd2faa362849dfcd
|
20038078f11a7ae67e7ab336e551e23966551290
|
refs/heads/master
| 2021-01-01T05:49:33.218016
| 2013-03-14T06:08:45
| 2013-03-14T06:08:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 229
|
tst
|
test3-12.tst
|
main
function fibo(n);
array[10] f;
var i;
{
let f[0] <- 0;
let f[1] <- 1;
let i <- 2;
while i < 10 do
let f[i] <- f[i - 1] + f[i - 2];
let i <- i + 1
od;
return f[n]
};
{
call outputnum(call fibo(9))
}.
|
4a148327701c3a23956705a45d20ec1a93d9e1a0
|
0c5d5d2faf2e20464f1d35715b838f50a335ddf5
|
/tests/remove.tst
|
e4e44d14bb649a07119fa033e70ecbef5efe7ba4
|
[] |
no_license
|
lmartel-school/cs244b-lab1
|
cb0ed7fed5ab53c7673b7ae18cfb99e9f4c23a55
|
f855aa381796cd82c40b0863e39eb41bff5ec820
|
refs/heads/master
| 2021-01-04T22:33:18.154316
| 2014-10-19T21:36:41
| 2014-10-19T21:36:41
| 25,385,346
| 2
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 119
|
tst
|
remove.tst
|
remove BADPATH
create /test 123
remove /test
remove /test
remove /foo
create /test abc
create /test/b def
remove /test
|
a00ec69a92f1e2912cbda6024c489b8d45978043
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/browsable_source/2.0/Unix/scilab-2.0/macros/xdess/errbar.sci
|
b9243cb264536f4c2dbe01277da35d6f25c19d1f
|
[
"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
| 1,060
|
sci
|
errbar.sci
|
//<>=errbar(x,y,em,ep)
//<>=errbar(x,y,em,ep)
// Rajoute des barres d'erreur sur un graphique 2D
// x et y decrivent les courbes (voir plot2d)
// em et ep sont deux matrices la barre d'erreur au point
// <x(i,j),y(i,j)> va de <x(i,j),y(i,j)-em(i,j)> a <x(i,j),y(i,j)+em(i,j)>
// x,y,em et ep sont donc des matrices (p,q), q courbes contenant chacunes
// p points.
// Exemple : taper errbar()
// x=0:0.1:2*%pi;
// y=<sin(x);cos(x)>';x=<x;x>';plot2d(x,y);
// errbar(x,y,0.05*ones(x),0.03*ones(x));
//!
[lhs,rhs]=argn(0)
if rhs<=0,write(%io(2),'x=0:0.1:2*%pi;');
write(%io(2),'y=[sin(x);cos(x)]'';x=[x;x]''');
write(%io(2),'plot2d(x,y);');
write(%io(2),'errbar(x,y,0.05*ones(x),0.03*ones(x));');
x=0:0.1:2*%pi;
y=[sin(x);cos(x)]';x=[x;x]';plot2d(x,y);
errbar(x,y,0.05*ones(x),0.03*ones(x));
return;end;
xselect();
[n1,n2]=size(x);
y1=matrix(y-em,1,n1*n2);
x1=matrix(x,1,n1*n2);
y2=matrix(y+ep,1,n1*n2);
[frect,f1rect]=xgetech();
xclip(f1rect(1),f1rect(4),f1rect(3),abs(f1rect(4)-f1rect(2)));
xsegs([x1;x1],[y1;y2]);
xclip();
//end
|
e6de8f9324cdfd932548c143af0d16cf73438906
|
449f0d9106e35fc361bdb53d55d9563796f0d2c3
|
/week8/scilab.sce
|
07894bf36c160297eef4f507f4772448e515bbac
|
[] |
no_license
|
aleksey-sinos/OpenEdu
|
72eefffcc4ddbb45345a9bee61e534f9bf540390
|
6c3b4943a669b9398ad75e0fae44937cc6b04dc0
|
refs/heads/master
| 2020-06-30T13:29:27.839046
| 2019-12-04T07:47:12
| 2019-12-04T07:47:12
| 74,368,213
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 3,061
|
sce
|
scilab.sce
|
////////////////////////////////////////////////////////////////////////////////
//// Неделя 8.
//// Формирующий фильтр.
//// Моделирование динамики матрицы ковариаций в байесовском подходе.
//// Рекуррентный метод. Векторный случай
////////////////////////////////////////////////////////////////////////////////
clear; deff('[numd] = roundd(num,n)','numd = round(num *10^n) / 10^n');
rand("seed",getdate("s")); grand("setsd",getdate("s"));
//// Параметры ////
mn = 100; //Количество измерений
dt = 1; //Интервал дискретизации
x_0 = [roundd(5000+rand(1,'nor')*100,1); roundd(rand(1,'nor')*3,1)]; //Начальное значение
P_0 = [10 0; //Начальная матрица ковариаций
0 0.1];
F = [1 dt; //Матрица динамики
0 1];
G = [0; roundd(0.5+rand(1,'uin'),2)];//Матрица шумов
Q = 1; //Матрица ковариаций шумов
//Выделение памяти
x = zeros(2,mn); x(:,1) = x_0;
x_ex = zeros(2,mn,5);
P = zeros(2,2,mn); P(:,:,1) = P_0;
//// Моделирование ////
//Мат. ожидание и матрица ковариаций
for i = 2:mn
x(:,i) = F*x(:,i-1);
P(:,:,i) = F*P(:,:,i-1)*F'+G*Q*G';
end
//Реализации
for j = 1:5
x_ex(:,1,j) = x_0+sqrt(P_0)*rand(2,1,'nor');
for i = 2:mn
x_ex(:,i,j) =F*x_ex(:,i-1,j)+sqrt(G)*rand(1,'nor');
end
end
//// Графики ////
figure(1); clf;
subplot(2,1,2);
title('Динамика и СКО высоты')
set(gca(),"auto_clear","off"); xgrid(1,0.1,10);
plot(1:mn,x(1,:),'b');
plot(1:mn,3*sqrt(squeeze(P(1,1,:)))'+x(1,:),'r');
for j = 1:5
plot(1:mn,x_ex(1,:,j),'g');
end
plot(1:mn,-3*sqrt(squeeze(P(1,1,:)))'+x(1,:),'r');
legend('Математическое ожидание','3 sigma','Примеры возможных реализаций');
subplot(2,1,1);
title('Динамика и СКО вертикальной скорости')
set(gca(),"auto_clear","off"); xgrid(1,0.1,10);
plot(1:mn,x(2,:),'b');
plot(1:mn,3*sqrt(squeeze(P(2,2,:)))'+x(2,:),'r');
for j = 1:5
plot(1:mn,x_ex(2,:,j),'g');
end
plot(1:mn,-3*sqrt(squeeze(P(2,2,:)))'+x(2,:),'r');
legend('Математическое ожидание','3 sigma','Примеры возможных реализаций');
mprintf('Математическое ожидание высоты через 100 секунд %f \n',x(1,100));
mprintf('3*СКО высоты через 100 секунд %f \n',3*sqrt(squeeze(P(1,1,100))));
mprintf('3*СКО высоты > 300 через %f секунд \n',find(3*sqrt(P(1,1,:))>300,1));
//// Запись данных ////
deletefile('data.txt'); deletefile('fillings.txt'); deletefile('answer.txt');
answer = [x(1,100); 3*sqrt(squeeze(P(1,1,100)));find(3*sqrt(P(1,1,:))>300,1)];
fillings = [x_0; G(2)];
write('answer.txt',answer);
write('fillings.txt',fillings);
write('data.txt',[]);
|
ec9f8be1432a1ac963851c41e0f38040074fce20
|
918e8207504f36c7eaf613b62c71e91ad3a33a8a
|
/2017/educrace_by_lulu/EducRace/DATA/Scenario/CarCrash.sce
|
dfbe09bf2bf0c4718f20d9740276b441fa2568b1
|
[] |
no_license
|
lazarusccr/GraphicsContest
|
b1299eeb74449b8714f126deeb64dc02da285260
|
8dec398588970e958c7f08ab7be32af760acbbd6
|
refs/heads/master
| 2021-04-29T07:29:46.122593
| 2017-12-28T16:26:51
| 2017-12-28T16:26:51
| 77,950,829
| 4
| 1
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 115
|
sce
|
CarCrash.sce
|
Tint 255 0 0 0
Label Here1
TintAlphaChange 100 0.5 Linear
Wait 0.5
TintAlphaChange 0 0.5 Linear
Wait 0.5
Goto Here1
|
7846c5046a9bbf62b92629a56e99f16a7cfd6b57
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3754/CH33/EX33.3/33_3.sce
|
4f5a9ed1fb4d293dcea4cb1bc06e34f9b289888d
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 498
|
sce
|
33_3.sce
|
clear//
//Variables
RC = 250.0 * 10**-12 //Time constance (in seconds)
Vomax = 50.0 //Maximum output voltage (in volts)
tau = 0.05 * 10**-6 //time (in seconds)
//Calculation
alpha = Vomax / RC //alpha (in volt per second)
Vp = alpha * tau //Peak voltage (in volts)
//Result
printf("\n The peak value of input voltage is %0.3f kV.",Vp * 10**-3)
|
8c21ea46c6147b59ee2b5c09eb2dbfc43a55933d
|
5887829f5a0a005033807cf7dc4fb7231eb280ec
|
/Listing/chapter 4/Listing423.sce
|
8dc0af8414d1c0e7275531f299be909e029735c0
|
[] |
no_license
|
joaolrneto/learning_scilab
|
78ecc0019f167b57bc35647c4ac785ece01e443e
|
9624c9a6736860a8a836b0f801256b6224756585
|
refs/heads/main
| 2023-03-17T22:17:51.853368
| 2021-03-15T20:58:34
| 2021-03-15T20:58:34
| 344,478,059
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 69
|
sce
|
Listing423.sce
|
clc
clear
clf()
t=[0:%pi/20:2*%pi]';
z=sin(t)*cos(t');
plot3d(t,t,z)
|
71fca8adc76f73d7b66b09702db6e398484f53fe
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1511/CH2/EX2.30/ex2_30.sce
|
83275d945e9a907bde3dce3dd892fab08736f677
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 260
|
sce
|
ex2_30.sce
|
// Example 2.30 page no-95
clear
clc
B=0.1 //Wb/m^2
Vh=50 //mV
I=10 //mA
rho=2*10^5 //Ohm-cm
w=3*10^-3 //m
x=B*I*10^-3/(Vh*10^-2*w)
printf("\n1/RH=%.3f",x)
y=1/(rho*10^-2)
printf("\nConductivity = %f mhos/meter\nmu=%.0f cm^2/V-sec",y,(y/x)*10^6)
|
b2c8d66cfa144e146bfa738776543f6afd115238
|
61e3e2317e065462d468e42022e5ea06c70c9c7e
|
/dtree/ex/monk1.tst
|
120f6277af6698f074d397f69644a9a09db83207
|
[] |
no_license
|
paul-brett/borgelt
|
4374959e70557717c19d73f887e4d136f1427299
|
25868b8a63a885d387ddcd9ad983b12978b7a083
|
refs/heads/master
| 2020-03-17T03:43:28.063793
| 2018-05-13T16:05:55
| 2018-05-13T16:05:55
| 133,247,844
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 6,084
|
tst
|
monk1.tst
|
att1 att2 att3 att4 att5 att6 class
1 1 1 1 1 1 1
1 1 1 1 1 2 1
1 1 1 1 2 1 1
1 1 1 1 2 2 1
1 1 1 1 3 1 1
1 1 1 1 3 2 1
1 1 1 1 4 1 1
1 1 1 1 4 2 1
1 1 1 2 1 1 1
1 1 1 2 1 2 1
1 1 1 2 2 1 1
1 1 1 2 2 2 1
1 1 1 2 3 1 1
1 1 1 2 3 2 1
1 1 1 2 4 1 1
1 1 1 2 4 2 1
1 1 1 3 1 1 1
1 1 1 3 1 2 1
1 1 1 3 2 1 1
1 1 1 3 2 2 1
1 1 1 3 3 1 1
1 1 1 3 3 2 1
1 1 1 3 4 1 1
1 1 1 3 4 2 1
1 1 2 1 1 1 1
1 1 2 1 1 2 1
1 1 2 1 2 1 1
1 1 2 1 2 2 1
1 1 2 1 3 1 1
1 1 2 1 3 2 1
1 1 2 1 4 1 1
1 1 2 1 4 2 1
1 1 2 2 1 1 1
1 1 2 2 1 2 1
1 1 2 2 2 1 1
1 1 2 2 2 2 1
1 1 2 2 3 1 1
1 1 2 2 3 2 1
1 1 2 2 4 1 1
1 1 2 2 4 2 1
1 1 2 3 1 1 1
1 1 2 3 1 2 1
1 1 2 3 2 1 1
1 1 2 3 2 2 1
1 1 2 3 3 1 1
1 1 2 3 3 2 1
1 1 2 3 4 1 1
1 1 2 3 4 2 1
1 2 1 1 1 1 1
1 2 1 1 1 2 1
1 2 1 1 2 1 0
1 2 1 1 2 2 0
1 2 1 1 3 1 0
1 2 1 1 3 2 0
1 2 1 1 4 1 0
1 2 1 1 4 2 0
1 2 1 2 1 1 1
1 2 1 2 1 2 1
1 2 1 2 2 1 0
1 2 1 2 2 2 0
1 2 1 2 3 1 0
1 2 1 2 3 2 0
1 2 1 2 4 1 0
1 2 1 2 4 2 0
1 2 1 3 1 1 1
1 2 1 3 1 2 1
1 2 1 3 2 1 0
1 2 1 3 2 2 0
1 2 1 3 3 1 0
1 2 1 3 3 2 0
1 2 1 3 4 1 0
1 2 1 3 4 2 0
1 2 2 1 1 1 1
1 2 2 1 1 2 1
1 2 2 1 2 1 0
1 2 2 1 2 2 0
1 2 2 1 3 1 0
1 2 2 1 3 2 0
1 2 2 1 4 1 0
1 2 2 1 4 2 0
1 2 2 2 1 1 1
1 2 2 2 1 2 1
1 2 2 2 2 1 0
1 2 2 2 2 2 0
1 2 2 2 3 1 0
1 2 2 2 3 2 0
1 2 2 2 4 1 0
1 2 2 2 4 2 0
1 2 2 3 1 1 1
1 2 2 3 1 2 1
1 2 2 3 2 1 0
1 2 2 3 2 2 0
1 2 2 3 3 1 0
1 2 2 3 3 2 0
1 2 2 3 4 1 0
1 2 2 3 4 2 0
1 3 1 1 1 1 1
1 3 1 1 1 2 1
1 3 1 1 2 1 0
1 3 1 1 2 2 0
1 3 1 1 3 1 0
1 3 1 1 3 2 0
1 3 1 1 4 1 0
1 3 1 1 4 2 0
1 3 1 2 1 1 1
1 3 1 2 1 2 1
1 3 1 2 2 1 0
1 3 1 2 2 2 0
1 3 1 2 3 1 0
1 3 1 2 3 2 0
1 3 1 2 4 1 0
1 3 1 2 4 2 0
1 3 1 3 1 1 1
1 3 1 3 1 2 1
1 3 1 3 2 1 0
1 3 1 3 2 2 0
1 3 1 3 3 1 0
1 3 1 3 3 2 0
1 3 1 3 4 1 0
1 3 1 3 4 2 0
1 3 2 1 1 1 1
1 3 2 1 1 2 1
1 3 2 1 2 1 0
1 3 2 1 2 2 0
1 3 2 1 3 1 0
1 3 2 1 3 2 0
1 3 2 1 4 1 0
1 3 2 1 4 2 0
1 3 2 2 1 1 1
1 3 2 2 1 2 1
1 3 2 2 2 1 0
1 3 2 2 2 2 0
1 3 2 2 3 1 0
1 3 2 2 3 2 0
1 3 2 2 4 1 0
1 3 2 2 4 2 0
1 3 2 3 1 1 1
1 3 2 3 1 2 1
1 3 2 3 2 1 0
1 3 2 3 2 2 0
1 3 2 3 3 1 0
1 3 2 3 3 2 0
1 3 2 3 4 1 0
1 3 2 3 4 2 0
2 1 1 1 1 1 1
2 1 1 1 1 2 1
2 1 1 1 2 1 0
2 1 1 1 2 2 0
2 1 1 1 3 1 0
2 1 1 1 3 2 0
2 1 1 1 4 1 0
2 1 1 1 4 2 0
2 1 1 2 1 1 1
2 1 1 2 1 2 1
2 1 1 2 2 1 0
2 1 1 2 2 2 0
2 1 1 2 3 1 0
2 1 1 2 3 2 0
2 1 1 2 4 1 0
2 1 1 2 4 2 0
2 1 1 3 1 1 1
2 1 1 3 1 2 1
2 1 1 3 2 1 0
2 1 1 3 2 2 0
2 1 1 3 3 1 0
2 1 1 3 3 2 0
2 1 1 3 4 1 0
2 1 1 3 4 2 0
2 1 2 1 1 1 1
2 1 2 1 1 2 1
2 1 2 1 2 1 0
2 1 2 1 2 2 0
2 1 2 1 3 1 0
2 1 2 1 3 2 0
2 1 2 1 4 1 0
2 1 2 1 4 2 0
2 1 2 2 1 1 1
2 1 2 2 1 2 1
2 1 2 2 2 1 0
2 1 2 2 2 2 0
2 1 2 2 3 1 0
2 1 2 2 3 2 0
2 1 2 2 4 1 0
2 1 2 2 4 2 0
2 1 2 3 1 1 1
2 1 2 3 1 2 1
2 1 2 3 2 1 0
2 1 2 3 2 2 0
2 1 2 3 3 1 0
2 1 2 3 3 2 0
2 1 2 3 4 1 0
2 1 2 3 4 2 0
2 2 1 1 1 1 1
2 2 1 1 1 2 1
2 2 1 1 2 1 1
2 2 1 1 2 2 1
2 2 1 1 3 1 1
2 2 1 1 3 2 1
2 2 1 1 4 1 1
2 2 1 1 4 2 1
2 2 1 2 1 1 1
2 2 1 2 1 2 1
2 2 1 2 2 1 1
2 2 1 2 2 2 1
2 2 1 2 3 1 1
2 2 1 2 3 2 1
2 2 1 2 4 1 1
2 2 1 2 4 2 1
2 2 1 3 1 1 1
2 2 1 3 1 2 1
2 2 1 3 2 1 1
2 2 1 3 2 2 1
2 2 1 3 3 1 1
2 2 1 3 3 2 1
2 2 1 3 4 1 1
2 2 1 3 4 2 1
2 2 2 1 1 1 1
2 2 2 1 1 2 1
2 2 2 1 2 1 1
2 2 2 1 2 2 1
2 2 2 1 3 1 1
2 2 2 1 3 2 1
2 2 2 1 4 1 1
2 2 2 1 4 2 1
2 2 2 2 1 1 1
2 2 2 2 1 2 1
2 2 2 2 2 1 1
2 2 2 2 2 2 1
2 2 2 2 3 1 1
2 2 2 2 3 2 1
2 2 2 2 4 1 1
2 2 2 2 4 2 1
2 2 2 3 1 1 1
2 2 2 3 1 2 1
2 2 2 3 2 1 1
2 2 2 3 2 2 1
2 2 2 3 3 1 1
2 2 2 3 3 2 1
2 2 2 3 4 1 1
2 2 2 3 4 2 1
2 3 1 1 1 1 1
2 3 1 1 1 2 1
2 3 1 1 2 1 0
2 3 1 1 2 2 0
2 3 1 1 3 1 0
2 3 1 1 3 2 0
2 3 1 1 4 1 0
2 3 1 1 4 2 0
2 3 1 2 1 1 1
2 3 1 2 1 2 1
2 3 1 2 2 1 0
2 3 1 2 2 2 0
2 3 1 2 3 1 0
2 3 1 2 3 2 0
2 3 1 2 4 1 0
2 3 1 2 4 2 0
2 3 1 3 1 1 1
2 3 1 3 1 2 1
2 3 1 3 2 1 0
2 3 1 3 2 2 0
2 3 1 3 3 1 0
2 3 1 3 3 2 0
2 3 1 3 4 1 0
2 3 1 3 4 2 0
2 3 2 1 1 1 1
2 3 2 1 1 2 1
2 3 2 1 2 1 0
2 3 2 1 2 2 0
2 3 2 1 3 1 0
2 3 2 1 3 2 0
2 3 2 1 4 1 0
2 3 2 1 4 2 0
2 3 2 2 1 1 1
2 3 2 2 1 2 1
2 3 2 2 2 1 0
2 3 2 2 2 2 0
2 3 2 2 3 1 0
2 3 2 2 3 2 0
2 3 2 2 4 1 0
2 3 2 2 4 2 0
2 3 2 3 1 1 1
2 3 2 3 1 2 1
2 3 2 3 2 1 0
2 3 2 3 2 2 0
2 3 2 3 3 1 0
2 3 2 3 3 2 0
2 3 2 3 4 1 0
2 3 2 3 4 2 0
3 1 1 1 1 1 1
3 1 1 1 1 2 1
3 1 1 1 2 1 0
3 1 1 1 2 2 0
3 1 1 1 3 1 0
3 1 1 1 3 2 0
3 1 1 1 4 1 0
3 1 1 1 4 2 0
3 1 1 2 1 1 1
3 1 1 2 1 2 1
3 1 1 2 2 1 0
3 1 1 2 2 2 0
3 1 1 2 3 1 0
3 1 1 2 3 2 0
3 1 1 2 4 1 0
3 1 1 2 4 2 0
3 1 1 3 1 1 1
3 1 1 3 1 2 1
3 1 1 3 2 1 0
3 1 1 3 2 2 0
3 1 1 3 3 1 0
3 1 1 3 3 2 0
3 1 1 3 4 1 0
3 1 1 3 4 2 0
3 1 2 1 1 1 1
3 1 2 1 1 2 1
3 1 2 1 2 1 0
3 1 2 1 2 2 0
3 1 2 1 3 1 0
3 1 2 1 3 2 0
3 1 2 1 4 1 0
3 1 2 1 4 2 0
3 1 2 2 1 1 1
3 1 2 2 1 2 1
3 1 2 2 2 1 0
3 1 2 2 2 2 0
3 1 2 2 3 1 0
3 1 2 2 3 2 0
3 1 2 2 4 1 0
3 1 2 2 4 2 0
3 1 2 3 1 1 1
3 1 2 3 1 2 1
3 1 2 3 2 1 0
3 1 2 3 2 2 0
3 1 2 3 3 1 0
3 1 2 3 3 2 0
3 1 2 3 4 1 0
3 1 2 3 4 2 0
3 2 1 1 1 1 1
3 2 1 1 1 2 1
3 2 1 1 2 1 0
3 2 1 1 2 2 0
3 2 1 1 3 1 0
3 2 1 1 3 2 0
3 2 1 1 4 1 0
3 2 1 1 4 2 0
3 2 1 2 1 1 1
3 2 1 2 1 2 1
3 2 1 2 2 1 0
3 2 1 2 2 2 0
3 2 1 2 3 1 0
3 2 1 2 3 2 0
3 2 1 2 4 1 0
3 2 1 2 4 2 0
3 2 1 3 1 1 1
3 2 1 3 1 2 1
3 2 1 3 2 1 0
3 2 1 3 2 2 0
3 2 1 3 3 1 0
3 2 1 3 3 2 0
3 2 1 3 4 1 0
3 2 1 3 4 2 0
3 2 2 1 1 1 1
3 2 2 1 1 2 1
3 2 2 1 2 1 0
3 2 2 1 2 2 0
3 2 2 1 3 1 0
3 2 2 1 3 2 0
3 2 2 1 4 1 0
3 2 2 1 4 2 0
3 2 2 2 1 1 1
3 2 2 2 1 2 1
3 2 2 2 2 1 0
3 2 2 2 2 2 0
3 2 2 2 3 1 0
3 2 2 2 3 2 0
3 2 2 2 4 1 0
3 2 2 2 4 2 0
3 2 2 3 1 1 1
3 2 2 3 1 2 1
3 2 2 3 2 1 0
3 2 2 3 2 2 0
3 2 2 3 3 1 0
3 2 2 3 3 2 0
3 2 2 3 4 1 0
3 2 2 3 4 2 0
3 3 1 1 1 1 1
3 3 1 1 1 2 1
3 3 1 1 2 1 1
3 3 1 1 2 2 1
3 3 1 1 3 1 1
3 3 1 1 3 2 1
3 3 1 1 4 1 1
3 3 1 1 4 2 1
3 3 1 2 1 1 1
3 3 1 2 1 2 1
3 3 1 2 2 1 1
3 3 1 2 2 2 1
3 3 1 2 3 1 1
3 3 1 2 3 2 1
3 3 1 2 4 1 1
3 3 1 2 4 2 1
3 3 1 3 1 1 1
3 3 1 3 1 2 1
3 3 1 3 2 1 1
3 3 1 3 2 2 1
3 3 1 3 3 1 1
3 3 1 3 3 2 1
3 3 1 3 4 1 1
3 3 1 3 4 2 1
3 3 2 1 1 1 1
3 3 2 1 1 2 1
3 3 2 1 2 1 1
3 3 2 1 2 2 1
3 3 2 1 3 1 1
3 3 2 1 3 2 1
3 3 2 1 4 1 1
3 3 2 1 4 2 1
3 3 2 2 1 1 1
3 3 2 2 1 2 1
3 3 2 2 2 1 1
3 3 2 2 2 2 1
3 3 2 2 3 1 1
3 3 2 2 3 2 1
3 3 2 2 4 1 1
3 3 2 2 4 2 1
3 3 2 3 1 1 1
3 3 2 3 1 2 1
3 3 2 3 2 1 1
3 3 2 3 2 2 1
3 3 2 3 3 1 1
3 3 2 3 3 2 1
3 3 2 3 4 1 1
3 3 2 3 4 2 1
|
25b3d80cd296f57a2f9db56c00610b4012d82414
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/503/CH8/EX8.32/ch8_32.sci
|
e6c9a3af761beaa81b9fc602299e09c771c47fb8
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 506
|
sci
|
ch8_32.sci
|
//to calculate syncronising power/elec deg,pu sync torque/mech deg
clc;
j=sqrt(-1);
Xd=.8;
Xq=.5;
Vt=1;
pf=.8;
phi=acosd(pf);
Ia=1*complex(cosd(phi),sind(phi));
Ef=Vt-j*Ia*Xq;
Eff=abs(Ef);
dl=atand(imag(Ef)/real(Ef));
w=-dl+phi;
Id=abs(Ia)*sind(w);
Ef=Eff+Id*(Xd-Xq);
Psyn=abs(Ef)*Vt*cosd(dl)/Xd+Vt^2*((Xd-Xq)/(Xd*Xq))*cosd(2*dl);
disp(Psyn*(%pi/180),'syncronising power(pu)/elec deg');
f=50;
P=12;
n_s=(120*f/P)*(2*%pi/60);
Tsyn=Psyn/n_s;disp(Tsyn,'pu sync torque/mech deg');
|
df41a3ba102497827ce3c5743ddf540585dd614a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2840/CH13/EX13.4/ex13_4.sce
|
6eb8e596a852b4cc12a527dc69617e5429bb74c8
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 263
|
sce
|
ex13_4.sce
|
clc;
clear all;
u0=4*%pi*1e-7;
b=9.27*1e-24;
H=1e3;//homogeneous field
k=1.38*1e-23;//boltzmann constant
T=303;//temp in kelvin
T1 = T - 273; // Temp In Degree
x=u0*b*H/(k*T);//avg magnetic moment
disp('bohr magneton/spin',x,'avg magnetic moment is=');
|
af7d078221fa94fb887c810309c1ca6f6f6853ef
|
4e9df66700bcf9688afe22df0009cdf4a17bc61f
|
/Scilab_Lab/examples/f2t.sci
|
75fb83cf15b9aa43fd859906f9f28f686a901de1
|
[] |
no_license
|
vmebus/workspace
|
e18947a1f967e6a3a7dfbc5cce6f92380d8637fc
|
f251b8a8e6cec30a77c7ef7b4103c5ee6e6d1393
|
refs/heads/master
| 2021-01-09T21:53:45.183564
| 2015-10-03T06:42:23
| 2015-10-03T06:42:23
| 36,120,248
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 197
|
sci
|
f2t.sci
|
function a=f2t(S,fs)
N=length(S);
T=1/fs*N;
t=[-(T/2):1/fs:(T/2-1/fs)];
temp1=fft(S)/T;
temp2=N*ifft(S)/T;
a(1:N/2)=temp1(N/2+1:-1:2);
a(N/2+1:N)=temp2(1:N/2);
a=a.*exp((-%i*%pi)*fs*t);
endfunction
|
86b9e2a5949a0339cb9351877681a3f7a15f041d
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3845/CH9/EX9.5/Ex9_5.sce
|
39bd41f51208f074967f0833ec46461d5792e15a
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,262
|
sce
|
Ex9_5.sce
|
//Example 9.5
m_ub=55.0;//Mass of upper body (kg)
m_box=30.0;//Mass of box (kg)
r_ub=35*10^-2;//Distance of CG of upper body from pivot (m)
r_box=50*10^-2;//Distance of CG of box from pivot (m)
r_B=8*10^-2;//Distance of force F_B from pivot (m)
g=9.80;//Acceleration due to gravity (m/s)
F_B=((r_ub*m_ub*g)+(r_box*m_box*g))/r_B;//Force in the back muscles (N)
printf('a.Force in the back muscles = %0.2e N',F_B)
ratio=F_B/(m_ub*g+m_box*g);
printf('\nRatio of the force in the back muscles to the weight of the upper body plus the load = %0.2f',ratio)
/////////////////////////////////////
theta=29;//Direction of F_B (deg)
F_Vy=(m_ub*g)+(m_box*g)+F_B*sind(theta);//Vertical component of force on vertebrae (N)
F_Vx=F_B*cosd(theta);//Horizontal component of force on vertebrae (N)
F_V=sqrt(F_Vx^2+F_Vy^2);//Force on vertebrae (N)
printf('\nb.Force exerted by vertebrae = %0.2e N',F_V)
THETA=atand(F_Vy/F_Vx);//Direction of F_V (deg)
printf('\nDirection of force exerted by vertebrae = %0.1f deg',THETA)
ratio1=F_V/(m_ub*g+m_box*g);
printf('\nRatio of the force exerted by the vertebrae to the weight of the upper body plus the load = %0.2f',ratio1)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.