blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 6 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2
values | repo_name stringlengths 6 87 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 15
values | visit_date timestamp[us]date 2016-08-04 09:00:04 2023-09-05 17:18:33 | revision_date timestamp[us]date 1998-12-11 00:15:10 2023-09-02 05:42:40 | committer_date timestamp[us]date 2005-04-26 09:58:02 2023-09-02 05:42:40 | github_id int64 436k 586M ⌀ | star_events_count int64 0 12.3k | fork_events_count int64 0 6.3k | gha_license_id stringclasses 7
values | gha_event_created_at timestamp[us]date 2012-11-16 11:45:07 2023-09-14 20:45:37 ⌀ | gha_created_at timestamp[us]date 2010-03-22 23:34:58 2023-01-07 03:47:44 ⌀ | gha_language stringclasses 36
values | src_encoding stringclasses 17
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 5 10.4M | extension stringclasses 15
values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fff07cab2758bb042d0df9e17832111b349bebcb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1163/CH12/EX12.5/example_12_5.sce | edd743468bbee08fab32beb55c585718513b2449 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 405 | sce | example_12_5.sce | clear;
clc;
disp("--------------Example 12.5---------------")
bandwidth = 10*10^6; // 10 Mbps
Tp=25.6*10^-6; // 25.6 microseconds
Tfr=2*Tp; // formula
min_frame_size = bandwidth*Tfr; // formula
bytes=min_frame_size/8; // 1 byte = 8 bits
printf("The minimum frame size is %d bits or %d bytes.\nThis is the minimum... |
14fb543bfbefca31ccceb2031471b57ff232d24d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1241/CH6/EX6.18/exa6_18.sce | 1c7b5557d943609a8e98b13d7adaf08316bbbe5f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 836 | sce | exa6_18.sce | //Example 6-18//
//Minimise an expression//
clc
//clears the console//
clear
//clears all existing variables//
//Mapping the expression//
disp('Y=m(2,3,4,5,6,7,12,13,14,15,18,19,20,21,22,23,28,29,30,31)')
disp(' A'' A ')
disp(' D''E'' D''E DE DE'' ... |
7f977cdf47cd72079865af97b197bc3a65dc0786 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2081/CH12/EX12.5/Ex12_5.sce | 543a7a8f37340c870a988e42393cbce94ab76207 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 242 | sce | Ex12_5.sce | ImaipNodB=6
ImaipNo=10^(ImaipNodB/10)
NopImai=1/ImaipNo
SINRdB=8
SINR=10^(SINRdB/10)//signal to noise ratio
Q=128//total spreading factor
a=.55//relative intercellular interfernce factor
M=Q/((1+a)*(1+NopImai)*SINR)
disp(M,'users per cell')
|
9134306799fac1ffbbf8026643b821210df8856f | 449d555969bfd7befe906877abab098c6e63a0e8 | /122/CH7/EX7.1/exa7_1.sce | adcd43a4a111f6c6905b1ef1507b1982fe7fff8e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 365 | sce | exa7_1.sce | // Example 7-1
// Steady state sinusoidal output
clear; clc;
xdel(winsid()); //close all windows
// please set the path
// cd "/<your code directory>/"
// exec("plotresp.sci")
s = %s;
w = 1;
K = 5;
T = 0.1;
G = syslin('c',K,T*s + 1);
t = 0:0.1:20;
u = sin(w*t);
plotresp(u,t,G,'Response to sinusoidal input');
// a... |
8b6d39af2bed64d89e14dd10d0163c9ce1992cb0 | 482cdc3e27e99afe860829eff3e593caa62202e3 | /src/Assignment1_Tests/test2.tst | e1ec5ced1a745cc8b61bf75043cb76c719305828 | [] | no_license | abrageddon/DLXCompiler | e153430de4412fe48a34955851352d0fd73ab2d8 | 2d1abd102f723c2e1f0ed5893e86c7d0ceb42914 | refs/heads/master | 2020-12-30T10:50:20.955331 | 2011-12-02T03:34:59 | 2011-12-02T03:34:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 42 | tst | test2.tst | main
{
var number;
number <- 44;
}
.
|
a44c9a627a91542dc71496b79310135a0b7d8177 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3745/CH1/EX1.20/Ex1_20.sce | ac442616d2d19207ed1f4c4309a52a38c7dcaf9b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 678 | sce | Ex1_20.sce | // Ex 20 Page 361
clc;clear;close;
// Given
//Ia=0.0004*(Va+40*Vg)**(3/2);// mA --eqn(1)
Va=250;//V
Vg=-3;//V
//mu=delVa/delVg
//differentiation wrt Vg eqn(1)
//(4*10**-6*3/2*(Va+40*Vg))**(1/2)*(mu+40)=0
mu=-40;//constant
printf("Amplification factor, mu = %.f",mu)
//differentiation wrt Va eqn(1)
//delIa/delVa=(4*10**... |
b626d4a3e73fc00270638331c46d06e9d23b3d0f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1892/CH1/EX1.19/Example1_19.sce | 2d1fa61577c5d474210882963b10f7ba5154084e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 811 | sce | Example1_19.sce | // Example 1.19
clear; clc; close;
format('v',8);
// Given data
P=4;//in poles
Pout=37;//in HP
f=50;//in Hz
N=1425;//in rpm
MechLoss=3;//in HP
StatorLoss=2500;//in watts
VL=500;//in volt
cosfi=0.9;//power factor
//Calculations
Ns=120*f/P;//in rpm
S=(Ns-N)/Ns;//slip
disp(S,"(i) Slip is : ");
Pout=Po... |
122928ed97b4472d1a5a6407c443ff19f0fce738 | 449d555969bfd7befe906877abab098c6e63a0e8 | /40/CH3/EX3.23/Exa_3_23.sce | 3ad7279586a56ab3e33a0a483d1c247639f34beb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 322 | sce | Exa_3_23.sce | //convolution by polynomial method
x=[4 1 3];
h=[2 5 0 4];
z=%z;
n=length(x)-1:-1:0;
X=x*z^n';
n1=length(h)-1:-1:0;
H=h*z^n1';
y=X*H
//effect of zero insertion on convolution
h=[2 0 5 0 0 0 4];
x=[4 0 1 0 3];
y=convol(x,h)
//effect of zero padding on convolution
h=[2 5 0 4 0 0];
x=[4 1 3 0];
y=convol(x,... |
03eaa873d6fb92c446ad78e298ffdd8dcd1fa4fd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2840/CH3/EX3.3/ex3_3.sce | b24a2cad7968a9d5778ae00b2deb8cff85e4a0dc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 147 | sce | ex3_3.sce | clc;
f_diff=50*1e3 //in Hz
v=5000 //in m/s
//f1=v/2*t
//f2=2v/2t
//f2-f1=v/2t
t=v/(2*f_diff)
disp(+'meter',t,'Thickness of steel plate =')
|
c84fdc2ba5b7d39ebe11dd0eab2998c14497fbfd | 449d555969bfd7befe906877abab098c6e63a0e8 | /1634/CH1/EX1.12/example1_12.sce | 5f642b411eed75d6d394488ef75804689e48256d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 571 | sce | example1_12.sce |
//exapple 1.12
clc; funcprot(0);
// Initialization of Variable
pi=3.14159;
alpha=22+36/60;//altitude of star
A=42//azimuth angle
delta=40;//latitude of observer
//in triangle ZPM(figure in book)
PZ=(90-delta)*pi/180;
A=A*pi/180;
ZM=(90-alpha)*pi/180;
PM=acos((cos(PZ)*cos(ZM)+sin(ZM)*sin(PZ)*cos(A)));
t... |
2f3f528d59662aa6edb64f0f0dcf5730858dceba | 449d555969bfd7befe906877abab098c6e63a0e8 | /944/CH6/EX6.2/example6_2_TACC.sce | d549c654c2d648b92d7b2b851e1ed3746360d17c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 444 | sce | example6_2_TACC.sce | //example 6.2
clear;
clc;
//Given:
T=500;//Temperature[K]
P=100;//Pressure[atm]
a=3.61;//van der waals constant for CO2[atm.L^2.mol^-2]
b=0.0429;//van der waals constant for CO2[L.mol^-1]
R=0.082;//Universal gas constant[atm.K-1.mol^-1]
//To find the molar volume of CO2
x=b+(R*T/P);
y=a/P;
z=a*b/P;
p... |
91a9e3cf11b160dc16304582c830196a5a07d87b | 449d555969bfd7befe906877abab098c6e63a0e8 | /34/CH1/EX1.3/Ch1Exa3.sci | 84d61a38a9bd00b1ac40d7fb5b06cb5c6e9c8104 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 409 | sci | Ch1Exa3.sci |
v= 6.12*(10^7); //receding velocity with respect to Earth, m/s
c= 3*(10^8); //velocity of light, m/s
L0= 500; //initial wavelength of spectral line, nm
L= L0*sqrt(((1+(v/c))/(1-(v/c)))); //final wavelength of spectral light, nm
Ls= L-L0; //shift in wavelength, nm
disp(Ls,"Shift in Green spectral line (in nm) is:... |
270df6c55279e5ab02d0876c4ed01e298236d357 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2882/CH6/EX6.11/Ex6_11.sce | 4aca65eb49ef9852c282d9ccd8f18ba4fff33c0b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 307 | sce | Ex6_11.sce | //Tested on Windows 7 Ultimate 32-bit
//Chapter 6 Single Staje BJT Amplifiers Pg no. 204
clear;
clc;
//Given Data
B=190;//current gain of single transistor
//Solution
Bac=B^2;//current gain of superbeta transistor if B is the gain of each of the employed transistor
printf("Bac = %d",Bac);
|
fed6d11cbb6562460886a633a3fe756f93531475 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2213/CH1/EX1.12/ex_1_12.sce | 14d42a3a2a8139dc5e941a46e7717e1de63c1f93 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 628 | sce | ex_1_12.sce | //Example 1.12 // power required
clc;
clear;
close;
format('v',10)
l=0.5;//length in meter
b=0.25;//breadh in meter
h=0.02;//in meter
t1=25;// temperture °C
t2=125;// temperture °C
t=10;//time in minutes
f=30;//frequency in 30 MHz
w=600;//weight of the wood in kg/m^3
sh=1500;//specific heat in J/Kg/°C
e=50;//efficiency... |
8c635fe66dc9ed699fa3adfb26d6b08ab735aab4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2135/CH1/EX1.36/Exa_1_36.sce | 30f0732e6672033281c4c3283814825bfbc3a426 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 329 | sce | Exa_1_36.sce | //Exa 1.36
clc;
clear;
close;
format('v',7);
//Given Data :
pc=37.7;//bar
Tc=132.5;//K
vc=0.093;//m^3Kgmol
R=287;//Nm/KgK
m=10;//Kg
T=300;//K
V=0.3;//m^3
a=27*R^2*Tc^2/64/pc/10^5;
b=R*Tc/8/pc/10^5;//
//(p+a/V^2)*(V-b)=R*T
p=R*T/(V-b)-a/V^2;//N/m^2
p=p/10^5;//bar
disp(p,"Pressure exerted by air in ba... |
a717099d7b54ab74b42453b7a0aa7ea1b4e39ba9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2309/CH5/EX5.a.14/A_Ex5_14.sce | 0917dceef4f2c8c15450f14d3c4f467855a4f772 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 715 | sce | A_Ex5_14.sce | // Chapter 5 additional Example 14
//==============================================================================
clc;
clear;
// if a plane cut intercepts of lengths l1,l2,l3 the on three crystal axes ,then
// l1 : l2 : l3 = pa : pq :rc
// where a,b and c are primitive vectors of the unit cell and p,q and r a... |
a3b68dc7be896bf7101fe1078e01742fe64a0b34 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3250/CH4/EX4.21/Ex4_21.sce | 116ca2f96f1eb16add8d93a4ba9344ddc71fa228 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 545 | sce | Ex4_21.sce | clc
// Given that
w = 25 // Width of mild steel block in mm
d= 0.05 // Depth of cut in mm
D = 200 // Diameter of the wheel in mm
N = 3000 // Rpm of the wheel
f =100 // Feed velocity of table in mm/min
C = 3 // No of grits in mm^-2
rg = 15 // In mm^-1
// Sample Problem 21 on page no. 248
printf("\n # PROBLEM 4.21 # \n"... |
fa29cfc8e38cf8783ea1f14f7536f5f256e292a3 | a5bfbe555e7cf18882d8897d206086fccefb9632 | /03/a/DFF.tst | fa86f0299ae1dd4103406675f601516564921cf4 | [] | no_license | Sushmitha999/computer-system-design-lab | 86ec2fb04245ad51d7a840f628dcd02f73ba0ced | a8b85e50c241a5e5ef4be9a622338982f78f9899 | refs/heads/master | 2023-01-08T03:07:13.106429 | 2020-10-29T13:00:00 | 2020-10-29T13:00:00 | 291,743,139 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 474 | tst | DFF.tst | // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/03/a/DFF.tst
load DFF.hdl,
output-file DFF.out,
compare-to DFF.cmp,
output-list time%S1.4.1 in%B2.1.2 out%B2.1.2;
set in 0,
tick,
output;
tock,
ou... |
fcc10698d9c9bab89e1c9c3a5422987be5b831b1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3705/CH5/EX5.10/Ex5_10.sce | a2bf0f093ee5bc5aac74ca5c422297211a895db4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 614 | sce | Ex5_10.sce |
clear//
//Variable Declaration
sigma_w=1000 //Working Stress in Bending in psi
tau_w=100 //Working stress in shear in psi
//Dimensions
b_out=8 //Width in inches
h=10 //Depth in inches
b_in=6 //Width in inches
//Calculations
I=((b_out*h**3)-(b_in*b_out**3))*12**-1 //Moment of inertia in in^4
//Design for ... |
9e6ace54444788659de6b35f6a73865fe525d284 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3137/CH13/EX13.31/Ex13_31.sce | e6771c08e9c21f4f0e57c1709c20d396a0d1ae42 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 202 | sce | Ex13_31.sce | //Initilization of variables
a=92.9*10^6 //mi
G=3.43*10^-8
T=365*24*3600 //s
c=5280
//Calculations
M=(4*%pi^2*a^3*c^3)/(G*T^2) //slugs
//Result
clc
printf('The mass of the sun is %f slugs',M)
|
85368672868f5c09010312c543506fb839458e0c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2048/CH4/EX4.5/respol.sci | ea6818967d3f31b0da088e0d84af0ecbc5ed3eda | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,267 | sci | respol.sci | // Computation of residues
// 4.5
// Numerator and denominator coefficients
// are passed in decreasing powers of z(say)
function [res,pol,q] = respol(num,den)
len = length(num);
if num(len) == 0
num = num(1:len-1);
end
[resi,q] = pfe(num,den);
res = resi(:,2);
res = int(res) + (clean(res - int(res)... |
2b3682cb9a968253a0f9f91ab9af779a7d4fdbe7 | 5f48beee3dc825617c83ba20a7c82c544061af65 | /tests/s/05.tst | 8401d5e9e2a6a9ec076c0f5d4795be5e1e769596 | [] | no_license | grenkin/compiler | bed06cd6dac49c1ca89d2723174210cd3dc8efea | 30634ec46fba10333cf284399f577be7fb8e5b61 | refs/heads/master | 2020-06-20T12:44:17.903582 | 2016-11-27T03:08:20 | 2016-11-27T03:08:20 | 74,863,612 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 43 | tst | 05.tst | int x;
int y;
int z;
void main(void)
{
} |
e67666369bcaed19f7766f8392867887969c713a | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/dft.man.tst | 1265405dac8f03ffd69ee423542463d7838f426c | [
"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 | 154 | tst | dft.man.tst | clear;lines(0);
n=8;omega = exp(-2*%pi*%i/n);
j=0:n-1;F=omega.^(j'*j); //Fourier matrix
x=1:8;x=x(:);
F*x
fft(x,-1)
dft(x,-1)
inv(F)*x
fft(x,1)
dft(x,1)
|
7c8b9533ae828060563a12bcb4fd48c623efa782 | 449d555969bfd7befe906877abab098c6e63a0e8 | /135/CH8/EX8.1/EX1.sce | ca96ae8cf92d6a57b27065cc6b62970bbc6f20a9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 204 | sce | EX1.sce | // Example 8.1: gm
clc, clear
IDSS=12; // in mili-amperes
Vp=-5; // in volts
VGS=-1.5; // in volts
gmo=2*IDSS/abs(Vp); // in mili-Siemens
gm=gmo*(1-VGS/Vp); // in mili-Siemens
disp(gm,"gm (mS) ="); |
d286660170d4c75f3413fe827694257b33564e37 | 449d555969bfd7befe906877abab098c6e63a0e8 | /278/CH10/EX10.4/ex_10_4.sce | 58d88d4ba6ba49706636770ff21837fb8082f7c3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 366 | sce | ex_10_4.sce |
clc
//solution
//given
b=100//mm//width
t=12.5//mm//thickness
P=50*10^3//N
T=56//N/mm^2
//let l and s be length of wled and size of weld
//s=t
s=12.5//mm
//P=1.414*s*l*T
l=P/(1.414*s*T)//mm
printf("the value of length of static weld is,%f mm\n",l+12.5)
T1=T/2.7//N
//P=1.414*s*l*T1
l1=P/(1.414*s*T1)//mm
printf("the val... |
00722cd1e33678de5a0a2a7430969d7f40f00e92 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1514/CH16/EX16.5/16_5.sce | f817d03b27977eec4f599fffae9cbc3e34a82bb1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 442 | sce | 16_5.sce | //chapter 16
//example 16.5
//page 484
clear all;
clc ;
//given
Vs=15;//dc supply
Vref=6;
printf("\nSuitable device is 1N753,from datasheet")
Vz=6.2;//nominal voltage
P=400;//nominal power in mW
Izmin=5;
Izm=P/Vz;//Izm=Ilmax+Izmin
R1=10^3*(Vs-Vz)/Izm;
printf("\nseries resistance R1=%d ohm,use standard va... |
a02c0dc908d051358481cbe3d7fdb0ad73629789 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2223/CH9/EX9.4/Ex9_4.sce | 1ae4688bc917f9ae7a12bc4dff88a34e1ae32ed4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,184 | sce | Ex9_4.sce | // scilab Code Exa 9.4 axial turbine stage 3000 rpm
d=1; // mean diameter of the impeller blade in m
r=d/2;
N=3e3; // rotor Speed in RPM
a_r(1)=1; // aspect ratio
a_r(2)=2;
a_r(3)=3;
alpha2=70; // air angle at nozzle exit
alpha3=0;
beta_2=54; // air angle at rotor entry
sigma=0.5*(sind(alpha2)); // blade... |
60423a0ad26beb14bf3477c5c27b15b9572ba8ea | 449d555969bfd7befe906877abab098c6e63a0e8 | /1664/CH6/EX6.10/Ex6_10.sce | d3b634d9dbcf8272830b83f9fa1ff3861424e910 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 505 | sce | Ex6_10.sce |
// Example No.6.10.
// Page No.189.
clc;clear;
h=1;k=0;l=0;
d100=1/sqrt(h^2+k^2+l^2);
disp('Interplanar spacing for d100 plane = a');
h=1;k=1;l=0;
d110=1/sqrt(h^2+k^2+l^2);
disp('Interplanar spacing for d110 plane = a/1.414');
h=1;k=1;l=1;
d111=1/sqrt(h^2+k^2+l^2);
disp('Interplanar spacing for d111 plan... |
3dc0fe1241f81970a80f7f61621466d5ac24605b | 449d555969bfd7befe906877abab098c6e63a0e8 | /275/CH2/EX2.2.20/Ch2_2_20.sce | 60d02013a35f5b2f9beb158cc4538aac7147c70d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,054 | sce | Ch2_2_20.sce | clc
disp("Example 2.20")
printf("\n")
disp("Calculate peak,RMS,DC load current, DC in each diode,DC output voltage,% regulation,PIV,RMS current,DC load voltage")
printf("Given\n")
Rf=500
RL=2000
V2=280
//Secondary voltage is
Vm=sqrt(2)*V2
//Peak load current
Im=Vm/(Rf+RL)
//DC load current
Idc=2*Im/(%pi)
... |
612d7b93707d99e88d55dc5d306bec7162b4373f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2885/CH8/EX8.6/ex8_6.sce | 3a0c76495118e13664cf31ef8800873e7449fb99 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 332 | sce | ex8_6.sce | //Calculate the midband voltage gain and bandwidth of cascade amplifier
clear;
clc;
//soltion
//given
Am=8; //midband voltage gain of individual MOSFET
BW=500*10^3//Hz
f2=BW;
n=4;
A2m=Am^n;
f2_=f2*(sqrt((2^(1/n))-1));
printf("Midband voltage gain = %.0f\n",A2m);
printf("Overall Bandwidth= %.1f kHz",... |
bfb4bcbf4e9683fc3479c6b58378a2ef3890e0a9 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/macros/optim/numdiff.sci | 0a93065b079c1cf4125eb2b7f7426d43a9b0b438 | [
"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 | 720 | sci | numdiff.sci | function %g=numdiff(%f,%x,tol)
// given a function %f from R^n to R^p
//computes the matrix g such as
// [ d f ]
// [ i ]
//g = [ ---- ]
// ij [ d x ]
// [ j ]
// using finite difference methods
[lhs,rhs]=argn(0)
if rhs<3 then
tol=sqrt(%eps)*[1 1d-3]
end
if type(%f)==15 then
pa... |
7ada3be30579d22fb59ef8a394a5d72dd09d353e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1703/CH8/EX8.6/8_6.sce | 3800406e84aaae0d2801e528f671772f8d6bcca1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 268 | sce | 8_6.sce | clc
//initialisation of variables
vw= 0.3 //ft/sec
dw= 1 //in
da= 12 //in
ww= 62.3 //lb/ft^3
wa= 0.075 //lb/ft^3
nw= 0.01 //poise
na= 0.00018 //poise
//CALCULATIONS
va= vw*dw*ww*na/(nw*da*wa)
//RESULTS
printf ('critical velocity of air = %.3f ft/sec',va)
|
82d019bab8a616612589a50da58b2bb605cdd2a4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1760/CH2/EX2.47/EX2_47.sce | f63dfe9c1d8b23b00644e450f888c22cf1584c95 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 516 | sce | EX2_47.sce | //EXAMPLE 2-47 PG NO 92
V=100/sqrt(2); //VOLTAGE
F=100; //FREQUENCY
L=0.018; //INDUCTANCE
XL=2*%pi*F*L;
disp('i) INDUCTANCE (XL) is in polar form = '+string (XL) +' ohm ');
I=V/[(11.3+%i*11.3)]; //current
di... |
50af87884daac259c3a2e61a30da7fe6082ed082 | 449d555969bfd7befe906877abab098c6e63a0e8 | /257/CH9/EX9.20/example_9_20.sce | 6d7cff76e81475a89bf6efc513d5cf5a6b93bff2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 110 | sce | example_9_20.sce | s=%s
sys=syslin('c',(s+1)*k/(s*(s-1)*(s^2+5*s+20)))
evans(sys)
//stability
[Ki,s]=kpure(sys)
disp(Ki) |
7b43de10fcf2e2f3fd2896f6ed1d4af658568067 | 449d555969bfd7befe906877abab098c6e63a0e8 | /22/CH9/EX9.5/ch9ex5.sce | 823bcb21a2f6e4742f467a805b0ce1fc5e92c287 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 744 | sce | ch9ex5.sce | //signals and systems
//Discrete Time Fourier Transform
//x[n]= 1 , abs(n)<=N1
clear;
clc;
close;
// DTS Signal
N1 = 2;
n = -N1:N1;
x = ones(1,length(n));
// Discrete-time Fourier Transform
Wmax = 2*%pi;
K = 4;
k = 0:(K/1000):K;
W = k*Wmax/K;
XW = x* exp(-sqrt(-1)*n'*W);
XW_Mag = real(XW);
W = [... |
8c8a11f8a85dd877656a481caa7499841e0780fb | 449d555969bfd7befe906877abab098c6e63a0e8 | /20/CH2/EX2.29.130/example2_29_pg130.sce | adc5b29508ddb5c681f8f701e66c5161f30c7289 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 937 | sce | example2_29_pg130.sce | // Example2_29_pg130.sce
// Positive and negative sequence voltages
// Theory of Alternating Current Machinery by Alexander Langsdorf
// First Edition 1999, Thirty Second reprint
// Tata McGraw Hill Publishing Company
// Example in Page 130
clear; clc; close;
// Given data
V_1 = 1000 + %i*50;
V_2 = -800 + %i*100;
V... |
76ad941ff2c9243b729586d090efc98428ecc61c | 1b969fbb81566edd3ef2887c98b61d98b380afd4 | /Rez/bivariate-lcmsr-post_mi/bfas_nw_hrz_ind_d/~BivLCM-SR-bfas_nw_hrz_ind_d-PLin-VLin.tst | 2f2ca69e2e69698c70bc3fd78c630e52a40937cc | [] | no_license | psdlab/life-in-time-values-and-personality | 35fbf5bbe4edd54b429a934caf289fbb0edfefee | 7f6f8e9a6c24f29faa02ee9baffbe8ae556e227e | refs/heads/master | 2020-03-24T22:08:27.964205 | 2019-03-04T17:03:26 | 2019-03-04T17:03:26 | 143,070,821 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 11,974 | tst | ~BivLCM-SR-bfas_nw_hrz_ind_d-PLin-VLin.tst |
THE OPTIMIZATION ALGORITHM HAS CHANGED TO THE EM ALGORITHM.
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 0.443317D+00
... |
c5e91060d26420e8eaf2f19c6d220202be6ce44b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2084/CH18/EX18.11w/18_11w.sce | 2aeba198f64e32b7c3fb4aadb9fce5074fa2e64a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 956 | sce | 18_11w.sce | //developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 18.11w
//locating image of a dust particle on the surface of water filled in a concave mirror as observed from top
//given data
R=-40; //radius of curvature(in cm) of the concave mirror
u=-5; //object distance(in cm) ... |
756d88ec188ece4a8f6042e0dcbca44ba5a0f27c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3754/CH9/EX9.5/9_5.sce | 1bfc68c9137b1c65e14214498a409b38b57db7df | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 475 | sce | 9_5.sce | clear//
//Variables
IS = 30.0 //Current (in milli-Ampere)
RS = 15.0 //Source resistance (in kilo-ohm)
//Calculation
RL = RS / 20.0 //Load Resistance (in kilo-ohm)
IL = IS * RS/(RL +RS) //Load Current (in Ampere)
//Result
printf("\n Largest value of load ... |
29ff8a226aca074240c2c89194390eff869e7273 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3760/CH6/EX6.60/Ex6_60.sce | ca1da5f2626f41b277bb095e1c00935b0214115e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sce | Ex6_60.sce | clc;
f=50; // frequency
p=10; // number of poles
pb=120000; // power dissipated in block rotor test
// stator ohmic losses = rotor ohmic losses
pr=pb/2; // total rotor loss
disp('case a');
ws=(4*%pi*f)/p; // synchronous speed
Ts=pr/ws;
printf('Starting torque is %f Nm\n',Ts);
disp('case b');
pr=pr/3; // to... |
854f39eabdc3b56c888d49d74ccf8c593eb3bd37 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3834/CH10/EX10.1.1/Ex10_1_1.sce | effdfae0bb97b051bb7f226f9d3d724087790604 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 569 | sce | Ex10_1_1.sce | //Fiber-optics communication technology, by Djafer K. Mynbaev and Lowell L. Scheiner
//Example 10.1.1
//windows 7
//Scilab version-6.0.0
clc;
clear ;
//given
E=0.712;//the energy gap E=Ec-Ef in eV
KBT=0.025;//Boltzman constant temperature product in eV
e=1.6E-19;//Electrons value in Coulomb
Y=E/KBT;
fE= exp... |
2392ef22de7b3c10f3182825c23194cdc7701623 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1309/CH4/EX4.4/ch4_4.sce | 5e73af1298714ef15c2e42c4048458209793c34c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,390 | sce | ch4_4.sce | clc;
clear;
printf("\t\t\tChapter4_example4\n\n\n");
hc=6;
D=0.105;
k=0.431;
c=2000;
rou=998;
Vs=%pi*D^3/6;
As=%pi*D^2;
// calculating Biot Number for lumped capacitance approach
Bi_lumped=hc*Vs/(k*As);
printf("\nThe Biot number is %.3f,",Bi_lumped);
alpha=k/(rou*c);
printf("\nThe value of diffusivity is %.2e sq.m/s",a... |
1d4d6e217a6a9c6296101e33478c0ab07de0bb43 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3845/CH7/EX7.3/Ex7_3.sce | e38dbe7434f87a80f42eb80df1ad839a67dd97af | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 892 | sce | Ex7_3.sce | //Example 7.3
F_app=120;//Applied force (N)
F_fr=5;//Opposing friction force(N)
d=0.800;//Distance traversed (m)
F_net=F_app-F_fr;//Net force (N)
W_net=F_net*d;//Net work (J)
printf('a.Net work done on the package = %0.1f J',W_net)
W_app=F_app*d*cosd(0);//Work done due to applied force in direction of displaceme... |
77aa5db19a9af55bb50958910247b8dcbee5f4ec | 18bf68cdf766092ccdcba8d231e8140063833a5a | /CTTriangularWave.sce | 322afaa80ceda57e9a70b98fb2550b2d1b0cdde5 | [] | no_license | goodengineer/Scilab-Exercises | b51cc9a4c938f0289a32875d2d21eb9061d0e68e | 3c268211fe48e7e4d0002e44757ea8b50cda10f9 | refs/heads/master | 2022-12-24T23:30:12.875423 | 2020-10-05T06:27:20 | 2020-10-05T06:27:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 303 | sce | CTTriangularWave.sce | clear;
clf;
clc;
t1 = 0:0.01:1;
t2 = 1.01:0.01:3;
t3 = 3.01:0.01:4;
t = [t1 t2 t3];
N = length(t);
x1 = t1;
x2 = -t2+2;
x3 = t3-4;
x = [x1 x2 x3];
subplot(211);
plot(t,x);
y = fft(x);
yabs = abs(y)/N;
k = 0:N-1;
subplot(212);
plot2d3(k(1:10),yabs(1:10)); disp(yabs(1:10));
|
03f0830382f7f5505a789fd35a94010f35dcc703 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH3/EX1.3.17/Ex1_3_17.sce | 44b7c183a88c20db778e668d84cdcd5d15906855 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 400 | sce | Ex1_3_17.sce | //Section-1,Example-2,Page no.AC-266
//To calculate the amount of lime required for softening of given hard water sample.
clc;
C_Eq1=144*(100/146) //CaCO3 equi.of Mg(HCO3)2
C_Eq2=25*(100/162) //CaCO3 equi.of Ca(HCO3)2
C_Eq3=95*(100/95) //CaCO3 equi.of MgCl2
V_1=5000 //Given solution of hard wate... |
2e86c64993e3d5e6c68b7fb67de10829e63277b7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1436/CH7/EX7.8/ex7_8.sce | 38350bca21cb94a8aa2d20553fb73f832e778ec0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 631 | sce | ex7_8.sce | //Example 7.8, page no-441
clear
clc
D=80
W=66.5
//(a)
printf("(a)\nThe intersection point of DB temperature 80°F and WB temperature 66.5°F \nlines on the relative humidity curve for 50%%.\n RH = 50%% ")
//(b)
printf("\n(b)\nFrom the point of intersection of the dry and wet bulb curves, move left \nhorizontally... |
3591d436576eb08896ba298c27936a210638f33e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1309/CH7/EX7.8/ch7_8.sce | ca71853dd2f8bc651c6f545e1557567a62844e11 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,472 | sce | ch7_8.sce | clc;
clear;
printf("\t\t\tChapter7_example8\n\n\n");
// Estimation of force exerted on the pole
// properties of air at given conditions from appendix table D1
rou= 0.0735; // density in Ibm/ft^3
v= 16.88e-5; // viscosity in ft^2/s
V=20*5280/3600; // flow velocity in ft/s
printf("\nThe flow velocity is %.1f ft/s",V);... |
a7f94d171d5606ee6f1616a59b8168d7f0b3f33c | 449d555969bfd7befe906877abab098c6e63a0e8 | /698/CH2/EX2.18/P18_stress_in_gas_turbine.sce | 07206de7be4a415f4a5cdefe503c148e76f8fa8a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 781 | sce | P18_stress_in_gas_turbine.sce | clc
//Example 2.18
//Stress in gas turbine
//------------------------------------------------------------------------------
//Given data:
//Stresses
//Radial Stress
Sx=20* (10^6) // MPa
//Tangential Stress
Sy=50* (10^6) // MPa
res18=mopen(TMPDIR+'18_stress_in_gas_turbine.txt','wt')
mfprintf(res18,'Give... |
e9bd61126c8ef0570d05b3ec02b728092673ccf1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /548/DEPENDENCIES/7_06data.sci | 4044367a9c410bec5eb73196d463a6a8124591e3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 300 | sci | 7_06data.sci | //consider wind tunnel model of example 7.3.datas are taken from example 7.3 and 7.4
Hac=0.24;//distance of aerodynamic center from leading edge
a=0.08;//lift slope
Vh=lt*St/(c*S)//tail volume ratio
at=0.1;//tail lift slope per degree
de=0.35;//derivative of downwash angle w.r.t angle of attack |
881734495dc9c8b11503c494064c05b20902ed2f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1092/CH14/EX14.18/Example14_18.sce | c7cd932911a841cc83c18b66c0af7e0a02715872 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 795 | sce | Example14_18.sce | // Electric Machinery and Transformers
// Irving L kosow
// Prentice Hall of India
// 2nd editiom
// Chapter 14: TRANSFORMERS
// Example 14-18
clear; clc; close; // Clear the work space and console.
// Given data
V_sc = 50 ; // Short circuit voltage in volt
V_1 = 2300 ; // Rated primary voltage in volt
... |
e9ab52f8ce1437b26c870c2ac7fb990bfb9e0745 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3648/CH6/EX6.1/Ex6_1.sce | 0064532bf9417e4f3e2a65f7ec614b90e46dbf24 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 304 | sce | Ex6_1.sce | //Example 6_1
clc();
clear;
//To calculate how large is the average force retarding its motion
m=1500 //units in Kg
vf=15 //units in meters/sec
v0=20 //units in meters/sec
t=3 //units in sec
f=((m*vf)-(m*v0))/t //Units in Newtons
printf("The average retarding force is F=%d Newtons",f)
|
ddf23867b5285ec2ef733d32101b0e6586dd7f8c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2951/CH8/EX8.1.A/additional_ex_1.sce | 2988851cdb54fa9bac0fd8fc1421337d7e3805ef | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 288 | sce | additional_ex_1.sce | clc;
clear;
p1=1/8;
p2=1/8;
p3=5/8;
p4=1/8; //Quantization Levels
//B is the Bandwidth of the signal
H=p1*log2(1/p1)+p2*log2(1/p2)+p3*log2(1/p3)+p4*log2(1/p4);
disp(H,"The average Information (in bits/message)=");
disp("The Information Rate R=rH =2*B(1.55) =3.1B bits/s");
|
2d9116f02c3c7753909c098316dd80641c5b9efa | d976bbc11c40569df55ffeebaa44336b1aebb02b | /calibration.sce | c5b417626992fd7ce2bcf4b32b1388066284bd84 | [] | no_license | jonathanVisbecq/Projet-MODAL-SNA | 212271eb7c47164b32b26823c629ad5f44c8230b | 596e0052536cfe4522371bbd6de0ca0c37ba2f4d | refs/heads/master | 2021-01-02T09:27:42.502076 | 2013-06-19T16:30:39 | 2013-06-19T16:30:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,810 | sce | calibration.sce | //------------------------------------------------------------------------------
// Calibration du pas de temps.
//------------------------------------------------------------------------------
stacksize(150000000)
// Paramètres
lambda = 0.52
mu = 0.5
tmax = 2000
N = 50
S = 400
nbSimulations = 200
h = 0.05
// Compar... |
7da3c5d63f205438e1d78236fa2f2133a502959f | 67310b5d7500649b9d53cf62226ec2d23468413c | /tags/archive/TestCaseGenerator-Plugin-OpeningSequenceCoverage/trunk/tests/large-system-tests/inputs/jEdit/ground_truth/OpeningSequenceCoverage/length-1/max-150/t73.tst | 0b72fcc2ad5b93261d7287e3d0ba356455e676b4 | [] | no_license | csnowleopard/guitar | e09cb77b2fe8b7e38d471be99b79eb7a66a5eb02 | 1fa5243fcf4de80286d26057db142b5b2357f614 | refs/heads/master | 2021-01-19T07:53:57.863136 | 2013-06-06T15:26:25 | 2013-06-06T15:26:25 | 10,353,457 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 660 | tst | t73.tst | <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TestCase>
<Step>
<EventId>e51</EventId>
<ReachingStep>false</ReachingStep>
</Step>
<Step>
<EventId>e14</EventId>
<ReachingStep>false</ReachingStep>
</Step>
<Step>
<EventId>e79</EventId>
<Reaching... |
e5ca85bca3b6409456f133d7f14ab51f9f0d7366 | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpicscifiles6/Cutsf2d.sci | fa26b319befaed2a7714b3810c7b61534ec244e7 | [] | no_license | ketpic/ketcindy-scilab-support | e1646488aa840f86c198818ea518c24a66b71f81 | 3df21192d25809ce980cd036a5ef9f97b53aa918 | refs/heads/master | 2021-05-11T11:40:49.725978 | 2018-01-16T14:02:21 | 2018-01-16T14:02:21 | 117,643,554 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 245 | sci | Cutsf2d.sci | // 08.10.15
function Out=Cutsf2d(Nvec,GL,Flg)
global THETA PHI
Theta=THETA; Phi=PHI;
Tmp=Rotate3data(GL,Nvec,[-1,0,0]);
THETA=%pi/2; PHI=0;
Out=Projpara(Tmp);
if Flg==1
Windisp(Out);
end;
THETA=Theta; PHI=Phi;
endfunction;
|
51adf5cf7152c57f34a0d445fa5276baa3be2499 | 449d555969bfd7befe906877abab098c6e63a0e8 | /343/CH1/EX1.55/ex_55.sce | 8e0405a026f057d1a0aaf453345bd06aa632bbea | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 668 | sce | ex_55.sce | V1=35; //Assigning values to parameters
R1=3;
R2=2;
R3=4;
V2=40;
Ra=((R2*R3)/(R2+R3))+R1; // Considering only 35V source
I=V1/Ra;
IR1=I;
IR3=I*(R2)/(R2+R3);
IR2=I-IR3;
Rb=((R1*R2)/(R1+R2))+R3; //Considering only 40V source
I1=V2/Rb;
I1R3=I1;
I1R1=I1*(R2)/(R2+R3);
I1R2=I... |
834c22e6daeec9d7fc8e3e2ac62f45ea523fdd50 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH30/EX30.4/30Ex4.sce | 29054baae4dbc1ddff2078332e5f042b1b96bfff | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 259 | sce | 30Ex4.sce | //Chapter 30 Ex4
clc;
clear;
close;
S={'B','I','H','A','R'};
sizeS=size(S,"c");
reqLetters=sizeS; //since all the letters are required
noWords=factorial(sizeS)/factorial(sizeS-reqLetters);
mprintf("The required number of words are %.0f",noWords);
|
5c1a476c601ed67b8d10ed87257a443475c09c9e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3472/CH9/EX9.12/Example9_12.sce | 264606c3283d41bc1883f08ea692f413b14bb251 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,246 | sce | Example9_12.sce | // A Texbook on POWER SYSTEM ENGINEERING
// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
// DHANPAT RAI & Co.
// SECOND EDITION
// PART II : TRANSMISSION AND DISTRIBUTION
// CHAPTER 2: CONSTANTS OF OVERHEAD TRANSMISSION LINES
// EXAMPLE : 2.12 :
// Page number 109-110
clear ; clc ; close ; // Clear th... |
de202a9f8353678b6f7ba8c70284292279465e94 | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH9/EX9.14/14.sce | 904df2b43301c4cc333e9f4545650bc396db1a66 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 211 | sce | 14.sce | clc
m_N2=2.5; //kg
M_N2=28;
p_N2=15; //bar
p_total=20; //bar
n_N2=m_N2/M_N2;
p_O2=p_total-p_N2;
n_O2=p_O2/p_N2*n_N2;
M_O2=32;
m_O2=n_O2*M_O2;
disp("Mass of O2 added =")
disp(m_O2)
disp("kg") |
f19f0db328322c625258579efdc4f4e94a2d4e1a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3838/CH3/EX3.24.a/EX3_24_A.sce | 26a01bc1d3f1654a360537d29521e735ad851307 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 76 | sce | EX3_24_A.sce | //Example 3.24.a
clc;
Syms s t;
x=laplace(((2+t)*(exp(-3*t)),t,s);
disp(x);
|
85ebae7686029fd48c37eaea98c04adf684fd459 | 449d555969bfd7befe906877abab098c6e63a0e8 | /929/CH10/EX10.8/Example10_8.sce | 9b1c6e81b735e4d389a503bb00a24aa780f301de | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 500 | sce | Example10_8.sce | //Example 10.8
clear;
clc;
vI=10;
f=100*10^3;
T=1/f;
D=25;
TH=2.5*10^(-6);
C=(TH*1*10^(-3))/7.5;
R=vI/(7.5*f*C);
delvImax=2.5;
C1=(10^(-3)*TH)/delvImax;
RA=62;
RB=150*10^3;
RC=100*10^3;
printf("Designed Voltage to Frequency Converter :");
printf("\nR=%.1f kohms",R*10^(-3)... |
46c37076cd56ec42f43ba66d317e4bef1cd11f7d | c748809cd85084648110bbf813efda13d7ac8bfb | /q1.sci | fbc55df4326df403c544c4877b629ba8adca3249 | [] | no_license | cirnediogo/algoritmo-genetico | 572161981c5e1c330158c4c24f3f29d8aafb41e3 | 91f5d84c0f0beeada889d9beb8269572976b3823 | refs/heads/master | 2021-04-28T10:45:41.604394 | 2018-02-19T14:31:36 | 2018-02-19T14:31:36 | 122,074,232 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 10,096 | sci | q1.sci | //[p,m,x_final,y_final] = ag(75,20,-500,-500,500,500,0.85,0.005,50)
//Chamada geral da função, recebe como parâmetro a quantidade de Indivíduos e de bits desejada, os limites em X e Y, as taxas de crossover e mutação, e a quantidade de gerações; retorna a população após todas as gerações, o valor mínimo de cada geração... |
19b3a16330e7ccf0199ab418f1bc6bf0a49dbe51 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3755/CH13/EX13.11/Ex13_11.sce | 4b05a6f809841ebcbc4bb27136d33315d19655da | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 338 | sce | Ex13_11.sce | clear
//
//
//
//Variable declaration
V=2.405; //V-number
lamda=8500*10^-10; //wavelength(m)
n1=1.48; //core refractive index
n2=1.47; //cladding refractive index
//Calculations
d=V*lamda/(%pi*sqrt(n1^2-n2^2)); //diameter of core(m)
//Result
printf("\n diameter of core is %0.2f *... |
c66ea9d22b279873c4a98d082e9940f5d03cd2d1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1964/CH5/EX5.12/ex5_12.sce | 57490cc8e12403fffa156f560e767737ca4b039d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 737 | sce | ex5_12.sce | //Chapter-5, Example 5.12, Page 170
//=============================================================================
clc
clear
//INPUT DATA
C=50;//capacitance in uf
R=100;//resistance in ohms
V=200;//supply voltage in volts
f=50;//freq in hz
//CALCULATIONS
Xc=1/(2*%pi*f*C*10^-6);//capacitive reactance in ohms
... |
b7911c50d6631cae2c9b0c8577df64db904e5e66 | 449d555969bfd7befe906877abab098c6e63a0e8 | /869/CH6/EX6.3/6_3.sce | a00ac0229a5600dd4cbcbd1fb6b2ec9064fc0054 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 216 | sce | 6_3.sce | clc
//initialisation of variables
mus= 0.25
d= 0.5 //in
h= 3 //in
//CALCULATIONS
A=[1 -1;mus mus]
b= [0;1]
c= A\b
Na= c(1,1)
Nb= c(2,1)
d= -d*mus*Na+h*Na
//RESULTS
printf ('minimu distance= %.2f in',d)
|
36ef923a800b214c8b9cf6879bde8bff399e1c58 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3745/CH1/EX1.55/Ex1_55.sce | 3dc07b13ff6df402d7218b5660d5bbffa2386c9a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 623 | sce | Ex1_55.sce | // Ex 55 Page 400
clc;clear;close;
// Given
Edc=250;//V
fim=.065;//Wb
f=50;//Hz
E1=6000;//V
P=1500;//kW
p=8;//pole
pf=0.9
V=400;//V
J=3;//A/mm^2
E2=Edc/sqrt(2)//V
N2=E2/4.44/f/fim;//no. of turns
N1=E1/E2*N2;//no. of turns
printf("no. of turns in primary = %d",N1)
printf("\n no. of turns in secondary = %d",N2)
Idc=P*1... |
664d8c2ace8ad886f1630ce3af70c08704a26ae2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH2/EX2.15/2_15.sce | 5489f0ba1cdaf547e3fc3c3a9e9e6e048df9c86c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 321 | sce | 2_15.sce | //Problem 2.15: A source of e.m.f. of 15 V supplies a current of 2 A for six minutes. How much energy is provided in this time?
//initializing the variables:
V = 15; // in Volts
I = 2; // in ampere
t = 360; // in sec
//calculation:
E = V*I*t
printf("\n\nResult\n\n")
printf("\nEnergy(E): %.0f Joule(J)\n",E... |
67ec4c41c347b3b16994b7b9739baf1b64e2b12e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1286/CH4/EX4.3/4_3.sce | ecf73cacb8d422ed29d7467a6fa0d8592cb83aea | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 302 | sce | 4_3.sce | clc
//initialisations
c=0.58
m=4//gm
ms=5//gm
t=78//c
t1=80//c
x1=10//cm
x2=8.5//cm
c1=0.05
c2=0.048
t2=100//c
t3=27//c
//CALCULATIONS
Hal=m*c*t
m1=Hal/t1
m2=m1*x1/x2
Hp=m2*80
H1=ms*(t2-t3)*c1
H2=ms*c2*t3
L=(Hp-H1-H2)/ms
//results
printf(' latent heat of fusion= % 1f cal/gm',L)
|
e976223c679074513b5a6725bc0c48010cf0f397 | 449d555969bfd7befe906877abab098c6e63a0e8 | /716/CH2/EX2.1/MatLab_Prog2_1.sce | cd67b0423bf6fe5073b32498cb2a42455094fc6a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,142 | sce | MatLab_Prog2_1.sce | //to generate standard signals like unit impulse,unit step,unit ramp,parabolic,sinusoidal,triangular pulse,signum,sinc and Gaussian signals
clc;
clear;
t=-15:0.1:15;
x=1.*(t==0);
subplot(3,3,1)
plot(t,x);
xtitle('unit impulse signal','time t','signal x(t)');
x=1.*(t>=0);
subplot(3,3,2)
plot(t,x);
xtitle('uni... |
aff2e6003f7a4f7fb43ebde524468ad03d1cfafa | 449d555969bfd7befe906877abab098c6e63a0e8 | /1938/CH2/EX2.1/2_1.sce | 5a755cccea8d941331b078b9c8cd9d9ba06063e6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 214 | sce | 2_1.sce | clc,clear
printf('Example 2.1\n\n')
V=220
I_a=30 //armature currnet
R_a=0.75 //Armature resistance
E_b=V - I_a*R_a // Since V= E_b+ I_a*R_a
printf('Induced EMF or back EMF in the motor is %.1f V',E_b)
|
73ffcc8d813497246233b4dce410060044c4adf3 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set6/s_Electrical_Measurements_And_Measuring_Instruments_N._V._Suryanarayana_1376.zip/Electrical_Measurements_And_Measuring_Instruments_N._V._Suryanarayana_1376/CH1/EX1.17/1_17.sci | fb1d53f1556bddd4ff237587a4011349522b1efb | [] | 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 | 378 | sci | 1_17.sci | errcatch(-1,"stop");mode(2);//1.17
;
Y=90;
X=89;
Error_absolute=Y-X;
disp(Error_absolute,'absolute Error')
Error_relative=(Y-X)*100/Y;
disp(Error_relative,'relative Error (percent)=')
Accuracy_relative=1-Error_relative;
disp(Accuracy_relative,'Accuracy relative=')
Accuracy_percentage=100*Accuracy_relative;
d... |
e17e955ee9b287cb8b9ddd41947b7172ab8891fe | fdc5047b7bf8122bad1e621df236b0481226c36e | /exemplos/xls-link-0.5.0-src/tests/unit_tests/xls_SaveAs.tst | 85a4b78333674a989ac2f827b187e680694e8f0a | [] | no_license | jpbevila/virtualHartSci | aea3c6ba23d054670eb193f441ea7de982b531cc | a3f5be6041d230bd9f0fd67e5d7efa71f41cfca5 | refs/heads/main | 2023-07-26T23:05:28.044194 | 2021-09-09T11:50:59 | 2021-09-09T11:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,052 | tst | xls_SaveAs.tst | // ====================================================================
// Allan CORNET
// DIGITEO 2008 - 2010
// ====================================================================
// <-- CLI SHELL MODE -->
// ====================================================================
assert_checktrue(xls_NewExcel());
ass... |
8435b00ba77bdf26ea2b05de73ea8453af28c627 | 56743f362de98f910919780918c86679ec136d3e | /exercicios-propostas-fichas/ficha4.sce | 055ffb25d2a16c382934c6d10e76b8446391b7a4 | [] | no_license | andre-paulo98/fichas-ei-a1s2-MD | aaf75e6b45cbac7ebbf92949deb783ce6f1201b7 | 99c50eb08cf409ce8e5aa8301728dbe9148e16c5 | refs/heads/master | 2022-02-24T23:13:49.293944 | 2019-10-06T17:50:26 | 2019-10-06T17:50:26 | 171,472,323 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,533 | sce | ficha4.sce | clc
clear
disp('3.')
function y = bissexto(ano)
y = %f
if(pmodulo(ano, 4) == 0)
if(pmodulo(ano, 100) == 0 && pmodulo(ano, 400) ~= 0)
y = %f
else
y = %t
end
end
endfunction
function y = F(n)
if(n == 1 || n == 2)
y = 1
else
F0=1;
... |
5dd7e412e14f8fe0a4390d2d71b322399ebb3b8c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2528/CH12/EX12.3/Ex12_3.sce | 3b57e2fd1072df57de7f48286082b4785b411e59 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sce | Ex12_3.sce | // Chapter 12
// Minimum acceptable frquency range
// Page.No-448
// Example_12_3
// Given
clear;clc;
DR=50; //in dB
Bits=DR/6;
printf("\n The Bits required are = %.1f \n",Bits); // Result
//we cannot have fractional bit so,
printf("\n we cannot have fractional bit so, Bits required are = %.0... |
46f41b1aaafce1b0aa2fe78f0944534b38c53bac | 449d555969bfd7befe906877abab098c6e63a0e8 | /1388/CH4/EX4.1/4_1.sce | 6ce80fe9a6f2efccb1310d5abc659455879718ee | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 493 | sce | 4_1.sce | clc
//initialisation of variables
T = 100 //C
T1= 25 //C
T2= 150 //C
T3= 357 //C
T4= 500 //C
T5= 2000 //C
T6= 5*10^6
T7= 1000 //C
//CALCULATIONS
e= (T-T1)/(T+273)
e1= (T2-T1)/(273+T2)
e2= (T3-T)/(273+T3)
e3= (T5-T4)/(T5+273)
e4= (T6-T7)/T6
//RESULTS
printf (' maximum efficiency = %.2f ',e)
printf (' \... |
06e6187864f5a8433e3afe5be48c3f03a7be5a1d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH5/EX5.42/Ex5_42.sce | 42e2d119a83ba5a44d294f12b0b2956408d733dd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 207 | sce | Ex5_42.sce | clear
//Given
n=10
E=1.5
R=4 //ohm
r=0.1
a=8
//Calculation
Emf=n*E
Rt=R+(n*r)
I=Emf/Rt
Emf1=(a*E)-(2*E)
I1=Emf1/Rt
I11=I-I1
//Result
printf("\n Reduction in current is %0.3f A", I11)
|
e1b5bae5454c903da6ddda475f145821150772d5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2135/CH5/EX5.2/Exa_5_2.sce | 21139c67df2167453135293a358f84ccf14d2f31 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 428 | sce | Exa_5_2.sce | //Exa 5.2
clc;
clear;
close;
format('v',6);
//Given Data :
m=2;//Kg
T1=300+273;//Kelvin
T2=150+273;//Kelvin
T0=20+273;//Kelvin
Cp=0.45;//KJ/KgK
deltaQ=m*Cp*(T1-T2);//KJ
deltaS=m*Cp*log(T1/T2);//KJ/K
A=deltaQ-T0*deltaS;//KJ
disp(A,"Reversible work or Available energy in KJ : ");
UA=T0*deltaS;//KJ
disp(... |
8205df73c6037b290f6e45cebb19eb06cd02e5a4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /564/CH6/EX6.4/6_4.sce | b40aa1f33b1e834034d9fab79e65d38d5325f99b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 778 | sce | 6_4.sce | pathname=get_absolute_file_path('6_4.sce')
filename=pathname+filesep()+'6_4data.sci'
exec(filename)
P=[1 P1(1) P1(2) P1(1)*P1(2);
1 P2(1) P2(2) P2(1)*P2(2);
1 P3(1) P3(2) P3(1)*P3(2);
1 P4(1) P4(2) P4(1)*P4(2)];
alpha1=inv(P)*u;
alpha2=inv(P)*v;
alpha=[alpha1;alpha2];
deff("[Ex]=f(y)","Ex=alpha(2)+ y... |
43b7933452e12bba4ba6424283e56b2288acdd8e | 449d555969bfd7befe906877abab098c6e63a0e8 | /779/CH2/EX2.3/2_3.sce | 41199e937216fc5f9867e36c046ecac5c833fa93 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 288 | sce | 2_3.sce | R0 = 2.8; // Resistence at t=0 degree in ohm
R100 = 3.8; // Resistence at t = 100 degree in ohm
a = (R100/R0 - 1)*0.01; // alpha
R = 5.8; // Indicated ressistace in ohm
t = (R/R0 - 1)/a; // Temperature in degree
disp("degree",t,"The temperature when indicated resistance is 5.8 ohm is ")
|
fe7f9e6671e6a7a6f04b9b5bbc7d47186f7cffa2 | 111e385f01dcdb641cbc64f8eb2d84c5f0eb1aee | /02/IsZero.tst | 42ee22183b459e13cf78f01402a04713c41f8792 | [] | no_license | pipt/nand2tetris | 7eaae88086f717291d78972af3997f2749bf5054 | 86dc57c94a1ddb5cf4bba9dc8c67c22b89d20d49 | refs/heads/master | 2020-03-28T02:35:08.533781 | 2018-10-02T20:55:11 | 2018-10-02T20:55:11 | 147,581,307 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 176 | tst | IsZero.tst | load IsZero.hdl,
output-file IsZero.out,
compare-to IsZero.cmp,
output-list in%B1.16.1 out;
set in %B0000000000000000,
eval,
output;
set in %B1010101010101010,
eval,
output;
|
98d1e6f9c34d191bbdeaf87b4c5b8f514a82b2e3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /623/CH2/EX2.1.9/U2_C1_9.sce | 09c1a14368558d55fa9c717b0e592b9b4b2f2d1c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 533 | sce | U2_C1_9.sce | //variable initialization
lembda_c=0.024 //Compton wavelength of electron (Å)
Theta=(45*%pi)/180; //Scattering angle (radian)
//Calculation of wavelength of incident photon
lembda=lembda_c*... |
90b401c90edc5ca9bb0bc30d66f441d278d2392d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3681/CH5/EX5.3/Ex5_3.sce | 2c1bf0a536b1dd917ae13bd1e308bef7782563a8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,159 | sce | Ex5_3.sce | // Calculating the kVA output of a single phase transformer
clc;
disp('Example 5.3, Page No. = 5.78')
// Given Data
D = 0.4;// Distance between core centres (in meter)
f = 50;// Frequency (in Hz)
Bm = 1.2;// Flux density of core (in Wb per meter square)
Kw = 0.27;// Window space factor
s = 2.3;// Current densit... |
92bfcba8220639289f2f60f5fb9cdaf5d5df65f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /992/CH8/EX8.3/Ex8_3.sce | 4f4b62475be1578f74b82cf136d52454054e3e89 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 217 | sce | Ex8_3.sce |
//Exa:8.3
clc;
clear;
close;
//Given:
Bw=25;//in KHz
Nr=2*Bw*1000;
printf("\n Nyquist sampling rate = %f samples/seconds",Nr/1000);
br=8;//bits
Ne=br*Nr;
printf("\n Transmitted elements = %f elements",Ne); |
6d2ad673627686a91db983fb7d1f54a3fae595cd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2183/CH2/EX2.4/EX_2_4.sce | b32c4c2b650849d17e7657978d65d9b876dcb8d0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 216 | sce | EX_2_4.sce | // Example 2.4;Critical Angle
clc;
clear;
close;
n1=1.48;//Waveguide Refractive Index
n2=1.46;//Cladding Refractive Index
Oc=asind(sqrt((1-(n2/n1)^2)));//Critical Angle
disp(Oc,"critical angle in degree is")
|
c7e08bc7418525dec62ce01009d1bc7d7a8e6e87 | 1573c4954e822b3538692bce853eb35e55f1bb3b | /DSP Functions/allpassshift/test_6.sce | 5ce1160dc562e00d2134da83600efe78ca38370e | [] | 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 | 234 | sce | test_6.sce | // Test # 6 : Input Argument #1 range test
exec('./allpassshift.sci',-1);
[n,d]=allpassshift(3,0.4);
//!--error 10000
//Wo must lie between 0 and 1
//at line 36 of function allpassshift called by :
//[n,d]=allpassshift(3,0.4);
|
3245a770ccdb553b3ddb78c9a322f3db7f7c29c3 | 14b30ff5ef57588ecd4f45401bb9086e3888e8e1 | /edsonj.sce | 98789ed169bf4c07cfc7356aea31d77d748c347f | [] | no_license | Ivanobrc/L_P_I | d2fb06c0816bbb74d498733a272eca572d93c502 | dff17b6c142e8f2fa58d0e07334042d1db4c1330 | refs/heads/master | 2022-11-17T17:21:37.458719 | 2020-07-13T03:11:31 | 2020-07-13T03:11:31 | 279,197,157 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,259 | sce | edsonj.sce | //Funcion edsonj.sce modificada
function xdot=edsonj(u1,u2,u3,u4,u5)
// Se a modificado para tener el modelo de péndulo no lineal
// Cardar datos
exec('edsonjParameters.sce', -1);
// Variables de estado
x=u1;
v=u2;
theta=u3;
vtheta=u4;
// Variable de control
F=u5; // fuerza
// Modelo MoDiCA-X
//Estado 1 Posicio... |
be7467879154238b90e31d50d9fd64b4734f60f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1541/CH5/EX5.4/Chapter5_Example4.sce | 5616bdb974f70b9fac1cd9faf5f1cdba501aaf9a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 531 | sce | Chapter5_Example4.sce | //Chapter-5, Example 5.3, Page 5.7
//=============================================================================
clc
clear
//INPUT DATA
Eph=(6.6*10^3)/sqrt(3);//Phase voltage in V
Isc=145;//Short circuit current in A
Ra=1;//Resistance of stator winding in ohm
//CALCULATIONS
Zs=(Eph/Isc);//Synchronous imp... |
28153b7a493363380b87d131f779bfc62281d6b9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1955/CH2/EX2.1/example1.sce | 4660f1ed821487d221bf8c561f58ec31852879f5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 787 | sce | example1.sce | clc
clear
//input data
c =2.25//Chord length of an aerofoil in m
l=13.5//Span of the aerofoil in m
C=125//Velocity of the aerofoil in m/s
Cl=0.465//Lift coefficient
Cd=0.022//Drag coefficient
d=1.25//Density of the air in kg/m^3
//calculations
A=c*l//Area of cross section of the aerofoil in m^2
W=Cl*d*((C^... |
630a92cc13d9ea5d58b6815461a659d21bf034ac | 66106821c3fd692db68c20ab2934f0ce400c0890 | /test/interpreter/adiw04.tst | 779ba30afd1642b0dae48da58dc4e24b2093cb86 | [] | no_license | aurelf/avrora | 491023f63005b5b61e0a0d088b2f07e152f3a154 | c270f2598c4a340981ac4a53e7bd6813e6384546 | refs/heads/master | 2021-01-19T05:39:01.927906 | 2008-01-27T22:03:56 | 2008-01-27T22:03:56 | 4,779,104 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 302 | tst | adiw04.tst | ; @Harness: simulator
; @Format: atmel
; @Arch: avr
; @Purpose: "Test the ADIW (add immediate to word) instruction"
; @Result: "flags.s=1, flags.v=0, flags.n=1, flags.z=0, flags.c=0, r26 = 0, r27 = -64"
start:
ldi r26, 0b11100000
ldi r27, 0b10111111
adiw r26, 0b00100000
end:
break
|
7dce7cf281c4d5aaf9d0a3e72549429f0db4f059 | 9b046504c3b7683d3bfa294fe100408058e75aa3 | /Metodos/Clase7/ejemplos/integracion/7CuadraturaDeGaussLegendre.sce | 4719fa9c26841901a28b497131d70b6af16b089a | [] | no_license | DavidAlex99/Cursos | f15cb4f4fbb35a6eb62cbae0a9b51ea671f3ea8f | aee547ab09db7e535bea5a6d41ed6e455f8a9a89 | refs/heads/master | 2023-01-08T02:46:07.502656 | 2020-11-14T00:45:57 | 2020-11-14T00:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 537 | sce | 7CuadraturaDeGaussLegendre.sce | clc()
clear all
function result=f(x,a,b)
xd = (b-a)*x/2+(b+a)/2
dx = (b-a)/2
result =dx*( 0.2+25*xd-200*xd^2+675*xd^3-900*xd^4+400*xd^5)
endfunction
function result=cuadraturaDeGaussLegendre(a,b,funcion)
result=funcion(-1/sqrt(3),a,b)+funcion(1/sqrt(3),a,b)
endfunction
a = 0
b = 0.8
disp("integra... |
1c8119ba1c7757d906a145ff9ae163d0119c7436 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1835/CH3/EX3.10/Ex3_10.sce | 6a936dd8ddc617d9b21c190e32b97c44afe8d599 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,264 | sce | Ex3_10.sce | //CHAPTER 3 ILLUSRTATION 10 PAGE NO 108
//TITLE:FRICTION
clc
clear
//===========================================================================================
//INPUT DATA
PI=3.147
d=2.5// MEAN DIA OF BOLT IN cm
p=.6// PITCH IN cm
beeta=55/2// VEE ANGLE
dc=4// ... |
903a2535e64d2384b8a0f96abc49eec320bfc8e2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1457/CH16/EX16.3/16_3.sce | db6cd69ca490eecb9fe3e1fa6a77f41172e34bc1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 238 | sce | 16_3.sce | clc
//Initialization of variables
ns=70
z1=10 //ft
z2=5000 //ft
//calculations
P1=12.2*144/62.4
P2=0.26*144/62.4
sigmac=0.31
h=(P1-P2-z1)/sigmac
//results
printf("Max permissible head to assure against cavitation = %d ft",h)
|
e59e665fa6f5675c98a1fc210dace4890b02cd2e | 449d555969bfd7befe906877abab098c6e63a0e8 | /692/CH8/EX8.18/P8_18.sce | b1834d32780c6f71c6bb5728a6c07195f689bbe3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 455 | sce | P8_18.sce | //Example 8.18
//Cascaded lattice realization of Power-symmetric FIR Transfer Function
clear;
clc;
z=%z;
H5z=(1 + 0.3/z + 0.2/z^2 - 0.376/z^3 - 0.06/z^4 + 0.2/z^5);
disp(H5z,'FIR filter = ');
G5=horner(H5z,-1/z);
G5z=G5/z^5;
disp(G5z,'FIR filter = ');
k5=0.2;
H3z=(1/(1+k5^2))*(H5z - k5*G5z);
disp(H3z,'Synthesis eqn,H3... |
0fda7108719d21f99d72471eeed6c34025022090 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3516/CH18/EX18.9/Ex18_9.sce | 9c2aa3e965a6f73c983dfb28a900d7e984725844 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 529 | sce | Ex18_9.sce | printf("\t example 18.9 \n");
G=60; // lb/(hr)*(ft^2)
De=1/12; // ft
theta=6; // hr
cs=41.3; // Btu/(ft^3)*(F)
c=0.0191; // Btu/(ft^3)*(F)
f=0.45; // void fraction
T=90;
T1=200;
t0=50;
h=(0.79*(G/De)^0.7); // eq 18.90
printf("\t h is : %.1f \n",h);
X=(h*theta/(cs*(1-f)));
Y=(T-t0)/(T1-t0);
printf("\t X is... |
2e214718ae5490acd6ebb46a2a40a61199d6719f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2240/CH23/EX22.9/EX22_9.sce | 25b20ef6e3bd58fbeef2f10ab280b26838b8bc11 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 480 | sce | EX22_9.sce | // Grob's Basic Electronics 11e
// Chapter No. 22
// Example No. 22_9
clc; clear;
// An RC circuit has a time constant of 3 s. The capacitor is charged to 40 V. Then C is discharged. After 6 s of discharge, how much is Vr?
// Given data
RC = 3; // RC time constant=3 Sec
t = 6; // Discharge time=6 Se... |
cce4a75b0093516f5ffe9f279e6a361e662dd27c | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/macros/m2sci/sci_date.sci | cfe6932b4ce8165e7cb817a0fc92461008a0cc55 | [
"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 | 96 | sci | sci_date.sci | function [stk,txt,top]=sci_date()
// Copyright INRIA
txt=[]
stk=list('date()','0','1','1','10')
|
bfc0cfcb2bad6e48a2b5e2741b842d2f4c3e9c02 | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH13/EX13.1/Example13_1.sce | d5dd5b51fd07de739769f413ff034155772f4196 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 381 | sce | Example13_1.sce | //Given that
L = 1 //(say)
m = 1.8 //in kg
M = 2.7 //in kg
d = L/4
g = 9.8 //in m/s^2
//Sample Problem 13-1
printf("**Sample Problem 13-1**\n")
//From the figure
//Balancing torque from A
//N2*L = M*g*L/4 + m*g*L/2
N2 = M*g/4 + m*g/2
//similarly
N1 = M*g*(3/4) + m*g/2
printf("The Normal from point A... |
c631707c7f5c27d37675926b0f403ff0e3cc1a5a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2534/CH6/EX6.2/Ex6_2.sce | 25852e26878de485632beb5e04e93145bced099f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 405 | sce | Ex6_2.sce | //Ex6_2
clc
IE = 1.2*10^-3
beta = 60
alpha = beta/(1+beta)
disp("beta = "+string(beta))//current gain in CE configuration
disp("alpha = beta/(1+beta) = "+string(alpha))//current gain in CB configuraion
disp("IE = "+string(IE)+"A")//emitter current
IB = IE/(beta+1)
IC = beta*IB
disp("IB = IE/(beta+1) = "+strin... |
1a1f8341cc71b45bac9a4f1625a65707bc6e7bd9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1583/CH5/EX5.2/HFAAGC_Ex_5_2.sce | 2fce741259706c907b7a11ef6340089e53c2db8f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 260 | sce | HFAAGC_Ex_5_2.sce | clc
//Chapter 5:High Frequency Amplifiers and Automatic Gain Control
//example 5.2 page no 148
//given
wT=3*10^8//gain bandwidth product
w=10*10^6//given frequency
Ai=wT/w//short circuit current gain
mprintf('the short circuit current gain is %d ',Ai)
|
e635ea4073a4afed629d5498d6cc41a116ca7c04 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2102/CH3/EX3.8/exa_3_8.sce | c167260311cd803a4f772d6bb7be0de0c102fbe5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | exa_3_8.sce | // Exa 3.8
clc;
clear;
close;
// Given data
I_by_Io= -0.9;
V_T=26;// in mV
V_T=V_T*10^-3;//in V
n=1;
// From Diode equation I= Io*[e^(e*V/(n*V_T))-1]
V= n*V_T*log(1+I_by_Io);// in volt
disp(V*10^3,"Voltage in mV is ")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.