blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 6 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2
values | repo_name stringlengths 6 87 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 15
values | visit_date timestamp[us]date 2016-08-04 09:00:04 2023-09-05 17:18:33 | revision_date timestamp[us]date 1998-12-11 00:15:10 2023-09-02 05:42:40 | committer_date timestamp[us]date 2005-04-26 09:58:02 2023-09-02 05:42:40 | github_id int64 436k 586M ⌀ | star_events_count int64 0 12.3k | fork_events_count int64 0 6.3k | gha_license_id stringclasses 7
values | gha_event_created_at timestamp[us]date 2012-11-16 11:45:07 2023-09-14 20:45:37 ⌀ | gha_created_at timestamp[us]date 2010-03-22 23:34:58 2023-01-07 03:47:44 ⌀ | gha_language stringclasses 36
values | src_encoding stringclasses 17
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 5 10.4M | extension stringclasses 15
values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3ef25fb26ff93fb91cf0b75cd3ce8a1b43fa910 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1172/CH3/EX3.13/Example3_13.sce | cb830a6c70983cf2cdbf64db47f11c01e897974b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 532 | sce | Example3_13.sce | clc
//Given that
v = 300 // speed of electron in m/s
accuracy = 1e-4 // accuracy in speed
h = 6.6e-34 // Plank's constant
m_e = 9.1e-31 // mass of electron in Kg
//Sample Problem 13 page No. 140
printf("\n\n\n # Problem 13 # \n")
printf("\n Standard formula Used \n delta_p * delta_x >= h /(2*pi)")
del_p = acc... |
9a00bee207aa98fbebae57f67910bf3bda2abda3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2735/CH13/EX13.11/Ex13_11.sce | 24488c6291c0331553113750f66cc21779e49a00 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 325 | sce | Ex13_11.sce | clc
clear
//Initialization of variables
p1=50 //psia
pr=0.58
//calculations
p=p1*pr
s1=1.6585
h1=1174.1 //Btu/lbm
sf=0.3680
sfg=1.3313
hfg=945.3
vg=13.746
hf=218.82
x= (s1-sf)/sfg
v2=vg*x
h2=hf+x*hfg
V2rev=223.77*sqrt(h1-h2)
m=%pi/4 *1/144 *V2rev/v2
//results
printf("mass flow rate = %.3f lbm/sec",m... |
80dfced2b45ad6b9e611a8a28c940da054b4f901 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.2/tests/scilab.tst | 08f842da283c9169e0f33dc5b32a2ab7f315058d | [
"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 | 13,256 | tst | scilab.tst | pi=%pi
i=%i
e=%e
// tests
//
1
a=1
b=[1 2 3]
c=[1 2 3;4 5 6]
d=[1 2 3;4 5 6]'
d=[1 2 3 4;4 5 6 7;8 9 10 11;12 13 14 15]
d=[1 2;3 4]
e1=[[1 2] [3 4];[5 6 7 8];[9;10;11;12]']
f([1 3 5],[1 2 3])=[-1 -2 -3;-4 -5 -6;-7 -8 -9]
g=[i,2,3;1 i 3;1 2 i]
h=[i 1 2 i 3]
o=[1 i i 2 3]'
b(2)=3
e1(1,3)=1
p='apcdefghijklmnopqrstuv... |
fcee4922b1d4d40161cdfa05b6388635fdcecdd1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /162/CH4/EX4.15/example415.sce | f241fdb32e211302b4c95c1535f8a907e80480ea | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 85 | sce | example415.sce | //Example 4.15
clc;
syms s;
F=(s+3)/(s*((s+1)^2)*(s+2));
f=ilaplace(F);
disp(f); |
8f27ab9e18f0c1e681cf4ba2bb5d9aebac986c1f | 449d555969bfd7befe906877abab098c6e63a0e8 | /854/CH13/EX13.9/Example13_9.sce | 2802ba70a307fc4039e69f63480ac8416d3108d9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 704 | sce | Example13_9.sce | //clear//
//Caption:Program to determine incident and transmitted anlges
//Example13.9
//page464
clear;
clc;
n1 =1.00; //refractive index of air
n2 =1.45; //refractive index of glass
teta1 = asin(n2/sqrt(n1^2+n2^2));
teta2 = asin(n1/sqrt(n1^2+n2^2));
Brewster_Condition = teta1+teta2;
disp(teta1*57.3,'Inciden... |
2959f8e267fae62486ddd7cbf4c105c056f02512 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1217/CH6/EX6.17.a/Exa6_17a.sce | 843d3cca3eea4a9b14f7305c0c8a141132ec12a4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 448 | sce | Exa6_17a.sce | // Exa 6.17a
clc;
clear;
close;
// given data
R=10;//in Kohm
R1=R;//in Kohm
R2=R;//in Kohm
R3=R;//in Kohm
Rf=5.6;//in Kohm
R4=Rf;//in Kohm
R5=Rf;//in Kohm
RA=2.7;//in Kohm
RB=1.5;//in Kohm
C=0.01;//in uF
C1=C;//in uF
C2=C;//in uF
alfa=3*RB/(RA+RB);
disp("The type of response will be determined by the... |
90be811a232dae0b9f829d2fab5f8fa59d8b0872 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1472/CH5/EX5.4.b/5_4b.sce | 5630a23fd1e1ee4006f140bfbcc13f31faa85307 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 288 | sce | 5_4b.sce | clc
//initialization of varaibles
P1=75 //psia
P2=15 //psia
V1=6 //cu ft
g=1.2
m=3
//calculations
Q=30 //Btu
V2=V1*(P1/P2)^(1/g)
U=0.48*(P2*V2-P1*V1)
W=Q-U
//results
printf("Work done = %.1f Btu",W)
//The answer given in textbook is wrong. please check using a calculator
|
ac680cd484550ea35f0fc32ce73470f808617e94 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2223/CH18/EX18.29/Ex18_29.sce | 89f23a68dfa03d23ca3427a5bcc1888a334cd021 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 2,325 | sce | Ex18_29.sce | // scilab Code Exa 18.29 Centrifugal compressor with vaned diffuser
T01=310; // in Kelvin
p01=1.103; // Initial Pressure in bar
dh=0.10; // hub diameter in m
d2=0.55; // impeller diameter in m
c1=100; // Velocity of air at the entry of inducer
c3=c1; // Velocity of air at diffuser exit
shi=1.035; // power inp... |
fc91dc49a9e811ed3796c1ae17143dc3404d4ad3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2342/CH5/EX5.11/EX5_11.sce | 265ec148dc3a14f7074e414036c675bd985447ab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 822 | sce | EX5_11.sce | // Exa 5.11
format('v',5)
clc;
clear;
close;
// Given data
k= 0.1;// in mA/V^2
V_T= 1;// in V
R2= 87*10^3;// in Ω
R1= 110*10^3;// in Ω
R_S=2;// in kΩ
R_D=2;// in kΩ
//R_D=3*10^3;// in Ω
V_DD= 6;// in V
V_SS= 6;// in V
V_G= (V_DD+V_SS)*R2/(R1+R2);// in V
// V_S= I_D*R_S-V_SS
// V_GS= V_G-V_S= V_G+V_SS-(... |
e0bbba8e19e51e111e6242b2cd98390e103c86c0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1640/CH1/EX1.13/1_13.sce | 4782e4542806c1a37b4847ac5cfc9b37a117972b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 317 | sce | 1_13.sce | clc
//initialisation of variables
w= 62.4 //lb/ft^3
l= 12 //ft
b= 6 //ft
h= 5.196 //ft
a= 60 //degrees
a1= 45 //degrees
//CALCULATIONS
P= w*l*b*h/2
h1= ((l*b^3*(sind(a))^2/12)/(l*b*(h/2)))+(h/2)
R= P*(b-(h1/cosd(a/2)))/((b*sind(a1))/2)
//RESULTS
printf ('Total comression in the promp CD = %.f lb ',R)
|
17e97981592a12d4bddc4000089ce814f1921a65 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3886/CH21/EX21.2/21_2.sce | b1c6b101bdbde9f2d64e8367cfde981b8685aed9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 198 | sce | 21_2.sce | //S.H.M
r=0.75 //m
T=1.2 //sec
omega=((2*%pi)/(1.2)) //rad/sec
vxmax=0.75*5.236 //m/sec
axmax=0.75*5.236^2 //m/sec^2
printf("\nvx(max)=%.3f m/sec\nax(max)=%.3f m/sec^2",vxmax,axmax)
|
ab8abfe2f873c6cac6a6da405b3f9c8acf1fbdea | 449d555969bfd7befe906877abab098c6e63a0e8 | /1163/CH4/EX4.14/example_4_14.sce | e1bf03794f6d6fc83612a2faedb524a4ee4e157b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 430 | sce | example_4_14.sce | clear;
clc;
disp("--------------Example 4.14---------------")
bits= 8; // bits per sample
fl=0; // The human voice normally contains frequencies from 0 to 4000 Hz.
fh=4000; // Hz
sampling_rate = 2*fh; // twice the highest frequency
bit_rate=sampling_rate*bits; // formula
printf("The sampling rate is %d samples... |
d36c62ea3900a9d21e43ee9db09bba289d7e42bd | 449d555969bfd7befe906877abab098c6e63a0e8 | /671/CH10/EX10.19/10_19.sce | 22b908d08a149a732f056e6fbed9f2564d851c64 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 183 | sce | 10_19.sce | V=250
Ia=200
Ra=0.22
Ea=V-Ia*Ra
Pm=Ea*Ia
Prl=600
Pmout=Pm-Prl
n=1250
wm=2*%pi*n/60
Tl=Pmout/wm
disp(Tl)
Rf=125
Psh=V*V/Rf
Pein=V*Ia+Psh
effi=Pmout/Pein
disp(effi)
|
2af374d6bbf156bd3621cd887a207a210e51720c | 449d555969bfd7befe906877abab098c6e63a0e8 | /257/CH7/EX7.13/example_7_13.sce | b0d6586e5b1caef56f6c358e75e8f17a0691c2df | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 311 | sce | example_7_13.sce | syms f J K s t
T=1/(J*(s^2+(f/J)*s+(K/J))) //Q/I
omegaN=sqrt(K/J)
Mp=6 //given
zeta=0.667
omegaD=omegaN*sqrt(1-zeta^2)
Tp=%pi/omegaD
disp(Tp," Tp = ")
I=laplace('10',t,s)
Q=I*T
x=limit(s*Q,s,0);
disp(10/0.5," K = ")
disp(K/omegaN^2," J= ")
disp(zeta*(2*sqrt(K*J))," f = ")
|
897450e0afccb77f8e5c3ec2ae8c42ac7033799d | b1b2e80029cc5546ff903cab102cf2f635407fda | /tp.sci | c260b95e4eabbcbbed9b713ab19dfeb9ea7d7e88 | [
"MIT"
] | permissive | walidzbiri/zip-code-classification | abc3f0e84400b66ea1e13304ef6353e683e085e5 | f46b4196ba87afc9eff3ad598a40657999860bf4 | refs/heads/main | 2023-03-22T22:56:10.434583 | 2021-03-20T21:22:51 | 2021-03-20T21:22:51 | 349,837,025 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,998 | sci | tp.sci | xdel(winsid());
clc;
//getd('C:\Users\ab\Desktop\TP S7 eilco\TpImage\TP\cavite');
//// qst 1
//// qst2
//I=imread('code_postale.jpeg');
//figure;
//imshow(I);
//I_gray=rgb2gray(I);
//figure;
//imshow(I_gray);
////qst3
//seuil=imgraythresh(I_gray);
//I_bw=~im2bw(I_gray,seuil);
//figure;
//imshow(I_bw);
//// qst4
//str... |
29ac110105fcb2f95604559ebb4dac02eee1b47e | 623a9dd972dc78dbde5d5b8dc187acd6a1eb5910 | /TP0/Baskara.sci | 8cf6df10efb625bdae2e2e87b5283a459ec46231 | [] | no_license | gtessi/CN2012-FICH | 0daad054ceb6c36636ee5e8b174a676b9e0acb9b | 4024384653b61b5af9e1c11ffb575e154025ee47 | refs/heads/master | 2020-03-27T05:53:04.684505 | 2018-08-25T03:03:15 | 2018-08-25T03:03:15 | 146,059,800 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 744 | sci | Baskara.sci | function [r] = Baskara(v)
// Controla que a sea distinto de 0
if (v(1)<>0) then
// Calcula el discriminante
disc=v(2).^2-4*v(1)*v(3)
// Calcula las raíces
x1=(-v(2)+sqrt(disc))/2*v(1);
x2=(-v(2)-sqrt(disc))/2*v(1);
// Informa el tipo de... |
87867ec6bdc619022afbbde8f6628f691ea97c2e | a1161d9e9d26e0a7b20c31269be145f13d9d3e89 | /QA/tests/h2o_qmd/h2o_scf.tst | 71c57bf4914acb27223466f359438af8cd90d5da | [
"LicenseRef-scancode-warranty-disclaimer",
"ECL-2.0"
] | permissive | nwchemgit/nwchem | c06e7e1fe11b3afad17b167f29a97c4fa3ad0fda | c5a8125298a6ea7d6eb27b07c196ea8041aa7198 | refs/heads/master | 2023-09-05T17:18:34.513866 | 2023-09-02T02:56:47 | 2023-09-02T02:56:47 | 111,318,191 | 425 | 164 | NOASSERTION | 2023-09-11T16:34:14 | 2017-11-19T17:48:21 | Fortran | UTF-8 | Scilab | false | false | 900 | tst | h2o_scf.tst | Time = 0.001
Temperature = 30.02
Energy = 0.000E+00
Time = 0.001
Temperature = 107.10
Energy = -6.849E+02
Time = 0.002
Temperature = 196.30
Energy = -6.841E+02
Time = 0.002
Temperature = ... |
3f20d0f3dc73961ea3b0f1390395eee28802f7cf | 449d555969bfd7befe906877abab098c6e63a0e8 | /2015/CH4/EX4.4/4_4.sce | c3ed3dc439f4f718109446a89c39e96c5c1f67dc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 637 | sce | 4_4.sce | clc
//initialisation of variables
h1=3221.6 //kj/kg
s1=7.399 //kj/kgk
sf2=0.521 //kj/kgk
sfg2=7.808 //kj/kgk
hf2=152 //kj/kg
hfg2=2415 //kj/kg
t1=653 //temp in k
t2=309.2 //temp in k
v=0.1006*10^-2
p1=10 //pressure in bar
p2=0.06 //pressure in bar
h3=152 //kj/kg
x=110
y=639.7
z=610
a=2015
//CALCULATIO... |
453464b4447a08213d4ef81fa269602df38c227d | 449d555969bfd7befe906877abab098c6e63a0e8 | /73/CH11/EX11.11/Example11_11.sci | 48613d3d5d1f845b7b04804e0c7db15becc49bd0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 836 | sci | Example11_11.sci | //Chapter 11_Nonlinear Circuit Application
//Caption :Design Peak Detector
//Example11.11: Design a positive peak detector using type uA 760 comparator that can respond to a 100 mV(pp),5 MHz sinusoidal input signal.The device has following specifications. Response time=25 ns, propagation time=12 ns, and Input bias cu... |
4b9922e4193f8d31c19e44f6dadc0b1af5d2c610 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3856/CH5/EX5.3/Ex5_3.sce | 0882d1f28cc2bb3cf46a3668ac8522be0aeeb125 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 751 | sce | Ex5_3.sce | //How much work must be done by a heat pump when the outdoor temperature is 5 dgree and minus 10 degree
//Example 5.3
clc;
clear;
q2=5000; //Amount of heat deliver by a pump in J
T2=295; //Temperature of house in K
T1=278; //Outdoor teperature in K
q1=abs(q2)*(T1/T2); //Amount of heat in J
w... |
8361fbeda4ae514a5ce26c39188960e336a02de6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2870/CH4/EX4.4/Ex4_4.sce | 07406eca63e42562922f91541fb97972ea6579a5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 698 | sce | Ex4_4.sce | clc;clear;
//Example 4.4
//given data
V1=0.05;
P1=200;
k=150;
A=0.25;
//calculations
//Part - a
V2=2*V1;
x2=(V2-V1)/A;//displacement of spring
F=k*x2;//compression force
P2=P1+F/A;//additional pressure is equivalent the compression of spring
disp(P2,'the final pressure inside the cylinder in kPa');
... |
9dfd3ffe34dba351c24e899241b6b06728833267 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4/macros/m2sci/%e2sci.sci | 539e6cfa8ec6178d476df9ee8fde055cb3216fc5 | [
"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 | 983 | sci | %e2sci.sci | function [stk,txt,top]=%e2sci()
// genere le code relatif a l'extraction d'une sous matrice
//!
// Copyright INRIA
txt=[]
rhs=maxi(0,abs(evstr(op(3)))-1)
sn=stk(top);top=top-1
s2=stk(top)
if rhs==1 then
if s2(1)==':' then
stk=list(sn(1)+'('+s2(1)+')','0','?','1',sn(5))
elseif sn(3)=='1' then
stk=list(sn(1)+... |
823f14b641e7bad8edf5fb37da5c66ef79c2d461 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2087/CH15/EX15.2/example15_2.sce | 51defb483473eb15998aea4af920bf36be9b4686 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | example15_2.sce |
//example 15.2
//design an irrigation channel in alluvial soil by Laecy's theory
clc;funcprot(0);
//given
Q=15; //Full supply discharge
f=1; //silt factor
s=1/2; //side slope of channel
//from Laecey regime channel (Fig.15.4(b)) B and D is obtained as;
B=15.1;
D=1.3... |
48a787ae24a36ff6589ce2ec11a67ef8664f6827 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2267/CH12/EX4.17/Ex12_17.sce | c4a83e9da69e8a50b96ecc011993537c8623aaf5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 237 | sce | Ex12_17.sce | //Part B Chapter 4 Example 17
clc;
clear;
close;
l=25;//m
d=0.5;//mm
n=10;//no. of rounds
G=82;//GN/m^2
Ip=%pi/32*d^4*10^-12;//m^4
theta=2*%pi*n;//radian
T=G*10^9*Ip*theta/l;//Nm
disp("Torque required is "+string(T)+" Nm.");
|
61b257c980fe46b204577ccaf92b581ac5967943 | 5f2ca8e18735204f5995ac7e44a6e301eb23ea0b | /scripts/sim/coordinated_turn_f16.sce | 98ffaf00f3a849552e339bdb9811ac084cb34700 | [] | 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 | 992 | sce | coordinated_turn_f16.sce | exec('trim/trim_f16.sci');
exec('eqm/params_f16.sci');
//[X0, controls, params] = trim_coordinated_turn(800, 1000, 0.3, -3/180*%pi);
params = load_f16();
params.xcg = 0.35;
params.VT_ftps = 502;
params.alt_ft = 0;
X0 = [
502.
0.2391101
0.0005096
1.3665928
0.0500909
0.
0.
0.
0.
0.
0.
... |
f5beaf54862c9d28414b98d6e6c9d5c0fc213fc9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1466/CH2/EX2.1/2_1.sce | 8b0a7044f0c6c3bc34703c79b6fc72c7cc16ba58 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 210 | sce | 2_1.sce | clc
//initialisation of variables
V= 4000 //ft^3
W= 64 //lb
w= 62.4 //lbf/ft^3
//CALCULATIONS
W1= W*V/2240
V1= W1*2240/w
//RESULTS
printf (' volume of the dispalcement in fresh water = %.f ft^3',V1)
|
8375235276873c959f33e87060026d8c772c0921 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH5/EX5.5/5Ex5.sce | 1a3b0689c50e1e05d277fa560d25e5a1fdedf68f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 118 | sce | 5Ex5.sce | //chapter 5 Ex 5
clc;
clear;
close;
//let the value to be found out be x
x=sqrt(25/16);
mprintf("x=%.2f",x);
|
7278c4c3edfbd572c540d42b1ae121f68318aa6f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2339/CH13/EX13.6.1/Ex13_6.sce | 29af54562c9b6faeb696ff92eebb1c19415e782e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 154 | sce | Ex13_6.sce | clc
clear
Na=600;
Za=25;
Zb=50;
Zc=20;
Zd=40;
Nad=(Zb/Za)*(Zd/Zc);
Nd=Na/Nad;
printf('Speed of Output Shaft= %2.1f RPM',Nd);
printf('\n');
|
745a570a5ab9d9eddfddb79250e5814fca14cc2f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3204/CH2/EX2.20/Ex2_20.sce | 081286cace7af027d44279a043d1a206cc891b5c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex2_20.sce | //Initilization of variables
theta1=50.5 //degree //is the angle made between BC & and BE
theta2=36.87 //degree //is te angle ade between BA &BE
g=9.81 //m/s^2
Wa=15*g //N
Wb=40*g //N
Wc=20*g //N
//Calculations
R2=Wc/(sind(theta1)) //N //from F.B.D of cylinder C(sum Fy=0)
R4=(Wb+R2*sind(theta1))/sind(theta2) ... |
baf439c3c214380bcc410714388cf9cafce08a3c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2333/CH4/EX4.9/9.sce | 01d1905cb98e8d2b03b6eff7ca4da42ac62f39a2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 353 | sce | 9.sce | clc
// Given that
Ip = 53 // Angle of polarization of light
// Sample Problem 9 on page no. 216
printf("\n # PROBLEM 9 # \n")
I_r = 90 - Ip // Angle of refraction
mu = tan(Ip*%pi/180) // Refractive index of water
printf("Standard formula used \n mu=tan(Ip)\n")
printf("\nAngle of refraction is %d degree. \n Refractive ... |
d9c2ae1ed7bebbc6c941a701a34cad3f79d11cb7 | b9602336613b26d0b9c22a09d219c0ed8e158b4e | /Examples/Examples_Mat/square.sce | 2c9cd97082af98cfed62159b51306cb1786033c6 | [
"BSD-2-Clause"
] | permissive | CEG-MCA-Scilab-Hackathon/Scilab_Armadillo_Toolbox | d0a366f5f058ee45d3c4be7a41e08ed419d4b7cd | 70c97cda4e0dd54df0a638e9b99f380c09ffa37e | refs/heads/master | 2022-12-11T01:28:28.742041 | 2020-08-26T12:24:27 | 2020-08-26T12:24:27 | 290,481,428 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 105 | sce | square.sce | // Calculating the square.
y = [1.2, 1, 1.9; 4, 2.6, 5; 2.3, 8, 7];
squareres = armaMat("square",y)
|
848c685663b3df82436ac7de778b4a4510865fc9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2240/CH4/EX3.6/EX3_6.sce | 6669cf6c91b8792d04c3cd60251acdcf77324032 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | EX3_6.sce | // Grob's Basic Electronics 11e
// Chapter No. 03
// Example No. 3_6
clc; clear;
// How much current is produced by 60 V across 12 kOhms?
// Given data
V = 60; // Voltage=60 Volts
R = 12*10^3; // Resistance=12k Ohms
I = V/R;
disp (I,'The Current I in Amps')
disp ('i.e 5 mAmps')
|
af63d66f521a1893dd76005c37ac611d3f3ce055 | 9ba84a7f7b27fc82fdfcfb8dd03498c4cc91f124 | /Parcial 3/AgustinDiaz6.sce | f34b3755b0fdad9582dd63f48ec920d486ebc9d1 | [] | no_license | ignaciolitma/LCC-Metodos-Numericos | 8120eba09ea160e3252542373afc5ddad49a04c9 | e63728e5f15bb469dff205a74901a5b930e1271d | refs/heads/main | 2023-03-12T11:34:36.940908 | 2021-03-01T20:56:12 | 2021-03-01T20:56:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,115 | sce | AgustinDiaz6.sce | // Pregunta 6
// Aplica f a todos los elementos
// de la matriz A
function B = matrixfun(f,A)
B = A
for i = 1 : size(A,'r')
for j = 1 : size(A,'c')
B(i,j) = f(A(i,j))
end
end
endfunction
// Aplica el metodo compuesto de Simpson
// para aproximar la integral definida
// de f e... |
61dc50692b706ffebbd523ec6262aeae86202d6b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1445/CH7/EX7.2/ch7_ex_2.sce | ac414b4456c6e4fb9bc3c7d04f187546754abcc1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 952 | sce | ch7_ex_2.sce | //CHAPTER 7- SINGLE PHASE TRANSFORMER
//Example 2
disp("CHAPTER 7");
disp("EXAMPLE 2");
//VARIABLE INITIALIZATION
v1=400; //primary voltage in Volts
v2=200; //secondary voltage in Volts
I0=1; //in Amperes
pf1=0.4; //power... |
a9906537ae93f1e54f05f4f91afc5ef3583e66d1 | 18bf68cdf766092ccdcba8d231e8140063833a5a | /ConitnuousTimeCosineWave.sce | 068110274163ee4f2f334946c2afaec545ba4eed | [] | no_license | goodengineer/Scilab-Exercises | b51cc9a4c938f0289a32875d2d21eb9061d0e68e | 3c268211fe48e7e4d0002e44757ea8b50cda10f9 | refs/heads/master | 2022-12-24T23:30:12.875423 | 2020-10-05T06:27:20 | 2020-10-05T06:27:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 329 | sce | ConitnuousTimeCosineWave.sce | // program to generate & plot a continuous time cosine wave
// Exercise 1
clear;
clf;
clc;
// clear previous graph and plots
dt = 1/1000;
t = -1:dt:1;
A =1;
f=1;
Theta = %pi/4;
x = A*cos(2*%pi*f*t + Theta);
plot(t,x,'m');
xlabel("t","fontsize",4);
ylabel("x","fontsize",4);
title("Continuous Time Cosine Wave","fonts... |
0e9c1204c0e6cb101038b03b088cb0ac91b7de69 | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH42/EX42.02/42_02.sce | 17d7090d2d0ff0d5469b458059523fad2b11278c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 633 | sce | 42_02.sce | //Problem 42.02: A filter section is to have a characteristic impedance at zero frequency of 600 ohm and a cut-off frequency at 5 MHz. Design (a) a low-pass T section filter, and (b) a low-pass pi section filter to meet these requirements.
//initializing the variables:
R0 = 600; // in ohm
fc = 5E6; // in Hz
/... |
926c6b659f015063ccb676de5e4e96091f37abf1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1466/CH24/EX24.2/24_2.sce | 209cf422257b0e81ea1486fc85823f6c2a591e41 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 353 | sce | 24_2.sce |
clc
//initialisation of variables
A1=0.954*10^-4//ft^2
A2=2.082*10^-4//ft^2
p1=47.9//lb/in^2
T1=180//R
Ma1=1
Ma2=2.28//plotting
g1=1.4
R=53.3
//CALCULATIONS
v1=49*sqrt(T1)
k=(g1-1)/2
T2=T1*(k+Ma1)/(1+(k*Ma2*Ma2))
p2=p1/((T1/T2)^(g1/(g1-1)))
vs2=49*sqrt(T2)
v2=Ma2*vs2
W=144*p1*A1*v1/(R*T1)
//RESULT... |
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... |
b04a180ad77984547dd76bd27f7f0791b2d80411 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2990/CH4/EX4.26/Ex4_26.sce | 59b5091bddc677fdcb68f51d8cf51fd37b90737e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 463 | sce | Ex4_26.sce |
funcprot(0);
// Initialization of Variable
function[dms]=degtodms(deg)
d = int(deg)
md = abs(deg - d) * 60
m = int(md)
sd = (md - m) * 60
sd=round(sd*100)/100
dms=[d m sd]
endfunction
Long=75.0;//longitude in degrees
GST=5+25.0/60+15.0/3600;//GST in hr
LMT=5.0+40.0/60;//LMT in hr
... |
14d0774396a8f515dc60315e11bcf8798a5c8c86 | d1a2737ec744ffbba1165afa7b05f26a4076f513 | /Lab 7/q2.sce | 1f1fd75eaf680950dc1d1fef385256d552f8e41e | [
"MIT"
] | permissive | ipsitmantri/EE-324-Control-Systems-Lab | 4e37a3de51f4114ba0ea281cbb1da78a6c4815bb | b34c45efc3539005603b2e76c1665d6636f80f88 | refs/heads/master | 2023-04-03T10:42:34.548542 | 2021-04-13T14:11:21 | 2021-04-13T14:11:21 | 357,540,595 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,081 | sce | q2.sce | clc; clear;
s = poly(0, 's');
ratio = 20;
//-----------------
// Part a
g = 1 / (s^2 + 3*s + 2);
slope = %pi / log(10);
G = syslin('c', g);
scf();
evans(G, 1000);
x = -10:0.0001:0;
y = -slope * x;
plot(x, y, 'r-', 'LineWidth', 2);
K = 4.437; // constant gain for 10% OS
disp("K for 10 % OS = ");
disp(K);
//-------------... |
64a10a2c465375597db1ad8feae94b00211a1411 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2339/CH3/EX3.29.1/Ex3_29.sce | c334f4e4bb189fc9960056f24e18f8c78f586fd1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 959 | sce | Ex3_29.sce | clc
clear
//Inputs
//The Values in the program are as follows:
//Temperature in Celcius converted to Kelvin(by adding 273)
//Pressure in bar converted to kPa (by multiplying 100)
//Volume in m^3
//Value of R,Cp and Cv in kJ/kg K
V1=0.1;
V3=V1;
P1=10;
T1=200+273;
P2=3;
R=0.287;
G=1.4;
Cv=0.718;
m=(P1... |
4cbf7afb38a7c706aa17d8c92b5b76bc8610199d | 717ddeb7e700373742c617a95e25a2376565112c | /2825/CH4/EX4.13/Ex4_13.sce | b4973df752cd080d05fc265e5b154d00c13c14c1 | [] | 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 | 1,094 | sce | Ex4_13.sce | //Ex4_13 Pg-245
clc
V=20 //source voltage in V
Vz=12 //zener voltage in V
Vs=V-Vz //voltage across resistor in V
Rs=330 //series resistance in ohm
RL=1.5*10^3 //load resistance in ohm
disp("Voltage across resistor ")
printf(" = %.0f V \n ",Vr)
disp("(1) Current through series resistor Is")
Is=Vr/... |
945a5935017bfe55550206ab2cc3dc17f3688cd5 | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/diffuse/newtempmultireactconc.sce | 241ef7239f46e446ff17a1200f35632b9faff324 | [] | 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 | 1,235 | sce | newtempmultireactconc.sce |
function [newtempmultireactconc]=newtempmultireactconc(nsubsteps, nspecies, concm, n1, n2, n3,t0,t,h,dif,sourcesm,sinksm,inconsts)
//cycle over each element of the array
//update concentration
rconsts=0;
nconcm=zeros(n1,n2,n3,nspecies);
ddt=dt/nsubsteps;
for kk=1:nsubsteps
t=t0+ddt;
//t0=t0+ddt;
for i... |
c72fb5b27c57271951bbe064c0fd1e9851e632f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /226/CH16/EX16.5/example5_sce.sce | 17077b319088a9a91ed4fa61e0d30a34c56dba29 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 309 | sce | example5_sce.sce | //chapter 16
//example 16.5
//page 683
printf("\n")
printf("given")
f=5*10^3;vo=5;I1=1*10^-3;Vf=.7;
disp("phase shift oscillator")
R1=(vo/29)/I1
R1=150;//use standard value
R2=29*R1
R4=(2*Vf)/I1
R4=1.5*10^3;//use 1.5kohm standard value
R5=R2-R4
R6=.4*R5
R7=.8*R5
R=R1;
C=1/(2*3.14*R*f*sqrt(6)) |
84b97b76a6bb53b059dad2de669bb30d9e6fbd8e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2096/CH2/EX2.14/EX_2_14.sce | eab2e1c27aaf6efee5f86864ac41c5de54555c5e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 357 | sce | EX_2_14.sce | //Example 2.14//unknown resistance
clc;
clear;
Z1=50//impedance of first arm(in ohm)
Za=80//phase angle of first arm(in degree)
Z2=125//impedance of second arm(in ohm)
Z3=200//impedane of third arm(in ohm)
Zc=30//phase angle of third arm(in degree)
Z4=(Z2*Z3)/Z1
disp(Z4,'magnitude of Z4 arm(in ohm)=')
Zd=Zc-Za
disp(Zd,... |
e5a60a514b58631e2b26d5ccc93b2a6fb79d41e0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2213/CH1/EX1.7/ex_1_7.sce | 931ee49a6a6e541c99f5916997a1c2973511093f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,022 | sce | ex_1_7.sce | //Example 1.7 // rating of furnance
clc;
clear;
close;
format('v',6)
sh=0.1;// specific heat of steel in kcal/Kg/°C
lh=26.67;//latent heat in kcal/kg
mp=555;//melting point of steel °C
t1=35;//initial temperture in °C
e=0.8;//overall efficiency
ip=5700;//input current in amperes
rs=0.008;//resistance of transformer ref... |
e7f2bba41753c4f72661a57a2788164fb8797071 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4/macros/m2sci/cla2sci.sci | f2f449fa5ff2095897084e8e0f270e0007964a4b | [
"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,225 | sci | cla2sci.sci | function [txt,vnms,vtps,lcount]=cla2sci(clause,vnms,vtps)
// traduit une clause (if while for select)
//!
// Copyright INRIA
typ=clause(1)
//write(6,'cla2sci '+typ(1))
level;level(1)=level(1)+1
select typ(1)
case %if then
ncl=size(clause)
ncas=(ncl-2)/2
tg=[]
level(2)=1
[t1,t2,ilst,vnms,vtps,lcount]=exp2sci(c... |
de9e37bfc1d6fb8a8675d9ba3574ebed6003b613 | 449d555969bfd7befe906877abab098c6e63a0e8 | /503/CH3/EX3.24/ch3_24.sci | efdc473c2caac8935c07703ec398476d3336211e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 940 | sci | ch3_24.sci | //find how 2 transformers connected in parallel share the load
clc;
Z1=complex(.012,.06);
Z2=2*complex(.014,.045);
Z=Z1+Z2;
r=800; //kva rating
pf=.8;
S_L=r*(complex(pf,-1*sind(acosd(pf))));
S_1=S_L*Z2/Z;disp(S_1,'load by first transformer(kVA)');
S_2=S_L*Z1/Z;disp(S_2,'load by second transformer(kVA)... |
3517f1642352fb0a36cbf7311f7b7959fa46aef3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /249/CH9/EX9.3/9_03.sce | e83b694ada660289a80faea52810085eb2c97511 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 566 | sce | 9_03.sce | clear
clc
//At 338 k
XA=0.581;
t=1;//min
//From ex 9.2 at 65 degree celcius
XAe=0.89;
//For a batch reactor,k1t/XAe=-ln(1-XA/Xae)
k1_338=-(XAe/t)*log(1-(XA/XAe));
//At 25 degree celcius
XAe1=0.993;
T1=338;T2=298;
R=8.314;
//At 298 k
XA1=0.6;
t1=10;//min
k1_298=-(XAe1/t1)*log(1-(XA1/XAe1));
E1=(R*log(k1... |
5c38e0e40ad49ca0bfa6c8acac4aa259ba4347d2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /593/CH8/EX8.9/ex8_9.sce | 069702a526c95a86d1c3ce387803af83c721bfae | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,716 | sce | ex8_9.sce | clear;
//clc();
// Example 8.9
// Page: 189
printf("Example-8.9 Page no.-189\n\n");
//***Data***//
// Here we will denote ethanol as species 'a' and water as the species 'b'
x_a = 0.1238;
x_b = (1-x_a);
T = 85.3;//[C] Given boiling temperature
// We have
// x_a + x_b = 1 and y_a + y_b = 1
// ... |
73f641c8a3daa442a01d9586ef8860c981c6f12c | 717ddeb7e700373742c617a95e25a2376565112c | /605/CH9/EX9.7/9_7.sce | fc55c51bc1add769a8a2080c84df42e15b308bb8 | [] | 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 | 585 | sce | 9_7.sce |
Gr=0.01
m=acosh(sqrt(10^(0.1*L)-1)/sqrt(10^(0.1*Gr-1)))/acosh(W/Wc)
printf("\nm=%.0f\n",m)
m=3
E=log(coth(Gr/17.37))
X=sinh(E/2/m)
n=3
gp=1
for p=1:1:n
ap=sin((2*p-1)*%pi/2/m)
bp=X^2+sin(p*%pi/m)^2
printf("\nap=%.4f\nbp=%.4f\n",ap,bp)
end
gp=0.62425
printf("\ng0=g4=1")
printf("\np=1\tgp=0... |
7daec6aee93b863ef7b35d07625d5979b741f38e | b4980b761e4b88d097e526fe06ebef2383d3d613 | /lab08/AssignmentStatement.tst | 4525b1f2fbb39b7c9d7fe342e1f242e7a3883f53 | [] | no_license | Vineeth-Kada/Computer-Systems-Design | aa42b053c709fdbf06713dc3e1e2649faa02c65d | 4c05e393e057ffb1540c74a53a0cb17f7129d8f8 | refs/heads/main | 2023-06-17T06:27:02.442583 | 2021-07-15T10:43:37 | 2021-07-15T10:43:37 | 289,896,111 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,504 | tst | AssignmentStatement.tst | load Computer.hdl,
output-file AssignmentStatement.out,
compare-to AssignmentStatement.cmp,
output-list time%S1.4.1 reset%B2.1.2 ARegister[0]%D1.7.1 DRegister[0]%D1.7.1 pc%D0.4.0 RAM64[19]%D1.7.1 RAM64[16]%D1.7.1 RAM64[17]%D1.7.1 RAM64[18]%D1.7.1;
//This program computes a + b - c and where a, b and c are variabl... |
5821838e7a987e931aa206265078617daf2a6437 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3665/CH8/EX8.19/Ex8_19.sce | be92da0686c6e736762b044b499f3de301cbc485 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 428 | sce | Ex8_19.sce | clc//
//
//
//Variable declaration
RH=3.66*10^-4; //hall coefficient(m^3/coulomb)
e=1.6*10^-19;
Pn=8.93*10^-3; //resistivity(ohm m)
//Calculation
n=1/(RH*e); //density of charge carriers(per m^3)
mew_e=RH/Pn; //mobility of charge carriers(m^2/Vs)
//Result
printf("\n density of charge carri... |
74e10e8dc66d5773e3a8cc0ed5f4c06fcf9f760b | f8bb2d5287f73944d0ae4a8ddb85a18b420ce288 | /Scilab/machine-sliding-mode/obokata/制御入力比較/制御入力の比較.sce | f8df68e5111a2ef4976e988a29db16598a6bf43b | [] | no_license | nishizumi-lab/sample | 1a2eb3baf0139e9db99b0c515ac618eb2ed65ad2 | fcdf07eb6d5c9ad9c6f5ea539046c334afffe8d2 | refs/heads/master | 2023-08-22T15:52:04.998574 | 2023-08-20T04:09:08 | 2023-08-20T04:09:08 | 248,222,555 | 8 | 20 | null | 2023-02-02T09:03:50 | 2020-03-18T12:14:34 | C | UTF-8 | Scilab | false | false | 2,886 | sce | 制御入力の比較.sce | //------------------------------------------------
//■2013.12.14 秋山殿
// 比例到達則+対称化
//------------------------------------------------
//▼2自由度機械システムの定義
L=[1 0; 0 1]; //アクチュエータに加わる力を表す行列(正則行列)
//L=[1 3; 0 0]; //アクチュエータに加わる力を表す行列(正則でない正方行列)
m1=1; m2=2; //質量
k1=1; k2=2; //ばね定数
d1=1; d2=2; //減衰定数
M=[m1 0; 0 m2]... |
15f59b18732e56f50ea6f7a09166e2c8f05fd65a | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.2/Unix/scilab-2.2/macros/algebre/trace.sci | 4c9b802b22a4f9f38de2315d0a7853205ee3f2d3 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 946 | sci | trace.sci | function t=trace(a)
// trace - computes the trace of a matrix
select type(a)
case 1 then
[m,n]=size(a)
if m<>n then error('the argument of trace must be a square matrix');end
t=sum(diag(a))
case 2 then
[m,n]=size(a)
if m<>n then error('the argument of trace must be a square matrix');end
t=sum(diag(a))
//-... |
98dfea1ab43580dfc9584100d99e7c40c9b43033 | 05b2bd67239938195f6ea021fd482c06f69c9145 | /p8.sci | 4f76c90537ae865b7b2f8117a55b206611652ef4 | [] | no_license | ZimmSebas/Metodos | 213aa8af793726409cf0346c3315663aa59ae835 | 5fb6f28413064194ae8f625da48914b471bb50f7 | refs/heads/master | 2020-03-31T15:18:35.349807 | 2019-12-21T23:19:21 | 2019-12-21T23:19:21 | 152,331,779 | 5 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,168 | sci | p8.sci | //reglaTrapecio(fn,a,b). Aplica método del trapecio a una función fn de a hasta b.
function y = reglaTrapecio(fn, a, b)
h = b-a;
y = h/2 * (fn(a) + fn(b));
endfunction
//reglaSimpson(fn,a,b). Aplica método del Simpson a una función fn de a hasta b.
function y = reglaSimpson(fn, a, b)
h = (b-a)/2;
med =... |
63f86cbc630ffec1693fc0e00b18a0c160c5c25f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2939/CH4/EX4.37/Ex4_37.sce | a55d8939751db3b9b31d7d9d7f72830ff5368d35 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 195 | sce | Ex4_37.sce |
//Ex4_37
clc;
// Given:
a=10*10^7;// rate
t=15;// h
// Soution:
A30=a*(1-(0.5)^(2));// dps
A45=A30*((0.5)^(3));// dps
printf("The residual activity in the sample is %f dps",A45)
|
7b17657e36ee196e3ada4cce885cc931cfe9a7c7 | 13c3ed7bef4d80dabd836219bbf4396f07cb934a | /bitor_demo.sci | c94d0506417527a0b00d7c77681b90f40584cec7 | [] | no_license | Mushirahmed/scilab_workspace | 99f489a110a5e295ce9fca9991122d14840018d3 | f58b91b87bb0357fff82dcb97b05541e7e976eca | refs/heads/master | 2021-01-10T15:48:40.576771 | 2016-02-10T10:32:46 | 2016-02-10T10:32:46 | 43,348,489 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 415 | sci | bitor_demo.sci | function bitor_demo()
a = uint8(12);
b = uint8(39);
c = bitor(a,b);
disp(c);
d = uint8([11 10 9;8 7 16;7 5 6]);
e = uint8([13 9 10;7 5 3;10 8 3]);
f = bitor(d,e);
disp(f);
aa = uint16(8);
bb = uint16(4);
cc = bitor(aa,bb);
disp(cc);
dd = uint16([1 4 6;2 10 8;2 12 16])... |
b9d8b8efb969923c26aabf83086dbdc8a16d7954 | 253e09cf7efdbfda8dd6a7d62523e0623a6307ad | /scr/test1.tst | 3b59e2ecde96e13e147e3cb3368a71100b2598f5 | [] | no_license | GOodCoffeeLover/OSI_2 | f4fdd83eef9637eced3150cd4789cdd82af2ae8f | 742950885333270ead6b0376c0cad8c33a02ce12 | refs/heads/master | 2023-04-12T23:55:37.597543 | 2021-03-05T08:07:31 | 2021-03-05T08:07:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 116 | tst | test1.tst | file1
qwertyuioyuiop qwertyuio
some space
and some more space .
|
ebc2af0d34058a0e5c2b623bc3aba55302ce7190 | 76b8c4ba0a69d3281b658f0fcf0ec56a96e27581 | /Workspace/Mission_B2.sce | 9113ed9abb68ab0b6f962fed1c4f898ff7a97149 | [] | no_license | RomainJunca/ExoLife | 0824fa566b38c5061f77592df6c38c3614dd8619 | 8da1524432d0ef1137d5e73e80cec339e6ec1c33 | refs/heads/master | 2020-05-25T14:08:07.353617 | 2017-03-20T08:31:32 | 2017-03-20T08:31:32 | 84,937,995 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 652 | sce | Mission_B2.sce | //Mission B2
//On récupère l'image.
pathname = "C:\Users\Jean-Guillaume P\Documents\Exia\A2\Projets\Imagerie\ExoLife\Images\Mission_B\GD61.pbm";
img_in = readpbm(pathname);
//Histogramme de l'image.
histogramme = histogrammeFct(img_in);
// Normalisation
minHisto = debutHistogramme(histogramme);
maxHisto = finHi... |
3aa4cb179870e6e548b77f2e9afdf3e48e946df6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2096/CH1/EX1.8/ex_1_8.sce | e1089905f8cbe49ec0313650066bff294554eca1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 265 | sce | ex_1_8.sce | // Example 1.8.sensitivity of gauge
clc, clear
// given :
C=60; // calibration pressure
F=(300*%pi)/180; //full scale deflection
L=F*90; // length of scale
S=L/C;
disp(S,"sensitivity,S = (mm/pa)")
//answer is calculated in the form of pi in the textbook
|
05a794815d78d1890e67e7e364f8ecb907672e1a | ac1f8441b0319b4a391cd5a959bd3bb7988edfa7 | /data/news2015/news2015/SplitsNEWS15/EnJa/enja.4.tst | c007a473f770f060b0b167137a54503e5fbc5e01 | [
"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 | 100,344 | tst | enja.4.tst | a a l t o n e n ア ー ル ト ネ ン
a b b a d i e ア バ デ ィ
a b b a g n a n o ア バ ニ ャ ー ノ
a b d u r a k h m a n ア ブ ド ゥ ル ア ハ マ ン
a b e r t ア ー ベ ル ト
a b r a s i m o v ア ブ ラ シ モ フ
a c h a r d ア シ ャ ー ル
a c h e a m p o n g ア チ ャ ン ポ ン
a d a エ イ ダ
a d a k ア ダ ッ ク
a d a m ア ダ ム
a d a m ア ダ ン
a d a m ア ー ダ ム
a d a m o v i c h ア ダ モ ... |
c3bd23f8786088fc0a4eb171bd8928722f4b3844 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3819/CH1/EX1.12/Ex1_12.sce | 944a5687d8c3a534583894cbe8bff2c4edd15579 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 424 | sce | Ex1_12.sce | // A Textbook of Fluid Mecahnics and Hydraulic Machines - By R K Bansal
// Chapter 1-Properties of Fluid
// Problem 1.12
//Given Data Set in the Problem
kin_visc=6*10^-4
SG=1.9
dens_water=1000
//Calculations
dens_liquid=SG*dens_water
visc=dens_liquid*kin_visc //Kinematic viscosity=Dynam... |
f9fed32fe431d685118a4e5cb76edf0a5769d438 | 449d555969bfd7befe906877abab098c6e63a0e8 | /662/CH2/EX2.25/ex2_25.sce | eac12f1d8b49a6281b2504e04f3f0a7fea9d3604 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 479 | sce | ex2_25.sce | //Example 2.25
//one dimensional character array
letter=['c','a','l','i','f','o','r','n','i','a'];
//size displays the size of array as [start index. end index]
[s,e]=size(letter);
printf("Element Number Subscript Value Array Element Corresponding data Item");
//in c the subscript start fr... |
afa734df438dbb5fcae40f62ca134169b768fc6d | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/BIPO/LQ93ZNM/ATWM1_Working_Memory_MEG_LQ93ZNM_Session1/ATWM1_Working_Memory_MEG_Nonsalient_Uncued_Run1.sce | 351f8a80542f9c22b1ed3cf864dd1dd52b6d0162 | [] | 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,615 | sce | ATWM1_Working_Memory_MEG_Nonsalient_Uncued_Run1.sce | # ATWM1 MEG Experiment
scenario = "ATWM1_Working_Memory_MEG_salient_cued_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_monito... |
5c33e5e0820a86910e32888a698df904d5e11c1d | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpic2escifiles6/PointonCurve.sci | fd2a35d00ad0754315fb1d8b1d4b80078797766f | [] | 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 | 231 | sci | PointonCurve.sci | // 08.05.30
function Out=PointonCurve(T,PtL)
Eps=10^(-4);
N=Trunc(T+Eps);
S=max(T-N,0);
// PtL=Plt;
if N==size(PtL,1)
Out=PtL(N,:);
else
Pa=PtL(N,:);;
Pb=PtL(N+1,:);
Out=(1-S)*Pa+S*Pb;
end
endfunction
|
6d9049b89fbaaaf424b742fb568ba7febfa4301c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3472/CH9/EX9.20/Example9_20.sce | 3003b65a9b7b55895ca3d0914566beda7e63f28f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,090 | sce | Example9_20.sce | // A Texbook on POWER SYSTEM ENGINEERING
// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
// DHANPAT RAI & Co.
// SECOND EDITION
// PART II : TRANSMISSION AND DISTRIBUTION
// CHAPTER 2: CONSTANTS OF OVERHEAD TRANSMISSION LINES
// EXAMPLE : 2.20 :
// Page number 117-118
clear ; clc ; close ; // Clear th... |
67628f77061cf8b0aa9f74b88013e3e9dcec6103 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2594/CH8/EX8.10/Ex8_10.sce | 19a60761ce4e471ec034b28b34a565ebffd459e7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 972 | sce | Ex8_10.sce | clc
L=1.25*10^-4
disp("L = "+string(L)+" cm") //initializing value of length of channel.
un=600
disp("un = "+string(un)+"cm^2/V-s") //initializing value of mobility of n-channel MOS transistor.
Co=6.9*10^-9
disp("Co = "+string(Co)+"F/cm^2") //initializing value of capacitance per unit area .
VT=0.60
disp("VT = ... |
7a46f9d2a4a833ea59671a888efb7d929ecd501d | 449d555969bfd7befe906877abab098c6e63a0e8 | /605/CH3/EX3.2/3_2.sce | 669e9db757309be385644817e638febeca51f60d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 3_2.sce | //data
W=2*%pi*10^8 //rad/s
Vp=2.5*10^8 //m/s
Vin=75/(50+75)*3*complex(cos(0),sin(0)) //V
Iin=3/(50+75)*complex(cos(0),sin(0)) //A
//formula and result
printf("\nresult:-")
b=W/Vp
printf("\nB=%.4frad/m",b)
printf("\nV=1.8*cos(2*pi*10^8*t-0.8*pi*z)\ni=0.024*cos(2*pi*10^8*t-0.8*pi*z)")
|
2afa5d5a14b9dd3447c1595f1323aa441921b99b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1370/CH1/EX1.18/chapter1_18.sce | 34090a018922000bcec02abfc4b1d3d47aff1da1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | chapter1_18.sce | //example1.18
clc
disp("Rearrange the circuit as shown below.")
disp("The 3.333ohm and 3.6ohm resistors are in series in fig 1.87(c).")
r=3.333+3.6
format(8)
disp(r,"Therefore, the equivalent resistance R_yz(in ohm)=")
|
1770f814a2baa269048b460e423ae05b89b54ae7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /291/CH9/EX9.5a/eg9_5a.sce | e5d3e2ffbe38a763bbd23dad90d07461b5592867 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 487 | sce | eg9_5a.sce | x= [60 62 64 65 66 67 68 70 72 74];
y= [63.6 65.2 66 65.5 66.9 67.1 67.4 68.3 70.1 70];
xbar = mean(x);
ybar= mean(y);
n= 10;
SxY = 0;
for i= 1:n
SxY = SxY + (x(i)*y(i)) - (xbar*ybar);
end
Sxx = 0;
for i=1:n
Sxx= Sxx + (x(i)*x(i)) - (xbar*xbar);
end
SYY = 0;
for i=1:n
SYY = SYY + (y(i)*y(... |
06f70adaf512c8f648a930cb549aa1d00716384c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2666/CH8/EX8.4/8_4.sce | b44c712b575c003d70c4d4c4de3eb0ce2e5f86c1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 287 | sce | 8_4.sce | clc
//initialisation of variables
v=0.7//percent
p=250//psia
p1=0.50//percent
h=(%pi/4)*(13.1)^2*(16.4/1728)//cu ft
g=0.090//ft
p2=1.8438//cu ft
//CALCULATIONS
W=v*h//cu ft
V=g+h//cu ft
V1=g+p1*h//cu ft
H=V1/p2//lb
//RESULTS
printf('the specific volume of dry =% f lb',H)
|
8138acc6e9e9cb33961ec508522fa05d27967800 | eb7eeb04a23a477e06f3c0e3d099889caee468b4 | /src/examples/course/scilab/membrane/membrane.sce | c306af2d35a73a8f1cc49e905fbc5a55c1c274b2 | [] | no_license | mikeg64/iome | 55699b7d7b3d5c1b006d9c82efe5136b8c909dfd | cc1c94433133e32776dcf16704ec4ec337b1b4a0 | refs/heads/master | 2020-03-30T15:57:33.056341 | 2016-04-13T09:24:27 | 2016-04-13T09:24:27 | 151,387,236 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,282 | sce | membrane.sce | //
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) INRIA
//
// This file is distributed under the same license as the Scilab package.
//
// =============================================================================
// Demonstrate animation based on the evolution of a 3D surface
/... |
4d74c00db70b3fa92ea49b0c5105a3d6f50a1202 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2498/CH5/EX5.22/ex5_22.sce | 70cbd1e423031f50e9b28921a55de0ff35a008b6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 569 | sce | ex5_22.sce | // Exa 5.22
clc;
clear;
close;
format('v',8)
// Given data
A = 10000;
Beta = 0.02;
Zi = 1;// in k ohm
Zi = Zi * 10^3;// in ohm
Zo = 10;// in k ohm
Zo = Zo * 10^3;// in ohm
// The input impedance
Zif = Zi*(1+(A*Beta));// in ohm
Zif= Zif*10^-3;// in k ohm
disp(Zif,"The input impedance in k ohm is");
// T... |
e70fe256496250aacb0e3f1786959c15ae4a6e55 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2783/CH8/EX8.15/Ex8_15.sce | 0f34c33a85c8be85720fda3152f9da36934b2119 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 308 | sce | Ex8_15.sce | clc
//initialization of new variables
clear
w=2 //m
u=100 //km/h
r=1.2 //kg/m^3
mu=1.81*10^-5
//calculations
D=w
Re=r*u*D/(3.6*mu)
St=0.23 //based on Re
f=St*u/(3.6*D)
l=u/(3.6*f)
//results
printf('Oscillation frequency is %.2f Hz',f)
printf('\n The distance between two cycles is %.2f m',l)
|
fed64ada48583f0ddb7022dc1cb9703f3ff77b2c | df924acfdd5b043da9336a2276726dbfb655735a | /test_suite/incrrset.tst | 1d4df61c88875fc52f3f4ffacbeea24959feccbe | [] | no_license | noxdafox/clips | b8fb280223b5aae615e427bf1f31c03cb932b09d | a2c548b69394f0e2cf7c6d583810b6a29a662ae1 | refs/heads/master | 2023-09-01T18:52:07.614807 | 2021-12-14T20:10:21 | 2021-12-14T20:10:21 | 95,596,886 | 11 | 10 | null | null | null | null | UTF-8 | Scilab | false | false | 396 | tst | incrrset.tst | (set-strategy depth)
(unwatch all)
; incrrset.clp test
(clear)
(open "Results//incrrset.rsl" incrrset "w")
(load "compline.clp")
(load "incrrset.clp")
(progn (dribble-on "Actual//incrrset.out") (testit) (dribble-off))
(printout incrrset "incrrset.clp differences are as follows:" crlf)
(compare-files "Expected//incrrset... |
5190e3b65fc4e9d64287463fb0878c3002447149 | 8c802fb8c6a8dc8ed61222ce257eb61f580a462e | /projects/02/HalfAdder.tst | 4a84ea36f768ec3f84431105fb16756ee759cfa8 | [] | no_license | radavis/nand2tetris | 0703b55695378cd8ec279599a34114cbfba48ef7 | 021ba06dbbe203206b44360f162a0d64e2dc41f9 | refs/heads/master | 2021-01-01T20:05:37.036752 | 2015-05-16T19:13:31 | 2015-05-16T19:13:31 | 34,955,667 | 8 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 327 | tst | HalfAdder.tst | // File name: projects/02/HalfAdder.tst
load HalfAdder.hdl,
output-file HalfAdder.out,
compare-to HalfAdder.cmp,
output-list a%B3.1.3 b%B3.1.3 sum%B3.1.3 carry%B3.1.3;
set a 0,
set b 0,
eval,
output;
set a 0,
set b 1,
eval,
output;
set a 1,
set b 0,
eval,
output;
set a 1,
set b 1,
eval,
ou... |
4f526aa6b12ebb2d8ef128d0c84750ee9b4a4684 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH12/EX6.12.10/Ex6_12_10.sce | 814160cfec01c9ebdd1a71062dda2fce0647bd1d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 249 | sce | Ex6_12_10.sce | //Section-6,Example-2,Page no.-P.42
//To calculate the minimum partial pressure of methane to achieve the following condition.
clc;
n_M=(21*10^-3)/16
n_B=100/78
x_M=n_M/(n_M+n_B)
K_M=4.27*10^5
p_M=x_M*K_M
disp(p_M,'Required partial pressure(Torr)')
|
03b077cd9cc7bf43d26ca37637378df53272082b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1938/CH2/EX2.4/2_4.sce | 687a3f0a73567019c8a7b1f825e858c48960f483 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 708 | sce | 2_4.sce | clc,clear
printf('Example 2.4\n\n')
Pole=4
A=Pole //for lap winding
V=230,R_a=0.8 //Armature resistance
N_0=1000 //no load speed in rpm
Z=540 //number of armature conductors
phi=25*10^-3 //flux per pole in weber
E_b0 = phi*Pole*N_0*Z/(60*A) //induced emf
//part(i)
printf('(i)Induced e.m.f = %.0f V\n',E_b... |
d2dd16a64da2beefa14ee6b1868cfb771922957d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3673/CH5/EX5.a.13/Example_a_5_13.sce | 61349db583826afc2c10767663a260aadbe1f5de | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Example_a_5_13.sce | //Example_a_5_13 page no:214
clc;
Vm=15;
Im=8.5;
omega=200;
R=Vm/(Im*sqrt(2));
C=1/(omega*R);
disp(R,"the resistance in the circuit is (in ohm)");
disp(C,"the capacitance in the circuit is (in F)");
|
5efd6fb46d7fa8aeb7cfa2c504c03d77d479006f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH8/EX8.8/Ch08Ex8.sce | 5647bce35c370985a87faddcfdd8fdf15eb7e411 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 383 | sce | Ch08Ex8.sce | // Scilab Code Ex8.8: Page-432 (2011)
clc;clear;
v = 3700;....// Velocity of ultrasonic beam in copper, m/s
t = 1e-006;....// Delay time for ultrasonic beam, s
L = v*t; // // Length of a copper wire required for a delay, m
printf("\nThe length of a copper wire required for a delay = %6.4f m", L);
// Result
... |
18e18537c928bd37a9b63bcdc82bcc93f05076b5 | 3f5040355af2e6769099ed204385fd22c9e10cc2 | /classifieur_barycentre.sce | 774b320bf15ae93b541e248e5d730b257b74ef83 | [] | no_license | pinos19/Reconnaissance_objets | 78e586e55383eefabc379d7ded5114367c67880c | f697ad28852b56299f616cb5c0b72ab1479c7d01 | refs/heads/main | 2023-08-29T11:26:50.842616 | 2021-11-06T16:59:20 | 2021-11-06T16:59:20 | 425,299,101 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 720 | sce | classifieur_barycentre.sce |
function [classe]=classifieur_barycentre(attributs_normalises,img_gris,moyenne,ecart_type,num_classe)
C=zeros(1,4);
[aire,perimetre,longueur,largeur]=AttributsForme(img_gris);
res=[aire,perimetre,longueur,largeur];
for i=1:4
res(i)=(res(i)-moyenne(i))./ecart_type(i);
end
l=1;
f... |
acf0cf56103a81a46ddf0d7a20e250f3b4e462c5 | b4bbf9b2a475b5cf299b30bf5e0c621e32f6c832 | /test/speed6.tst | cf1463b5d7773b912e2003846c186222f2e584fd | [] | no_license | apetresc/castro | 1ec1ac1307542487aa1be14c335170f7a1347bf2 | 843165af7c946188a2dd772384cd2d579723c99d | refs/heads/master | 2022-02-20T14:28:41.962893 | 2019-10-07T08:41:59 | 2019-10-07T08:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 111 | tst | speed6.tst | time -g 0 -m 0 -i 50000
boardsize 6
genmove w
undo
genmove w
undo
genmove w
undo
genmove w
undo
genmove w
quit
|
2fa591d4a971c2fe0038b7e3d45b80aaacd1f3ad | 92c39b1bfa02d70fb861a7fa8c907a2a24613ebf | /Rmat.sci | 38e32b2e019b05c3f328a1bf10199da8df0644fa | [] | no_license | UTEC-mateIII/TAP-2 | 7e9d8aba21430ef00987dbf14418444f27cd20e7 | faeae752299402b9c7f43c37cf7d62b6a0daa42d | refs/heads/master | 2022-06-29T17:15:47.667656 | 2020-05-04T23:56:57 | 2020-05-04T23:56:57 | 260,448,794 | 0 | 2 | null | 2020-05-01T14:16:39 | 2020-05-01T12:00:47 | null | UTF-8 | Scilab | false | false | 651 | sci | Rmat.sci | // Alberto Oporto Ames 100%
// Una función para una función el ejercicio R
function [R] = Rmat(u, theta)
R = zeros(3,3)
ux=u(1)
uy=u(2)
uz=u(3)
R(1,1) = cosd(theta) + ux^2*(1-cosd(theta))
R(1,2) = ux*uy*(1-cosd(theta)) - uz*sind(theta)
R(1,3) = ux*uz*(1-cosd(theta)) + uy*sind(thet... |
61de0d575a5b35fb3d097c55b3d6035c5cb46ae2 | 7a5c946ff5a4aba4c781b98272702367d698fd73 | /TAREAS/Tarea 3_Matrices de rotacion/3_Ejercicio.sce | 25f67f00cdf3aa249a6cc6c46b95131be7d9becd | [] | no_license | ds365/Garcia.Barajas.Raul.Israel | 44465872133d2e76cf2e6afb36fa87bc964dc998 | b1732d12d1d3fb22481f1b94ae64b1098288efa1 | refs/heads/master | 2020-04-16T22:15:11.635819 | 2019-04-09T20:09:12 | 2019-04-09T20:09:12 | 165,959,498 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 912 | sce | 3_Ejercicio.sce | g1=15
g1 =
15.
g2=35
g2 =
35.
g3=45
g3 =
45.
r1=g1*%pi/180
r1 =
0.2617994
r2=g2*%pi/180
r2 =
0.6108652
r3=g3*%pi/180
r3 =
0.7853982
A=[cos(r1) -sin(r1) 0;sin(r1) cos(r1) 0;0 0 1]
A =
0.9659258 -0.258819 0.
0.258819 0.9659258 0.
0. ... |
a0eb9ec74290ad6f0ed7b131264c07a10e23de7f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1085/CH5/EX5.7/ex5_7.sce | 340e06077060afac7530658421eef6f8d1d68646 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 456 | sce | ex5_7.sce | //Exam:5.7
clc;
clear;
close;
E_f=3.75;//Fermi energy(in eV)
e=1.602*10^-19;
W_f=e*E_f;//fermi energy in joules
t=10^-14;//mean free time between the collisions(in second)
m=9.1*10^-31;//mass of electron
v_f=(2*W_f/m)^(1/2);//maximum velocity of an electron in a metal(in m/s)
mobility=e*t/m;//mobility of elec... |
979a8627cdd29d07b35df34c2304f1bb044ec552 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1382/CH2/EX2.39.a/EX_2_39_a.SCE | 9397e447940323af5ad3f0c3152277f8bfb80d54 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 629 | sce | EX_2_39_a.SCE | // Example 2.39.a: Stability factor
clc;
clear;
close;
R1=500;//Resistance in killo ohms
Rc=500;//Collector resistance in killo ohms
R2=5000;//Resistance in killo ohms
Vcc=20;// Colector voltage in volts
Beta=75;
Rc=6.2;// Collector resistance in killo ohms
Re=90;// Emitter resistance in ohms
Rb=690;// Base ... |
0c08dde7f4df3a68af0de447ec0a944dd7f1f411 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.3/Unix-Windows/scilab-2.3/macros/scicos/unhilite_obj.sci | 5284454be9483dfd65256d6d475d25b5108f5192 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 362 | sci | unhilite_obj.sci | function unhilite_obj(o)
//
if o(1)=='Block' then
graphics=o(2);
[orig,sz]=graphics(1:2)
thick=xget('thickness')
xset('thickness',6*thick);
xrect(orig(1),orig(2)+sz(2),sz(1),sz(2));
xset('thickness',thick);
elseif o(1)=='Link' then
xx=o(2)
yy=o(3)
thick=xget('thickness')
xset('thickness',6*thick)
... |
af041c56424560b2265d2cbc926caf02c0f846cd | 449d555969bfd7befe906877abab098c6e63a0e8 | /1238/CH1/EX1.22.a/22_a.sce | 0269902465948c4197f8b3dcdcfb5ae4faaefe77 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 22_a.sce | //subtraction using 2's complement//
//Example 22.a//
//subtraction using 2's complement//
clc
//clears the console//
clear
//clears all exisiting variables//
a=bin2dec('11011')
b=bin2dec('11001')
x=bitcmp(b,5)
//complement of the numbers//
z=1
u=x+z
//1 is added to the complements//
w=u+a
w=w-bin2dec... |
42a17e2d97d8d933303e1092666c2dc6d3e5b97b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1938/CH3/EX3.8/3_8.sce | 3b7f24cd0e2dfef5512f00f5bea32a091b80645d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 606 | sce | 3_8.sce | clc,clear
printf('Example 3.8\n\n')
V=500
Io=5 //no load current
R_a=0.5,R_sh=250//resistance of armature and field circuits
I=100 //current at unknown efficiency
P_in_NL=V*Io //no load input
I_sh=V/R_sh
Iao=Io-I_sh
arm_cu_loss_no_load=R_a*Iao^2 //No load armature copper loss
constant_losses= P_in_NL-... |
e3ab7b4062f565773c8956a9f50b39efae14cead | 449d555969bfd7befe906877abab098c6e63a0e8 | /74/CH9/EX9.6/example6_sce.sce | d66a161e513120e2ed4715e0376e9883bca7c18b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 358 | sce | example6_sce.sce | //chapter 9
//example9.6
//page 335
fc=1.5*10^3;
x=1.414;//damping factor
C1=2/x;
disp(C1)
C2=x/2;
disp(C2)
R1=1;R2=1;
Rf=2;
Wc=1;
Wc=2*3.14*fc;
disp(Wc)
R=R1/Wc;//to keep C1 nad C2 unchanged
disp(R)
Rf=2*R
R1=R*10^7;R2=R*10^7;//for maiking filter for practical use
disp(R1,R2)
C1=C1*10^-7;C2=C2*10^-7... |
4e64957b4efc32aff17a994a77030cb3fa97985d | 717ddeb7e700373742c617a95e25a2376565112c | /2606/CH3/EX3.7/ex3_7.sce | 6247cdb9ce33212908dff35955de1b146f6172ec | [] | 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 | 278 | sce | ex3_7.sce | //Page Number: 3.14
//Example 3.7
clc;
//Given
//(a)efficiency=((u^2)/(2+(u^2)))
u=0.5;
n=((u^2)/(2+(u^2)));
np=n*100;
disp("%", np, "Efficiney: ");
//(b)nmax,
//nmax occurs at u=1;
u1=1;
nmax=((u1^2)/(2+(u1^2)));
nmaxp=nmax*100;
disp("%", nmaxp, "Efficiney max: ");
// test
|
5ba5e231b67f146e2798a152850e2c0de1a4145b | 57a39df08383d18148a77915551223cef3bc8cd6 | /pn_seq_4bit.sce | c15823fa64716aebe1e76f0d06094a86fba0d573 | [] | no_license | sonusharma55/Misc.-MATLAB-Scilab | 0abbc7ab22e963b3b3e147a18e17af2f3021d3ce | dbfaab1b84719948ef665798c4192e6ca934e46a | refs/heads/master | 2020-07-25T22:00:11.975476 | 2019-09-14T12:31:37 | 2019-09-14T12:31:37 | 208,434,501 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 761 | sce | pn_seq_4bit.sce | clc;
clear all;
x=input('Enter the 4-Bit sequence: ');
d=length(x);
N=(2^d)-1;
disp('The Period of PN sequence is: ');
disp(N);
xoring=0;
disp(" x1 x2 x3 x4 xoring");
printf(' Initial %d %d %d %d %d \n ',x(1),x(2),x(3),x(4),xoring);
for i=1:N
printf('Shift %d \n',i);
xor... |
40957918894cd43e38877fdb815ecb9523d9d78f | 449d555969bfd7befe906877abab098c6e63a0e8 | /964/CH5/EX5.6/5_6.sce | 973aefe122ea15543675ca9f9783d7b0d3e4f323 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,763 | sce | 5_6.sce | clc;
clear;
function y=f(x)
y=x^10 - 1;
endfunction
x1=0;
x2=1.3;
xt=1;
//using bisection method
disp("BISECTION METHOD:")
xr=(x1+x2)/2;
et=abs(xr-xt)/xt*100;//error
disp(1,"Iteration:")
disp(x1,"xl:")
disp(x2,"xu:")
disp(xr,"xr:")
disp(et,"et(%):")
disp("----------------------------------------"... |
d419f8ef7832f10fb1dbc1295d50d136c076d77f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1938/CH1/EX1.17/1_17.sce | 1d6f8daed7b146da2a58a363d6b683cc10bedc28 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 516 | sce | 1_17.sce | clc,clear
printf('Example 1.17\n\n')
P=4 //number of poles
A=P // because of lap wound
N=750 //speed in rpm
Z=720 //number of armature conductors
phi=30*10^-3 //flux per pole in weber
R_sh=200,R_a=0.4,R_L=15, //resistance of shunt winding,armature,series field
E=phi*P*N*Z/(60*A) //generated emf
//solving ... |
77dd15cf882a3ef028aead101a1c3a75198b4e1a | f5bb8d58446077a551e4d9a6461a55255db523fe | /zero_de_funcoes/metodos/metodo_bissecao.sce | feb964fc670ba49b688659db8b7b6f37c6e1a39f | [] | no_license | appositum/numerical-calculus | 6be1a9990a1621c705af6ba5694cf8c7b891d06e | 7759e74ce9ce5c5826f96be7de84a2f7ecb97c91 | refs/heads/master | 2021-07-19T18:19:09.336819 | 2018-11-27T21:52:36 | 2018-11-27T21:52:36 | 143,060,426 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 730 | sce | metodo_bissecao.sce | // CALCULA UMA APROXIMACAO x(k), PARA UMA RAIZ DE f NO INTERVALO [a,b]
// f: função criada em outro arquivo
// [a,b]: intervalo no qual f(a)*f(b) < 0
// eps1: precisão utilizada no critério de parada
function bissecao(f,a,b,eps1)
if ((f(a).*f(b))>0.0) then
printf("\n \n")
printf("f( %g )*f( %g )>0 \n \n"... |
d968f2a7925dc6888d8284a2e7c89c719ef57b1b | 717ddeb7e700373742c617a95e25a2376565112c | /3460/CH6/EX6.5/ex6_5.sce | 00030ebd7894fde69d624cbe8049237d990d282e | [] | 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 | 215 | sce | ex6_5.sce | clc;
clear all;
d=2.588*1e-3;//diameter of wire
s=300*1e-3//spacing between wires
r=d/2;//radius of wire
Z0=276*log10(s/r);//characteristic impedence of line
disp(Z0,'characteristic impedence of line is');
|
43eb18dffd3be0b484bb4de7566238de161b4bbc | 449d555969bfd7befe906877abab098c6e63a0e8 | /104/CH2/EX2.7/2_7.sce | 1e9dc1a1b79e24869aceca9a8b5f21bc7043698f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 242 | sce | 2_7.sce | //inverse laplace transform
n=poly([4],'s','coeff')
d=poly([4 8 1],'s','coeff') //w=2,damping ratio=2
G=n/d;
disp(G,"G(s)=")
pf=pfss(G)
disp(pf,"G(s)=")
syms s t
g1=ilaplace(pf(1),s,t)
g2=ilaplace(pf(2),s,t)
disp(g1+g2,"g(t)=")
|
3aa1f1e9166d5147bc5c876d823dc6c948b311d0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3547/CH1/EX1.9/Ex1_9.sce | 313c522c2768710590835624e763253ed4eb5d5f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 626 | sce | Ex1_9.sce | //To find length of the medium
//Example no 1.9
//Page no. 30
clc;
clear all;
bandwidth=100*10^9; //Bandwidth of optical signal
w=2*%pi*bandwidth; //Bandwidth of optical signal in rad/s
T=3.14*10^(-12); //Delay between minimum... |
263168f2a8affda05f20d3b4966b267496d4fd94 | ea619b33cae5a486fb22da8bdcfe0bc7d81c3032 | /test/testcases/directed/rred4.tst | 1b84f45c5f4fa688d940bc3d1e0bbe8f8d351354 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alexvonduar/optimized-routines | 714ab0a7b8d7d28fc689b0bae1e7a885fd461a69 | f59c54e97e2023a5981679b14637d8ee2abe2d2d | refs/heads/master | 2020-03-08T14:07:45.302916 | 2018-11-27T09:34:42 | 2018-11-27T09:34:42 | 128,176,402 | 0 | 0 | Apache-2.0 | 2018-11-27T09:34:43 | 2018-04-05T08:05:10 | C | UTF-8 | Scilab | false | false | 41,503 | tst | rred4.tst | ; rred4.tst
;
; Copyright (c) 1999-2018, Arm Limited.
; SPDX-License-Identifier: MIT
func=rred op1=5ee8da6e.555f15d0 result=3ccad12f.2b4c25d3.eaa res2=00000001 errno=0
func=rred op1=5ef7833f.a59d0dfd result=3c919ca2.3f5c493c.c76 res2=00000003 errno=0
func=rred op1=5efb3542.79418f04 result=bca803d2.ba28019c.b3f res2=00... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.