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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a730bf1b1d29baf5351904ada096f12d33475d0f | 86ae7e24466d959da945d5b6d8ab93354a9e8a1d | /T6_eg_for.sce | fcc11f43faef5b13aab004b6ed212d2de0782892 | [] | no_license | AnujaNagare/Scilab-Programs | be27fdeb0db8cfa4b00ac5121676b18412b8a222 | 4152eac1a3e87ec7408fb3dfea55cac984cca2d9 | refs/heads/master | 2021-08-30T16:53:33.876536 | 2017-12-18T19:11:47 | 2017-12-18T19:11:47 | 114,677,855 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 130 | sce | T6_eg_for.sce | clc;
clear;
a=input('enter a value: ');
f=1;
for i=1:1:a
f=f*i;
end
printf('\nfactorial of %d is %d\n',a,f)
|
3b65087eec5bcfed892fa146bfb0974c4a4e4fce | 449d555969bfd7befe906877abab098c6e63a0e8 | /662/CH10/EX10.7/Example10_7.sci | a72fc6f2b977fb64efda249d5c9f2b8d2a07f0ae | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,056 | sci | Example10_7.sci | //Example 10.7
//to demonstrate the use of predefined string reated function
function[] = main()
printf("Enter one string:");
str1 = read(%io(1), 1, 1, '(a)'); //read is used instead of using gets
len1= length(str1);
printf("The length of string is %d \n", len1);
str2 = str1;... |
2ba826f303bdf53d5c58ad6b693e9ea8012b3e21 | 367fb86cc145c187bc8aa89afab0f15f7e8826e4 | /functions/cv_tophat.sci | 597dab9d452095df24828b2d2f2031e43d1fe61d | [] | no_license | rishubhjain/funcforscilab | 19180cefb15a88df5cd55d91c2e50ab1829e4860 | 3f9fb8b1f467e1e89da1297bee8bd14645da5605 | refs/heads/master | 2021-01-23T00:15:23.622940 | 2015-04-22T09:32:28 | 2015-04-22T09:32:28 | 31,612,595 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 123 | sci | cv_tophat.sci | function[img_ret]=cv_tophat(image)
pyImport morphological_file
img_ret=morphological_file.dilate(image)
endfunction |
1c590ba25f3534ae0086cb06b709a8b420c2216f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1100/CH11/EX11.4/11_4.sce | 589e41ae6a865d612737f25581abd16be2ac28ea | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 237 | sce | 11_4.sce | clc
//initialisation of variables
P= 10 //psia
P1= 100 //psia
T= 140 //F
k= 1.4
R= 55.16 //ft lb/lb R
//CALCULATIONS
dh= (k*R*(T+460)/(k-1))*((P/P1)^((k-1)/k)-1)*(72/56000)
//RESULTS
printf ('Enthalpy change= %.1f Btu/lb',dh)
|
b28c5b7d969ae36a77b480ae45195d4239634622 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2066/CH4/EX4.12/4_12.sce | fd7906033273606c9390cf67fd81de65dfd3fb5c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 466 | sce | 4_12.sce | clc
clear
//Initialization of variables
d1=12 //in
d2=8 //in
v1=15 //ft/s
p1=12 //psig
p2=5.85 //psig
rho=1.94 //ft^3/slug
angle=60 //degrees
//calculations
Q=%pi/4 *(d1/12)^2 *v1
v2=Q/(%pi/4 *(d2/12)^2)
pa1=p1*%pi/4 *(d1)^2
pa2=p2*%pi/4 *(d2)^2
qv1=rho*Q*v1
qv2=rho*Q*v2
Fx=pa1+qv1+ cosd(angle)*(pa2+qv... |
00cbd25b2aae77aab92c55319f3d95168ccb1932 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH2/EX2.8/example2_8.sce | 9af0ace9154a27d2d1944af9fe47e39fc8909945 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 691 | sce | example2_8.sce | clc
// Given that
lambda = 5.89e-7 // wavelength of light in meter
d1 = 1 // distance of wavefront recieved on the screen from the opening in first side in meter
d2 = 2 // distance of wavefront recieved on the screen from the opening in other side in meter
// Sample Problem 8 on page no. 2.40
printf("\n # PROBLEM 8 # ... |
b37980bb147f2ca87ee7b9f49d4a36f84eba66ac | 449d555969bfd7befe906877abab098c6e63a0e8 | /1754/CH3/EX3.2/Exa3_2.sce | 072ea5b5ef35ad84b7954258309d1172f2a23045 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 788 | sce | Exa3_2.sce | //Exa 3.2
clc;
clear;
close;
//Given data
RL=10;//in kohm
RS=1;//in kohm
hie=1.1;//in kOhm
hre=2.5*10^-4;//unitless
hfe=50;//unitless
hoe=25;//in u mho
Aie=-hfe/(1+hoe*10^-6*RL*10^3);//unitless
Zie=hie+hre*Aie*RL;//in kOhm
Zie=round(Zie);
Ave=Aie*RL/Zie;//unitless
Avs_e=Ave*Zie/(Zie+RS);//
deltah=hoe*10... |
071feba2a6347d89966e9f4fb3b0b93a45fad6f6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1226/CH11/EX11.4/EX11_4.sce | 51a09fc592ceed8babf2ef06a4e38e448491f061 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,590 | sce | EX11_4.sce | clc;funcprot(0);//EXAMPLE 11.4
// Initialisation of Variables
pc=5.45;......................//Petrol consumption in kg/h
afr=15;......................//Air fuel ratio
af=2*10^(-6);................//Fuel jet orifice area in m^2
z=0.00635;...................//Distance between tip of fuel jet and level of petrol in t... |
f283ae0909978b4aa887a593726f9c31dcf359d5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1076/CH16/EX16.24/16_24.sce | 7a1bf6a6fffd58912111cd706107f38a19e4edca | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 330 | sce | 16_24.sce | clear
clc
Pp=3e3;
Et=1e7
Plp=220
C=2.1
lf=(Et/8760)/Pp
lf=round(lf*100)/100
mprintf("\nLoad Factor = %.2f ", lf)
L=(.3*lf) + (.7*lf*lf)
L=round(L*1000)/1000
mprintf("\nLoss Factor = %.3f ", L)
Loss=L*Plp
mprintf("\nLoss = %.1f kW", Loss)
CLY=Loss*8760*C
mprintf("\nCost of Energy Loss = Rs %.1f ... |
564e19554e77728e7fe0d4639c0ad46a42b1e8d1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2141/CH9/EX9.11/Ex9_11.sce | 769d29ee0dd5e7a830c5ed14d5f927b8407513bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 450 | sce | Ex9_11.sce |
clc
//initialisation of variables
P1=14.7 //lbf/in^2
T1=520//R
T3=2060//R
P2=70//lbf/in^2
T=1.563 //lbf/in^2
Cp=0.24
s=0.286
//CALCULATIONS
T2=T*T1//R
Wc=Cp*(T2-T1)//Btu/lbm
T4=T3/T//R
Wt=Cp*(T3-T4)//Btu/lbm
Wnet=Wt-Wc//Btu/lbm
qH=Cp*(T3-T2)//Btu/lbm
qL=Cp*(T4-T1)//Btu/lbm
Nth=(Wnet/qH)*100//per cent... |
5ee515faadedc1bdd2e3f28356e9bdb9d16bf83b | 449d555969bfd7befe906877abab098c6e63a0e8 | /215/CH14/EX14.5/ex14_5.sce | 7caf6fedad38a39fefe982e6a9fc00fc1fad0029 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 203 | sce | ex14_5.sce | clc
//Example 14.5
//Install Symbolic toolbox
//Find the Inverse Laplace transform
syms s
s=%s;
P =(7*s+5)/(s^2+s);
Pp=pfss (P)
p1=ilaplace (Pp(1))
p2=ilaplace (Pp(2))
p=p1+p2
disp(p,'p(t)='); |
b8312cc2df1c1c15ab691e5f326a315842717871 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1163/CH19/EX19.9/example_19_9.sce | 0b9d13e4dec759c9cf7f4c4886097661a7ba3f5e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,107 | sce | example_19_9.sce | clear;
clc;
disp("--------------Example 19.9---------------")
//address :- 205.16.37.39/28
n=28;
by=8; //number of bits i.e 1 byte
a3=dec2bin(205,by); // convert decimal numbers to binary numbers
a2=dec2bin(16,by);
a1=dec2bin(37,by);
a0=dec2bin(39,by);
disp("Binary notation of the address is "+a3+"... |
f9a5fdea2c066cd4f928b09f1580eae7c1b24d97 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH3/EX3.22/Ex3_22.sce | a012c45d45d07036d9d15778faba611543ec8e01 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,121 | sce | Ex3_22.sce |
//Variable declaration
Idson=0.2
Vgs=5 //gate to source voltage(V)
Vdd=12 //drain voltage(V)
Vt=2 //thevinine voltage(V)
R1=100. //resistance(k ohms)
R2=100. //resistance(k ohms)
Rd=3... |
909086f7b132329b13a024838339a9aa333e22f3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /401/CH12/EX12.9/Example12_9.sce | 2b50b93edeca96dadcea1a5210741c89727c1300 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,122 | sce | Example12_9.sce | //Example 12.9
//Program to determine the viability of optical power budget
clear;
clc ;
close ;
//Given data
L=7; //km - OPTICAL FIBER LINK LENGTH
alpha_fc=2.6; //dB/km - CABLE FIBER LOSS
alpha_j=0.5; //dB/km - SPLICE LOSS
alpha_cr=1.5; //dB - TOT... |
83902fbe5d3b732382c239da4714136a18d87fcd | 449d555969bfd7befe906877abab098c6e63a0e8 | /991/CH4/EX4.13/Example4_13.sce | bfaaeb57db10d537b164d8b6bb28c44718b9bafc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 276 | sce | Example4_13.sce | //Example 4.13.
clc
format(7)
VF=0.6
T=298
Io=10^-5
eta=2
VT=T/11600
disp("The volt-equivalent of the temperature(T) is,")
disp(VT,"VT(V) = T / 11600 = ")
format(6)
I=Io*((%e^((VF/(eta*VT))))-1)
disp(I,"Therefore, the diode current, I(A) = Io*e^((VF/eta*VT)-1) =") |
ba9e8ec3fd7792947daac5c2b07b57ed752ef351 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3875/CH5/EX5.9/Ex5_9.sce | 2617a97ec8434b6c024b98ba213b2238c0ada40e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 305 | sce | Ex5_9.sce | clc;
clear;
sin_theta1=0.2 //angle in radian
sin_theta2=0.3 // angle in radian
lambda = 5000*10^-9 //wavelength in cm
d=2.5 //width of the grating surface in cm
//calculations
e=lambda/(sin_theta2-sin_theta1) //in cm
N=d/e //number or rulings
Rp=2*N
printf("Resolving power = %d",ceil(Rp))
|
46843a66ac9d89cc50bf2849697dc96149fa6d57 | f7e981eeadbb0bba2edc23eccc7168670c099d2d | /bsp13.sce | 24bca2908739d0f197bfd9c3436d8493a8dd85b3 | [] | no_license | mr-georgebaker/Scilab-Exercises | bf1e79d68b856f92e2be86b6b002f4eb657ff0ef | fc63d68aeaf495da81a0c557a4f07192aacbd1c6 | refs/heads/master | 2016-08-05T01:37:09.841260 | 2015-05-22T18:24:17 | 2015-05-22T18:24:17 | 32,216,608 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,510 | sce | bsp13.sce | // Creates two plots:
// The first contains a function f(x) = exp(-x^2/2), the analytic derivative -x*exp(-x^2/2)
// and numerical derivatives based on the difference quotient for three different amount of nodes
// The second contains the numerical derivative where the function value contains an error by adding
// a no... |
6d8ad5510322780434111f70a557296c84d161f7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3828/CH1/EX1.18/Ex1_18.sce | b5ff31134e9a184a6a285530ffeaf89a2313fd36 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 163 | sce | Ex1_18.sce | //Chapter 1 : Wave Optics
clear;
//Variable declaration
D1=1.50
D2=1.30
//Calculation
myu=(D1/D2)**2
//Result
mprintf("Refractive index of liquid= %.3f",myu)
|
05eade3e9008b3d3816fa6a5932b2011b5c62e6c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2339/CH3/EX3.13.1/Ex3_13.sce | aec25a4808b07b170b967ddc3c883643d1126cc8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 759 | sce | Ex3_13.sce | clc
clear
//Inputs
//The Values in the program are as follows:
//Temperature in Celcius converted to Kelvin(by adding 273)
//Pressure in bar converted to kPa (by multiplying 100)
//Volume in m^3
//Value of R,Cp and Cv in kJ/kg K
m=1;
P2=25;
P1=1;
pV=260;
T1=17+273;
T2=T1;
V1=(pV*T1)/(P1*100000);
printf... |
7679485b4e8cc9a59dd34517629c81c74223256c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2150/CH7/EX7.5/ex7_5.sce | f640ef31955f35655f81e1f374d6859bf8100e1b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 235 | sce | ex7_5.sce | // Exa 7.5
clc;
clear;
close;
// Given data
I_D = 5;// in mA
V_GS1 = 8;// in V
V_GS2 = 4;// in V
V_GS = 6;// in V
K = I_D/(V_GS1-V_GS2)^2;// in mA/V^2
I_D = K*(V_GS-V_GS2)^2;// in mA
disp(I_D,"The drain current in mA is");
|
7460dbb01ee7d005be464caa573f72d66f403e5e | 449d555969bfd7befe906877abab098c6e63a0e8 | /61/CH14/EX14.3/ex14_3.sce | 8bbc0299cc4d4f283650c0f97ed1864cd720facf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 43 | sce | ex14_3.sce | //ex14.3
disp("cannot be shown in scilab") |
2dbecbc2f5e1ef043338d66f241f94f4b43e0053 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3685/CH6/EX6.6/Ex6_6.sce | 63c61276ce6ba7f2761831664e6b0f6e5c61ff9f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 560 | sce | Ex6_6.sce | clc
T1 = 90 // Operating temperature of power plant in degree Celsius
T2 = 20 // Atmospheric temperature in degree Celsius
W = 1 // Power production from power plant in kW
E = 1880 // Capability of energy collection in kJ/m^2 h
printf("\n Example 6.6")
e_max = 1-((T2+273)/(T1+273)) // maximum efficiency
Qm... |
759e64d4695d306fa3e3d7bc5fae37f7e49c1da7 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set4/s_Chemistry_R._Chang_884.zip/Chemistry_R._Chang_884/CH18/EX18.5/Example18_5.sce | 3f4eb2c91e79fc954037a712a31a6adfc53ecfa1 | [] | 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 | 601 | sce | Example18_5.sce | errcatch(-1,"stop");mode(2);//entropy changes in the system for phase transitions
;
;
printf("\t Example 18.5\n");
//for fusion
T=5.5+273;//temperature of fusion, K
deltaH=10.9*1000;//change in enthalpy, J/mol
deltaSf=deltaH/T;//since in fusion deltaG=0, J/ K mol
//for vaporisation
T=80.1+273;//tempera... |
fac6e9c107ab022067c3d2034b168c92ebae1337 | 4bbc2bd7e905b75d38d36d8eefdf3e34ba805727 | /ee/contrib/dspic/macros/flex_blocks/not_used/flex_maxon_mot.sci | 2330e95f7404498f1b4a080869c05617a151191e | [] | no_license | mannychang/erika2_Scicos-FLEX | 397be88001bdef59c0515652a365dbd645d60240 | 12bb5aa162fa6b6fd6601e0dacc972d7b5f508ba | refs/heads/master | 2021-02-08T17:01:20.857172 | 2012-07-10T12:18:28 | 2012-07-10T12:18:28 | 244,174,890 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,743 | sci | flex_maxon_mot.sci | function [x,y,typ] = flex_maxon_mot(job,arg1,arg2)
x=[];y=[];typ=[];
select job
case 'plot' then
exprs=arg1.graphics.exprs;
maxon_id=exprs(1)
standard_draw(arg1)
case 'getinputs' then
[x,y,typ]=standard_inputs(arg1)
case 'getoutputs' then
[x,y,typ]=standard_outputs(arg1)
case 'getorigin'... |
4cec63277e32db441fab6600bb3ed79c28862f79 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3812/CH3/EX3.13/3_13.sce | c1688c8d8f5b81b21af391364d7374eca7770d85 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 971 | sce | 3_13.sce | //Example 3_13
//Continuous Time Fourier Series Coefficients of a periodic signal x(t)=2+4*sin((5*%pi)/3*t)+cos((2*%pi/3)*t)
clear;
clc;
t=0:0.01:1;
xt=2+4*sin((5*%pi)/3*t)+cos((2*%pi/3)*t);
x_t=2+4*sin((5*%pi)/3*-t)+cos((2*%pi/3)*-t);
x=2+(1/2)*exp(%i*(2*%pi/3)*t)+(1/2)*exp(-%i*(2*%pi/3)*t)+(4/(2*%i))*exp(%i*(5... |
8a64c7c95c14647df4a4d0534c569cb773d89f6b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2840/CH2/EX2.8/Ex2_8.sce | b52236ebab85c11c3fdcd8f3933f295e35abdd90 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 243 | sce | Ex2_8.sce | clc;
absorp1=92.90; //in m^^2
absorp2=92.90;//in m^2
V=2265.6;//in m^3
T1=0.16*V/(absorp1);
T2=0.16*V/(absorp1+absorp2);
ans=T2/T1;//effect on Reverberation time
disp(+"of its original value",ans,"Reverberation time will reduced to ")
|
e1e39fba1d374f59d126b62fed3f1646ec803dd5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /944/CH5/EX5.21/example5_21_TACC.sce | 0f6e02820462b0933bb4b6ea25379961868d4fa6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 624 | sce | example5_21_TACC.sce | //example 5.21
clear;
clc;
disp("CH4(g)+2O2(g)-->CO2(g)+2H2O(l)");
//Given:
S=-242.98;//standard entropy change for reaction [J/K]
T=298;//temperature[K]
Gf1=-50.72;//standard Gibbs free energy of formation for CH4(g)[KJ/mol]
Gf2=-394.36;//standard Gibbs free energy of formation for CO2(g)[KJ/mol]
Gf3=-237... |
d6be6e335a8f27cdbe0791b4fc069a3d1257fa81 | 449d555969bfd7befe906877abab098c6e63a0e8 | /863/CH12/EX12.4/Ex12_4.sce | 5351ec93b4066b60ed6978c36e5874e225307195 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 562 | sce | Ex12_4.sce | //Caption:Design a interface circuit for CMOS
//Ex12.4
clc;
clear;
close;
Vdd=15//Drain voltage(in volts)
Rd=1//Drain resistance(in kilo ohm)
Vcc=5//Supply voltage(in volts)
Ih=40//Current(in micro ampere)
hfe=20
Vce=0.2//Saturated collector emitter voltage(in volts)
vih=2//High input voltage(in volts)
il=... |
e49a33f0e4b936b4ae8eee79a42591d20bf217a7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /443/CH8/EX8.7/8_7.sce | 1613d6f0d4a39dadc9a727f71fd8c935d937e05c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 857 | sce | 8_7.sce | pathname=get_absolute_file_path('8_7.sce')
filename=pathname+filesep()+'8_7_data.sci'
exec(filename)
//Volume flow rate of mixture per second(in m^3/s)
V=0.25*%pi*D^2*L*10^-6*(N/(2*60))*k*nv
//Air required for the stoichiometric mixture with 1kg fuel(kg/kg of fuel)
ma=Ca*((PC/AtC)*32+(PH/AtH)*16)*(100/23.3)
//vo... |
198c5d694e9dce1d2cd254a0607577921ee8ef39 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2912/CH12/EX12.8/Ex12_8.sce | 5b74a619d00ba88f57d049e04d524d20f61cb71c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 564 | sce | Ex12_8.sce | // chapter 12
// example 12.8
// calculate numerical aperture and acceptance angle of an optical fibre
// page 361-362
clear;
clc;
// given
u1=1.48; // refractive index of core
u2=1.45; // refractive index of cladding
//calculate
NA=sqrt(u1^2-u2^2); // calculation of numerical aperture
printf('\nThe numeric... |
d504d17a60994d7248d3b7d4442a7ba404d7f775 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4/Unix-Windows/scilab-2.4/macros/scicos/show_info.sci | 8a405e2b0c2bf423b24e6e707e0074e13ab0137b | [
"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 | 165 | sci | show_info.sci | function show_info(info)
//This function may be redefined by the user to handle display
//of the informations associated with the current diagram
// Copyright INRIA
|
17c517d031c7ffe10c9214723f9e2f6728e4692d | e964e170c140080bfdc45c1e423e436b86d7c1b7 | /3 MID/MID.sce | 3a0c16ef46e3867f6a14c4eef14c779f63bbcd56 | [] | no_license | GNilsonne/gebra_stim | 647b6b8663bf825c606ace960f3343497b4fb3ad | 1ad944fc973ad296dba8502e1e10539fcc487408 | refs/heads/master | 2021-01-12T12:01:55.417785 | 2017-10-20T16:56:36 | 2017-10-20T16:56:36 | 69,223,164 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 7,173 | sce | MID.sce | # Monetary incentive delay task
# By Gustav Nilsonne and Daniel Samsami 2016
# Free to use with attribution
# MID demo test
scenario_type = fMRI;
pulses_per_scan = 1;
pulse_code = 115;
active_buttons = 1;
response_matching = simple_matching;
default_clear_active_stimuli = false;
default_background_color = 100, 100, 1... |
e8432de99aa2b63224c1b6469fbdd11b0248ee63 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set13/s_Introduction_To_Electric_Drives_J._S._Katre_2207.zip/Introduction_To_Electric_Drives_J._S._Katre_2207/CH6/EX6.6.7/ex_6_6_7.sce | 409a337b1c5c9bc8a491c325eea261c7af59922f | [] | 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 | 245 | sce | ex_6_6_7.sce | errcatch(-1,"stop");mode(2);//Example 6.6.7;inductance
;
;
v=220;//in volts
r=0.2;//in ohms
ia=200;//in amperes
f=200;//in hz
di=0.05*ia;//in amperes
e=0;//in volts
d=0.5;//
l=((1-d)*v*d*(1/f))/di;//
disp(l*10^3,"inductance in mH is")
exit();
|
5110791efe803fe61ecc7eb49d9231d2176c0613 | 66106821c3fd692db68c20ab2934f0ce400c0890 | /test/interpreter/tst01.tst | 7eeb393642bb10ffa8d1674d5803ff355ce9bd1c | [] | 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 | 241 | tst | tst01.tst | ; @Harness: simulator
; @Format: atmel
; @Arch: avr
; @Purpose: "Test the TST (test for zero or minus) instruction"
; @Result: "flags.s=0, flags.v=0, flags.n=0, flags.z=1, r16 = 0"
start:
ldi r16, 0b00000000
tst r16
end:
break
|
1c7476317b2b90524889fa5fc9692b3cd5808162 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1301/CH4/EX4.8/ex4_8.sce | a43fac0997c0f911470c4908a9a24d7f4b6d1f5c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex4_8.sce | clc;
G=3.44*10^-8; //universal gravitational constant in lb.ft square/slug square
r=10 //radius in ft
w=2000; //weight in lb
g=32; //gravitational constant in ft/sec square
m=w/g; //calculating mass in slugs
F=(G*m*m)/(r*r); //calculating gravitational force in lb
disp(F,"Gravitational force in lb = "... |
8b7cf8ee4392b39f7590203eaf4794242765b6c8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1727/CH3/EX3.4/3_4.sce | d246271dc1c45028faf47f952907d41f4d9cd665 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 157 | sce | 3_4.sce | clc
//Initialization of variables
dn1=4 //cm
v1=300 //cm/s
dn2=2.5 //cm
//calculations
v2=v1*dn1/dn2
//results
printf("Velocity = %.1f m/s",v2/100)
|
90800983568235f7f4d2bd2e5c0bb2309fd38cd4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /479/CH3/EX3.10/Example_3_10.sce | c998d9d0054d4889507b74f90b3323d597d13bcd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 682 | sce | Example_3_10.sce | //Chemical Engineering Thermodynamics
//Chapter 3
//First Law of Thermodynamics
//Example 3.10
clear;
clc;
//Given
V = 0.3;//Volume of the tank in m^3
P1 = 1;//Initial pressure of the tank in atm
P2 = 0;//Final pressure of the tank in atm
T = 298;//Temperature of the tank in K
t = 10;//evacuation time in... |
2db2b195ab46d045ab4474c9128a9ef6407797e6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /10/CH1/EX4/cha1_4.sce | a988674d88391f4bf5d1b6ed6bebeebf5682146b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | cha1_4.sce | Irad=20;Orad=25;Dia=22.5
N=250;i=2.5;
l=2*%pi*Dia*10^-2;
B=1.225;
radius=1/2*(Irad+Orad)
H=(N*i)/l
A=%pi*((Orad-Irad)/2)^2*10^-4
z=(1.225)*(%pi*6.25*10^-4)
y=(N*z)
L=(y/i)
core=(B/H)
l=(2*%pi*22.5*10^-2)
Rcore=(l)/(core*A)
L=(N^2)/(Rcore)
|
9b9cff9c2c85c485bcf3effc6a9fb945e9cfea99 | 127f3a4b49df924522f80739a53cc288d5521807 | /tp2/usolve.sci | 8ac7200f733c3ef7f20dcb81b9262b425b64fdb8 | [] | no_license | iimen/TD-TP-CN | 94e90aae917e47b8cc4d6d8b80af803b0dc82986 | 81da5d066b4ae7f3a2947f2fd4f4e67a88b5863a | refs/heads/master | 2023-01-24T16:23:51.161089 | 2020-12-17T12:29:55 | 2020-12-17T12:29:55 | 318,002,785 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 303 | sci | usolve.sci | function [x] = usolve(A,b)
// Solve Ax = b by upper solution method
// We assume A upper triangular : only the upper triangular
// part of A is considered
//
n = size(A,1);
x = zeros(size(b,1),1);
x(n)=b(n)/A(n,n);
for i=n-1 : -1 : 1
x(i,1) = (b(i,1)-A(i,i+1:n)*x((i+1):n,1))/A(i,i);
end
endfunction
|
6e2409be767142b3c3f726f65d13a92c5ef725ff | 449d555969bfd7befe906877abab098c6e63a0e8 | /67/CH1/EX1.21/example121.sce | 8ce87a56339d32b54c0c1aa8ffeabd29d4dbb32a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 586 | sce | example121.sce | //Example 1.21
clc;
x1=[1,1,1,1]
x2=[2,2,2,2]
a1=1;
b1=1;
a=7;
b=5;
for t=1:length(x1)
x3(t)=a1*x1(t)+b1*x2(t)
end
for t=1:length(x1)
y1(t)=a*x1(t)+b
y2(t)=a*x2(t)+b
y3(t)=a*x3(t)+b
end
for t=1:length(y1)
z(t)=a1*y1(t)+b1*y2(t)
end
count=0
for n=1:length(y1)
if(y3(t)==z(t))
... |
d804c9b95c2d82236b8e7a18affcccf892253d81 | cb795495d7cb7e053c51236279bdfedf3e4b7a37 | /Scilab/Activation Functions & Logic Gates/sigmoid.sce | 480564c55bf9ada8c79062c257bf013fc08f1d09 | [
"MIT"
] | permissive | memr5/Machine-Learning-Portfolio | 7b21443912deb8381518fcf0c12b4fd15ecbb9a6 | 31a9430aa957949c3f9e05e696f25f7200e21263 | refs/heads/master | 2021-07-17T15:48:05.964583 | 2020-04-23T12:35:58 | 2020-04-23T12:35:58 | 201,817,591 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 285 | sce | sigmoid.sce | x = -10:10;
alpha = [0.1 0.33 0.5]
sigmoid = 1./(1+exp(-x))
figure(1)
subplot(4,1,1)
plot(x,sigmoid)
sigmoid = 1./(1+0.1*exp(-x))
subplot(4,1,2)
plot(x,sigmoid)
sigmoid = 1./(1+0.33*exp(-x))
subplot(4,1,3)
plot(x,sigmoid)
sigmoid = 1./(1+0.5*exp(-x))
subplot(4,1,4)
plot(x,sigmoid)
|
adba5afda26054f4c65fe9bf56f46f0b41df36c6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2657/CH11/EX11.9/Ex11_9.sce | 6b62a60b54e8877b3b720c3f9cdbf6e1d55c1187 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,165 | sce | Ex11_9.sce | //Effect of air cleaner
clc,clear
//Given:
A_F=14 //Air fuel ratio at sea level
P2=0.834 //Pressure at venturi throat without an air cleaner in bar
P1=1.013 //Pressure of air in bar at sea level
deltaP_ac=30 //Pressure drop to air cleaner in mm of mercury
m_a=250 //Air flow in kg/hr
//Solution:
//No air cleane... |
980beecfcbf2a7f922f95a81c033ed5ab2987b2f | 9cb37875b74a713c93c09fa50ccc70ac0f71ecdb | /Collaboration/SCENARIOS/collaboration_test_user_experiment.sce | e165d8cfa4551ccb271ca59c2a21c6fe937f1317 | [] | no_license | jmainpri/move3d-assets | a5b621daaedaaf8784fed0da1e80d029c83f3983 | 939db49d17a14e052bb58324b70e6112803d3105 | refs/heads/master | 2021-01-16T17:48:56.669119 | 2016-02-16T14:04:09 | 2016-02-16T14:04:09 | 20,237,987 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,545 | sce | collaboration_test_user_experiment.sce | #************************************************************
# Scenario of humanTestEnv
#
# date : Thu Feb 26 16:39:55 2015
#************************************************************
p3d_sel_desc_name P3D_ENV humanTestEnv
p3d_sel_desc_name P3D_ROBOT HERAKLES_HUMAN1
p3d_set_robot_steering_method Linear
p3d_set... |
f4a778470769e5ab5af7558ca75c6e75a07563d2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3537/CH2/EX2.4/Ex2_4.sce | 52357fde982a9210893e391a1679e28406ff3a03 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 509 | sce | Ex2_4.sce | //Example 2_4
clc();
clear;
//To calculate the total number of lines for the first order
lemda=5890 //units in angstrom
lemda=5890*10^-8 //units in centimeters
dlemda=6*10^-8 //units in centimeters
k=1
N=lemda/(k*dlemda)
printf("Total no. of l... |
6fcb486a1f9536d91e86a15b363861affbb2cf56 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH5/EX5.19/Ch05Ex19.sce | e9bd487254dc58b77ea581af8d2167a976897fc1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 755 | sce | Ch05Ex19.sce | // Scilab Code Ex5.19: Page:306 (2011)
clc;clear;
D = 1.7;....// Distance between the slit and the screen, m
W = 2.5e-003;....// Given fringe width, m
a = 8e-005;....// Width of the first slit, m
b = 4e-004;....// Width of the second slit, m
n = b; //
p = [1 2 3 4 5 6];
// In a double slit experiment ... |
c86198c83fe51019a322fd687355546b54f64814 | 2e676e3b1cebfbb9d20f9b935ceacd507c57d36a | /Octave/octave-4.2.1/share/octave/4.2.1/etc/tests/fixed/slice.tst | d77a42611bd047f0408a43ad3cfacb3a821f4510 | [] | no_license | vohrahul/ML-ang-coursera | 239469e763b290aa178b7aa8a86eda08e4e7f4be | 4c24fd2ecfb9f3de7df15e3a9f75627f782f9915 | refs/heads/master | 2022-12-28T03:45:54.810173 | 2020-10-16T12:33:25 | 2020-10-16T12:33:25 | 304,620,441 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 7,932 | tst | slice.tst | ## Copyright (C) 2007-2017 John W. Eaton
##
## This file is part of Octave.
##
## Octave is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or (at
## your option) any later vers... |
dc59806bcfbff9348da3add2f8dca6bb578e0987 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3871/CH14/EX14.7/Ex14_7.sce | 6c5ff28997137d46328399ab6e4c260d642ab3f0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 883 | sce | Ex14_7.sce | //=====================================================================================
//Chapter 14 example 7
clc;
clear all;
//variable declaration
n =4; //number of full digits
v1 = 1; //voltage in V
v2 = 10; //voltage in V
//calculations
R = 1/(10^n); //resolutio... |
10da2c1bc6c598ca7364537167c1dc251af8d20f | 449d555969bfd7befe906877abab098c6e63a0e8 | /842/CH1/EX1.13/Example1_13.sce | bb0ca7c5b2e1ca02eaa327ef3974903beef16870 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 487 | sce | Example1_13.sce | //clear//
//Example 1.13:Determination of stablility of a given system
//Page 49
//given system y(t) = t.x(t)
clear;
clc;
x = [1,2,3,4,0,2,1,3,5,8]; //Assign some input
Maximum_Limit = 10;
S = 0;
for t = 0:Maximum_Limit-1
S = S+t*x(t+1);
end
if (S >Maximum_Limit)
disp('Eventhough input is bounded out... |
5ef77d3e3e56c8971bd10db0facf2684d7d4fce2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3131/CH2/EX2.5/2_5.sce | 148e2e2ca3e0f0cbf65e08e2494c96203da1a26f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 725 | sce | 2_5.sce | clear all; clc;
disp("Ex 2_5")
//Refer figure 2-17b, we determine the magnitude of each component using trignometry
f=200//Magnitude of force F1 in N
p1=30//given angle theta in degrees
p=p1*%pi/180//angle in radian
x1=-1*f*sin(p)
x=x1*(-1)
y=f*cos(p)
printf('\n\nF_1x = %g N = %g N leftwards',x1,x)
printf('\n\nF_1y = %... |
9074caf874085f8f1e1182fdc9054e2ae0afc1e8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3812/CH2/EX2.19.a/2_19_a.sce | 486a6bba9b65f1a5b7ecaa7264de5ae167ddea77 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 2_19_a.sce | //Example 2_19 <a>
//compute the Convolution of x[n] and Unit Impulse response h[n]
clear;
close;
clc;
Max_Limit=10;
for n=1:Max_Limit
Alpha=0.5;
h=ones(1,Max_Limit);
N1=0:Max_Limit-1;
x(n)=1;
end
N2=0:Max_Limit-1;
y=convol(x,h);
N=0:2*Max_Limit-2;
figure
a=gca();
plot2d3('gnn',N2,x)
xtitle('Input Re... |
f52c62876174d36ac754fc466a425ac7c8cca48c | d0080e0eb466760ff9223b7198868b34c6783607 | /Apprentisage/exercices/competitive_learning.sci | f544d05ed1b1b479a4ff0a64ef0f2d012164c099 | [
"BSD-3-Clause"
] | permissive | vanthonguyen/m2 | fc8b80f19a456e0f038f28c3e03a88e85e1c17c3 | 41b9380951a5e241cab591e186af80c40e4be663 | refs/heads/master | 2020-12-26T01:12:07.179725 | 2014-05-13T08:17:28 | 2014-05-13T08:17:28 | 19,494,479 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 49 | sci | competitive_learning.sci | function competitive_learning()
endfunction
|
80aaa80b89b6ae414d8d279f2d9631cdf1ffb394 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1595/CH3/EX3.3/ex3_3.sce | b5d305bc84006e1c4fbe63395ba3c14afc88d209 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex3_3.sce | // Amplitude Modulation-Reception : example 3-3 : (pg 150 & 151)
V=8*10^-6;
R=50;
P=(V^2)/R;
dBm=10*log10(P/0.001);
dBW=10*log10(P/1);
a=(-89+8+3+24+26+26-2+34);
x=(a/10);
y=10^x;
z=y*0.001;
printf("\nP = V^2/R = %.15f W",P);//input power in Watts
printf("\ndBm = 10log(P/1mW) = %.f dBm",dBm);//input power in... |
bbcc25363eb9852f99757c82279feff03daa15b9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2381/CH9/EX9.1/ex_1.sce | 9c1ba193c506e7afad3f8fd08cdcf8c5ab5c83a3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex_1.sce | //Example 1 // Pressure amplitude, Energy density and Energy flux
clc;
clear;
close;
//given data :
A=1*10^-5;// in m
n=500;// in per sec
v=340;// in m/s
p=1.29;// in kg/m^3
Pa=2*%pi*n*v*p*A;
disp(Pa,"Pressure amplitude,Pa(N/m^2) = ")
Ed=2*%pi^2*n^2*p*A^2;
disp(Ed,"Energy density,Ed(J/m^3) = ")
Ev=Ed*v;
disp(Ev,"Energy... |
e0717042d5a4b2d79932195ef3f92818a8cded16 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2453/CH7/EX7.1/7_1.sce | b9bf1510876ee44cf95e9361ba79be3bf1cc8663 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 282 | sce | 7_1.sce | //To calculate the relative permeability
M = 1.4; //field, T
H = 6.5*10^-4; //magnetic field, T
chi = M/H; //susceptibility
mew_r = 1+chi; //relative permeability
printf("relative permeability of iron is %d",mew_r);
//answer given in the book is wrong
|
36356bd6780bc1b1e87a75c54a6ff91a6326f86f | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH2/EX2.17/17.sce | 22257a89b81849b138b58e57311b9247e835b575 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 17.sce | clc
T=1.25; //N.m
N=9500;
W1=2*%pi*N*T/1000; //kJ
p=101.3; //kPa
d=0.65; //m
A=%pi/4*d^2; //m^2
L=0.6; //m
W2=p*A*L; //kJ
Wnet=(-W1)+W2;
disp("The net work transfer for the system=")
disp(Wnet)
disp("kJ") |
437f4b52fe487eb2a21e22837957caae96a272da | 984b7f3efe488e09080b96fa45a92e8d3396c86a | /keel/results/gassist_adi/result0s0.tst | e359cc222471831c6d628e5b24ee149460d1f715 | [
"MIT"
] | permissive | zychia/ELF-Miner | c0ee995a17b41e559ac6ff7914c2f26be38ed337 | 438b9dcd65a3d7a79ef830c1a5517891e12cfa7e | refs/heads/master | 2021-02-08T00:26:49.991431 | 2018-12-21T13:50:53 | 2018-12-21T13:50:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 13,346 | tst | result0s0.tst | @relation .a/actual_final/actual_final
@attribute Identification {'7f_45_4c_46_01_01_01_00_00_00_00_00_00_00_00_00', '7f_45_4c_46_02_01_01_00_00_00_00_00_00_00_00_00', '7f_45_4c_46_01_01_01_03_00_00_00_00_00_00_00_00', '7f_45_4c_46_01_02_01_00_00_00_00_00_00_00_00_00', '7f_45_4c_46_02_01_01_03_00_00_00_00_00_00_00_00',... |
b8cd20627c75593c80a6558357f66218cb221e1b | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set12/s_Integrated_Circuits_P._Raja_2582.zip/Integrated_Circuits_P._Raja_2582/CH7/EX7.2/Ex7_2.sce | f5fb16c84aea2ca642836c459914216b038f81be | [] | 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 | 131 | sce | Ex7_2.sce | errcatch(-1,"stop");mode(2);//Ex 7.2
;;
RA=10;//kohm
C=0.1;//micro F
t=1.1*RA*C;//ms
disp(t,"Timing interval(ms)");
exit();
|
47e420c036fedea54ee0113f6491733b170413b3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /764/CH7/EX7.17.a/data7_17.sci | 69b2cd9c24e7cd1aad82794e71004f650e776d53 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 363 | sci | data7_17.sci |
//(Threaded Joints) Example 7.17
//Refer Fig. 7.36 on page 257
//Pre-load in the bolt Pi (kN)
Pi = 2.5
//External force acting on the bolt P (kN)
P = 5
//Yield tensile strength of 30C8 Syt (N/mm2)
Syt = 400
//Factor of safety fs
fs = 2.5
//Assume stiffness of bolts to be 1N/mm kb
kb = 1
//Stiffness of par... |
b229aa8b6a670c1756a75a70071e9423d802b978 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2699/CH5/EX5.2/Ex5_2.sce | daf375e870ce162d0b948adb7ec5ad20a970522d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 513 | sce | Ex5_2.sce | //EX5_2 PG-5.6
clc
Vbe=0.7;//base emitter voltage for silicon
Vcc=12;//supply voltage
Rb=150e3;
Rc=2e3
hFE_min=50;//minimum voltage gain
hFE_max=60;//maximum voltage gain
Ib=(Vcc-Vbe)/Rb;//since Vcc=Ib*Rb+Vbe
printf("\n base current is %.8f A \n",Ib)
printf("\n for hFE_min=50")
Ic=hFE_min*Ib
printf("\n Ic=%... |
49312f1679740735f382e68f0983272a3f133d7f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1529/CH7/EX7.10/7_10.sce | 455872b1b4685f848b039d2855eacaf0dba0e87c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 514 | sce | 7_10.sce | //Chapter 7, Problem 10
clc;
l=150*10^-3; //length
u0=4*%pi*10^-7; //permeability of free space
ur=4000; //relative permeability
A=1800*10^-6; //cross-sectional area
S=l/(u0*ur*A); ... |
f8ae11cfcb12ae5fc7a2e339e8eed327e0ab5bed | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/macros/m2sci/mmodlst.sci | 67e4b60734dbb8e7290916fabcc9a5602fd0ca02 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 3,051 | sci | mmodlst.sci | function lst=mmodlst(lst)
// mmodlst is used to reduce mutiple concatenations, obtained by the
// interpretor, such as
// [[a,b],c]
// [[a;b];c]
// to a single one whenever possible
//!
// Copyright INRIA
void=['0','0','0','0']
nlst=size(lst);top=0
ilst=0
pos=[]
to_kill=[]
while ilst<nlst
ilst=ilst+1
if type(ls... |
a231452b003d50c11d30cfba0b5a8b7dedbce55c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3760/CH1/EX1.16/Ex1_16.sce | f7e46373568e15d2eaccb63049ea829f8a627418 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,274 | sce | Ex1_16.sce | clc;
P=200000; //rated power of transformer
E1=4000; // primary side rated voltage
E2=1000; // secondary side rated voltage
n=0.97; // efficiency
pfn=0.25; // power factor at no load
pff=0.8; // power factor at full load
vr=5; // percentage voltage regulation
Pl=((1/n)-1)*200000; // total losses at full load
... |
3be696ceece648c505a52a88e74babd9f4cc8ec1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1052/CH24/EX24.4/244.sce | 0525d89d98174c4be10eaa07c3c667adf6ae1150 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 249 | sce | 244.sce | clc;
//Exmple 24.4
//page no 354
printf("Example 24.4 page no 354\n\n");
//a particle is spining in a 3 inch ID centrifuge
r=3/12//radius of centrifuge,ft
omega=30//rotational speed,rad/s
g=32.2
G=round(r*omega^2/g)
printf("\n G=%f ",G);
|
fc2018ffaae5988bef2fd76446d8656aae594d4e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3830/CH1/EX1.35/Ex1_35.sce | 9929fc7ecdd8327071c96ab8fe7c156a375c0ec2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 468 | sce | Ex1_35.sce | // Exa 1.35
clc;
clear;
// Given
f = 450; // Resonating frequency in kHz
C = 250; // Capacitor value at resonating frequency (pf)
Q = 105; // Q-meter reading at resonance
Rsh = 0.75; // Value of shunt resistance in ohms
// Solution
L = 1/((2*%pi*f*10^3)^2*C*10^-12); // in H
w=2*%pi*f*10^3;
R = (w*... |
2ac630c135c212fc46fc6f14a1ec6e2ae3aeb1c7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /569/CH5/EX5.13/5_13.sci | 0fe19624d98fa9b506b9f2a3c2a86fa464869889 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 199 | sci | 5_13.sci | // calculate the percentage change in value of the gauge resistance
clc;
s=100*10^6;
E=200*10^9;
strain=s/E;
Gf=2;
r_perunit=Gf*strain*100;
disp(r_perunit,'Percentage change in resistance=')
|
dd7d8e53fbfc060682e1d6c58f4ef03e6ad965db | 449d555969bfd7befe906877abab098c6e63a0e8 | /2300/CH17/EX17.17.3/Ex17_3.sce | dc933346111a1af70064a8c1a4861c1816277c2c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 994 | sce | Ex17_3.sce | //scilab 5.4.1
//Windows 7 operating system
//chapter 17 Number Systems,Boolean Algebra,and Digital Circuits
clc
clear
p=1;
//initialising variables
q=1;
z=0;
b=0;
w=0;
f=0;
format('v',18);//increasing the precision to 18 .
bin=11.1101;
d=modulo(bin,1);//separating the decimal part and the integer part
d... |
f255829f5db1b000d5ce6b9e55cbd1a105257ef3 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.17_18.tst | 198b9a973d8c798d0752ad1a58745577bbff2c7e | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 5,820 | tst | bow.17_18.tst | 17 63:1.5 222:0.1111111111111111 225:0.25 241:0.3333333333333333 331:1.0 376:1.0 508:1.0 1681:1.0
17 3:0.3333333333333333 9:0.058823529411764705 11:0.16666666666666666 30:0.5 48:1.0 50:1.0 96:0.07142857142857142 183:1.0 190:2.0 225:0.375 241:0.3333333333333333 260:1.0 272:1.0 282:0.3333333333333333 357:0.4 661:1.0 1057... |
1c092b752eeef23f5340d4366b711d1a0ed19d75 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2150/CH4/EX4.11/ex_4_11.sce | b9c1c048c8547b1988dda387e25b8feb4b20cac5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 608 | sce | ex_4_11.sce | // Example 4.11
clc;
clear;
close;
// Given data
V_CC= 6;// in V
V_BE= 0.7;// in V
bita= 100;
R_C= 2;// in kΩ
R_C= R_C*10^3;// in Ω
R_B= 530;// in kΩ
R_B= R_B*10^3;// in Ω
R1= 10;// in kΩ
R1= R1*10^3;// in Ω
R2= 5;// in kΩ
R2= R2*10^3;// in Ω
V_CE= 0:0.1:V_CC;// in V
I_C= (V_CC-V_CE)/(R_C)*10^3;// in m... |
11e4a56f46b095d61e41d34a9d03df38ee753de3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /650/CH5/EX5.5/5.sce | 180b5371755fca6eab938ce3ec19970dba4a866e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 245 | sce | 5.sce | clc
Qa=0.003/60; // m^3/s
Ca=20; // g/l
Co=0.126; // g/l
dp=3700; // N/m^2
p=1000; // N/m^2
d=0.1; // m
a=%pi*d^2/4;
Qi=Qa*((Ca-Co)/Co);
Q=Qi+Qa;
B=10/6;
Cd=Q/a/sqrt(2*dp/p/(B^4-1));
disp("Coefficient of discharge =")
disp(Cd)
|
647ee9ccb5b040a154e1440aeee6b5e5a596bb44 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2243/CH13/EX13.12/Ex13_12.sce | c4c60ccba951a8efa9b4b90ebe8487f41901ef20 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex13_12.sce | clc();
clear;
//Given :
M1 = 20; // neon isotope mass in amu
M2 = 22;//neon isotope mass in amu
E = 7*10^4; // Electric field in V/m
e = 1.6*10^-19;// electron charge in C
B = 0.5;// Magnetic field in Wb/m^2
B1 = 0.75; // Magnetic field in Wb/m^2
// Linear seperation = S2 - S1 = (2*E*(M2-M1))/(B*B1*e)
// 1 ... |
942153a225017c68e8dad1404938172bf9ba1283 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1373/CH14/EX14.2/Chapter14_Example2.sce | d8ec8c6ba1b916778f2495f02f74d941fa3ce138 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 767 | sce | Chapter14_Example2.sce | //Chapter-14, Example 14.2, Page 576
//=============================================================================
clc
clear
//INPUT DATA
pA=-0.9;//Partial pressure of water vapour in atm
t=0.0025;//Boundary layer thickness in m
//CALCULATIONS
//pA=(exp(-33.35y)-0.9)
y=0;
pAs1=exp(-33.35*y)-0.9;//Partia... |
d887bd40bb57d700f9cf44f2bb7dfd47ae7327cd | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH2/EX2.31/example2_31.sce | 2ba8da3dbe625aa7a7dc194692fe95871b80e00b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 586 | sce | example2_31.sce | clc
// Given that
lambda1 = 5.4e-7 // wavelength of light for nth order in meter
lambda2 = 4.05e-7 // wavelength of light for (n+1)th order in meter
theta = %pi / 6 // angle of diffraction in radian
// Sample Problem 31 on page no. 2.50
printf("\n # PROBLEM 31 # \n")
k = (lambda1 * lambda2) / ((lambda1 - lambda2) * ... |
cbb90b973704e20e99497904640c4f7e792edf1c | 9ecd71700220f8dc92a6be6a40ddb2cfc7d6d2a4 | /hellow world.sce | 1c14b048554ba9fe3c56fa19d668a5615fcd9cab | [] | no_license | IlyaGalkin/SciLabGalkin | 7361378cd188dcc8d88e503a3c2876acba527132 | 6d4f7151d13b2f4df18ff7fb8783e9c65d2ee4fb | refs/heads/master | 2021-08-23T22:32:08.289717 | 2017-12-06T22:19:42 | 2017-12-06T22:19:42 | 103,492,891 | 0 | 0 | null | 2017-12-06T22:19:19 | 2017-09-14T06:09:59 | Scilab | UTF-8 | Scilab | false | false | 28 | sce | hellow world.sce | d="hellow world";
disp(d)
|
0893912608f9f838d2075b139cdddeaef98c6ca3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /764/CH10/EX10.6.b/solution10_6.sce | 00ca675a751775c2cc04db585adf157db9a2c9b0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,191 | sce | solution10_6.sce | //Function to round-up a value such that it is divisible by 5
function[v] = round_five(w)
v = ceil(w)
rem = pmodulo(v,5)
if (rem ~= 0) then
v = v + (5 - rem)
end
endfunction
//Obtain path of solution file
path = get_absolute_file_path('solution10_6.sce')
//Obtain path of data file
dat... |
e3f243747c2b7ee7036d0da7662f223ca60b621a | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/tweet/bow/bow.1_17.tst | 64c5baec407207cce78bc5478150ecba00b26082 | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 27,900 | tst | bow.1_17.tst | 1 12:0.01818181818181818 13:0.2 27:0.2 36:0.05 41:0.25 50:1.0 58:0.25 67:0.5 70:0.18181818181818182 82:0.1111111111111111 85:0.2 98:1.0 109:0.5 113:0.5 176:0.5 197:0.16666666666666666 230:2.0 341:1.0 381:1.0 405:1.0 438:1.0 473:1.0 497:1.0 500:1.0 506:1.0 522:0.25 535:1.0 619:0.5 708:1.0 712:0.5 720:1.0 748:0.333333333... |
8f4c9fc2e56b40aa10c5ebe581a1d934b26c4db0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2969/CH5/EX5.11/Ex5_11.sce | a99a4ac7f46bfa98863dc1dcb173cb0ee568fdc0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 476 | sce | Ex5_11.sce | clc
clear
//DATA GIVEN
//CASE-1
//(T1-T2)/T1=1/6
//SO, T1=1.2(T2)......... Eqn(1)
//CASE-2
//T2 REDUCED BY 70 DEG. CELSIUS
//{T1-[T2-(70+273)]}/T1=1/3..............Eqn(2)
//2T1=3T2-1029
//By Eqn (1) and (2)
T2=(70+273)*3/(3-2*1.2);
T1=1.2*T2;
printf('(i) The Temperature of the Source, ... |
e990c197fade88d08a6e9957c81e5eff44fc0301 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2858/CH10/EX10.1/Ex10_1.sce | 9aab82c7942c5cc2158e0d5f17ecdc01b6fce02c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 546 | sce | Ex10_1.sce | //example 10.1
clc; funcprot(0);
Gamma=18;
H=7;
sigmaa=0.3*Gamma*H;
disp(sigmaa,"maximum pressure intensity in kN/m^2");
//partb
A=54.02;
B1=1/2*1.75*37.8+37.8*1.75-A;
B2=45.2;
C=54.02;
s=3; //spacing
Pa=C*s;
disp(Pa,"strut loads in kN");
Pb=(B1+B2)*s;
disp(Pb,"strut loads in kN")
Pc=C*s;
disp(Pc,"stru... |
a8adf575a586be735150b4d19e66cf1ab4689dd3 | 9bc415d58bf063a1bca303fea640e644333dbdbd | /Scilab/Sinais_e_Sistemas/Resposta_Frequencia_Hs.sci | 084396c478e2adc3ae741c5e743ea1921abfd461 | [] | no_license | Roast-Lord/SMGcodes | 36e55be6c1cc17af91ab2e3f5117c78684f20604 | b75107be829fb4373dc1bc4b8696fe4b9cec437a | refs/heads/main | 2023-07-05T05:25:50.557705 | 2021-08-17T17:46:25 | 2021-08-17T17:46:25 | 301,012,145 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,648 | sci | Resposta_Frequencia_Hs.sci | function [H,f]=Resposta_Frequencia_Hs(Hs,fs,N)
b=coeff(Hs(2))
a=coeff(Hs(3))
npolos=length(a)-1
nzeros=length(b)-1
f=linspace(0,2*fs,N);
w=2*%pi*f;
s=%i*w;
num=zeros(1:N);
den=zeros(1:N)+0.0001;;
for p=0:npolos
den=den+a(p+1)*s.^p;
end
for p=0:nzeros
num=num+b(p+1)*s.^p;
end
H= num./den;
... |
4524e9ee93f1d104acefe315ae4723e6478609bc | 449d555969bfd7befe906877abab098c6e63a0e8 | /1694/CH2/EX2.1/EX2_1.sce | 2145bc5a05b51b854bfa4ff62578de5fbf04b6b9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 437 | sce | EX2_1.sce | clear;
clc;
printf("\nEx2.1\n");
//page no.-55
//given
h=6.60*10^-34;...........//planck's constant in J-s
m=1.674*10^-27;.........//mass of neutron in Kg
lambda=10^-10;...........//wavelength in m
e=1.6*10^-19;.............//charge
//We know lambda=h/sqrt(2*m*E)
E=(h^2)/(2*m*lambda^2*e)............//energy... |
9cb161d1a01c3e1b156d2ad3e408ce69e748e076 | eb5936025640ccea178a740474cbe63c3c877762 | /Mux2Way7Bit/Mux2Way7Bit.tst | 2a8392e546eb40622c8f75b9be33cb558fd6a563 | [
"MIT"
] | permissive | SathvikJoel/project_hack | 94bad0245f1b7ab0b128115fa117b601555dfce4 | 5d6bba6012472230bcca2730263e045a3b3174a1 | refs/heads/master | 2023-01-08T22:49:51.633858 | 2020-11-10T10:11:48 | 2020-11-10T10:11:48 | 289,897,875 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 234 | tst | Mux2Way7Bit.tst | load Mux2Way7Bit.hdl,
output-file Mux2Way7Bit.out,
output-list x0%B1.7.1 x1%B1.7.1 s0%B1.1.1 y%B1.7.1;
set x0 %B1010101, set x1 %B0000000, set s0 0,
eval, output;
set x0 %B0000000, set x1 %B0000011, set s0 1,
eval, output; |
dcc2d5b9966f55637ec1b08dd02f63fee00ce08e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2021/CH10/EX10.12/EX10_12.sce | 463ea4730f7b4ca016c5c14a0458bf9e75ff918d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | EX10_12.sce | //Finding of C and f
//Given
n=0.012;
d=0.5;
w=2;
g=9.81;
//To Find
A=w*d;
P=2+(w*d);
R=P/A;
C=(1/n)*(R)^(1/6);
f=sqrt((8*g)/(C^2));
disp(" C="+string(C)+" m/sec");
disp("f ="+string(f)+" no units");
|
3145e570cb9dcfda5790e041943bf346de0ae4ad | 449d555969bfd7befe906877abab098c6e63a0e8 | /3885/CH5/EX5.7/Ex5_7.sci | 6111bfe21b34f1fbf90990b514bb94356600c5af | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 488 | sci | Ex5_7.sci | //control systems by Nagoor Kani A
//Edition 3
//Year of publication 2015
//Scilab version 6.0.0
//operating systems windows 10
// Example 5.7
clc;
clear;
s=poly(0,'s')
a=(s^5)+(4*s^4)+(8*s^3)+(8*s^2)+(7*s)+4
b=coeff(a)
n=length(b)
R=routh_t(a)
disp(R,'the routh array is;')
ap=s^2+1
r=roots(ap)
disp(... |
a44b46e2dc18d25c2b2a3f3897c3379838a5457e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1949/CH6/EX6.18.2/Ex6_18_2.sce | 2eb1f4e252a9f22a27e1c69f351c7d3c74c5d3ee | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 728 | sce | Ex6_18_2.sce | //Chapter-6,Example 6_18_2,Page 6-38
clc()
//Given Values:
u0=4*%pi*10^-7 //Permeability in vacuum
ur=380 //Relative permeability
d=20*10^-2 //diameter of solenoid in m
r=d/2 //radius of ring in m
A=5*10^-4 //Crosss sectional area of ring in m^2
phi=2*10^-3 ... |
658032ee06558932fff412b21b3145b7f8775f48 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.7_11.tst | 82ad0fa6f10ee0dd2e2e0e2aa3f4f6c3c684103e | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 5,983 | tst | bow.7_11.tst | 7 1:0.2 13:1.0 14:1.0 15:1.0 21:0.2857142857142857 22:0.15384615384615385 27:0.046511627906976744 45:1.0 49:0.07692307692307693 66:0.125 70:0.4 71:0.3333333333333333 84:1.0 86:0.3333333333333333 89:1.0 91:0.2 94:1.0 97:0.3333333333333333 107:0.16666666666666666 113:2.0 136:2.0 144:1.0 155:0.1111111111111111 157:1.0 195... |
0959d133791a35a34ab3dfb2486ec8773c49fa06 | e04f3a1f9e98fd043a65910a1d4e52bdfff0d6e4 | /New LSTMAttn Model/.data/form-split/DEVELOPMENT-LANGUAGES/austronesian/tgl.tst | 2657841198feb31acd96b1f66ba9096540fc41ae | [] | no_license | davidgu13/Lemma-vs-Form-Splits | c154f1c0c7b84ba5b325b17507012d41b9ad5cfe | 3cce087f756420523f5a14234d02482452a7bfa5 | refs/heads/master | 2023-08-01T16:15:52.417307 | 2021-09-14T20:19:28 | 2021-09-14T20:19:28 | 395,023,433 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 8,944 | tst | tgl.tst | liban V;PFOC;LGSPEC1
isip V;PFV;PFOC
bagsak V;NFIN
alaga' V;NFIN
nakaw V;IPFV;PFOC
maneho V;IPFV;PFOC
másid V;IPFV;PFOC
taguyod V;PFOC;LGSPEC1
kuha' V;PFOC;LGSPEC1
basag V;PFV;AGFOC
hirap V;NFIN
babá' V;NFIN
panalo V;IPFV;AGFOC
hagod V;PFOC;LGSPEC1
sundó' V;PFV;PFOC
kusot V;PFOC;LGSPEC1
gayat V;IPFV;PFOC
bagsak V;IPFV;... |
db71a12e392d4528e425fc2483a0b76146f96d6e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2333/CH3/EX3.22/22.sce | f92bfd1e66bbf3548124abed19c9b705edacef97 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 22.sce | clc
// Given that
lambda = 5000 // wavelength of light in angstrom
theta = 30 // angle in degree
d_theta = 0.01 // angular separation in radian
// Sample Problem 22 on page no. 165
printf("\n # PROBLEM 22 # \n")
printf(" Standard formula used \n")
printf(" d_theta /d_lambda = n/(e+d)*cos(theta) \n")
d_lambda... |
7d69dc1c4120bdc33c76ba593ed67f51b65ab928 | 906f286d018d405ea3ace52a3e8e8a109d68cefe | /kalman/kalman4.sce | faaf6132a1cbc958ace000c994cdf44e5b234c5f | [] | no_license | andreinakagawa/control | 165398c239178670934328a278113d136e7c5747 | b69f0cb7ee4f4328bdc7d45d7bb9fd82eec6343f | refs/heads/master | 2021-01-21T21:38:24.436418 | 2017-07-13T18:57:30 | 2017-07-13T18:57:30 | 92,322,739 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,884 | sce | kalman4.sce | clc
clear
mode(-1)
//CPII UFU 2017
//define macro which traces an ellipse
function []=ellipse(m1,m2,s1,s2,s12)
t=0:.1:.1+%pi*2;
c=2*cos(t);...
s=2*sin(t);...
rho=s12/sqrt(s1*s2);...
cr=sqrt(s1)*c+m1*ones(c);...
sr=sqrt(s2)*(rho*c+sqrt(1-rho*rho)*s)+m2*ones(s);...
plot(cr',sr')
endfunction
//gener... |
6f08cdc4809a4b35fd26740b982e5ffe17c8a689 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH18/EX18.23/18_23.sce | 277ea561a7277db1e86d0f0568f5ccd566938f86 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 265 | sce | 18_23.sce | //ques-18.23
//Calculating standard free energy change for the reaction
clc
//G = free energy (in kJ/mol)
G1=-16.8;//ammonia
G2=-86.7;//NO
G3=-237.2;//water
G=G2+G3*(1.5)-G1;//free energy change
printf("The free energy change required is %.1f kJ/mol.",G);
|
d7ec652a52d6206d8b9f7af7afd52e5034c93085 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1004/CH2/EX2.21/Ch02Ex21.sci | 0e4ecc920ad20078a11e26d4994f039fe99a7c84 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sci | Ch02Ex21.sci | // Scilab Code Ex2.21 Ionization potential of hydrogen atom: Pg:59 (2008)
m = 9.1e-031; // Mass of the electron, C
e = 1.6e-019; // Charge on an electron, coulomb
h = 6.626e-034; // Planck's Constant, Js
epsilon_0 = 8.85e-012; // Absolute electrical permittivity of free space, coulomb square per newton ... |
d78fa6967dc1185cf9f7a31db8063306ba1b871f | 449d555969bfd7befe906877abab098c6e63a0e8 | /213/CH13/EX13.19/13_19.sce | 9bf0a278150dec2074f2716b8ef0243120c736e2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 828 | sce | 13_19.sce | //To find torque exerted
clc
//Given:
TA=15, TB=20, TC=15
NA=1000 //rpm
Tm=100 //Torque developed by motor, N-m
//Solution:
//Refer Fig. 13.26 and Table 13.21
//Calculating the number of teeth on gears E and D
TE=TA+2*TB
TD=TE-(TB-TC)
//Speed of the machine shaft:
//From the fourth row of the table, x+y = 1... |
249497601a833090ee8e5e01d0d9adb28ff5689c | 449d555969bfd7befe906877abab098c6e63a0e8 | /587/CH2/EX2.16/example2_16.sce | 058c758f3a74bbabdeba852f0a2619876aa21783 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 570 | sce | example2_16.sce | clear;
clc;
//Example2.16[Heat Conduction through a Spherical Shell]
//Given:-
r1=0.08;//Inner Radius[m]
r2=0.1;//Outer radius[m]
k=45;//Thermal conductivity[W/m.degree Celcius]
T1=200;//Temperature of inner surface[degree Celcius]
T2=80;//Temperarure of outer surface[degree Celcius]
//Solution:-
//Integrat... |
3720ced719c6792154df982748a2656fd032fa51 | 13d93c2922005af35056d015f1ae3ebebe05ee31 | /scilab/physique/thermique/rayonnement.sce | 499863303331a8bdb57e0e4ce2d828ac491178f6 | [] | no_license | scls19fr/openphysic | 647cc2cdadbdafd050d178e02bc3873bd2b07445 | 67bdb548574f4feecb99b60995238f12f4ef26da | refs/heads/master | 2021-04-30T23:16:26.197961 | 2020-11-16T20:21:17 | 2020-11-16T20:21:17 | 32,207,155 | 1 | 1 | null | null | null | null | WINDOWS-1257 | Scilab | false | false | 1,152 | sce | rayonnement.sce | // Etude numˇrique du rayonnement d'un corps noir
clear
h = 6.6256e-34;
c0 = 2.9979e8;
nlambda = 1;
clambda = c0/nlambda
kB = 1.3807e-23;
function Llambda = corpsnoir(lambda,T)
// dˇfinit la distribution de luminance ˇnergˇtique monochromatique
// du rayonnement thermique du corps noir en fonction
// de la... |
35aafa54e169c7725615c8874ff277ea6952cda3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /409/CH4/EX4.1/Example4_1.sce | 61f3a7a213dd727dc82b78dbe44ef8aa413263bd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 452 | sce | Example4_1.sce | clear ;
clc;
// Example 4.1
printf('Example 4.1\n\n');
//Page no. 92
// Solution
//(a)
Temp_c=100 ;//[degree Celsius]
Temp_k=Temp_c+273 ;//[K]
printf('(a) Temperature in kelvin is %.2f K\n',Temp_k);
//(b)
Temp_f=(100*(1.8/1)) +32 ;//[degree Fahrenheit]
printf(' (b) Temperature in degree Fahrenheit is ... |
6c979d258d7d1a61537052abafbf407e0444c23b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1049/CH11/EX11.1/ch11_1.sce | 9a46e8f2b309bef9fb585771e86eaeea4fc80cf7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ch11_1.sce | clear;
clc;
V_s=11000;
V_ml=sqrt(2)*V_s;
f=50;
w=2*%pi*f;
I_d=300;
R_d=1;
g=20;//g=gamma
a=acosd(cosd(g)+%pi/(3*V_ml)*I_d*R_d); printf("firing angle=%.3f deg",a);
L_s=.01;
V_d=(3/%pi)*((V_ml*cosd(a))-w*L_s*I_d); printf("\nrectifier o/p voltage=%.1f V",V_d);
printf("\ndc link voltage=%.3f V",2*V_d/1000... |
092ae0d64f5362a9195d4edb7f6689065e999937 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1092/CH12/EX12.17/Example12_17.sce | 837cf4e970721d9a90aa2a2210b7b3188a0e92a0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,290 | sce | Example12_17.sce | // Electric Machinery and Transformers
// Irving L kosow
// Prentice Hall of India
// 2nd editiom
// Chapter 12: POWER,ENERGY,AND EFFICIENCY RELATIONS OF DC AND AC DYNAMOS
// Example 12-17
clear; clc; close; // Clear the work space and console.
// Given data
// code letter = J of SCIM (Ex.12-16)
// Ca... |
f1cc7087af341c9b0c44552406e60052b75dee1c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2627/CH1/EX1.12/Ex1_12.sce | 588a0376a8b628ddba3b1d4fbac8e0732221d634 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 184 | sce | Ex1_12.sce | //Ex 1.12
clc;clear;close;
format('v',6);
R1=30;//ohm
R2=60;//ohm
R3=30;//ohm
I3=1;//A
I1=I3*(R2+R3)/R2;//A
I2=I1-I3;//A
disp(I1,"Current I1(A)");
disp(I2,"Current I2(A)");
|
7b41aae94346b8da2f0ab00441e9089229c1c386 | 449d555969bfd7befe906877abab098c6e63a0e8 | /557/CH2/EX2.3/3.sce | d4dad5cba58e9081ac47aafe4dafe3bb98ebfc1e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 3.sce | clc ;funcprot(0);
//Example 2.3
//Initializing the variables
p1 = 101*10^3;//Initial Pressure
z1 = 0;//Initial Height
z2 = 1200;//Final Height
T1 = 15+273;//Initial Temperature
g = 9.81;//Acceleration due to gravity
gamma = 1.4;//Heat capacity ratio
R = 287;//Gas Constant
//Calculations
p2 = p1*(1-g*(z... |
1e792ecb4236e7c86664c46c371b2967e0d57e64 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2873/CH1/EX1.1/Ex1_1.sce | 445294112915bf920d6f8a7c6eae89f134b270f4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 398 | sce | Ex1_1.sce | // Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Engineering Thermodynamics by Onkar Singh,Chapter 1,Example 1")
h=30*10^-2;//manometer deflection of mercury in m
g=9.78;//acceleration due to gravity in m/s^2
rho=13550;//density of mercury at room temperature ... |
485b53fd3b073f7822d28f91a78033d912145ff7 | 43799901e22e995d4db64000ef28c0a787aeb11b | /ISAWIN/LINOV/TEST3/appli.tst | f13f138101b55da39792ffc4106f8c9a84a4c6eb | [
"WTFPL"
] | permissive | aquaforum/tench_catch | 7082d8e8f3a224aa50be9150a96362f2f323a2be | 3f377476d82d7343edd985a6d3a41b57dc301f98 | refs/heads/master | 2023-07-17T13:33:10.901467 | 2021-08-22T19:29:09 | 2021-08-22T19:29:09 | 398,885,059 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 866 | tst | appli.tst | @ISA_SYMBOLS,148963609
#NAME,test3,3.41
#DATE,29.09.2018
#SIZE,G=2,S=0,T=0,L=0,P=0,V=0
#COMMENT,wsma1tst
@PROGRAMS,2
#!5001,TEST
#!5002,DEXPO
@STEPS,0
@TRANSITIONS,0
@BOOLEANS,0
@ANALOGS,10
#!2001,RES_,+X,!0000,F,
#!2002,EX_,+X,!0000,F,
#!2003,SP,+X,!0000,F,
#!2004,PV,+X,!0000,F,
#!2005,DEXPO,... |
255c66bd33af3ea30117e2b8772263d6bbe12f17 | 449d555969bfd7befe906877abab098c6e63a0e8 | /944/CH4/EX4.3/example4_3_TACC.sce | b3b1177f9362635387a06fbc5a551a5e8fe71509 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 376 | sce | example4_3_TACC.sce | //example 4.3
clear;
clc;
//Given:
M=2.5;//mass of a substance[Kg]
x=0.6;//fraction of vapour phase
Ug=1105;//specific internal energy of saturated vapour[J/Kg]
Ul=298;//specific internal energy of saturated liquid[J/Kg]
//to find the total internal energy of the mixture
U=M*[(1-x)*Ul+x*Ug];
printf(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.