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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30ec44edc70f6766fa8a4281a17e09185947d8f3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2744/CH10/EX10.10/Ex10_10.sce | 6ca3835e18ce84ccd09edde4e184bf8b10b02a7f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,037 | sce | Ex10_10.sce | clear;
clc;
d = 9;// inches
p = 5000/2240;// lb/in^2
f = 8;// tons/in^2
PR = 0.3;// Poisson's ratio
//(i) Maximum principal stress hypothesis:
k_limit1 = sqrt((f + p)/(f - p));//k_limit = r1/r2
r_limit1 = k_limit1*0.5*d;//inches
printf('The outer radius in case(i), r2 = %.3f inches',r_limit1);
//(ii) Maximum ... |
7e7043b8e25685b2a08b8a864490c277992ab89d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1850/CH8/EX8.6/exa_8_6.sce | edbcb4ff14ad9fece93451d39ebf1ba51669acd1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 502 | sce | exa_8_6.sce | // Exa 8.6
clc;
clear;
close;
//given data
omega= 200*%pi;// in radians/seconds
f=omega/(2*%pi);// in Hz
T=1/f;// in sec
T=T*10^3;//in ms
Vin= 7;//in volt
t1= 1/omega*asin(6/Vin);// in sec
t1=t1*10^3;// in ms
// The output of the schmitt trigger is at -10 volt
t1= T/2+t1;// in ms
// The output of the schm... |
da07913567cc8671c2a6447430cadfc1147f7450 | fbd17575bab2ee4dc49cc7d13b5b94d24ab9482c | /TP7/test.sci | ab46fd035fae9065f6feb72388af8699d518c458 | [] | no_license | 1saac-W/MT09-Analyse-Num-rique | 05b509981dfa00e3b7b550716b1487cbbf0a3fed | 0853f8053254f5dd23179073187ada3d936aff84 | refs/heads/master | 2020-09-27T04:34:36.549125 | 2020-01-05T16:02:18 | 2020-01-05T16:02:18 | 226,431,201 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 389 | sci | test.sci | //clc;
clear;
exec 'constrpoly.sci';
exec 'mcnorm.sci';
t1 = [0,1,2]';
y1 = [1,3,7]';
[A1] = constrpoly(t1);
[x1] = mcnorm(A1,y1);
plot(t1,A1*x1,'o-b');
plot(t1,y1,'*-r');
legend("result1", "y1");
t2 = [0:0.25:2]';
y2 = [1, 1.7, 1.95, 1.8, 3., 3.6, 4.45, 5.9, 6.6]';
[A2] = constrpoly(t2);
[x2] = mcnorm(A2,y2);
f = scf... |
f007d00dace085843330a32576bff1af07f18cc1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1787/CH4/EX4.15/Exa4_15.sce | 78459859d735edcd185505c21a839f093bed54b0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 630 | sce | Exa4_15.sce | //Exa4.15
clc;
clear;
close;
//given data
Vz=15;//in volts
Izk=6;//in mA
Vout=15;//in Volts
Vs=20;//in Volts
ILmin=10;//in mA
ILmax=20;//in mA
disp("the zener current will be minimum i.e. Izk = 6mA when load current is maximum i.e. ILmax = 20mA");
RS=(Vs-Vout)/(Izk+ILmax);//in ohm
disp("when the load curre... |
7868f64edc54dee3504e6e688b2621cb619d745f | 002b6230874dea6e4d76defafc1ae293b5744918 | /solvers/IncNavierStokesSolver/Tests/TaylorVor_dt1.tst | b90c07a505717883010e682b3f201e4ec3efeeee | [
"MIT"
] | permissive | SCOREC/nektar | f3cf3c44106ac7a2dd678366bb53861e2db67a11 | add6f04b55fad6ab29d08b5b27eefd9bfec60be3 | refs/heads/master | 2021-01-22T23:16:16.440068 | 2015-02-27T17:26:09 | 2015-02-27T17:26:09 | 30,382,914 | 6 | 7 | null | null | null | null | UTF-8 | Scilab | false | false | 871 | tst | TaylorVor_dt1.tst | <?xml version="1.0" encoding="utf-8"?>
<test>
<description>Convergence: Taylor Vortex IMEXOrder2 dt=0.01</description>
<executable>IncNavierStokesSolver</executable>
<parameters>TaylorVor_dt1.xml</parameters>
<files>
<file description="Session File">TaylorVor_dt1.xml</file>
</files>
<met... |
5d41c426785c551cada32c7021e0c2f1b9e68313 | 449d555969bfd7befe906877abab098c6e63a0e8 | /767/CH6/EX6.9.2/Ch06Exa6_9_2.sci | 4f9b5433179609655f0f980a2f7dae78b17f3440 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 518 | sci | Ch06Exa6_9_2.sci | // Scilab code Exa6.9.2 : To calculate the w/B ratio for a completely stripped nitrogen to move in a stable orbit : Page 274(2011)
E_k = 1200; // Kinetic energy of the proton, MeV
q = 7; // Number of proton in nitrogen
E_r = 13040 // Rest mass energy of the electron, MeV
E = (E_k+E_r)*1.6e-013; // Total energy,j
... |
eb3e785ed061f3d926a5117368d844d69ab522e6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /564/CH6/EX6.2/6_2.sce | aa9952125ecd5c385668d2ed15ba732ad912b35e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 725 | sce | 6_2.sce | pathname=get_absolute_file_path('6_2.sce')
filename=pathname+filesep()+'6_2data.sci'
exec(filename)
F=[-W;M;0;0];
P=EI*[(27/(2*L^3)) (9/(2*L^2)) (6/L^2) -(3/(2*L^2));
(9/(2*L^2)) (6/L) (2/L) (1/L);
(6/L^2) (2/L) (4/L) 0;
-(3/(2*L^2)) (1/L) 0 (2/L)];
V=inv(P)*F;
Sy12= EI*(-(6*V(3)/(L^2))-(12*V(1)/(L^3)... |
5d4090100449f1ef9dbbc10f75c4ce4fa2e4829e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2891/CH1/EX1.19/Ex1_19.sce | c5e3a612d15abe6f92c01b5075bc13b31e882d41 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 155 | sce | Ex1_19.sce | // Exa 1.19
clc;
clear;
close;
// given :
A_p=16 // power gain
A_p_Np=log(sqrt(A_p)) // power gain in nepers
disp(A_p_Np,"power gain in nepers:")
|
1e914cafcb621d15de93ef93a67e4db3c7b74010 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3792/CH8/EX8.6/Ex8_6.sce | f4db86a9ec107d58f4f0514281115cd577e62a3a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 958 | sce | Ex8_6.sce | // SAMPLE PROBLEM 8/6
clc;funcprot(0);
// Given data
W=100;// The weight of the piston in lb
k=200;// The spring modulus in lb/in
c=85;// The damping coefficient in lb-sec/ft
a=80;// The top surface area in in^2
omega=30;// rad/s
g=32.2;// The acceleration due to gravity in ft/sec^2
p=0.625;// lb/in^2
// Ca... |
3e6ac12754ac16cb810d490c14cd68d1011640b0 | 1f57c25951e0b065ae60f388372d92fb44f41e5c | /Practica 1/SecanteMod.sce | 0312d34c71927a9deadb2edba3725f098c908225 | [] | no_license | javilag/metodosNumericos | 1d93774d87a1bef50002089a51c5bfe961eb26de | 06dbc373351ff56c465896d47c89d5f896f249d8 | refs/heads/master | 2021-01-01T19:43:18.598387 | 2015-10-28T19:01:13 | 2015-10-28T19:01:13 | 42,838,717 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 833 | sce | SecanteMod.sce |
function secanteM(f,xi,tol,imax)
//f es la función que se ingresara entre comillas
//xi es un punto
//tol es la tolerancia
//imax es el numero maximo de iteraciones
i=1;
d=2;
printf('+-----------+----------------------+----------------------+\n');
printf('| Iteracion | xi | error |\n... |
4e70d0f6e31988165dbfabfd9fb096e0bb3e439c | 727092dff86e9d034d021bbc56565d9336b988aa | /Códigos CN/RK4_EDO.sci | a796ca1eb037a4e5dc628952da1cdb817146a6c4 | [] | no_license | lucasdksan/Numerical-computing | c54b855bd50f2a06b1970086f2da63c28883f287 | a5a5863499bdf46003437140e3fa3123fc4960f8 | refs/heads/master | 2023-06-24T16:13:01.094230 | 2021-07-29T15:57:00 | 2021-07-29T15:57:00 | 278,514,165 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 398 | sci | RK4_EDO.sci | function [x,y] = RK4(a,b,h,y0)
x = a:h:b;
n = length(x);
y(1) = y0;
for i = 2:n
k1 = df(x(i-1),y(i-1));
k2 = df(x(i-1) + h/2, y(i-1) + h/2*k1);
k3 = df(x(i-1) + h/2, y(i-1) + h/2*k2);
k4 = df(x(i),y(i-1) + h*k3);
y(i) = y(i-1) + h/6*(k1 + 2*k2 + 2*k3 + k4... |
02e18c32d4abd97645a8f1cf1714d9debb5a29d0 | 717ddeb7e700373742c617a95e25a2376565112c | /275/CH2/EX2.2.58/Ch2_2_58.sce | 3c4b2986f55edf69bd762195e7d55e26dec1c493 | [] | 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 | 813 | sce | Ch2_2_58.sce | clc
disp("Example 2.58")
printf("\n")
disp("Design a voltage regulator using zener diode to meet following specification")
printf("Given\n")
printf("1 Resistance are in ohms \n 2 Current are in ampere \n 3 voltage sources are in volt\n")
//unregulated dc input voltage
Vimin=20
Vimax=30
//regulated dc output vo... |
26d14b1254e56ca7a22b5d7bd7e4ec46c5db0fa5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2609/CH2/EX2.1/ex_2_1.sce | 9b0eca33184c0829ef39efc5d27788cda17be802 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 255 | sce | ex_2_1.sce | //Ex 2.1
clc;
clear;
close;
format('v',5);
v1=7;//mV
v2=9;//mV
Ad=80;//dB
CMRR=90;//dB
vid=v2-v1;//mV
vcm=(v1+v2)/2;//mV
Ad=10^(Ad/20);//unitless
CMRR=10^(CMRR/20);//unitless
vout=Ad*(vid+vcm/CMRR)/1000;//V
disp(vout,"Output Voltage(V)");;
|
e96f42d58e24da8c62f60f6f6be73026faf54bd2 | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpicscifiles6/Sfparadata.sci | 5aa4e5e594a413e69809183f4be85c04af9c5419 | [] | no_license | ketpic/ketcindy-scilab-support | e1646488aa840f86c198818ea518c24a66b71f81 | 3df21192d25809ce980cd036a5ef9f97b53aa918 | refs/heads/master | 2021-05-11T11:40:49.725978 | 2018-01-16T14:02:21 | 2018-01-16T14:02:21 | 117,643,554 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 290 | sci | Sfparadata.sci | // 08.08.16
function Out=Sfparadata(varargin)
Nargs=length(varargin);
Fd=varargin(1);
Ndu=25 ; Ndv=25; Np=[50,50];
if Nargs>=3
Ndu=varargin(2);
Ndv=varargin(3);
end;
if Nargs>=4
Np=varargin(4);
end;
Tmp=Sf3data(Fd,Ndu,Ndv,Np);
Out=Projpara(Tmp);
endfunction
|
409428924eb7ba356b9f34c6491979e33e42038b | 449d555969bfd7befe906877abab098c6e63a0e8 | /788/CH10/EX10.3.b/10_3_soln.sce | 12849c74d0f79a83eb4c3e9405c6e23cba04cdbe | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 489 | sce | 10_3_soln.sce | clc;
pathname=get_absolute_file_path('10_3_soln.sce')
filename=pathname+filesep()+'10_3_data.sci'
exec(filename)
// Solution:
// wall thickness,
t=(Do-Di)/2; //in
// burst pressure,
BP=(2*t*S)/Di; //psi
// working pressure,
WP=BP/FS; //psi
// Results:
printf("\n Results: ")
printf("\n The working pressure of ste... |
341d6cb497bb70bc96d03f932ddd22283a04a0d8 | 1232196a72221f6cc0ee0a9a47111ef1188dafe9 | /xcos_blocks/sigma_delta.sci | 193294fdfa15413b716a9b40cb856a380c316541 | [] | no_license | sumagin/rasp30 | 06dc2ee1587a4eaf3cf5fb992375b8589617f882 | a11dcffaed22dbac1f93c2f4798a48c7b0b1f795 | refs/heads/master | 2021-01-24T23:51:54.459864 | 2016-07-08T22:03:43 | 2016-07-08T22:03:43 | 16,685,217 | 2 | 3 | null | 2015-07-23T15:28:49 | 2014-02-10T05:17:38 | C | UTF-8 | Scilab | false | false | 2,569 | sci | sigma_delta.sci | function [x,y,typ]=sigma_delta(job,arg1,arg2)
// Copyright INRIA
x=[];y=[];typ=[];
select job
case 'plot' then
standard_draw(arg1)
case 'getinputs' then
[x,y,typ]=standard_inputs(arg1)
case 'getoutputs' then
[x,y,typ]=standard_outputs(arg1)
case 'getorigin' then
... |
930cc38242de283c09fd1772a9b248a0876bcb52 | 449d555969bfd7befe906877abab098c6e63a0e8 | /965/CH2/EX2.16/16.sci | 6054d7ded4d75128bc4dbd187fc1bf74869aa426 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 457 | sci | 16.sci | clc;
clear all;
disp("heat flow rate")
La=0.03;//m
Aa=0.1*0.1;//m^2
kA= 150;//W/(m*C)
RthA=La/(kA*Aa);
Lb=0.08;//m
Ab=0.1*0.03;//m^2
kB= 30;//W/(m*C)
RthB=Lb/(kB*Ab);
Lc=0.08;//m
Ac=0.1*0.07;//m^2
kC= 65;//W/(m*C)
RthC=Lc/(kC*Ac);
Ld=0.05;//m
Ad=0.1*0.1;//m^2
kD= 50;//W/(m*C)
RthD=Ld/(kD*Ad);
Req=Rt... |
1ac3539e8ec12fd265e58ee2ce7c797a209909f8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2309/CH5/EX5.a.1/A_Ex5_1.sce | dafec357c49decdecc4718b90a6ab51a98b74603 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 451 | sce | A_Ex5_1.sce | // Chapter 5 additional Example 1
//==============================================================================
clc;
clear;
// input data
// Copper has FCC structure
a = 3.6; // lattice parameter of copper in Å
// Calculations
r = a*sqrt(2)/4; // atomic radius of copper
// Output
mpri... |
e422875f85f7fb6b7cf133cf1a3c9167d88e7224 | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH6/EX6.6/Example6_6.sce | 19e8090be3b859706d6d410ea06f42698d4ce08a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 455 | sce | Example6_6.sce | //Given that
Radius_earth = 6.37 * 10^6
h_alti = 520 * 10^3 //in meter
velocity = 7.6 * 10^3 //in m/s converted from km/s
mass = 79 //in kg
//Sample Problem 6-6a
printf("**Sample Problem 6-6a**\n")
acce = velocity^2/(h_alti + Radius_earth)
printf("The acceleration is equal to %f m/s^2\n", acce)
//Sample... |
3c8aa9d3c6b360f54002cdb1a46c655b204b4554 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1364/CH10/EX10.1.1/10_1_1.sce | ca071bc78a4905be69a36882be71747e793bf293 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 10_1_1.sce | clc
//initialisation of variables
Q= 450 //ft^3/sec
k= 0.5
i= 1/2000
C= 105 //ft^1/2/sec
//CALCULATIONS
d= (((Q*sqrt(2/i))/(2*sqrt(1+k^2-k)*C))^(2/5))*(5.41/7.55)
b= d/2
s= d*sqrt(1+k^2)
//RESULTS
printf (' vertical= %.2f ft',d)
printf (' \n horizontal= %.2f ft',s)
|
0e1b3d336b9d36af56e51e1c1d896e5aefad75e2 | 01697f0dc71290a6b6e233849a73d19a883845f1 | /sem06/paper8/lab09a/q02.sce | 8229e4f16356e04b4366e1aa2224f331b9f22537 | [] | no_license | aaruni96/Math-Lab | 5d83a13547308bd9d1b7daa28be29a49e1020fbd | 488469c9aba9251f5725e0851fb19e2aef38d234 | refs/heads/master | 2021-01-12T06:29:53.790743 | 2018-04-27T09:21:40 | 2018-04-27T09:21:40 | 77,370,232 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 277 | sce | q02.sce | clc;
clear;
a=[[10,1,1];[2,10,1];[2,2,10]];
b=[12,13,14];
x0=[0,0,0];
for k=1:5000
x=x0;
for i=1:3
sump=0;
for j=1:3
if i~=j
sump=sump+a(i,j)*x(j);
end
end
x0(i)=(b(i)-sump)/a(i,i);
end
end
mprintf("Solution of the equation is (%f,%f,%f)",x(1),x(2),x(3));
|
110c84101f418f2c4b78b2e78d3e2748495ff251 | 63c8bbe209f7a437f8bcc25dc1b7b1e9a100defa | /test/0090.tst | 0ca8df052884471cfb8902afce822a3d11bd91f6 | [] | no_license | fmeci/nfql-testing | e9e7edb03a7222cd4c5f17b9b4d2a8dd58ea547c | 6b7d465b32fa50468e3694f63c803e3630c5187d | refs/heads/master | 2021-01-11T04:09:48.579127 | 2013-05-02T13:30:17 | 2013-05-02T13:30:17 | 71,239,280 | 0 | 0 | null | 2016-10-18T11:01:57 | 2016-10-18T11:01:55 | Python | UTF-8 | Scilab | false | false | 565 | tst | 0090.tst | sPLIttER F {}
fIlTer CI { }
fIlTER EFoO {Not M oR t Or NoT nCD oR WU }
q BRAnch w
gROUpER a {MODULE XC{ ued >= V YbUx = Sx dELTa 84S } mOduLE diAM{ CN = Q rDeLTa 9533 } modUle O{ } mODULe Et{ } mODUlE I{ W = auX DeLTA 46M } agGRegAte xUm ,vWmt.GWMHn ,D.C }
unGrOUper l { }
GROUpFilter wi {}
mErGEr UO { mo... |
156dc5c19a85510fe7319692c25d3d1352efd817 | 542cf0bb990e80712856b7ab778624c29538a49d | /demodulatorResearch/playSignal.sci | 72a041ba9faa4e2df9256cf695cefba8803a2dd0 | [] | no_license | wizardyesterday/RtlSdrDiags | e77cf60506deefa91d7b2fa9565bd7575ec5a6e2 | 19d3b1c2546b37738d8e1c2f175b9a6e59415871 | refs/heads/master | 2023-08-16T10:28:37.161708 | 2023-08-13T18:45:16 | 2023-08-13T18:45:16 | 219,863,229 | 21 | 1 | null | 2023-08-03T21:17:02 | 2019-11-05T22:32:53 | C++ | UTF-8 | Scilab | false | false | 4,556 | sci | playSignal.sci | //******************************************************************
// File name: playSignal.sci
//******************************************************************
// This program assumes that an IQ data file contains data that is
// sampled at 256000S/s. Data segments should be powers of 2 so
// that no zero paddi... |
b943be38c500cad5a5b1ab0a5e234be37c761a6a | 64647656adb5d4ff3cbb1147f2009fd55a598d27 | /macros/MB_INIT_RTU.sci | 9932a23789846cd475eca0f0e3f6e4c7ce8813d6 | [] | no_license | esc0rpi0n/modbus-blocks | 353ae5e5df9da7a6afc9bd5d264670b1e132e655 | 44664b3424e9b7b98fab0216676977fb7ad29544 | refs/heads/master | 2020-04-02T05:15:19.835714 | 2017-06-14T08:18:01 | 2017-06-14T08:18:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,325 | sci | MB_INIT_RTU.sci | function [x,y,typ]=MB_INIT_RTU(job,arg1,arg2)
x=[];y=[];typ=[]
select job
case 'plot' then
standard_draw(arg1)
case 'getinputs' then
[x,y,typ]=standard_inputs(arg1)
case 'getoutputs' then
[x,y,typ]=standard_outputs(arg1)
case 'getorigin' then
[x,y]=standard_origin(arg1)
ca... |
3ba34151df70b717071741a3084b75f3ec5ca158 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2144/CH5/EX5.11/ex5_11.sce | de477d2a3e69c037da47b7846145981bdb15084c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 732 | sce | ex5_11.sce | // Exa 5.11
clc;
clear;
close;
// Given data
r = 10;
Gamma = 1.4;
P1 = 1;// in bar
P2 = 1 * ((r)^(Gamma));// in bar
P3 = 40;// in bar
P4 = P3;// in bar
T1 = 80;// in degree C
T1 = T1+273;// in K
T2 = T1 * ((r)^(Gamma-1));// in K
T3 = (P3/P2)*T2;// in K
T4 = 1700;// in degree C
T4 = T4 + 273;// in K
Vc=... |
4c999ed61e30538ffc14066153afcd03ea7a31a2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /564/CH16/EX16.10/16_10.sce | 78d8af05b8d7129212163a0e44b964fca0836e7c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 16_10.sce | pathname=get_absolute_file_path('16_10.sce')
filename=pathname+filesep()+'16_10data.sci'
exec(filename)
clear
function[si]=sing(a,b)
if(a<b) then
si=0;
else
si=(a-b);
end
endfunction
deff("[v]=f(z)","v=(1/EI)*(((L*W*z^3)/64) -((W/24)*(sing(z,0.5*L))^4)+((W/24)*(sing(z,0.75*L))^4)-... |
5855429004d96ad6486b57851029b17554b0d7a8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1658/CH29/EX29.7/Ex29_7.sce | ce79d124bed2002b20970358e3fc853324b4c1e4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 110 | sce | Ex29_7.sce |
clc;
RC=2*10**3;
R3=20*10**3;
rbb=200;
C1=1000*10**-12;
T=0.69*C1*R3;
disp('microsec',T*10**6,"T=");
|
8192ecc9957e979dac9da31799959da8311d37ff | 449d555969bfd7befe906877abab098c6e63a0e8 | /2513/CH12/EX12.5/12_5.sce | be80fa48409bf3ab2b775568a6e68ad5fe91a478 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 378 | sce | 12_5.sce | clc
//initialisation of variables
p=90//deg
h=48//in
p1=100//psig
P=(1/2*%pi)*h^2*p1*0.7071//lb
r=3000/54-31//ft
s=9000//psi
l=170//in
b=6.5*10^-6//ft
w=46//ft
w1=1000//ft
//CALCULATIONS
D=(1/4*%pi)*h^2*p1//lb
P=[r]*h^2//lb
T=%pi*h*(1/4)*s//lb
T1=(1/2)*l//tons
Del=b*w*w1//ft per
//RESULTS
printf('the... |
f8e2f1ad11970dc5558d04ab0ad8719bc525de7d | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.0/macros/signal/wfir.sci | d471e1649236ffd986371786f74295aab23028be | [
"MIT",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 3,838 | sci | wfir.sci | //<wft,wfm,fr>=wfir(ftype,forder,cfreq,wtype,fpar)
//<wft,wfm,fr>=wfir(ftype,forder,cfreq,wtype,fpar)
//Macro which makes linear-phase, FIR low-pass, band-pass,
//high-pass, and stop-band filters
//using the windowing technique.
//Works interactively if called with no arguments.
// ftype :Filter type ('lp','hp','bp',... |
bfdbdaf4e6faa37489f657d433c66f8693d3855b | 449d555969bfd7befe906877abab098c6e63a0e8 | /575/CH4/EX4.8.4/4_8_4.sce | eb04717be876f4df418f04ff05ae4d82e48a6fff | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 870 | sce | 4_8_4.sce | clc
pathname=get_absolute_file_path('4_8_4.sce')
filename=pathname+filesep()+'484.sci'
exec(filename)
printf(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
disp("N2 balance")
na=basis*xN2/0.79
printf("na=%f mol air",na)
disp("Atomic C balance")
n... |
df283274661110decab98fe1319920fe9510e13e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2657/CH2/EX2.5/Ex2_5.sce | cf82ae39c1103172534c7fb4f6fb944368bdc78c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,483 | sce | Ex2_5.sce | //Calculations on Otto cycle
clc,clear
//Given:
r=8 //Compression ratio
P1=1,P3=50 //Pressure at 1, 3 in bar
T1=100+273 //Temperature at 1 in K
m=1 //Air flow in kg
R=0.287 //Specific gas constant in kJ/kgK
g=1.4 //Specific heat ratio(gamma)
//Solution:
//Refer fig 2.22
//Point 1
V1=m*R*10^3*T1/(P1*10^5) //... |
149459ecb5cd31622d9f2f15bd2284a49b7f082a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1673/CH1/EX1.13/1_13.sce | 61aea03e172d4ef2b3cb57b817c84ff779c02946 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 664 | sce | 1_13.sce | //taylor series
//example 1.13
//page 16
clc;clear;close;
deff('y=f(x)','y=sin(x)');
deff('y=f1(x)','y=cos(x)');
deff('y=f2(x)','y=-sin(x)');
deff('y=f3(x)','y=-cos(x)');
deff('y=f4(x)','y=sin(x)');
deff('y=f5(x)','y=cos(x)');
deff('y=f6(x)','y=-sin(x)');
deff('y=f7(x)','y=-cos(x)');
D=[f(%pi/6) f1(%pi/6) f... |
693fa5cfc61859e0d6bd5f802f8bc6c2fac98841 | dbce04493876311f3ce30baaaa8d0226ac9d5780 | /tests/while.tst | 5a8141a0b44ee1ac229a59ef33247570073d3655 | [] | no_license | dancek/tkk-compiler | 3524580f69e8ba47a6272fe5c3e928204c01ae2d | e9563d7f73fbca26c936db6da3e5ced67d839a9a | refs/heads/master | 2016-09-06T12:06:02.648343 | 2014-04-16T12:16:27 | 2014-04-16T12:16:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 155 | tst | while.tst | main begin
int a;
a <= 0;
begin
print(a);
a <= a + 1;
end
for( ; a < 6 ; )
begin
print(a);
a <= a + 1;
end
return a;
end
|
b34a279e483f34aa5e5198df21435ca13a98d451 | 3c31145b7b0914a28b5c5c61d01c47253663df63 | /1 unidade trabalho/identificacao_multi.sci | 14f03c5e99772b32836af225183698736ff0b52b | [] | no_license | APFN/INTRODUCAO-A-IDENTIFICA-O-DE-SISTEMAS | 1eb05ddc0debe5381d941715915388f7ca8af22c | d1a7afd8c8f894285aa9d4c282939538cfaa45d4 | refs/heads/master | 2021-07-21T14:50:25.870205 | 2017-10-30T19:31:48 | 2017-10-30T19:31:48 | 108,897,789 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 8,106 | sci | identificacao_multi.sci | // RESIDUOS ARX
// Calcular o erro de predicao um passo a frente (residuo) entre a saida de
// um sistema e a saida prevista pelo modelo ARX, descrito pelo vetor de
// parametros theta, para uma entrada u determinada
function res=multi_resARX(u1,u2,y,theta,delay)
test_parametersUY(u1,y);
test_parameters... |
af75d776413b20cd52b98b702950725a69469352 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1187/CH3/EX3.4/4.sce | be8d650b6e1f9910fb3cf2485e097cd1c7005c02 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 329 | sce | 4.sce | clc
Cd=0.97;
d1=0.28; // m
d2=0.14; // m
g=9.81; // m/s^2
d=0.05; // difference in mercury level in metre
rho=1000; // kg/m^3
rho_m=13600; // kg/m^3
A1=%pi/4*d1^2;
A2=%pi/4*d2^2;
p_diff=(rho_m-rho)*g*d;
h=p_diff/rho/g;
Q=Cd*A1*((2*g*h)/((A1/A2)^2-1))^(1/2);
disp("Flow rate = ")
disp(Q)
disp("... |
f77025117caa1805d7a4863dfbca0507f1a9a87e | 449d555969bfd7befe906877abab098c6e63a0e8 | /55/CH7/EX7.16/7ex16.sci | cb786a77b055bb3fc8806f206502426b3c9015b5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 955 | sci | 7ex16.sci | u=3; //mean of distribution of random variable X
x=[0,1,2,3,4,5,6]; //values of X in the distribution as x where it is the number of times heads occurs when a coin is tossed six times
p=[1/64,6/64,15/64,20/64,15/64,6/64,1/64]; //probabilities of occurrence of each value of X (x) in the distribution ... |
446a574d7ea718d3b6f9b1f3a5695642f3f78237 | 8cf6372d3b1745aa382131f243c0d4097a0b937f | /proj10/MultTime.tst | 8240751dfcaaba0553f6c3dfbb8d6f227cbac78a | [] | no_license | s9v/CS492-Nand2Tetris | 8da5f1899dec3f93374d41d0b5954620fabc4f50 | f1491d2b128aa45f1c55e3d16c091496fc54b833 | refs/heads/master | 2021-09-15T10:07:08.791830 | 2018-05-30T08:46:34 | 2018-05-30T08:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 851 | tst | MultTime.tst | // Measure running time of Mult.asm
load Mult.asm,
output-file MultTime.out,
output-list RAM[0]%D2.6.2 RAM[1]%D2.6.2 RAM[2]%D2.6.2 time%S1.5.1;
set RAM[0] 2,
set RAM[1] 3,
set RAM[2] -1;
while RAM[2] <> 6 {
ticktock;
}
output;
set PC 0,
set RAM[0] 17,
set RAM[1] 123,
set RAM[2] -1;
while RAM[2] <> 2091 {
ticktoc... |
1336dc8437234c90dd92aa9fc7e5f61ae739cbe9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1217/CH4/EX4.2/Exa4_2.sce | 81a78b728f2f9e8a6592a7f08b4dedd259cd71a4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 503 | sce | Exa4_2.sce | //Exa 4.2
clc;
clear;
close;
// given data
disp("As the input impedence of an op-amp circuit is very high & no current will enter the op-amp, hence node voltages at (a) & (b) will be at same potential, let Va=Vb=V");
disp("writing KCL at node (b) we have (6-V)/30+(8-V)/40+(0-V)/30=0");
V=48/11;//in volts
disp(V... |
ab31705c27f2caeb2dc7d96f3fa4f8e1489eebfa | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH23/EX14.23.18/Ex14_23_18.sce | 0fdda2abd80539e9191ea972d40c984d9f54c020 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 841 | sce | Ex14_23_18.sce | //Section-14,Example-2,Page no.-PC.112
//To calculate the pH in the following cases.
clc;
V_1=150 //volume of 0.1 NaOH solution(ml)
V_2=150 //volume of 0.2 HCl solution(ml)
N_1=0.1 //(N)
N_2=0.2 //(N)
V=V_1+V_2 //Total volume of the solution(m... |
7bd75ddfa89c5443d51e966f79bb18bf4d6a8bae | 449d555969bfd7befe906877abab098c6e63a0e8 | /1658/CH32/EX32.7/Ex32_7.sce | 4b105225853ca5b13b29b3ee3949cd5218e06244 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 108 | sce | Ex32_7.sce | clc;
//e.g 32.7
R1=1*10**3;
R2=10*10**3;
ACL=R2/R1
disp("Voltage at node A increases from 1V to 4v");
|
7c5b4c74115241e0a2022037f0bd1de15917d726 | ad618ca6b5ed579648f418556d871a22f9a21aaf | /sci_scripts/text_analysis.sci | b6ffe4e6a29bddc912243148ffb12216b7e8bec3 | [] | no_license | manojgudi/sci_ocr | 6de17d33475b7f2429a3dbe39fd0711138e3e14a | d18e7bc7a244d73f59830dd914f7aa9059726696 | refs/heads/master | 2020-05-20T10:05:31.612844 | 2013-03-15T05:16:45 | 2013-03-15T05:16:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,002 | sci | text_analysis.sci | exec training.sci
a_char = ReadImage("characters/single_char 1.png");
path = path + "training_feature_data/";
// dic is defined in training.sci
[content_vector, list_rowsum, list_colsum] = read_feature(path, dic);
// given_image should be grayscale
function [sorted_array_row, sorted_array_col] = compare_features(... |
1e6caaebaa49e0be7f3b76dde9b776f1807ec826 | 449d555969bfd7befe906877abab098c6e63a0e8 | /226/CH19/EX19.13/example13_sce.sce | 16b094a20b5067fc997ce27efd2bb59b1c4483f7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | example13_sce.sce | //chapter 19
//example 19.13
//page 848
printf("\n")
printf("given")
Rl=20;Po=2.5;Rd=4;Vr6=1;Vr9=Vr6;Vth=1;gFS=250*10^-3;Vbe=.7;
Vp=sqrt(2*Rl*Po)
Ip=Vp/Rl
Vcc=(Vp+Ip*Rd)
vr6=Ip/gFS
Vr2=vr6+1
Vce=Vr2;
Vce3=1;
Vr2=Vcc-Vce
Vee=Vcc;
Vr3=Vee-Vbe
Vr7=Vr2-Vr6
Vr8=Vcc-(-Vee)-Vr6-Vr7-Vr9 |
1aab08624be87cd7db124e565c15b27ff9712b8d | c7ae4be7c00d277ebf8f41b417dac91c03fea434 | /optimization/gradient_descent_fix_optimal/optim_fonctions.sci | 2a002ca01a39b4a916bb663d315aed9c34655c00 | [] | no_license | xsher/data_science | dfa829f2cbb68822f356afcf32dbd967b63675b8 | bf4e619f361d27c635a2c99e903df6b25e071f90 | refs/heads/master | 2020-09-09T17:59:41.318865 | 2019-12-03T09:26:50 | 2019-12-03T09:26:50 | 221,519,239 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 999 | sci | optim_fonctions.sci | function [J,G]=cost1(v);
n = length(v)
J = 0
G = []
for i=1:n
J = J + (v(i) - 1)^2
gradient = 2*(v(i)-1)
G = cat(1, G, gradient)
end
endfunction
function [J,G]=cost2(v);
n = length(v)
J = 0
G = []
for i=1:n
J = J + (v(i) - i)^2
gradient = 2*(... |
308d912571157d4a45117b29a94a5066ae9da9fe | 8ab159e0dea2b4cdf85e929c9cb4db2a5675a510 | /Stimulus_delivery/DynAff_posttest.sce | 27c55a9eb8cc06b308784ca81ef135fe29e402d7 | [] | no_license | lukassnoek/MSc_thesis | 7eaeb7e785c2bae74b407532da2fc478c92bdd12 | 6612cb8826167b4342a1b1f1598e05615a8ec1d6 | refs/heads/master | 2020-12-31T00:18:52.413711 | 2015-12-28T09:40:18 | 2015-12-28T09:40:18 | 29,242,720 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,838 | sce | DynAff_posttest.sce | # --- Dynamic Affect: Posttest --- #
# Experimental script to run the Posttest scenario
# of the Dynamic Affect paradigm. Runs an event-related
# presentation of stimuli, which are in 50% of the trials
# (counterbalenced over conditions) followed by a
# likert-scale evaluation (very pos - very neg).
#
# Creates ... |
d212a7e6dd1b83462daec3f73b05fbf33cb97b83 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2318/CH3/EX3.31/ex_3_31.sce | fbd4a1cc1b445d376a1c0a14ab6d5b7914bed5e1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 465 | sce | ex_3_31.sce | //Example 3.31: Capacitance, power loss, loss resistance and loss angle
clc;
clear;
close;
//given data :
r2=1500/%pi;// in ohm
r3=120;// in ohm
C2=0.95*10^-6;//F
C1=50*10^-12;// F
Cs=round(C1*r2*10^12/r3);
f=50;
w=round(2*%pi*f);
disp(Cs," Cable caacitance,Cs(PF) = ")
rs=(r3/(w^2*C1*10));
disp(rs*10^-6,"Parallel loss ... |
b708e87fca4957305da08fa8eebc75de38db4268 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH5/EX5.17/Ch05Ex17.sce | 3877beb0b25c91a6af05f27b3a73a539426dc99e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 450 | sce | Ch05Ex17.sce | // Scilab Code Ex5.17: Page:305 (2011)
clc;clear;
a = 1; // For simplicity assume slit width to be unity, unit
theta = 1; // For simplicity assume diffraction angle to be unity, unit
// As a*sin(theta) = m*lambda, solving for lambdas
lambda1 = a*sin(theta); // First wavelength, angstrom
lambda2 = a*sin(thet... |
c36612f1482247b40c513b24c0527a71ef8d67cc | bb832343b526bf8b343303718a2a73e7288ccff8 | /adaline/erro_quadratico/sce/adalineerroquadratico.sce | eab5d980b79c59b2d6bd9b507cf7b8432d52d15d | [] | no_license | pablohfny/AMAQ | 5985f9579e7d2fd9f4cdb281357a598c15c22c62 | ea433b96845fe7504d7b7ffe64125d299fe9e941 | refs/heads/master | 2023-05-01T15:53:13.712129 | 2021-05-25T17:32:40 | 2021-05-25T17:32:40 | 366,190,880 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,341 | sce | adalineerroquadratico.sce | // implementação da Regra Delta para treinamento do adaline
// Levantamento do Erro Quatrático Total
// aplicação: funções lógicas bipolares
// data: 14/04/2021
// autor: Keiji Yamanaka
clc; // limpa area de comando
clear;// limpa as variáveis da area de trabalho
// dados de treinamento
// tabela verdade
... |
1805d2c40d4eba75895993a28a616278e343567a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1823/CH9/EX9.25/SolEx9_25.sce | f0e211845bb99a048131c72ef6354652300d16ea | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 214 | sce | SolEx9_25.sce | //Use SPICE methods to simulate this amplifier
//Example 9.25 page no 281
clear
clc
R1=10*10^3 //Ω
R2=20*10^3 //Ω
R3=20*10^3 //Ω
Av=-((R2*R3)/(R1*(R2+R3)))
printf("\n The value of Av=%0.3f ",Av)
|
4cecdd19372860b8fa966675fd8e3cbf69c6b3fc | 449d555969bfd7befe906877abab098c6e63a0e8 | /165/CH11/EX11.8.a/ex11_8_a.sce | 43f2c595700be36b65316b47bdbd49253d9c309f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 313 | sce | ex11_8_a.sce | //Example 11.8(a)
clc;
//Given values of bridge elements
R1=470000;
R2=5100;
R3=100000;
C1=0.01*10^-6;
//We Know Balanced bridge equations as
Rx=R2*R3/R1;
//For the calculation of Capacitance
//we have Lx=R2*R3*C1
Lx=R2*R3*C1;
disp(Rx,Lx,'The unknown impedence is the series combination of Lx & Rx') |
3e3e29be696887822958f7adf335f153f8aed1de | 207c864c3f938783d617dca78232e70445ae21e6 | /lagrange.sci | 80fbd8b7cfc0c3954f4e9b9196971d875b9d43ea | [] | no_license | raresica/CalculNumeric | a211a57fd4851e546c0b5eb866b3b228534a982c | 5564822ff9f5dab745208898ef9162322b28bff2 | refs/heads/master | 2021-02-11T05:03:13.720791 | 2020-04-15T10:42:58 | 2020-04-15T10:42:58 | 244,457,154 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,029 | sci | lagrange.sci | function f=lagrange(xd,x,y)
[mx,nx]=size(x);
[my,ny]=size(y);
ierror=0;
if (nx~=ny)|(mx~=1)|(my~=1),
ierror=1;
disp( 'data dimension error ')
abort
end
xx=gsort(x);
for k=1:nx-1,
if xx(k)==xx(k+1),
ierror=1;
break,
end
e... |
224a2b97a5c4b1eb83ceaf0bd06c8d0d496f5804 | b3c9357cd1290921e67444ae057761959fdf24f1 | /Curso de programação com Scilab/códigos/rec01.sci | 028f5bc59779fa245efa5da8885dcd8f802e3824 | [] | no_license | joaolrneto/Scilab | 91742520422426dc8a772997ef4a5d6376008b6e | f383f87e4585955cf19d0dae1b5c29f93c3f70b4 | refs/heads/master | 2023-02-05T20:13:03.677069 | 2020-12-30T14:53:09 | 2020-12-30T14:53:09 | 264,671,730 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 167 | sci | rec01.sci | function rec01(fx,x,denominador)
if denominador == x then
fx=return(fx)
end
((x^denominador)/(denominador))+rec01(fx,x,denominador+1)
endfunction
|
4b3160239512399efc804ddfe12befcbc98fb485 | 449d555969bfd7befe906877abab098c6e63a0e8 | /978/CH2/EX2.4/Example2_4.sce | 6dcb4c13faca2f6e43ffb1f7c37d9cf025a9b6fb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 266 | sce | Example2_4.sce | //chapter-2,Example2_4,pg 484
Vp=1//peak input voltage
f=50//frequency
//R1=R2
//since halfwave rectification is done,integration gives the value
Vo=0.5*((2*Vp)/3.14)//output voltage,pi=3.14
printf("output voltage\n")
printf("Vo=%.4f V\n",Vo)
|
4c6160aedbb4bc956bfe679d2256c4155f874f05 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3875/CH11/EX11.2/11_2.sce | 105eed9361480ff49a86607b293e6318518ac5ee | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 548 | sce | 11_2.sce | clc;
clear;
e=1.6*10^-19 //charge in C
h=6.63*10^-34 //Plancks constant in J-s
c=3*10^8 //velocity of light in m/s
n1=1 //first order maxima
n2=2 //second order maxima
V=50*10^3 //voltage in V
tetha=26 //Braggs angle in degree
//calculation
lambda_min=(h*c)/(e*V) //wavelength in m
d=(n1*lambda_min)/(2*sind... |
f8241571ba514da4af78d7025940204588d59904 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2417/CH3/EX3.19/Ex3_19.sce | b9271887a598d422707097b223f6082d507fcea0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 406 | sce | Ex3_19.sce | clear;
clc;
printf("\t\t\tProblem Number 3.19\n\n\n");
// Chapter 3 : The First Law Of Thermodynamics
// Problem 3.19 (page no. 120)
// Solution
h1=3450*1000 //Unit:J/kg //Enthalpy of steam when it enters a nozzle
h2=2800*1000 //Unit:J/kg //Enthalpy of steam when it leaves a nozzle
//V2^2/2=h1-h2;
V2=sqrt... |
9676de2aad82166d8ecffd739cd3ccc7bf1266d3 | 31e6f49f6786aa5240625154834e364f6cfb8b50 | /test/MemoryAccess/PointerTest/PointerTest.tst | 74567da1681e6144c3766955430cbb3c75a2d3ba | [] | no_license | eilgin/hack-vm | 14dcad5e39bbe923bc68c981c7636ef68ad344d1 | 290dd3ea76724555d4f6f32c944dcf8939d3866e | refs/heads/master | 2021-01-15T18:01:05.019693 | 2012-09-17T10:37:54 | 2012-09-17T10:37:54 | 5,839,569 | 5 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 473 | tst | PointerTest.tst | // This file is part of the materials accompanying the book
// "The Elements of Computing Systems" by Nisan and Schocken,
// MIT Press. Book site: www.idc.ac.il/tecs
// File name: projects/07/MemoryAccess/PointerTest/PointerTest.tst
load PointerTest.asm,
output-file PointerTest.out,
compare-to PointerTest.cmp,
outpu... |
2beab6aa0280013e8054543806bb34884eba06b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3710/CH7/EX7.1/Ex7_1.sce | 716940c16f1c4959109454cdcf76f31368a7164c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 389 | sce | Ex7_1.sce | //Example 7.1, Page Number 296
//Detector sensitivity
clc;
D=10**9 //in meter square root hertz per watt
l=2*(10**-6) //Wavelength in meter
A=25*(10**-6) //Area in meter square
db=10*(10**3) //Detection Bandwidth in hertz
//From equation 7.2
NEP=(sqrt(A*db))/D //NEP is the detector sensitivty in W
mprint... |
ffa7c81ce440b61951cf227206ad7a7f26a3c6f9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /761/CH5/EX5.4/5_4.sce | eceaa26180c9777dc920b7b93f9640e0a86769aa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 426 | sce | 5_4.sce | clc;
//page no 182
//prob no. 5.4
//Class C amplifier with carrier o/p power of 100W with efficiency of 70% & with 100% modulation
Pc=100;eta=0.7;
//Determination of o/p power
Po=1.5*Pc;
disp('W',Po,'The o/p power with 100% modulation is');
//Determination of supply power
Ps=Po/eta;
disp('W',Ps,'The value of ... |
2eb2931935f2dc8fd72b50469cdfd50dcef0c8db | 449d555969bfd7befe906877abab098c6e63a0e8 | /1511/CH2/EX2.8/ex2_8.sce | 94f3510c89b6e1ea3e3a90f317e28bd6b188b179 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 251 | sce | ex2_8.sce | // Example 2.8 page no-49
clear
clc
L=1400
E_diff=12400/L //eV
del_E=2.15
L2=12400/del_E
printf("\nE2-E1=%.2f eV\n1850 A° line is from 6.71 eV to 0 eV\nTherefore, second photon must be from %.2f to 6.71 eV.\nLambda=%d A°.",E_diff,E_diff,L2)
|
1cc72ae12fb436c262280d6e7637b232d87b20e6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1385/CH4/EX4.5/4_5.sce | a2565a171fa5fe2995a52c9cf41a720bb36b631e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 228 | sce | 4_5.sce | clc
//initialisation of variables
p = 17.4 //mm
m= 1000 //gms
M= 18 //gms
n= 2 //moles
//CALCULATIONS
P= p*((m/M)/((m/M)+n))
P1= p*(n/((m/M)+n))
dp= p-P1
//RESULTS
printf (' vapour pressure of solution= %.2f mm',P1)
|
fb3ba4246b85b1325144fc7a5bf5994c814332fa | a1f93c5ed7f19ec2dc6e698a305960c7eaacb3fd | /Practica1/Ejercicio3.sci | 5d41956306d47a6ee3f4d34b618dc1353dd3d042 | [] | no_license | hectoregm/numerico | 813c74b87c976c2af4fe83adf59561a80141ea2f | ca0e16875746ad9d9c17da7ce0635669fc2410ed | refs/heads/master | 2021-01-21T07:53:31.701526 | 2014-12-02T04:42:40 | 2014-12-02T04:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 10,274 | sci | Ejercicio3.sci | function Funcion1(x)
// Autores: Jorge Zavaleta,Hector E. Gomez Morales
// Funcion que grafica la funcion definida en intervalos
//
// | cos(2x) si 0 <= x <= Pi/4
// f1(x) = |
// | 0 si Pi/4 < x <= Pi/2
//
// para un conjunto de argumentos dados x
//****************************... |
c2c12475f396115b48e2e571644bec72f6886640 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1904/CH2/EX2.3/2_3.sce | 694e5453af7b425652c36c4afee1ef85c36f8a75 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 299 | sce | 2_3.sce | //To determine the diversified demand
//Page 47
clc;
clear;
TCDi=[9,9,9,9,9,9]; //Load for each house all in kilowatt
DFi=0.65; //Demand factor
Fd=1.1; //Diversity factor
Dg=sum(TCDi)*DFi/Fd;
printf('The diversified demand of the group on the distribution transformer is %g kW\n',Dg)
|
4e60c7dc22ce6cd2dbe1fa77b41a67db6e09586c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2282/CH5/EX5.16/ex5_16.sce | e2d3f02e866e11bfe0cab8806844d57fb14ec938 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 460 | sce | ex5_16.sce | //Example 5.16, page no-209
clear
clc
bw=3.2 // voice channel band limited frequency in kHz
r=1.2 //1.2 times the Nyquist rate
n=24 //no of voice channel
b=8 // 8-bit PCM
sr=2*bw*r
p=10^6/(sr*10^3)
N=(n*b)+1
bit_d=p/N
bit_d=ceil(bit_d*1000)/1000
tr=1/bit_d
pri... |
ee9b1829f8f20086e99f13461bd324c598abbdb0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /773/CH11/EX11.02/11_02.sci | c3b9e8a3bdc3f3728aa685579db4dbe6ac770f50 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sci | 11_02.sci | //value//
s=%s;
sys1=syslin('c',(s+1)/(s+4));
evans(sys1,100)
printf("rootlocus begins at s=-4 & ends at s=-1")
|
af63ce64b7c5628267e575acdcd85428ea528aac | e6d5f1d801a3fe887b5dc04b8cc0a9eabc1fd432 | /Semana_9/a2senocoseno.sce | 392e8fc11f4bd0cbf0ed805ac9d4882d9f36dce3 | [] | no_license | lordjuacs/MateIII | 70def332063e56eb10fb47678a7e6130dc0dca63 | 164c53b61c9e35e565121f77ba2c578680a3ab56 | refs/heads/master | 2021-05-24T15:56:01.078904 | 2020-07-27T19:57:34 | 2020-07-27T19:57:34 | 253,643,962 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 244 | sce | a2senocoseno.sce | clc
A = [1 0 1; 1/2 sqrt(3)/2 1; -1/2 sqrt(3)/2 1; 1 0 1; -1/2 -sqrt(3)/2 1; 1/2 -sqrt(3)/2 1]
y = [1 1.6 1.4 0.6 0.2 0.8]'
disp(A, "A")
disp(y, "y")
[Q R] = qr(A)
R = R(1:3,:)
Q = Q(:,1:3)
disp(Q, "Q")
disp(R, "R")
c = inv(R)*Q'*y
disp(c,"c")
|
d3b323eef96d87449a77b3e287adf5040bb1e0d8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2342/CH5/EX5.9/EX5_9.sce | 2a2b038e78b94b17a2898add68bc78413a18d86e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 671 | sce | EX5_9.sce | // Exa 5.9
format('v',6)
clc;
clear;
close;
// Given data
V_G= 1.5;// in V
V_P= -3;// in V
R_S= 750;// in Ω
R_D= 1800;// in Ω
I_DSS= 6*10^-3;// in A
V_DD= 18;// in V
// V_GS= V_G-I_D*R_S
// I_D= I_DSS*(1-V_GS/V_P)^2 or I_DSS*(1-(V_G-I_D*R_S)/V_P)^2
//I_D^2*R_S^2+I_D*(2*R_S*(V_P-V_G)-V_P^2/I_DSS)+(V_P-V_G)... |
1c8b1fd13aa388c5a98425d8a66064b9911a8d35 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3776/CH5/EX5.2/Ex5_2.sce | d285b797845bb38f748ee6bddaf95a48f2eedfe3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 831 | sce | Ex5_2.sce | clear
//Given
P_Max = 10 //N - the maximum distribution in a triangular distribution
L = 3 //mt the total length of force distribution
L_X = 5 //mt - the horizontal length of the rod
//calculations
F_y = P_Max*L*0.5 //N - The force due to triangular distribition
L_com = 2*L /3 //mt - the resu... |
df99a440f0931d8bad2c773f78d37516193e747c | 0ade4f8a7ec375e54db514312b562334ab304d3e | /data/benchmark/Korns_11.tst | ef513252deb66412dd6e142e97f80b6d836d870f | [] | no_license | zeta1999/go-pge | 39ac86612d4a90c1e53d2c45c1177e98b3bcf4e4 | 99a4b600185145bcc047e8e42cecfd2346b6b16d | refs/heads/master | 2021-01-01T11:10:20.053388 | 2014-01-16T16:06:50 | 2014-01-16T16:06:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 124,457 | tst | Korns_11.tst | x y z v w
f(xs)
-20.668359 31.817591 22.043469 -1.303162 -18.677385 -2.229534
16.344869 -30.117498 -7.161659 -0.254790 -29.088851 -1.399490
43.239118 17.208574 36.516138 -47.451602 -39.609219 2.883158
-5.669018 5.548560 26.600526 -30.100493 6.687362 0.060864
-23.820626 -45.377436 -29.444117 -32.220204 -46.259096 ... |
2ffef97c0fa5b0dfca9d7840222c1ef1055fcd47 | 449d555969bfd7befe906877abab098c6e63a0e8 | /275/CH2/EX2.2.66/Ch2_2_66.sce | ae32e0e646cdd12eafec071e4a8df124b1d833ab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 839 | sce | Ch2_2_66.sce | clc
disp("Example 2.66")
printf("\n")
disp("Calculate the effect of a 10% variation supply voltage on diode current")
printf("Given\n")
//input voltage
Vi=25
//output voltage
Vo=10
//test current(lies b/w Izmin & Izmax)
Izt=20*10^-3
//load current(assume zero, no load operation)
IL=10^-3
//select R such th... |
9a1e9b9ea208ffee81ee2484bf8bc18ef43c9862 | e0124ace5e8cdd9581e74c4e29f58b56f7f97611 | /3899/CH16/EX16.2/Ex16_2.sce | 58e3730a859bbbafddb1e4a9a52975bca653f874 | [] | no_license | psinalkar1988/Scilab-TBC-Uploads-1 | 159b750ddf97aad1119598b124c8ea6508966e40 | ae4c2ff8cbc3acc5033a9904425bc362472e09a3 | refs/heads/master | 2021-09-25T22:44:08.781062 | 2018-10-26T06:57:45 | 2018-10-26T06:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 146 | sce | Ex16_2.sce | //Example 16.2
clc;
syms z n;
x1=(2^n);
x2=(3^n);
X1=symsum(x1*(z^-n),n,0,%inf);
X2=symsum(x2*(z^-n),n,-%inf,0);
X=X1+X2;
disp(X,"ans=")
|
b8638af4b6a81781650941beb3ee1b6c6b5fdd36 | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/isstable/isstable1.sce | 4fac4ceb3226681ace3c29ebd0dd548da33cbfa3 | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 118 | sce | isstable1.sce | b=[1 2 3 4 5];
a=[0.1 0.2 0.3 1.4 0.5];
flag=isstable(b,a);
disp(flag);
//output
// unstable system
//
// 0.
|
b44cca568d599d2571f12ebffec9ee29caf28584 | fd6e45f66c41ad779a3d47c3bf8ebfa140d3d657 | /P5 - Linear equation systems: indirect methods/jacobi.sce | bbb06fe3588ff8054ff667ac012f03fd355889de | [] | no_license | jere1882/Numerical-Analysis-Assignments | 7f474e2020d010f9f9c3dceff5e48c03b0d38652 | 1074f92ca93d0a402259f92a0f61f105f25e5230 | refs/heads/master | 2021-09-06T20:00:36.411386 | 2018-02-10T18:04:38 | 2018-02-10T18:04:38 | 121,039,769 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 273 | sce | jacobi.sce | function x = jacobi(A, b, x, maxit)
n=size(A, 1)
for k=1:1:maxit
for i=1:1:n
sumatoria=0
for j=1:n
if (j<>i) then
sumatoria=sumatoria+A(i,j)*x(j)
end
x(i)=1/A(i,i) * (b(i) - sumatoria)
end
end
end
endfunction
|
50e4d03e0dc2fead86f6024f0699f9920fb2fcb9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2141/CH9/EX9.2/Ex9_2.sce | c021d393a7bb33701131aa1527747ee6164d1f79 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 405 | sce | Ex9_2.sce |
clc
//initialisation of variables
p1=1//lbf/in^2
p2=600//lbf/in^2
T=800//F
v=0.01614//lbm
Wp=v*(p2-p1)*144/778//Btu/lbm
h1=69.70
h2=h1+Wp//Btu/lbm
h3=1407.7//lbm
s3=1.6343//lbm
h4=913.3//lbm
Wt=h3-h4//Btu/lbm
Wnet=Wt-Wp//Btu/lbm
qH=h3-h2//Btu/lbm
//CALCULATIONS
N=Wnet/qH*100//per-cent
qL=h4-h1//Btu/l... |
9ab3e6ff518e3de14b9d8792f16d1dd3e06310db | 449d555969bfd7befe906877abab098c6e63a0e8 | /2084/CH3/EX3.10/3_10.sce | 410caaa74a78462f20cadd00879dc47717e63dda | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 567 | sce | 3_10.sce | //developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 3.10
//calculation of velocity of the swimmer with respect to ground
//given data
vsr=4//velocity(in km/h) of the swimmer with respect to water
vrg=3//velocity(in km/h) of the river water with respect to ground
//... |
32ac71c450ffd5285063c4d38107f9d09eff633a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2495/CH4/EX4.10.2/Ex4_10_2.sce | 34d08d16276273a332db2092bcb6bcebe0eb4356 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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_10_2.sce | clear
clc
Pt=747.3;//toatal pressure in torr
PB=638.6;//vapour pressure of water
PA=Pt-PB;//vapour pressure of liquid
WA=1.27;//in gm
WB=1;//in gm
MB=18;//molar mass of water in gm/mol
MA=(WA/WB)*((PB*MB)/PA);//molar mass of liquid in gm/mol
printf('MA=%.1f gm/mol',MA)
//page 192
|
6554596cebb67be0b924450791784984b80f2be4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1163/CH10/EX10.20/example_10_20.sce | 8c9b9c320238ee92aab4f31c422ab643c0f23db3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 436 | sce | example_10_20.sce | clear;
clc;
disp("--------------Example 10.20---------------")
n=21;
// compute one's complement
bin=dec2bin(n);
s=strsplit(bin,1);
a=bin2dec(s(1));
b=bin2dec(s(2));
f=a+b;
complement=dec2bin(f,4); //1's complement
dec_complement=bin2dec(complement); // convert 1's complement to decimal
printf("The number %... |
3d06f399a9af5051d8da8360b35b397c1f9134ce | 1b969fbb81566edd3ef2887c98b61d98b380afd4 | /Rez/bivariate-lcmsr-post_mi/bfi_o_vrt_col/~BivLCM-SR-bfi_o_vrt_col-PLin-VLin.tst | c11f29c9f4227f32a1964ccaa7635e976f6dc977 | [] | no_license | psdlab/life-in-time-values-and-personality | 35fbf5bbe4edd54b429a934caf289fbb0edfefee | 7f6f8e9a6c24f29faa02ee9baffbe8ae556e227e | refs/heads/master | 2020-03-24T22:08:27.964205 | 2019-03-04T17:03:26 | 2019-03-04T17:03:26 | 143,070,821 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 11,909 | tst | ~BivLCM-SR-bfi_o_vrt_col-PLin-VLin.tst |
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 0.248158D+00
2 0.137016D-03 0.213689D-02
3 -0.541331D-02 -0.12265... |
404523f7d533b0d48414cd27e15935c611a07a84 | 449d555969bfd7befe906877abab098c6e63a0e8 | /509/CH13/EX13.2/13_2.sci | 311d69384e72b731a598fe82622c0a1ab52a9375 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,034 | sci | 13_2.sci | // Chapter 13 Example 22//
clc
clear
// air density factor=d0 ,barometric pressure=b,temperature=t,rating of transmission line=vcc//
vcc=220; // in kV//
b=73;// in cm of Hg//
t=20;// in celsius//
d0=3.92*b/(273+t);
printf("\n Air density factor = %.4f \n",d0);
// phase to neutral critical disruptive voltage=vc... |
2bfba202856dad78f18c37c547ffb6be9d313129 | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/diffuse/diffuse_x3d.m | 5d8690fc4d9f89f11a9b1774764959f55cd129e7 | [] | 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 | 4,981 | m | diffuse_x3d.m | //save xyz values
function diffuse_x3d(filename, n1,n2,n3,concs,h,maxconc,minconc)
sDescription='Simple X3D example';
sCreated='30 October 2000';
sRevised='6 March 2003';
sURL='http://www.shef.ac.uk/personal/m/mikeg/x3d/diffuse_out.x3d';
sAuthor='Mike Griffiths';
fd=writex3d(filename ,sDescription, sCreate... |
8a6fcaff9ea85506c4ba1677232b7b0071d1837a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2240/CH16/EX15.1/EX15_1.sce | 07444cea25f7d24639e5139cc1bf0c8df89cb6eb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 675 | sce | EX15_1.sce | // Grob's Basic Electronics 11e
// Chapter No. 15
// Example No. 15_1
clc; clear;
// A sine wave of voltage varies from zero to a maximum of 100 V. How much is the voltage at the instant of 30° of the cycle? 45°? 90°? 270°?
// Given data
Vm = 100; // Vm=100 Volts
t1 = 30; // Theta 1=30°.
t2 = 4... |
6b13f0ff35d0b5c411cde49e6dc2adf12081488d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1118/CH24/EX24.2/eg24_2.sce | 9575b6088c362ea63a5b0499c78d400226b2f407 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 275 | sce | eg24_2.sce | clear;
//clc();
l=80
cap=0.00914*10^(-6)*l;
vl=132*1000;
vph=vl/sqrt(3);
f=50;
l=1/(3*(2*(%pi)*f)^(2)*cap);
printf("The inductance is:%.2f H\n",l)
il=vph/((2*(%pi)*f)*l);
kvar=vph*il/1000;
printf("The rating of the arc suppression coil is:%.2f kVA",kvar)
|
48fa52176445cc372f3c0ea1aef91ed3c5eb255d | ca0ea3139875f786caa2df8ef9ada885b326dd6f | /scilab/trabalho3adaline.sce | 3e954ffad61b034221a1c7603db0d781e223e01e | [] | no_license | hitokey/exemplo-machine-learning | f0186a4e7acced7de16af6c96f3337129159225b | 2635ef2c88765b58267691a45a4b53f8d7207f2d | refs/heads/master | 2023-03-13T15:43:34.970552 | 2021-03-06T07:57:25 | 2021-03-06T07:57:25 | 289,837,645 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 840 | sce | trabalho3adaline.sce | clc;
clear;
xx = [0.00 0.50 1.00 1.50 2.00 2.50 3.00 3.50 4.00 4.50 5.00]
yy = [2.26 3.80 4.43 5.91 6.18 7.26 8.15 9.14 10.87 11.58 12.55]
clf();
set(gca(),"auto_scale", "on");
set(gca(),"data_bounds", [-1,-1;7,14]);
title("Dados");
xlabel("X");
ylabel("Y");
dxa=gda();
dxa.y_location="origin";
dxa.x_l... |
45c6ee20064bcbfd6c67f5054e3cf0ef7e3f4d1c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH17/EX17.7/17Ex7.sce | 9548f04ef25e5f8716d27240444dffadad50d0ef | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 17Ex7.sce | //chapter 17 Example 7
clc;
clear;
close;
s1=200;s2=400;s3=600;s4=800;
avgspeed=4/(1/s1+1/s2+1/s3+1/s4);
printf("The average speed is %3.0f km/hr",avgspeed);
|
6d6af51ba68b5f5f489320826ff4ca9b8e6c1fc0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1652/CH12/EX12.9/12_9.sce | 670aa39652fc00b070923eda9bd88b7be867ecde | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 212 | sce | 12_9.sce | clc
//Initialization of variables
p=0.1 //m
T=30+273.2 //K
R=0.08206 //lt atm /deg/mol
P1=1 //atm
//calculations
w=1000/p
V=w/1000
dP=R*T/V
P=dP+P1
//results
printf("Osmotic Pressure =%.2f atm ",P)
|
539f5d5a51a78da8bfde63708c8287a1131b8f5f | 449d555969bfd7befe906877abab098c6e63a0e8 | /61/CH6/EX6.3/ex6_3.sce | 95dff4a1a1313b0c0f0a11f3ba8bb5a516c9dedd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 285 | sce | ex6_3.sce | //ex6.3
I_E=3.8*10^-3;
B_ac=160;
R1=22*10^3;
R2=6.8*10^3;
R_s=300;
V_s=10*10^-3;
r_e=25*10^-3/I_E;
R_in_base=B_ac*r_e;
R_in_tot=(R1*R2*R_in_base)/(R_in_base*R1+R_in_base*R2+R1*R2);
V_b=(R_in_tot/(R_in_tot+R_s))*V_s;
disp(V_b,'voltage at the base of the transistor in volts') |
948a0c9419605587a412d9595dda059022e99eb4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3782/CH3/EX3.6/Ex3_6.sce | 2e1e1227a947aed44980d40ba79a1f220c5699a3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 535 | sce | Ex3_6.sce |
//
//
//(a)
BB_AB=30+(30/60)
FB_AB=BB_AB
mins=(FB_AB-int(FB_AB))*60
deg=int(FB_AB)
printf("\n S %0.3f degrees %0.3f minutes E",deg,mins)
//(b)
BB_BC=40+(15/60)
FB_BC=BB_BC
mins=(FB_BC-int(FB_BC))*60
deg=int(FB_BC)
printf("\n N %0.3f degrees %0.3f minutes W",deg,mins)
//(c)
BB_CD=60+(45/60)
FB_CD=BB_CD
mins=(FB_CD-i... |
d5ae907a83712de9dd6e5bb95f934f095d31acd8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3760/CH1/EX1.44/Ex1_44.sce | 7d3c13848688f92219a96b380b9193013e104b59 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,473 | sce | Ex1_44.sce | clc;
P=100000; // VA rating of two winding transformer
E1=2000; // rated voltage of h v side
E2=200; // rated voltage of l v side
l=2.5; // percentage of loss in two winding transformer
vr=3; // percentage of voltage regulation in two winding transformer
z=4; // percentage of leakage impedance in two winding tr... |
8cec9ea568a9d26f44b34916e5ee7abac6593f0e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1445/CH3/EX3.9/ch3_ex_9.sce | db81e106155a1216410c6c162f76f615591b89a9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,302 | sce | ch3_ex_9.sce | //CHAPTER 3- THREE-PHASE A.C. CIRCUITS
//Example 9
disp("CHAPTER 3");
disp("EXAMPLE 9");
//VARIABLE INITIALIZATION
v_ab=400; //in Volts
v_bc=400; //in Volts
v_ac=400; //in Volts
z_ab=100; //in Ohms
z_bc=100; //in Ohms
... |
068149f889505f1ca81ccc042be6a7ac5f17ec23 | 717ddeb7e700373742c617a95e25a2376565112c | /806/DEPENDENCIES/219.sci | 56917ba093b51f00d14fa9f13e6114976a3ef4a4 | [] | 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 | 64 | sci | 219.sci | pa=-30//kPa
p=9810//N/m^3
S=0.83//specific gravity of kerosene |
ab882a633d6586e5db304f9a932e2bf5459193ff | 449d555969bfd7befe906877abab098c6e63a0e8 | /2519/CH20/EX20.1/Ex20_1.sce | eab628b2a7c8fb10fb8f536f5e35ecd310bffbab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 528 | sce | Ex20_1.sce | clc
clear
//Initialization of variables
heat=54.5 //Btu/hr ft
d=0.811 //in
h=2.5 //Btu/hr ft^2 F
ts=100 //F
km=220 //Btu/hr ft F
//calculations
t2=heat*12/(h*%pi*d) +ts
w=heat*4*144/(%pi*d^2)
t1=w*(d/2)^2 /(4*144*km) + t2
//results
printf("Surface temperature of transmission line = %.1f F",t2)
printf("\n ... |
6971c7e96229cf44d9dda694a085ae49ca8f3ab3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3825/CH6/EX6.2/Ex6_2.sce | 8da3b7f7997dc721ecd9a0eddbd832a9abe0c4f1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 130 | sce | Ex6_2.sce | clc
he=2609.9 //in kJ/kg
hi=3072.1 //in kJ/kg
ve=sqrt(2*(hi-he)*10^3)
mprintf("ve=%fm/s",ve)//ans vary due to roundoff error
|
2072cf58c28940711061030162ed6a3bc9f930c5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3513/CH9/EX9.7/Ex9_7.sce | f6f0112e04d15769c4f95a3b5649fe42b3b1b441 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 393 | sce | Ex9_7.sce | //Determine the reliability of the system for 20 hrs. of operating period
//page no 220
clear
clc;
dA = 0.01;
dB = 0.015;
dC = 0.02;
dD = 0.02;
dE = 0.025;
t=20;
RA =%e^(-dA*t);
RB =%e^(-dB*t);
RC =%e^(-dC*t);
RD =%e^(-dD*t);
RE =%e^(-dE*t);
RBC = 1-((1-RB)*(1-RC));
RABC = RA*RBC;
RABCD = 1-((1-RABC)*(... |
ff81f58f2789b14d6df62d5c762a118cb0ba27f7 | 9b60b7963181dd94c8d10cdb75a83bc010957e71 | /taf_monitor_code/taf_monitor/tests/acceptance/06-civil_cloud_height_thresholds.tst | 54bde1fa9b854f65b51ab777a66885e281a0e9fa | [] | no_license | alanyon/python | 577773100eac269750925c1f924edc51060ca865 | cbfe0f34fe61ed0495572fa05ea6bf4293ef15bb | refs/heads/master | 2023-07-13T17:27:59.555648 | 2021-08-09T15:59:08 | 2021-08-09T15:59:08 | 393,341,633 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,335 | tst | 06-civil_cloud_height_thresholds.tst | {
"EGTE 150800Z 1509/1518 18005KT 9999 BKN040 TEMPO 1511/1512 BKN010 TEMPO 1512/1513 BKN006 TEMPO 1513/1514 BKN003 TEMPO 1514/1515 BKN001": {
"TAF base conditions cover METAR - cloud BKN050": {
"metar": "EGTE 150850Z 18005KT 9999 BKN050",
"test time": "20200615T0900Z",
"e... |
c677c3139754836b5b8e4d470bc950acb848cfd4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /623/CH21/EX4.4.7/U4_C4_7.sce | 640c5c949f86a23287c0fb0fb6190927ee458771 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,455 | sce | U4_C4_7.sce | //variable initialization
mu=9.27*10^-24; //(J/T)
B=0.45; //magnetic field (μb/m^2)
h=1.054*10^-34; //Plank's constan... |
29accecd58b18079f06c17c219a4ff9844bccb6d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3415/CH4/EX4.3/Ex4_3.sce | e7a0bb0038775229606e5e05e5fcb6c880b14d2b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 549 | sce | Ex4_3.sce | //fiber optic communications by joseph c. palais
//example 4.3
//OS=Windows XP sp3
//Scilab version 5.4.1
clc
clear all
//given
lambda=0.82//wavelength in um
n1=3.6//refractive index of core AlGaAs slab
n2=3.55//refractive index of cladding
n3=3.55//refractive index of cladding
n0=1//refractive index of Air
... |
3edc702b8231c62b179d5d6009f4e88a3ea128af | 449d555969bfd7befe906877abab098c6e63a0e8 | /1067/CH46/EX46.01/46_01.sce | e10a27758334cf4b78f2f2985c0e673f5cede006 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 724 | sce | 46_01.sce | clear;
clc;
//for low loads
p1(1)=20;
p2(1)=30;
t1(1)=.1*p1(1)+20;
t2(1)=.12*p2(1)+16;
//when load is further increased
t2(4)=22;
p2(4)=(t2(4)-16)/.12;
t1(4)=t2(4);
//upper limit 125MW
p2(5)=125;
t1(5)=1.12*p2(5)+16;
p1(5)=(t1(5)-20)/.1;
n=7;
t2(1)=19.6;
t2(2)=20;
t2(3)=21;
t2(4)=22;
t2(5)=31;
t2(6... |
1963ab78d0429fe700c02b982a76dd5b48ceb082 | 449d555969bfd7befe906877abab098c6e63a0e8 | /45/CH12/EX12.4/example_12_4.sce | 16ba150ff069275e4dd4b21ed0532cfc3eacf4f6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 315 | sce | example_12_4.sce | //Example 12.4
clc
clear
V_A=0
//a=input("Enter the binary digit(5 bits) :" );
a=11010
for i=1:5
r=modulo(a,10);
b(1,i)=r;
a=a/10;
a=floor(a);
end
for j=1:5
V_A = V_A + 10*b(1,j)*2^(j-1);
end;
V_A=V_A/2^5;
disp("The output voltage in volts is ');
disp(V_A); // displaying the value |
ca8162215c29e878fa84174054fc80470552179b | f5c2e0ea265d02956c8c61c9f3d5a0a297b9fea9 | /file_test_branch.tst | 75162444da314b20dd699d689a21a9046e38992e | [] | no_license | ozetel/test_repo | b4fa930fb6137ed21245d0d19351035db3c21107 | 6730213f02138e7df42427b144a3784128dbdcc9 | refs/heads/master | 2021-01-10T06:00:19.908599 | 2016-03-20T04:50:29 | 2016-03-20T04:50:29 | 49,968,442 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 25 | tst | file_test_branch.tst | file while in test branch |
df2ae9fb4aafdfed4b04589b0cdf2bf54c05a958 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2321/CH3/EX3.13.1/EX3_13_1.sce | e6f210287de673369425f9f65c8789e603963ecd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 208 | sce | EX3_13_1.sce | //Example No. 3.13.1
clc;
clear;
close;
format('v',6);
Irms=15;//A(Current Drawn)
Prad=5;//kW(Radiated Power)
Rr=Prad*10^3/Irms^2;//Ω(Radiation Resistance)
disp(Rr,"Radiation resistance in Ω : ");
|
0bc5917aa233034ff7d44ca7f1975e6ebec4959f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3875/CH4/EX4.18/Ex4_18.sce | 0acbbac60f05c8484b7c0a76a231959de5c891c4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 231 | sce | Ex4_18.sce | clc;
clear;
D_4=0.4 //diameter of the 4th dark ring in cm
D_12=0.7 //diameter of the 12th dark ring in cm
//calculation
D_20=sqrt(2*((0.7^2)-(0.4^2))+0.4^2)
mprintf("The diameter of the 20th dark ring is = %1.3f cm",D_20)
|
ea80c8f199f0a7b52c533afc690f80606394501c | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/tweet/bow/bow.9_14.tst | 5f5008f53358a647da337abdbb53f43235a2bc39 | [] | 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 | 44,520 | tst | bow.9_14.tst | 9 5:0.16666666666666666 24:1.0 26:1.0 28:1.0 29:0.3333333333333333 31:0.16666666666666666 37:0.02857142857142857 47:1.0 53:2.0 57:0.16666666666666666 59:1.0 60:2.0 63:1.0 81:1.0 115:1.0 130:0.1 132:1.0 154:0.1 160:0.3333333333333333 170:2.0 175:0.037037037037037035 189:0.3333333333333333 199:1.0 206:1.0 216:1.0 229:2.0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.