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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28cc078f6b52f7eab2f01ecb4207f423966fd42b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3622/CH2/EX2.4/Ex2_4.sce | 16421021ac5dfbb8a988894c3f3b30c70c460f04 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 276 | sce | Ex2_4.sce | //Initialisation of variables
clc
m=9.1*10^(-28)//mass on electron
e=4.8*10^(-10)//charge on electron
ev=1.6e-12//electron volt in ergs
v=10^9//cms/sec
E=0.5*m*v^2//energy in ergs
Ev=E/ev
printf('energy is %e ergs \n',E)
printf('energy is %f electron volt \n',Ev)
|
33cd2d36b1360532806b09d4da2952d1aac446c2 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronics_Engineering_P._Raja_2150.zip/Electronics_Engineering_P._Raja_2150/CH4/EX4.30/ex4_30.sce | ecf191b8b1d08baa6af72176eeea497be3aaf765 | [] | 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 | 164 | sce | ex4_30.sce | errcatch(-1,"stop");mode(2);// Exa 4.30
;
;
// Given data
I_C = 10;// in mA
I_B = 0.1;// in mA
bita = I_C/I_B;
disp(bita,"The current gain is");
exit();
|
79f0a67bae6b8f7436dfee31eea3077cce3eb40c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3845/CH22/EX22.5/Ex22_5.sce | caaa31a20a79c8ac31def3ab7f1f9bf2716cb3b8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 387 | sce | Ex22_5.sce | //Example 22.5
N=100;//Number of turns
I=15;//Current (A)
A=(10*10^-2)^2;//Area of square loop of side 10cm (m^2)
B=2;//Magnetic field strength (T)
theta=90;//Angle for maximum torque (deg)
tau_max=N*I*A*B*sind(theta);//Maximum torque (N.m)
printf('Maximum torque = %0.1f N.m',tau_max)
//Openstax - College Physi... |
dbd5ab58b57e60e694667307170290354c403761 | 449d555969bfd7befe906877abab098c6e63a0e8 | /431/CH4/EX4.9/EX4_9.sce | a02ef58f99b4de0f513224a61602f930c07affd4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 497 | sce | EX4_9.sce | //Calculating the running speed and frequency of the rotor magnet current
//Chapter 4
//Example 4.9
//page 299
clear;
clc;
disp("Example 4.9")
fr=2;.............................//frequency of motor induced emf in hertz
f=50;.............................//frequency of induction motor in hertz
S=(fr/f)*100;....... |
3a22f06dd3a33b406df2a91e83cc295c7bd04d86 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2825/CH14/EX14.13/Ex14_13.sce | c1268a28ed649ec474451cfbcf76f42f5821949a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 699 | sce | Ex14_13.sce | //Ex14_13 Pg-700
clc
del=1/100 //fractional difference of refractive indices
lamda=1.3*10^(-6) //cutoff wavelength in m
n1=1.5 //refractive index
d=6.6*10^(-6) //diameter of the core
alpha=2 //loss in fiber
disp(" We have for a GRIN , maximum value of normalized frequency for single mode operation is give... |
b25bf5342868e1781051109d3eeb89d2904a85a7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2210/CH6/EX6.8/6_8.sce | 895faf58479bc04e8608fb2b9e09e9b7e87b6e85 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 576 | sce | 6_8.sce | //Chapter 6, Problem 8
clc
id=2e-3 //drain current in ampere
vds=12 //drain to source voltage
vcc=24 //supply voltage
idss=8e-3 //drain–source current when the gate and source are shorted
vp=-6 ... |
5c0ea856e2967df43eee023438afdd52bcebff30 | 2f5de61fd6e1d975a91ecce25e5689742371d670 | /sci2blif/additional_blocks.sce | ff9f2c3bfe960572c878414c9fde61cf29431cc9 | [] | no_license | Pygmalion6636/rasp30 | a4b7e851e98a0b57049fd7a4a79da8cffad300d2 | 1a3028b1d5b72d03789543226d0e57fc693dd110 | refs/heads/master | 2020-12-25T04:29:05.225302 | 2016-01-25T03:42:06 | 2016-01-25T03:42:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 341 | sce | additional_blocks.sce |
style.displayedLabel="ladder_filter"
pal5=xcosPalAddBlock(pal5,"ladder_filter",[],style);
style.displayedLabel="common_drain"
pal5=xcosPalAddBlock(pal5,"common_drain",[],style);
style.displayedLabel="mux4_1"
pal5=xcosPalAddBlock(pal5,"mux4_1",[],style);
style.displayedLabel="tgate_vec"
pal5=xcosPalAddBlock(pal5,"tg... |
b9bed8e6a31a68637d7e9d0e73226df625900c4e | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/diffuse_rel/diffuse/getconcsub.sce | 42452948dfde2851be6a728f6b8702a9689a4c6a | [] | 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,736 | sce | getconcsub.sce |
//Calculates 3x3x£ matrix of nearest neighbour elements for a value
function [getconcsub]=getconcsub(conc, i1,i2,i3, n1, n2, n3)
if n3<2
nsub3=1;
else
nsub3=3;
end;
testconcs... |
c9ce72ab18e7a0976be807d293f8b87d79452119 | 449d555969bfd7befe906877abab098c6e63a0e8 | /964/CH5/EX5.4/5_4.sce | c14c743b5413c01d0d8e1378a224fe960d159f12 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 5_4.sce | clc;
clear;
m=68.1;//kg
v=40;//m/s
t=10;//s
g=9.8;//m/s^2
function y=f(c)
y=g*m*(1-exp(-c*t/m))/c - v;
endfunction
x1=12;
x2=16;
xt=14.7802;//true value
e=input("enter the tolerable approximate error=")
xr=(x1+x2)/2;
i=1;
et=abs(xr-xt)/xt*100;//error
disp(i,"Iteration:")
disp(x1,"xl:")
disp(x2,"xu... |
e950d10bf1b58e7ba24d5df9d17e2223c14f746d | 4031b0f3a367a2c8758934383ab7b8aa98fc2585 | /zadaniakolos.sce | 0e4b201dfa254b881cbf096769847d5d97099f61 | [] | no_license | Qubs946/PU_162693_KOLOKWIUM | 63de9ee0ccc7a14b26fe06b68bad39fc1301c38b | 5b004b66979a8cf8d1ea050182218e7ff772c3e2 | refs/heads/main | 2023-02-18T07:30:43.757306 | 2021-01-18T15:18:52 | 2021-01-18T15:18:52 | 330,656,266 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 554 | sce | zadaniakolos.sce | //zad 1.a
asin(-0.45)
//zad 1.b
x=[7 -2 3;1 2 4;-2 5 8;6 -1 0]
rank(x)
//zad 1.c
v=20
r=20
a=v^2/r
//zad 1.d
n=1:40
a=(n-3).*(k^3)^(-1)
sum(a)
//zad 2
clear
clc
clf
x=[1:0.01:5];
y=log(2*x)
z=2*x^2-3*x+(1/x)
plot(x,y,'r','LineWidth',2)
plot(x,y,'g','LineWidth',2)
xgrid
xlable('Argument Funckji')
... |
a779537fbec3019eeb8206665bd03e8febf6d09f | 449d555969bfd7befe906877abab098c6e63a0e8 | /147/CH7/EX7.15/Example7_15.sce | 6dd1f4909259e3cf69db03a21c02e868913932da | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 355 | sce | Example7_15.sce | close();
clear;
clc;
//Maximum voltage of 'Vsm', angular frequency 'w' of vs, ratio of ripple voltage and average output voltage 'Fs'
Rl = 1000; //ohm
Vsm = 90; //V
w = 2000; //rad/s
Fs = 0.05;
f = w/(2*%pi);
C = 1/(f*Rl*Fs); //F
//average value of vl 'Vlavg'
Vlavg = Vsm*(1 -1/(2*f*Rl*C)); //V
mprintf("Ave... |
5df7a3dda29dfb410096467c25a7f9d7097a38fb | fd6e45f66c41ad779a3d47c3bf8ebfa140d3d657 | /P4 - Linear equations systems: direct methods/Implementaciones/1- Gauss_sin_pivoteo.sci | 553666872dee627825c26513631ed508fa56a687 | [] | 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 | 709 | sci | 1- Gauss_sin_pivoteo.sci | function x = resoltrsup(A, b)
n = size(A,1)
x(n)= b(n)/A(n,n)
for i=n-1:-1:1
x(i) = (b(i)-A(i, i+1:n)*x(i+1:n))/A(i, i)
end
endfunction
function [T, c] = gauss(A, b) //SIN PIVOTEO
n = size(A,1)
for k = 1:n-1 // para cada pivote
for j = k+1:n // para cada elemento debajo del pivote
... |
8688f46146dc8cad47ff09df9dfd00d685e978a2 | 181f67b4868e49ca80872d6ac088a51540f90da6 | /186A3/centeredSquare.sce | 1789dc999aa8296d564027bee37f5c8ce6de08c3 | [] | no_license | nobody51/AP186 | 567f25ba1ad7f71ad2983860078eeaccffa46080 | cb916fc9b38b508026403a2227ffc76d490fe948 | refs/heads/master | 2021-08-28T09:35:55.488122 | 2017-12-11T21:34:46 | 2017-12-11T21:34:46 | 104,969,401 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 392 | sce | centeredSquare.sce | nx = 50;
ny = 50;
x = linspace(-1,1,nx);
y = linspace(-1,1,ny);
[X,Y] = ndgrid(x,y);
A = zeros (nx,ny);
A (find(abs(X)<0.7 & abs(Y)<0.7) ) = 1;
//E = edge(A,'canny')
//imshow(E);
A = double(A);
fftA = fft2(A);
fftA = uint8(imnorm(fftshift(abs(fftA)))*255);
f=scf();
imshow(fftA);
//f = scf();
//grayplot(x,y,A);
//f.co... |
91b9eb38a920be1c4f2b2741f776be82112bea20 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2699/CH3/EX3.21/Ex3_21.sce | b2ae8de0ba8500f618683b44a4e1bf10fbfb10bc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex3_21.sce | //EX3_21 PG-3.58
clc
Idc=100e-3;//average current
C=500e-6;//filter capacitor
Esm=18;//peak voltage
f=50;//frequency of the supply in Hz
Edc=Esm-Idc/(4*f*C);
Rl=Edc/Idc;//load resistance
Rf=(4*sqrt(3)*f*C*Rl)^(-1)*100;//ripple factor
printf("\n ripple factor is %.2f %% \n",Rf)
|
d629a8111ec678703d2667245cd1032d9353f2ea | 449d555969bfd7befe906877abab098c6e63a0e8 | /2666/CH16/EX16.3/Ex16_3.sce | f02f7b8cdd58253130da2f06dfcdfd8d177d27cc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex16_3.sce |
clc
//initialisation of variables
v=400//Btu per lb
t=1698//R
c=0.1715//ft
p=0.24//ft
v1=15//ft
v2=1.414//V
p1=560//R
q=800//ft
h=401600//ft-lb per lb
s=13.63//ft
//CALCULATIONS
T=(v/(1*c))//R
T1=t+T//R
T2=v/(1*p)//R
T3=T1+T2//R
V=v1/v2//ft
T4=T3/(V)^0.4//R
Q=1*c*(T4-p1)//Btu per lb
Q1=q-Q//Btu per... |
4475e02e589e83cc064d0b5f0f95bd012128f401 | 9d2c9394c6b6997318b9d04556462c9bba639045 | /Replication 2/Dave_RIFData/Dave_RIFData/Sub12/VP12_OneBack.sce | 1abf543a0e3f9ae567d1cbd6f4b320145629d0c1 | [] | no_license | rettopnivek/Wimber_et_al_replication_3 | 673b156d8d18d58b92b2f05fedef87976e787089 | 8dbc22329093a61b1e5cb8aac3feca45a5c82d06 | refs/heads/master | 2020-12-31T04:42:39.856717 | 2018-02-01T15:49:15 | 2018-02-01T15:49:15 | 58,006,910 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,886 | sce | VP12_OneBack.sce | array <int> finalSeq[432] = {41,36,11,24,55,2,66,25,2,7,47,72,48,2,54,14,35,61,26,28,67,36,66,66,7,48,10,10,17,17,32,52,52,40,52,52,34,50,50,60,65,42,53,59,13,64,25,4,51,51,42,29,29,38,30,30,27,27,38,28,69,60,5,47,15,7,27,10,63,58,68,68,63,63,53,48,28,31,70,6,1,15,33,54,13,61,61,17,24,18,57,8,12,43,23,10,1,70,70,16,21,... |
b394573fe4df6ebb8f7b460492cad48dd4f8da3f | 3aecc0a856e5ab896077f26d338574613e42a223 | /src/06.CongruentialGenerator.sci | ff33d705d6bb57ed0d55d22f6f7d10ef64b24976 | [] | no_license | wmotti/simulation | 9ebed2818f83a1ba864399ee3dc664e5303e3983 | ec4cce2ce180f947edf0ed9f501799d06b8a0416 | refs/heads/master | 2020-03-28T08:10:23.668854 | 2018-09-08T16:14:42 | 2018-09-08T16:14:42 | 147,949,219 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 888 | sci | 06.CongruentialGenerator.sci | global storedRandom
global ret
global aCongr
global cCongr
global mCongr
function setCongruentialGenerator(a,c,m)
global aCongr
global cCongr
global mCongr
aCongr=a;
cCongr=c;
mCongr=m;
endfunction
function setCongruentialSeed(s)
global storedRandom
storedRandom=s;
endfunction
function [ret]=nextRand... |
e80162814a198c3c63861be389a49c0510964c51 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3638/CH17/EX17.7/Ex17_7.sce | 7ce8f957432c3afccd17377ef8b7068a253f31af | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,128 | sce | Ex17_7.sce | //Introduction to Fiber Optics by A. Ghatak and K. Thyagarajan, Cambridge, New Delhi, 1999
//Example 17.7
//OS=Windows XP sp3
//Scilab version 5.5.2
clc;
clear;
//given
//Since the peak reflectivity of fiber is 0.93%,
R=0.93;//Reflection coefficient of fiber
L=4.8e-3;//Length of fiber in m
lambdaB=1532.1e-9;/... |
2a73af3c4ab0247a1cc18859946851c5b6cd4c29 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2375/CH3/EX3.12/ex3_12.sce | 136ccab7537bb7c18cfa7ca94b46459570329820 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 621 | sce | ex3_12.sce | // Exa 3.12
clc;
clear;
close;
format('v',6)
// Given data
V_CC = 20;// in V
bita = 50;
R_C = 2;// in k ohm
R_E = 0.1;// in k ohm
R1 = 100;// in k ohm
R2 = 5;// in k ohm
R_Th = (R1*R2)/(R1+R2);// in k ohm
R_B = R_Th;// in k ohm
V_BE = 0.7;// in V
V_Th = (V_CC*R2)/(R1+R2);// in V
// Applying KVL to the b... |
01c4cd1d57a339dcb7c5f64e8a7ac9838d3a8e63 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1964/CH1/EX1.52/ex1_52.sce | cbc2754b538cfddfdaf0e023746c4b01fe0db657 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,366 | sce | ex1_52.sce | //Chapter-1, Example 1.52, Page 57
//=============================================================================
clc;
clear;
//INPUT DATA
V1=10;//source1 voltage in volts
V2=5;//source2 voltage in volts
V3=5;//source3 voltage in volts
RAH=2;//Resistance in ohms
RAB=3;//resistance in ohms
RBE=5;//resistance ... |
82dee6f1600518da6cf0f78d11f547e1dcd7c96c | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4.1/demos/intro/extf.sce | db982e0b3ec11e0ba6768007f20e57f680918f61 | [
"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 | 744 | sce | extf.sce | // CALLING EXTERNAL ROUTINE
foo=[' subroutine foo(a,b,c)';
' double precision a,b,c';
' c=a+b ';
' return'; ' end'];
if getenv('WIN32','NO')=='OK' & getenv('COMPILER','NO')=='VC++' then
unix_s('del foo.f')
write('foo.f',foo);
WSCI=getenv('WSCI');
cmd='nmake /f ""... |
ccd63cc2ce6e8faaf18a37b1961dc340cc98b43a | 449d555969bfd7befe906877abab098c6e63a0e8 | /557/CH25/EX25.1/1.sce | ad82cb084b752f8c6f1a4399adcb5377e18dcc6d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,106 | sce | 1.sce | clc; funcprot(0);
//-----------------------Important Note-------------------------------//
// Please keep intersectFunc.sci in the same folder in which this file//
// is kept and change the current working directory to the directory //
// in which both the files are kept using chdir "absolute path" //
//-... |
8c57c9566633ffdabc55767f123d59d2c0f331f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /61/CH9/EX9.1/ex9_1.sce | d8c9df192fe763e33b71e03559520f3287a33545 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,188 | sce | ex9_1.sce | //ex9.1
V_CC=15;
R_C=1*10^3;
R_1=20*10^3;
R_2=5.1*10^3;
R_3=5.1*10^3;
R_4=15*10^3;
R_E_1=47;
R_E_2=330;
R_E_3=16;
R_L=16; //SPEAKER IS THE LOAD;
B_ac_Q1=200;
B_ac_Q2=B_ac_Q1;
B_ac_Q3=50;
//R_c1=R_C||[R_3||R_4||B_acQ2*B_ac_Q3*(R_E_3||R_L)] is ac collector resistance
R=(R_E_3*R_L)/(R_E_3+R_L);
R=B_ac_Q... |
834139578b11c2ad9ccbc98b4b30cacb87708e10 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3507/CH23/EX23.5/Ex23_5.sce | e3b2db2762bcef075b7310a8fa3bdcdcc5fd4ae9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex23_5.sce | //chapter23
//example23.5
//page515
Vm=400 // V
v=150 // V
R_L=200 // ohm
// since v=Vm*sin(theta), we get
theta=asin(v/Vm)*180/%pi // in terms of degrees
V_av=Vm*(1+cos(theta*%pi/180))/(2*%pi)
I_av=V_av/R_L
P=V_av*I_av
printf("firing angle = %.2f degrees \n",theta)
printf("average output voltage ... |
b1081654bec1e3797910d38f0080918196229d1f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1301/CH3/EX3.10/ex3_10.sce | cad2a45de387f505b8d9b829b67232c19967e3a6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 293 | sce | ex3_10.sce | clc;
m=1500; //mass in kg
F=3000; //force in Newton
t=5; //time in sec
a=F/m; //calculating acc. (Newton's Law)
disp(a,"Accelaration in m/sec square = "); //displaying result
v=a*t; //kinematical equation
disp(v,"Velocity in m/sec = "); //displaying result |
dd9425473153b7dc89e701781e8d5cc8e0ab353e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3814/CH8/EX8.4/Ex8_4.sce | 3290b62fe22a69cf5b8c78c33c5cdb90a191e5c3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 951 | sce | Ex8_4.sce | // determine flow rate,theoretical head required power,pressure across the impeller
clc
b1=44
r1=21e-3 // mm
B=11e-3 // mm
r2=66e-3 //mm
b2=5e-3//mm
N=2500 //rpm
h1=0
g=9.8
alpha=90 // degree
D1=2
D2=2
u1=(2*%pi*N*r1)/60
gamm1=9800
p1=1000
mprintf('\n peripherial velocity at inlet u1=wR1 =%f m/s',u1)
... |
3644222dcf330bdae4eb3b98e5c8defe64598082 | fa328598047d2361d64c8f8e0360039a1c2c26a2 | /test_suite_2/test_cases/test_suite_1/case_3.tst | 4326c1eb9c1d64a4092a15d25b64b5e3601fc82c | [] | no_license | TheSoftwareEngineeringAdventureLine/ProgramTesterStage3 | 0a623d8114db142a9f7f92c99e698e66c969bf2a | e864b3f1c29a312c224611d9827ca16ed0393578 | refs/heads/master | 2021-01-21T18:57:52.815967 | 2014-05-01T23:40:24 | 2014-05-01T23:40:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 7 | tst | case_3.tst | 10
/
6
|
dc964eb72213307377fb2858b87b873b760c83b0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /635/CH13/EX13.10/Ch13Ex10.sci | 9b7862aa6eee5d300d03e553045b81476621ce77 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 631 | sci | Ch13Ex10.sci | // Scilab Code Ex13.10 Forward current of a p-n diode in terms of reverse saturation current using diode equation: Page-450 (2010)
e = 1.6e-019; // Charge on an electron, coulomb
k = 1.38e-023; // Boltzmann constant, J/mol/K
V = 0.35; // Potential difference applied across a Ge diode, volt
T = 300; // R... |
4a40a680f7e4f8fc0826116e57efe0410bcb769f | 35071fb08cee13f4a9e79c396f7c8c028f69db0e | /Tests/Syntaxe/KO/WHILE_COMMA_KO.tst | 453731c95c2142d084040773361ed6dfa33c180d | [] | no_license | V1nc3ntL/Compilation | 2cd9d4fa728055cebd44659cba517e49298142bc | e2008449ddb509021f6ddcfd0a92226807bec9ab | refs/heads/master | 2023-06-01T09:42:01.069684 | 2021-06-02T19:15:13 | 2021-06-02T19:15:13 | 357,205,127 | 0 | 0 | null | 2021-05-31T12:13:32 | 2021-04-12T13:30:46 | C | UTF-8 | Scilab | false | false | 71 | tst | WHILE_COMMA_KO.tst | void main()
{
int i = 1;
while(i > 1)
{
print("ERROR_WHILE"),
}
} |
2670735c1dc6c57c4298ef84ca8eceda955a865e | 449d555969bfd7befe906877abab098c6e63a0e8 | /213/CH11/EX11.9/11_9.sce | 7fe763423b0e7797c5be76e1f0e2d8038f39783d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 856 | sce | 11_9.sce | //To find width of the belt
clc
//Given:
t=9.75/1000, d1=300/1000, x=3 //m
P=15*1000 //W
N1=900, N2=300 //rpm
rho=1000 //kg/m^3
sigma=2.5*10^6 //N/m^2
mu=0.3
//Solution:
//Calculating the diameter of the driven pulley
d2=d1*(N1/N2) //m
//Calculating the velocity of the belt
v=%pi*d1*N1/60 //m/s
//Calculat... |
07561e39156e435b350f81580462b7b8d96b5018 | 0896434fe17d3300e03ad0250029673ebf70bacc | /sheet_8/Scilab_codes/q3_d.sce | a755195d5ae63f30d383593711318d92c74a41a5 | [] | no_license | TheShiningVampire/EE324_Controls_Lab | 8ff1720b852bf24dca3c172082f5f898f80f69f3 | 9aea73eed3f5a4ac6c19a799f8aebe09f4af0be8 | refs/heads/main | 2023-07-09T17:30:38.041544 | 2021-08-23T12:14:29 | 2021-08-23T12:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 148 | sce | q3_d.sce | clear
close
clc
s = poly(0,'s');
G = (s+50)*(s+60)*(s+70)*(s+80)/((s+6)*((s+5)^2+4)*((s+5)^2+1));
Glin = syslin('c',G);
clf();
evans(Glin,1000);
|
d97ebda22779ea805b2cd263443a007c79d7d3ba | 449d555969bfd7befe906877abab098c6e63a0e8 | /52/CH6/EX6.20/Example6_20.sce | a981d8666f54568c9e8530370c744bde5ded9b61 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 650 | sce | Example6_20.sce | //Example 6.20
//Program to Plot Magnitude Responce of given L.P.F. with specifications:
//N=13,w=pi/6
//Using Hamming Window
clear;
clc ;
close ;
N=13;
alpha=6;
U=1;
h_hamm=window('hm',N);
for n=0+U:1:12+U
if n==7
hd(n)=0.167;
else
hd(n)=(sin(%pi*(n-U-alpha)/6))/(%pi*(n-U-alpha));
end
h(n)=hd(... |
50a42b783d3bee3bf228b8c0282e256eb5b522fd | 449d555969bfd7befe906877abab098c6e63a0e8 | /296/CH4/EX4.2/eg4_2.sce | b38f9f8cfaa09568b6bc26da901003db5f3f7a37 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 377 | sce | eg4_2.sce | p0 = 10^15;
ni = 10^6;
n0 = ni^2/p0;
disp(n0,"Minority electron concentration (in per cubic centimeter)=" )
dn = 10^14;
dp = 10^14;
tn = 10; //in nanoseconds
tp = tn;
t = 0:10:50;
del_n = dn*exp(-t/tn);
del_p = dp*exp(-t/tp);
p = p0 + del_p;
n = del_n; //since n0 is negligible
subplot(121);
plot(t,log(p))... |
55cae67fdc67ebae7be3808e2d5ab43433ec1880 | 449d555969bfd7befe906877abab098c6e63a0e8 | /770/CH7/EX7.29/7_29.sce | 061d88c1b0f672c1020600741e85e32338d0fe91 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 7_29.sce | clear;
clc;
//Example - 7.29
//Page number - 263
printf("Example - 7.29 and Page number - 263\n\n");
//This problem involves proving a relation in which no numerical components are involved.
//For prove refer to this example 7.29 on page number 263 of the book.
printf(" This problem involves proving a relati... |
b9da3d82acd1d78aaa41e4a8584723d0578f86ef | 4058f38b392324aa5099819881f3c7d7219a174f | /Flip flops/JK Flipflop/JK FF Level triggered/JK_FF/JK FF.sce | 4c4f2befc25e06f85030d89f47dfa1427d7d2621 | [] | no_license | anupma-s/Scilab-Xcos-Arduino-Digital-Circuits | 612a033422bf14e2e58bcdce371f15cafb30224f | 2b4bf8e8f155d20a5eda2feb31c5523a51569d73 | refs/heads/master | 2021-01-20T17:20:13.073180 | 2016-07-04T15:25:07 | 2016-07-04T15:25:07 | 62,569,455 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,983 | sce | JK FF.sce | ok=open_serial(1,2,115200);
if ok~=0 then error('Unable to open serial port, please check'); end
J=0;
K=0;
//assuming initially, Q=0 & Qbar=1
Q=0;
Qbar=1;
temp=0;
pre=0;
clr=0;
JPin=5;//input J is given to pin 5
KPin=6;// input K is given to pin 6
QPin=9;//output Q is seen at pin 9
QbarPin=10;/... |
24c5328dfeacf968dbc15920ba7ccb35c58146dc | ff564ea78a2c79675c15643431b097b269dbc056 | /lab1.sce | c12fe6019c4e8f032fe227876ad5240300f0f037 | [] | no_license | Ahmetov/scilab-labs | e57b4ba3e56a33861cd8ae2aae78d4c9fe3282b7 | 3f95354b41dae975eaccc5de830107feae5df79a | refs/heads/master | 2020-09-08T17:32:05.535199 | 2019-11-26T12:01:32 | 2019-11-26T12:01:32 | 221,196,856 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,251 | sce | lab1.sce | //var 6
i = 0;
k = 4;
fd = mopen('D:\mis_labs\a.txt', 'wt');
result = [0. 0. 0. 0];
result2 = [0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0];
count = 1;
while i < 400
message = " тип";
tmp = rand();
tmp2 = rand();
if tmp < 0.28 then
message = "1" + message;
//..................... |
2988ddfb3da100fafc876589a2bbe20aab832bb6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1484/CH10/EX10.2/10_2.sce | b914462983ca7fd4682bbef734417696484bf4bb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 300 | sce | 10_2.sce | clc
//initialisation of variables
s= 13.6
h= 12 //in
u= 0.04
k= 1
d= 6 //in
g= 32.2 //ft/sec^2
w= 62.4 //lbs/ft^3
//CALCULATIONS
h1= h*(s-1)/12
hf= u*h1
hn= h1-hf
Q= k*(%pi*(d/12)^2)*sqrt(2*g)*sqrt(hn)*w*60/(10*4*sqrt(15))
//RESULTS
printf ('discharge through flow= %.f ft G.P.M',Q)
|
8bd4702cd822ac34dd66ced4093482f94f31d4d9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2015/CH7/EX7.7/7_7.sce | acc98a83803008993e33f2a63c48b6c70c625352 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 568 | sce | 7_7.sce | clc
//initialisation of variables
ps1=0.006566 //bar pressure
phi1=0.6 //relative humidity
td2=21 //temp in degrees
td1=1 //temp in degrees
ps2=0.02486 //pressure in bar
td3=26 //temp in degrees
p=1.013 //pressure in bar
//CALCULATIONS
pv1=(phi1*ps1)
w=0.622*(pv1/(p-pv1))
q=(td2-td1)*(1.005+(1.86*w))
phi2=... |
12cb7fa2b81a2108a94b6484a49bc6b5caee8739 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3876/CH13/EX13.9/Ex13_9.sce | 1e78d944e06a966c41cff68fcb5249e91c6ff171 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 241 | sce | Ex13_9.sce | //Chapter 13 Thermodynamics Entropy and Free Energy
clc;
clear;
//Initialisation of Variables
F= -51180 //cal
T= 25 //C
R= 1.99 //cal/mole K
//CALCULATIONS
K= 10**(-F/(R*(273+T)*2.303))
//RESULTS
mprintf("Equilibrium constant = %.2e",K)
|
59e2c262185fcc03660dde9f6496bf61fae3d070 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3269/CH2/EX2.10/Ex2_10.sce | f422dd7107a0938cff0d6853db3396a1ae9a62d8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,166 | sce | Ex2_10.sce | // Example 2.10
clear all;
clc;
// Using standard data table of mass and the coefficients of mass equation for Silver-107
N = 60; // Number of neutrons
Z = 47; // Atomic number
A = 107; // Atomic mas... |
e5ee4ed1bd5f02fb21f3409e813da9ba94bad353 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3131/CH19/EX19.8/Ex19_8.sce | cce238320d920407aacf6debdbbf6390be586387 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 410 | sce | Ex19_8.sce | clear all; clc;
disp("Ex 19_8")
//Referring figure 19-12b and 19-12c
//Using the principle of Conservation of Angular Momenutum and since (v_G)2=0.5*w_2
//Equation 1 becomes : 5.0=0.5*(v_B)2+1.67*w_2
//Using the coefficient of restitution theory, we have 4.0=0.5*w_2-(v_B)2
//Solving the above two equatons,
disp("(v_B)2... |
3b03502de80b5405d2e58d8931e748df00beab53 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.3/Unix-Windows/scilab-2.3/macros/elem/logm.sci | 4dba81f892ad5ff71829b2cca81c5b645142518e | [
"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 | 979 | sci | logm.sci | function x=logm(a)
// logm - log(A)
//%CALLING SEQUENCE
// X=logm(A)
//%PARAMETERS
// A : square hermitian or diagonalizable matrix
// X : square matrix
//%DESCRIPTION
//computes X=logm(A), matrix log of A
//!
[m,n]=size(a)
if m<>n then error(20,1),end
flag=or(a<>a')
if ~flag then
//Hermitian matrix
r=an... |
b7f4cdabf1e5ec1c5c501a8238cc0bb01cc730ef | 449d555969bfd7befe906877abab098c6e63a0e8 | /1868/CH15/EX15.5/Ch15Ex5.sce | 4044c66e596a843ea1994f599e53d23cf7c37433 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 539 | sce | Ch15Ex5.sce | // Scilab code Ex15.5: Pg 570 (2005)
clc; clear;
m_pi = 135; // Mass of pion, MeV/c^2
m_p = 938.3; // Mass op proton, MeV/c^2
// For simplification, let velocity of light be unity
c = 1; // Velocity of light, m/s
// Simplifying K_th = (m_3 + m_4 + m_5 + ....)^2*c^2 - (m_1 + m_2)^2*c^2, we get
K_th... |
4570383a8ba23f92f8ad797f172c2832f6b541bc | 449d555969bfd7befe906877abab098c6e63a0e8 | /635/CH1/EX1.18/Ch01Ex18.sci | 191fb004e262fe31ddc1c24caf05700209c06861 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sci | Ch01Ex18.sci | // Scilab Code Ex 1.18 Angle between two directions of cubic crystal: Page-23(2010)
h1 = 1; k1 = 1; l1 = 1 // Miller indices for first set of planes
h2 = -1; k2 = -1; l2 = 1; // Miller indices for second set of planes
// We know that
// cos(theta) = (h1*h2+k1*k2+l1*l2)/(sqrt(h1^2+k1^2+l1^2)*sqrt(h2^2+k2^2+l2^2))... |
d21c9054be55ad08a34aee242d8642a1590f626d | 449d555969bfd7befe906877abab098c6e63a0e8 | /800/DEPENDENCIES/8__11.sci | 4eed40f53f3161e7674998021ec04141ea87bd0c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 22 | sci | 8__11.sci | V0=0;
Cto=0.1;
To=423; |
c56d6e847288259ba7b87dc316c186795a90c50b | 449d555969bfd7befe906877abab098c6e63a0e8 | /40/CH8/EX8.15b/Exa_8_15b.sce | b72139b8c38826b8000e28f120552858f9ca9684 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 254 | sce | Exa_8_15b.sce | //(b)overlap-save method
xn=[1 2 3 3 4 5];
hn=[1 1 1];
xon=[0 0 1 2 3];
x1n=[2 3 3 4 5];
x2n=[4 5 0 0 0];
yon=convol(xon,hn);
y1n=convol(x1n,hn);
y2n=convol(x2n,hn);
yno=yon(3:5);
yn1=y1n(3:5);
yn2=y2n(3:5);
yn=[yno yn1 yn2]
YN=convol(xn,hn) |
12373d4547dcbccab572a2903fd67964bce51ad9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /788/CH13/EX13.6.a/13_6_data.sci | 7bb213cbdeafadf741572bb079fdc2cfd74bfde8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sci | 13_6_data.sci | // Aim:To find how many cfm of free air compressor must be provided
// Given:
// flow-rate of air from receiver:
Q2=30; //cfm
// temperature of air from receiver:
T2=90; //deg F
// pressure of air coming from receiver:
p2=125; //psig
// atmospheric temperature:
T1=70; //deg F
// atmospheric pressure:
p1=14.7; //psig |
e04e1f9eda32cecea3df2fa01f2eaf5187f0f951 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1592/CH10/EX10.1/example_10_1.sce | 6499a4867f389ee1257034bcbff5edc67d1a36d6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 388 | sce | example_10_1.sce | //Scilab Code for Example 10.1 of Signals and systems by
//P.Ramakrishna Rao
//Cross Correlation
clear;
clc;
x=[2,-1,1,0,2];
y=[0,1,0,-1,2];
//computation of cross correlation sequence;
n1 = max(size(y))-1;
n2 = max(size(x))-1;
r = xcorr(x,y,n1);
n=-4:4;
a=gca();
a.x_location="origin";
a.y_location="origi... |
888af9018adf5ced5edea019dd575580519cdbf6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /770/CH15/EX15.17/15_17.sce | b8af144d2b9877bb9bd6f7ed18eca6bb6b8204b2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,485 | sce | 15_17.sce | clear;
clc;
//Example - 15.17
//Page number - 536
printf("Example - 15.17 and Page number - 536\n\n");
//Given
T = 25;//[C] - Temperature
P = [118.05,124.95,137.90,145.00,172.90,207.70,227.70,237.85,253.90,259.40,261.10,262.00,258.70,252.00,243.80];//[mm Hg]
x_1 = [0.0115,0.0160,0.0250,0.0300,0.0575,0.1125,... |
a16c38cd4b8388e3937940ca0ec808eb0624b94d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3472/CH10/EX10.5/Example10_5.sce | 15a00fd8fcff631126d2b7575757e5071e2f4d73 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,839 | sce | Example10_5.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 3: STEADY STATE CHARACTERISTICS AND PERFORMANCE OF TRANSMISSION LINES
// EXAMPLE : 3.5 :
// Page number 130
clear ; clc ... |
261c9c8c9b03b9922f17f05043708a5431c894b4 | 97d0ebaba383d7e3567a16fb9cacc2be45015825 | /libotte/iwo.sce | 1d2197ee3a782e954d3022a45d0fab20027afe7e | [] | no_license | gustavolibotte/inteligencia_computacional | 8d5d91b5f7aa92cdb1b5840f61c7cba0b6562d13 | 2341755eff3eda222ee067d0443d5c2e2d00557c | refs/heads/master | 2021-03-22T01:10:14.260301 | 2015-07-20T21:05:16 | 2015-07-20T21:05:16 | 35,251,933 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,241 | sce | iwo.sce | clear
clc
// f(3.0, 2.0) = 0.0
// f(-2.805118, 3.131312) = 0.0
// f(-3.779310, -3.283186) = 0.0
// f(3.584428, -1.848126) = 0.0
function y = f(x)
y = (x(1).^2 + x(2) - 11).^2 + (x(1) + x(2).^2 - 7).^2;
endfunction
function pop = initPop(N_0, dim, Lb, Ub)
Lb_array = Lb .* ones(1, dim);
Ub_array = Ub .* one... |
761851081414d48ddf61c180635042cb7611a450 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3886/CH12/EX12.15/12_15.sce | 96c055e8a82f68ebf7593e1d937d4937dd027fbb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 438 | sce | 12_15.sce | //particle in motion
//v=t^3-t^2-2*t+2
//a=3*t^2-2*t-2
//acceleration after 4 seconds
a=3*4^2-2*4-2 //m/sec^2
//s=(t^4)/4-(t^3)/3-(t^2)+2*t+C
//c is constant of acceleration
//applying given condition
C=4/3
s=(4^4)/4-(4^3)/3-(4^2)+2*4+(4/3) //m
//using maxima and minima principle
//minimum value of acceler... |
d96adce8a5370aff190989b1c8e5647910b76734 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3751/CH11/EX11.21/Ex11_21.sce | 4421e101918e5f15660efc00f29654b3ed4051d0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,311 | sce | Ex11_21.sce | //Fluid Systems - By - Shiv Kumar
//Chapter 11- Centrifugal Pumps
//Example 11.21
//To Find the Manometric Efficiency
clc
clear
//Given Data:-
n=4; //Number of Pumps
N=400; //Speed, rpm
H_Tm=40; //Total Manometric Head, m
Q=0.2; //Dis... |
6e3313f07fd867e788f04a636d503f6b9558b0c3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /779/CH15/EX15.4/15_4.sce | 987c14ac64541a20c0e1754898ba814197fb58aa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 306 | sce | 15_4.sce | h1 = 82; h2 = 52; h3 = 47; h4 = 40;
W1 = 0.020; W2 = 0.0115; W3 = W2;
v1 = 0.887;
v = 3.33; // amount of free sir circulated
G = v/v1;
CC = (G*(h1-h3)*3600)/14000; // in tonns
R = G*(W1-W3);
disp("tonnes",CC,"Capacity of the cooling coil in tonnes")
disp("kg/s",R,"Rate of water vapour removed is") |
16db8e97a1ac53e046ddfe2779ae2fb1ca46ddde | 59e7c95649eb8894e1d6f0bcac3ca7ea2b023217 | /Posição do Elemento Vetor.sce | 7fe76a38d5d158ef0f03de92354410e6669aeef5 | [] | no_license | nascimento-luciano/Scilab-Matlab | cb5ee9d97df3ed0f4311573df0fd37a88b3394d8 | 1cba42b68cc7954ff4c7dd6b13c7d8e6bd3d039e | refs/heads/main | 2023-03-19T21:06:18.691193 | 2021-03-18T00:57:29 | 2021-03-18T00:57:29 | 348,877,701 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 211 | sce | Posição do Elemento Vetor.sce | a = input("Digitar o vetor linha a = ");
n = size(a);
soma = 0;
for i = 1:n(2)
soma = soma+a(i)
end
m = soma/n(2);
for i = 1:n(2)
if a(i)<(m) then
disp(i)
end
end
disp(p);
|
3ee0669e4889c969c34114ff371bc578071c5196 | 449d555969bfd7befe906877abab098c6e63a0e8 | /572/CH12/EX12.1/c12_1.sce | c07e952035c9129102b21bd1565c5ba637025757 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,117 | sce | c12_1.sce | //(12.1) The molar analysis of the gaseous products of combustion of a certain hydrocarbon fuel is CO2, 0.08; H2O, 0.11; O2, 0.07; N2, 0.74. (a) Determine the apparent molecular weight of the mixture. (b) Determine the composition in terms of mass fractions (gravimetric analysis).
//solution
//variable initializ... |
b58f6fddf6ae7192aca3257d492378738d00bf0b | 449d555969bfd7befe906877abab098c6e63a0e8 | /43/CH5/EX5.9/ex5_9.sce | 38ef98a7ba5e154d419cfc0407648d90b6d077a7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 165 | sce | ex5_9.sce | //Ex 5.9
clc;
disp('x(t)=cos(200%pi*t+theta)');
w=200*%pi;
f=w/(2*%pi);
nyquist_rate=2*f;
disp(nyquist_rate,'Minimum sampling frequency to avoid aliasing is'); |
9827385dace5cb9d952a7b2bc9dc3e4f52781aac | 449d555969bfd7befe906877abab098c6e63a0e8 | /2579/CH4/EX4.42/Ex4_42.txt | 65165cf08025afc1f5674ee9e7f6383f137a59a8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 583 | txt | Ex4_42.txt | //Ex:4.42
clc;
clear;
close;
D=10;// beam width
y=30.54;// wavelength in cm
X=(58*y)/D;// 3-dB beam width
Ar=(%pi*X^2)/4;// area of the cross section in m^2
G=(4*%pi*Ar)/y^2;// the gain for y=30.54 cm
G1=10*log(G)/log(10);// the gain for y=30.54 cm in dB
y1=3.054;// wavelength in cm
X1=(58*y1)/D;// 3-dB beam... |
270da40bddd8371eaa31bbf15a9af180b03dd6f7 | f3203226e8a039d17474cce5f2caf293dd913415 | /external/e2fsprogs/misc/base_device.tst | f6aaa20915f34d8a4498d6d2ddbcc2bac41e219a | [] | no_license | Chenx221/Samsung-S7562C-Platform | 7dd36cc853193ee4583693309fb7f77ee0a7c011 | 4f1cd5126a11e796cf10da18beba841ec4102550 | refs/heads/master | 2021-01-06T11:40:29.991743 | 2020-02-18T08:59:30 | 2020-02-18T08:59:30 | 241,313,222 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 570 | tst | base_device.tst | /dev/hda7 /dev/hda
/dev/sda1 /dev/sda
/dev/hda /dev/hda
/dev/sda /dev/sda
/dev/dsk/hda6 /dev/dsk/hda
/dev/dsk/sda5 /dev/dsk/sda
/dev/md4 /dev/md
/dev/md/4 /dev/md
/dev/ide/host0/bus1/target2/lun3 /dev/ide/host0/bus1/target2/lun3
/dev/ide/host0/bus1/target2/lun3/part10 /dev/ide/host0/bus1/target2/lun3
/dev/ide... |
b582b469b5950cd533098d635e7cf75311047e99 | 673c6d30a59cf3e0f70b434accbf882c229490c1 | /noise_cancelling_headset_code/EDL_Asg.sce | 730ddce77457244691c99527f6b7cf3243162b05 | [] | no_license | Adbhut-Vipin-Bhardwaj/EDL_microcontroller_code | fd1802dfd316a6f75271d6777d116ef67102659e | 35f7879fbc3ffb2712d4afd6f811c2cd29cd897d | refs/heads/main | 2023-04-18T13:44:45.899632 | 2021-05-06T13:13:37 | 2021-05-06T13:13:37 | 358,373,659 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,140 | sce | EDL_Asg.sce | clear
clc
dat = csvRead("C:\Users\Immanuel\Documents\SCILAB\EDL.csv");
frange = dat(2:41,1)
Mdb = dat(2:41,12)
phdeg = dat(2:41,16)
f1 = 100;
f2 = 1000;
eta1 = 0.1;
eta2 = 1;
//comp = 10*((1+%i.*frange./f2)./(1+%i.*frange./f1))^2;
comp = 2.5*((1+2.*eta2.*%i.*frange./f2 - (frange./f2)^2)./(1+2.*eta1.*%i.*fr... |
670bfcad87a69730683e8cf346a299def1451d56 | b84a4a40dbd2d8bea5236b6ce15dfba9b560bd5a | /BubbleSort.sce | a19733c63760a0e91206e85c71c355ca91054283 | [] | no_license | ronzohan/SciLab | f8cf060d8d7be63b7520fc97f5f2db9d5f576bd6 | bccd05f1f2a0cf56f1de25d466f496a2ba436b79 | refs/heads/master | 2021-01-10T21:40:00.810683 | 2014-10-01T13:23:07 | 2014-10-01T13:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 892 | sce | BubbleSort.sce | inputCount = input("Enter how many elements:")
printf("\nEnter %i random integers:",inputCount)
//input elements
for i=1:inputCount
numArray(i) = input("")
end
printf("Initial:")
for i=1:inputCount
printf("%i ",numArray(i))
end
printf("\n")
swapped = 1 //set swapped to true
loopNum = 0
//this is where ... |
322856fbe51ac2b9ef79ef3cb38eef1efcc71794 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH24/EX24.21/24Ex21.sce | efde14fd4d03b8c5648e3abed83fc4d3947905ae | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 123 | sce | 24Ex21.sce | //chapter 24 Ex 21
clc;
clear;
close;
area=72;
h=sqrt(area/2);
mprintf("The height of parallelogram is %d cm",h);
|
1b76f3b87ebd43090be854cedfdc6c1e2927b890 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2699/CH3/EX3.33/Ex3_33.sce | f850cdc241326ed0994d36a7109c4d47cf9f6ba3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 600 | sce | Ex3_33.sce | //EX3_33 PG-3.70
clc
disp("Refer to the figure-3.45 shown")
Vz=6.1;//zener voltage
Iz_min=2.5e-3;//minimum zener current
Iz_max=25e-3;//maximum zener current
rZ=0;//ideal zener diode
R=2.2e3;
Rl=1e3;//loadd resistance
Il=Vz/Rl;
//For minimum input voltage(Vin_min)
Iz=Iz_min
I=Iz_min+Il;
Vin_min=Vz+I*R;
pr... |
02458343d714985a720c553ca95c1e76d4e8c2c7 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/1.1/Unix/scilab-1.1/macros/robust/leqr.sci | 1549bd6a71eea9d3eb677ca3faa6a098420289e2 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 2,060 | sci | leqr.sci | function [K,X,err]=leqr(P12,Vx)
//H-infinity lqr gain for full-state LQ problem
//(discrete or continuous)
// discrete continuous
// |I -Vx 0| | A 0 B| |I 0 0| | A Vx B |
// z|0 A' 0| - |-C'C I -S| s|0 I 0| - |-C'C -A' -S |
... |
97b292c61c74ccfe76c610205327ca60493437ab | 734830c483d7180158343b9b5599994878b8b197 | /make-tests/unfinished/err0.tst | cf0295982e80a7bae56704bfa75a0adc2385176b | [] | no_license | aykamko/proj61b | b53a3b569f82522144e010505859aa3ab66585bb | 5f6688b70f907107512267712a325f907e5e627b | refs/heads/master | 2021-01-16T22:08:56.235971 | 2013-12-12T09:19:39 | 2013-12-12T09:19:39 | 13,669,280 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 56 | tst | err0.tst | T1: T2 T4 T7
T2: T3 T5
T3:
T4:: T5 T6
T5:
T6: T5
T7: T6
|
1dbd9c0c2a583506f2771f930202456e6b7d0be4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1787/CH2/EX2.2/Exa2_2.sce | 01c5988dc46113151d564efdd2f8fffa19bfe133 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Exa2_2.sce | //Exa 2.2
clc;
clear;
close;
//given data
J=2.4;//in A/mm^2
J=J*10^6;//in A/m^2
n=5*10^28;//electrons/m^3
e=1.6*10^-19;//constant
//Formula : J=e*n*v
v=J/(e*n);//in m/s
disp(v*10^3,"Velocity of electron at fermi level in mm/s : "); |
9cfbaa9678541af46c9ea01fe2a45e9e15c552b9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3718/CH14/EX14.8/Ex14_8.sce | a662a1b59b98cdffd82d6e4dc8d99d05e45d7f19 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex14_8.sce | //Chapter 14: Water Treatment
//Problem: 8
clc;
//Initialisation of Variables
//EDTA=Ethylenediaminetetraacetic acid
v1_water = 50 //in ml for water
w1_CaCO3 = 1.5 //in mg for pure CaCO3
v1_EDTA = 44 //in ml for EDTA
v2_EDTA = 40 //in ml for EDTA
v2_water = 20 //in ml for water
//Solution
... |
30aa61b9ef6fd91db252eb03b3aea11ff5968eb3 | 44f225adc0be4f9ecb45fb9fde03e74f23d7acb2 | /macros/more/getStructuringElement.sci | 39ea568e219951492c2996f9ae6abb423891d87e | [] | no_license | harpreetrathore/scilab-IPT | 10c4996614f1c59972e59decd1b7171e7d5816e0 | db79f1370f3cb0a7716a8afcf1cf5fde9fe70aba | refs/heads/master | 2021-01-01T04:06:52.573735 | 2016-05-26T20:34:33 | 2016-05-26T20:34:33 | 59,781,201 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 351 | sci | getStructuringElement.sci | //Function migration (image list to matrix) for: getStructuringElement
//Generated by migrate.cpp
//Author: Anirudh Katoch
function res = getStructuringElement(varargin)
select length(varargin)
case 05 then
res = raw_getStructuringElement(varargin(01), varargin(02), varargin(03), varargin(04), varargin(05))
els... |
a6c87d1e61cc5ac6fd2369a385b589745aae16ac | 24fb1e72f2244733455f40fda1ae95423110e82a | /trial1.sce | 287c22f44dd9e184c5dff4e13a70b8f6ee39a94d | [] | no_license | Aie-Aie/scilab | a4cbed5b58134009de1c084950a45da1e2b6f2db | 616568e7589f61dcda425410fbedc943b238f11b | refs/heads/master | 2021-09-11T20:42:55.522610 | 2018-04-12T05:29:52 | 2018-04-12T05:29:52 | 106,638,444 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 976 | sce | trial1.sce | n=['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O','U']
lenofn =(size(n))
for i=lenofn(1):lenofn(2)
//printf("%s\n", n(i))
end
arrayofvowels=['A', 'E', 'I', 'O', 'U']
lenofarr=size(arrayofvowels)
for j=lenofarr(1):lenofarr(2)
data=(ascii(arrayofvowels(j)))
//disp(data)
end
a="HELLO WORLD"
txt=asciimat(... |
ba86701e2ef67e3088a70febd2eae5cecf056efd | 449d555969bfd7befe906877abab098c6e63a0e8 | /1862/CH19/EX19.1/C19P1.sce | efe16a0846821e378f3161d64ba94ede0eb87329 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,061 | sce | C19P1.sce | clear
clc
//to find density and displacement amplitude
// GIVEN:
//maximum pressure variation
delta_pm = 28//in Pa
//frequency
f = 1000//in Hz
//pressure amplitude
delta_p1 = 2.8e-5//in Pa
//bulk modulus of air
B = 1.4e5//in Pa
//speed of sound in air
v = 343//in m/s
//density of air
rho_0 = 1.21//in K... |
9c12d68235d2f5bee9b881209e8a1984141c8c58 | 449d555969bfd7befe906877abab098c6e63a0e8 | /914/CH5/EX5.9/ex5_9.sce | 828237feee1fd8a3cb1bcd49dec6a3c4144f276d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,792 | sce | ex5_9.sce | clc;
warning("off");
printf("\n\n example5.9 - pg166");
// given
v=1; //[cm/sec] - volume velocity or bulk velocity
vol=1; //[cm^3] - volume
na=2; // moles of a
nb=3; // moles of b
nc=4; // moles of c
mma=2; //molecular weight of a
mmb=3; //molecular weight of b
mmc=4; //molecular weight of c
ma=na*... |
80800312a338c239467da0fa925c149b82d1728b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1913/CH1/EX1.9/ex9.sce | 52dc350d144460a301b5edf41dfdb5f417d92d3a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 679 | sce | ex9.sce | clc
clear
//Input data
d=13596;//Density of Hg in kg/m^3
g=9.806;//gravity in m/sec^2
z=760;//Barometer pressure in mm of Hg
Pv=40;//Vaccum pressure in cm
dw=1000;//Density of water in kg/m^3
Zw=1.5;//Level of water in m
//Calculations
p=(d*g*z)/10^6;//Pressure in kPa
p1=(80/76)*p;//Pressure in kPa
Pa=p-P... |
b47d8b5fe338adf8e58ca8aad074dc7b54f600e0 | e39063f3e6256f4470a2df355d6b9fd1200d5597 | /src/OraclePG.sci | 2c9218c98c15b23066629b8426e52d58eb0c43d7 | [] | no_license | Tong-ZHAO/tp_optimisation | be2f63729c6cbbfc47d073264498852caf84fd71 | 453d2165724279bd5a9056af1641fb4dae631d2e | refs/heads/master | 2020-05-20T23:02:31.929003 | 2017-05-06T12:34:34 | 2017-05-06T12:34:34 | 84,541,592 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 484 | sci | OraclePG.sci | function [F, G, ind]=OraclePG(qc, ind)
v_qc = q0 + B * qc;
v_qc_abs = abs(v_qc);
v_rqc = r .* v_qc .* v_qc_abs;
F = 0;
G = 0;
if ind == 2 then
F = 1/3 * v_qc' * vr_qc + pr' * (Ar * v_qc);
return;
elseif ind == 3 then
G = B' * (v_rqc + Ar' * pr);
return;
elseif ind == 4 then
F = 1/... |
6826d6ef9316c0a7da858314a1daa8c4fe0d5031 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.2/Unix/scilab-2.2/tests/testqp.sci | d933f99972cb07b3f84b7d056986c7bab8b54020 | [
"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 | 7,041 | sci | testqp.sci | function [ident,info]=testqp(n,irand,idef,imi,icota,nul,eps,modo)
//Syntax : [ident,info]=testqp(n,irand,idef,imi,icota,nul,eps,modo)
//
// test problems for quapro and linpro
//
//%inputs
// n : dimension of the problem
// irand : seed for starting the generation of random numbers.
// For... |
583c1ae3a73782aa07a6ca7154ba9e1f5469f570 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2015/CH6/EX6.6/6_6.sce | 8cf1f677509c35df306b2a8d486e98348a4c47e4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 801 | sce | 6_6.sce | clc
//initialisation of variables
u=250 //blade speed in m/s
theta=80 //angle in degrees
alpha=20 //angle in degrees
oed=786.7 //overall enthalpic drop in kj/kg
sp=3000 //rotational speed of an impulse turbine wheel in revolutions
p=6000 //power developed in kw
rf=1.04 //reheat factor
ie=2993.4 //kj/kg
vs=9.2... |
139ff7cce56f6f7cc7cc478695c19c6e67e89e69 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1301/CH3/EX3.4/ex3_4.sce | 888424c841863243fb8851df14da7df9a7fcd2c9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex3_4.sce | clc;
g=9.8; //gravitational constant in m/sec square
m=100; //mass in kg
disp(m*g,"Weight in Newton = "); |
a8cb125a8773a3e6e281f3603d7964041a6921c1 | c3280ada260999123d75347caeaad1c7fc9f8266 | /kode/iterasitetap.sci | ecf97b45ea768f72041ec8a8b0b4250c59b54bc5 | [] | no_license | dikisp/Kuliah-MetNum | 3bd01f0573f2a18eb320a716da841ca3ec69930b | 7775f5e0251457702fb3e24c88483df0ff37fee7 | refs/heads/master | 2020-03-23T06:41:49.307866 | 2018-07-17T03:13:25 | 2018-07-17T03:13:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 626 | sci | iterasitetap.sci | function akar = iterasitetap (x0, eps)
x(1) = x0;
g(1) = 100;
r = 1;
/*for r = 1 : 11
//Fungsi
//x(r+1) = sqrt(4*x(r)+20);
//x(r+1) = (x(r)^2-20)/4;
//x(r+1) = 20/(x(r)-4);
x(r+1) = (20/x(r))+4;
//Galat
g(r+1) = x(r+1)-x(r);
end*/
... |
4cb34bdbf406052461ec6fd25693857395bd9ce6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /323/CH2/EX2.56/ex2_56.sci | c2ef76a507b832985fd8ff8a21248c911f4af64d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sci | ex2_56.sci | //Chapter 2,Ex2.56,Pg2.71
clc;
disp("Refer to the diagram shown in the question")
//Remove the 1 ohm resistor from the meshes 1 and 2, then we can say the following about the current
I1=-3 //Current in amperes
I2=1 //Current in amperes
printf("\n I1=%.0f A \n",I1)
printf("\n I2=%.0f A \n",I2)
//Calculation of V... |
03ff334f132bc477692c9ec04963390b6eaa474c | 449d555969bfd7befe906877abab098c6e63a0e8 | /761/CH14/EX14.5/14_5.sce | 36be8557a2c5ea583c8f6a94e9f31d61458898cc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 415 | sce | 14_5.sce | clc;
//page no 472
//prob no. 14.5
//Standard coaxial cable RG-8/U with 45 degree phase shift at 200MHz
p=45;f=200*10^6;c=3*10^8;//Speed of light in m/s
vf=0.66;//velo. factor for this line
vp=vf*c;//Determination of propagation velo.
wav=vp/f;//Determination of wavelength of signal
//Determination of reqd leng... |
4416e6040c8df6b72f682973115499cb994a0a83 | 31bd22a0de3a609c9bdfa652c93ed112749bf698 | /MATEMATICAS PARA INGENIERIA I/Archivos scilab/scilab2.sce | ab8067273f9f2e4422a686702801b5e1181a2d30 | [] | no_license | eliasrobleroperez/4to-cuatrimestre | 048e4da60229962106595a1d2caab04733e6e9d8 | 529bc470e75e5165ea01637d71e2e99025754d53 | refs/heads/master | 2020-12-03T18:26:05.289314 | 2020-01-02T21:12:33 | 2020-01-02T21:12:33 | 231,429,581 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,563 | sce | scilab2.sce | Nx = 80;
Ny = 40;
x= linspace(-6,6,Nx);
y = linspace(-3,3,Ny);
z = zeros(Ny, Nx);
for i=1:Nx
for j=1:Ny
z(j,i) = cos(x(i))*sin(y(j));
end
end
surf(z);
mesh(z);
clf();
surf(x,y,z);
clf();
surf(x,y,z);
h = gce();
h.color_flag = 3;
fg = gcf();
fg.color_map = rainbovcolormap(256);
fg.f... |
abf3bc2b80cd23d3006ebcd75d50d0e12fbe916b | 449d555969bfd7befe906877abab098c6e63a0e8 | /788/CH2/EX2.3.b/2_3_soln.sce | f0621d30fd65ae3204d2d7d3ea13f713a5112b7f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 419 | sce | 2_3_soln.sce | clc;
pathname=get_absolute_file_path('2_3_soln.sce')
filename=pathname+filesep()+'2_3_data.sci'
exec(filename)
// Solution:
// we know,
// specific gravity of air=(specific weight of air/specific weight of water)
// also we know,specific weight of water at 68 degF,
gamma_water=62.4; //lb/ft^3
SG_air=gamma_air/gamma_wa... |
3c9183b09814163e146ebe5b26bedf397c363e1e | 449d555969bfd7befe906877abab098c6e63a0e8 | /343/CH4/EX4.25/ex4_25.sce | 946decde72ee71e0b58dd911db1cb9455b7d05f9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 352 | sce | ex4_25.sce | clc
kva=5 //Assigning values to parameters
e2=400
r02=0.85
x02=1.236
i2f=kva*1000/e2
t=acosd(0.8)
pr1=(i2f*r02*cosd(t)+i2f*x02*sind(t))*100/e2
pr2=(i2f*r02*cosd(t)-i2f*x02*sind(t))*100/e2
disp(pr1,"The percentage regulation at full load 0.8 pf lagging is");
disp(pr2,"The percentage regulation a... |
e19b28d01dcce4143506d4a84a85714094044c0f | 449d555969bfd7befe906877abab098c6e63a0e8 | /564/CH19/EX19.2/19_2.sce | 1c1976c234f129c2ccce15010d695be50fd64994 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 332 | sce | 19_2.sce | pathname=get_absolute_file_path('19_2.sce')
filename=pathname+filesep()+'19_2data.sci'
exec(filename)
GJcl=((4*A*A*G*t12)/(L12+L34));
GJo=((L34+L13)*G*t^3)/3
GJ=GJcl+GJo;
Dtheta=T/GJ;
qcl=GJcl*Dtheta/(2*A);
tmaxcl=qcl/t12;
tmaxo=G*t13*Dtheta;
printf("\nτmax,cl: %f N/mm^2",tmaxcl);
printf("\nτmax,op: %f N/mm^... |
fc379dc2a2b8d2431d708703932d59cbe7ec607d | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/tf2zpk/tf2zpk10.sce | a62fe8cfbc3ccbadd3399465538655ae5f2d63a8 | [] | 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 | 154 | sce | tf2zpk10.sce | b=[-3 -3 -5 -6];
a=[-1 2 3 -5];
z=tf2zpk(b,a);
disp(z);
//output
//
// 0.0572940 + 1.3383208i
// 0.0572940 - 1.3383208i
// - 1.114588
//
|
c1ff3edca706c7d617afca5bf079baa0638261bf | 449d555969bfd7befe906877abab098c6e63a0e8 | /1049/CH6/EX6.12/ch6_12.sce | f0931383f5371621bd992adeea0277b851a5a05e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 826 | sce | ch6_12.sce | clear;
clc;
V_s=230;
V_m=sqrt(2)*V_s;
a=45;
R=10;
V_o=(V_m/%pi)*(1+cosd(a));
I_o=V_o/R;
V_or=V_s*sqrt((1/%pi)*((%pi-a*%pi/180)+sind(2*a)/2));
I_or=I_o;
P_dc=V_o*I_o;
P_ac=V_or*I_or;
RE=P_dc/P_ac; printf("rectification efficiency=%.4f",RE);
FF=V_or/V_o; printf("\nform factor=%.3f",FF);
VRF=sqrt(FF^2-... |
4fbbef33a5efbf3d9a382bffb596524be438de29 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3204/CH14/EX14.3/Ex14_3.sce | 9db304e2c65982ad2b891c1924317b5f699e6693 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 666 | sce | Ex14_3.sce | // Initilization of variables
a_T=0.18 // m/s^2 // acc of trolley
// Calculations
a_B=-a_T/3 // m/s^2 // from eq'n 4
t=4 // seconds
v_T=a_T*t // m/s // velocity of trolley after 4 seconds
v_B=-v_T/3 // m/s // from eq'n 3
S_T=(1/2)*a_T*t^2 // m // distance moved by trolley in 4 sec
S_B=-S_T/3 // m // from eq'n 2... |
38b7a95b22973fd1dc12ff8228c4d99a7e0b9e55 | 87b382eda583f3015f0660bc7da6f714bd51a860 | /test5.tst | b9477664ac4a80a02b5fb59a825216b737eb279e | [] | no_license | Nagendra999/Repo2 | 2268bdd915d84e43aaf88cfbb242e12f2926752c | ad7d1b480bea7b481ab892075934ef78be0d818d | refs/heads/master | 2020-04-08T02:02:07.482216 | 2018-11-27T01:00:17 | 2018-11-27T01:00:17 | 158,919,964 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 65 | tst | test5.tst | index.html test1.txt test2.txt test3.txt test4.tst test5.tst
|
81ce23da9f4f580c7589cdb539a206c2b051c72e | 59e7c95649eb8894e1d6f0bcac3ca7ea2b023217 | /Método de Simpson.sci | 23e4819ee103e1532dcdee460ee76310e82baa16 | [] | no_license | nascimento-luciano/Scilab-Matlab | cb5ee9d97df3ed0f4311573df0fd37a88b3394d8 | 1cba42b68cc7954ff4c7dd6b13c7d8e6bd3d039e | refs/heads/main | 2023-03-19T21:06:18.691193 | 2021-03-18T00:57:29 | 2021-03-18T00:57:29 | 348,877,701 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 274 | sci | Método de Simpson.sci | function y=simpson(f,a,b,n)
// Metodo de Simpson com n repeticoes
// f: funcao, a,b: intervalo de integracao
h=(b-a)/(2*n);
Soma=f(a)+f(b);
for i=1:n-1
Soma=Soma + 4*f(a+h*(2*i -1)) + 2*f(a+h*2*i);
end;
Soma=Soma+4*f(a+(2*n-1)*h);
y=(h/3)*Soma;
endfunction
|
4f8f95c3debc9cd70b3ac091ef7c9f3fe32c384c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1076/CH5/EX5.4/5_4.sce | 7c4d72ddc00a87aa206d886ed3b105be4a991e88 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 5_4.sce | clear;
clc;
m=2.292;
g=9.81;
l=152;
Pw=39.063;
dia=2.068e-2;
ar=3.065;
stress=1054.63;
//(a)
w=m*g;
T=stress * ar *g;
Fw=Pw* g * dia;
Ft= sqrt(w^2 + Fw^2);
S=Ft * l *l /(8* T);
mprintf("\n Sag= %.2f m", S);
Sy= S * w/Ft;
mprintf("\n Vertical Component of Sag= %.3f m", fix(Sy*1000)/1000);
|
d5fe15d5c7e2c2866fedc17aa44e8c4edb96578b | 7b7be9b58f50415293def4aa99ef5795e6394954 | /sim/scripts/hydrate.tst | 2db810acf61e2fe23c3e0852513025f4b8880052 | [] | no_license | sabualkaz/sim42 | 80d1174e4bc6ae14122f70c65e259a9a2472ad47 | 27b5afe75723c4e5414904710fa6425d5f27e13c | refs/heads/master | 2022-07-30T06:23:20.119353 | 2020-05-23T16:30:01 | 2020-05-23T16:30:01 | 265,842,394 | 0 | 0 | null | 2020-05-21T12:26:00 | 2020-05-21T12:26:00 | null | UTF-8 | Scilab | false | false | 586 | tst | hydrate.tst | units SI
$thermo = VirtualMaterials.Peng-Robinson
/ -> $thermo
thermo + NITROGEN WATER METHANE ETHANE PROPANE ISOBUTANE CARBON_DIOXIDE HYDROGEN_SULFIDE n-BUTANE
Feed = Stream.Stream_Material()
Out = Stream.Stream_Material()
Hydrate = Hydrate.Hydrate()
Feed.Out -> Hydrate.In
Hydrate.Out -> Out.In
Feed.In.... |
6b33664f639add6259e97d08505d4ee53b563796 | 42fdf741bf64ea2e63d1546bb08356286f994505 | /data_for_calibration_paper/Figure_05_FG_parameter_Scurve.sce | d7926187ffa762afe18be1d978cc5919092e284e | [] | no_license | skim819/RASP_Workspace_sihwan | 7e3cd403dc3965b8306ec203007490e3ea911e3b | 0799e146586595577c8efa05c647b8cb92b962f4 | refs/heads/master | 2020-12-24T05:22:25.775823 | 2017-04-01T22:15:18 | 2017-04-01T22:15:18 | 41,511,563 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 14,870 | sce | Figure_05_FG_parameter_Scurve.sce | exec('~/rasp30/prog_assembly/libs/scilab_code/read_tar_pgm_result.sce',-1);
time_scale=1e-2; //1e-5; // Time unit : 10us
m_graph=3;
kapa_constant_or_not=1;
vdd=2.5;
//cd("/home/ubuntu/RASP_Workspace/data_for_calibration_paper/data_char_Scurve_chip16");
cd("/home/ubuntu/RASP_Workspace/data_for_calibration_paper/data_ch... |
0bf5537e49f64a02bc1028231a37f8d2c5cc6938 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1904/CH11/EX11.6/11_6.sce | e1c726c17013f934c59e4e45fb3b3e67c9d22399 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,242 | sce | 11_6.sce | //To Find The Probability on the reliability of transformers
//Page 614
clc;
clear;
//Reliabilities of The Three Transformers
Pa=0.9;
Pb=0.95;
Pc=0.99;
//Faliures of Three Transformers
Qa=1-Pa;
Qb=1-Pb;
Qc=1-Pc;
//Probability of NO Transformer Failing
Pnf=Pa*Pb*Pc;
PfA=Qa*Pb*Pc//Probability of Tra... |
7670e2dd06066da47bc64d11c010f880c960af61 | 449d555969bfd7befe906877abab098c6e63a0e8 | /964/CH14/EX14.2/14_2.sce | 56c69b85334f5342996eb13566e5dcf0c5340b14 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 257 | sce | 14_2.sce | clc;
clear;
function z=f(x,y)
z=x*y*y
endfunction
p1=[2 2];
elevation=f(p1(1),p1(2));
dfx=p1(1)*p1(1);
dfy=2*p1(1)*p1(2);
theta=atan(dfy/dfx);
slope=(dfx^2 + dfy^2)^0.5;
disp(elevation,"Elevation:")
disp(theta,"Theta:")
disp(slope,"slope:") |
afe289d1973627b7d8516893bf45c9d61e5fd04f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2606/CH5/EX5.14/ex5_14.sce | 226e302efeaa70794e4adaa5598d70c5848c2573 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 272 | sce | ex5_14.sce | //Page Number: 5.31
//Example 5.14
clc;
//Given,
Rb=36000; // (b/s)
fM=3200; //Hz
fs=2*fM;
n=Rb/fs;
//As n should be less than Rs/fs
nn=round(n)-1;
disp(nn,'Binary digits');
L=2^nn;
disp(L,'Quantizing level');
fs=Rb/nn;
disp('Hz',fs,'Sampling Rate');
|
2f802dc8f34ddddcf6cdaa361253e38d55fc5b15 | 449d555969bfd7befe906877abab098c6e63a0e8 | /680/CH2/EX2.05/2_05.sce | 6e8cc63624bd9ae21e52bb37f25a6f0a236ddbbf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 206 | sce | 2_05.sce | //Problem 2.05:
//initializing the variables:
sgm = 0.92;
dw = 62.4; // in lb/ft3
//calculation:
dm = sgm*dw
printf("\n\nResult\n\n")
printf("\n the density of methanol is %.1f lb/ft3\n",dm)
|
1fe29e5dbb3fe6d1d05ba14fd2d90683e51e33b2 | 06a62d768e69fd9dda11b30011c252807e301813 | /pgm13.sci | 78cb040ad4f8fd468bdc93313e68cf9d6e2a7bec | [] | no_license | vikram-niit/matlab | 36ce3d9539629128251eab060164ce81c03aa690 | da8aeb4d727c47474d37676650664bd028d7e41d | refs/heads/master | 2020-03-18T13:40:37.068765 | 2018-05-25T03:51:55 | 2018-05-25T03:51:55 | 134,800,217 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 79 | sci | pgm13.sci | function [y] = pgm13(x)
// y = x-cos(x);
y = 2 - x + log(x);
endfunction
|
10606d842a870a5e8a12fb36b5eed75dada943f0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1301/CH3/EX3.16/ex3_16.sce | 5fd38f1390886b6f46bc2eed3ceb386a711c397c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex3_16.sce | clc;
g=32; //gravitational constant in ft/sec square
w=160; //weight in lb
m=w/g //calculating mass in slugs.
disp(m,"Mass in slugs = "); //displaying result |
0f936252769701eeedf303bae10e394a9c5c85cc | 449d555969bfd7befe906877abab098c6e63a0e8 | /1322/CH13/EX13.9/95ex.sce | 80b4eb9b51b4485f1db09918d0b4b5f28e98c91f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 95ex.sce |
clc;
close;
clear;
p1=string('(a+b+1)^2=a^2+b^2+1+2ab+2a+2b')
p2=string('(x-y+z)^2=x^2+y^2+z^2-2xy+2xz-2yz')
p3=string('(a-b-c)^2=a^2+b^2+c^2-2ab-2ac+2bc')
p4=string('(x+y-5)^2=x^2+y^2+25-10x-10y+2xy')
|
3a3354cec9f853ac46569378a7ce5a597fe1472d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2840/CH9/EX9.4/ex9_4.sce | 20ae50cf3875df071534be94ef78eca83cb69dfa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 344 | sce | ex9_4.sce | clc;
clear all;
h = 6.62*1e-34; // Plancl's constant in J.s
c = 3*1e8; // Velocity of light in vacccum in m/s
m = 9.1*1e-31; // Mass of electron in Kg
lambda = 0.7078*1e-10 // Wavelength in meter
theta = 90;
delta = (h*(1-cosd(theta))/(m*c));
Nlambda = lambda + delta;
disp('meter',Nlambda,'The wavelength of s... |
0eead50b97bc45c662dda54da09c70543fa3f718 | 5f2ca8e18735204f5995ac7e44a6e301eb23ea0b | /xcos/tests/atmosphere_model.tst | d7efb7106d6a51e069ea57dc44b2072dc3f0e068 | [] | 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 | 670 | tst | atmosphere_model.tst | //<-- NO CHECK REF -->
exec('models/atmos_constants.sci');
isa_ref_csv = read_csv('tests/isa_atm_sample.csv');
nlin = size(isa_ref_csv)(1);
for i = 2:nlin
h_ref = strtod(isa_ref_csv(i,1));
T_ref = strtod(isa_ref_csv(i,3));
rho_ref = strtod(isa_ref_csv(i,5));
p_ref = strtod(isa_ref_csv(i,6));
importX... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.