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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39d7947f6e1d6c313cfd9287e369226c294fe900
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/608/CH30/EX30.02/30_02.sce
|
d48f214fad1c32e01f47ca6f7ee9470ddd1129dc
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,429
|
sce
|
30_02.sce
|
//Problem 30.02: Determine the current flowing in the 2 ohm resistor of the circuit shown in Figure 30.5 using Kirchhoff’s laws. Find also the power dissipated in the 3 ohm resistance.
//initializing the variables:
V = 8; // in volts
R1 = 1; // in ohm
R2 = 2; // in ohm
R3 = 3; // in ohm
R4 = 4; // in ohm
R5 = 5; // in ohm
R6 = 6; // in ohm
//calculation:
//Currents and their directions are assigned as shown in Figure 30.6.
//Three loops are chosen since three unknown currents are required. The choice of loop directions is arbitrary. loop ABCDE, and loop EDGF and loop DCHG
//using kirchoff rule in 3 loops
//three eqns obtained
//R5*I1 + (R6 + R4)*I2 - R4*I3 = V
//-1*R1*I1 + (R6 + R1)*I2 + R2*I3 = 0
// R3*I1 - (R3 + R4)*I2 + (R2 + R3 + R4)*I3 = 0
//using determinants
d1 = [V (R6 + R4) -1*R4; 0 (R6 + R1) R2; 0 (-1*(R3 + R4)) (R2 + R3 + R4)]
D1 = det(d1)
d2 = [R5 V -1*R4; -1*R1 0 R2; R3 0 (R2 + R3 + R4)]
D2 = det(d2)
d3 = [R5 (R6 + R4) V; -1*R1 (R6 + R1) 0; R3 (-1*(R3 + R4)) 0]
D3 = det(d3)
d = [R5 (R6 + R4) -1*R4; -1*R1 (R6 + R1) R2; R3 (-1*(R3 + R4)) (R2 + R3 + R4)]
D = det(d)
I1 = D1/D
I2 = D2/D
I3 = D3/D
//Current in the 2 ohm resistance
I = I1 - I2 + I3
//power dissipated in the 3 ohm resistance
P3 = R3*I^2
printf("\n\n Result \n\n")
printf("\n (a)current through 2 ohm resistor is %.2f A",I2)
printf("\n (b)power dissipated in the 3 ohm resistor is %.2f W",P3)
|
f9b73dbf2cec101f69caff1835cd1f8a45fce0c1
|
459e8ef39b399369ff3b6a6088bb206dff676c7c
|
/Project5-svm/Sat/Given/sat.tst
|
d5eb55e591ac461c7962bdba0486a9ab80d26c97
|
[] |
no_license
|
dagrawa2/cosc528_machine_learning
|
0fcfbf9a791d4637f2f979c0013264cf80636ab5
|
74b0de3b0059da2fbb3be6f7f23fa80cdfa7af54
|
refs/heads/master
| 2022-12-20T07:30:52.808726
| 2017-12-09T03:32:00
| 2017-12-09T03:32:00
| 302,174,156
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 131
|
tst
|
sat.tst
|
version https://git-lfs.github.com/spec/v1
oid sha256:4b9167b8a92baafafed7c8809aef86d0683a5e685c19d98d119fa6974f0f2479
size 236745
|
dc3296ad8be66fd9f5f3b146986940733d12014a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/992/CH2/EX2.1/ex2_1.sce
|
c2ccb1fa8b27a47629290eb057015289668f6d49
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 166
|
sce
|
ex2_1.sce
|
//Exa:2.1
clc;
clear;
close;
//Given:
Pc=500;//poer of carrier
m=0.50;//depth
Pt=Pc*(1+(m^2)/2)
printf("\n\n\t total power of modulated signal = %f W ",Pt);
|
cb0a755ee3fb5153b4599dea3c9509939e1a9380
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2300/CH13/EX13.16.6/Ex13_6.sce
|
59d58beb9322b92f754d5e856fe74032904a9567
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,666
|
sce
|
Ex13_6.sce
|
//scilab 5.4.1
//Windows 7 operating system
//chapter 13 Field-Effect Transistors
clc
clear
IDSS=12*10^-3//IDSS=saturation drain current in Ampere when VGS(gate-to-source voltage)=0V
Vp=-4//Vp=pinch-off voltage
VDD=30//VDD=drain supply voltage
RL=5*10^3//RL=load resistance in ohms
Rs=600//Rs=resistance connected to source terminal in ohms
Rg=1.5*10^6//Rg=resistance connected to gate terminal in ohms
//By Shockley's equation
//IDS=IDSS*(1-(VGS/Vp))^2 where IDS=saturation drain current to be calculated for given value of VGS
//Substituting VGS=(-ID*Rs) we get ID=IDS
//ID=IDSS*(1+((ID*Rs)/Vp))^2
//ID=12*(1+((0.6*ID)/-4))^2 where ID is obtained in mA
//(0.27*ID^2)-(4.6*ID)+12=0.........(1)
ID1=(4.6+sqrt((4.6^2)-(48*0.27)))/(2*0.27)
format("v",5)
ID2=(4.6-sqrt((4.6^2)-(48*0.27)))/(2*0.27)//ID1,ID2 are the 2 roots of the above equation (1)
format("v",5)
disp("mA",ID1,"ID1=")
disp("mA",ID2,"ID2=")
if (ID1>(IDSS/10^-3)) then//IDSS is converted in terms of mA
disp("mA",ID1,"As ID1>IDSS ,the value rejected is ID1=")
end
if (ID2>(IDSS/10^-3)) then//IDSS is converted in terms of mA
disp("mA",ID2,"As ID2>IDSS ,the value rejected is ID2=")
end
disp("mA",ID2,"Therefore,the drain current is =")
ID=ID2*10^-3//converting ID2 in terms of Ampere
VDS=VDD-ID*(RL+Rs)//VDS=drain-to-source voltage
disp("V",VDS,"The value of drain-to-source voltage VDS is =")
VGS=-ID*Rs//VGS=gate-to-source voltage
disp("V",VGS,"The value of gate-to-source voltage VGS is=")
if(Vp<0 & VDS>(VGS-Vp))
disp("As Vp=(-4)<VGS<0V and VDS=12V>(VGS-Vp),it is verified that the JFET is in the saturation region of the drain characteristics")
end
|
7e56ca3870c033b10bea9a60b4db06dde8380b32
|
3aecc0a856e5ab896077f26d338574613e42a223
|
/src/32.test_Kolmogorov-Smirnov.sci
|
a48af78d51d6568f8959da0a1b95ce18306f8c2b
|
[] |
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
| 1,177
|
sci
|
32.test_Kolmogorov-Smirnov.sci
|
m=10;
dati=grand(m,1,'exp',1/5);
function [y]=fEmp(dati)
m=size(dati,'r');
datis=gsort(dati,'g','i');
for i=[1:m]
y(i,1)=i/m;
y(i,2)=datis(i);
end;
y=y';
endfunction
y=fEmp(dati);
deff('[y]=cdfexp(lambda,x)','y=1-exp(-lambda * x)')
fs=cdfexp(5,y(2,:));
m1=[1:m]/m-fs;
m2=fs-[0:m-1]/m;
d=max([m1,m2])
function [d]=simPValue()
us=gsort(grand(m,1,'def'),'g','i');
m1=[1:m]/m-us'
m2=us'-[0:m-1]/m
d=max([m1,m2])
endfunction
function [y]=meanP(mm)
c=0;
for i=[1:mm],
if (simPValue()>=d),
c=c+1;
end;
end;
y=c/mm;
endfunction
meanP(10000)
m=10;
dati=grand(m,1,'chi',5);
function [y]=fEmp(dati)
m=size(dati,'r');
datis=gsort(dati,'g','i');
for i=[1:m]
y(i,1)=i/m;
y(i,2)=datis(i);
end;
y=y';
endfunction
y=fEmp(dati);
deff('[y]=cdfexp(lambda,x)','y=1-exp(-lambda * x)')
fs=cdfexp(5,y(2,:));
m1=[1:m]/m-fs;
m2=fs-[0:m-1]/m;
d=max([m1,m2])
function [d]=simPValue()
us=gsort(grand(m,1,'def'),'g','i');
m1=[1:m]/m-us'
m2=us'-[0:m-1]/m
d=max([m1,m2])
endfunction
function [y]=meanP(mm)
c=0;
for i=[1:mm],
if (simPValue()>=d),
c=c+1;
end;
end;
y=c/mm;
endfunction
meanP(10000)
|
d570684dc619971db6cf8b45d9d749cbea95af73
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3647/CH6/EX6.6/ex6_6.sce
|
f8e48961f99f5b5c815ec7e233b3dd93b5804401
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 359
|
sce
|
ex6_6.sce
|
//Solutions to Problems In applied mechanics
//A N Gobby
clear all;
clc
//initialisation of variables
d=4//in
p=2//ft
d1=1/2//in
e=13200//tonf/in^2
f=9.51//tonf/in^2
k=0.0114//tonf/in^2
//CALCULATIONS
E=k*f//in tonf
F=(p/(%pi/d*d^2))//tonf/in^2
//RESULTS
printf('the final stress after oscillation has died aways will load/area=% f tonf/in^2',F)
|
2ef3ade791d237ac753d1ed760762ef24fe1e39e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1928/CH1/EX1.14.16/ex1_14_16.sce
|
289f37128523641e8fd131ccf2ee20d263a0915f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 547
|
sce
|
ex1_14_16.sce
|
//Chapter-1,Example1_14_16,pg 1-64
n=2 //BCC structure
ro=5.98*10^3 //density of chromium
A=50 //atomic wt of chromium
N=6.023*10^26 //Avogadro's number
a=((n*A)/(N*ro))^(1/3)
printf(" 1) Lattice constant=")
disp(a)
printf("m")
//for BCC
r=sqrt(3)*a/4 //radius of chromium
APF=(n*(4/3)*%pi*(r^3))/(a^3)
printf(" 2) A.P.F. for chromium=")
disp(APF)
|
7ba00b13d908be479d142e96bd2e786972baec39
|
c87a44be475d3008f7d0fcb8dd2eac3b2fa78e94
|
/Examples/Chapter_12/Example_12_5.sce
|
3346f5d492ad465dae2f6ddcc332f622b059a71c
|
[] |
no_license
|
Echeban/icmd3e
|
6c766ffafab0137a64de46448879d8a9eed2903c
|
6ca0273e322fa390fcabc66669f3f56c9af5a563
|
refs/heads/master
| 2020-03-27T09:08:47.798549
| 2018-08-27T15:45:44
| 2018-08-27T15:45:44
| 146,316,991
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 288
|
sce
|
Example_12_5.sce
|
// Example 12.5
mode(0)
function residual = residual(x)
residual = 0.3*E*(x/a)^2*(1-.00875*(phimax-20))*(1-.000175*a/x)-qcr
endfunction
a = 31.2;//m
E = 19.0E9;//N/m^2, from carpet plots
phimax = 22.62; //deg
qcr = 11632;//N/m^2
t_guess = 0.1;
t = fsolve(t_guess,residual)
|
f5726bdb28e8a4271aee047afc9895d2a46ba8d5
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/243/CH15/EX15.3/15_03.sce
|
c4b92770e181ef0d5d96ba129de34ff90f6182c7
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 796
|
sce
|
15_03.sce
|
//Example No. 15_03
//Poisson's Equation
//Pg No. 490
clear ; close ; clc ;
//D2f = 2*x^2 * y^2
// f = 0
// h = 1
//Point 1 : 0 + 0 + f2 + f3 - 4f1 = 2(1)^2 * 2^2
// f2 + f3 - 4f1 = 8
//Point 2 : 0 + 0 + f1 + f4 -4f2 = 2*(2)^2*2^2
// f1 - 4f2 = f4 = 32
//Point 3 : 0 + 0 + f1 + f4 - 4f4 = 2*(1^2)*1^2
// f1 -4f3 + f4 = 2
//Point 4 : 0 + 0 + f2 + f3 - 4f4 = 2* 2^2 * 1^2
// f2 + f3 - 4f4 = 8
//Rearranging the equations
// -4f1 + f2 + f3 = 8
// f1 - 4f2 + f4 = 32
// f1 - 4f3 + f4 = 2
// f2 + f3 - 4f4 = 8
A = [ -4 1 1 0 ; 1 -4 0 1 ; 1 0 -4 1 ; 0 1 1 -4]
B = [ 8 ; 32 ; 2 ; 8 ]
C = A\B ;
mprintf('The solution is \n f1 = %f \n f2 = %f \n f3 = %f \n f4 = %f \n ', C(1),C(2),C(3),C(4))
|
273900c905f95c3124ecaf4e7c93a2eedcff7240
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/source/2.3.1/examples/link-examples/ext4f.sce
|
2ac2924932e522ad8aa5aa80ac52d31396727d7f
|
[
"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
| 285
|
sce
|
ext4f.sce
|
host('make /tmp/ext4f.o');
link('/tmp/ext4f.o','ext4f');
a=[1,2,3];b=[4,5,6];n=3;yes='yes'
c=fort('ext4f',n,1,'i',a,2,'d',b,3,'d','out',[1,3],4,'d')
c-(sin(a)+cos(b))
yes='no'
c=fort('ext4f',n,1,'i',a,2,'d',b,3,'d','out',[1,3],4,'d')
c-(a+b)
//clear yes --> undefined variable : yes
|
a77a9f746b3d35be4be7bdc9f586b2d09e6b53f7
|
717ddeb7e700373742c617a95e25a2376565112c
|
/3424/CH11/EX11.5/Ex11_5.sce
|
1a5e070f9bc8168fad41bffe159b19ed0de012fb
|
[] |
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
| 427
|
sce
|
Ex11_5.sce
|
clc
//Initialization of variables
//part (a)
D1=0.239 //ft
//part (b)
g=32.2 //ft/s^2
Zo=200 //ft
f=0.02
l=1000 //ft
D=8 //in
R=3/2 //ft
D=D/12 //ft
k=550 //ft.lb/s to hp
W=-1.04e6*D1^2/(1+152*D1^4)^(3/2)
W=W/k
Di=D1
V1=sqrt(2*g*Zo/(1+f*l/D*(Di/D)^4))
omega=V1/(2*R)
omega=omega*60/(2*%pi) // rad/s to rpm
printf('D1 = %.3f ft',D1)
printf('\n Maximum power = %.1f hp',W)
printf('\n omega = %d rpm',omega)
|
6fd45dfbf56a5687bb312ac11b30db6f9e16a85e
|
31cc146b7597c1571ad100fc4dd888898b1b4eb0
|
/parameterization/rect_harmonic_map.sce
|
8f8b33a12c3c69c1f5d674da0007721cc1f29b35
|
[] |
no_license
|
rigid1980/gpp_scilab
|
a525ae046722e7ba52ebea6003ce712b51631ff6
|
fadb75dea26cf341e6dc60874efd88c016df4f3b
|
refs/heads/master
| 2016-09-11T08:37:44.538715
| 2014-03-26T08:37:35
| 2014-03-26T08:37:35
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,580
|
sce
|
rect_harmonic_map.sce
|
//// rec_harmonic_map
// Harmonic map of a 3D simply-connected surface to 2D unit square
//
//// Syntax
// uv = rect_harmonic_map(face,vertex,corner)
//
//// Description
// face : double array, nf x 3, connectivity of mesh
// vertex: double array, nv x 3, vertex of mesh
// corner: double array, 4 x 1, four corners (index) on the mesh to be mapped to
// corners of unit square
//
// uv: double array, nv x 2, uv coordinates of vertex on 2D unit square domain
//
//// Contribution
// Author : Wen Cheng Feng
// Created: 2014/03/18
// Revised: 2014/03/24 by Wen, add doc
//
// Copyright 2014 Computational Geometry Group
// Department of Mathematics, CUHK
// http://www.lokminglui.com
function uv = rect_harmonic_map(face,vertex,corner)
nv = size(vertex,1);
bd = compute_bd(face);
nbd = size(bd,1);
i = find(bd==corner(1),1,'first');
bd = bd([i:end,1:i]);
corner = corner([1:end,1]);
ck = zeros(size(corner));
k = 1;
for i = 1:length(bd)
if(bd(i) == corner(k))
ck(k) = i;
k = k+1;
end
end
uvbd = zeros(nbd,2);
uvbd(ck(1):ck(2),1) = linspace(0,1,ck(2)-ck(1)+1)';
uvbd(ck(1):ck(2),2) = 0;
uvbd(ck(2):ck(3),1) = 1;
uvbd(ck(2):ck(3),2) = linspace(0,1,ck(3)-ck(2)+1)';
uvbd(ck(3):ck(4),1) = linspace(1,0,ck(4)-ck(3)+1)';
uvbd(ck(3):ck(4),2) = 1;
uvbd(ck(4):ck(4),1) = 0;
uvbd(ck(4):ck(5),2) = linspace(1,0,ck(5)-ck(4)+1)';
uvbd(end,:) = [];
bd(end) = [];
uv = zeros(nv,2);
uv(bd,:) = uvbd;
in = true(nv,1);
in(bd) = false;
A = laplace_beltrami(face,vertex);
Ain = A(in,in);
rhs = -A(in,bd)*uvbd;
uvin = Ain\rhs;
uv(in,:) = uvin;
|
ec1ddc83c4c9a1752311b68ecf68f663a9c9c2b1
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1466/CH5/EX5.7/5_7.sce
|
ea6bc18ee52aebb6735c9210bed263fc1fdd987d
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 290
|
sce
|
5_7.sce
|
clc
//initialisation of variables
L= 10 //ft
h= 2 //ft
w= 20//ft
d= 3//ft
n= 2
g= 32.2 //ft/sec^2
//CALCULATIONS
Q= 3.33*(L-0.*h)*h^1.5
v1= Q/(w*d)
H1= h+v1^2/(2*g)
Q= 3.33*(L-0.1*n*H1)*(H1^1.5-(v1^2/(2*g))^1.5)
//RESULTS
printf (' Discharge over a weir = %.f ft^3/sec',Q)
|
19354095a929d89ac143e7e87cfeea9758245b1a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1691/CH1/EX1.4/Example1_4.sce
|
53a1f24e9464e0248b3f9be0dc5adbcc0d25e383
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 345
|
sce
|
Example1_4.sce
|
//Example 1.4
clc
disp("(a) Gain with feedback")
format(5)
av=1000/(1+(0.05*1000))
disp(av," AV_mid = Av_mid / 1+beta*Av_mid =")
flf=50/(1+(0.05*1000)) // in Hz
disp(flf,"(b) f_Lf(in Hz) = f_L / 1+beta*Av_mid =")
fhf=((50*10^3)*(1+(0.05*1000)))*10^-6 // in MHz
disp(fhf,"(c) f_Hf(in MHz) = f_H * (1+beta*Av_mid) =")
|
d3651cac7a2804ca0a7a1973f1a24b2769f7cac5
|
01ecab2f6eeeff384acae2c4861aa9ad1b3f6861
|
/sci2blif/rasp_design_added_blocks/hhn.sce
|
538971f8dd2ad9f2da04a046bdcbc4dbd0904f4a
|
[] |
no_license
|
jhasler/rasp30
|
9a7c2431d56c879a18b50c2d43e487d413ceccb0
|
3612de44eaa10babd7298d2e0a7cddf4a4b761f6
|
refs/heads/master
| 2023-05-25T08:21:31.003675
| 2023-05-11T16:19:59
| 2023-05-11T16:19:59
| 62,917,238
| 3
| 3
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 150
|
sce
|
hhn.sce
|
style.fontSize=12;
style.displayedLabel="<table> <tr><td align=center>HH<br>Neuron</td></tr></table>";
pal1_1=xcosPalAddBlock(pal1_1,"hhn",[],style);
|
5d9467a74ea3e5267712f435bc94febc82374c0b
|
156b497136c197cef4610c8a85e14f6b02ea7c86
|
/logistic_map2.sce
|
bb1eda5445f94d5f301701f99843cbbd9044fbee
|
[] |
no_license
|
vk9696/Logistic-Map
|
90399826a4f2e68554e28f2e5a92ed8f71687b99
|
30357994a27feeaeef5ea548854c0c8fc795e064
|
refs/heads/main
| 2023-06-03T15:51:50.651028
| 2021-06-25T19:57:48
| 2021-06-25T19:57:48
| 380,340,436
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 4,359
|
sce
|
logistic_map2.sce
|
//BY VINAY KUMAR
//Roll No PH20MSCST11001
//NON LINEAR DYNAMICS PROJECT
//POPULATION VARIATION OVER TIME FOR DIFFERENT RATES
clear
clc
x(1)=0.5 //INITIAL POPULATION
function y=f(x,r)
y=r*x*(1-x)
endfunction
r=0.5
for i=1:1:100
x(i+1)=f(x(i),r)
t(i)=i
t(101)=101
i=i+1
end
b = x
a = t
scf(13)
xtitle("$\huge For \medspace Rate=0.5$")
xlabel("$\huge n$")
ylabel("$\huge x_{n} $")
xstring(70,0.4,["$\huge Population \medspace dies \medspace out!$"])
plot(a,b,'r-.>')
r=1.4
for i=1:1:100
x(i+1)=f(x(i),r)
t(i)=i
t(101)=101
i=i+1
end
b = x
a = t
scf(12)
xtitle("$\huge For \medspace Rate=1.4$")
xlabel("$\huge n$")
ylabel("$\huge x_{n} $")
xstring(70,0.44,["$\huge Attains \medspace equilibrium \medspace at \medspace 0.2857143$"])
plot(a,b,'r-.>')
disp("The equilibrium population for r=1.4 is")
disp(b(101))
r=2
for i=1:1:100
x(i+1)=f(x(i),r)
t(i)=i
t(101)=101
i=i+1
end
b = x
a = t
scf(11)
xtitle("$\huge For \medspace Rate=2$")
xlabel("$\huge n$")
ylabel("$\huge x_{n} $")
xstring(70,1.2,["$\huge Attains \medspace equilibrium \medspace at \medspace 0.5 $"])
plot(a,b,'r-.>')
disp("The equilibrium population for r=2 is")
disp(b(101))
r=2.4
for i=1:1:100
x(i+1)=f(x(i),r)
t(i)=i
t(101)=101
i=i+1
end
b = x
a = t
scf(10)
xtitle("$\huge For \medspace Rate=2.4$")
xlabel("$\huge n$")
ylabel("$\huge x_{n} $")
xstring(90,0.57,["$\huge Attains \medspace equilibrium \medspace at \medspace 0.5833333 $"])
plot(a,b,'r-.>')
disp("The equilibrium population for r=2.4 is")
disp(b(101))
r=2.8
for i=1:1:100
x(i+1)=f(x(i),r)
t(i)=i
t(101)=101
i=i+1
end
b = x
a = t
scf(9)
xtitle("$\huge For \medspace Rate=2.8$")
xlabel("$\huge n$")
ylabel("$\huge x_{n} $")
xstring(90,0.66,["$\huge Attains \medspace equilibrium \medspace at \medspace 0.6428571 $"])
plot(a,b,'r-.>')
disp("The equilibrium population for r=2.8 is")
disp(b(101))
r=3.1
for i=1:1:100
x(i+1)=f(x(i),r)
t(i)=i
t(101)=101
i=i+1
end
b = x
a = t
scf(8)
xtitle("$\huge For \medspace Rate=3.1$")
xlabel("$\huge n$")
ylabel("$\huge x_{n} $")
xstring(90,0.78,["$\huge period-2 \medspace cycle$"])
plot(a,b,'r-.>')
r=3.449
for i=1:1:100
x(i+1)=f(x(i),r)
t(i)=i
t(101)=101
i=i+1
end
b = x
a = t
scf(7)
xtitle("$\huge For \medspace Rate=3.449$")
xlabel("$\huge n$")
ylabel("$\huge x_{n} $")
xstring(90,0.85,["$\huge period-4 \medspace cycle$"])
plot(a,b,'r-.>')
r=3.54409
for i=1:1:100
x(i+1)=f(x(i),r)
t(i)=i
t(101)=101
i=i+1
end
b = x
a = t
scf(6)
xtitle("$\huge For \medspace Rate=3.54409$")
xlabel("$\huge n$")
ylabel("$\huge x_{n} $")
xstring(100,0.85,["$\huge period-8 \medspace cycle$"])
plot(a,b,'r-.>')
r=3.5644
for i=1:1:100
x(i+1)=f(x(i),r)
t(i)=i
t(101)=101
i=i+1
end
b = x
a = t
scf(5)
xtitle("$\huge For \medspace Rate=3.5644$")
xlabel("$\huge n$")
ylabel("$\huge x_{n} $")
xstring(100,0.85,["$\huge period-16 \medspace cycle$"])
plot(a,b,'r-.>')
r=3.568759
for i=1:1:100
x(i+1)=f(x(i),r)
t(i)=i
t(101)=101
i=i+1
end
b = x
a = t
scf(4)
xtitle("$\huge For \medspace Rate=3.568759$")
xlabel("$\huge n$")
ylabel("$\huge x_{n} $")
xstring(100,0.85,["$\huge period-32 \medspace cycle$"])
plot(a,b,'r-.>')
r=3.8
for i=1:1:100
x(i+1)=f(x(i),r)
t(i)=i
t(101)=101
i=i+1
end
b = x
a = t
scf(3)
xtitle("$\huge For \medspace Rate=3.8$")
xlabel("$\huge n$")
ylabel("$\huge x_{n} $")
xstring(100,0.9,["$ \huge period-? \medspace cycle$"])
plot(a,b,'r-.>')
r=4
for i=1:1:100
x(i+1)=f(x(i),r)
t(i)=i
t(101)=101
i=i+1
end
b = x
a = t
scf(2)
xtitle("$\huge For \medspace Rate=4$")
xlabel("$\huge n$")
ylabel("$\huge x_{n} $")
xstring(80,0.8,["$\huge I \medspace do \medspace not \medspace know \medspace what \medspace happened! $"])
plot(a,b,'r-.>')
r=4.2
for i=1:1:100
x(i+1)=f(x(i),r)
t(i)=i
t(101)=101
i=i+1
end
b = x
a = t
scf(1)
xtitle("$\huge For \medspace Rate=4.2$")
xlabel("$\huge n$")
ylabel("$\huge x_{n} $")
xstring(80,0,["$\huge Negative \medspace Population??$"])
plot(a,b,'r-.>')
|
a02f1836e34eaced7d5a1d3f7be1bf20f3879d2b
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1727/CH5/EX5.13/5_13.sce
|
add161667a4826afce04ff46b9b2a10a8a89ce85
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 294
|
sce
|
5_13.sce
|
clc
//Initialization of variables
g=9.81 //m/s^2
rho=10^3 //kg/m^3
rho2=13.6*10^3 //kg/m^3
d1=3.2 //m
d2=0.6 //m
//calculations
z1=d1*rho/rho2
head= d2+z1
V=sqrt(2*g*head)
//results
printf("Efflux velocity = %.2f m/s",V)
//The answer is a bit different due to rounding off error.
|
a31b993709d23d3019cb074003995e6523bea2c2
|
3d1a572d00f8981ac0ba003fd599c98b2b5566cd
|
/P6 - Least Squares Projection.sce
|
675e575bb0c074348ace652b742b4ba0baf675e0
|
[] |
no_license
|
naren951/LINEAR-ALGEBRA-SCILAB
|
972589484e143639ddca434ced39e32b662a6c65
|
035ef1169438816d5580a86cee4bba5a957f378c
|
refs/heads/main
| 2023-07-06T14:55:12.952456
| 2021-08-07T12:42:02
| 2021-08-07T12:42:02
| 393,680,397
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 221
|
sce
|
P6 - Least Squares Projection.sce
|
clc;clear;
A = [1 0;0 1;1 1];
b = [1;1;0];
disp("The given matrix A is:")
disp(A);
disp(b, "b: ");
x = (A'*A)\(A'*b)
C = x(1,1);
D = x(2,1);
disp(C,"C: ");
disp(D,"D: ");
disp("The best fit line is b = C+Dt")
|
dfe85d7ee7d896f225423973cfb336ed9741b7a2
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/377/CH7/EX7.5/7_5.sce
|
ff04dbec64d8d2efdfff0fdd6cf545e1fdafc95f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 233
|
sce
|
7_5.sce
|
a=1.247;
b=0.3;
c=a*b; //say c=ΔEg
printf('\n The value of ΔEg is %feV',c);
d=c*0.6; //say ΔEc=d
printf('\n The value of ΔEc is %feV',d);
e=c-d; //say ΔEv=e
printf('\n The barrier height for valence band is %feV',e);
|
b032bc44437ac28277aa8c40f8e3640dd602d9ec
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/291/CH11/EX11.2a/eg11_2a.sce
|
6b66226bdf45d4c571f71103fc0d03ea47f67981
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 558
|
sce
|
eg11_2a.sce
|
X = [90 100 87 96 101 86 119 118 121 114 113 106];
pi= ones(12,1);
pi= pi/12;
new = X.^2;
npi= sum(X)*pi;
T = sum(new);
T = T/npi;
T = T - sum(X);
disp("When there are 12 regions")
disp(T(1), "The test statistic is")
pvalue = 1- cdfchi("PQ",T(1), 11);
disp(pvalue, "The pvalue is ")
X = [277 283 358 333];
pi= ones(4,1);
pi= pi/4;
new = X.^2;
npi= sum(X)*pi;
T = sum(new);
T = T/npi;
T = T - sum(X);
disp("When there are 4 regions")
disp(T(1), "The test statistic is")
pvalue = 1- cdfchi("PQ",T(1), 3);
disp(pvalue, "The pvalue is ")
|
88bd8028646c3344431bf394432d6cf48bef93db
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2375/CH3/EX3.6/ex3_6.sce
|
fb4d530d9c254dd28ff6756d4ef3e4ad4b16a6bb
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
ex3_6.sce
|
// Exa 3.36
clc;
clear;
close;
format('v',5)
// Given data
R_B = 100;// in k ohm
R_B = R_B * 10^3;// in ohm
R_C = 1;// in k ohm
R_C = R_C * 10^3;// in ohm
V_BE = 0.3;// in V
// S = 1 + Beta and Beta = I_C/I_B;
V_CC = 12;// in V
V_CE = 6;// in V
I_C = (V_CC-V_CE)/R_C;// in A
I_C = I_C * 10^3;// in mA
I_B = (V_CC-V_BE)/R_B;// in A
I_B = I_B * 10^6;// in µA
Beta = (I_C*10^-3)/(I_B*10^-6);
S = 1 + Beta;
disp(S,"The stability factor is");
|
ca9701208a33ecaca23e2be6c3eb05aa55d1ab33
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3647/CH1/EX1.4/Ex1_4.sce
|
9f1a141e5199c08e6e208996d0790a6d638ea151
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 314
|
sce
|
Ex1_4.sce
|
//Tension Coupling calculation
clc
//initialisation of variables
w=30//tonf
m=100//tonf
w1=150//tonf
f=6000//lbf
h=2240//lbf
q=105//lbf
p=135//lbf
a=711.7//lbf
//CALCULATIONS
M=(q*h)/m//lbf
R=(w*h)/w1//lbf
T=M+R//lbf
A=f-T//lbf
T1=R+a//lbf
//RESULTS
printf('the Tension Coupling is=% f lbf',T1)
|
2caf0026288979675a86c7527dcbdf1c3dc901d2
|
01ecab2f6eeeff384acae2c4861aa9ad1b3f6861
|
/sci2blif/rasp_design_added_blocks/gnd_i.sce
|
d39c21d5b24b5a12492553d27e6aef05e99768e6
|
[] |
no_license
|
jhasler/rasp30
|
9a7c2431d56c879a18b50c2d43e487d413ceccb0
|
3612de44eaa10babd7298d2e0a7cddf4a4b761f6
|
refs/heads/master
| 2023-05-25T08:21:31.003675
| 2023-05-11T16:19:59
| 2023-05-11T16:19:59
| 62,917,238
| 3
| 3
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 141
|
sce
|
gnd_i.sce
|
style.fontSize=12;
style.displayedLabel="GND";
pal9 = xcosPalAddBlock(pal9,"gnd_i",[],style);
pal8 = xcosPalAddBlock(pal8,"gnd_i",[],style);
|
f7fac63af21d3e0b2d0a8d0da358a08db9a1944f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2699/CH13/EX13.41/Ex13_41.sce
|
09ee02d810e8178c19d569b203e2fd72a7ee5974
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 250
|
sce
|
Ex13_41.sce
|
//EX13_41 Pg-23
clc
clear
printf("16''s complement (A8C)_16 is : ")
x=['A8C'];
y=hex2dec(x);//hexadecimal to decimal conversion//
z=bitcmp(y,12);//one's complement of the number//
z=z+1;
z2=dec2hex(z)//16's complement of the number//
printf("%s",z2)
|
493f0cab3a8533072ea0299bc94876e0c5327804
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3035/CH4/EX4.12/Ex4_12.sce
|
960dd8d183e5734d25c5964a23dd81ab71a0cee7
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,061
|
sce
|
Ex4_12.sce
|
// Variable Declaration
R = 0.16 //Resistance(ohm)
L = 1.26*10**(-3) //Inductance(H)
C = 8.77*10**(-9) //Capacitance(F)
l = 200.0 //Length of line(km)
P = 50.0 //Power(MVA)
pf = 0.8 //Lagging power factor
V_r = 132000.0 //Receiving end voltage(V)
f = 50.0 //Frequency(Hz)
// Calculation Section
w = 2 * %pi * f
z = complex(R, w*L) //Series impedance per phase per km(ohm)
y = complex(0, w*C) //Shunt admittance per phase per km(mho)
g = (y*z)**(0.5) //propagation constant(/km)
gl = g * l
Z_c = (z/y)**(0.5) //Surge impedance(ohm)
cosh_gl = cosh(gl)
sinh_gl = sinh(gl)
A = cosh_gl
B = Z_c * sinh_gl
C = (sinh_gl/Z_c)
D = cosh_gl
fi = acos(pf) //Power factor angle(radians)
V_R = V_r/(3**0.5) //Receiving end voltage(V)
I_R = (P*10**6/((3**0.5)*V_r))*(pf - complex(0,sin(fi)))//Receiving end current(A)
V_S = (A*V_R + B*I_R) //Sending end voltage(V/phase)
V_S_L = V_S * (3**0.5)*10**-3 //Sending end line voltage(kV)
I_S = C*V_R + D*I_R //Sending end current(A)
pf_S = cos((phasemag(I_S)*%pi/180) - (phasemag(V_S)*%pi/180)) //Sending end power factor
P_S = abs(V_S*I_S)*pf_S*10**-6 //Sending end power/phase(MW)
P_R = (P/3)*pf //Receiving end power/phase(MW)
P_L = 3*(P_S - P_R) //Total line loss(MW)
// Result Section
printf('Sending end voltage , V_S = %.2f∠%.2f° kV/phase' ,abs(V_S*10**-3),phasemag(V_S))
printf('Sending end line voltage = %.2f kV' ,abs(V_S_L))
printf('Sending end current , I_S = %.2f∠%.2f° A' ,abs(I_S),phasemag(I_S))
printf('Sending end power factor = %.2f lagging' ,pf_S)
printf('Total transmission line loss = %.3f MW' ,P_L)
printf('NOTE : Answers are slightly different because of rounding error.')
|
214c1a680af5f8a67d9b23a3e90b775b33e12c3a
|
1573c4954e822b3538692bce853eb35e55f1bb3b
|
/DSP Functions/allpasslp2mb/test_7.sce
|
ad800185d910a86a15a2ca334061e843a89020d8
|
[] |
no_license
|
shreniknambiar/FOSSEE-DSP-Toolbox
|
1f498499c1bb18b626b77ff037905e51eee9b601
|
aec8e1cea8d49e75686743bb5b7d814d3ca38801
|
refs/heads/master
| 2020-12-10T03:28:37.484363
| 2017-06-27T17:47:15
| 2017-06-27T17:47:15
| 95,582,974
| 1
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 237
|
sce
|
test_7.sce
|
// Test # 7 : Input Argument #1 range test
exec('./allpasslp2mb.sci',-1);
[n,d]=allpasslp2mb(1.1,0.9);
//!--error 10000
//Wo must lie between 0 and 1
//at line 41 of function allpasslp2mb called by :
//[n,d]=allpasslp2mb(1.1,0.9)
|
6046070f539a4286112c4507dc329018cef94fc5
|
99b4e2e61348ee847a78faf6eee6d345fde36028
|
/Toolbox Test/cummin/cummin13.sce
|
3fda7f02126092802c164e0d24c5a2b948e8f1cc
|
[] |
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
| 92
|
sce
|
cummin13.sce
|
v=[1 2 3 4 5 6];
m=cummin(v,2);
disp(m);
//output
// 1. 1. 1. 1. 1. 1.
|
9ed15b09c3752837155bc96419669fa9e49d0683
|
6227c5ef4e1c5d72cdebd6eac81f82161dda7e17
|
/digi_dc_dc/Scilab/makeLibraries.sce
|
8a2098a1acb32a22d478d4aeb0ac1df3ced91bac
|
[] |
no_license
|
maxsimmonds1337/Scilab
|
b4e8a03a9fbeda4d8f6e51e07d205bcf51addce8
|
b413659e2b697565c24ad440d158f5bd28203570
|
refs/heads/master
| 2022-11-04T23:17:50.045864
| 2020-06-13T20:35:24
| 2020-06-13T20:35:24
| 272,081,285
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 520
|
sce
|
makeLibraries.sce
|
//Script to generate all the libraries
genlib('AuxiliaryFunctions','AuxiliaryFunctions',%t)
genlib('ConverterModels','ConverterModels',%t)
genlib('DETmodels','DETmodels',%t)
genlib('PIDtuning','PIDtuning',%t)
genlib('Quantization','Quantization',%t)
genlib('VHDLgeneration','VHDLgeneration',%t)
genlib('VHDLgeneration','VHDLgeneration',%t)
genlib('ECSSLimits','ECSSLimits',%t)
genlib('AveragedModels','AveragedModels',%t)
genlib('AnalogRegulators','AnalogRegulators',%t)
genlib('Thermal','Thermal',%t)
librarieslist()
|
739b97071fe1c9b8588ebea39283b7de619a7658
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/659/CH9/EX9.6/exm9_6.sci
|
dc947e4213784a41ea5b1794b4f54dd81a61a0f7
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 731
|
sci
|
exm9_6.sci
|
// Example 9.6
//Write a program that uses a function to sort an array of integers.
funcprot(0);
function[x]=sort(m,x) //Passing an array i.e. marks to function sort()
for i=1:m // i repesents number of passes
for j=2:m-i+1 // j represents number of comperision in each pass
if(x(j-1)>=x(j)) then
t=x(j-1);
x(j-1)=x(j);
x(j)=t;
end
end
end
endfunction
marks=int16([40,90,73,81,35]); //creating an array named marks of 5 integers
disp("Marks before sorting");
disp(marks);
x=sort(5,marks); //calling sort() function
disp("Marks after sorting");
disp(x);
|
25a1909751f09da7c2949649f51fa05d2332aaf6
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/494/CH19/EX19.3/19_3.sce
|
aaa3aab85433811337a82dd8299e63315ab444d0
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,248
|
sce
|
19_3.sce
|
//All the quantities are expressed in SI units
Me = 2.94; //mach number of the flow over the upper plate
ue = 1000;
Te = 288; //temperature of the upper plate
ue = 1000; //velocity of the upper plate
S = 40; //plate planform area
Pr = 0.71; //Prandlt number of air at standard condition
gam = 1.4; //ratio of specific heats
//the recovery factor is given as
r = Pr^(1/3);
//for M = 2.94
T_aw = Te*(1+r*(2.74-1));
T_w = T_aw; //since the flat plate has an adiabatic wall
//from the Meador-Smart equation
T_star = Te*(0.5*(1+T_w/Te) + 0.16*r*(gam-1)/2*Me^2);
//from the equation of state
rho_star = p_star/R/T_star;
//from eq.(15.3)
mue_star = mue0*(T_star/T0)^1.5*(T0+110)/(T_star+110);
//thus
Re_c_star = rho_star*ue*c/mue_star;
//from eq.(18.22)
Cf_star = 0.02667/Re_c_star^0.139;
//hence, the frictional drag on one surface of the plate is
D_f = 1/2*rho_star*ue^2*S*Cf_star;
//thus, the total frictional drag is given by
D = 2*D_f;
printf("\nRESULTS\n---------\nThe total frictional drag is:\n D = %5.0f N\n",D)
|
719cc9912bf28cfccdac707319961cbea3bbb167
|
6b85d1958ff11075634ed9e0f6dbef2de9548f1b
|
/NeuralNetwork.sce
|
111551a63f0c35042cb521c99f957bda3eb1dcfb
|
[
"Unlicense"
] |
permissive
|
ademarazn/REDES_NEURAIS
|
8a048c13aab33daa4068f52e18b263cc8325884f
|
a9a35744476d1f7e8405df04d5e4a9f8e4ed4595
|
refs/heads/master
| 2021-05-06T13:09:56.514632
| 2018-04-25T18:49:30
| 2018-04-25T18:49:30
| 113,248,743
| 1
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 783
|
sce
|
NeuralNetwork.sce
|
clear;
clc;
exec(get_absolute_file_path("NeuralNetwork.sce")+"ANN_Toolbox\"+"loader.sce");
rand('seed',0);
N = [2,2,1];
x = [0.9823, 0.8478002;
0.9012, 0.8403707;
0.8222, 0.8308272;
1.0000, 0.8497132;
0.4444, 0.5937547;
0.3354, 0.3076317;
0.0332, 0.0263892;
0.0221, 0.0252937;
0.0215, 0.0252294;
0.0123, 0.0242873;
0.0092, 0.0239667;
0.0043, 0.0235089;
0.9966, 0.8494233;
0.0009, 0.0232305;
0.0000, 0.0231491]';
t = [1 1 1 1 1 0 0 0 0 0 0 0 0 0 0];
lp = [0.1,0] ;
W = ann_FF_init(N);
T = 500;
W = ann_FF_Std_online(x,t,N,W,lp, T);
y = ann_FF_run(x,N,W);
disp(y);
s = ([]);
s = [x(2,:)',y'];
plot(x(2,:),"-ko");
plot(y,".-.r");
legend('Real', 'Teste');
|
d94f00648cd86c3aa992470f50c393c25381de00
|
9be14f9dc9e5806891ba48b7066c43dd043ac276
|
/src/test/resources/correspondence.tst
|
6dab04034d440e24426b20dd7720edf6bbc16b8f
|
[
"Apache-2.0"
] |
permissive
|
nhsdigitalmait/TKW-x
|
58c001ed684a2b7471039febed0f393fc8b953c2
|
7e90cb035cd65464d42085870ce45a6aeeef53e1
|
refs/heads/master
| 2022-11-23T14:38:47.421837
| 2022-11-22T08:45:48
| 2022-11-22T08:45:48
| 232,580,623
| 0
| 1
|
Apache-2.0
| 2022-01-12T15:57:29
| 2020-01-08T14:22:29
|
Java
|
UTF-8
|
Scilab
| false
| false
| 3,742
|
tst
|
correspondence.tst
|
SCRIPT TKWAutotestManager_v114
# Generated automatically on: 20160125111641891
# Merged Files:
# TKW_ROOT/contrib/TKWAutotestManager/tstp/WebServices/host/CO/CO_AMB_PR_XML.tstp
# NB this references the *internal* autotest simulator rules applied when listening for async messages not the rule set autotest applies which are referenced in the main properties file
SIMULATOR TKW_ROOT/config/ITK_Acknowledgements/simulator_config/test_tks_rule_config.txt
VALIDATOR TKW_ROOT/config/ITK_Correspondence/validator_config/Correspondence_20111010_validator.conf
STOP WHEN COMPLETE
BEGIN SCHEDULES
CO_AMB_PR_XML TESTS CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_test1 CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_test2 CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_test3 CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_test4 CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_test5 CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_test6
END SCHEDULES
BEGIN TESTS
CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_test1 SEND_TKW CO_AMB_PR_XML TO http://127.0.0.1:5000/syncsoap FROM http://127.0.0.1:4000/syncsoap SYNC ok WITH_PROPERTYSET base+webservices TEXT "CO_AMB_PR_XML_1: HTTP Response must be HTTP 200"
CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_test2 CHAIN SYNC respexists TEXT "CO_AMB_PR_XML_2: "SimpleMessageResponse" must exist in the SOAP Body"
CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_test3 CHAIN SYNC respok TEXT "CO_AMB_PR_XML_3: "SimpleMessageResponse" should contain "OK""
CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_test4 CHAIN SYNC CO_AMB_PR_XML___actioncorrect TEXT "CO_AMB_PR_XML_4: Action element must equal input Action suffixed with response"
CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_test5 CHAIN SYNC synctimestampok TEXT "CO_AMB_PR_XML_5: Created Timestamp must not be less than the Created Timestamp Element in the input message"
CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_test6 CHAIN SYNC syncmessageidsok TEXT "CO_AMB_PR_XML_6: The MessageID in the SOAP Header must not equal the MessageID in the input message"
END TESTS
BEGIN MESSAGES
CO_AMB_PR_XML USING CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_template WITH NULL SOAPACTION urn:nhs-itk:services:201005:SendCDADocument-v2-0
END MESSAGES
BEGIN TEMPLATES
CO_AMB_PR_XML_urn:nhs-itk:interaction:primaryRecipientAmbulanceServicePatientReport-v1-0_template TKW_ROOT/contrib/ITK_2_01_Test_Messages/Correspondence/Ambulance/POCD_MT030001UK01_SOAPandDIST_Primary.xml
END TEMPLATES
BEGIN PROPERTYSETS
webservices
SET tks.HttpTransport.listenport 4000
SET tks.HttpTransport.listenaddr 127.0.0.1
END PROPERTYSETS
BEGIN DATASOURCES
END DATASOURCES
BEGIN PASSFAIL
CO_AMB_PR_XML___actioncorrect synchronousxpath /soap:Envelope/soap:Header/wsa:Action matches "^urn:nhs-itk:services:201005:SendCDADocument-v2-0Response$"
ok httpok
respexists synchronousxpath /soap:Envelope/soap:Body/itk:SimpleMessageResponse exists
respok synchronousxpath /soap:Envelope/soap:Body/itk:SimpleMessageResponse/text() matches "^(OK|TEST_HARNESS_ID.*)$"
#syncmessageidsok syncmessageidsdiffer
synctimestampok synctimestampislater
END PASSFAIL
|
1b619537515370405d2510a0210d215693150b38
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3440/CH3/EX3.5/Ex3_5.sce
|
917d78f4802546ae37932d2091363a1689a323af
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 375
|
sce
|
Ex3_5.sce
|
clc
T=300 //K
k=8.617*10^-5 //eV/K
q=1.6*10**-19 //C
NA=5*10^16 //cm^-3
ND=10^16 //cm^-3
A=2*10^-4//cm^2
V=4//V
ni=9.65*10^9//cm^-3
epsilonx=8.854*10^-14 //F/cm
Dn=21//cm^2/sec
Dp=10//cm^2/sec
taup=5*10^-7//sec
taun=5*10^-7//sec
Lp=sqrt(Dp*taup)
Js=q*ni^2*[(1/ND)*sqrt(Dp/taup)+(1/NA)*sqrt(Dn/taun)]
disp(Js,"Js in A/cm=")
Is=A*Js
disp(Is,"Is in A =")
|
677f6baa182df6e41c75d1ac725feca0f5b1a1d8
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/569/CH3/EX3.32/3_32.sci
|
01e0f6ae3bce05ac0c38c36775f7ea8050730d74
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 396
|
sci
|
3_32.sci
|
//calculate standard deviation
clc;
x=[.9 2.3 3.3 4.5 5.7 6.7];
y=[1.1 1.6 2.6 3.2 4 5];
n=6;
a=((n*sum(x.*y)-(sum(x)*sum(y)))/((sum(x^2)*n)-sum(x)^2));
b=((sum(y)*sum(x^2)-(sum(x)*sum(x.*y)))/((sum(x^2)*n)-sum(x)^2));
sdy=sqrt((1/n)*sum((a*x+b-y)^2));
sdx=sdy/a;
sa=sqrt(n/(n*sum(x^2)-sum(x)^2))*sdy;
sb=sqrt(sum(x^2)/(n*sum(x^2)-sum(x)^2))*sdy;
disp(sa,'s_a');
disp(sb,'s_b');
|
3d02e78695f504fcff373b21bf473a8a5e0efd08
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1523/CH3/EX3.30/3_30.sce
|
cd8090d4b4f0891fcf35d2742877b238ce701329
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
3_30.sce
|
//Network Theorem 1
//page no-3.35
//example3.30
//calculation of Isc (short-circuit current)
disp("Applying KVL to mesh 1:");
disp("5*I1-2*I2=-2");....//equation 1
disp("Applying KVL to mesh 2:");
disp("4*I2-2*I3=-1");....//equation 2
disp("Applying KVL to mesh 3:");
disp("-2*I1-2*I2+4*I3=0");....//equation 3
disp("solving these equations we get :");...//solving equations in matrix form
A=[5 -2 0;0 4 -2 ;-2 -2 4];
B=[-2 -1 0]'
X=inv(A)*B;
disp(X);
disp("I1 = -0.64A");
disp("I2 = -0.55A");
disp("I3 = -0.59A");
a=-0.64;
b=-0.55;
c=-0.59;
printf("\nIsc = I3 = %.2f A",a);
//calculation of Rn (norton's resistance)
disp("replacing the voltage source with short circuit ");
z=2.2;
printf("\nRn = %.1f Ohm",z);
//calculation of IL (load current)
n=1;
i=-c*(z/(z+n));
printf("\nIL = %.2f A",i);
|
66d755dbe0ba38568eaa6b860931fc01705e601d
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2309/CH4/EX4.13/Ex4_13.sce
|
ed7fdd777edf29e06e8ae26faf92115bee58ac5a
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 659
|
sce
|
Ex4_13.sce
|
// Chapter 4 Example 13
//==============================================================================
clc;
clear;
// input data
l = 0.1*10^-9; // length of one dimensional box
h = 6.625*10^-34 // plancks constant in Jsec
m = 9.11*10^-31 // mass of electron in Kg
n = 1; // for ground state
e = 1.6*10^-19 // charge of electron in columbs
// Calculations
E = (h^2 * n^2)/(8*m*l^2 *e ) // Energy of electron in eV
// Output
mprintf('Energy of an electron = %3.3f eV',E);
//==============================================================================
|
6ce0ab0ee1c1355e816d854122cc37f9700bc9bf
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/215/CH15/EX15.1/ex15_1.sce
|
c500be9d6f17ea96da61cc8d2f6cd13f1f656538
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 360
|
sce
|
ex15_1.sce
|
clc
//Example 15.1
//Install Symbolic toolbox
//Calculate the voltage
//From figure 15.3
//Writing the KVL equation for the voltage and taking the Laplace transform
syms s
s=%s
disp('V=(2*s*(s+9.5)/((s+8)*(s+0.5)))-2')
//On solving
V=(2*s-8)/((s+8)*(s+0.5))
Vp=pfss (V)
Vp1=ilaplace(Vp(1))
Vp2=ilaplace(Vp(2))
v=Vp1+Vp2
disp(v,'v(t)=')
|
f7477937b06a2d38f664fa8b1d6063b59ffa0bf5
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/842/CH9/EX9.37/Example9_37.sce
|
7b0300cceb66ace0c9af123ad11791a1c4bbaa36
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 372
|
sce
|
Example9_37.sce
|
//clear//
//Example9.37:Unilateral Laplace Transform:Solving Differential Equation
//Y(S) = alpha/(s(s+1)(s+2))
s = %s;
syms t;
alpha = 1; //Alpha value assigned as some constant one
[A] = pfss(alpha/(s*(s+1)*(s+2)));
F1 = ilaplace(A(1),s,t)
F2 = ilaplace(A(2),s,t)
F3 = ilaplace(A(3),s,t)
F = F1+F2+F3
disp(F)
//result
// (-%e^-t)+((%e^-(2*t))/2)+(1/2 )
|
79ce3439530d4272ddf915ec58d9276a0919c629
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/62/CH4/EX4.23/ex_4_23.sce
|
9ea167eaafe9baa3c00117e41106c52966eb8d70
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 928
|
sce
|
ex_4_23.sce
|
clc;
z = %z;
syms n z1 ;
X =z/((z+1)*(z+3));
X1 = denom(X);
zp = roots(X1);
X1 = z1/((z1+1)*(z1+3));
F1 = X1*(z1^(n-1))*(z1-zp(1));
F2 = X1*(z1^(n-1))*(z1-zp(2));
x1 = limit(F1,z1,zp(1));
disp(x1,'x1[n]=')
x2 = limit(F2,z1,zp(2));
disp(x2,'x2[n]=')
xt = x1+x2;
disp(xt*'u(n)','xt[n]=')
//x[n]=2*xt[n-1]+xt[n-3]+3*xt[n-5];F1 = X1*(z1^(n-1))*(z1-zp(1));
F1 = X1*(z1^(n-2))*(z1-zp(1));
F2 = X1*(z1^(n-2))*(z1-zp(2));
x1 = limit(F1,z1,zp(1));
disp(x1,'x1[n]=')
x2 = limit(F2,z1,zp(2));
disp(x2,'x2[n]=')
xt1 = x1+x2;
F1 = X1*(z1^(n-4))*(z1-zp(1));
F2 = X1*(z1^(n-4))*(z1-zp(2));
x1 = limit(F1,z1,zp(1));
disp(x1,'x1[n]=')
x2 = limit(F2,z1,zp(2));
disp(x2,'x2[n]=')
xt3 = x1+x2;
F1 = X1*(z1^(n-6))*(z1-zp(1));
F2 = X1*(z1^(n-6))*(z1-zp(2));
x1 = limit(F1,z1,zp(1));
disp(x1,'x1[n]=')
x2 = limit(F2,z1,zp(2));
disp(x2,'x2[n]=')
xt5 = x1+x2;
disp(2*xt1*'u(n-1)'+xt3*'u(n-3)'+3*xt5*'u(n-5)',"x[n]")
|
9fc153232fbb521203ac629bf2c4409155fc7e69
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1535/CH8/EX8.11/Ch08Ex11.sci
|
77949a9b682eb3f054f84b40cf3176db6c7caddd
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 771
|
sci
|
Ch08Ex11.sci
|
// Scilab Code Ex8.11: Page-175 (2010)
c = 1; // For simplicity assume speed of light to be unity, m/s
m0 = 9.1e-031; // Mass of the electron, kg
E0 = 0.512; // Rest energy of electron, MeV
T = 10; // Kinetic energy of electron, MeV
E = T + E0; // Total energy of electron, MeV
// From Relativistic mass-energy relation
// E^2 = c^2*p^2 + m0^2*c^4, solving for p
p = sqrt(E^2-m0^2*c^4)/c; // Momentum of the electron, MeV
// As E = E0/sqrt(1-(u/c)^2), solving for u
u = sqrt(1-(E0/E)^2)*c; // Velocity of the electron, m/s
printf("\nThe momentum of the electron = %4.1f/c MeV", p);
printf("\nThe velocity of the electron = %6.4fc", u);
// Result
// The momentum of the electron = 10.5/c MeV
// The velocity of the electron = 0.9988c
|
a2380855d953649906045439fba97945a5c765a1
|
d65667bd6da157e725e5083a95c7a5e3c5e50371
|
/hdf5/HDF5Examples-0.1.1-Source/C/H5D/testfiles/h5ex_d_soint.tst
|
9517cf260a8492c715f54c520e2fe960f533a334
|
[] |
no_license
|
DCC-Lab/Umuco
|
4748640ddd5869f193303057445fccbf2e1cc6c5
|
41c38cd6c8e8d771708959eb02c9dee054148cbc
|
refs/heads/master
| 2020-08-07T01:11:31.456247
| 2019-02-24T18:16:16
| 2019-02-24T18:16:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 71
|
tst
|
h5ex_d_soint.tst
|
Filter type is: H5Z_FILTER_SCALEOFFSET
Maximum value in DS1 is: 1890
|
148258e37aad61ca6b433c7ff6d44d928d4e4f2f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/929/CH11/EX11.15/Example11_15.sce
|
ec7108cdd3103db4526158e1395ffecddb379c95
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
Example11_15.sce
|
//Example 11.15
clear;
clc;
TAmax=60;
Iomax=0.8;
VImax=12;
TJmax=125;
Vo=5;
thetaJAmax=(TJmax-TAmax)/[(VImax-Vo)*Iomax];
thetaJC=5;
thetaCA=thetaJAmax-thetaJC;
thetaCS=0.6;
thetaSA=thetaCA-thetaCS;
printf("thetaSA=%.f degCelsius/W",thetaSA);
printf("\nAccording to the catalogs, a suitable heatsink example is the IERC HP1 series,");
printf("\nwhose thetaSA rating is in the range of 5 degCelsius/W to 6 degCelsius/W.");
|
a66d54c3c87fba4be765cbbdda15631a46d83cc9
|
1bb72df9a084fe4f8c0ec39f778282eb52750801
|
/test/G04.prev.tst
|
8bdd560899ed255941b154cad966495ce149ee78
|
[
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
gfis/ramath
|
498adfc7a6d353d4775b33020fdf992628e3fbff
|
b09b48639ddd4709ffb1c729e33f6a4b9ef676b5
|
refs/heads/master
| 2023-08-17T00:10:37.092379
| 2023-08-04T07:48:00
| 2023-08-04T07:48:00
| 30,116,803
| 2
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 825
|
tst
|
G04.prev.tst
|
mdiv s = a^5 + 5*a^4*b + 10*a^3*b^2 + 10*a^2*b^3 + 5*a*b^4 + b^5: (lts: + b^5) / (ltf[0]: + b^2) = (quot: + b^3), rest 0
mdiv s = a^5 + 5*a^4*b + 10*a^3*b^2 + 9*a^2*b^3 + 7*a*b^4: (lts: + 7*a*b^4) / (ltf[0]: + b^2) = (quot: + 7*a*b^2), rest 0
mdiv s = a^5 + 5*a^4*b + 3*a^3*b^2 + 23*a^2*b^3: (lts: + 23*a^2*b^3) / (ltf[0]: + b^2) = (quot: + 23*a^2*b), rest 0
mdiv s = a^5 - 18*a^4*b + 49*a^3*b^2: (lts: + 49*a^3*b^2) / (ltf[0]: + b^2) = (quot: + 49*a^3), rest 0
mdiv s = - 48*a^5 + 80*a^4*b: (lts: + 80*a^4*b) / (ltf[0]: + b^2) = (quot: null), rest 0
multipleDivide: a^5 + 5*a^4*b + 10*a^3*b^2 + 10*a^2*b^3 + 5*a*b^4 + b^5 = + (49*a^3 + 23*a^2*b + 7*a*b^2 + b^3) * (a^2 - 2*a*b + b^2) + [Rest = - 48*a^5 + 80*a^4*b]
multiDivide(a^5 + 5*a^4*b + 10*a^3*b^2 + 10*a^2*b^3 + 5*a*b^4 + b^5) = - 48*a^5 + 80*a^4*b
|
a617ba8fd0548cd48c2aab9d0c6a9b9703210852
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2219/CH13/EX13.13/Ex13_13.sce
|
f5a8f99b74b383a15312f5efac7b2223e7165ea2
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 589
|
sce
|
Ex13_13.sce
|
//Chapter 13 example 13
//------------------------------------------------------------------------------
clc;
clear;
// Given data
MTBF2 = 20000; // microwave Tx output MTBF figure
MTBF3 = 60000; // power amplifier portion of MTBF
// Calculations
MTBF1 = (MTBF2*MTBF3)/(MTBF3-MTBF2);
impr = MTBF1-MTBF2 // improvement in MTBF if power amplifier not used
// output
mprintf('Improvement in MTBF of transmitter if power amplifier is not used = %d hours',impr);
//------------------------------------------------------------------------------
|
47c45748219840fe4f6b635de09515a9735a6a64
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1061/CH3/EX3.15/Ex3_15.sce
|
e231cd5ab3dc457606b8337e6e50fec1a38e7890
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 416
|
sce
|
Ex3_15.sce
|
//Ex:3.15
clc;
clear;
close;
n1=1.49;// core refractive index
n2=1.47;// cladding refractive index
a=2;// radius in um
dl=(n1-n2)/n1;// index difference
v_c=2.405;
y_c=(2*3.14*a*n1*(2*dl)^(0.5))/v_c;// cut off wavelength in um
Y=1.31;// wavelength in um
A=(v_c*Y)/(2*3.14*n1*(2*dl)^(0.5));// min core radius in um
printf("The cut off wavelength =%f um", y_c);
printf("\n The min core radius =%f um", A);
|
342214af24f9fbffe92b93493ec4d55aac7746f5
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2084/CH12/EX12.10/12_10.sce
|
b9c3494dc6d8bcb81dfec86d724ce3b8c2fe4331
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 522
|
sce
|
12_10.sce
|
//developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 12.10
//calculation of the value of torsional constant of the wire
//given data
m=200*10^-3//mass(in kg) of the disc
r=5*10^-2//radius(in m) of the disc
T=0.2//time period(in s) of oscillation
//calculation
I=m*r*r/2//moment of inertia of the disc about the wire
k=4*%pi^2*I/T^2//from formula of time period......T = 2*%pi*sqrt(I/k)
printf('the value of torsional constant of the wire is %3.2f kg-m^2/s^2',k)
|
0713d8d162948ffdfe840e44f1151200d27aae25
|
1489f5f3f467ff75c3223c5c1defb60ccb55df3d
|
/tests/test_ods_fsed_1_b.tst
|
1077db271deeeb8e22291e5ec62dfefe969523cd
|
[
"MIT"
] |
permissive
|
ciyam/ciyam
|
8e078673340b43f04e7b0d6ac81740b6cf3d78d0
|
935df95387fb140487d2e0053fabf612b0d3f9e2
|
refs/heads/master
| 2023-08-31T11:03:25.835641
| 2023-08-31T04:31:22
| 2023-08-31T04:31:22
| 3,124,021
| 18
| 16
| null | 2017-01-28T16:22:57
| 2012-01-07T10:55:14
|
C++
|
UTF-8
|
Scilab
| false
| false
| 1,817
|
tst
|
test_ods_fsed_1_b.tst
|
** File Info
Version: 1.0
Num Logs = 0
Num Trans = 0
Num Writers = 0
Init Tranlog = 0
Total Entries = 1
Tranlog Offset = 0
Transaction Id = 2
Index Free List = n/a
Total Size of Data = 256
Data Transformation Id = 1
Index Transformation Id = 2
** Entry Info for: 0
num: 0000000000000000 pos: 0000000000000000 len: 0000000000000100
txn: 0000000000000001 txo: 0000000000000000 flags: lk=0 tx=0
0000000000000000 01 37 00 55 01 00 00 00 00 00 00 00 00 00 00 00 .7.U............
0000000000000010 00 00 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ................
0000000000000020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
0000000000000030 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
0000000000000040 ff ff ff ff ff ff 00 00 00 00 00 00 00 00 00 00 ................
0000000000000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000000000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000000000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000000000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0000000000000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000000000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000000000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000000000000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000000000000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000000000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000000000000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
** Freelist Info
No freelist entries.
|
0993894c976cff954e2db7c6af82f7b7f91b33d3
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/98/CH4/EX4.15/example4_15.sce
|
6e461634e46fc767b9086a5efc1ca59fe46947fe
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,294
|
sce
|
example4_15.sce
|
//Chapter 4
//Example 4_15
//Page 82
clear;clc;
cc_h=2100;
cc_s=1200;
rc_h=0.032;
rc_s=0.05;
id_s=0.09;
id_h=0.075;
resc_h=0.33;
resc_s=0.25;
units=40*10^6;
u=8760;
printf(" x kW - maximum demand \ny -annual load factor at which cost for both stations are same \nUnits generated per annum = %dxy kWh \n\n", u);
ic_s=1+resc_s;
ic_h=1+resc_h;
printf("Installed capacity of steam plant = %.2fx kW \n", ic_s);
printf("Installed capacity of hydro plant = %.2fx kW \n\n", ic_h);
printf("STEAM STATION: \n");
ccs=cc_s*ic_s;
ids=id_s*ccs;
rcs=rc_s*8760;
printf("Capital cost = Rs. %dx \n", ccs);
printf("Interest and depreciation = Rs. %dx \n", ids);
printf("Running cost/annum = Rs %dxy \n", rcs);
printf("Overall cost/kWh = Rs (%dx+%dxy)/(%dxy) \n\n", ids, rcs, u);
printf("HYDRO STATION: \n");
cch=cc_h*ic_h;
idh=id_h*cch;
rch=rc_h*8760;
printf("Capital cost = Rs. %dx \n", cch);
printf("Interest and depreciation = Rs. %dx \n", idh);
printf("Running cost/annum = Rs %dxy \n", rch);
printf("Overall cost/kWh = Rs (%dx+%dxy)/(%dxy) \n\n", idh, rch, u);
y=47.46;
printf("Equating operating cost, Load factor y = %.2f %% \n", y);
md=units/8760/y*100;
printf("Max demand = x = %.2f*10^3 kW \n", md/1000);
cost=(ids*md+rcs*md*y/100);
printf("Cost of generation = Rs. %.2f*10^3 \n\n", cost/1000);
|
3c84bdde48c4eb52101cc5ab1d0717c0adebdf70
|
90ee2315583fd980367421b5516fc008eb133c22
|
/MENU/testscripts/mqsc_test.tst
|
126173c4267818fd95ef1478eb89850d28be938a
|
[] |
no_license
|
skmpersonal/docs
|
8503f989d3eff41238c2f756b924e6530ec8e26c
|
ed8c9b3b5a3a9c1e413ceac2ba5016aa29743014
|
refs/heads/master
| 2021-01-17T05:32:59.924577
| 2017-07-07T19:26:42
| 2017-07-07T19:26:42
| 96,567,160
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 133
|
tst
|
mqsc_test.tst
|
DEFINE CHL('TEST') +
CHLTYPE(SVRCONN) +
MCAUSER('') +
SSLCIPH('') +
SCYEXIT('') +
NOREPLACE
|
80e102775aa255d9ab318efce398da3608f99fba
|
9b68b3d73b63ebcbfe18cc9a4aa8e91c84833a84
|
/tests/libs/hdf5/test-env-variables-new/FORTRAN/H5T/testfiles/112/h5ex_t_enumatt_F03.tst
|
94cb9d335416373004e7f89118a419dfeaf65b23
|
[
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-llnl",
"LicenseRef-scancode-hdf4",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] |
permissive
|
openhpc/ohpc
|
17515db5082429eb9f250f12bf242b994beb715f
|
725a1f230434d0f08153ba1a5d0a7418574f8ae9
|
refs/heads/3.x
| 2023-08-19T02:15:14.682630
| 2023-08-18T19:33:51
| 2023-08-18T19:34:18
| 43,318,561
| 827
| 247
|
Apache-2.0
| 2023-09-14T01:22:18
| 2015-09-28T18:20:29
|
C
|
UTF-8
|
Scilab
| false
| false
| 244
|
tst
|
h5ex_t_enumatt_F03.tst
|
A1:
[ SOLID SOLID SOLID SOLID SOLID SOLID SOLID ]
[ SOLID LIQUID GAS PLASMA SOLID LIQUID GAS ]
[ SOLID GAS SOLID GAS SOLID GAS SOLID ]
[ SOLID PLASMA GAS LIQUID SOLID PLASMA GAS ]
|
8664343eb3137df1c057d8ae00c7116cedbc1716
|
935d5880888b1ef01c8dddaf85af2be07d7940e2
|
/AdaptiveSwarmRobotsSimulation-ASRS/stages/StageCommStreet.sce
|
09f80fb1fa126e67869968c57054d42c619b52a2
|
[] |
no_license
|
google-code/asrs
|
c3b35545bce8ae38c8184de002e93e18a67461ee
|
c9a828a4eb2fbf076116f3c51c44da45a60f9feb
|
refs/heads/master
| 2016-08-05T13:33:11.103066
| 2015-03-15T15:18:57
| 2015-03-15T15:18:57
| 32,267,209
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 104
|
sce
|
StageCommStreet.sce
|
___________
| |
| |
| |
| |
| |
|___________|
|
76b40ed0549796cc9ef7ff61f6d6968320712d1c
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3869/CH1/EX1.40/Ex1_40.sce
|
03dbdd59d70bf635ad142aacfbfdaf341c672874
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 312
|
sce
|
Ex1_40.sce
|
clear
//
//
//
//Variable declaration
D=180 //separation between screen and slit(cm)
d=0.04 //separation between slits(cm)
beta1=0.3 //fringe width(cm)
//Calculation
lamda=(beta1*d*10**4/D) //wavelength(cm)
//Result
printf("\n wavelength is %0.0f angstrom",lamda*10**4)
|
d2464de52c80dd27920c92742d01fc2047a123f5
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/773/CH10/EX10.02.03/10_02_03.sci
|
4bb8c3cee3adecdb81e3fcd53e1d74b74b8fd66c
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 191
|
sci
|
10_02_03.sci
|
//equation//
s = poly(0, "s");
G=syslin('c',2/(s^2+2*s))
H=syslin('c',1/s);
//characteristic equation is 1+G(s)H(s)=0
y=1+G*H
r=numer(y)
disp('=0',r,"characteristics equation is")
|
d0717acf190b06add2d29d388680253f01879e9d
|
c908c5ec283c57c29da044966fce0fee1f659873
|
/codes/algoritmo metodo LU.sce
|
9b6355fdaac8099608aa2d02b1a5fb21409249b7
|
[] |
no_license
|
marialago/numerical-computation
|
3ca0e95c637c1d4d3ea79789d1bda0b84ca29ca5
|
c88c0ddc6f7501ed115556f72f5f5db3a8610f6b
|
refs/heads/master
| 2022-10-30T01:42:21.032196
| 2020-06-14T18:33:45
| 2020-06-14T18:33:45
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 263
|
sce
|
algoritmo metodo LU.sce
|
clc
function [L,U]=metodoLU(A)
[l,c]=size(A)
L=eye(l,l);
for i=1:l-1
pivo=A(i,i);
for j= i+1:l
m=A(j,i)/pivo;
A(j,:)=A(j,:)-m*A(i,:);
L(j,i)=m;
end
end
U=A;
endfunction
|
e6ff96b22fc8ee92f54539945fb4838c32e2fd16
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3673/CH2/EX2.a.10/Example_a_2_10.sce
|
11dbf8873f099ab40134330d889285be011cfbe4
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 232
|
sce
|
Example_a_2_10.sce
|
//Example 2_10 page no:95
clc;
A=[0.34,1.2,-1.34,
-0.34,-1,1.83,
1,-1,0];
B=[3,
0,
10];
X=inv(A)*B;
V1=X(1);
V2=X(2);
V3=X(3);
P=V2*5;
disp(P,"the power delivered by the current source(5A) is (in W)");
|
44490377d0644192009b684dbb73569f8955ebdf
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2021/CH3/EX3.5/EX3_5.sce
|
cdbd6148411a2ea360186636f388f69b44f613dc
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 343
|
sce
|
EX3_5.sce
|
//Finding of Total Pressure , Depth of pressure
//Given
T=4;
rho=1000;
g=9.81;
l=2;
b=1/2;
y1=2;
y2=1/3;
//To Find
A=(6/2)*1;
A1=(l*b);
A2=l*5;
y3=((A1*y1)+(2*A2*y2))/(A1+2*A2);
P=rho*g*A*y3;disp(y3);
Ig=(l^2+(4*l*T)+T^2)/(36*(l+T));
Ycp=(Ig/(A*y3))+y3;
disp("P= "+string(P)+" Newtons");
disp("Ycp ="+string(Ycp)+" meter");
|
8093ac07118f8a0a772861402185490f68081ae0
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3773/CH15/EX15.10/Ex15_10.sce
|
159ce003ee7176831ecd2397cc67c90c6062cbdb
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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,767
|
sce
|
Ex15_10.sce
|
//Chapter 15: Antennas for Special Applications
//Example 15-20.3
clc;
//Variable Initialization
f = 30e9 //Frequency (Hz)
Tr = 300 //Receiver temperature (K)
Ta = 275 //Satellite antenna temperature (K)
r = 1400e3 //Height (m)
c = 3e8 //Speed of light(m/s)
bw = 9.6e3 //Bandwidth per channel (Hz)
rcp_gain = 10 //RCP satellite gain (dBi)
rain_att = 10 //Rain attenuation (dB)
k = 1.4e-23 //Boltzmann's constant (J/K)
snr = 10 //Required SNR (dB)
ap_eff = 0.7 //Aperture efficiency (unitless)
Ta_2 = 10 //Dish antenna temperature (K)
//Calculations
wave_lt = c/f //Wavelength (m)
Ld = (wave_lt/(4*%pi*r))**2 //Spatial loss factor(unitless)
Ld_db = 10*log10(Ld) //Spatial loss factor(dB)
Tsys = Ta+Tr //System temperature (K)
N = k*Tsys*bw //Propagation loss due to rain (W)
N = 10*log10(N) //Propagation loss due to rain (dB)
Dr = -rcp_gain + snr - Ld_db + N + rain_att //Antenna gain (dB)
Dr = 10**(Dr/10) //Antenna gain (unitless)
Dr_req = Dr/ap_eff //Required antenna gain (unitless)
Dr_req_db = 10*log10(Dr_req) //Required antenna gain (dB)
dish_dia = 2*wave_lt*sqrt(Dr_req/28) //Required diameter of dish (m)
hpbw = sqrt(40000/Dr_req) //Half power beam width (degrees)
Tsys2 = Ta_2 + Tr //System temperature(K)
N2 = k*Tsys2*bw //Propagation loss due to rain(W)
N2 = 10*log10(N2) //Propagation loss due to rain(dB)
Pt_db = snr - Dr_req_db - rcp_gain + N2 - Ld_db + rain_att //Transmitted power (dB)
Pt = 10**(Pt_db/10)
//Results
mprintf("The Uplink antenna gain required is %d dB",Dr_req_db)
mprintf("\nThe Required dish size %.3f m",dish_dia)
mprintf("\nThe HPBW is %.1f degrees",hpbw)
mprintf("\nThe Downlink satellite power required is %.3f W", Pt)
|
6ef782cc308caf744e730fec5101a262e059f566
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2741/CH5/EX5.25/Chapter5_Example25.sce
|
7dbb20de052a6218139e8ed6d6e573143f00d7ce
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 408
|
sce
|
Chapter5_Example25.sce
|
clc
clear
//Input data
Tc=132;//The given temperature in K
Pc=37.2;//The given pressure in atms
R=82.07;//Universal gas constant in cm^3 atoms K^-1
//Calculations
a=(27/64)*((R)^2*(Tc)^2)/Pc;//Vander Waals constant in atoms cm^6
b=((R*Tc)/(8*Pc));//Vander Waals constant in cm^3
//Output
printf('The Van der Waals constants are , \n (1) a = %3.4g atoms cm^6 \n (2) b = %3.2f cm^3 ',a,b)
|
31f346f33a1d36d3d517a6caa1bfb669dca4d752
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2120/CH9/EX9.2/ex9_2.sce
|
08cecedb19aae2f29a863f9fd92ebd8bca073db9
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
ex9_2.sce
|
// Exa 9.2
clc;
clear;
close;
// Given data
h_sen = 798.43;// in kJ/kg
L = 1984.3;// in kJ/kg
H_total_wet = 2665.7;
// H_total_wet= h_sen+x*L
x = (H_total_wet - h_sen)/L;
disp(x,"The value of x is :");
// Part (b)
h_total_sup= 2961;// in kJ/kg
Cps= 2.112;// in kJ/kg
H_total_dry= 2782.7;// in kJ/kg
// Let deltaT= T_sup-T_sat
// h_total_sup = h_sen+L+h_sup = H_total_dry +Cps*deltaT
deltaT= (h_total_sup-H_total_dry)/Cps;// in °C
disp(deltaT,"Degree of superheat in °C is :")
|
c239dda14c2a937e244d06c5253d4b5518798443
|
cafd8519410b1371e80fafecc5f233a5a34edc65
|
/lista-7/2-questao-delfino.sce
|
e035207c7ebec2c3b1168705c479c6bb9c7282b6
|
[] |
no_license
|
pdelfino/numerical-analysis
|
1da89897284a92af69941ef4f63b888a0a4f3016
|
aa4d7ade992690263bd5ec159a8c11cc7aeb587c
|
refs/heads/master
| 2020-03-25T18:04:21.542228
| 2019-04-02T20:53:47
| 2019-04-02T20:53:47
| 144,011,835
| 1
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 829
|
sce
|
2-questao-delfino.sce
|
function z = f(t,y)
//f(t,z) represents the sysmte of ODEs:
// -the first argument should always be the independe variable
// -the second argument should always be the dependent variables
// -it may have more than two arguments
// -y is a vector 2x1: y(1) = theta, y(2) = theta'
// -z is a vector 2x1: z(1) = z , z(2) = z'
z(1) = y(2) //first equation: z = theta'
z(2) = 10*sin(y(1)) //second equation: z' = 10*sin(theta)
endfunction
ts = linspace(0,3,200);
theta0 = %pi/4;
dtheta0 = 0;
y0 = [theta0; dtheta0];
t0 = 0;
thetas = ode('rk',y0, t0, ts, 0.1, f); //the output have the same order
//as the argument `y` of f()
scf(1); clf();
plot2d(thetas(2,:),thetas(1,:),-5);
xtitle('Phase portrait', 'theta''(t)','theta(t)');
xgrid();
|
07f48bcc77d458270c722dc25a6d3394b4cf5047
|
1573c4954e822b3538692bce853eb35e55f1bb3b
|
/DSP Functions/iirpowcomp/test_6.sce
|
8be6d24987c4589328c7609dd66f09f9d6dd630a
|
[] |
no_license
|
shreniknambiar/FOSSEE-DSP-Toolbox
|
1f498499c1bb18b626b77ff037905e51eee9b601
|
aec8e1cea8d49e75686743bb5b7d814d3ca38801
|
refs/heads/master
| 2020-12-10T03:28:37.484363
| 2017-06-27T17:47:15
| 2017-06-27T17:47:15
| 95,582,974
| 1
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 405
|
sce
|
test_6.sce
|
// Test #6 : Valid Input Arguments #2
exec('./iirpowcomp.sci',-1);
[b,a]=iirpowcomp([0.0916,0.2749,0.2749,0.0916],[1.0000,-0.7601,0.7021,-0.2088])
disp(a);
disp(b);
//Scilab Output
//
//a= 1. -0.7601 0.7021 -0.2088
//b= 0.4660371 -0.8695094 0.8695094 -0.4660371
//
//Matlab Output
//b = 0.4661 -0.8695 0.8695 -0.4661
//a = 1.0000 -0.7601 0.7021 -0.2088
|
a4c194a72be6974a6458340ef48dc958d7fab2f0
|
b1fbfba591c6e450b22fc692ca4f458a34b0ab34
|
/sci2oct/examples/pkgs.sce
|
a1707dd1aa17e89a8d368cd8f3352b24478ae266
|
[] |
no_license
|
BabuBReddy/sci2oct
|
c5994ff4c58874b68e5c1a6e0a3b10289c4c49c2
|
e8036d226adab7a75c91740aa7d97bbcd8037c30
|
refs/heads/master
| 2016-09-01T07:57:27.213764
| 2016-02-16T17:52:32
| 2016-02-16T17:52:32
| 51,855,497
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 156
|
sce
|
pkgs.sce
|
sci2oct('pkg load control');
sci2oct('s=tf','s');
sci2oct('w0=2*pi*5; ');
sci2oct('w1=2*pi*1e5;');
sci2oct('A0=2e5; ');
sci2oct('A=A0/[(1+s/w0)*(1+s/w1)]')
|
3ac083e5e70eb7829d3e815cc4703d4244bb3a99
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3769/CH13/EX13.5/Ex13_5.sce
|
5a4908420b644130847bf3b9eb04a1c7d411922b
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 296
|
sce
|
Ex13_5.sce
|
clear
//Given
I0=120 //A
a=360.0
b=96
c=120.0
//Calculation
//
t=1/a
I=I0*sin(%pi/3.0)
a1=b/c
a2=asin(a1)
t=a2/(c*%pi)
//Result
printf("\n (i) Instantaneous value after 1/360 second is %0.2f A",I)
printf("\n (ii) Time taken to reach 96 A for the first time is %0.5f S",t)
|
38fe3f27af8b7d3bb2249606c8240f17fbedec3b
|
1553f49678b55a6283e04ec177d0c4174457e834
|
/códigos/minimos_quadrados_diabetes.sci
|
84d1f0ce0dca7848dd3316031cf1575841311275
|
[
"MIT"
] |
permissive
|
reneroliveira/Monitoria-ALN-2021
|
c16a26c208610e7450def04c775e5550886e3ce8
|
7c746dfe07cdc08921678bf65505389f274416ce
|
refs/heads/main
| 2023-05-13T13:01:35.401001
| 2021-06-09T17:20:06
| 2021-06-09T17:20:06
| 344,234,191
| 3
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 481
|
sci
|
minimos_quadrados_diabetes.sci
|
train = csvRead("diabetes_train.csv");
test = csvRead("diabetes_test.csv");
//Separando X e y nos dados de treino
X = [ones(size(train,1),1) train(:,1:10)]
y = train(:,11)
alpha = X'*X\X'*y
// equivalente a: alpha = inv(X'*X)*X'*y
//Fazendo a previsão nos dados de teste
X_test = [ones(size(test,1),1) test(:,1:10)]
y_test = test(:,11)
y_pred = X_test*alpha
//Medindo performance pelo R^2
RSS = sum((y_test-y_pred)^2)
TSS = sum((y_test-mean(y_test))^2)
disp("R^2=",1-RSS/TSS)
|
84df484715fb5339c40599fc0a68855d6e566406
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/812/CH10/EX10.07/10_07.sce
|
5202ddee11e93bdb868e7f24806527752bea86f4
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 683
|
sce
|
10_07.sce
|
//Comparison of head//
pathname=get_absolute_file_path('10.07.sce')
filename=pathname+filesep()+'10.07-data.sci'
exec(filename)
//Volume flow rate(in gpm) at shut off condition for N2:
Q2so=N2/N1*Q1so
//Volume flow(in gpm) rate at best efficiency for N2:
Q2be=N2/N1*Q1be
//Relation between pump heads:
head_relation=(N2/N1)^2
//Head(in feet) at shut off condition for N2:
H2so=(N2/N1)^2*H1so
//Head(in feet) at best efficiency condition for N2:
H2be=(N2/N1)^2*H1be
Q1=[Q1so Q1be];
Q2=[Q2so Q2be];
H1=[H1so H1be];
H2=[H2so H2be];
plot(Q1,H1,"-o")
plot(Q2,H2,"-*")
xtitle('Comparison of head for both conditions','Volume Flow Rate','Head')
legend('1170','1750')
|
00ecde1e67e2b203fe7c85864da7eacc456b41d1
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/278/CH6/EX6.5/ex_6_5.sce
|
81be14ebcdfdb060a3a1f19c7b5e482d4345c943
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 312
|
sce
|
ex_6_5.sce
|
syms t
b=120
Wmax=250
Wmin=100
sigmay=300
sigmae=225
FS=1.5
A=b*t
Wm=(Wmax+Wmin)/2
sigmam=(Wm*10^3)/A
disp(sigmam,"Mean stress=")
Wv=(Wmax-Wmin)/2
sigmav=(Wv*10^3)/A
disp(sigmav,"Variable stress=")
0=(sigmam/sigmay)-(sigmav/sigmae)-(1/FS)//according to Soderberg's relation
t=7.64*FS
disp(t,"t=")
|
c9b0391f7281ffe7467b29d1bf5855ebdde27180
|
8b33899f15bd0509e32f6c06319b7b1557c745f5
|
/d1.sci
|
d92beb436ac147e94dd2d3bcbd2e842b3e8173d0
|
[] |
no_license
|
c00kiemon5ter/NumericalAnalysis
|
fd162663f6a9a4cc6c648e41a1412fa71e83a75c
|
1ff51ff805017100ebb87a98b5fef7acca3d0692
|
refs/heads/master
| 2021-01-01T19:15:21.559444
| 2014-06-25T09:39:25
| 2014-06-25T09:39:25
| 8,290,126
| 1
| 1
| null | 2014-06-25T09:39:25
| 2013-02-19T12:51:16
|
Scilab
|
UTF-8
|
Scilab
| false
| false
| 1,816
|
sci
|
d1.sci
|
// Exercise D1
// ------------
// Implement the 1/3 simpson and 3/8 simpson methods
// ---------------------------------------------------------
function r=Simpson13(a,b,n) // a,b upper and lower limits of the integral and n the compartments
if modulo(n,2) != 0 // It must consist of 2K consecutive compartments. Meaning that n must be an even number
n = n + 1; // if it's not then increase it by one
end;
h = (b-a)/n; // set the step
head = h/3;
firstAndLast = f(a) + f(b);
increase = h;
x = a;
summa = 0;
for i=1:n-1
x = x + increase;
if modulo(i,2) == 0 then
summa = summa + (2 * f(x));
else
summa = summa + (4*f(x));
end;
end;
r = [head * (summa + firstAndLast)] ;
endfunction
// ---------------------------------------------------------
function r=Simpson38(a,b,n) // a,b upper and lower limits of the integral and n the compartments
if modulo(n,3) != 0 // It must consist of 3K consecutive compartments. Meaning that n must be an even number
n = n + (3 - modulo(n,3)) // if it's not then increase it by one
end;
h = (b-a)/(n); // set the step
head = (3*h)/8;
firstAndLast = f(a) + f(b);
increase = h;
x = a;
summa = 0;
for i=1:n-1
x = x + increase;
if modulo(i,3) == 0 then
summa = summa + (2 * f(x));
else
summa = summa + (3 * f(x));
end;
end;
r = [head * (summa + firstAndLast)] ;
endfunction
// ---------------------------------------------------------
function r=f(x)
r = x * sin(x);
endfunction
// ---------------------------------------------------------
|
1c2ad789c71031aa2ca14aafcc737394ef52001e
|
8217f7986187902617ad1bf89cb789618a90dd0a
|
/source/2.4.1/examples/intersci-examples/ex12.sce
|
bd6e264d3938778fa722eef21a6929c7fc5688bc
|
[
"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
| 380
|
sce
|
ex12.sce
|
//ex12 example
//1-Creating interface source file
// Making object files
// Interface file '/tmp/ex12fi.o'
// User's files '/tmp/ex12c.o';
files=G_make(['/tmp/ex12fi.o','/tmp/ex12c.o'],'ex12.dll');
//2-Link object files .o with addinter
//addinter(files,'intex12',intex1_funs);
exec('ex12fi.sce');
//Run Scilab functions:
b=ccalc12();
if norm(b-(0:9)) > %eps then pause,end
|
929da8fa73b53120aff8a2f003b812c785785761
|
776c9715b4adba254a4ce6ad7391bae87e8086a2
|
/jwang/xsetcm.tst
|
c3376c822678f9027aef87310ff1a7952c4d36c9
|
[] |
no_license
|
TYMCOM-X/169279.tape
|
b0cf2f2cc6a400acb6b0ca2f44ef17f0a4854666
|
a80150749ad1dc588b6768dfd53c1a21cfc7d783
|
refs/heads/master
| 2023-03-23T08:41:21.289217
| 2021-03-19T11:26:42
| 2021-03-19T11:26:42
| 345,965,036
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,345
|
tst
|
xsetcm.tst
|
:**********************************************************************
: Patchname: XSETCM.TST Product version: SDLC 2.04
: AUthor: James Wang Organization: STS
: Customer: CANNET Date written: July 6,1990
: Description of problem:
: SIO receiver was disabled. SIO hardware cause was unclear.
: This patch is trying to mask off the SIO problem.
: WHen last frame is transmitted, SDLC will disable the transmitter
: and then this patch will force the sio to enable the receiver
: no matter the receiver is disabled or still enabled.
: *** To use this patch, tymfile needs specify MSIOTP(M.TYP1) ****
:***************************************************************************
IF SIOEVR
PATCH(900706,1000,JWANG,XSET30+30,,6)
J PA1PTR,,
CONPATCH(PA1PTR,,18)
LI R4,000613D9
ST R4,OCPW+4,RSIO,
LI R4,TXDSAB
J XSET32,,
CONPATCH(XSET62,,4)
LHL R4,OCPW+4,RSIO
CONPATCH(DTRUP1,,6)
J PA1PTR,,
CONPATCH(PA1PTR,,14)
ST R3,OCPW,R4,
LIS R3,0
ST R3,OCPW+4,R4,
J DTRUP1+6,,
ENDPATCH(FORCE SIO TO ENABLE RECEIVER WHEN SDLC DISABLE THE TRANSMITTER)
EI
|
3479c4a46f77e31f42e70f25fa95afb4a2a54481
|
7ace77a53000a46aaae55b4ea9462c4e743025f0
|
/64.sce
|
9fefa4647440d059ad14dcdd8349d58b49df6b26
|
[] |
no_license
|
saishraut/acel
|
7a962fbf19f32640cb67a313104cff6d283f597a
|
bb17d46b4077b792b8564b7da3d63af5771ca18a
|
refs/heads/master
| 2020-04-02T10:55:28.952847
| 2018-10-25T08:08:33
| 2018-10-25T08:08:33
| 154,361,984
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,460
|
sce
|
64.sce
|
t = 0:63;
N = 32; //As 2^3
wt = 0:0.01:1;
bt = [1*ones(1,N) zeros(1,N)]; //Data signal
//ct = [0,0,1,1,1,0,1,0,0,1,1,1,0,0,1,1]; //Spreading code
ct_polar = grand(1,64, "bet", 35,40)
for i=1:length(ct_polar)
if ct_polar(i)>0.45 then
ct_polar(i)=1
else
ct_polar(i)=0
end
end
//mt=bt.*ct_polar; //Product signal
mt=bitxor(bt,ct_polar)
Carrier = 2*sin(wt*2*%pi+(%pi/2)); //cos signal with pi/2 phase
st = [];
for i = 1:length(mt)
st = [st mt(i)*Carrier]; //DSSS Signal
end
figure
subplot(3,1,1)
a=gca();
a.x_location ="origin";
a.y_location ="origin";
a.data_bounds = [0,-2;20,2];
plot2d2([t],bt)
xlabel('t')
title('Data b(t)')
subplot(3,1,2)
a =gca();
a.x_location ="origin";
a.y_location ="origin";
a.data_bounds = [0,-2;20,2];
plot2d2(t,ct_polar ,5)
xlabel('t')
title('Spreading code c(t)')
subplot(3,1,3)
a =gca();
a.x_location ="origin";
a.y_location ="origin";
a.data_bounds = [0,-2;20,2];
plot2d2(t,mt ,5)
xlabel('t')
title('Product Signal m(t)')
figure
subplot(3,1,1)
a =gca();
a.x_location ="origin";
a.y_location ="origin";
a.data_bounds = [0,-2;20,2];
plot2d2(t,mt ,5)
xlabel('t')
title('Product Signal m(t)')
subplot(3,1,2)
a =gca();
a.x_location ="origin";
a.y_location ="origin";
a.data_bounds = [0,-2;20,2];
plot(Carrier)
xlabel('t')
title('Carrier Signal')
subplot(3,1,3)
a =gca();
a.x_location ="origin";
a.y_location ="origin";
a.data_bounds = [0,-2;20,2];
plot(st)
xlabel('t')
title('DS/BPSK signal s(t)')
|
11bd6ed1e133e52ed14828fd979e5204469109c6
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/564/CH20/EX20.1/20_1.sce
|
d978ec44ca5fb5849a80ed7200c029ebc074a42d
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
20_1.sce
|
pathname=get_absolute_file_path('20_1.sce')
filename=pathname+filesep()+'20_1data.sci'
exec(filename)
L25=(L16*L12+L34*L23)/(L12+L23);
B1=A+ (t16*L16/6) +(t12*L12/6)*(2+(L25/L16));
B6=B1;
B2= 2*A + (t12*L12/6)*(2+(L16/L25))+(t25*L25/6) +(t23*L23/6)*(2+(L34/L25));
B5=B2;
B3=A + (t23*L23/6)*(2+(L25/L34)) + (t34*L34/6);
B4=B3;
printf("\nB1 = B6 = %f mm^2",B1);
printf("\nB2 = B5 = %f mm^2",B2);
printf("\nB3 = B4 = %f mm^2",B3)
|
5f8745ef50b525f92fed6dbf49a08b1ee91310c5
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3763/CH4/EX4.6/Ex4_6.sce
|
e56eb70e9faa7d52340d5044a63e33682f6f1706
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 291
|
sce
|
Ex4_6.sce
|
clear
//
//
//
//Variable declaration
n=1
hbar=1.054*10**-34
m=1.67*10**-27 //mass of neutron(kg)
a=10**-14 //size(m)
//Calculation
E=n**2*%pi**2*hbar**2/(2*m*a**2) //lowest energy of neutron(J)
//Result
printf("\n lowest energy of neutron is %0.2f MeV",E/(1.6*10**-13))
|
888141ed3144e690711c07b6da63eb62c23e4967
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2414/CH1/EX1.3/Ex1_3.sce
|
cec54607592e399d6218b6af99e0b4b10a029363
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 142
|
sce
|
Ex1_3.sce
|
clc;
//page 9
//ex-1.3
G=175; //absolute gain
Gdb=10*log10(175); //decibell gain
disp('dB',Gdb,+'The decibell power gain is:');
|
84571c1e643e8b45a41bdbc879d990a865181cd3
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/281/CH3/EX3.4/example3_4.sce
|
346360697dc16840ca90e3efabad990c62c25f1c
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 595
|
sce
|
example3_4.sce
|
disp('chapter 3 ex3.4')
disp('given')
disp('signal amplitude Vi=15mV')
disp('IBmax=500nA and I2=100*IBmax')
Vi=.015
IBmax=500*10^(-9)
I2=100*IBmax
disp('R3=Vi/I2')
R3=Vi/I2
disp('ohms',R3)
disp('standard value resistor for R3=270ohms')
R3=270
disp('I2=Vi/R3')
I2=Vi/R3
disp('amperes',I2)
disp('Vo=Av*Vi')
Av=66
Vo=Av*Vi
disp('volt',Vo)
disp('R2=Vo/I2-R3')
R2=Vo/I2-R3
disp('ohms',R2)
disp('standard value resistor to give Av>66 R2=18kohms')
R2=18000
disp('R1=R2||R3')
R1=R2*R3/(R2+R3)
disp('ohms',R1)
disp('standard value resistor R1=270ohms')
R1=270
disp('ohms',R1)
|
c92eb5a4d7f198d26589754b6a4a4b4412199bf7
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2195/CH3/EX3.2.3/ex_3_2_3.sce
|
1d2f8a17f6f2206eb47d0efdf376450e33c9dd46
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 275
|
sce
|
ex_3_2_3.sce
|
//Example 3.2.3 // resistance
clc;
clear;
close;
//given data :
Tc=240*10^-6;//in Nm
N=100;
L=40*10^-3;
d=30*10^-3;
B=1;//in Wb/m^2
TdBYI=N*B*L*d;
I=Tc/TdBYI;
//voltage per division=I*(R/100)
R=100/I;
disp(R*10^-3,"resistance ,R(k-ohm) = ")
//UNIT IS TAKEN WRONG IN THE BOOK
|
c280564cfcfe9b809bfce20d94437eaa8c987bab
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/869/CH2/EX2.4/2_4.sce
|
6cc87be9f2274e182bd219859b8ee9ac298731d6
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 360
|
sce
|
2_4.sce
|
clc
//initialisation of variables
fx= 100 //lb
f1= 200 //lb
f2= 100 //lb
f3= 50 //lb
a1= 30 //degrees
a2= 45 //degrees
a3= 60 //degrees
//CALCULATIONS
Rx= fx+f1*cosd(a1)-f2*cosd(a2)-f3*cosd(a3)
Ry= f1*sind(a1)+f2*sind(a2)-f3*sind(a3)
R= sqrt(Rx^2+Ry^2)
angle= atand(Ry/Rx)
//RESULTS
printf ('R = %.f ',R)
printf (' \angle=%.1f degrees',angle)
|
e0f66f9b56d5686aed8fbecb8656a2260348fdd7
|
c615df4b42fe20e90a196619f909aefb59526107
|
/multTest.tst
|
dfd2260d540a66f9dae2ec74bc6512ecece66d19
|
[] |
no_license
|
cs310comporg/A7
|
057f5b542cbe138ea04c05a80d0e801a15fa16ea
|
9a8b60acb78e3edb5f1702add8dcdba4da52ce90
|
refs/heads/master
| 2020-05-18T21:58:54.189394
| 2019-05-08T20:49:30
| 2019-05-08T20:49:30
| 184,678,572
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 501
|
tst
|
multTest.tst
|
// Mai Nou & Nathan Moder
load Larc.hdl,
set RAM16K[0] %X8117, // 1. li R1 23 R1 <-- 23
set RAM16K[1] %X8212, // 2. li R2 18 R2 <-- 18
set RAM16K[2] %X84F6, // 3. li R4 -10 R4 <-- -10
set RAM16K[3] %X2312, // 4. mult R3 R1 R2 R3 <-- 414
set RAM16K[4] %X2514, // 5. mult R5 R1 R4 R4 <-- -230
set RAM16K[5] %X0653, // 6. add R6 R5 R3 R6 <-- 184
set RAM16K[6] %XF000 // 7. halt
;
repeat 100 {
tick, tock;
}
|
575b15e702035615947b0cd5633422af09d9329a
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2219/CH7/EX7.12/Ex7_12.sce
|
a66c753de5ba0e2da2dd3ea92fcfcd77f0b8360f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 582
|
sce
|
Ex7_12.sce
|
// chapter 7 example 12
//-----------------------------------------------------------------------------
clc;
clear;
// given data
Zi = 72; // input impedance in ohms
// A = 1.5a // area of cross section in sq.cm
// Zif = Zi*[(sum of areas of cross section of various components)/(Area of cross section of the driven element )]^2
// Zif = 72*((a + 1.5a)/a)^2;
// Zif = 72*(2.5*a/a)^2;
Zif = 72*(2.5)^2;
mprintf('Input impedance for a folded dipole = %d Ω',Zif);
//------------------------------------------------------------------------------
|
97f0988b0a8f5e502aea6eb5e3ae3ee745a6a147
|
b6cf003e2be5ca13661ebe6ba87ee4bafd46f80e
|
/COSAMP.sce
|
930d9af0f366ad05bcdc90132b6ed45452780f85
|
[] |
no_license
|
labatvalen/CompressiveSensing
|
ea11ccf07078d809bf50f0bc53d9c3c47b7f8f59
|
e06a160bae04bdc8ee2778238f0f1bce74a41f7e
|
refs/heads/main
| 2023-04-05T00:37:31.774162
| 2021-04-15T09:48:48
| 2021-04-15T09:48:48
| 358,204,909
| 1
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 4,129
|
sce
|
COSAMP.sce
|
/*-------------------------------------------------
Auteur : Manon Cassagne & Valentin Labat
Vous trouverez ci-dessous la fonction COSAMP et ses sous-fonctions d'exécution
---------------------------------------------------*/
/*
ENTRÉES :
X : signal donné
D : dictionnaire
s : un entier
eps : seuil
kMax : nombre maximal d'itérations
SORTIES :
alpha : représentation parcimonieuse de x
nb_it : nombre d'itérations
norme_residuel : la norme du résiduel de sortie
*/
function [alpha, nb_it, norme_residuel] = COSAMP(X,D,s,eps,kMax)
// initialisation des variables
[M,K] = size(D) // M lignes, K colonnes
residuel = X // initialisation du résiduel
support = [] // Initialisation du support
k = 0
nb_atomes_selectionnes = 2*s
while (k < kMax) & (norm(residuel) > eps)
//disp(size(D))
//disp(size(residuel))
contribution = abs(D'*residuel)
// Sélection
nb_atomes_selectionnes = min([nb_atomes_selectionnes, size(contribution)(1)]) // Si nb_atomes_selectionnes est plus grand que le nombre de lignes de contribution (= plus grand que le nombre de colonnes de D), nb_atomes_selectionnes prend la valeur du nombre de colonnes de D
[vecteurTrie,positions] = gsort(contribution)// On trie le vecteur dans l'ordre décroissant
support1 = positions(1:nb_atomes_selectionnes,:)' // On selectionne les premiers (les plus grands)
support = union(support,support1) // On fait une union entre les deux supports
AS = D(:,support) // On sélectionne les atomes
z = pinv(AS) * X // Méthode des moindres carrés
zAbsolu = abs(z)
alpha = zeros(K,1)
for i=1:s // Rejet
[valeur_max,index_max] = max(zAbsolu)
alpha(support(index_max)) = z(index_max)
zAbsolu(index_max) = -1 // Comme c'est des valeurs absolues, en le mettant à -1, le nombre devient le dernier (en terme de valeur)du vecteur
end
[ligneAlpha,colonneAlpha] = size(alpha)
support = []
for i=1:ligneAlpha
if ~(alpha(i) == 0)
support = [support,i] // On reinitialise le support (qui va servir de support précédent à la prochaine itération)
end
end
residuel = X - D * alpha // On met a jour le résiduel
k = k+1
end
nb_it = k // On met à jour le nombre d'itérations qu'a produit l'algorithme
norme_residuel = norm(residuel)
endfunction
// Fonction qui permet l'initialisation des variables X, D,s,eps,kMax
function [x,D,s,eps,kMax]=initialisationVariables()
s = 39
eps = 1e-4
kMax = 1000 // Nombre max d'itérations
// On lit les valeurs dans les csv associés
Xtemp = read_csv("Donnees/xVal.csv",";")
D = read_csv("Resultats/Dico.csv",";")
// On enlève la première ligne, qui est la légende des colonnes, et on sépare en trois vecteurs
x1 = Xtemp(2:99,1)
x2 = Xtemp(2:99,2)
x3 = Xtemp(2:99,3)
// On remplace les valeurs des X qui sont considérés comme des chaines de caractère par des nombres, et on définit le séparateur du fichier csv comme étant la virgule
// Pareil pour D, mais le séparateur est un point
x1 = strtod(x1,",")
x2 = strtod(x2,",")
x3 = strtod(x3,",")
D = strtod(D,".")
// On choisit un des trois vecteurs à considérer
x = x1
endfunction
// Permet l'execution des fonctions du fichier
// Decommentez la ligne qui fait appel à la fonction si vous voulez executer ce fichier seulement
// Recommentez la ensuite pour que, lors de l'appel de ce fichier par d'autres fichiers, le COSAMP ne s'execute pas dès le départ
function executionDuFichier()
// On initialise les variables
[x,D,s,eps,kMax]=initialisationVariables()
// On execute le COSAMP avec les variables initialisées
[alpha, nb_it, norme_residuel] = COSAMP(x,D,s,eps,kMax)
disp("alpha = ",alpha)
disp("nombre ditérations : ", nb_it)
disp("norme du résiduel :",norme_residuel)
endfunction
//executionDuFichier()
|
4a0b3221fe9338be22591234eb137a5ff7260afd
|
a62e0da056102916ac0fe63d8475e3c4114f86b1
|
/set9/s_Engineering_Physics_M._R._Srinivasan_3411.zip/Engineering_Physics_M._R._Srinivasan_3411/CH2/EX2.7/Ex2_7.sce
|
2253ce78e26c059c7ac59bf35e5d3893d000ba67
|
[] |
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
| 339
|
sce
|
Ex2_7.sce
|
errcatch(-1,"stop");mode(2);//Example 2_7
;
;
//To Calculate highest power of spectrum seen with mono chromaic light
lamda=6000 //units in armstrongs
lamda=lamda*10^-8 //units in cm
n=5000
e=1/n //units in cm
k=e/lamda
printf("The highest order spectrum Seen with monochromatic light is %.2f",k)
exit();
|
0ee347b8f091847f6574a64218f2391b813d0637
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2054/CH3/EX3.16/Exa3_16.sce
|
1918d00641d50b349676b3b7716ef6522cd8707f
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 477
|
sce
|
Exa3_16.sce
|
//Exa:3.16
clc;
clear;
close;
V_a=120;//in volts
I_a=20;//in amperes
R_a=0.5;//in ohms
K=0.05;//Motor constant (in volts/rpm)
E_b=V_a-(I_a*R_a);//in volts
N=E_b/K;//in rpm
disp('Range of Speed Control is :');
disp('Lowest Speed (in rpm) = 0');
disp(N,'Highest Speed (in rpm)=');
E_bo=0;//in volts
V_a1=E_bo+(I_a*R_a);//in volts
alpha=V_a1/V_a;
disp('Range of duty cycle is :');
disp(alpha,'lowest value of duty cycle=');
disp('Highest value of duty cycle= 1')
|
be1371904b76920756539f8a1d9726ae7bc22997
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3159/CH14/EX14.3/Ex14_3.sce
|
008f50a21e81fe8446b29c1101ed7d61586a1381
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 471
|
sce
|
Ex14_3.sce
|
// Estimation of resistivity due to impurity scattering of 1% of Nickel in copper lattice
clc
r_cu = 1.8e-8 // resistivity of pure copper in ohm-m
r_Ni_cu = 7e-8 //resistivity of copper 4% Ni in ohm-m
per1 = 4//impurity in percent
per2 = 1 // impurity in percent
printf("\n Example 14.3")
r = (r_Ni_cu-r_cu)*per2/per1 // resistivity of copper 1% Ni in ohm-m
printf("\n Resistivity due to impurity scattering of 1 %% of Nickel in copper lattice is %.1e ohm-m",r)
|
1304ab74eed189852d9f4d555b33b479824997e9
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2870/CH2/EX2.19/Ex2_19.sce
|
cb69729089ad2ebc200b6bf68722eee87765743c
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 333
|
sce
|
Ex2_19.sce
|
clc;clear;
//Example 2.19
//constants used
e=.95;//Emissivity
tc=5.67*10^-8;//thermal conductivity in W/m^2 K^4
//given values
h=6;
A=1.6;
Ts=29;
Tf=20;
//calculation
//convection rate
Q1=h*A*(Ts-Tf);
//radiation rate
Q2=e*tc*A*((Ts+273)^4-(Tf+273)^4)
Qt=Q1+Q2;
disp(Qt,'the total rate of heat transfer in W')
|
b3e31ac4db0f8109886962b1050beee0f0c07dcd
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2096/CH1/EX1.15.b.ii/ex_1_15_b_ii.sce
|
13d1247c919c9db15afb93c3a45763350d38ecf2
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 286
|
sce
|
ex_1_15_b_ii.sce
|
//Example 1.15.b.ii// loading error
clc;
clear;
close;
//given data :
Rv=125; // internal resistance in kilo-ohm
V=60; // in volts
I=1.2; // ampere
Rt=V/I;
Ra=Rt;
Rat=((Rt/1000)*Rv)/(Rv-(Rt/1000));
Le=((Rat-(Ra/1000))/Rat)*100;
disp(Le,"percentage loading error,Le(%) = ")
|
9f872d8596f5964fb206d135425442ae3b5307aa
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/683/CH7/EX7.7/SC_7.sce
|
4bbaf5efc60f7838f17326b31b31e36c4ad473f3
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 316
|
sce
|
SC_7.sce
|
// sum 7-7
clc;
clear;
D=500;
p=0.3;
E=208*10^3;
sigc=320;
a=1/7500;
l=2000;
le=l/2;
W=%pi*D^2*p/4;
FOS=4;
Wd=W*FOS;
I=Wd*l^2/(%pi^2*E);
d=(64*I/%pi)^(1/4);
A=%pi*d^2/4;
k=d/4;
d=45; //Rounding off to nearest whole number
// printing data in scilab o/p window
printf("d is %0.1f mm ",d);
|
ad8a7ef505cc6f4e3c60fe9cf1860f3c188985ae
|
717ddeb7e700373742c617a95e25a2376565112c
|
/1766/CH5/EX5.14/EX5_14.sce
|
2475b53ae95264c0b36c08e0c16a48790e24c6ec
|
[] |
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
| 829
|
sce
|
EX5_14.sce
|
clc;funcprot(0);//Example 5.14
//Initilisation of Variables
D=0.02;.....//Diameter of sphere in m
Ts=350;....//Surface Temparature of sphere in K
Ta=300;....//Temparature of air in K
U=7;....//Velocity of air in m/s
//Properties of air at 27degrees
mu=15.69*10^-6;......//Viscocity in m^2/s
Ma=1.8462*10^-5;.......//dynamic viscosity in kg/ms
K=0.02624;........//Thermal conductivity in W/mK
Pr=0.708;......//Prandtl number
Mw=2.075*10^-5;...//dynamic viscosity in kg/ms
Tw=77;...........//Temperature of wall
//calculation
Re=(U*D)/mu;....//reynolds number
Nu=2+[(0.4*Re^0.5)+(0.06*Re^(2/3))]*Pr^0.4*(Ma/Mw)^(1/4);............//Nusselt number
h=(Nu*K)/D;...//Heat transfer coefficient in W/m^2 K
Q=h*4*%pi*(D/2)^2*(Ts-Ta);....//Heat transfer rate from plate in W
disp(Q,"Heat transfer rate from plate in W:")
|
8e5eddeb7b4823b54e5833563ee1269b05c8a086
|
0921fa47b8952581116ff38b7fd5f91e633e3726
|
/Modelisation_Et_Architecture/Architecture/TP1/q.tst
|
1d0f00f768552849b540e63c994e170cf20b3386
|
[] |
no_license
|
Noa-Cazes/1A
|
cbc8cb5f5a37ee96eabe3e088ad3e654fdd7b61b
|
35091072651d2760b6fb35a2d81b947cd42d9161
|
refs/heads/master
| 2023-02-12T06:07:51.275766
| 2021-01-06T21:01:37
| 2021-01-06T21:01:37
| 327,429,868
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,424
|
tst
|
q.tst
|
set a[31..0] 00000000000000000000000000000000
set b[31..0] 00000000000000000000000000000000
set sub 0
check s[31..0] 00000000000000000000000000000000
check C 0
check V 0
set a[31..0] 00000000000000000000000000000000
set b[31..0] 00000000000000000000000000000000
set sub 1
check s[31..0] 00000000000000000000000000000000
check C 0
check V 0
set a[31..0] 01111111111111111111111111111111
set b[31..0] 00000000000000000000000000000001
set sub 0
check s[31..0] 10000000000000000000000000000000
check C 0
check V 1
set a[31..0] 11111111111111111111111111111111
set b[31..0] 10000000000000000000000000000000
set sub 0
check s[31..0] 01111111111111111111111111111111
check C 1
check V 1
set a[31..0] 11111111111111111111111111111111
set b[31..0] 11111111111111111111111111111111
set sub 0
check s[31..0] 11111111111111111111111111111110
check C 1
check V 0
set a[31..0] 01111111111111111111111111111111
set b[31..0] 10000000000000000000000000000000
set sub 1
check s[31..0] 11111111111111111111111111111111
check C 1
check V 1
set a[31..0] 01000000000000000000000000000001
set b[31..0] 11111111111111111111111111111111
set sub 1
check s[31..0] 01000000000000000000000000000010
check C 1
check V 0
set a[31..0] 10000000000000000000000000000001
set b[31..0] 01111111111111111111111111111111
set sub 1
check s[31..0] 00000000000000000000000000000010
check C 0
check V 1
|
3700172cc19a9bb1cf2f5f194cf5677647d42f32
|
28f88c035b368ddbe3efd8f5dbf48f01496d1ad0
|
/lab3/Mux.tst
|
d90cfa5bd241a64451182b770838f105b316565e
|
[] |
no_license
|
sandeepkasimalla/Computer_System_Design_CS4110
|
46c06acd04c7b0477ff37b76d127c15f005feb9b
|
79d89db0b19f18b9a337fd8e18926114959c5323
|
refs/heads/master
| 2020-07-11T22:45:14.966087
| 2019-11-21T18:46:33
| 2019-11-21T18:46:33
| 204,659,866
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 389
|
tst
|
Mux.tst
|
load Mux.hdl,
output-file Mux.out,
compare-to Mux.cmp,
output-list ip1%B3.1.3 ip2%B3.1.3 s%B3.1.3 out%B3.1.3;
set ip1 0,
set ip2 0,
set s 0,
eval,
output;
set s 1,
eval,
output;
set ip1 0,
set ip2 1,
set s 0,
eval,
output;
set s 1,
eval,
output;
set ip1 1,
set ip2 0,
set s 0,
eval,
output;
set s 1,
eval,
output;
set ip1 1,
set ip2 1,
set s 0,
eval,
output;
set s 1,
eval,
output;
|
8d5462561af20e2024935bfbe97adb39def60868
|
256f0055d000d9c71c41cf0df7a7a750619fbfd0
|
/letraB.sce
|
932b30757f0e66d71d780537615335052647412d
|
[] |
no_license
|
ItaloOliveiraF/Sistema-de-Transmiss-o-de-Dados
|
efec24f05af567e24d5450d3e2513865b4ce5117
|
dec4f2b2c1f4f9b701de1737a5efe2bbae465811
|
refs/heads/master
| 2020-04-05T09:29:00.397099
| 2018-12-21T20:36:15
| 2018-12-21T20:36:15
| 156,759,189
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 1,445
|
sce
|
letraB.sce
|
//////////////////////////////
//Sinal de Ana
//////////////////////////////
energia_anaMetade = sum(abs(X_anaMetade).^2);
largBanda = 0;
for(i = 1 : length(X_anaMetade))
largBanda(i) = X_anaMetade(i);
energia_anaP = sum(abs(largBanda).^2);
energia_relativa(i) = energia_anaP/energia_anaMetade;
end
plot(f,energia_relativa)
//////////////////////////////
//Sinal de Italo
//////////////////////////////
energia_italoMetade = sum(abs(X_italoMetade).^2);
largBanda = 0;
for(i = 1 : length(X_italoMetade))
largBanda(i) = X_italoMetade(i);
energia_italoP = sum(abs(largBanda).^2);
energia_relativa(i) = energia_italoP/energia_italoMetade;
end
plot(f,energia_relativa)
//////////////////////////////
//Sinal de Lara
//////////////////////////////
energia_laraMetade = sum(abs(X_laraMetade).^2);
largBanda = 0;
for(i = 1:length(X_laraMetade))
largBanda(i) = X_laraMetade(i);
energia_laraP = sum(abs(largBanda).^2);
energia_relativa(i) = energia_laraP/energia_laraMetade;
end
plot(f,energia_relativa)
//////////////////////////////
//Sinal de Luiza
//////////////////////////////
energia_luizaMetade = sum(abs(X_luizaMetade).^2);
largBanda = 0;
for(i= 1 : length(X_luizaMetade))
largBanda(i) = X_luizaMetade(i);
energia_luizaP = sum(abs(largBanda).^2);
energia_relativa(i) = energia_luizaP/energia_luizaMetade;
end
plot(f,energia_relativa)
|
b7dadf1db1a7edecc71522ff4b55152db4702c73
|
ac1575ec1ac4abe34ddd2c48e83572d19a9df73c
|
/HW7.sce
|
a0941b810e1babe9cd9268b7866f42a76a999825
|
[] |
no_license
|
AlyonaKnyaz/FRep
|
827d4c3927a5994f75cd2b2bb2171263f903334b
|
bcdc3660b381e0de2a2144905933c2fe81d372d1
|
refs/heads/master
| 2020-04-13T10:48:29.554307
| 2019-04-17T17:35:32
| 2019-04-17T17:35:32
| 163,153,740
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 368
|
sce
|
HW7.sce
|
N=100
M=100
T=2
X=%pi
h=X/N
d=T/M
t=0:d:T
x=0:h:X
u(1:N,1)=0
u(1,1:M)=0
u(N,1:M)=0
A=d/(h^2)
B=d/(h^2)
C=2/(h^2)+1
a(2)=0
b(2)=0
for m=1:(M-1)
for n=2:(N-1)
F(n)=d*t(m)*sin(x(n))+u(n,m)
a(n+1)=b(n)/(C-a(n)*A)
b(n+1)=(F(n)+b(n)*A)/(C-a(n)*A)
end
for n=(N-1):(-1):1
u(n,m+1)=a(n+1)*u(n+1,m+1)+b(n+1)
end
end
surf(u)
|
3b936c89bdb3753d01459358d89943f6454d907c
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/431/CH3/EX3.24/EX3_24.sce
|
4f8713c2e65e972f80a30e6a7407bc8c8058fcb3
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 688
|
sce
|
EX3_24.sce
|
//Calculate efficiency of transformer //Chapter 3
//Example 3.24
//page 233
clear;
clc;
disp("Example 3.24")
kVA=50; //rating of the transformer
V1=6360; //primary voltage rating
V2=240; //secondary voltage rating
pf=0.8
coreloss=2; //core loss in kilo watt from open circuit test
Culoss=2; //copper loss at secondary current of 175A
I=175; //current in amperes
I2=(kVA*1000)/V2;
printf("Full load secondary current,I2=%fA",I2);
effi=(kVA*pf*100)/((kVA*pf)+coreloss+(Culoss*(I2/I)^2))
printf("\nEfficiency=%fpercent",effi)
|
e87a94fbcfa07a3a6bbd2a093b797e33aca42230
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2837/CH19/EX19.10/Ex19_10.sce
|
8e0abbba35995129e7095c61ed09c0ab5610d49c
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 230
|
sce
|
Ex19_10.sce
|
clc
clear
//Initalization of variables
cp=0.24
h=138.8
t3=1960 //R
//calculations
t4d=t3-h/cp
Qs=cp*(t3-t4d)
work=43.9 //Btu/lb
etat=work/Qs *100
//results
printf("Thermal efficiency of the unit = %.1f percent",etat)
|
d48c239faaaf18671f9408a62cc178047c235e22
|
01ecab2f6eeeff384acae2c4861aa9ad1b3f6861
|
/xcos_blocks/loader.sce
|
98b20c007d524069019ee7130d4ee17daf9d4cbb
|
[] |
no_license
|
jhasler/rasp30
|
9a7c2431d56c879a18b50c2d43e487d413ceccb0
|
3612de44eaa10babd7298d2e0a7cddf4a4b761f6
|
refs/heads/master
| 2023-05-25T08:21:31.003675
| 2023-05-11T16:19:59
| 2023-05-11T16:19:59
| 62,917,238
| 3
| 3
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 126
|
sce
|
loader.sce
|
load('lib')
scicos_pal($+1,1)='cadsp';
scicos_pal($+1,2)='/usr/lib/scicoslab-gtk-4.4.1/macros/scicos_blocks/cadsp/cadsp.cosf'
|
7533c49cc1ca02c7cc4eb4645d715582234588b8
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1962/CH2/EX2.8/example2_8.sce
|
bdde99608c5a35b2141e06a6e6df2838fe34fbd0
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 389
|
sce
|
example2_8.sce
|
//example 2.8
//page 68
clc; funcprot(0);
//initialisation of variable
pi=3.14;
theta=pi/6;
Gamma=9810;
d=6;//diameter
A=pi*d^2/4;//area
Ig=pi*d^4/64;
Pdash=600;//pressure
Fdash=Pdash*A;
ybar=10+2+3*sin(theta);
F=Gamma*A*ybar;//force
hbar=ybar+Ig*(sin(theta))^2/A/ybar;//centroid
Hbar=(F*hbar+Fdash*ybar)/(F+Fdash);
disp(Hbar,"depth of hydrostatic pressure(ft)=");
clear
|
a70439c422fa18ff7a76b052f5c6e6ac9fff300f
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/3161/CH5/EX5.3/Ex5_3.sce
|
655bce9febabea1cff52fa216f91842aca3b4aa7
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 718
|
sce
|
Ex5_3.sce
|
clc;
//page 259
//problem 5.3
//Given width of each pulse W = 150 us
W = 150 * 10^-6
//One cycle is a period,T = 1ms
T = 1000 * 10^-6
//There are 5 messages multiplexed each utilizeallocated time pulse width = s(T_5) = T/5
T_5 = T/5
//Gaurd time(GT_5) = allocated time-pulse width = T_5-W
GT_5 = T_5-W
disp('Gaurd time where 5 messages multiplexed is '+string(GT_5)+' seconds')
//Here there are 10 messages multiplexed each utilizeallocated time pulse width = s(T_10) = T/10
T_10 = T/10
//Gaurd time(GT_10) = allocated time-pulse width = T_10-norrow pulses width = T_10 -50* 10^-6
GT_10 = T_10 - 50 * 10^-6
disp('Gaurd time where 10 messages multiplexed is '+string(GT_10)+' seconds')
|
584a52b21a7b13e1d5b3c30bd90e6c67f4200892
|
527c41bcbfe7e4743e0e8897b058eaaf206558c7
|
/myfiles/SimUnivariate.tst
|
a7c7b07c4f0e74bbbbff68552ed04f3a74c1ef44
|
[] |
no_license
|
kamleshm/intern_fuzzy
|
c2dd079bf08bede6bca79af898036d7a538ab4e2
|
aaef3c9dc9edf3759ef0b981597746d411d05d34
|
refs/heads/master
| 2021-01-23T06:25:46.162332
| 2017-07-12T07:12:25
| 2017-07-12T07:12:25
| 93,021,923
| 0
| 0
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 12,118
|
tst
|
SimUnivariate.tst
|
--INFO: Reading startup configuration from file PulsarLogOn.act_ssl_config
-- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Teradata Aster
--
-- Copyright (c): 2016 Fuzzy Logix, LLC
--
-- NOTICE: All information contained herein is, and remains the property of Fuzzy Logix, LLC.
-- The intellectual and technical concepts contained herein are proprietary to Fuzzy Logix, LLC.
-- and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade
-- secret or copyright law. Dissemination of this information or reproduction of this material is
-- strictly forbidden unless prior written permission is obtained from Fuzzy Logix, LLC.
-- Functional Test Specifications:
--
-- Test Category: Monte Carlo Simulation – Simulating Univariate Distributions
--
-- Last Updated: 05-30-2017
--
-- Author: <kamlesh.meena@fuzzyl.com>
--
-- BEGIN: TEST SCRIPT
-----****************************************************************
---FLSimBeta
-----****************************************************************
SELECT a.SerialVal,
FLSimBeta(RANDOM(), 0.0, 1.0, 1.0, 2.0) AS SimBeta
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimBradford
-----****************************************************************
SELECT a.SerialVal,
FLSimBradford(RANDOM(), 0.0, 1.0, 5.0) AS SimBradford
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimBurr
-----****************************************************************
SELECT a.SerialVal,
FLSimBurr(RANDOM(), 0.0, 1.0, 2.0, 1.0) AS SimBurr
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimCauchy
-----****************************************************************
SELECT a.SerialVal,
FLSimCauchy(RANDOM(), 0.0, 1.0) AS SimCauchy
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimChi
-----****************************************************************
SELECT a.SerialVal,
FLSimChi(RANDOM(), 0, 1, 2) AS SimChi
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimChiSq
-----****************************************************************
SELECT a.SerialVal,
FLSimChiSq(RANDOM(), 3) AS SimChiSq
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimCosine
-----****************************************************************
SELECT a.SerialVal,
FLSimCosine(RANDOM(), 0.0, 1.0) AS SimCosine
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimErlang
-----****************************************************************
SELECT a.SerialVal,
FLSimErlang(RANDOM(), 0.0, 1.0, 2) AS SimErlang
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimExp
-----****************************************************************
SELECT a.SerialVal,
FLSimExp(RANDOM(), 0.0, 1.0) AS SimExp
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimExtremeLB
-----****************************************************************
SELECT a.SerialVal,
FLSimExtremeLB(RANDOM(), 1.0, 1.0, 2.0) AS SimExtremeLB
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimFisk
-----****************************************************************
SELECT a.SerialVal,
FLSimFisk(RANDOM(), 1.0, 1.0, 2.0) AS SimFisk
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimFoldedNormal
-----****************************************************************
SELECT a.SerialVal,
FLSimFoldedNormal(RANDOM(), 1.0, 1.0) AS SimFoldedNormal
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimGamma
-----****************************************************************
SELECT a.SerialVal,
FLSimGamma(RANDOM(), 0.0, 1.0, 2.0) AS SimGamma
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimGumbel
-----****************************************************************
SELECT a.SerialVal,
FLSimGumbel(RANDOM(), 0.0, 1.0) AS SimGumbel
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimHypSecant
-----****************************************************************
SELECT a.SerialVal,
FLSimHypSecant(RANDOM(), 0.0, 1.0) AS SimHypSecant
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimInvNormal
-----****************************************************************
SELECT a.SerialVal,
FLSimInvNormal(RANDOM(), 1.0, 1.0) AS SimInvNormal
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimLaplace
-----****************************************************************
SELECT a.SerialVal,
FLSimLaplace(RANDOM(), 0.0, 1.0) AS SimLaplace
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimLogistic
-----****************************************************************
SELECT a.SerialVal,
FLSimLogistic(RANDOM(), 0.0, 1.0) AS SimLogistic
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimLogNormal
-----****************************************************************
SELECT a.SerialVal,
FLSimLogNormal(RANDOM(), 0.0, 1.0) AS SimLogNormal
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimMaxwell
-----****************************************************************
SELECT a.SerialVal,
FLSimMaxwell(RANDOM(), 1.0) AS SimMaxwell
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimNormal
-----****************************************************************
SELECT a.SerialVal,
FLSimNormal(RANDOM(), 0.0, 1.0) AS SimNormal
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimPareto
-----****************************************************************
SELECT a.SerialVal,
FLSimPareto(RANDOM(), 1.0, 1.0) AS SimPareto
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimPower
-----****************************************************************
SELECT a.SerialVal,
FLSimPower(RANDOM(), 2.0) AS SimPower
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimRayleigh
-----****************************************************************
SELECT a.SerialVal,
FLSimRayleigh(RANDOM(), 1.0) AS SimRayleigh
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimReciprocal
-----****************************************************************
SELECT a.SerialVal,
FLSimReciprocal(RANDOM(), 1.0, 100.0) AS SimReciprocal
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimSemicircular
-----****************************************************************
SELECT a.SerialVal,
FLSimSemicircular(RANDOM(), 0.0, 1.0) AS SimSemicircular
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimStudentsT
-----****************************************************************
SELECT a.SerialVal,
FLSimStudentsT(RANDOM(), 0.0, 1.0, 2.0) AS SimStudentsT
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimTriangular
-----****************************************************************
SELECT a.SerialVal,
FLSimTriangular(RANDOM(), -4.0, 4.0, 2.0) AS SimTriangular
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimUniform
-----****************************************************************
SELECT a.SerialVal,
FLSimUniform(RANDOM(), 0.0, 1.0) AS SimUniform
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
-------------------------------------------------------------------------------------
-----****************************************************************
---FLSimWeibull
-----****************************************************************
SELECT a.SerialVal,
FLSimWeibull(RANDOM(), 1.0, 2.0, 3.0) AS SimWeibull
FROM fzzlSerial a
WHERE a.SerialVal <= 5
ORDER BY 1;
|
cbcba7f87b54ad7150e0afe28dba9c54ecce69d9
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/2102/CH6/EX6.1/exa_6_1.sce
|
368eb0163d48fce9351255b1db2278bb42b18809
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 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
|
exa_6_1.sce
|
// Exa 6.1
clc;
clear;
close;
// Given data
I_DSS= 10;// in mA
V_P= -4;// in V
V_GS=[-4:0.1:0];
//V_GS= -3;
I_D= I_DSS*(1-V_GS/V_P)^2
plot(V_GS,I_D);
xlabel("V_GS in volts");
ylabel("I_D in mA")
title("The transfer curve")
disp("Curve is shown in figure")
|
38b772ced4d6cdb176a98d0ea9c40809bc3be72e
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1658/CH8/EX8.9/Ex8_9.sce
|
4d06ea645b75991e1c04267359e3add861e91dfe
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 124
|
sce
|
Ex8_9.sce
|
clc;
//e.g 8.9
Ib=125*10**-6;
beta=200;
Ic=beta*Ib;
disp('mA',Ic*10**3,"Ic=");
Ie=Ib+Ic;
disp('mA',Ie*10**3,"Ie=");
|
f5198596fb0bde10637678817d4b184400de4cfb
|
b0ec3c95e6b967fabb9b53e0629980e5bc07e752
|
/Mesher/Surface Remesher/LexicalTriangulation.sce
|
c88418947d7e094b905a0ae4a687f9ccbc8fed15
|
[] |
no_license
|
chi-tech/whitepapers
|
8847ae667fc02418daf123896daf1c027f55ea20
|
fe758fa106e7c8d144e1ac108c9e9f3238310d9c
|
refs/heads/development
| 2020-09-10T16:07:05.190042
| 2020-07-15T14:38:09
| 2020-07-15T14:38:09
| 221,751,686
| 0
| 1
| null | 2020-07-15T14:38:11
| 2019-11-14T17:27:50
|
TeX
|
UTF-8
|
Scilab
| false
| false
| 3,626
|
sce
|
LexicalTriangulation.sce
|
clear all;
clc;
funcprot(0)
printf("Hello\n")
//##############################################################################
function [rlexlist, tempPointList]=SortLexicographically2D(pointList)
listSize = size(pointList)(1);
tempPointList = pointList;
rlexlist = linspace(1,listSize,listSize)
//========== Sort by x
for i=listSize:-1:1
for j=(i-1):-1:1
if (tempPointList(i,1)<tempPointList(j,1))
tempPointx = tempPointList(j,1);
tempPointy = tempPointList(j,2);
tempIndex = rlexlist(j);
tempPointList(j,1)=tempPointList(i,1);
tempPointList(j,2)=tempPointList(i,2);
rlexlist(j) = rlexlist(i)
tempPointList(i,1)=tempPointx;
tempPointList(i,2)=tempPointy;
rlexlist(i) = tempIndex
end
end
end
//========== Sort by y
for i=listSize:-1:1
for j=(i-1):-1:1
if ((abs(tempPointList(i,1)-tempPointList(j,1) )<0.0000001) & (tempPointList(i,2)<tempPointList(j,2)))
tempPointx = tempPointList(j,1);
tempPointy = tempPointList(j,2);
tempIndex = rlexlist(j);
tempPointList(j,1)=tempPointList(i,1);
tempPointList(j,2)=tempPointList(i,2);
rlexlist(j) = rlexlist(i)
tempPointList(i,1)=tempPointx;
tempPointList(i,2)=tempPointy;
rlexlist(i) = tempIndex
end
end
end
endfunction
//##############################################################################
function valid = CheckValidTri2D(v1,v2,v3)
vert1=[v1(1) v1(2) 0];
vert2=[v2(1) v2(2) 0];
vert3=[v3(1) v3(2) 0];
AB = vert2-vert1;
nAB = AB/norm(AB);
BC = vert3-vert2;
nBC = BC/norm(BC);
if (abs(nAB*nBC')>0.999999) then
valid=%F;
return;
end
crossP = cross(AB,BC)
crossP = crossP/norm(crossP)
disp(crossP)
if (crossP(3)<0) then
//valid=%F;
//return;
end
valid=%T
endfunction
N = 10; //Number of points
points=[
0.0982278226 0.333627197
0.7653228931 0.2347061365
0.2558645175 0.8037821481
0.3081272112 0.8671842781
0.8975283975 0.1435997586
0.2429157385 0.1533325249
0.2663349204 0.4709250691
0.3667177816 0.2964881263
0.3963756175 0.5602469026
0.4162725839 0.6990938702
]
[lexlist,sorted]=SortLexicographically2D(points)
disp(lexlist)
disp(sorted)
scf(0);
clf();
scatter(points(1:N),points(1:N,2),,"black",".")
a=gca()
a.axes_visible = ["off" "off" "off"];
a.box = "off"
sleep(1000);
for i=1:(N-2)
j=i+1; k=1;
iter=0;
foundTriangle=%F
while (~foundTriangle)
combo = [lexlist(i) lexlist(j) lexlist(j+k)];
disp(combo)
foundTriangle = CheckValidTri2D(points(combo(1),1:2),points(combo(2),1:2),points(combo(3),1:2))
if (~foundTriangle) then
k=k+1;
end
if (k>N) then
break;
end
iter=iter+1;
if (iter>100)
foundTriangle=%T;
end
end
if foundTriangle then
combo = [lexlist(i) lexlist(j) lexlist(j+k)];
pointsToPlot=[
points(combo(1),1:2)
points(combo(2),1:2)
points(combo(3),1:2)
points(combo(1),1:2)
]
disp(pointsToPlot)
plot2d(pointsToPlot(1:4,1),pointsToPlot(1:4,2))
end
end
a=gca()
a.axes_visible = ["off" "off" "off"];
a.box = "off"
printf("Bye\n")
|
7f3851849423f4fc2ceb955fa6d7e6e6145d0ca5
|
449d555969bfd7befe906877abab098c6e63a0e8
|
/1199/CH2/EX2.33/2_33.sci
|
11f8b5efee27d07d9bbfd2930ac4256ef1ea7c3c
|
[] |
no_license
|
FOSSEE/Scilab-TBC-Uploads
|
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
|
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
|
refs/heads/master
| 2020-04-09T02:43:26.499817
| 2018-02-03T05:31:52
| 2018-02-03T05:31:52
| 37,975,407
| 3
| 12
| null | null | null | null |
UTF-8
|
Scilab
| false
| false
| 346
|
sci
|
2_33.sci
|
// 2.33
clc;
E_20=0.112*10^-3;// emf at 20degree C
E_900=8.446*10^-3;
E_1200=11.946*10^-3;
E1=E_900-E_20;
E2=E_1200-E_20;
//E1=1.08*R1/(R1+2.5+R2 (i)
//E2=1.08*(R1+2.5)/(R1+2.5+R2 (ii)
//on solving (i) and (ii)
R1=5.95;
R2=762.6;
printf("Value of resistance R1=%.2f ohm",R1)
printf("\nValue of resistance R2=%.2f ohm",R2)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.