blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2
values | repo_name stringlengths 6 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 21
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 141k 586M ⌀ | star_events_count int64 0 30.4k | fork_events_count int64 0 9.67k | gha_license_id stringclasses 8
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 50
values | src_encoding stringclasses 23
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 5 10.4M | extension stringclasses 29
values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11f9a0b8d7a7591d0c36654469dbf6d260289749 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2384/CH9/EX9.6/ex9_6.sce | 6bb7c12ef04ce5ef52fd4d5559e6c2404ee55350 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 593 | sce | ex9_6.sce | // Exa 9.6
clc;
clear;
close;
format('v',7)
// Given data
V1 = 2200;// in V
V2 = 440;// in V
R1 = 0.3;// in ohm
R2 = 0.01;// in ohm
X1 = 1.1;// in ohm
X2 = 0.035;// in ohm
K = V2/V1;
Rating = 100;// in KVA
I1 = (Rating*10^3)/V1;// in A
I2 = (Rating*10^3)/V2;// in A
R1e = R1 + (R2/(K^2));// in ohm
X1e =... |
109b2df49f04e350bd4691f7242a9fe02de5985c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1538/CH19/EX19.4/Ex19_4.sce | 0109bfce0efe9dc04d105403fd7548fd259407dc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 442 | sce | Ex19_4.sce | //example-19.4
//page no-565
//given
//resistivity
rho=2*10^-3 //ohm m
//conductivity
sigma=1/rho //per ohm m
//electrons and holes mobility
mue=0.3 //m^2/V s
muh=0.1 //m^2/V s
//charge on holes and electrons are same so
e=1.602*10^-19 //C
//we know that
//sigma=ne*e*mue+nh*e*muh
//here ne=nh=n
//so... |
1de022af174a870efcfba29d8f0f0c98054fb675 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2534/CH2/EX2.10/Ex2_10.sce | 587726c6bff8c21b44e038efa6539036dafecad5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 207 | sce | Ex2_10.sce | //Ex2_10
clc
C = 10*10^-6
V = 100
W = C*(V^2)/2
disp("C = "+string(C)+"F")//capacitance
disp("V = "+string(V)+"V")//voltage
disp("W = C*(V^2)/2 = "+string(W)+"Joules")//calculating for energy stored
|
068d271b3a34a41050fa55402540102843ec082f | c6f8bc8a96cc612d33dfd5a50cc7ab6ddb4442c5 | /resultados/CurrentAlgorithms/Scilab/create_dataset.sci | d3e2f6819b0c3f799706b8d3d11da300a433a42c | [] | no_license | gabiapple/TCC | 5a0b28e7d0460e18ec152cac98e2edff7709ab83 | ab518fb4711402dadfb2f6d76753d964b560ae89 | refs/heads/master | 2020-03-29T15:11:21.985800 | 2019-11-21T11:07:20 | 2019-11-21T11:09:15 | 150,049,256 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 711 | sci | create_dataset.sci | exec get_frequencies.sci;
function results = create_dataset(filenames, outfiles)
concat_row = 1; // concatenation accord to the rows
concat_col = 2; // concatenation accord to the cols
filenames_size = size(filenames)
for i=1:filenames_size(1) // get number of chords
results = [];
for j... |
69962e66cb6e8c7f9b6000bec11d9851e296ebeb | 449d555969bfd7befe906877abab098c6e63a0e8 | /3845/CH3/EX3.1/Ex3_1.sce | 817da7bba03fb0a2257884795467474eda46a7ba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,130 | sce | Ex3_1.sce | //Example 3.1
//This code utilises dependency file 'Compute_Angle.sci'
exec Compute_Angle.sci;//Execute dependency file
//To draw vector A
x=0;
y=0;//x and y are the starting point coordinates
magnitude=25;
theta=49;
x_end=magnitude*cosd(theta);
y_end=magnitude*sind(theta);//x_end and y_end are the ending... |
fe0fa3cb9af31a00ec38eba85d16df908c6fc96e | c36e1bfd38146c66289228951b38aed97a50e7ce | /Projet sur les réseaux de distribution d’eau/Scilab/OraclePG.sci | bb3b2ad8eb4574f4fb02ee2fce6b00208e82040a | [
"MIT"
] | permissive | AmineKheldouni/Optimization-Control | 73e4c50c2edbac1863d231036125c405eea1807c | 417336ff19b174668be002c4a5d24bd78c88c39e | refs/heads/master | 2020-04-14T22:30:01.903485 | 2019-01-04T23:35:20 | 2019-01-04T23:35:20 | 164,165,063 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 262 | sci | OraclePG.sci |
function [F,G] = OraclePG(qc,ind)
q = q0+B*qc;
if (ind == 2 | ind == 4) then
F = (1/3) * (q)' * (r .* (q0 + B * qc) .* abs(q)) + pr' * (Ar*(q));
end
if (ind == 3 | ind == 4) then
G = B' * (r .* (q) .* abs((q)) + Ar' * pr);
end
endfunction
|
5c53d0c743116b34888431d3c74f29481fffcffc | 297b29fb450286d0f7fa619e58c9f4a86949544a | /WalshCode.sci | ac9426153cb9ad4a05a36a972cd21bfd14c4514f | [] | no_license | harshal93shah/scilabcom | 46dc948c1e0d0b37b0a69dfa203347298cc01e40 | 09c5506089a4283968d963ed3812de9823c5a008 | refs/heads/master | 2020-04-06T07:03:23.954966 | 2016-10-04T11:49:41 | 2016-10-04T11:49:41 | 54,882,787 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,940 | sci | WalshCode.sci | function [y] = WalshCode(len,index,opsamples)
y=[];
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
//HadamardCode Generate hadamard code
//Y = WalshCode(len,opsamples)) outputs a frame of the Walsh
// code in column vector Y. It generates ... |
ff83e3e2641becfd7273fe083ed6200293cf8f82 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2144/CH2/EX2.1/exa_2_1.sce | 19f021566b516bca48e4c7ba5d5deace5462e541 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 229 | sce | exa_2_1.sce | // Example 2.1
clc;
clear;
close;
// Given data
P1= 250;// in kN/m^2
V1= 6.2;// in m^3
V2= 1.82;// in m^3
// Formula P1*V1 = P2*V2
P2= P1*V1/V2;// in kN/m^2
disp(P2,"Pressure of air after compression in kN/m^2 is : ")
|
e4d79c5603fac4dfd776b610ee27adf9688c31f4 | 3592fbcb99d08024f46089ba28a6123aeb81ff3c | /src/transformation/expMap.sci | 033086fc83dc19c62b4fcea13fef2689882818c8 | [] | no_license | clairedune/sciGaitanLib | a29ab61206b726c6f0ac36785ea556adc9ef03b9 | 7498b0d707a24c170fc390f7413359ad1bfefe9f | refs/heads/master | 2020-12-11T01:51:13.640472 | 2015-01-28T13:52:26 | 2015-01-28T13:52:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,657 | sci | expMap.sci | function [M] = expMapDirectThetaU(v,dt)
// compute the transformation from the pose t to the pose t+dt
// input : the velocity (m/s,rad/s) and the time to apply it (s)
// the velocity vector is a ThetaU
// resulting motion in translation and theta U
//disp("1.Create the vector v_dt");
v_dt = v * dt;
u = v_dt(4:6);
... |
866ba9276e7de6950c9c27570040ddc6b803e3c7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3830/CH2/EX2.3/Ex2_3.sce | 7c43f41dafb16f856602d5b70f03d4c161f5b54e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 296 | sce | Ex2_3.sce | // Exa 2.3
clc;
clear;
// Given
// A phase shift oscillator
R = 800*10^3; // in Ohm's
// R = R1 = R2 = R3 .. given
C = 100*10^-12; // in Farad
// C = C1 = C2 = C3 .. farad
// Solution
fo = 1/(2*%pi*R*C*sqrt(6));
printf(' The frequency of oscillations = %d Hz \n',fo);
|
6234c2c9713f5d52c444127435669167f325bf03 | 676ffceabdfe022b6381807def2ea401302430ac | /solvers/CompressibleFlowSolver/Tests/Couette_WeakDG_LDG_Exact_par.tst | 46b31a4c29741981d4b9312d875dd2c431f8f167 | [
"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,128 | tst | Couette_WeakDG_LDG_Exact_par.tst | <?xml version="1.0" encoding="utf-8" ?>
<test>
<description>NS, Couette flow with periodic BCs, exact solution, parallel</description>
<executable>CompressibleFlowSolver</executable>
<parameters>-I parts=6,7:2,4,5:0,1,3 Couette_WeakDG_LDG_Exact_par.xml</parameters>
<processes>4</processes>
<files>
... |
b913c4bdf9c05188925a58ce5b5d42fa34debf3a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2777/CH3/EX3.11/Ex3_11.sce | b112baaca23f476b6e8090e7d6098eddc23c75ef | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,416 | sce | Ex3_11.sce |
// ELECTRICAL MACHINES
// R.K.Srivastava
// First Impression 2011
// CENGAGE LEARNING INDIA PVT. LTD
// CHAPTER : 3 : TRANSFORMERS
// EXAMPLE : 3.11
clear ; clc ; close ; // Clear the work space and console
// GIVEN DATA
S = 50; // kVA Rating of the Transformer
f = 50; /... |
0ee4ef620c05800e180d9852cab814c28a1b3fc2 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4.1/macros/util/%c_rand.sci | fe1daa354c33dd3f1a40e4ffe2a9bddab48b3184 | [
"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 | 68 | sci | %c_rand.sci | function x=%c_rand(a)
// Copyright INRIA
[m,n]=size(a)
x=rand(m,n)
|
722609b0348af65863dcf022f452cc6458ae74e2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3831/CH19/EX19.2/Ex19_2.sce | 2b57c3e9e15303c516e24d41d466350c1ab9ad27 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex19_2.sce | // Example 19_2
clc;funcprot(0);
// Given data
T=100.0;// °C
// Solution
// (a)
alpha_fecu=-(-13.4+(0.028*T)+(0.00039*T^2))*10^-6;// V/K
// (b)
pi_fecu=(T+273.16)*alpha_fecu;// V
printf('\n(a)The relative Seebeck coefficient,alpha_fecu=%1.2e V/K \n(b)The relative Peltier coefficient,pi_fecu=%1.2e V',alpha_fe... |
c4faf6014ebb8b9382338d8fa49e511729c693b3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2216/CH4/EX4.4/ex_4_4.sce | 5d3d4104cb59b6fe49369a379c01099ca5c96adf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 273 | sce | ex_4_4.sce | // Example 4.4:core diameter
clc;
clear;
close;
format('v',4)
d=0.02;//difference
n1=1.5;//core refrative index
m=1000;// number of modes
h= 1.3;// Wavelenght in micrometers
a=((h/(%pi*n1))*(m/d)^(1/2));//core diamter in micro meter
disp(a,"core diameter in micro meter")
|
f8d24ed5765da8b665cb4f512f1dfd8ae9767791 | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/Programming/testdeff.sce | cfc91e7727c09dc302d0259dea852dd9832cb02b | [] | no_license | markusmorawitz77/Scilab | 902ef1b9f356dd38ea2dbadc892fe50d32b44bd0 | 7c98963a7d80915f66a3231a2235010e879049aa | refs/heads/master | 2021-01-19T23:53:52.068010 | 2017-04-22T12:39:21 | 2017-04-22T12:39:21 | 89,051,705 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 49 | sce | testdeff.sce | deff('y=foo(x)','y=1+x^2')
foo(3) // outputs 10
|
53a72623ce4b65b2d3f54a83a823d85a272292f4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1655/CH2/EX2.5.1/Example_2_5_1.sce | 37160c0bf30a0f551fd18b6277ac470f105d1c1a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 467 | sce | Example_2_5_1.sce | // Example 2.5.1 page 2.17
clc;
clear;
NA = 0.45 //Numerical aperture
betaB = 45 // Skew ray change direction by 90 degree at each reflection
Meridional_theta = asind(NA); //computing acceptacne angle for meridoinal ray
Skew_theta = asind(NA/cosd(betaB)); //computing acceptacne angle for ske... |
a525b281cdefbcd5d502dafeaf96550a38b38d13 | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/final/ga/steepest.sci | 7f59af5601f6caaed8036103771a2a955d3744a9 | [] | no_license | mikeg2105/matlab-old | fe216267968984e9fb0a0bdc4b9ab5a7dd6e306e | eac168097f9060b4787ee17e3a97f2099f8182c1 | refs/heads/master | 2021-05-01T07:58:19.274277 | 2018-02-11T22:09:18 | 2018-02-11T22:09:18 | 121,167,118 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,749 | sci | steepest.sci | //
//
// steepest descent method with backtracking line search applied to the rastrigin function
//
//
function y=rastrigin(x) // the function to optimize
n=max(size(x));
y=n+sum(x.^2-cos(2*%pi*x));
endfunction
//-----------------------------------------------------
function y=rastrigingrad(x... |
611915f093eb0927c426d1b488eb678fd3b9575a | d03450e9645c09cb7389514ec5d4d8d9c06bdf4d | /Least-Squares Data Fitting/myfuncn.sci | af840a15e938a3e705d61569f7934c1d91273121 | [] | no_license | amiedemmel/Optimization-Projects | 29f3d11950c19f89aa2295d316888e4c6fa36ab4 | bc574f4311d6fc1534e7c4892dbadb52f5e4213f | refs/heads/master | 2021-01-01T05:47:41.682448 | 2015-05-08T15:56:59 | 2015-05-08T15:56:59 | 35,288,132 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 349 | sci | myfuncn.sci | //Homework Problem function evaluations
function [f,g,h] = myfuncn(x,t,y)
phi=x(1)*exp(x(2)*t)
r=phi-y
f=1/2*sum(phi.^2)
g(1)=sum(exp(x(2)*t).*r)
g(2)=sum(t.*phi.*r)
h(1,1)=sum(exp(2*x(2)*t))
h(1,2)=sum(2*x(1)*t.*exp(2*x(2)*t)-y.*t.*exp(x(2)*t))
h(2,1)=h(1,2)
h(2,2)=sum(2*(t.*phi).^2... |
8de7e9f01dcf807625468b744ae2fc5b95def272 | 449d555969bfd7befe906877abab098c6e63a0e8 | /764/CH11/EX11.7.b/solution11_7.sce | 0be4cdb55ba94cd193f87ee34439380cffb68a4a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 659 | sce | solution11_7.sce |
//Obtain path of solution file
path = get_absolute_file_path('solution11_7.sce')
//Obtain path of data file
datapath = path + filesep() + 'data11_7.sci'
//Clear all
clc
//Execute the data file
exec(datapath)
//Evaluate total operating force P (N)
P = ((%pi * Pa * d)*(D - d))/2
//Evaluate number of contactin... |
9df31e48cb1968eb347273eef0c39cc0aaa13aa0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2582/CH3/EX3.1/Ex3_1.sce | 6d965b7ff0986aad54db40a9cdd7a10464b39a9e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 117 | sce | Ex3_1.sce | //Ex 3.1
clc;clear;close;
R1=2.2;//kohm
G=-100;//Voltage gain
Rf=-G*R1;//kohm
disp(Rf,"Value of Rf(kohm) : ");
|
2571a0ba18c56e2267f13b01059d2afd051079c0 | 61d609d0f3bd91da214fa1be3923b7d9c3fc0c78 | /images/lineedit.sci | 856796023af10854853859e4eed0509c91b03dac | [] | no_license | daentech/AndNeuro | 9e7d311229a81a7bade27e0b33a1ce638080ebeb | 36a4f8406f405a9dae59adff88b06f3dca274f9a | refs/heads/master | 2020-06-04T22:11:34.087845 | 2013-04-26T17:47:40 | 2013-04-26T17:47:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 99 | sci | lineedit.sci | border.left: 10
border.top: 10
border.bottom: 10
border.right: 10
source: qrc:/images/lineedit.png
|
8f0ea8624dc3f9309c2e51c14990482924562f30 | 8b0dc85ba6f74c645c63790977e74bf41d3f52c6 | /PS2_2.sce | c3b2b935ce85b970cf86db2ae07d4515ddd33f75 | [] | no_license | formidablefrank/CS131PS2 | 82cc999382074f5499a58300673394e7bece9a01 | b93e68cbb465def3c3a0c079ac95d551182aaca6 | refs/heads/master | 2016-09-05T21:32:49.999802 | 2014-04-06T16:45:13 | 2014-04-06T16:45:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,835 | sce | PS2_2.sce | funcprot(0)
function [F] = f(x)
F=exp(-abs(x));
//mprintf("%f\n",F);
endfunction
function [R]=rom(p,f)
F=0;
tol=10^(-6)
h=p*2;
R(1,1)=f(h);
//mprintf("rom: 1 1 %f\n",R(1,1));
h=h/2;
R(1,2)=f(h);
R(2,2)=(R(1,1) - (4*R(1,2)))/(-3);
i=2;
j=2;
//mprintf("rom: %d %d %f\n"... |
7bf7f5667eb2db9a4af6b1cb3244832feef7c3eb | 717ddeb7e700373742c617a95e25a2376565112c | /2474/CH3/EX3.6/Ch03Ex06.sce | 7d847ed8e2fd317a66bc20481f17a54273d2e412 | [] | 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 | 498 | sce | Ch03Ex06.sce | // Scilab code Ex3.6: Pg.131-132 (2008)
clc; clear;
r = 1e-10; // Radius of Potassium atom, m
i = 1e-02; // Intensity of light, W/m^2
phi = 2.22; // Work function of potassium, eV
e = 1.60e-19; // Conversion factor
t = phi*e/(i*%pi*r^2); // Time lag for the emmision of photoelectron, s
printf("\n... |
55e6b71a62179604ca16b313d926a20a61742228 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2777/CH3/EX3.20/Ex3_20.sce | 6bef844197c43847c9775dd1345c053e4fc8b99a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,204 | sce | Ex3_20.sce |
// ELECTRICAL MACHINES
// R.K.Srivastava
// First Impression 2011
// CENGAGE LEARNING INDIA PVT. LTD
// CHAPTER : 3 : TRANSFORMERS
// EXAMPLE : 3.20
clear ; clc ; close ; // Clear the work space and console
// GIVEN DATA
V1 = 110; // Primary voltage of the Two Transformers the two p... |
1c23659fe656d345a0b6a5c4d9ae7b90f039d7a2 | 7dbe475cd217e686e9689cb0536a9a73f625a85b | /Rez/univariate-lcmsr-post_mi/aspfin/~LCM-SR-aspfin-nat.tst | 5f8e99a672dfc395ba40c1d12edd294a7adc773e | [] | no_license | jflournoy/lnt_pxvx | fac8d6b00b886fa3dc800dcaa288aa186027b9ea | 3f1ddc64e4bf0aecddfa21d45f889620dbdd442d | refs/heads/master | 2021-10-20T12:52:55.625243 | 2019-02-27T17:06:09 | 2019-02-27T17:06:09 | 64,423,528 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,064 | tst | ~LCM-SR-aspfin-nat.tst |
THE OPTIMIZATION ALGORITHM HAS CHANGED TO THE EM ALGORITHM.
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 0.528526D+00
... |
7cb42fc8a572eda9b201566bd0856a5bf4db12b3 | fe33c0b16926678447c084c04df084926a9ca29a | /cone1.sce | 12be882416b10658d6801cc254cb98b1665fb10c | [] | no_license | askmrsinh/SEM2_AM | bbcf34ce205abe763cb5c85df5f01544cdcdfca5 | da613da5c22f20ab1a814f28315e34b0c2c59a13 | refs/heads/master | 2021-09-28T03:09:19.415553 | 2016-08-18T15:14:23 | 2016-08-18T15:14:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 162 | sce | cone1.sce | //x^2+z^2=y^2,y>0 (CONE)
x=-5:0.1:5;
y=0:0.1:3;
deff('z=f1(x,y)','z=sqrt(y^2-x^2)');
fplot3d(x,y,f1)
deff('z=f2(x,y)','z=-sqrt(y^2-x^2)');
fplot3d(x,y,f2)
|
ce46bd91e74531b0eb26334d608409f3e56da5be | 449d555969bfd7befe906877abab098c6e63a0e8 | /3831/CH15/EX15.17/Ex15_17.sce | 996a09a91036de0f7225ebdff52c865c54acde06 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 993 | sce | Ex15_17.sce | // Example 15_17
clc;funcprot(0);
// Given data
T=5000;// K
// Calculation
// (a)
K_e1=10^0.450;// The equilibrium constant for the reaction
K_e2=1/K_e1;// The equilibrium constant for a second reaction
printf("\n(a)The equilibrium constant for the first reaction,K_e1=%1.2f \n The equilibrium constant for a... |
3320bab0f0baa91260cd00f8774e17a2a70f18d3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /323/CH5/EX5.28/ex5_28.sci | c45ba58932b2f8940b4bd32968de64dd4d456e16 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 343 | sci | ex5_28.sci | //Example5.28,Pg5.28
clc;
Wi=1 //Iron loss in kW
op=50*0.8*10+25*0.6*10+0*4
Wcu=1.2 //Copper loss in kW
Culoss=1*1.2*10+(25/50)*1.2*10+0 //Copper loss in the entire day considering the load cycle for a day as given in the question
Iloss=1*24
nallday= (op/(op+Iloss+Culoss))*100
printf("\n All day efficiency=%.2f... |
0997993317b6f9d28d7440297f224dc0fbb9486f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1247/CH6/EX6.14/example6_14.sce | ef56a93dc657b943d7b000546bb7b985c1d374c3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 936 | sce | example6_14.sce | clear;
clc;
// Stoichiometry
// Chapter 6
// Stoichiometry and Unit Operations
// Example 6.14
// Page 384
printf("Example 6.14, Page 383 \n \n");
// solution
//Pa = v.p. at DP
Pw = 2.0624 //kPa
P = 100 //kPa
Hm = Pw/(P-Pw) // kmol water vapour / kmol dry air
H = .622*Hm // kg moisture/kg dry ... |
0934758946022e36e8d0be98e76627973f19dc9d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2582/CH2/EX2.2/Ex2_2.sce | 52dab518215970dfdf52bd95e318b367feb6d843 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex2_2.sce | //Ex 2.2
clc;clear;close;
format('v',5);
IC10=20*10^-6;//A
IREF=0.5*10^-3;//A
IS=10^-14;//A
VT=25*10^-3;//V(Thermal Voltage)
R4=VT/IC10*log(IREF/IC10);//ohm
disp(R4/1000,"For Widlar current source design, the value of R4(kohm) : ");
|
e775a05c8137209399530f500a9be3eb47d06668 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1199/CH4/EX4.12/4_12.sci | 209997f9368ee7c5e0175056b7823f00c3925916 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 317 | sci | 4_12.sci | //4.12
clc;
Vs=7;
Vn=1;
fh=10^3;
H=2*fh*log2(1+(Vs/Vn));
printf("\nMaximum possible data transmission rate =%.1f bits per second",H)
Sampling_rate=2*fh;
printf("\nminimum sampling rate per channel =%.1f samples per second",Sampling_rate)
C_max=85714/2000;
printf("\nmaximum number of channels =%.0f ",C_max) |
c6b2b7db99fbe5800a5f601f06063cd73e5b53d0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH15/EX15.4/example15_4.sce | b0ab425592ffe5ae404811adcb81c78021efab24 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 418 | sce | example15_4.sce | clc
// Given that
delta_lambda = 1e-6 // accuracy in wavelength of its one part
lambda = 1e-10 // wavelength of x-ray in m
h = 6.62e-34 // Planck constant in J-sec
// Sample Problem 4 on page no. 15.25
printf("\n # PROBLEM 4 # \n")
printf("Standard formula used \n")
printf(" del_x*del_p = h/(4*pi) \n")
delta_x = lamb... |
3ee8a2100007c85e1c844be211c41ce3e25373d1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1052/CH18/EX18.3/183.sce | 7807864c4c9fd0f52f153dfadb55b843c07c1e8e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 565 | sce | 183.sce | clc;
//Example 18.3
//page no 227
printf("\n Example 18.3 page no 227\n\n");
// water is flowing at room temperature
rho=62.4//density of water,lb/ft^3
meu=6.72e-4//viscosity of water,lb/ft.s
D=0.03125//diameter of pipe
v=10//velocity
R_e=D*v*rho/meu//reynolds no.
printf("\n reynolds no R_e=%f ",R_e);
f=0.... |
b9b3899806de779459200de5e9108db24c1d4291 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3446/CH9/EX9.7/Ex9_7.sce | 585b484fdbba42079cc4cc49a74c20171a95bcc4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 809 | sce | Ex9_7.sce | // Exa 9.7
// To determine modulation scheme to be used and Eb/No.
clc;
clear all;
Rb=144; //data rate in kbps
BW=36; //in MHz
Pb=3*10^-5;//probability of bit error
//solution
Seff=Rb/BW; //spectral efficiency in bps/Hz
M=2^(Rb/BW); //since the channel is band limited
disp("16-QAM (refer Equation 9... |
35abc8960d8ff274afb6ab501f8f712b022da27c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1871/CH5/EX5.11/Ch05Ex11.sce | 7e0c862059ffb35513e4375b81f1c59e9368d881 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,135 | sce | Ch05Ex11.sce | // Scilab code Ex5.11: Pg:219 (2008)
clc;clear;
Lambda_1 = 5000e-08; // First wavelength of spectral line, cm
Lambda_2 = 5200e-08; // Second wavelength of spectral line, cm
aplusb = 1/10000; // Grating element where a is the width of slit and b is the width of opaque region in a grating, cm
f = 150; //... |
b5d4a293cc7c106405f94bcd6f7440dbe8186139 | 1606aa86800616ebcc018d6c370c219301957072 | /BaseApi/Models/TStemplates.tst | 653461b9f2dd8067f7d7eac2747b577f0a7d2a69 | [] | no_license | viktorgullmark/backend-template-core | 40db34857e1245ed78f1234c846b67bf2e27ce44 | 3e637fb2915077f023d54078c434410fdac232d6 | refs/heads/master | 2021-01-23T04:23:42.451710 | 2018-03-12T20:49:23 | 2018-03-12T20:49:23 | 86,194,800 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 411 | tst | TStemplates.tst | module Dto {$Classes(*Model)[
export interface $Name$TypeParameters {$Properties[
$name: $Type;]
}]
}
${
Template(Settings settings)
{
settings.OutputFilenameFactory = file =>
{
var fileName = file.Name.Replace(".cs", "");
fileName = fileName.Replace("Model", "");
fil... |
5cf89af54f70dd9a9fab6ae4fd56bce8d153bcf1 | 676ffceabdfe022b6381807def2ea401302430ac | /solvers/CompressibleFlowSolver/Tests/Perturbation_M05_square_CBC_par.tst | ce9d002b012c49d14c1b8c16cebae448f7e364e8 | [
"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,195 | tst | Perturbation_M05_square_CBC_par.tst | <?xml version="1.0" encoding="utf-8"?>
<test>
<description>Euler, pressure perturbation to test RiemannInvariant CBC, parallel</description>
<executable>CompressibleFlowSolver</executable>
<parameters>--use-scotch Perturbation_M05_square_CBC_par.xml</parameters>
<processes>3</processes>
<files>
... |
910d4287f03754f01b5a712f9147f19887ff94a0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2672/CH6/EX6.15/Ex6_15.sce | d311e20251bfb021a8db10ffaa4b394533252465 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 624 | sce | Ex6_15.sce | //Example 6_15
clc;
clear;
close;
format('v',4);
//given data :
//v=50*sin(100*%pi*t)
Vm=50;//V
f=50;//Hz
rf=20;//ohm
RL=5000;//ohm
Im=Vm/(rf+RL)*1000;//mA
disp("(a) Current is "+string(Im)+"*sin(100*%pi*t) for %pi <100*%pi*t<2*%pi & it will be zero for 0 <100*%pi*t<%pi");
format('v',5);
Vdc=Im/1000/%pi*... |
1ee14b396744670d5a2f591636759175fb5cc70c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH30/EX30.5/30Ex5.sce | 7a2ff7323da48a0071a7724bad0b668bf68cd8bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 479 | sce | 30Ex5.sce | //Chapter 30 Ex5
clc;
clear;
close;
S={'D','A','U','G','H','T','E','R'};
sizeS=size(S,"c");
n=6; //since there are 3 vowels, they are considered as 1 letter
reqLetters=n; //since all the letters are required
noLetters=factorial(n)/factorial(n-reqLetters);
reqVowels=3; //since vowels are required to be toget... |
c808f9b0042e582445c3072edeb53f1380f2d196 | 449d555969bfd7befe906877abab098c6e63a0e8 | /497/CH13/EX13.3/Chap13_Ex3.sce | 7fb0be57a0413af9e1b7b57bc62d4d9d8361a5d7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,812 | sce | Chap13_Ex3.sce | //Kunii D., Levenspiel O., 1991. Fluidization Engineering(II Edition). Butterworth-Heinemann, MA, pp 491
//Chapter-13, Example 3, Page 332
//Title: Effect of Particle Size on h
//==========================================================================================================
clear
clc
//INPUT
rho... |
4e2a7d4e7705fb3fe2e17a94f515d8ed3e838aa2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /172/CH10/EX10.1/ex1.sce | 277d3835683185756951e0f0e9baa1d9b38f9a5d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 783 | sce | ex1.sce | //example 1
//Calculating reversible work
clear
clc
//Form the Steam Tables,the inlet and the exit state properties are
hi=171.95 //initial specific heat of enthalpy in kJ/kg
si=0.5705 //initial specific entropy in kJ/kg-K
se=2.1341 //final specific entropy in kJ/kg-K
he=765.34 //final specific heat of enthalp... |
779e5b1a1bac53868e0b9f9c07cbb785e7293ebb | 449d555969bfd7befe906877abab098c6e63a0e8 | /3754/CH9/EX9.2/9_2.sce | d304aae593266482cfc7b9b9a593d22d2c981d18 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 746 | sce | 9_2.sce | clear//
//Variables
VS = 1.5 //Source Voltage (in volts)
RS = 0.4 //Resistance (in ohm)
RL = 2.0 //Load Resistance (in ohm)
//Calculation
RT = RS + RL //Total Resistance (in ohm)
I = VS/ RT //Current (in Ampere)
VT ... |
95c2a05a91ab49b0bdda048650f4b70abaff7957 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3886/CH12/EX12.13/12_13.sce | f245fc9fb37164270414a847ef7d54f3b92a6e9e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 12_13.sce | //Car and truck
//refer fig.12.14 and 12.15
u=12.5 //m/sec
//sT=10+12.5*t+(aT*t^2)/2
aT=-2 //m/sec^2
//t is the time at any instant after the brakes are applied
//sT=10+12.5*t-t^2
//distance moved by car
//sC=u*2+u*(t-2)+(aC*(t-2)^2)/2
//sT=sC
//Apply equations of motion
//we get quadratic equation whose ... |
922918ce42f9cceac2d8db2e7383e19bfcc26a70 | 449d555969bfd7befe906877abab098c6e63a0e8 | /536/CH10/EX10.5/Example_10_5.sce | d97d91f47a0238df2f35e50f6a8eeb13456e27fc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 600 | sce | Example_10_5.sce | clear;
clc;
printf("Example 10.5\n");
N_dot=50; //Initial maas transfer rate
D=1.8e-9; //Diffusivity of gas in liquid phase
C_bg=(1/22.4)*(273/293); //bulk gas concentration
N_C=N_dot*C_bg; //Initial maas transfer rate in terms of cocentration
h=N_C/0.04;// Effective Mass transfer coefficient
R=1/h;//Equi... |
674e84327fde081ce8d331d38e64af6a941165f4 | 717ddeb7e700373742c617a95e25a2376565112c | /278/CH13/EX13.5/ex_13_5.sce | c04538d8a5c579ff77596450edb258cc3572b888 | [] | 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 | 773 | sce | ex_13_5.sce | //design a clamp coupling
clc
//solution
//given
P=30000//W
N=100//rpm
t=40//N/mm^2
n=6
ft=70//N/mm^2
u=0.3
//let d be dia
Tq=(P*60*1000)/(2*%pi*N)//N-mm
//Tq=(%pi/16)*t*d^3=7.86*d^3
//d=(Tq/7.86)^(1/3)//mm
printf("the dia of shaft is,%f mm\n ",(Tq/7.86)^(1/3))
printf("the dia of shaft is ,say 75mm\n")
... |
5c74cce462c03f20486e4afd7c7930342c2f1643 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2606/CH4/EX4.22/ex4_22.sce | 790fb9cb0a065142e014836c7dc063436c27badb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 294 | sce | ex4_22.sce | //Page Number: 4.20
//Example 4.22
clc;
//Given
B=0.2;
f1=200D+3; //Hz
fml=50; //Hz
fmh=15D+3; //Hz
delf=75D+3; //hz
fc=108D+6; //Hz
delf1=B*fml;
n1n2=delf/delf1;
//Let n2=150
n2=150;
flo=((delf*f1)-fc)/n2;
disp('Hz',flo,'fLO');
n1=n1n2/n2;
disp(n1, "n1 with n2=150:")
|
5e1b82f46aaad8635dbd18f9cf1ffaf81cbe4c59 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1397/CH1/EX1.25/1_25.sce | 283b569c10664ba3fc9c206d4cd4c959999e4fa1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 331 | sce | 1_25.sce | //clc();
clear;
//To determine the visible number of orders
N=10520; //grating lines in lines per centimetre
theta=90; //angle in degrees
lambda=5*10^(-5); //wavelength of light in centimetres
e=1/N;
n=(e*sind(theta))/lambda;
printf("the number of orders visible in grating spectra i... |
1908e53ba2c5cbcd03666a59a2e1ffc78b252e21 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1460/CH6/EX6.8/6_8.sce | 95b9256ae81f969b6ed020bbde9223d999e4f996 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 268 | sce | 6_8.sce | clc
//Initialization of variables
P1=15 //lb/in^2
P2=20 //lb/in^2
T1=40+460 //R
T2=540+460 //R
//calculations
disp("From table 6 at the two temperatures")
phi1=0.58233
phi2=0.75042
ds=phi2-phi1-53.3*log(P2/P1) /778
//results
printf("Entropy change = %.5f B/lbm R",ds)
|
6147928c0a4717873396a69d6513299007781439 | 449d555969bfd7befe906877abab098c6e63a0e8 | /162/CH2/EX2.2/example22.sce | 03deaecb4a60442c5179e2c65161c342760e0ce1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 620 | sce | example22.sce | clear ;
close;
clc;
T0=4;
t=.01:0.01:2*T0;
t_temp=0.01:0.01:T0/2;
s=length(t)/length(t_temp);
x=[];
for i=1:s
if modulo(i,2)==0 then
x=[x zeros(1,length(t_temp))];
else
x=[x ones(1,length(t_temp))];
end
end
a=gca();
plot(t,x)
poly1=a.children.children;
poly1.thickness=3;
p... |
920b0336d8acae1dce8330a1ddcb71ca2c77fb76 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1964/CH4/EX4.3/ex4_3.sce | 4bd650a879cdeec9ec38c24ad226b7fc7c8f6319 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 720 | sce | ex4_3.sce | //Chapter-4, Example 4.3, Page 132
//=============================================================================
clc
clear
//CALCULATIONS
v1=0;v2=5;v3=10;v4=20;v5=50;v6=60;v7=50;v8=20;v9=10;v10=5;v11=0;v12=-5;v13=-10;
Vm=60;
V=((v1^2)+(v2^2)+(v3^2)+(v4^2)+(v5^2)+(v6^2)+(v7^2)+(v8^2)+(v9^2)+(v10^2))
V=sqrt(V/1... |
81fed229fec396ddb88538ed65ac2689aa1de674 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3446/CH17/EX17.2/Ex17_2.sce | 9556588108657374abdc5165e1b451b8e25d67d4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,467 | sce | Ex17_2.sce | // Exa 17.2
// To calculate voice and data traffic per cell.
clc;
clear all;
usage=150; //subscriber usage per month in mins
days=24;//Days in a month
BHrs=6;//Busy hours per day
BW=4.8; //in MHz
RFch=200; //in kHz
Psubscribers=50000;//present subscriber count
growth=0.05;//subscriber growth per year
... |
f70cc7bb89b61726e590ef39fa2dbd744a9e4572 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/TECG.prev.tst | 134894236e5f6607c4304333892bb22e9b00e35a | [
"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 | 499 | tst | TECG.prev.tst | Expanding for base=3, level=3, reasons+features=base,same,similiar,evenexp norm,showfail
Refined variables=k,x,y
[0+1k,0+1x,0+1y]: unknown -> [1] [0,0,0] 3k-x²-3y²-1
---------------- level 0
expanding queue[0]^-1,meter=[1,3,1]: 3k-x²-3y²-1
[0+1k,0+3x,0+1y]: failure constant=-1, vgcd=3 [0,0,0] 3k-9x²-3y²-1
[0+1k,1+3x,0+... |
bce0001258a6fb33118c19d22f6b479a895e59e4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /74/CH10/EX10.4/example4_sce.sce | 792e37ec3fcfad090b918910813beb21d2c3e353 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 151 | sce | example4_sce.sce | //chapter 10
//example 10.4
//page 350 figure 10.9
Vz=5;
V_=5;
R2=15;R3=15;
//V_ across R3
Vout=((R2+R3)/R3)*(V_)//voltage across R3
disp(Vout) |
ff1b0ec3d35a100fbfd354fcc4ddac9d33f89360 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3472/CH14/EX14.12/Example14_12.sce | eae925cdde273ed5d29ec45ad9d908eeba3c9438 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 946 | sce | Example14_12.sce | // A Texbook on POWER SYSTEM ENGINEERING
// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
// DHANPAT RAI & Co.
// SECOND EDITION
// PART II : TRANSMISSION AND DISTRIBUTION
// CHAPTER 7: UNDERGROUND CABLES
// EXAMPLE : 7.12 :
// Page number 219
clear ; clc ; close ; // Clear the work space and console
... |
da3adf9e57cf14f579566e493ec72ff34bbac81f | cda6eccbae64d9ff794abcc196579fa9c4e702a2 | /CN - Interpolacao.sce | 192074c8cfe968f05c07bcde8cda5200c2e2f515 | [] | no_license | maurochiozzi/metodos-numericos | 95041be3fe4314c84ecde20b642888f28283ba9b | 4e8aa880126dd3190ae4116780cab3bdaccc8efc | refs/heads/master | 2020-03-23T04:09:42.069754 | 2018-07-16T00:25:11 | 2018-07-16T00:25:11 | 141,067,870 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,428 | sce | CN - Interpolacao.sce | // Interpolação de Newton -----------------------------------------------------
function tabelaDiffDiv = tDD(x, y)
global tabela
dimensao = length(x)
tabela = zeros(dimensao, dimensao)
tabela( : , 1) = y'
diffDiv(x, 1, dimensao)
tabelaDiffDiv = tabela
endfunction
function dd = diffDiv(x, linha, coluna)
global ... |
3b32493b6cf1fef70390c2fbb14f203ab4d565ce | 59e7c95649eb8894e1d6f0bcac3ca7ea2b023217 | /Matriz Multiplicada.sce | ce91d44b025284c1759f658552c54677ab9747f2 | [] | 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 | 196 | sce | Matriz Multiplicada.sce | //
a =[1 2; 3 4; 5 6];
b = [1 2 3; 4 5 6];
for i=1:3
for j=1:3
c(i,j) =0;
for k=1:2
c(i,j =c(i,j)+a(i,k)*b(k,j);
end
end
end
disp(c);
|
7428bbac8f8349575e27e044e37ce91122f03db6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1862/CH18/EX18.4/C18P4.sce | bd6d871b82bf2500b58c51d13187d43359245941 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 483 | sce | C18P4.sce | clear
clc
//to find tension in string to get 4 loops
// GIVEN:
//refer to figure 18-23 from page no. 418
//freqyuency
fn = 120//in Hz
//length of string
L = 1.2//in meters
//linear mass density of string
mew = 1.6//in g/m
//no. of loops
n = 4
// SOLUTION
//using equation of wave motion
//tension in s... |
d772afe0a6fc04a06fc2b81b66d0cb4c151b09d8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2318/CH2/EX2.15/ex_2_15.sce | e167a11fa7bb9a460fb4b4eb7ff6b2a1d656dbd9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 252 | sce | ex_2_15.sce | //Example 2.15://load current
clc;
clear;
close;
rw=3550;//reading of wattmeter
rp=806;//watts
ph=atand((sqrt(3)*rp)/rw);//in degree
pf=cosd(ph);//power factor
v=440;//volts
i=((rw)/(sqrt(3)*v*pf));//amperes
disp(round(i),"load current in amperes is")
|
58b1b129c498a41c0accb9e3b259d3af3ab56cf8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2762/CH2/EX2.5.1/2_5_1.sce | 3d3b3a4fe64b472ecacbac9fe0e0480455fd71e9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 818 | sce | 2_5_1.sce | //Transport Processes and Seperation Process Principles
//Chapter 2
//Example 2.5-1
//Principles of Momentum Transfer and Overall Balances
//given data
f=10*(1/7.481)*(1/60);//flow rate(ft3/s)=10(gal/min)*(1ft3/7.481 gal)(1min/60s)
D=2.067/12;//diameter in ft
A=(3.14*D*D)/4;//cross sectional area in ft2
v=f/A;/... |
b04cd49140ab8666aa2b2e50462885a38d1e08b5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH9/EX9.6/Ch09Ex6.sce | 0b8b646d7e0b82929c25e8e1b4214f4e390066c6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 653 | sce | Ch09Ex6.sce | // Scilab Code Ex9.6: Page-466 (2011)
clc;clear;
mu1 = 1.466; // Refractive index of core
mu2 = 1.460; // Refractive index of cladding
v = 2.4;....// Cut-off parameter of the optical fibre
lambda = 0.8e-006;....// Operating wavelength, m
NA = sqrt(mu1^2-mu2^2);
printf("\nThe NA of optical fibre = %4.2f", NA)... |
8ce49cb1f1ad1e2b197b4b4cb801c0427cf48b66 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3137/CH15/EX15.25/Ex15_25.sce | 734b8557b216fe5c21a87367fa4e8a68609ac7d3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 564 | sce | Ex15_25.sce | //Notations have been changed
//Calculations
x=-(25*125*0.5*125+25*100*0.5*25)/(25*125+25*100) //mm
y=(25*125*0.5*25+25*100*75)/5625 //mm
Iy=(1/12)*25*125^3+25*125*(62.5-40.3)^2+(1/12)*100*25^3+100*25*(40.3-12.5)^2 //mm^4
Ix=Iy //mm^4 for L-section
//The second computation checks the first
Ixy=(125*25*22.2*27.8... |
19595dc464382e873ede2de4e6931187b55ed065 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2873/CH3/EX3.22/Ex3_22.sce | afa19e346525fb63d173a1013fca4acb51023c63 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,826 | sce | Ex3_22.sce | // Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Engineering Thermodynamics by Onkar Singh Chapter 3 Example 22")
p1=1.5*10^5;//initial pressure of air in pa
T1=(77+273);//initial temperature of air in K
p2=7.5*10^5;//final pressure of air in pa
n=1.2;//expan... |
a377290c47513bc195d294199af550de773ac174 | 449d555969bfd7befe906877abab098c6e63a0e8 | /998/CH29/EX29.3/Ex3.sce | eaf3333dc1d2ba00dcb876bddf8fa73ee4c9090d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 198 | sce | Ex3.sce | //Ex:3
clc;
clear;
close;
a=6628.14;//Radius of space shuttle in km
T=5370.30//Time period in sec
v_s=2*%pi*a/T;//Velocity in km per sec
printf("Velocity of the shuttle =%f km per sec", v_s); |
9a15a7bf79ebf0f0543100e9e5a882f32ee4a5d9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /944/CH6/EX6.5/example6_5_TACC.sce | f5842cfcb8760fb0ab6d086d46d1ae23d01da16f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 444 | sce | example6_5_TACC.sce | //example 6.5
clear;
clc;
//Given:
b=0.0391;//Van der waals constant[dm3/mol]
R=0.082;//Universal gas constant[dm3*atm/mol]
P2=1000;//pressure [atm]
P1=0;//pressure [atm]
T=1273;//Temperature [K]
//To find the fugacity and fugacity coefficient
x=b*(P2-P1);
y=R*T;
fc=exp(x/y);//fugacity coefficient
... |
3a4923a97ab23d45aefd0fd2bcbab4fe0d656651 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH3/EX3.25/Ex3_25.sce | 6a795e12bed25f5dd025e82667544d90965e3971 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 702 | sce | Ex3_25.sce | //Variable declaration
beeta=100 //current gain factor
Vbe=0.7 //base to emitter voltage(V)
Rb=250 //base resistance(k ohms)
Vee=10 //emitter voltage(V)
Re=1 //emitter resistance(k ohms)
//Calculations... |
91872f06f4658e970f53a36f7e51318c8fcd743f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1382/CH7/EX7.9/EX_7_9.sce | af7180b2a82cea5f6e0a586d535cc7dddfb31e3a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 346 | sce | EX_7_9.sce | // Example 7.9:oscillation frequency
clc;
clear;
close;
C=0.2;//capacitance of tunned circuit in MICRO farad
L1=0.5;//INDUCTANCE of tunned circuit in milli henry
L2=1;//INDUCTANCE of tunned circuit in milli henry
fo=(1/(2*%pi*sqrt((L1+L2)*10^-3*C*10^-6)));//tunned frequency in killo hertz
disp(fo,"tunned frequ... |
2c98d1e71f1c600164b92e281600fe40b88229d2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2087/CH12/EX12.10/example12_10.sce | 6c01786f27fd2c927a53feb1466da4789eef048d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 527 | sce | example12_10.sce |
//example 12.10
//calculate critical exit gradient and factor of safety of system
clc;funcprot(0);
//given
b=60; //length of floor
H=6; //static head of weir
d=6; //downstream depth of pile
n=0.3; //porousity of soil particles
G=2.7; //relative density of soil particles
alph... |
242627ca3b11c3d51898cd0e9202fab5c1426d78 | 3b9d7536a267f8c26d200f8a04cf846ae7278d6f | /LUdecomposition.sce | 762d56921888a93ca3f8f4cebdbdd4387e283400 | [] | no_license | vanisharm/linear_algebra | 0179ee46ad0e4cffeca4ae1e30ded864f5c2abd2 | a57eed41d2ae556ee0ff895a7e5953dbfe53fc93 | refs/heads/master | 2021-01-01T07:08:57.304584 | 2020-06-05T06:33:17 | 2020-06-05T06:33:17 | 239,162,939 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 932 | sce | LUdecomposition.sce | clc
clear;
close;
A=[0,0,0;0,0,0;0,0,0]
A(1,1)=input("enter a11: ")
A(1,2)=input("enter a12: ")
A(1,3)=input("enter a13: ")
A(2,1)=input("enter a21: ")
A(2,2)=input("enter a22: ")
A(2,3)=input("enter a23: ")
A(3,1)=input("enter a31: ")
A(3,2)=input("enter a32: ")... |
6c5c73778daa921aad011a6fd2deb0979717f4ff | 449d555969bfd7befe906877abab098c6e63a0e8 | /3733/CH32/EX32.17/Ex32_17.sce | 26997fa417de0625bd1ffea8e203d3649df9eb00 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 514 | sce | Ex32_17.sce | // Example 32_17
clc;funcprot(0);
//Given data
P=1000;// Plant capacity in MW
P_1=1000;// MW
t_1=2;// hours
P_2=500;// MW
t_2=6;// hours
P_3=300;// MW
t_3=8;// hours
n=50;// Number of days plant should shut down completely
// Calculation
E_g=((P_1*t_1))+((P_2*t_2)+((P_3*t_3)));//Eenergy generated per work... |
b6babcb0b922b71a57e848cd8ec706496bcdc1f2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1640/CH5/EX5.5/5_5.sce | e8318eb45df238503c114b55c381cba877621e57 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 304 | sce | 5_5.sce | clc
//initialisation of variables
Q= 400000
d= 4 //miles
h= 50 //ft
q= 40 //gallons of water
t= 8 //hr
f= 0.0075
w= 6.24 //lb/ft^3
g= 32.2 //ft/sec^2
//CALCULATIONS
Q1=Q*q*0.5/(t*60*60*w)
d= (4*f*(d*5280)*Q1^2*16/(%pi^2*h*2*g))^0.2*12
//RESULTS
printf ('size of the supply = %.1f in ',d)
|
0b7a265ded98579bf1c87c27dd11d75cb7cdc592 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1445/CH10/EX10.11/Ex10_11.sce | 70e926ccb1e03a694d23bea79e6f4007992c6161 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 772 | sce | Ex10_11.sce | //CHAPTER 10- THREE-PHASE INDUCTION MACHINES
//Example 11
clc;
disp("CHAPTER 10");
disp("EXAMPLE 11");
//VARIABLE INITIALIZATION
P1=4; //number of poles
s=5/100; //slip
f=60; //frequency of synchronous generator in Hertz
//SOLUTION
//solution (a)
... |
dd0fd204b558458bbf0411f0b3105c1dd055f256 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3710/CH3/EX3.1/Ex3_1.sce | e7ffec9f62640460ef58a50950e00ea57256a836 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 504 | sce | Ex3_1.sce | //Example 3.1, Page Number 97
//Change in Refraction Index due to Pockels effect
clc;
//Variable Initialization
l=10*(10**-3) //Width of Crystal in milli meter
V=4000 //Applied Voltage in volts
r=26.4*(10**-12)//linear electro optic coefficient in pm per volt
no=1.51**3//Value for KD*P taken from table 3.1
//... |
f8736ae6652b906bacca37ad55f90082ea4500e5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1385/CH4/EX4.3/4_3.sce | a352e61ed660474908b7848822817def94cacc99 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 494 | sce | 4_3.sce | clc
//initialisation of variables
mn= 0.0134 //gms
mo= 0.0261 //gms
mh= 0.0081 //gms
T= 30 //C
P= 3 //atm
r= 4/5
//CALCULATIONS
V= mn*(273+T)*1000/273
V1= V*r
V2= V1*P
V3= mo*(273+T)*(1-r)*P*1000/273
V4= mh*(273+T)*r*1000/273
V5= V4*P
V6= V2-V1
V7= V5-V4
//RESULTS
printf (' volume of oxygen= %.1f ml',... |
201a3ca62dce43e22d6200fa0d391cf3dedbba7f | aab7e40582be003ebdf6f5ad6f1efcdaef4c63d6 | /macros/JSONParse.sci | 98254789be0208ccc61a7c096be69b3af4aff97c | [] | no_license | sengupta/Scilab-JSON | 578370e2470d630afd7c21c5ec5040ee3200d6d0 | 209a65d4b979ce3ff147ebda58c237236783f403 | refs/heads/master | 2021-01-18T18:35:13.647060 | 2012-04-03T13:51:34 | 2012-04-03T13:51:34 | 1,687,912 | 2 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,461 | sci | JSONParse.sci | // A simple JSON parser
function JSON2Struct = JSONParse(JSON)
true = "%T"
false = "%F"
oldnull = null, null = "%Nan" // Backup the null() function and set variable
JSON_text_cat = strcat(JSON);
// The following section is required to convert multidimensional
// arrays into... |
fb246bcaacac3df6453683271a94a3fb71b404b6 | fdc5047b7bf8122bad1e621df236b0481226c36e | /virtualProcessComm_V4/macros/commStatus.sci | eca3b9f088ac5596a4a1ed791258320440ca6080 | [] | no_license | jpbevila/virtualHartSci | aea3c6ba23d054670eb193f441ea7de982b531cc | a3f5be6041d230bd9f0fd67e5d7efa71f41cfca5 | refs/heads/main | 2023-07-26T23:05:28.044194 | 2021-09-09T11:50:59 | 2021-09-09T11:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 226 | sci | commStatus.sci | function [queue,status]=commStatus(h)
TCL_EvalStr("set ttyq [fconfigure "+h+" -queue]")
queue=evstr(TCL_GetVar("ttyq"));
TCL_EvalStr("set ttys [fconfigure "+h+" -ttystatus]")
status=TCL_GetVar("ttys");
endfunction
|
59fd10225dcb832fb7f69e1bef22c0adc6069b7b | bce0c755bfdc527c8cc0737e8e1e59467267cff9 | /macros/blur.sci | b52c278118e0aabef26185bb093980cd04800da0 | [] | no_license | shubham0108/FOSSEE-Image-Processing-Toolbox | bacc26e6c7139383a374ea16f6c62565a7ff0603 | 68cddb2ca8dabddfe47251ac6647011acb849a2c | refs/heads/master | 2021-06-16T02:27:39.886532 | 2020-05-01T09:23:39 | 2020-05-01T09:23:39 | 97,078,162 | 0 | 0 | null | 2017-07-13T03:57:21 | 2017-07-13T03:57:21 | null | UTF-8 | Scilab | false | false | 1,794 | sci | blur.sci | // Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_... |
d3510a8aafa17037de9b880d9045703e5d6ff44c | b0ad6d728d3820b03751eab240331dd6ca86ae7e | /run1_Audball.sce | 6c70d995ba447677e51c3cb5f14999d0ebe1e77e | [
"MIT"
] | permissive | br-bieegl/szAMPexperiment | e354cb59cea9a794725618b0a6aefa3a9c681cca | 02ceb4a50286342c3fa8d449b30c6678cadbfa85 | refs/heads/main | 2023-04-07T17:36:08.091116 | 2021-04-15T20:46:29 | 2021-04-15T20:46:29 | 358,362,424 | 1 | 0 | null | 2021-04-15T19:02:18 | 2021-04-15T18:55:30 | null | UTF-8 | Scilab | false | false | 6,727 | sce | run1_Audball.sce | scenario = "run1_Audball_pronetSZAMP_09042021";
#=======================================
#
#Auditory Task:
#
#Standard 1
#Target 2
#Novel 4
#Response 5
#
#========================================
#attenuation updated for ER1 insert earphones and X-fi gamer card
pcl_file = "Commands.pcl";
scenario_type = trial... |
b54b72a22bc922053b9265f4af7f38085a5b5ada | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH13/EX13.15/13_15.sce | 4e0a951d643b238134e46b00668c42a778860871 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 799 | sce | 13_15.sce | //Problem 13.15: Determine the current flowing in the 2ohm resistance in the network shown in Figure 13.37(a).
//initializing the variables:
I = 15; // in amperes
R1 = 6; // in ohms
R2 = 4; // in ohms
R3 = 8; // in ohms
R4 = 2; // in ohms
R5 = 7; // in ohms
//calculation:
//The 2ohm resistance branch is sh... |
31e2b01dce6190545fd47341f660cd5f8563d520 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2699/CH13/EX13.15/Ex13_15.sce | dd83808758930a6311cbe7bac8c94b8e1a1e8208 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 162 | sce | Ex13_15.sce | //EX13_15 PG-13.10
clc
clear
printf("conversion of binary no 1101.1 to its decimal equivalent =")
N=(1*2^3)+(1*2^2)+(0*2^1)+(1*2^0)+(1*2^(-1));
printf(" %.1f",N)
|
e6ada3457e52cd6036781978ea7d9c45e9e7453a | c49cfb0568cc47def2bab58998cf7a2745deeb75 | /lw3.sce | e5a6fcaf4b7d5dda97da5dc61b3c2469145bbbdc | [] | no_license | mirgayazov/Computational-mathematics | 7be950e9c54231943912aa8cc0eba9484b8613ee | 97eb92557308d51709101ba1922ed2bb39a0e08f | refs/heads/master | 2023-05-31T18:16:04.774709 | 2021-07-08T09:18:58 | 2021-07-08T09:18:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 489 | sce | lw3.sce | clc
x=poly(0,'x')
Lx=13/80*x^4-239/120*x^3+691/80*x^2-1429/120*x+88/5
Lx_=13/80*x_^4-239/120*x_^3+691/80*x_^2-1429/120*x_+88/5
dx1=derivat(Lx)
dx2=derivat(dx1)
disp(dx2)
disp(dx1)
dx1=-11.908333+17.275*x_-5.975*x_^2+0.65*x_^3
dx2=17.275-11.95*x_+1.95*x_^2
x=[1 2 3 4 5]
y=[12.5 15 19 22.3 26.6]
plot(x, y,'r*')
x_=0:0.1:... |
78ad058f4056bfee08be4727b45380bbfa9d7dfb | 449d555969bfd7befe906877abab098c6e63a0e8 | /764/CH14/EX14.7.a/data14_7.sci | d704e14c67fcb4948fadbbe1fd3246a127f09c0d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 660 | sci | data14_7.sci |
//(Chain Drives) Example 14.7
//Speed of the electric motor n1 (rpm)
n1 = 1400
//Speed of the line shaft n2 (rpm)
n2 = 350
//Number of teeth on the driving sprocket z1
z1 = 19
//kW rating of 10B chain for n1 rpm from table 14.2 on page 550 kW
kW = 11.67
//Pitch of the chain p (mm)
p = 15.875
//Breaking loa... |
62e6fb2da33c29c8d206dcbe368977b48a0ed38b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1109/CH11/EX11.4/11_4.sce | 2d3cb2257f2013e492d4be2b44f3836afd099d08 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 832 | sce | 11_4.sce | clear;
clc;
Za=%i*300;Zc=-%i*700;
Zoc1=Za+Zc;
Zsc1=Za;
Zoc2=Zc;
Zsc2=(Za*Zc)/(Za+Zc);
Zi1=sqrt(Zoc1*Zsc1);
printf("-Image impedance Zi1 = %f ohms\n",round(Zi1));
Zi2=sqrt(Zoc2*Zsc2);
printf("-Image impedance Zi2(in ohms)= %f ohms\n",round(Zi2));
Zt1=(Za/2)+(sqrt((Za*Za/4)+(Za*Zc)));
A=real(Zt1)
B=imag(Zt1)... |
fbc735d16958fcdba38eef048cdbaa07fb4b7bda | f6134e0a162a059c42ec3ef8de2a63941d73936c | /Scilab_code/kNN/kd_tree.sci | 0434e87d74d4568e951f66d177cf87494cff205d | [] | no_license | mxch18/SRL-WRT_pathPlanning | 38a1701934a4a0e919a6c1c7990092b242df72da | 6992febbbe103814d2cef5351a0e8917b183a2b0 | refs/heads/master | 2020-03-23T06:43:54.155192 | 2018-09-26T17:26:56 | 2018-09-26T17:26:56 | 141,226,032 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,762 | sci | kd_tree.sci | function node_num = kd_tree(points,depth,parent_number)
//Author : Maxens ACHIEPI
//Space Robotics Laboratory - Tohoku University
global cellIn; //cell array
global lcell; //int
//Description:
//Computes a kd_tree from the dataset
//INPUT:
//points : the dataset
//dept... |
bb4fff972f64efeaf55b744ececb8872c0119625 | 449d555969bfd7befe906877abab098c6e63a0e8 | /944/CH3/EX3.3/example3_3_TACC.sce | bed7e2a68540e10e67417c4e4acfb423721db3bd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 616 | sce | example3_3_TACC.sce | //example 3.3
clear;
clc;
//given:
H=29.2;//latent heat of vaporisation[KJ/mol]
T=332;//temperature of the system[K]
R=8.314;//universal gas constant [J/K/mol]
//to find Q,W,U for 1 mole of bromine vaporizes
//where Q is heat absorbed or evolved
//W is the work done by system
//U is the change in inte... |
0afc070afd203d507b78d00d8896ba64ce3af35f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3363/CH3/EX3.5/Ex3_5.sce | 427e60de17300da4933e1bbfc5e0a4318c1a5ec7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 331 | sce | Ex3_5.sce | //Example 3.5, page no 94
clc
disp('part b')
lambda=5890*10^-8//in cm
c=3*10^10//in cm/s
v=c/lambda
del_v=8*10^6//per s
x=del_v/v
h=4.14*10^-15//in ev-sec
printf("\n Fractional width of either line(del_v/v) %e ",x)
//Calculate uncertainty
disp('part c')
del_t=10^-8
del_e=(h)/(4*%pi*del_t)
printf("\n Uncertainty is %e ... |
5bb4650d423a49170b46a69d8c8b36ad16565905 | e2ae697563b1b764d79ea1933b555ab0d5e3849c | /macros/rlsettings.sci | 982459ca4013a8f1f2897cd56a90bcd065bb837d | [] | no_license | gq-liu/IPDesignLab | c49b760740f47ec636232a6947aecb3c0626518a | b2f9a9eecad6616c99a2ec20fcceb14fb3ed0c3f | refs/heads/master | 2022-01-18T13:30:55.972779 | 2019-05-06T17:23:12 | 2019-05-06T17:23:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,462 | sci | rlsettings.sci | function [ok,kevans]=rlsettings();
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is ... |
42442254e19e492c2f650a103acf8c3993983a3c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3669/CH1/EX1.6/6.sce | eb6540e9458fc619d2870d7a1b798f168f47bd28 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 6.sce |
//Variable declaration
e=1.6*10**-19; //charge of electron(c)
epsilon0=8.85*10**-12; //permittivity(C/Nm)
r0=0.281*10**-9; //seperation(m)
IE=5.14; //ionisation energy of Na(eV)
Ea=-3.61; //electron affinity(eV)
//Calculation
V=-e**2/(4*e*%pi*epsilon0*r0);
CE=IE+Ea+(V); //cohesiv... |
09fcb41b665260f242714af30ed5ef654e7ba04f | 397456b742a46d88c251aa168bfe794903987f93 | /Salp Swarm Algorithm/standard/scilab/salp-swarm-a.sce | 851bdf9b98399d106e088e20b21c5b32d63489c9 | [] | no_license | JonesCG/PROJECT-NIOA | b5dcc7820d818369a4115fbb34b0f7ba02d7a129 | 7e6a3aa9a5deda6aa4eec9f4d523556844593c8b | refs/heads/master | 2022-08-16T14:06:54.967718 | 2020-05-18T08:17:47 | 2020-05-18T08:17:47 | 264,872,793 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,481 | sce | salp-swarm-a.sce |
clc
clear
exec('objective.sce');
disp('RUNNING...')
rand('seed',getdate('s'))
POPSIZE = 50
DIM = 2
UPPER = 100
LOWER = -100
MAXITER = 50
SALP = rand(POPSIZE,DIM).*(UPPER-LOWER)+LOWER
FIT = F1(SALP)
[FIT SORTIND] = gsort(FIT,'lr','i')
SALP = SALP(SORTIND,:)
GBESTFIT = FIT(1)
GBESTPOS = SALP(1,:)
... |
28ca7e1dbad4c9b462941848a09e6041afe4605b | 449d555969bfd7befe906877abab098c6e63a0e8 | /137/CH10/EX10.11/prob_10_11.sce | c549cb6069cb52631cceeb73c4bb144cf1c8dfa8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 181 | sce | prob_10_11.sce | //page no 448
//prob 10.11
clc;
Px0=.4 , Px1=.6 ,PE0=10^-6 , PE1=10^-4 ;// given
PE=(Px0*PE0) + (Px1*PE1)// formula for probability of error
disp(PE,"probability of error = "); |
0fd763c19894e7629be34de20d847d38becacbad | ebfed86dee276110294a4e93fa80377908bbd317 | /macros/fftshift.sci | be5c243f04fd8e647f9602496fc81e8af7e59fdf | [] | no_license | gursimarsingh/FOSSEE-Image-Processing-Toolbox | a9d46b698c98566fec867eb2ce3cfeb427058d5c | 165f6d7d1f20262a1637a923c6aad6e663ad1538 | refs/heads/master | 2021-08-16T19:18:59.591175 | 2017-11-08T17:55:04 | 2017-11-08T17:55:04 | 96,531,802 | 0 | 0 | null | 2017-07-07T11:21:10 | 2017-07-07T11:21:10 | null | UTF-8 | Scilab | false | false | 1,381 | sci | fftshift.sci | // Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_... |
3de3f1144bac14316904e205e38acf1fe770531f | 683d2599aa2be1a5f74b928d545b20e7ea656cd1 | /microdaq/macros/mdaq_close.sci | 2c4fa49aabe118bcb4621405035c9ce21eaec53d | [
"BSD-3-Clause"
] | permissive | pj1974/Scilab | 5c7fb67d5cae5ac0cdf78e3dd66b97ba50f9fc95 | cd54f1bd8502d6914ad6ff5271ca0e6e3d323935 | refs/heads/master | 2020-12-25T17:12:56.934984 | 2015-10-06T17:16:11 | 2015-10-06T17:16:11 | 41,862,822 | 0 | 0 | null | 2015-09-03T14:00:56 | 2015-09-03T14:00:56 | null | UTF-8 | Scilab | false | false | 199 | sci | mdaq_close.sci | function mdaq_close(link_id)
if link_id < 0 then
disp("WARNING: You are trying to close non existing connection!");
return;
end
mdaq_disconnect(link_id);
endfunction
|
02678937d985fc5a2ad20b72c9bbb37ccae2920d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2837/CH12/EX12.3/Ex12_3.sce | 250e3ae6479d3a681c21f49c0c41ccb589dca0ff | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex12_3.sce | clc
clear
//Initialization of variables
Fa=0.045
l=4 //m
b=4 //m
Fe=1
Ta=540+460 //R
Tb=1540+460 //R
//calculations
A=l*b
Q=0.173*A*Fa*Fe*((Tb/100)^4 -(Ta/100)^4)
Q2=416000
//results
printf("In case 1, Net energy exchange = %d Btu/hr",Q)
printf("\n In case 2, Net energy exchange = %d Btu/hr",Q2)
disp('T... |
5ced04aeb2b59f0b1aa0d7a6f8cb91c652062567 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3537/CH7/EX7.11/Ex7_11.sce | 48640f462bdb832b95f45be1da2f176b260c8cae | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 193 | sce | Ex7_11.sce | //Example 7_11
clc();
clear;
//To calculate the fractional index for an optical fiber
n1=1.563
n2=1.498
delta=(n1-n2)/n1
printf("The fractioal index of an optical fiber is %.4f",delta)
|
a470a011b746112f7b9477e0a81f4653e82b7968 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3161/CH5/EX5.5/Ex5_5.sce | d408fcde24fff9e4eb9010f2ab547f131bf43f71 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 454 | sce | Ex5_5.sce | clc;
//page 272
//problem 5.5
//Let Abe the maximum value of the discrete samples.
//Error tolerated is 0.1% i.e. 0.001A
//If D is step size then possible maximum error is D/2
//Thus D/2 = 0.001A or A/D = 500 = no of levels required(Levels)
Levels = 500
//minimum no of binary digits required(B) = rounded va... |
67a3013974bbe2ff773df4dae0e471e4af984265 | 449d555969bfd7befe906877abab098c6e63a0e8 | /858/CH4/EX4.1/example_1.sce | d87134ff3a01eb70bcde7d8ff8036c58d4ddd8ee | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 225 | sce | example_1.sce | clc
clear
printf("example 4.1 page number 125\n\n")
//to find water compressibility
delta_p=70; //in bar
Et=20680 //in bar
compressibility = delta_p/Et;
printf("compressibilty of water = %f",compressibility)
|
ee2cb100aa9e9b4e65867fcadbc59b09a6ec5742 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1682/CH9/EX9.5/Exa9_5.sce | 1acf7a0f8722d59394c5d3cce444aeda96320268 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,217 | sce | Exa9_5.sce | //Exa 9.5
clc;
clear;
close;
//Given data :
P=100000;//in Rs
F=20000;//in Rs
n=8;//in years
Sum=n*(n+1)/2;//sum of the years
disp("The rates for years 1-8, are respectively 8/36,7/36,6/36,5/36,4/36,3/36,2/36,1/36");
disp("The calculations of Dt and Bt for different values of t are summarized in table below u... |
c3ead947e220efd5226d418757c70548e6783166 | b34461c9ddff1ba130b67023d6e568ada42830dc | /scripts/additionMoyenne.sci | e9a2cf451f2f3e26e7a08d2596df6f0d994f7c8e | [] | no_license | AdrienKegler/Projet-Exolife | f72287fdc41a07b88f03b8346dafab93b4539b07 | 249f0861dc4ba3f2a7639ea60b7d12b45e717933 | refs/heads/master | 2020-05-25T14:05:45.213740 | 2017-03-17T09:16:20 | 2017-03-17T09:16:20 | 84,937,694 | 0 | 0 | null | 2017-03-15T10:15:55 | 2017-03-14T10:45:25 | Scilab | UTF-8 | Scilab | false | false | 949 | sci | additionMoyenne.sci | //fonction d'addition d'image
// chargment des images
// for d'analyse de pixels addition
function img_out=additionMoyenne(matriceA,matriceB)
img_inA = matriceA;
img_inB = matriceB;
SizeXa = size(matriceA,"r");
SizeYa = size(matriceA,"c");
SizeXb = size(matriceB,"r");
SizeYb =... |
962a34206ec2ff3f050646bcff828955c515edc1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /569/CH2/EX2.24/2_24.sci | 50309ded1eef9f6d4a25b53195c92e4fc0d944b1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 212 | sci | 2_24.sci | //calculating the reading of the multimeter and percentage error
clc;
Zl=20000;
Zo=10000;
Eo=6;
El=Eo/(1+Zo/Zl);
disp(El,'Reading of the multimeter (V)=')
PE=((El-Eo)/Eo)*100;
disp(PE,'Percentage error=') |
4d040f1d4764f59a563f563d58fc0703abb63a9c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2210/CH5/EX5.3/5_3.sce | 48cd1c364054ec95b286a44e6d251d014e7452ec | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 318 | sce | 5_3.sce | //Chapter 5, Problem 3
clc
f1=260*10^6 //frequency in hertz
f2=100*10^6 //frequency in hertz
A=40 //minimum attenuation in dB
//calculation
fr=f1/f2
n=A/(20*log10(fr))
printf("Number of arms = %f\n i.e 5 arms",n)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.