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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ded923df7b4c6de4ce3ff544338fdef6e4e97529 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2087/CH14/EX14.24/example14_24.sce | 80052b918a3d367a5e80adcaea329a22dea4dcc0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 788 | sce | example14_24.sce |
//example14.24
//calculate normal depth and average shear stress at channel bed
clc;funcprot(0);
//given
B=3.5; //bottom width of channel
n=0.016; //manning n
S=2.6/10000; //bed slope
Q=8; //discharge
lfs=1; //left side slope
rhs=1.5; //rigth side slope
gamma_... |
f87880f647650ab52af382d94dfe29631c819c3c | 449d555969bfd7befe906877abab098c6e63a0e8 | /758/CH6/EX6.10/Ex_6_10.sce | ea79fa40f702e8bb571b364d73c7e284ab618159 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 445 | sce | Ex_6_10.sce | //Example 6.10
clc;clear;close;
x=[1 1 2 2 3 3];
//Calculation of DFT
X=fft(x,-1);
X=clean(X);
disp(x,'Given Sequence is x(n): ');
disp(X,'DFT of the Sequence is X(k): ');
subplot(3,1,1);
plot2d3(x);
title('Given Seqence x[n]:');ylabel('Amplitude-->');xlabel('n-->');
subplot(3,1,2);
plot2d3(abs(X));
title('Magni... |
81a32469d77b9e73ef183d4abcfae639a24332fe | 5c3233dfa70e5d36e86060b61a47c0b9f98f59d6 | /testDir2/xx.tst | af8bbc0c253c69116361f9e0991b7a64bb2da091 | [] | no_license | rjhaveri007/tryout | c61b4cec237665170967b2ea844b0abb650d42a3 | 0baff6d5d1d76ad8acae2e2d9b996a0cf8a62723 | refs/heads/master | 2021-08-07T19:36:27.351122 | 2020-08-16T02:06:46 | 2020-08-16T02:06:46 | 211,509,069 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 51 | tst | xx.tst | # made changes in github repository and committed
|
7bed8b6c5810f277102e37f34b27100116d6c399 | 449d555969bfd7befe906877abab098c6e63a0e8 | /575/DEPENDENCIES/4_6_1.sci | 99a24fd6349c7ea7adfd7cda516dcf150041ed53 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 44 | sci | 4_6_1.sci | basis=100 //mol
xP=0.1
xN=0.12
xA=0.78
x=0.3 |
55d1dee32f4dba09a6c0f87cd1d566c5c61d3103 | 5f2ca8e18735204f5995ac7e44a6e301eb23ea0b | /scripts/eqm/eqm.sci | 4b814f708d130df144a2240370b306f22e5f6f7f | [] | no_license | Jettanakorn/mcflight | 4e7d4e20976e8f3621bf13fec2a8b522ecfc49a9 | e6579a11e10c5e9ae9ee558f464a6b88e1ae7a26 | refs/heads/master | 2023-03-17T10:49:28.906700 | 2019-10-30T20:20:58 | 2019-10-30T20:20:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,404 | sci | eqm.sci | exec('atmosphere/atmosphere.sci');
exec('atmosphere/atmos_constants.sci');
//exec('eqm/engine_f16.sci');
//exec('eqm/aerodata_f16.sci');
function [mach, Q_Pa] = airdata(vt_mps, alt_m)
[T_K, p_Pa, rho_kgpm3] = atmosphere(alt_m,0);
mach = vt_mps/sqrt(1.4*atmos.R*T_K);
Q_Pa = 0.5*rho_kgpm3*vt_mps^2;
endfuncti... |
3d45cba93b26b061177fbf0b55412af31d898197 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2735/CH8/EX8.2/Ex8_2.sce | 020b479fe71a5558375d8b7d7b08c44ed82512d1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 226 | sce | Ex8_2.sce | clc
clear
//Initialization of variables
cp=0.25 //Btu/lbm R
T0=520 //R
T1=3460 //R
//calculations
dq=cp*(T0-T1)
ds=cp*log(T0/T1)
dE=dq-T0*ds
eta=dE/dq
//results
printf("Thermal efficiency = %.1f percent",eta*100)
|
7fceee0487b8da707a14e96a97269f51abd85328 | 51635684d03e47ebad12b8872ff469b83f36aa52 | /external/gcc-12.1.0/gcc/testsuite/ada/acats/tests/ce/ce2102c.tst | 11868bcca948d9033f8368905fd9a4a92928bf2c | [
"LGPL-2.1-only",
"GPL-3.0-only",
"GCC-exception-3.1",
"GPL-2.0-only",
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"FSFAP",
"Zlib",
"LicenseRef-scancode-public-domain"
] | permissive | zhmu/ananas | 8fb48ddfe3582f85ff39184fc7a3c58725fe731a | 30850c1639f03bccbfb2f2b03361792cc8fae52e | refs/heads/master | 2022-06-25T10:44:46.256604 | 2022-06-12T17:04:40 | 2022-06-12T17:04:40 | 30,108,381 | 59 | 8 | Zlib | 2021-09-26T17:30:30 | 2015-01-31T09:44:33 | C | UTF-8 | Scilab | false | false | 5,046 | tst | ce2102c.tst | -- CE2102C.TST
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
f6e6d2c56dbb1855586847433024a888add4ec73 | c557cd21994aaa23ea4fe68fa779dd8b3aac0381 | /test/graft2.tst | 319d29ed88db3804c0c31a54e97ace734349e1e1 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | dougsong/reposurgeon | 394001c0da4c3503bc8bae14935808ffd6f45657 | ee63ba2b0786fa1b79dd232bf3d4c2fe9c22104b | refs/heads/master | 2023-03-09T15:22:45.041046 | 2023-02-25T08:33:06 | 2023-02-25T08:33:06 | 280,299,498 | 1 | 0 | NOASSERTION | 2023-02-25T08:33:08 | 2020-07-17T01:45:32 | Go | UTF-8 | Scilab | false | false | 110 | tst | graft2.tst | ## Second test of the graft feature
read <min.fi
rename grafted-min
read <min.fi
:4 graft grafted-min
write -
|
f8697bf9cce9edb254fdb5aa3da525f0fc4efe95 | 449d555969bfd7befe906877abab098c6e63a0e8 | /32/CH1/EX1.13/1_13.sce | 1d75def4f07f48f898b26db624b20b69130af734 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 1_13.sce | //pathname=get_absolute_file_path('1.13.sce')
//filename=pathname+filesep()+'1.13-data.sci'
//exec(filename)
//Specific heat at constant pressure(in kJ/kg-K):
Cp=2.286
//Specific heat at constant volume(in kJ/kg-K):
Cv=1.768
//Universal gas constant(in kJ/kg-K):
Ru=8.314
//Gas constant(in kJ/kg-K):
R=Cp-Cv
/... |
ef902412a9389d1b395d982a2f984d1e605fa2b4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /575/CH5/EX5.2.5/5_2_5.sce | ebf179003940c27b7f9fa5b454834692d92180f8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 5_2_5.sce | clc
pathname=get_absolute_file_path('5_2_5.sce')
filename=pathname+filesep()+'525.sci'
exec(filename)
printf("All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
n2cap=flowinA*Dacetone/Macetone
printf(" \n Molar flowrate of Acetone=%f mol Acetone/min",n2ca... |
a759dbd30c121ac3a4d7875223df6d1b70ade203 | 449d555969bfd7befe906877abab098c6e63a0e8 | /67/CH1/EX1.27/example127.sce | 7af90767fece16fbbaa60a32260215030e941375 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 150 | sce | example127.sce | //Example 1.27
//Energy of the signal x(t)=Aexp(-a*t).u(t)
clc;
A=2;
a=0.5;
E=integrate('(A*exp(-a*t))^2','t',0,100);//Energy of the given signal |
d2418ed091caf10884faff6c37822fbfdcc907e2 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/macros/percent/%hm_round.sci | d36c4cde8dc8fe5f7504c1a334cadb739857de21 | [
"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 | 80 | sci | %hm_round.sci | function M=%hm_round(M)
// Copyright INRIA
M('entries')=round(M('entries'))
|
89c2609536258cb7ee6a983a063c9a492c1a2c60 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.12_9.tst | 018c71034ee37ef4a31b6bb284d80249ae0a2a47 | [] | 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 | 4,485 | tst | bow.12_9.tst | 12 31:1.0 36:1.0 62:0.25 93:0.13333333333333333 227:1.0 231:2.0 232:1.0 240:0.5 252:1.0 330:1.0 370:1.0 382:1.0 477:2.0 1237:1.0
12 1:0.015384615384615385 17:0.25 36:0.5 135:1.0 231:1.0 273:1.0 477:1.0 512:1.0 587:1.0 683:1.0 1419:1.0
12 1:0.1076923076923077 2:4.0 4:1.0 10:0.05263157894736842 11:0.3333333333333333 15:1... |
71c280307ecdae05a1b7f39826c867b93f1c5da0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2915/CH1/EX1.4/Ex1_4.sce | 3501070d6ce723094a04ab546c08a1034e7c3e71 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 361 | sce | Ex1_4.sce | clc,clear
//example 1.4
//To determine height of the top of ladder touching the wall
ladder = 17 //length of ladder or hypotenuse in feet
base = 8 //distance between lower tip of ladder and wall in feet
//Using pythagoras theorem
h=sqrt(ladder^2 - base^2) //required height
printf('Required height of top of lad... |
760d4efe1be45961d7c79107cf66e99404eb9fc5 | 01697f0dc71290a6b6e233849a73d19a883845f1 | /sem04/lab06/l06q01.sce | d309fdb8b610a8dbceedfd0f3c7ca394fac2e569 | [] | 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 | 381 | sce | l06q01.sce | clc;
clear;
x=1:5;
printf("\nX values");
disp(x);
y=[10,26,58,112,194];
printf("\ny values");
disp(y);
X=1.4;
n=length(x);
h=x(2)-x(1);
p=(X-x(1))/h;
sum1=y(1);
term=1;/
printf("\nDifference Table");
for i=1:n-1
for j=1:n-i
y(j)=y(j+1)-y(j);
printf("\t%d",y(j));
end
term=term*(p-i+1)/i;
sum1=sum1+term*y(1);
mp... |
79b7b36a1573ad00dfc8ba07712fd24bf4e431f7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1163/CH28/EX28.4/example_28_4.sce | 39b0a4d853a7f3023822034426c703c9bddeddf3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,088 | sce | example_28_4.sce | clear;
clc;
disp("--------------Example 28.4---------------")
tag="01000000"; // IPAddress tag
Length="00000100"; // 4 bytes
IPAddress="131.21.14.8"; // value
tag_dec=bin2dec(tag); // tag's decimal value
tag_hex=dec2hex(tag_dec); // tag's hex value
Length_dec=bin2dec(Length); // length's decimal value or numbe... |
acb61408658840e9985ac63050f9203419d11c5e | 449d555969bfd7befe906877abab098c6e63a0e8 | /884/CH3/EX3.8/Example3_8.sce | a57dc69704c6b94b8c9c8cfee92c389c6d809b55 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 580 | sce | Example3_8.sce | //Percentage composition of a compound
clear;
clc;
printf("\t Example 3.8\n");
H=1.008;//molar mass of H, g
P=30.97;//molar mass of P, g
O=16;//molar mass of O, g
MolMass=97.99;//mol. mass of H3PO4, g
percentH=3*H/MolMass*100;//percent of H
percentP=P/MolMass*100;//percent of P
percentO=4*O/MolMass*10... |
12acef281f8ef5cf4bf80331c277b9b94b68d498 | 08ee8059476493a308f8e13adcbace48d7bcfc92 | /Scilab_packetTracer_codes/nrz-i polar.sce | f3a2be818c2e52105d27d4a76805f83c95944e21 | [] | no_license | Rushi-Bhatt/Self-Study | 7ed44b7821154b7906c7d532255ea648ec9d6299 | 90cc75440328ba21769ffac878f46feadeb2f06f | refs/heads/master | 2021-01-11T15:29:31.739065 | 2017-02-08T22:17:57 | 2017-02-08T22:17:57 | 80,360,471 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 227 | sce | nrz-i polar.sce | x=[1,0,0,1,1,1]
l=length(x);
a=gca();
q=1;
a.data_bounds=[0,-2;10,+2];
for i=1:l
if(x(i)==0)
q=q;
else
q=-q;
end
plot(i-1:i,q)
end
xgrid(0) |
d5a4beb81c6ef25f6ac6848e7e13903f9aa60e44 | 7c3708a7d8dd10452b9fbaf7b43e692b2cdccaf5 | /src/ItemTemplates/Models/Models.tst | 22e8b74231202525c04fb398f80036d2631a0d6f | [
"Apache-2.0"
] | permissive | Ackhuman/Typewriter | 3925ad31d7686861df0e4f39f9001f2abdf03502 | 3ab6f1e19d75ae3839e0573d42851344269fdfa0 | refs/heads/master | 2022-04-13T08:15:53.688515 | 2020-04-12T21:48:26 | 2020-04-12T21:48:26 | 254,759,329 | 0 | 0 | Apache-2.0 | 2020-04-10T23:57:09 | 2020-04-10T23:57:09 | null | UTF-8 | Scilab | false | false | 542 | tst | Models.tst |
module $rootnamespace$ { $Classes(Filter)[
export class $Name {
$Properties[
public $name: $Type = $IsEnumerable[[]][$Default];]
constructor(data: any = null) {
this.map(data);
}
public map = (data: any) => {
if(data) {$Properties[
... |
a4a4db2e3906e4912b315d9c57fe55b419842262 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH26/EX26.6/Ex26_6.sce | 4142022d65768aa64ae045db8417e0b7c332a0b6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex26_6.sce | clear
//Given
l=5890.0 //A
//Calculation
E=12400/l
//Result
printf("\n Minimum energy is %0.1f ev",E)
|
af93922fc65edd339ea80074fc0f2c91354c0725 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2210/CH3/EX3.9/3_9.sce | 3eeec0c60b92592381ba21d20bc7b7727c09a0a8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 226 | sce | 3_9.sce | //Chapter 3, Problem 9
clc
Z0=50 //characteristic impedance in ohm
Zl0=5 //ratio of Z/Z0
//calculation
Z0t=sqrt(Zl0)
Z0t1=Z0*Z0t
printf("Impedance = %.2f ohm",Z0t1)
|
05aaa58beff0ed727c4382f4be2c0bd883e351c4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1247/CH5/EX5.48/example5_48.sce | 3cd7c1223165b99f9eab1e567e35e558dfd46ae7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 488 | sce | example5_48.sce | clear;
clc;
// Stoichiometry
// Chapter 5
// Energy Balances
// Example 5.48
// Page 301
printf("Example 5.48, Page 301 \n \n");
// solution
// basis 100 kg of sol with 32% N
MNH4NO3 = 80.0434
MNH2CONO2 = 60.0553
MN2 = 28.0134
na = 32/(60.9516)
Ureadis = 1.1758*na*MNH2CONO2 // kg
water = 100-(na... |
2799be7402b6e9fae7ac502cdffcb6d5b0fc67da | 449d555969bfd7befe906877abab098c6e63a0e8 | /3129/CH14/EX14.5/ex14_5.sce | 59c20ebda45415a8bda3c6f4f704f863c109c1da | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex14_5.sce | //Finding the Performance Parameter of an AC power supply with PWM control
//Example 14.5(Page No-624)
clc
clear
//given data
a=0.5//turns ratio
V1=100
R=2.5
p=4
Vs=V1
V2=a*V1
V0=V2
e=18//width of pulse
d=18*(%pi/180) //in radians
Vl=V0*sqrt(p*d/%pi)
Il=Vl/R
printf('RMS load current:%2.2f A\n',Il)
|
ab39efb15a25b099b554e6615671d4db05af62b7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2072/CH27/EX27.6/EX27_6.sce | 5ffe3fc68260393d69510bccd22ac12e2f62ada4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 413 | sce | EX27_6.sce | //Chapter 27
clc
//Example 6
//given
d=0.314 //spacing between certain planes in a crystal of calcite in nm
l=0.070 //wavelength of X-rays in nm
m=1// first order of interference
theta1=asind((m*l)/(2*d))
disp(theta1,"Grazing angle at first order of interference in degree is")
m=3 //third order of interference
theta2=a... |
6689ab6fde4e305721352c0a61fedb0cab92103d | 449d555969bfd7befe906877abab098c6e63a0e8 | /104/CH2/EX2.19/2_19.sce | 8688ff81e0deeb716a39cd1a8b64475885fb2dd0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 180 | sce | 2_19.sce | //inverse of a 3 X 3 matrix
A=[1 2 3;4 5 6;7 8 9]
d=det(A)
if det(A)~=0 then
i=inv(A)
disp(i,"A^-1=")
else
disp("inverse of a singular matrix doesnt exist")
end |
c54935f021d32aa16ddbbbe540a4ec6f7c35fabf | fd6e45f66c41ad779a3d47c3bf8ebfa140d3d657 | /P7 - Interpolation and function approximation/Tchebyshev.sce | ea2678c8d0056e6a657f024d7f41654efa930df3 | [] | 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 | 517 | sce | Tchebyshev.sce | function p=tchebyshev(n)
if n==0 then
p=poly([1],'x','c');
end
if n==1 then
p=poly([0,1],"x",'c');
end
if n>1 then
aux=poly([0,1],"x",'c');
p= 2* aux * tchebyshev(n-1) - tchebyshev (n-2)
end
endfunction
function p=tchebyshev2(n)
p= cos(n*arcos(x));
endfuncti... |
0a2024ac37ee9d8aa32f38f785d5d3621dc7eca1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1640/CH1/EX1.1/1_1.sce | 97d97ff125111f91e82c72e7a2936ce12ead87cc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 224 | sce | 1_1.sce | clc
//initialisation of variables
h1= 2 //in
h2= 2 //in
wn= 13.6 //g/cc
w= 1 //g/cc
W= 62.4 //lbs/ft^3
//CALCULATIONS
ha= ((h2*wn/w)-h1)/12
pa= ha*W/144
//RESULTS
printf ('Pressure of water= %.2f lb/sq in ',pa)
|
f453e792acd3a75034bbce5633b374af54a7f0d2 | 6bbc9f4f7e12ef440acd3fe25a51b4f048cde42d | /Image-Enhancement-in-the-Spatial-Domain/histogram.sce | 65a5fbc7e212d5b6a957a67448bbfd148eda8f57 | [] | no_license | krisbimantara/Image-Processing-SCILAB | 9dee568676b4f2943c54074d8c88c84cb33b3bb2 | bf8e8905efcdd6e3e0096f7a87cce8212fe0f14c | refs/heads/main | 2023-03-27T04:55:37.463238 | 2021-03-29T13:30:26 | 2021-03-29T13:30:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,130 | sce | histogram.sce | a=imread('bima.jpg');
[r,c]=size(a);
me=a(:,:,1);
hi=a(:,:,2);
bi=a(:,:,3);
h=zeros(1,256);
hme=zeros(1,256);
hhi=zeros(1,256);
hbi=zeros(1,256);
for i=1:r
for j=1:c
if (me(i,j)==0)
me(i,j)=1;
elseif(hi(i,j)==0)
hi(i,j)=1;
elseif(bi(i,j)==0)
bi(i,j)=1;
... |
a424c5f37b51687adb4be2046f774fb2d0e5ca22 | 449d555969bfd7befe906877abab098c6e63a0e8 | /137/CH16/EX16.1/prob_16_1.sce | ad62ede4c2c466b0760c56b51fbadc39c0525897 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 978 | sce | prob_16_1.sce | //page no 732
// example no 16.1.
//here generator matrix is given
clc;
G=[1 0 0 1 0 1;0 1 0 0 1 1;0 0 1 1 1 0];
d1=[1 1 1];
d2=[1 1 0];
d3=[1 0 1];
d4=[1 0 0];
d5=[0 1 1];
d6=[0 1 0];
d7=[0 0 1];
d8=[0 0 0];
c1=d1*G;
for i=1:6
if c1(i)==2 then
c1(i)=0;
end
end
c2=d2*G;
f... |
32a7fbfd0cf78fd7d4a857dca89526485ae44597 | ac1f8441b0319b4a391cd5a959bd3bb7988edfa7 | /data/news2015/news2015/EnBa/enba12.tst | b2172e089fcc1496be6cfbe7d5f8bb7229942dda | [
"MIT"
] | permissive | SaeedNajafi/transliterator | 4d58b8604fa31f52ee2dce7845e002a18214fd5e | 523a087b777a5d6eec041165dabb43848f6222e6 | refs/heads/master | 2021-09-18T17:02:59.083727 | 2018-07-17T06:01:21 | 2018-07-17T06:01:21 | 129,796,130 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 8,097 | tst | enba12.tst | tiwana
baharali
iceland
color
shivekar
elijabeth
crockett
nalinibala
lasker
bandiram
bhuban
gascogne
chess
stanwyck
lorence
seyyed
salil
lafarge
nabarun
christie
geneva
leyland
tabsum
samad
vadi
dustin
strauss
ervine
attabira
arusha
egypt
rajpati
innisfallen
nursing
intrepid
worldwide
ranchod
luge
dharamsala
sintu
sath... |
5ac861023defa07bebbb3cc7a7609e92a9f451bd | 449d555969bfd7befe906877abab098c6e63a0e8 | /3648/CH19/EX19.2/Ex19_2.sce | 2d342b693b7fbdee058e0187b7fd449badde1fb0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 414 | sce | Ex19_2.sce | //Example 19_2
clc();
clear;
//To find how large is the average EMF induced
b=0.5 //Units in T
a=4*10^-4 //Units in meters^2
phi2=b*a //Units in Wb
phi1=0 //Units in Wb
deltaPHI=phi2-phi1 //Units in Wb
n=100 //Units in Constant
deltaT=2*10^-2 //Units in sec
em... |
447678f9020c82edf81ce0559deb7e6124b535e9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1319/CH6/EX6.12/6_12.sce | b89a2f7899643e1ef20756b6ee7ec0e1fdaa4169 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 570 | sce | 6_12.sce | //Speed of a belt driven shunt generator
clc;
clear;
Pg=100*(10^3);// Power output of the generator
Pm=10*(10^3); // Power input of the motor
V=220;
Ng=300; // Running speed of the generator
Ra=0.025; // Armature resistance
Rf=60; // Field Resistance
Vb=2;// Voltage drop due to brushes
Im=Pm/V; // Curr... |
9b606f213c7f798fe5b3db24a1a285bbc57f58da | 009e6209a86f0838f0faca8a33b2c162e5d1a7a6 | /src/scripts/interpolacionNewton.sce | c78b33889df611c161b182d1a89b550fb9fc1baa | [] | no_license | MoisesU/MESO-MetodosNumericos | 90a62a31e3213c50dec55228ceca7ce034cfbb7c | 17fe0efa1690ac93f36799a12a9f9c99f1ab94a4 | refs/heads/main | 2023-06-02T05:51:03.641326 | 2021-06-20T03:18:17 | 2021-06-20T03:18:17 | 306,203,044 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,294 | sce | interpolacionNewton.sce | function y = interpolNewton(func, grado, x)
[n, m] = size(func)
dif = zeros(grado, grado)
y = 0
h1 = 0;
h2 = 0;
if(n <> 2)
error("No es una función tabular")
end
for i=1:1:m-2
h1 = func(1,i + 1) - func(1,i);
h2 = func(1,i + 2) - func(1,i + 1);
if h1 ~= h2
... |
0fdf85c5afb6ad155a6ac3b5c454a0b24537e230 | 449d555969bfd7befe906877abab098c6e63a0e8 | /343/CH1/EX1.58/ex_58.sce | e4730b9a56bcd0fccdcdb3c204c7843a2d4c5716 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 462 | sce | ex_58.sce | V1=4; //Assigning values to parameters
R1=2;
I1=1;
R2=1;
R3=3;
I2=3;
I1a=V1/(R1+R2); //Considering the current flow due to 4V voltage source
I1b=(I2*R1)/(R1+R2); //Considering the current flow due to 3A current source
I1c=(I1*R1)/(R2+R1); //Consi... |
eadb4d941074aaa2be34ef5ebde077e91e7fce3b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2660/CH5/EX5.22/Ex5_22.sce | 5e04ca410a5afcfd3691df99abef346aaa95e005 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 523 | sce | Ex5_22.sce | clc
a = 0.125 // saving in labour cost per unit
b = 0.4 // overhead applied on direct labour saved
D = 1/2 // allowance for depreciation
C = 2400 // first cost
I = 6/100 // interst rate
T = 4/100 // allowance for taxes
M = 10/100 // allowance for maintenance
n = 6 // number of baches
S = 80 // cost of set up
... |
6b658021fa211523b91cfe097f594b4cee1fe658 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1073/CH3/EX3.5/3_5.sce | 554a2e09a93c1a7d3bd7a3e4e71b255c844bd4c7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 716 | sce | 3_5.sce |
clc;
clear;
//Example 3.5
//Given
mu=3.9*10^-4 //Kinematic viscosity in sq m/s
k=36.4*10^-3 //Thermal conductivity in W/(m.K)
Npr=0.69
u_inf=8 //[m/s]
L=1 //Lenght of plate in [m]
Nre_l=u_inf*L/mu
//Since Nre_l is less than 3*10^5 ,the flow is laminar over the entire length of plate
Nnu=0.664*sqrt(Nre_l)*... |
85a2d076cfd705bdefacfafdd5ec5045b009940b | 449d555969bfd7befe906877abab098c6e63a0e8 | /800/DEPENDENCIES/4_4.sci | 5edc5fc1b2562484112641fd4959617c05211002 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 192 | sci | 4_4.sci | k1 = 0.072; // s^-1;
yA0 = 1;
P0= 6;//atm
R = 0.73; // atm/lb.mol.oR
T0 = 1980; //oR
T1 = 1000; //K
T2 = 1100; // K
e=1;
E = 82000; // cal/g.mol
FB= 0.34; //lb.mol/s
X = 0.8;
|
b6ec6cc1e8ae310b2ff83cfb24dff3bf87f66db3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2951/CH5/EX1.A/additional_ex_1.sce | bb29d609a3883cf4e4a626b28154a23d302a2acb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 553 | sce | additional_ex_1.sce | clear;
clc;
//("current through the capacitor is i=C(dv/dt)");
t=15; //acquisition time in us
i=5; //current in mA
v=5; //maximum voltage across capacitor in V
// to satisfy current requirement
disp("to satisfy current requirement");
C_current_req=i*t/v;
disp(C_current_req,"C(nF)=");
//to satisfy accu... |
bd2ad025e1feab26c352a008be932fdf215bfd17 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1301/CH5/EX5.9/ex5_9.sce | 47ebe80c716c8ecfbc570d64b8127d33ce320aca | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 289 | sce | ex5_9.sce | clc;
v=10; //velocity in min/hr
p=80; //power required in hp
v=v*1.47; //converting v to ft/sec
P=p*550; //converting P to ft.lb/sec
F=P/v; //calculating resistive force required
disp(F,"Resistive force required in lb = "); //displaying resistive force required. |
285121e693b6644743c0b838003dfec0a141d6bd | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set6/s_Electronic_Circuits_M._H._Tooley_995.zip/Electronic_Circuits_M._H._Tooley_995/CH1/EX1.15/Ex1_15.sce | f2686405d812d3c8020ba7093c97676cf8d2e8ef | [] | no_license | hohiroki/Scilab_TBC | cb11e171e47a6cf15dad6594726c14443b23d512 | 98e421ab71b2e8be0c70d67cca3ecb53eeef1df6 | refs/heads/master | 2021-01-18T02:07:29.200029 | 2016-04-29T07:01:39 | 2016-04-29T07:01:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 135 | sce | Ex1_15.sce | errcatch(-1,"stop");mode(2);//Ex:1.15
;
;
r=56;//in ohms
i=0.1;//in amp
v=i*r;
printf("Voltage dropped = %f volts",v);
exit();
|
25a2761f4c02d1c1ed025142d4cf2dce798ee292 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4.1/macros/fraclab/dilate.sci | 6cd5fcddd0c7c432a8264ad9cd06fa77b49254be | [
"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,013 | sci | dilate.sci | function [sscaled,mellin,beta] = dilate(s,a,fmin,fmax,N) ;
// This Software is ( Copyright INRIA . 1998 1 )
//
// INRIA holds all the ownership rights on the Software.
// The scientific community is asked to use the SOFTWARE
// in order to test and evaluate it.
//
// INRIA freely grants the right to use modify t... |
ec66963e5224767826f0d45665018b25df098498 | fdc5047b7bf8122bad1e621df236b0481226c36e | /virtualHartSci/macros/hrtTypeHex2Date.sci | aaea49afa337562cfa1c1bf70b5c6a9ada9966c8 | [] | 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 | 172 | sci | hrtTypeHex2Date.sci | function strDate=hrtTypeHex2Date(strHex)
auxVet = hex2dec(tokens(strHex,' '));
strDate = msprintf("%02d/%02d/%04d",auxVet(1),auxVet(2),1900+auxVet(3));
endfunction
|
4226cd0eefa81db10b63588ef7957e678487ca9e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2159/CH8/EX8.10/810.sce | 9cf103e6fa0a064e02f888f688e04ab5ca614d32 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 307 | sce | 810.sce | // problem 8.10
Q=0.283
d=0.05
x=170
u=48
g=9.81
p1=1000
w=g*p1
a=3.142*d*d/4
V1=Q/a
Vw1=V1
Vr1=V1-u
x1=0
Vr2=Vr1
Vw2=(Vr2*cosd(180-x))-u
Fx=(w*a*(V1-u)*(Vw1+Vw2))/g
P=Fx*u/1000
n=(P*1000*g*2)/(w*Q*V1*V1)
disp(n*100,P,Fx,"force exerted by the jet,power developed by the vane,efficiency")
|
e8ce9130ef4ce0caff73b4764a536cff3d18c0e7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3802/CH5/EX5.16/Ex5_16.sce | 689ad581b7f945e554c1acde542a79b15276c7c5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 691 | sce | Ex5_16.sce | //Book Name:Fundamentals of Electrical Engineering
//Author:Rajendra Prasad
//Publisher: PHI Learning Private Limited
//Edition:Third ,2014
//Ex5_16.sce.
clc;
clear;
N=100;
a=10e-2;
n=20;
B=0.5;
omega=2*%pi*n;
A=a^2;
v=A*N*omega*B;
printf("\n(a)")
//theta=40*180*t=n*180 where n=0,1,2,3.....
//if... |
c0a8ab623329b5624202b6e9e6134e6ba2f535d9 | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/CONT/HE17PXC/ATWM1_Working_Memory_MEG_HE17PXC_Session1/ATWM1_Working_Memory_MEG_Salient_Uncued_Run1.sce | 3825bb4ae41e2781f9ea18d8c648bd5a5a9e51da | [] | no_license | atwm1/Presentation | 65c674180f731f050aad33beefffb9ba0caa6688 | 9732a004ca091b184b670c56c55f538ff6600c08 | refs/heads/master | 2020-04-15T14:04:41.900640 | 2020-02-14T16:10:11 | 2020-02-14T16:10:11 | 56,771,016 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 48,405 | sce | ATWM1_Working_Memory_MEG_Salient_Uncued_Run1.sce | # ATWM1 MEG Experiment
scenario = "ATWM1_Working_Memory_MEG_salient_uncued_run1";
#scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
scenario_type = trials; # for MEG
#scan_period = 2000; # TR
#pulses_per_scan = 1;
#pulse_code = 1;
pulse_width=6;
default_monit... |
835ec572d3ce26e2b6701f2202787e2ff2339d2f | 9e8eb5a9631d8770d0d0a918c1dc57e5122ae94d | /DCT.sce | 28f559aff7bbb571fd8ec5d3d848adf1b2d52290 | [] | no_license | vishalraj3112/Image-processing | db2948c37be6ef43c13ff120b97680bf13151d8d | 160a17990e1c80da44ef0daf2d148d6f33d37c6c | refs/heads/master | 2020-04-03T06:49:20.483364 | 2018-10-28T16:36:46 | 2018-10-28T16:36:46 | 155,085,134 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 533 | sce | DCT.sce | clc
clear all
f=imread('H:\IVP\mandrill square.jpg')
imshow(f)
f=rgb2gray(f)
[M N]=size(f)
disp("This is no of rows:",M);
disp("This is no of columns:",N);
f=double(f)
for k=1:N
for n=1:N
if((k-1)==0)
c(k,n)=inv(sqrt(N))
else
c(k,n)=sqrt(2)*inv(sqrt(N))*cos(%pi*(k-1)*(2*(n-... |
544c703a2f80dfb8bb1c8955d5202e04e057a31b | 66106821c3fd692db68c20ab2934f0ce400c0890 | /test/jintgen/redef_am_01.tst | 0e740f834e378eabaf5b4547ee0b2638be70b0c5 | [] | no_license | aurelf/avrora | 491023f63005b5b61e0a0d088b2f07e152f3a154 | c270f2598c4a340981ac4a53e7bd6813e6384546 | refs/heads/master | 2021-01-19T05:39:01.927906 | 2008-01-27T22:03:56 | 2008-01-27T22:03:56 | 4,779,104 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 189 | tst | redef_am_01.tst | // @Harness: verifier
// @Purpose: "Test for redefinitions of addressing modes"
// @Result: "RedefinedAddrMode @ 7:13"
architecture redef_am_01 {
addr-mode A1 { }
addr-mode A1 { }
}
|
a1b924e9e737bf8703a25786d4985a70943aa0da | d465fcea94a1198464d7f8a912244e8a6dcf41f9 | /kMatlab/kProximityG.sci | d93197028d9681a7e9b413fbc7b49c96e7a7a8d3 | [] | no_license | manasdas17/kiks-scilab | 4f4064ed7619cad9e2117a6c0040a51056c938ee | 37dc68914547c9d0f423008d44e973ba296de67b | refs/heads/master | 2021-01-15T14:18:21.918789 | 2009-05-11T05:43:11 | 2009-05-11T05:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 12,725 | sci | kProximityG.sci | function [] = KproximityG(ref,action)
// Number of arguments in function call
[%nargout,%nargin] = argn(0)
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
//KPROXIMITYG Display the value of the proximity sensors of Khepera
//
//kProximityG(ref)
// Display the value of the proxi... |
25e5007c2c59a1295fddac94c1e9938a13ab75ac | 449d555969bfd7befe906877abab098c6e63a0e8 | /2873/CH4/EX4.14/Ex4_14.sce | 49889fb4ad8753e3c021e9a0d466a034c9b9f9a2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,073 | sce | Ex4_14.sce | // Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Engineering Thermodynamics by Onkar Singh Chapter 4 Example 14")
Q_source=2000;//heat supplied by heat engine in KJ/s
T_source=1500;//temperature of source in K
T_R=(15+273);//temperature of reservoir in K
Q_si... |
3edb424348aa9dea6026118d618c5c8389b021ba | 449d555969bfd7befe906877abab098c6e63a0e8 | /1022/CH11/EX11.5/11_5.sce | 966fbc47f8192b6762adefaa0afbdd0bc40ae326 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 240 | sce | 11_5.sce | clc
//initialisation of variables
l= 0.2 //m
l1= 0.5 //m
k= 0.35 //W/m C
t= 0.15 //m
T1= 1100 //C
T2= 150 //C
//CALCULATIONS
Ai= 6*l^2
Ao= 6*l1^2
q= 0.73*k*sqrt(Ai*Ao)*(T1-T2)/t
//RESULTS
printf ('Power consumption= %.f W',q)
|
eb895771ee0a8d053d258653444f88d7669132d9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2159/CH1/EX1.16/16.sce | ef63bb3f43f5588a4c4f83a34941ed5c2544feef | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 222 | sce | 16.sce | //problem 1.16
h1=8
w=9810
wd=6
p1=0.5*w*h1*h1*wd
h2=4
p2=0.5*h2*w*h2*wd
h11=0.66666*h1
h22=0.6666*h2
p=p1-p2
hf=(p1*(h1-h11)-p2*(h2-h22))/p
disp(p,"resultant force")
disp(hf,"position of its line of action")
|
41769ffe73cf50f796fe7234111f430570159797 | 9f9364e082d4bc2f7ee5cbd7a489642615821873 | /src/testCases/test2-5.tst | 647da02ae1d64c72c7915f8e2851e243f292d026 | [] | no_license | abrageddon/DLX-Opt | 4602617f83ddf8cb0fea83fecd2faa362849dfcd | 20038078f11a7ae67e7ab336e551e23966551290 | refs/heads/master | 2021-01-01T05:49:33.218016 | 2013-03-14T06:08:45 | 2013-03-14T06:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 313 | tst | test2-5.tst | main
function gcd(a, b);
var m;
{
if a < b then return call gcd(b, a) fi;
if a == b then return a fi;
if b == 0 then return a fi;
let m <- a - (a / b) * b;
return call gcd(b, m)
};
{
call outputnum(call gcd(252, 105));
call outputnum(call gcd(384, 1024));
call outputnum(call gcd(1989, 867))
}.
|
286d36b3d5ff79f71f5aca9e5436b7849bdce64a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1727/CH1/EX1.6/1_6.sce | d8fb78a8fa43a78f0af0c718d90c76fa31f2b8b5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 1_6.sce | clc
//Initialization of variables
d=0.05*10^-3 //m
T=72*10^-3 //N/m
P=101 //kN/m^2
//calculations
Pi=P*1000 + 2*T/(d/2)
//results
printf("Pressure = %.2f kN/m^2",Pi/1000)
|
68afae9cd4fdb4034c8083077aa0e29cda8b2c78 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH19/EX12.19.7/Ex12_19_7.sce | 3bfe0617013f84273fb0d1485e5e18ecc9d840b2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 707 | sce | Ex12_19_7.sce | //Section-12,Example-7,Page no.-SS.61
//To find the no.of charge carriers essential to get te given conductivity and the no. of Antimony dopant atoms to be added to germanium.
clc;
C=100 //ohm^-1cm^-1
e=1.6*10^-19 //C
u_e=2800 //cm^-1V^-1sec^-... |
ecf0fd5b990e6ca3e4ff0b51d019b7f7a9219f36 | 6a0d5ad524ce9b230c7e35af224317d515bb8f2d | /ResilienceBAU/Traj_BAU.sce | 1842e20648aee9600086e4ee329e6a892686f902 | [] | no_license | mcuilleret/Entropic | b562ded98cbb74ad55579b6be5730767f24f4f2b | 0dd4e8bacb312015cd6c3b04b732ebd69de4ac23 | refs/heads/main | 2023-08-13T07:07:02.684153 | 2021-10-05T10:28:19 | 2021-10-05T10:28:19 | 413,753,215 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 22,569 | sce | Traj_BAU.sce | chdir('C:\Users\matve\Desktop\Code These\ResilienceBAU\');
exec('donnees.sce');
exec('fctdyn_eco.sce');
exec('fctdyn.sce');
//Business as usual data
sheets=readxls('donnees3.xls');
data_eff=sheets(4);
/////////////////
//EFFORT
/////////////////
cas="26"
// Historical effort data
historical_effort_CC_bu=data_eff(3:T_pr... |
600b8b43fba2ed3ca01e20728c865115d4be5a1b | 449d555969bfd7befe906877abab098c6e63a0e8 | /135/CH2/EX2.11/EX11.sce | bd7b1e556a025c73744bb4b5bfc5dc9e0b880aab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,833 | sce | EX11.sce | // Example 2.11 (a) Alternating component of voltage acroos load resistance
// (b) Total voltage across load resistance
// (c) Total current
clc, clear
T=293; // Operating temperature in kelvins
VT=T/11600; // Voltage equivalent to temperatue at room temperature in volts
// In the Fig. 2... |
4c7baf2dd0c24769b0312a7a53d7cfecb3586ed7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3673/CH5/EX5.a.14/Example_a_5_14.sce | 01492cf7ae01063e8f9298d29fffeddca4cad59a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 166 | sce | Example_a_5_14.sce | //Example_a_5_14 page no:214
clc;
R=10;
Vr=50;
omega=1000;
theta=60;
C=1/(tand(60)*omega*R);
C=C*10^6;
disp(C,"the unknown capacitance is (in microFarad)");
|
3d57a41efc7e4d094fb8b557fc1b0c1b063c6c58 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/macros/xdess/rotate.sci | bf8adaddc64c95fe3274b4602e186379918ea30a | [
"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 | 482 | sci | rotate.sci | function [xy]=rotate(xy,teta,orig)
// effectue une rotation
//
// xy : matrice a deux lignes
// teta : angle en radian , 0 si omis
// orig : centre de la rotation, <0;0> si omis
//!
// Copyright INRIA
[lhs,rhs]=argn(0)
select rhs
case 2 then orig=[0;0];
case 3 then orig=matrix(orig,2,1);
else error(39)
end;
//
[m,... |
80f97d43c09415ce358e9fbf901b8d7636132660 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1199/CH1/EX1.1/1_1.sci | 38bf04bbcbcffc523d24e284e626fffeea2c7f7d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 453 | sci | 1_1.sci | // 1.1
clc;
c1=10^-6;
f1=60;
L1=1/(4*%pi*%pi*(f1^2)*c1);
printf("inductance of the circuit 1 = %.2f H", L1)
f2=50;
w=2*%pi*f2;
R1=100;
Z1=complex(R1,((w*L1)-(1/w*c1)));
//Z2=complex(100+j*((2*%pi*50*L2)-(1/(2*%pi*50*1.5*10^-6)))));
//for equal currents in two circuits Z1=Z2
disp('inductance of circuit 2 L2=... |
9c48f4bc3adba157031e410ec44d7ac0df0c0404 | 449d555969bfd7befe906877abab098c6e63a0e8 | /965/CH7/EX7.55/55.sci | 0943b645f25f66ad697db2e71930bfa9b71ccec2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 776 | sci | 55.sci | clc;
clear all;
disp("number of tubes")
ts=80;//degree C saturated steam temperature
kb=110;// W/m.C thermal conductivity of brass
do=1.59/100;// m OD of tubes
ro=do/2;
di=1.34/100;// m ID of tubes
ri=di/2;
tc1=20;//degree C
tc2=40;//degree C
mw=55000/3600;//kg/s
U=1.4;//m/s
kw=0.659;// W/m.C thermal condu... |
b8153a62b919703a95a34e96f6e09804eb74fd08 | 449d555969bfd7befe906877abab098c6e63a0e8 | /620/CH23/EX23.7/example23_7.sce | 3fbdae4de9251fe6be94677f33acb69e7efae4db | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 274 | sce | example23_7.sce | c1=8*10^(-6);
c2=4*10^(-6);
v=120;
f=60;
x_c1=1/(2*%pi*f*c1);
x_c2=1/(2*%pi*f*c2);
x_c=x_c1*x_c2/(x_c1+x_c2);
disp("the total capacitive reactance (in Ω) is"); disp(x_c);
disp("Part b");
i=v/x_c;
disp("the total current drawn (in A) from the supply is"); disp(i); |
de33fe61ac74b4cab21869b6088b7ca755e042e0 | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/rc2poly/rc2poly8.sce | 1cf785566af27aa224c8595107a3c8414afaac0a | [] | 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 | 274 | sce | rc2poly8.sce | //check o/p when vector containing elements of type doule are passed to the function
z=[0.23 0.233 0.34 0.56 0.34 0.12 0.34 0 0.986];
[k] =rc2poly(z);
disp(k);
//output
//1.0000 0.8252 1.2695 1.4682 1.7928 1.7871 1.4584 1.2612 0.8137 0.9860
|
5ca26cef76e43d7424ce6b0f6a98161a94c81539 | a4ce37dd982e41bbd31bdf08b43c2913bfe5082a | /data/poverty_rate_table.tst | 0b0f7cda2076249ee0a1291afa29c4a7d872a1a0 | [] | no_license | karthik-aru/bcn-population-diversity | 9c15c1ba1f38808f7917182128e4078fc001f1b8 | 97f67170a2d18219716b0a4d74a6d0adeb49982a | refs/heads/main | 2023-02-22T02:29:58.836329 | 2021-01-24T15:03:46 | 2021-01-24T15:03:46 | 332,176,688 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 422 | tst | poverty_rate_table.tst | District.Code District.Name Perc_BPL
1 Ciutat Vella 37.2
2 Eixample 19.8
3 Sants-Montjuïc 29.1
4 Les Corts 20.2
5 Sarrià-Sant Gervasi 10.4
6 Gràcia 17.6
7 Horta-Guinardó 23.3
8 Nou Barris 43.3
9 Sant Andreu 25.9
10 Sant Mart... |
80e653bce297ffe94f1c103a6e7c246a4a707286 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH15/EX15.9/Ch015Ex9.sce | 1355db257712e892759214175b92ff0bbafd8a7c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 786 | sce | Ch015Ex9.sce | // Scilab code Ex15.9 : Pg:773(2011)
clc;clear;
function [bini]= decimal_binary(ni) // Function to convert decimal to binary
bini = 0;
i = 1;
while (ni <> 0)
rem = ni-fix(ni./2).*2;
ni = int(ni/2);
bini = bini + rem*i;
i = i * 10;
end
endfunction
function [deci]= binary_deci... |
a022fb08de222de1ac4aaa400f07110563d22483 | 449d555969bfd7befe906877abab098c6e63a0e8 | /278/CH32/EX32.3/ex_32_3.sce | 66970e3ad5e869cdd6a5c32f443f3783b8c6cbdf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 449 | sce | ex_32_3.sce | //find
clc
//solution
//given
D=400//mm
L=600//mm
r=300//mm
pb=0.3//N/mm^2
p=2.5//N/mm^2
W=50//kN
//T1+T2=6.5//kN=P
P=6.5
q=(%pi/180)*pb
//l/r=5
Fp=(%pi/4)*D^2*p//N
b=2*D
b1=b/2
b2=b/2
H1=Fp*b1/b/1000//kN
H2=Fp*b2/b/1000//kN
//V2=W*c1/c
//c1=c2=c/2
V2=W/2
V2=W/2
H2b=P/2
H3b=P/2
//let dc be crankpin dia,lc be length
fb... |
55b2319fae080a16e389369d0bb26b890ed2e388 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3793/CH4/EX4.15/exp_4_15.sce | 563da9fb754b8cf42754649ed9a8f8db08a90623 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,051 | sce | exp_4_15.sce | clear;
clc;
v=400;
Xl=.30;
Xc=3.75*10^(-6);
l=300;
L=Xl/(2*%pi*50);
C=Xc/(2*%pi*50);
Zc=sqrt(L/C);
phase=2*%pi*50*sqrt(L*C);
pconstant=%i*phase;
Vs=v/sqrt(3);
Vr=Vs/(cos(phase*l));
betal=18.9076;
Xl=(Zc*sind(betal))/(1-cosd(betal));
Xr=(3*(Vs^2))/Xl;
mprintf("Reactance and rating of inductive shunt rea... |
83b143adfda96040a622c30c85cb65827810ba1b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2594/CH7/EX7.2/Ex7_2.sce | 7d1deba80bc56d4db8e466709569009a92ba9070 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 895 | sce | Ex7_2.sce | clc
NE=5*10^17
disp("NE = "+string(NE)+" /cm^3") //initializiation the value of doping concentration in the emitter .
NB=10^16
disp("NB = "+string(NB)+" /cm^3") //initializiation the value of doping concentration in the base.
NC=10^15
disp("NC = "+string(NC)+" /cm^3") //initializiation the value of doping concent... |
40d2017ca1f94cb1d336050595afc9030360e052 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2219/CH4/EX4.5/Ex4_5.sce | 1b510fb016b3add39d4978ffbf9f8acf451ae905 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 611 | sce | Ex4_5.sce | // chapter 4 example 5
//-----------------------------------------------------------------------------
clc;
clear;
// given data
Pi = 5*10^-3; // Input power in W
CF = 10; // coupling factor
Piso = 10*10^-6 // power at isolated port in w
// calculations
// CF ... |
ff71291ec4483ffa1a5bb53c9f066566946bf3f0 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.3.1/Unix-Windows/scilab-2.3/macros/percent/%pdr.sci | 7fd653a478afeaf9a39d0057054e413b8b0ee576 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 114 | sci | %pdr.sci | function r=%pdr(p,r)
// r=%pdr(p,r) <=> r= p./r polynomial./rational
[n,d]=r(2:3)
r(2)=d.*p;r(3)=n.*ones(p);
|
3cad486d1e6155a823f2e7bad8e3fce6500e3874 | 449d555969bfd7befe906877abab098c6e63a0e8 | /52/CH4/EX4.23/Example4_23.sce | b8a307f1bf061a59cb4c141ead2f8e69afaca3f5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 244 | sce | Example4_23.sce | //Example 4.23
//Program to Compute the DFT of given Sequence
//x[n]=cos(n*pi/2), and N=4 using DIF-FFT Algorithm.
clear;
clc ;
close ;
N=4;
pi=22/7;
n=0:1:N-1;
x =cos(n*pi/2);
//FFT Computation
X = fft (x , -1);
disp(X,'X(z) = '); |
de616a05eeb76438d309522b651e8404c8d767bb | 449d555969bfd7befe906877abab098c6e63a0e8 | /476/CH8/EX8.17/Example_8_17.sce | 11d56abf75fb39e6d189e68db5a2bd0672793897 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,246 | sce | Example_8_17.sce | //A Textbook of Chemical Engineering Thermodynamics
//Chapter 8
//Phase Equilibria
//Example 17
clear;
clc;
//Given:
P = 40.25; //total pressure (kPa)
y1 = 0.566; //mol fraction of benzene in vapour phase
x1 = 0.384; //mol fraction of benzene in liquid state
P1 = 29.6; //vapour pressure of benzene (kP... |
43baf4ce15095e8a8bc41b5b889fe80bb788f6c7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3136/CH12/EX12.7/Ex12_7.sce | b4f31b0e6fc677f5363a26acc27929506cbbc5bb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,281 | sce | Ex12_7.sce | clear all; clc;
disp("Referring to figure A-12 and assuming pure saturated liquid at the condenser outlet,we have h9=hf=93 Btu/lbm from the steam table")
disp("With p8=p9=2 psia and p6=100 psia,we have h6=h9+delta_p*144/(Eta_p*rho)")
h9=93
delta_p=100-2
Eta_p=0.8
rho=62.4*778
h6=h9+delta_p*144/(Eta_p*rho)
pri... |
5556b4d2c322df5c84fae770ea0f8af15b0028af | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH12/EX12.26/Ex12_26.sce | b87933a5cec3d48c977d579b834352cd4015e456 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 341 | sce | Ex12_26.sce | clear
//Given
l=0.5 //m
n=20 //turns
r=50 //cm
A1=40*10**-4 //m**2
n1=25
A2=25*10**-4 //m**2
//Calculation
u=4*%pi*10**-7
N=n*r
N2=n1*r
M=(u*N*N2*A2)/l
//Result
printf("\n Mutual induction of the system is %0.2f ... |
106bd3702520f9649bd7f7a3449c6b49b99c7067 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2330/CH16/EX16.1/ex16_1.sce | 8c898db39a98e8e7ed26ff889c894f3ad5fba08b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 482 | sce | ex16_1.sce | // Example 16.1
format('v',5)
clc;
clear;
close;
// given data
A=100000;//unit less
R1= 98*10^3;// in Ω
R2= 2*10^3;// in Ω
Vin= 1*10^-3;// in V
B= R2/(R1+R2);// unit less
A_CL= 1/B;// unit less
A_CL= A/(1+A*B);// unit less
// The output voltage
Vout= Vin*A_CL;// in V
// The error voltage
Verror= Vout/... |
85eeead490deb640950e52a4ed9f2a68a0d4aca6 | 717ddeb7e700373742c617a95e25a2376565112c | /278/CH14/EX14.1/ex_14_1.sce | 076a13d5aa8708b33108443ffd06e1769ad1eea1 | [] | 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 | 230 | sce | ex_14_1.sce | //determine dia of the shaft
clc
//solution
//given
N=200//rpm
P=20*10^3//W
t=42//N/mm^2
//let d be dia
T=P*60000/(2*%pi*200)//N-mm
//T=(%pi/16)*t*d^3=8.25*d^3
d=(T/8.25)^(1/3)//mm
printf("the dia of shaft is,%f mm",d) |
4b6181ba8fb73f2c95af72fefb81ec0d4c08133d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3537/CH1/EX1.35/Ex1_35.sce | f8ecbd5644e96cd3b5fcd40d96b28ec75eee7db3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 235 | sce | Ex1_35.sce | //Example 1_35
clc();
clear;
//To calculate the intensity ratio of the bright and dark fringes
I1=1
I2=25
A1=sqrt(I1)
A2=sqrt(I2)
Imax=(A1+A2)^2
Imin=(A2-A1)^2
printf("The intensity ratio is \n\t Imax:Imin %d:%d",Imax,Imin)
|
954c7c9c3ef4892d2cf734939dd9e0277d8db392 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3257/CH4/EX4.2/Ex4_2.sce | 8095428c40aff60f6b29889f2a8822878319a6a0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 226 | sce | Ex4_2.sce | // Adhesive wear in sliding
clc
v = 1 // wear volume in mm^3
k = 1e-2 // from table
W = 100 //load in kg
p = 150 // hardness in HB
printf("\n Example 4.2")
L = 3*v*p/(k*W)
printf("\n Distance traveled is %d mm.",L)
|
ca19f59f0c27ad9e237ca06733e70133241f9768 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2606/CH10/EX10.25/ex10_25.sce | 0dee7d81a3276359d32f50ae02577bb5e0f04394 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 786 | sce | ex10_25.sce | //Page Number: 10.41
//Example 10.25
clc;
//Given
A1=0.5;
A2=0.5;
T=0.01; //sec
N0=2*0.0001; //W/Hz
f=50; //Hz
//(a) Probability of bit error
Es1=(A1^2*T)/2;
Es2=(A2^2*T)/2;
Eb=(Es1+Es2)/2;
//As PE=Qsqrt(Ep+Eq-2Epq/2N0)
//In this case Ep=Eq=Eb
//Therefore PE=Qsqrt(Eb(1-p)/N0)
//where p=Epq/Eb
//p... |
75e2571559f39b421f3eedc53dd398314c058bf7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3289/CH4/EX4.5/Ex4_5.sce | f785f9700d7e342bca36fdb6d3e44f0da9b01818 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 881 | sce | Ex4_5.sce | clc
r=0.04 //m
t=5 //mm
sigmae=250 //MPa
sigmay=300 //MPa
//sigmathetamax=(p*r)/t =8*p max values of tangential stresses
//sigmathetamin=((-p/4)*r)/t =-2*p min values of tangential stresses
//sigmazamax=(p*r)/2*t =4*p axial principal stresses
//sigmazmin=((-p/4)*r)/2*t =-p
//sigmathetaa=(s... |
5fb5e4660fbc6fa82871ee48efb64fe1012bf175 | 449d555969bfd7befe906877abab098c6e63a0e8 | /273/CH18/EX18.3/ex18_3.sce | ab7d198de604d1754f3cdab68c448a65d8ac9973 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 552 | sce | ex18_3.sce | clc;clear;
//Example 18.3
//calculation of fraction of e in CB
//given values
T=300;//temp in K
kT=.026;//temperture equivalent at room temp in eV
Eg1=.72;//forbidden gap of germanium in eV
Eg2=1.1;//forbidden gap of silicon in eV
Eg3=5.6;//forbidden gap of diamond in eV
//calculation
f1=%e^(-Eg1/(2*kT));... |
b6164b72a1bbe0f98138dc3cdcdd2144629c6a6c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1757/CH6/EX6.13/EX6_13.sce | 36eaf0f7002c03521939091e4a02a7c3555740cf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 380 | sce | EX6_13.sce | //Example6.13 // Determine the time constant of the integrator
clc;
clear;
close;
Vo = 20 ;
t = 1*10^-3 ;
VI = -1 ; // at t =0 ;
// The output voltage of an integrator is define as
RC = t/10 ;
disp(' The time constant of the given filter is RC = '+string(RC)+ ' sec ');
R = 1*10^3 ; // we assume
C = R... |
a003352797c4502b410e372b3d17d197221f5d0c | 449d555969bfd7befe906877abab098c6e63a0e8 | /132/CH2/EX2.2/Example2_2.sce | e7121f98a80a296832b0cddfe376d33b92908457 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 602 | sce | Example2_2.sce | //Example 2.2
//Program to Obtain Equivalent Voltage Source Representaion from Given Current Source Representation
clear;
clc ;
close ;
//Current Source or Norton's Representaion (Parallel Current Source & Resistor)
Is=0.2; //Amperes
Zs=100; //Ohms
//Voltage Source or Thevenin's Representaion (Series Voltage So... |
25918b58e81830c06749669f482090d23d4e96a1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /43/CH4/EX4.4/ex4_4.sce | 5b5029869e25079dd34f6dc8255651ca68b880b9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 62 | sce | ex4_4.sce | clc;
a=0.5;
for n=1:10
x(n)=a^(n-1);
end
X=fft(x,-1); |
cf25b1e093535c81891ded9ebb2b31b14e15fd7f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1733/CH5/EX5.1/5_1.sce | c3ad289c66badf4de36ed07c8d826bf9811c921e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 588 | sce | 5_1.sce | //5.1
clc;
Vin=150;R=8;
duty_cycle=36/(36+64);
VL=Vin*duty_cycle^0.5;
printf("RMS output voltage=%.0f V", VL)
Po=VL^2/R;
printf("\nPower output =%.1f W", Po)
// since losses are neglected
Pi=Po;
printf("\nPower Input =%.1f W", Pi)
Irms_load=VL/R;
Irms_input=11.25;
VA_input=Irms_input*Vin;
pf_input=Po... |
22f696dc16cf63076c0b66b9c204e2d09d4e082b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3782/CH10/EX10.5/Ex10_5.sce | 801d43c142f39945bc34482dd0c0d01f44f0a37d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 391 | sce | Ex10_5.sce |
//
//
r=400
t1=15,t2=30,t3=60,
ct=900
l=320
BT2=r*(tan((t1)*%pi/180))
CT2=l-BT2
r1=(CT2)/(tan((t2)*%pi/180))
printf("\n R1= %0.3f ",r1)
t1t2=(%pi*r*t2)/(180)
t2t3=(%pi*r1*t3)/(180)
printf("\n length of arc T1T2= %0.3f ",t1t2)
printf("\n length of arc T2T3= %0.3f ",t2t3)
ct1=ct-BT2
ct3=ct1+t1t2+t2t3
printf("\... |
632ba8f07e0b354b26e52f39a8096d3404f8dbef | 449d555969bfd7befe906877abab098c6e63a0e8 | /1862/CH14/EX14.3/C14P3.sce | 6881769fdaed049f2c9381b7795508c49778319a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 748 | sce | C14P3.sce | clear
clc
//to find free fall acceleration of neutron ster and asteroid ceres
// GIVEN:
//mass of neutron star
Mn = 1.99e30//in Kg
//radius of neutron star
Rn = 12e3//in m
//mass of asteroid ceres
Mc = 1.2e21//in Kg
//radius of asteroid ceres
Rc = 4.7e5//in m
//Gravitational constant
G = 6.67e-11//in N.... |
29c103927b215e017734c520a55cebdde0d90332 | f6134e0a162a059c42ec3ef8de2a63941d73936c | /Scilab_code/Graph_search/add_stance_to_graph.sci | ae62a38b7d7f294c9fd715b4ffacdfa7de81169a | [] | 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 | 7,657 | sci | add_stance_to_graph.sci | function [bool_add,bool_fin,stance_graph_out] = add_stance_to_graph(STNC,parent_node_nb,stance_graph,params)
//Author : Maxens ACHIEPI
//Space Robotics Laboratory - Tohoku University
//Description:
//
//INPUT
//STNC : an array of foothold struct
//stance_graph: a struct containing:... |
35a7bf49178651057e8c661a8501fbd52dfecb8d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2354/CH17/EX17.11/17_11.sce | f512655d4a5b4b399fd3e662dfcec840939773cc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 420 | sce | 17_11.sce | //example 17.11
clc; funcprot(0);
// Initialization of Variable
k=33.8e-3;
L=0.71;
A=1.02*0.71;//area
Ts=505;//temperature
Tsur=296//temperature
Nu=147;
h=Nu*k/L;
q=h*A*(Ts-Tsur);
disp(q,"heat transfer by convection in W");
qrad=A*5.67e-8*(Ts^4-Tsur^4);
disp(qrad,"heat transfer by radiation in W");
hrad=5... |
07ca818ea118ac9e24be452574c3956eb961f223 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH13/EX13.17/Ex13_17.sce | bda77b716752ad5b3d73d20e0319d839ba9b0e32 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 314 | sce | Ex13_17.sce | clear
//Given
C=50*10**-6 //F
V=230 //V
//Calculation
//
q=C*V*sqrt(2)
E=0.5*C*(V*sqrt(2))**2
//Result
printf("\n (i) Maximum charge on the capacitor is %0.2f *10**-3 C",q*10**3)
printf("\n (ii) The maximum energy stored in the capacitor is %0.2f J",E)
|
b20c48351bfd5fad0e86a39a598425609276820e | 940067908a620ecf3af07168e750cd30769047e4 | /IntegraleTrapeze.sce | f3dabb9c45b680e512a22720eca0f78201efbc4b | [
"MIT"
] | permissive | davidfotsa/Numerical_Methods_With_Scilab | 9bada60e6feba012fa7a52ce0e0ea85a40afd0d4 | a3c731888b8a7a77f0d851210bc62e00e348ace9 | refs/heads/main | 2023-08-01T13:11:14.528993 | 2021-09-28T04:19:38 | 2021-09-28T04:19:38 | 407,939,339 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 359 | sce | IntegraleTrapeze.sce | //Integration par la méthode des trapèzes
function y=f(x)
y=exp(1+x.^2);
endfunction;
function I=IntTrap(f,a,b,h)
I=(f(a)+f(b))/2;
//h=(b-a)/n;
x=a:h:b;
n=length(x);
if n>2 then
I=I+sum(f(x(2:n-1)));
end
I=I*h;
endfunction
disp(IntTrap(f,1,2,1));
disp(IntTrap(f,1... |
5228bdde8850dc04cee17a03e5ae9addbcb2dca3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /273/CH17/EX17.3/ex17_3.sce | f5ef28355a1bd679528848332d55f544d415e5f6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 290 | sce | ex17_3.sce | clc;clear;
//Example 17.3
//calculation of velocity of fraction of free electrons
//given values
E=5.5;//fermi level in eV
kT=.026;//temperture equivalent at room temp in e
//calculation
f=2*kT/E;
disp(f,'fraction of free electrone\s upto width kT on either side of Ef is');
|
e1cdad04cb2f5d201c99cc99d8b16a62f5b209b6 | 048b7c76423fe27dee2e31a52bae93c95883614e | /macros/periodogram.sci | 33e15af7086d77955d0e82ded63afea87b226d6c | [] | no_license | vu2swz/FOSSEE-Signal-Processing-Toolbox | aa5f283d050be62418dddbf41552f197b9949c4c | d97a4b7e2f0f25fb5cd94bd90a3b822592179d1e | refs/heads/master | 2021-08-19T20:06:19.346872 | 2017-11-27T09:57:21 | 2017-11-27T09:57:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 505 | sci | periodogram.sci | function [d,n]=periodogram(a,b,c,d,e)
funcprot(0);
[nargout,nargin]=argn();
select nargin
case 1 then
[d,n]=callOctave('periodogram',a);
case 2 then
[d,n]=callOctave('periodogram',a,b);
case 3 then
[d,n]=callOctave('periodogram',a,b,c);
case 4 then
[d,n]=callO... |
3fddb1f66a32b04f9f8b39f9d44195a6b29d3bdd | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpic2escifiles6/Openobj.sci | e902ce5da90633e3062477c11d7010c76c5408d8 | [] | 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 | 659 | sci | Openobj.sci | // s : 2014.06.22
// e : 14.09.07
function Out=Openobj(Fnm)
global OBJFMT NPOINT NNORM OBJSCALE OBJFIGNO Wfile FID OBJJOIN
OBJFMT= "%7.4f";
NPOINT= 0;
NNORM=0;
OBJSCALE=1;
OBJFIGNO=0;
OBJJOIN=0; // 140906
if Fnm =='' then
Wfile='default';
else
// errcatch(4,"continue"); //17.02.18from
// ... |
a4f1e21f6d0ad9b530d092b2734abc7181633911 | 449d555969bfd7befe906877abab098c6e63a0e8 | /770/CH8/EX8.4/8_4.sce | d27918fb36a07e2a4701d875a6834f8412d19621 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 586 | sce | 8_4.sce | clear;
clc;
//Example - 8.4
//Page number - 292
printf("Example - 8.4 and Page number - 292\n\n");
//Given
T_high = 20 + 273.15;//[K] - High temperature
T_low = 0 + 273.15;//[K] - Low temperature
Q_H = 10;//[kW] - Heat supplied
//If 'Q_H' is the rate at which heat is taken from surrounding and 'W' is the... |
b5f282330f2f0dabc4729fd5476c1ffc1cfe187d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2132/CH4/EX4.9/Example4_9.sce | d625fef310a7e12a04ba0870f3f554acb6dbe19d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 380 | sce | Example4_9.sce | //Example 4.9
clc;
clear;
close;
format('v',9);
//Given data :
S1=1;//sp. gravity
S2=13.6;//sp. gravity
h1=120/1000;//m
P_diff=h1*(S2-S1);//meter of water
disp("Difference in pressure head is "+string(P_diff)+" meter of water");
w=1000;//kg/m^3
P_diff=P_diff*w*9.81;//Pa or Nm^2
disp(P_diff,"In terms of pre... |
9c75cb6de8fddfc45bd1295c3382aa6dc428f6f8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1922/CH2/EX2.3/2_3.sce | b7687f8ac957ba5aff5d8535693892d6ccb3ddf1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 305 | sce | 2_3.sce | clc
clear
//Initialization of variables
Pc=22.12*10^6 //Pa
Tc=647.3 //K
Vc=0.05697 //m^3/Kmol
R=8.3143*10^3
Tr=0.7
//calculations
Zc=Pc*Vc/(R*Tc)
T=Tr*Tc
Ps=10^6 //Pa
w=-log10(Ps/Pc) -1
//results
printf("critical compressibility factor = %.3f",Zc)
printf("\n Accentric factor = %.4f",w)
|
440d0ab08480448e7fe84a4dc2a82d8ec8756364 | da5b40d917ec2982828bd9bdf06b18b7bf189f26 | /sim/scripts/proptable.tst | c974f193aaa7119aab33ee3425ffee8fa4e2b9b3 | [] | no_license | psy007/NNPC-CHEMICAL-SIM- | 4bddfc1012e0bc60c5ec6307149174bcd04398f9 | 8fb4c90180dc96be66f7ca05a30e59a8735fc072 | refs/heads/master | 2020-04-12T15:37:04.174834 | 2019-02-06T10:10:20 | 2019-02-06T10:10:20 | 162,587,144 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,940 | tst | proptable.tst | optimizecode 1
maxversions 0
units Field
/LiquidPhases = 2
/StdLiqVolRefT = 288.15
/StdLiqVolRefT = 60 F
/RecycleDetails = 1
displayproperties
displayproperties VapFrac T P MoleFlow MassFlow VolumeFlow StdLiqVolumeFlow StdGasVolumeFlow Energy H S MolecularWeight MassDensity Cp ThermalConductivity Viscosity molarV ZFa... |
3c403897982471d3c0a540284f9bd84a7248c70e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3750/CH2/EX2.2/EX2_2.sce | 2c93ceb04f5fbaa11026c0000f0246f9260b48d5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,807 | sce | EX2_2.sce | //Strength Of Material By G.H.Ryder
//Chapter 2
//Example 2
//To Find the dimensions so that the strength shall be same against all type of failure
clc();
//Initialization of Variables
d=5; //diameter of rod , Unit in cm
f=1.25; //thickness of cotter , Unit in cm
StressTension=300; //Permissible stress in... |
92fde7c4fc305e65167599b67824b80d4220982b | 1db0a7f58e484c067efa384b541cecee64d190ab | /macros/cheb2ord.sci | 815ba0de3c900a016e2853094bf38875a78f1e5c | [] | no_license | sonusharma55/Signal-Toolbox | 3eff678d177633ee8aadca7fb9782b8bd7c2f1ce | 89bfeffefc89137fe3c266d3a3e746a749bbc1e9 | refs/heads/master | 2020-03-22T21:37:22.593805 | 2018-07-12T12:35:54 | 2018-07-12T12:35:54 | 140,701,211 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,668 | sci | cheb2ord.sci | function [n, Wc] = cheb2ord(Wp, Ws, Rp, Rs)
//This function computes the minimum filter order of a Chebyshev type II filter with the desired response characteristics.
//Calling Sequence
//n = cheb2ord(Wp, Ws, Rp, Rs)
//[n, Wc] = cheb2ord(Wp, Ws, Rp, Rs)
//Parameters
//Wp: scalar or vector of length 2, all elements mu... |
5fe293e9d2cad773354e1cfd19300d233ac7cb86 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3825/CH6/EX6.21/Ex6_21.sce | aca6d3c54019a610e2326fd3a5aa9b3a298fc8f5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 739 | sce | Ex6_21.sce | clc
m1=5
m2=6
m3=8
//values from appendix are used below given in book
deltaa=m1*19.8+m2*32.24-(-3.626)-m3*28.11
mprintf("deta a=%E\n",deltaa)//ans in the textbook is wrong
deltab=(m1*7.334+m2*0.1924-48.73-m3*(-3.68*10^-4))*10^-2
mprintf("deltab=%E\n",deltab)//ans vary due to roundoff error
deltac=((m1*-5.602)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.