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
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 Qmin = W/e_max // Minimum heat requirement per second Qmin_ = Qmin*3600 // Minimum heat requirement per hour Amin = Qmin_/E // Minimum area requirement printf("\n Minimum area required for the collector plate is %d m^2",ceil(Amin))
de88ac2c634324903ff8ca256385e8d4543842b8
5c808b0f55fefd29b91c7cb73f2f3a08093c5033
/Code/Scilab Code/FalseNegsForAudioSamples.sci
1708f9235ca06f17b22c43ea1383a938a064274f
[]
no_license
JOfTheAncientGermanSpear/Filter-Bank-Guitar-Note-Chord-Detection
a01e2ce521561dfea555a588d6bb1e0f1deca18e
cb0d54c74275a990dcb984c4ec349e6ca4e72a1a
refs/heads/master
2021-01-20T12:00:42.472605
2013-06-14T03:04:33
2013-06-14T03:04:33
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
634
sci
FalseNegsForAudioSamples.sci
function falseNegs = FalseNegsForAudioSamples() //tests each audio sample with the associated filter //falsenegs is the array for which the samples does //not pass it's associated note filter falseNegs = zeros(1,48); for stageIndex = 0:3 for noteIndex = 0:11 audioSample = LoadAudioSample(stageIndex, noteIndex); audioSample = PrepAudioForProcessing(audioSample, 44100) passesFilter = HasNote(audioSample, stageIndex, noteIndex); falseNegs(Convert2DIndexTo1D(stageIndex, noteIndex, 12) + 1) = ~passesFilter; end end endfunction
dbe10324fe017675d37a28b58577f990812c7b0b
449d555969bfd7befe906877abab098c6e63a0e8
/1631/CH9/EX9.15/Ex9_15.sce
4522adf71901f39881b6a539bc0ae569145ae794
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
424
sce
Ex9_15.sce
//Caption: information rate //Example 9.15 //page no 403 //Find information rate of the source //all symbols are equally likely clc; clear; px1=1/2; px2=1/2; px3=1/2; px4=1/2; f=input("Enter the frequncy of system fm(in Hz) ="); HX=px1*log2(1/px1)+px2*log2(1/px2)+px3*log2(1/px3)+px4*log2(1/px4); printf("\n Entropy H(X) =%d bits/symbol\n ",HX); R=2*f*HX; printf("\n information rate =%d bits/sec",R);
3f2922902ab90332a0378e11bea6a11c5e6f5b45
28a8d47c4d79b231f8bebc28925792a290f67e9f
/bk/others/p2r/examples/examples5.tst
0fe0afb77cdecb62e8861bfb2237e73edd20be81
[]
no_license
ZVlad1980/doo
a1fe7d18ccfd0acf6ced7dbb33927c86a925aae8
e81be8f524b78b9a6ec06b7f83a8c13354fc6412
refs/heads/master
2021-08-17T02:03:54.553822
2017-11-20T17:21:03
2017-11-20T17:21:03
111,440,129
0
0
null
null
null
null
UTF-8
Scilab
false
false
406
tst
examples5.tst
PL/SQL Developer Test script 3.0 13 -- Created on 09.09.2014 by ZHURAVOV_VB declare -- Local variables here p xxdoo_p2r_parser := xxdoo_p2r_parser(':bookname/:callback(\d+)?/:id(\d+)?','book//1'); l_key varchar2(1024); l_value varchar2(1024); begin -- Test statements here p.first; while p.next(l_key, l_value) loop dbms_output.put_line(l_key || ' = ' || l_value); end loop; end; 0 0
dc00c592768c7948a9b90c50dd048144c49bd769
449d555969bfd7befe906877abab098c6e63a0e8
/881/CH10/EX10.1/exa10_1.sce
0fba87c9435973bc7b29032a19655bb1bba8b93a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
464
sce
exa10_1.sce
clc; //Example 10.1 //Page No 395 //Solution i=10*10^-4; dt=10*10^-9; dv=10; disp("The expression for the current through a capacitor is "); disp("i = C dv/dt"); disp("Rearranging and solving for c yields, "); c=i*dt/dv; disp('F',c,"C = "); disp("t = RC","The charge time constant for C when Q1 in on is "); disp("Therefore, rearranging the above equation and substituting the value of chaging time yields"); C=dt/(4.6*20); disp('F',C/100,"C = ");
44e0be0ef9003c64c822011d000345d15a5c0ba8
449d555969bfd7befe906877abab098c6e63a0e8
/1241/CH2/EX2.38/exa2_38.sce
b9dfdd3efa7aea2c29e49c8cb88850b363eb2f4d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
556
sce
exa2_38.sce
//Example 2-38// //add -17 to -30// clc //clears the console// clear //clears all exisiting variables// x=bitcmp(17,8) y=bitcmp(30,8) //complement of the decimal numbers 17 and 30// z=1 u=x+z v=y+z //1 is added to the complements// w=u+v a=dec2bin(w) //binary conversion of the decimal number// disp('binary form of number obtained by adding -17 to -30') disp(a) //result is displayed// disp(' the msb is discarded,so eight bit representation is the answer in binary form ') a=dec2bin(w-(2^8)) disp(a) //final result is displayed//
1407e7c9dfd2f4139b88e9b2f2aea7b5be2f392c
449d555969bfd7befe906877abab098c6e63a0e8
/2096/CH2/EX2.30/ex_2_30.sce
43da9a03dacda2b00f7114ab1d7b0355a6013888
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
ex_2_30.sce
//Example 2.30 //self capacitance clc; clear; close; //given data : C1=100; // in pico-farad f1=600;// in kilo-Hz f2=2; // in M-Hz Cd=(f1*1000)^2*C1/((f2*10^6)^2-(f1*1000)^2) disp(Cd,"the self capacitance,Cd(pico-farad) = ")
f03d0ec70128e21552fae210c29f747522217007
449d555969bfd7befe906877abab098c6e63a0e8
/764/CH6/EX6.5.b/solution6_5.sce
6e9fe8c306c7f1fe43a0c065b539ba66c8cb5d78
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,380
sce
solution6_5.sce
//Obtain path of solution file path = get_absolute_file_path('solution6_5.sce') //Obtain path of data file datapath = path + filesep() + 'data6_5.sci' //Clear all clc //Execute the data file exec(datapath) //Calculate the lead of the screw l (mm) l = n * p //Calculate the mean diameter of the screw dm (mm) dm = d - (0.5 * p) //Calculate the lead angle alpha (degree) alpha = atand(l/(%pi * dm)) //Calculate the angle of repose fi (degree) fi = atand(mu) //Calculate the torque required Mt (N-mm) Mt = ((W * 1000 * dm)*(tand(fi + alpha)))/2 //Calculate the torque required to overcome the collar friction Mtc (N-mm) Mtc = ((mu * W * 1000)*(4 * rm))/4 //Calculate the total external torque to be applied MTotal (N-mm) MTotal = Mt + Mtc //Hand force exerted at the hand wheel P (N) P = MTotal/(D/2) //Calculate the efficiency of the straightner eta (%) eta = ((W * 1000 * l)/(2 * %pi * MTotal))*100 //Calculate the number of threads z z = L/p //Calculate the core diameter of the screw dc (mm) dc = d - p //Calculate the bearing pressure on threads in nut Sb (N/mm2) Sb = (4 * W * 1000)/(%pi * z * ((d^2) - (dc^2))) //Print results printf('\nForce exerted at the rim to drive the screw(P) = %f N\n',P) printf('\nEfficiency of the straightner(eta) = %f percent\n',eta) printf('\nBearing pressure on the threads in the nut(Sb) = %f N/mm2\n',Sb)
1fd4ac62162e41766e8b8c5c8fea44dd485a2190
449d555969bfd7befe906877abab098c6e63a0e8
/992/CH3/EX3.8/Ex3_8.sce
dbda7f453ca29885ff92b4eb1932b2c1c5b07be6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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_8.sce
//Exa:3.8 clc; clear; close; //Given: Bw=150;//in KHz mod_f=10;//in KHz dev=Bw/2 - mod_f; printf("\n deviation to be used = %f KHz",dev);
e8d5cbc399ed28b012e735dc8ada66559084dcaa
45048b367a34e7974a0c6f2fbb1e52a1717f2248
/hosts.tst
2dce2d0f831057813d74d06f8f0522cf57aa5483
[]
no_license
vbezpaliy/SecDevOps
35b8be8cf552930abbbb6f0dcf00ed7b27bf2184
54af3adaac2ee5b4bc9a15b2b71d11e366d89762
refs/heads/master
2021-07-15T17:12:05.288401
2020-05-19T20:59:03
2020-05-19T20:59:03
147,838,842
0
0
null
null
null
null
UTF-8
Scilab
false
false
514
tst
hosts.tst
[Ubuntu] linxUbu1 ansible_host=192.168.57.3 linxUbu2 ansible_host=192.168.57.4 # 192.168.57.5 [Ubuntu:vars] ansible_ssh_user=haker ansible_ssh_private_key_file=~/home/haker/.ansible/.ssh/id_rsaf ansible_ssh_private_key_file=~/home/haker/.ansible/.ssh/id_rsa ansible_python_interpreter=/usr/bin/python3 [windows_servers] # windows10 ansible_host=192.168.57.5 [windows_servers:vars] ansible_user = v.bezpaliy@gmail.com ansible_port = 5986 ansible_connection = winrm ansible_winrm_server_cert_validation = ignore
19cab458835b6812407fd4a29329b6da90b1ce71
449d555969bfd7befe906877abab098c6e63a0e8
/2381/CH4/EX4.2/ex_2.sce
0231a29811958431ae96123ad6c337bee5fa665f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
166
sce
ex_2.sce
//Example 2 // ratio of Frequency clc; clear; close; k=1;//assume m1=16;//a.m.u m2=12;//a.m.u m3=m1;// rt=((m2+2*m1)/m2)^(1/2);// disp(rt,"ratio of frequency is,=")
8aeca47af305d2a2336274e6648dbf206020e12a
449d555969bfd7befe906877abab098c6e63a0e8
/1073/CH3/EX3.43/3_43.sce
f28a6d14351b9cf90dfa7f040841f1987941c5e1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
403
sce
3_43.sce
clc; clear; //Example 3.4 lambda=2257 //[kJ/kg] lambda=lambda*1000 //in [J/kg] rho_l=957.9 //rho*l[kg/m^3] rho_v=0.5955 //[kg/m^3] sigma=5.89*10^-2 //[N/m] g=9.81 //[m/s^2] //Peak heat flux is given by Q_by_A_max=(%pi/24)*(lambda*rho_v^0.5*(sigma*g*(rho_l-rho_v))^(1/4)) //W/m^2 Q_by_A_max=Q_by_A_max/(10^6) //MW/(sq m) printf("\n Peak heat flux is %f MW/sq m",Q_by_A_max);
13dd02c2be2381d72703d6c58ebf2176f75316e2
6e257f133dd8984b578f3c9fd3f269eabc0750be
/ScilabFromTheoryToPractice/CreatingPlots/testplot2d.sce
d78da94bb8c7ddcdf7540ccad234168741f1b2e7
[]
no_license
markusmorawitz77/Scilab
902ef1b9f356dd38ea2dbadc892fe50d32b44bd0
7c98963a7d80915f66a3231a2235010e879049aa
refs/heads/master
2021-01-19T23:53:52.068010
2017-04-22T12:39:21
2017-04-22T12:39:21
89,051,705
0
0
null
null
null
null
UTF-8
Scilab
false
false
103
sce
testplot2d.sce
clf; x=[0.001:0.02:2*%pi]'; y1=cos(x);y2=sin(x);y3=-sin(x.^2)./x; plot2d([x x x],[y1 y2 y3],[2 4 5])
86a3eef2f6de74a798bbef9e03ac4e1cec7b9173
364fc2bac23ae5482a18e5e9392ff63e68642dae
/Annales/2016_exo4.sci
5e3c5310f25fc54116d2290cf9273a53eaa334d7
[]
no_license
Raphael-De-Wang/2M310TP
259e55e9dc931b0a0102ed7a5dbbb31e82b88295
af21ffee07fadeb5b27c5f30d0deb1926972ccee
refs/heads/master
2021-01-11T14:14:21.447623
2017-03-29T20:27:35
2017-03-29T20:27:35
81,227,258
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,243
sci
2016_exo4.sci
clear; A = [0,-1;1,0]; x0 = [1;0]; T = 4 * %pi; p = 100; // Q1. function Xexp = EulerMatrix(A,x0,T,p) hp = T/p; Xexp = [;]; Xexp(1,:) = x0; for k = (1:p), Xexp(k+1,:) = (Xexp(k,:)' + hp * ( A * Xexp(k,:)'))'; end endfunction // Q2. function X = SolutionExact(A,x0,T,p) t = linspace(0,T,p+1); X = [;]; X(:,1) = cos(t)'; X(:,2) = sin(t)'; endfunction X = SolutionExact(A,x0,T,p); // Q3. function H = Energie(A,x0,T,p) t = linspace(0,T,p+1); H = cos(t) .^ 2 + sin(t) .^ 2; endfunction H = Energie(A,x0,T,p); // Q4. function x = f(xn,yn) x = xn - h * yn; endfunction function y = g(A,x0,T,p) y = yn + h * xn; endfunction // Q5. function He = EnergieEuler(A,x0,T,p) X = EulerMatrix(A,x0,T,p); He = X(:,1) .^ 2 + X(:,2) .^ 2; He = He'; endfunction // Q6. Xexp = EulerMatrix(A,x0,T,p) // Q7 function graph(A,x0,T,p) X = SolutionExact(A,x0,T,p); Xe = EulerMatrix(A,x0,T,p); H = Energie(A,x0,T,p); He = EnergieEuler(A,x0,T,p); t = linspace(0,T,p+1); subplot(121); plot(t,H,'green') plot(t,He,'blue') subplot(122); plot(X(:,1),X(:,2),'green') plot(Xe(:,1),Xe(:,2),'blue') endfunction p = 200 graph(A,x0,T,p)
aeee968a112cd790dbc7229ac9ad0904a38044c0
449d555969bfd7befe906877abab098c6e63a0e8
/3822/CH6/EX6.12/Ex6_12.sce
e2adb6c2246206b44a707c7becc04f2d7af6e909
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
796
sce
Ex6_12.sce
//Optoelectronics and Fiber Optics Communication by C.R. Sarkar and D.C. Sarkar //Example 6.12 //OS = Windows 7 //Scilab version 5.5.2 clc; clear; //given Area_Cell=4;// Area of each cell in cm^2 eta=0.12;// Conversion Efficiency V=0.5;// Voltage generated in V Pt=12;// Total output Power in W IR=100*10^-3;// Solar Constant or Input Radiation in mW/cm^2 Active_area_Panel=(Pt/(IR*eta));// Active area of the Panel in cm^2 Number_Cells=(Active_area_Panel/Area_Cell);// Number of cells I=(eta*IR*Area_Cell/V);// Current capacity in A mprintf("\n Number of Cells are =%.2f",Number_Cells); mprintf("\n Active area of the Panel is= %.2fcm^2",Active_area_Panel); mprintf("\n Current capacity of each cell is =%.2fmA",I*1e3);//Multiplication by 1e3 to convert unit to mA from A
3cada3810d009f554b63971d1ba34180f729d3a6
4a1effb7ec08302914dbd9c5e560c61936c1bb99
/Project 2/Experiments/FURIA-C/results/FURIA-C.vowel-10-1tra/result9s0.tst
827aaabd5f4b7f2fb9c9b2627b5818c6be87f519
[]
no_license
nickgreenquist/Intro_To_Intelligent_Systems
964cad20de7099b8e5808ddee199e3e3343cf7d5
7ad43577b3cbbc0b620740205a14c406d96a2517
refs/heads/master
2021-01-20T13:23:23.931062
2017-05-04T20:08:05
2017-05-04T20:08:05
90,484,366
0
0
null
null
null
null
UTF-8
Scilab
false
false
979
tst
result9s0.tst
@relation vowel @attribute TT integer[0,1] @attribute SpeakerNumber integer[0,14] @attribute Sex integer[0,1] @attribute F0 real[-5.211,-0.941] @attribute F1 real[-1.274,5.074] @attribute F2 real[-2.487,1.431] @attribute F3 real[-1.409,2.377] @attribute F4 real[-2.127,1.831] @attribute F5 real[-0.836,2.327] @attribute F6 real[-1.537,1.403] @attribute F7 real[-1.293,2.039] @attribute F8 real[-1.613,1.309] @attribute F9 real[-1.68,1.396] @attribute Class{0,1,2,3,4,5,6,7,8,9,10} @inputs TT,SpeakerNumber,Sex,F0,F1,F2,F3,F4,F5,F6,F7,F8,F9 @outputs Class @data 10 10 3 3 7 7 4 4 3 3 1 9 2 2 5 10 0 9 3 3 0 0 10 10 2 2 8 8 0 0 5 5 6 4 7 7 9 8 4 4 1 1 1 2 7 7 9 9 2 2 5 2 9 8 8 8 9 8 2 2 4 4 9 9 10 10 3 3 6 6 8 8 2 3 0 1 6 6 5 10 6 6 10 10 4 5 9 9 1 1 4 4 7 7 5 5 6 6 1 1 10 10 0 0 6 6 10 10 0 0 8 9 3 3 4 4 8 8 3 3 1 2 8 9 2 2 10 10 1 1 4 4 5 5 9 8 0 0 7 7 8 7 2 2 5 5 4 4 7 6 10 10 0 0 7 6 2 2 5 10 6 6 3 3 1 1 6 6 7 7 3 3 8 8 9 9 0 0 1 1 2 2 3 3 4 4 5 4 6 6 7 6 8 8 9 9 10 10
60be135635defb3b0bc7974d1bceaffdff99c016
449d555969bfd7befe906877abab098c6e63a0e8
/854/CH11/EX11.5/Example11_5.sce
0dc42def332c93f34daf365f403ddaa43f68a882
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
542
sce
Example11_5.sce
//clear// //Caption:Program to find the power dissipated in the lossless //transmission line //Example11.5 //page352 clc; close; ZL = 50-%i*75; //load impedance in ohms Zo = 50; //characteristic impedance in ohms R = (ZL - Zo)/(ZL + Zo); Pi = 100e-03; //input power in milliwatts Pt = (1-abs(R)^2)*Pi;//power dissipated by the load disp(R,'Reflection coefficient R =') disp(Pt*1000,'power dissipated by the load in milli watss Pt=') //Result //Reflection coefficient R = 0.36 - 0.48i //power dissipated by the load in milli watss Pt = 64.
4e629ff8767ae6f66f835d04d2399a213d3b1ae0
449d555969bfd7befe906877abab098c6e63a0e8
/2657/CH2/EX2.7/Ex2_7.sce
8cb791ee7a7eb1fabdbbf7dc5b201cf2c2c1577b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
944
sce
Ex2_7.sce
//Calculations on Otto cycle clc,clear //Given: P1=1.05,P2=13,P3=35 //Pressure at 1, 2, 3 in bar T1=15+273 //Temperature at 1 in K cv=0.718 //Specific heat at constant volume in kJ/kgK R=0.287 //Specific gas constant in kJ/kgK //Solution: r="V1/V2" //Compression ratio g=R/cv+1 //Specific heat ratio(gamma) r=(P2/P1)^(1/g) //By adiabatic process relation eta=1-1/r^(g-1) //Air standard efficiency T2=P2*T1/(P1*r) //Temperature at 2 in K T3=(P3/P2)*T2 //Temperature at 3 in K Q1=cv*(T3-T2) //Heat added in kJ/kg W=Q1*eta //Work done in kJ/kg V1=1*R*10^3*T1/(P1*10^5) //Ideal gas equation, Volume at 1 in m^3/kg V2=V1/r //Volume at 2 in m^3/kg V_s=V1-V2 //Swept volume in m^3/kg mep=W*1000/(V_s*10^5) //Mean effective pressire in bar //Results: printf("\n The air standard efficiency, eta = %.1f percent",eta*100) printf("\n The compression ratio, r = %d",r) printf("\n The mean effective pressure, mep = %.2f bar\n",mep)
697f6917daa74f7356565797a7561f96b884b61e
99b4e2e61348ee847a78faf6eee6d345fde36028
/Toolbox Test/tf2zpk/tf2zpk2.sce
5cd45e93ffff746deed7b32edc9ee6576a42d9c8
[]
no_license
deecube/fosseetesting
ce66f691121021fa2f3474497397cded9d57658c
e353f1c03b0c0ef43abf44873e5e477b6adb6c7e
refs/heads/master
2021-01-20T11:34:43.535019
2016-09-27T05:12:48
2016-09-27T05:12:48
59,456,386
0
0
null
null
null
null
UTF-8
Scilab
false
false
307
sce
tf2zpk2.sce
//check o/p whwn b is a matrix and a is a row vector b=[1 2 ;3 4]; a=[2 3 4 6]; [z,p,k]=tf2zpk(b,a); disp(z); disp(p); disp(k); ////output //- 2.7963219 // - 0.1018390 + 1.1916708i // - 0.1018390 - 1.1916708i // // - 1.5 // 1.4142136i // - 1.4142136i // // 0.5
6f155a32d65478d3b15c9a1f8352a0716ae35742
449d555969bfd7befe906877abab098c6e63a0e8
/147/CH8/EX8.16/Example8_16.sce
a00d413f57860bc1df396f64fc3c8dac0619cf9e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Example8_16.sce
//Resistance R, Voltage V close(); clear; clc; Re = 300;//ohm Rc = 500;//ohm Vcc = 15;//V Beta = 100; Vcesat = 0; Vbeq = 0.7; Rb = Beta*Re/10; //For maximum symmetrical swing Icq = 1/2*(Vcc/(Re+Rc)); Vbb = Vbeq + Icq*Re*1.1; R1 = Rb/(1-(Vbb/Vcc)); R2 = Rb*Vcc/Vbb; mprintf('R1 = %0.2f k ohm\nR2 = %0.2f k ohm',R1/1000,R2/1000);
ee51fec35d23920e205bdefda3b713092a0f898c
449d555969bfd7befe906877abab098c6e63a0e8
/2333/CH3/EX3.13/13.sce
7ed5cc6cb728a471d50fcd5f7ff5874394c65f31
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
429
sce
13.sce
clc // Given that lambda= 5000 // wavelength of light in angstrom theta = 90 // for maximum order X = 2620 // no. of lines per inch // Sample Problem 13 on page no. 156 printf("\n # PROBLEM 13 # \n") printf(" Standard formula used \n") printf(" n*lambda= sin(theta)/N \n") N = X/2.54 // no. of lines per cm n= sin(theta*%pi/180)/(N*lambda*1e-8) // order calculation printf("\n Number of orders visible is %d.",n)
8d4466c9ce41909a7d1d679a519581bccd2aac3f
449d555969bfd7befe906877abab098c6e63a0e8
/1217/CH1/EX1.19/Exa1_19.sce
d35c00fe3593cb01023febc8d84cd72aa330d165
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Exa1_19.sce
//Exa 1.19 clc; clear; close; //given data Io=10;//in uA IR=1;//in mA VBE2=0.7;//in volts VT=25;//in mVolts VCC=20;//in volts R=(VCC-VBE2)/IR;//in kohm RE=((VT*10^-3)/(Io*10^-6))*log((IR*10^-3)/(Io*10^-6));//in ohm RE=RE/1000;//in kohm disp(R,"R in kohm is :") disp(RE,"RE in kohm is :") //note : answer in the book of RE is wrong.
c38fdfbc6d0853c6cbda650c58d9080d9a032cd7
449d555969bfd7befe906877abab098c6e63a0e8
/3020/CH14/EX14.3/ex14_3.sce
9c0d0726bbbfb7654cf0d759941758441b671beb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
349
sce
ex14_3.sce
clc; clear all; m = 1.675e-27; // Mass of an nueton in Kg h = 6.626e-34; // Planck's constant e = 1.609e-19; // Charge of an electron in culoumb E = 10e3*e; // Energy of an electron in Joule lambda = h/(sqrt(2*m*E));//The de-broglie wavelength disp('m',lambda,'The de-broglie wavelength is') // Slight variation in answer than textbook
85b725541cd9057c0b7e6ce50a2461dd2bf00373
449d555969bfd7befe906877abab098c6e63a0e8
/2321/CH10/EX10.5.1/EX10_5_1.sce
496f883023d7dfdae2d6ea0568c7c36c7eec9868
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,029
sce
EX10_5_1.sce
//Example No. 10.5.1 clc; clear; close; format('v',6); N=5;//no. of turns f=400;//MHz(Frequency) c=3*10^8;//m/s(Speed of light) lambda=c/(f*10^6);//m(Wavelength) disp("Part (i)"); S=lambda/50;//m(Spacing between turns) S_BY_lambda=1/50;//(Spacing/wavelength) C_BY_lambda=sqrt(2*S_BY_lambda);//(Circumference/wavelength) disp("Circumference is "+string(C_BY_lambda)+"*lambda"); C=sqrt(2*lambda*S);//m(Circumference) disp(C,"Circumference in meter : "); disp("Part (ii)"); Lo_BY_lambda=sqrt(S_BY_lambda^2+C_BY_lambda^2);//(Length/wavelength) disp("Length of single turn is "+string(Lo_BY_lambda)+"*lambda"); Lo=sqrt(S^2+C^2);//m(Length of single turn) disp(Lo,"Length of single turn in meter : "); disp("Part (iii)"); Ln_BY_lambda=N*Lo_BY_lambda;//(Overall length/wavelength) disp("Overall Length is "+string(Ln_BY_lambda)+"*lambda"); Ln=N*Lo;//m(Overall length) disp(Ln,"Overall Length in meter : "); disp("Part (iv)"); alfa=atand(S/C);//degree(Pitch angle) disp(alfa,"Pitch angle, α in degree : ");
0a2868d4eabea9fdf634a67804eb127b5884e909
449d555969bfd7befe906877abab098c6e63a0e8
/343/CH4/EX4.30/ex4_30.sce
43c9c2bf9d01d5f5f9e0f1f68152613d33280c35
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
156
sce
ex4_30.sce
clc cl1=1.5 //Assigning values to parameters cl2=0.5*0.5*cl1 tec=cl1*3+cl2*4 tei=36 eo=500 n=eo*100/(eo+tei+tec) disp(n,"The efficiency is")
4fa63e98ed276f60c7029a08d48c67119b46bb5f
5c808b0f55fefd29b91c7cb73f2f3a08093c5033
/Code/Scilab Code/CalcSignalRMS.sci
09a6bd901ed2cf09856f76971080aeb3a6730ebd
[]
no_license
JOfTheAncientGermanSpear/Filter-Bank-Guitar-Note-Chord-Detection
a01e2ce521561dfea555a588d6bb1e0f1deca18e
cb0d54c74275a990dcb984c4ec349e6ca4e72a1a
refs/heads/master
2021-01-20T12:00:42.472605
2013-06-14T03:04:33
2013-06-14T03:04:33
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
161
sci
CalcSignalRMS.sci
function rmsValue = CalcSignalRMS(signal) signalSquared = signal.^2; meanSquared = mean(signalSquared); rmsValue = sqrt(meanSquared); endfunction
9836915fcfe42ba328449a75f8edb43e63ad53a8
449d555969bfd7befe906877abab098c6e63a0e8
/3472/CH39/EX39.32/Example39_32.sce
806eba50689e4dfde0d1fddd4932c0489bd90650
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,155
sce
Example39_32.sce
// A Texbook on POWER SYSTEM ENGINEERING // A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar // DHANPAT RAI & Co. // SECOND EDITION // PART IV : UTILIZATION AND TRACTION // CHAPTER 1: INDUSTRIAL APPLICATIONS OF ELECTRIC MOTORS // EXAMPLE : 1.32 : // Page number 711 clear ; clc ; close ; // Clear the work space and console // Given data V = 400.0 // Voltage of synchronous motor(V) p = 8.0 // Number of poles J = 630.0 // Moment of inertia(kg-m^2) T_E = 165.0 // Braking torque(kg-m) kw_1 = 690.0 // Electric braking torque(kg-m) T_F = 1.4 // Frictional torque(kg-m) f = 50.0 // Frequency(Hz). Assumed normal supply frequency // Calculations g = 9.81 // Case(a) Plugging T_B = T_E+T_F // Torque(kg-m) beta = T_B*g/J // Retardation(rad/sec^2) N_s = 120*f/p // Synchronous speed(rad/sec) w = 2*%pi*N_s/60 // ω(rad/sec) t_a = integrate('-1.0/beta','w', w, 0) // Time taken to stop the motor(sec) n_a = integrate('-w/(2*%pi*beta)','w', w, 0) // Number of revolutions // Case(b) Rheostatic braking k = kw_1/w t_b = J/(g*k)*log((T_F+kw_1)/T_F) // Time taken to stop the motor(sec) n_b = 1.0/(2*%pi*k)*(J/(g*k)*(T_F+kw_1)*(1-exp(-k*g*t_b/J))-T_F*t_b) // Number of revolutions // Results disp("PART IV - EXAMPLE : 1.32 : SOLUTION :-") printf("\nCase(a): Time taken to come to standstill by plugging, t = %.1f sec", t_a) printf("\n Number of revolutions made to come to standstill by plugging, n = %.f revolutions", n_a) printf("\nCase(b): Time taken to come to standstill by rheostatic braking, t = %.1f sec", t_b) printf("\n Number of revolutions made to come to standstill by rheostatic braking, n = %.f revolutions\n", n_b) printf("\nNOTE: ERROR: Calculation mistake in finding number of revolution in case(a) in textbook solution")
3bee838529460a9fd1e78aeb0318c9a19907b855
449d555969bfd7befe906877abab098c6e63a0e8
/773/CH11/EX11.17/11_17.sci
6c099bb877a2b23fb9b303936b6415ca5724fdec
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
552
sci
11_17.sci
//value// s=%s; H=syslin('c',1/((s+1)*s*(s+3))); evans(H,100) syms k; m=s^3+6*s^2+8*s+k; cof_a_0 = coeffs(m,'s',0); cof_a_1 = coeffs(m,'s',1); cof_a_2 = coeffs(m,'s',2); cof_a_3 = coeffs(m,'s',3); r=[cof_a_0 cof_a_1 cof_a_2 cof_a_3] n=length(r); routh=[r([4,2]);r([3,1])]; routh=[routh;-det(routh)/routh(2,1),0]; t=routh(2:3,1:2); //extracting the square sub block of routh matrix routh=[routh;-det(t)/t(2,1),0] disp(48,"K(marginal)=") disp('=0',(6*s^2)+k,"auxillary equation") k=48; s=sqrt(-k/6); disp(s,"s=")
b8f6639513ae0403ec3b1f2264eccabdfa814607
449d555969bfd7befe906877abab098c6e63a0e8
/2135/CH2/EX2.2/Exa_2_2.sce
513e8aa12faa0fc252254ec73d4d9977809e0f9a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
269
sce
Exa_2_2.sce
//Exa 2.2 clc; clear; close; format('v',7); //Given Data Q1=2500;//KJ/Kg Q2=1800;//KJ/Kg Pdev=210;//MW //Power developed = Heat transfered: Pdev=m*(Q1-Q2) m=Pdev*1000/(Q1-Q2);//mass flow rate of steam in Kg/s disp(m,"Mass flow rate of steam in Kg/s : ");
07c15faa95c0849892890c2b9cbb68092ddfd98a
449d555969bfd7befe906877abab098c6e63a0e8
/761/CH20/EX20.7/20_7.sce
242d3ba2a9fc72b364af0acc51a286df844f76cc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
679
sce
20_7.sce
clc; // page no 761 // prob no 20.7 // refer prob no 20.5 d=38000;//distance of satellite from the Earth surface P=50;//transmitter power G=30;//antenna gain f=12000;//frequency in MHz B=10^6;// Bandwidth in MHz //from problem no 2.5 G_T=21; L_misc=0; k_dBW=-228.6;//Boltzmann's constant in dBW // There are no miscellaneous loss //The stellite transmitting power in dBW is Pt_dBW = 10*log10(P); // The EIPR in dBW EIRP_dBW=Pt_dBW + G; //FSL in dB FSL_dB= 32.44 + (20*log10(d)) + (20*log10(f)); // The carrier to noise ratio is ratio=EIRP_dBW - FSL_dB - L_misc + G_T - k_dBW - 10*log10(B); disp('dB',ratio,'The carrier to noise ratio at the receiver is');
46f36c85aee6074fd6452c1d17887aa0eaa72095
449d555969bfd7befe906877abab098c6e63a0e8
/2165/CH6/EX6.13/6_13.sce
4dcd43367c365caf81b45eb61c39f78974a2c815
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
6_13.sce
clc //initialisation of variables h=500//gallons p1=150//lb/in^2 p2=0.6//lb/in^2 P=p2*p1//lb/in^2 h=25//C.H.U/lb p=62.4//lb/ft^2 V=sqrt(2*32.2*1400*h)//ft/sec D=0.996//in^2 d=4.898//in^2 v1=1.2//in vi=163.2//ft/sec m=V/32.2//ft.lb.sec //CALCULATIONS W=V/vi-1//lb W1=(5000)/(3600*W)//ft/sec V1=W1*d*D//ft^3 A=V1/V*144//in^2 I=(50/36+W1)//lb/sec A1=(I*144)/(62.4*vi)//in^2 //RESULTS printf('the aera of the stream and water orifices=% f in^2',A1)
3405cfa95f354114a472c37fa9b4d7097cdd2e8b
584105ff5b87869494a42f632079668e4c3f82de
/Help-files/RQDecomp3x3.sci
278388075683db5f9d6b93c68205236996cf58a7
[]
no_license
kevgeo/FOSSEE-Computer-Vision
0ceb1aafb800580498ea7d79982003714d88fb48
9ca5ceae56d11d81a178a9dafddc809238e412ba
refs/heads/master
2021-01-17T21:11:31.309967
2016-08-01T14:45:40
2016-08-01T14:45:40
63,127,286
6
0
null
null
null
null
UTF-8
Scilab
false
false
800
sci
RQDecomp3x3.sci
// Computes RQ decomposition of 3x3 matrices // // Calling Sequence // [triMatrix orthoMatrix RotMatrixX RotMatrixY RotMatrixZ ] = RQDecomp3x3(matrix); // // Parameters // Input // matrix : 3x3 input matrix // Output // triMatrix : 3x3 Triangular matrix // orthoMatrix : 3x3 Orthogonal matrix // RotMatrixX : 3x3 rotation matrix around x-axis // RotMatrixY : 3x3 rotation matrix around y-axis // RotMatrixZ : 3x3 rotation matrix around z-axis // // Description // The function does RQ decomposition of 3x3 matrix and outputs traingular matrix,orthogonal matrix and three rotation matrices // along x,y and z coordinates. // // Examples // matrix = [ 3 21 5; // 3 5 6; // 12 4 5]; // [triMatrix orthoMatrix RotMatrixX RotMatrixY RotMatrixZ ] = RQDecomp3x3(matrix); // // Author // Kevin George //
04a4fc0e87ba16252a49619ff54c3282caa0fe56
e59f7b8d4c0c495a34f4dfd66df058aa9c228b7b
/RESULTS/6DOFEoM.sci
f04026b05f2039ebc6b314cef647f123565fccc9
[]
no_license
maxxonair/BlueBook-Descent-and-Landing-Analysis-Toolkit-DaLAT
d1b2071adc584cbe1551090834cd01142beb0725
6c71c971c2aa62e9f81f3c00c211d80caf8680eb
refs/heads/master
2021-07-13T07:26:26.655134
2020-05-30T11:28:41
2020-05-30T11:28:41
169,849,595
3
0
null
2020-05-30T11:28:43
2019-02-09T09:09:13
Java
UTF-8
Scilab
false
false
3,467
sci
6DOFEoM.sci
function xdot = EoMQ(t,x) // FLIGHT Equations of Motion // Quaternion Option // November 11, 2018 // =============================================================== // Copyright 2006-2018 by ROBERT F. STENGEL. All rights reserved. // Called by: // odeXX in FLIGHT.m // Functions used by EoMQ.m: // AeroModel.m // event.m // Atmos.m // WindField.m global m Ixx Iyy Izz Ixz S b cBar CONHIS u tuHis deluHis uInc MODEL RUNNING // Select Aerodynamic Model if MODEL == 0 AeroModel = @AeroModelAlpha; end if MODEL == 1 AeroModel = @AeroModelMach; end if MODEL == 2 AeroModel = @AeroModelUser; end D2R = pi/180; R2D = 180/pi; [value,isterminal,direction] = event(t,x); // Earth-to-Body-Axis Transformation Matrix HEB = RMQ(x(10),x(11),x(12),x(13)); // Atmospheric State x(6) = min(x(6),0); // Limit x(6) to <= 0 m [airDens,airPres,temp,soundSpeed] = Atmos(-x(6)); // Body-Axis Wind Field Phi = atan2(2*(x(10)*x(13) + x(11)*x(12)),(1 - 2*(x(10)^2 + x(11)^2))); Theta = asin(2*(x(11)*x(13) - x(10)*x(12))); Psi = atan2(2*(x(12)*x(13) + x(10)*x(11)),(1 - 2*(x(11)^2 + x(12)^2))); windb = WindField(x(3),Phi,Theta,Psi); // Body-Axis Gravity Components gb = HEB * [0;0;9.80665]; // Air-Relative Velocity Vector x(1) = max(x(1),0); // Limit axial velocity to >= 0 m/s Va = [x(1);x(2);x(3)] + windb; V = sqrt(Va' * Va); alphar = atan(Va(3) / abs(Va(1))); // alphar = min(alphar, (pi/2 - 1e-6)); // Limit angle of attack to <= 90 deg alpha = R2D * alphar; betar = asin(Va(2) / V); beta = R2D * betar; Mach = V / soundSpeed; qbar = 0.5 * airDens * V^2; // Incremental Flight Control Effects if CONHIS >=1 && RUNNING == 1 [uInc] = interp1(tuHis,deluHis,t); uInc = (uInc)'; uTotal = u + uInc; else uTotal = u; end // Force and Moment Coefficients; Thrust [CD,CL,CY,Cl,Cm,Cn,Thrust] = AeroModel(x,uTotal,Mach,alphar,betar,V); qbarS = qbar * S; CX = -CD * cos(alphar) + CL * sin(alphar); // Body-axis X coefficient CZ = -CD * sin(alphar) - CL * cos(alphar); // Body-axis Z coefficient // State Accelerations Xb = (CX * qbarS + Thrust) / m; Yb = CY * qbarS / m; Zb = CZ * qbarS / m; Lb = Cl * qbarS * b; Mb = Cm * qbarS * cBar; Nb = Cn * qbarS * b; nz = -Zb / 9.80665; // Normal load factor // Dynamic Equations xd1 = Xb + gb(1) + x(9) * x(2) - x(8) * x(3); xd2 = Yb + gb(2) - x(9) * x(1) + x(7) * x(3); xd3 = Zb + gb(3) + x(8) * x(1) - x(7) * x(2); y = HEB' * [x(1);x(2);x(3)]; xd4 = y(1); xd5 = y(2); xd6 = y(3); xd7 = (Izz * Lb + Ixz * Nb - (Ixz * (Iyy - Ixx - Izz) * x(7) + ... (Ixz^2 + Izz * (Izz - Iyy)) * x(9)) * x(8)) / (Ixx * Izz - Ixz^2); xd8 = (Mb - (Ixx - Izz) * x(7) * x(9) - Ixz * (x(7)^2 - x(9)^2)) / Iyy; xd9 = (Ixz * Lb + Ixx * Nb + (Ixz * (Iyy - Ixx - Izz) * x(9) + ... (Ixz^2 + Ixx * (Ixx - Iyy)) * x(7)) * x(8)) / (Ixx * Izz - Ixz^2); // Quaternion Propagation p = x(7); q = x(8); r = x(9); Q = 0.5*[0, r, -q, p -r, 0, p, q q, -p, 0, r -p, -q, -r, 0]; qVec = [x(10); x(11); x(12); x(13)]; qd = Q*qVec; xdot = [xd1;xd2;xd3;xd4;xd5;xd6;xd7;xd8;xd9;... qd(1);qd(2);qd(3);qd(4)];
95a7bd6f4a10d1c4fb045d0de77f094a1ff83011
449d555969bfd7befe906877abab098c6e63a0e8
/443/CH1/EX1.3/1_3.sce
07a0e5a93d5ae2ecf984a231f38ae7330ab5981c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
430
sce
1_3.sce
pathname=get_absolute_file_path('1_3.sce') filename=pathname+filesep()+'1_3_data.sci' exec(filename) //indicated power(in kw): ip=bp/nm //frictional power(in kw): fp=ip-bp //brake power load(in kw): bpl=l*bp nml=bpl/(bpl+fp) printf("\n\nRESULTS\n\n") printf("\nindicated power:%f\n",ip) printf("\nfrictional power:%f\n",fp) printf("\nbrake power at load:%f\n",bpl) printf("\mechanical efficiency:%f\n",nml=nml*100)
045243689dbdd3de0b775afecc7038392ecc6ab3
449d555969bfd7befe906877abab098c6e63a0e8
/965/CH9/EX9.16/16.sci
c680f5f0138057aaa41dc6eb45e1b743cccbb336
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
502
sci
16.sci
clc; clear all; disp("heat transfer coefficient") n=625;// number of tubes N=n^0.5; d=0.006;//m diameter ts=25;// degree C tsat=54;//degree C rhol=992;//kg/m^3 mu=663*10^(-6);// Ns/m^2 k=0.631;// W/m.C rhov=0.098;// kg/m^3 hfg=2373*10^3;// J/kg g=9.81;//m/s h=0.725*(rhol*(rhol-rhov)*k^3*g*hfg/(N*mu*d*(tsat-ts)))^0.25; disp("W/m^2.C",h,"The heat transfer coefficient =") ml=h*%pi*d*(tsat-ts)/hfg;//kg/s m=n*ml; disp("kg/s.m",m,"rate of condensation of steam for complete array =")
7481402ef636c2ec4cfb759302ad179b6fec22da
449d555969bfd7befe906877abab098c6e63a0e8
/3863/CH4/EX4.18/Ex4_18.sce
30207c5e8bf799eaea55657d0efac50d5f6adbc8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
518
sce
Ex4_18.sce
clear // // //Given //Variable declaration A=6.25*100 //Area in sq.mm W=10*10**3 //Load in N V=(40/60) //Velocity in m/s L=10000 //Length of chain unwound in mm E=2.1e5 //Youngs modulus in N/sq.mm g=9.81 //acceleration due to gravity //Calculation K_E=(((W/g)*(V**2))/2)*1e3 //K.E of the crane in N mm sigma=(sqrt(K_E*E*2/(A*L))) //Stress induced in the chain in N/sq.mm //Result printf("\n Stress induced in the chain due to sudden stoppage = %0.3f N/mm^2",sigma)
c23afd50f13fecd99adb67818ed97bd582d288f4
449d555969bfd7befe906877abab098c6e63a0e8
/2258/CH8/EX8.5/8_5.sce
6b4e31a6f4c334d47e1f1a36fa79b157478e9b61
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
459
sce
8_5.sce
clc(); clear; // To calculate the height of cone V=100; //volume of cone in cubic inches r=5; //radius of cone in inches r_m=r*0.0254; //radius of cone in m //volume V=(1/3)*%pi*(r^2)*h //therefore h = (3*V)/(%pi*r^2) h=(3*V)/(%pi*r^2); //height in inches R=3/r_m; printf("height of the cone is %f inches",h); printf("surface area to volume ratio is %f m-1",R); //answer for the surface area to volume ratio given in the book is wrong
dfc8e242779237c971ff1bf9729ca86e15ff200c
449d555969bfd7befe906877abab098c6e63a0e8
/1523/CH4/EX4.60/ex4_60.sce
698fff72a64756ba2ab87aa16472918119184fe2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
655
sce
ex4_60.sce
//AC Circuits : example 4.60 :(pg 4.48) f=50; V=250; R=5; L=9.55; Vcoil=300; XL=2*%pi*f*L; Zcoil=(sqrt((R^2)+(XL^2))); I=Vcoil/Zcoil; Z=V/I; XC1=Zcoil-Z; XC2=Zcoil+Z; C1=(1/(2*%pi*f*XC1)); C2=(1/(2*%pi*f*XC2)); printf("\nV=250 V \nR=5 Ohm \nL=9.55 H \nVcoil=300 V"); printf("\nXL=2*pi*f*L =%.f Ohm",XL); printf("\nZcoil=sqrt(R^2)+(XL^2) =%.f Ohm",Zcoil); printf("\nI=Vcoil/Zcoil =%.1f A",I); printf("\nZ=V/I =%.f Ohm",Z);//total impedance printf("\nZ=sqrt((R^2)+(XL-XC)^2) \nXC=%.f Ohm",XC1);//when XL>XC printf("\nC=1/2*pi*f*XC =%.e F",C1); printf("\nZ=sqrt((R^2)+(XC-XL)^2) \nXC=%.f Ohm",XC2);//when XC>XL printf("\nC=%.e F",C2);
a7cc216367149c57d2cdd24de288bafbecc76330
449d555969bfd7befe906877abab098c6e63a0e8
/3137/CH19/EX19.11/Ex19_11.sce
304ccad9d1f57e887c58bebf67304b5e1d744841
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
429
sce
Ex19_11.sce
//Initilization of variables ds=0.2 //m ts=0.05 //m rhos=7850 //kg/m^3 density of steel dw=0.002 //m lw=0.9 //m G=80*10^9 //Pa //Calculations //Torsional Constant K=(%pi*dw^4*G)/(32*lw) //m/rad //Mass Calculations m=(1/4)*%pi*(ds^2)*ts*rhos //kg //Moment of Inertia Io=(1/2)*m*(ds/2)^2 //kg.m^2 //Frequency f=(1/(2*%pi))*(sqrt(K/Io)) //Hz //Result clc printf('The natural frequency of the system is %f Hz',f)
f6cc52a87b996cf36606b8299e3ddaed7244e9ad
449d555969bfd7befe906877abab098c6e63a0e8
/278/CH4/EX4.8/ex_4_8.sce
9e1e470066e17bba1c44ec4a19df9b1b850d97a4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
175
sce
ex_4_8.sce
clc //solution //given t=16//thickness//mm P=48*10^3//N n=2//two plates are given d=25//mm //stress acting f=(P/(d*t*n))//(N/mm^2) printf("the stress acting is,%f N/mm^2",f)
a867f328905bac065814ce4f638aaf25b303bd33
449d555969bfd7befe906877abab098c6e63a0e8
/2993/CH1/EX1.1/Ex1_1.sce
d22248fcca8e554325268d8e6891d933ba87561e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
364
sce
Ex1_1.sce
clc; clear; //Number of bits required bits_required = 1024 * 1024 * 1; //Required Storage space in Bytes Storage_space = bits_required / 8;// 1 Byte = 8 bit //Required Storage space in Kilo Bytes Storage_space = Storage_space / 1000; //1 KB = 1000 Byte format('v',8) disp(Storage_space,"The storage space required for a 1024 x 1024 binary image (in KB) is ")
ca6da32f90390de3ebfba3d3c9508c0e337e85c3
449d555969bfd7befe906877abab098c6e63a0e8
/2153/CH3/EX3.27/ex_3_27.sce
61fbdb600b9d8d91f608dbf2aec1cc60772d54b0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
226
sce
ex_3_27.sce
//Example 3.27 : number of atoms clc; clear; close; //given data : n=4; N=6.023*10^23; // avogadro's number A=55.85; a=2.9*10^-8; b=7.87;//density in g/cc //a^3=(A*n)/(N*b) n=round((a^3*N*b)/A); disp(n,"number of atoms,n = ")
737517bea8473e51669225642256f629616adf8a
94c9fb094976265935872b32b6e6a4fd9454ef31
/tp3/phi.sce
41bd76f82b9f59029430c6cda9efb67b58801d39
[]
no_license
dtbinh/tp-scilab
6d2373af479d9cb1d1494f3ccc5abcae0697b8ac
4c41c77eb4a4021022fa91614cfe4f7a4417f4e5
refs/heads/master
2021-01-10T12:23:53.166922
2013-12-19T17:23:18
2013-12-19T17:23:18
49,208,752
0
0
null
null
null
null
UTF-8
Scilab
false
false
391
sce
phi.sce
function resphi = phi(X, c, w) rows_x = size(X, 'r'); rows_c = size(c, 'r'); resphi = ones(rows_x, rows_c); distance = 0.0; for i = 1:rows_x for j = 1:rows_c distance = sqrt((X(i,1) - c(j))*(X(i,1)-c(j)) + (X(i,2) - c(j))*(X(i,2)-c(j))); resphi(i, j) = distance; end end resphi = exp(-distance/(2*w(i)*w(i))); endfunction
931d07048cfab103c16eef12c574b4d0571c0297
449d555969bfd7befe906877abab098c6e63a0e8
/2276/CH2/EX2.12/chapter2_ex12.sce
7f731088b393c8166dc8ecffbbd4769549d927a0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
438
sce
chapter2_ex12.sce
clc clear //input c=0.000002;// capacitance of a capacitor in farad theta=0.12; // loss angle in radians v=230; // a.c. voltage supply in volts f=50; //supply frequency in hertz //calculations ic=v*2*%pi*f*c;// capacitor current in amperes ir=ic*tan(theta);// current through shunt resistance in amperes r=v/ir;// shunt resistance in ohm //output mprintf('the value of the equivalent shunt resistance is %3.10f ohm',r)
92aa840bf59d48dd92ab94beb08c3548e6b510ab
449d555969bfd7befe906877abab098c6e63a0e8
/2459/CH19/EX19.2/Ex19_2.sce
17a5275ad780fd09721c1248e68288cd74850553
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
370
sce
Ex19_2.sce
//chapter19 //example19.2 //page416 // figure is given in book for understanding purpose only.It is not required for solving the example as maximum and minimum peak voltages are given in the problem statement itself. Vmax_pp=16 // mV Vmin_pp=4 // mV Vmax=Vmax_pp/2 Vmin=Vmin_pp/2 m=(Vmax-Vmin)/(Vmax+Vmin) printf("modulation factor = %.3f \n",m)
83362a11fb9777c7f25fb2d2e27de0b45c29a49f
449d555969bfd7befe906877abab098c6e63a0e8
/2165/CH6/EX6.5/6_5.sce
923614b66c674e8921844d5722718d70fed74e37
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
342
sce
6_5.sce
clc //initialisation of variables d=2.15//in^2 a=0.98//dry p=100//lb/in^2 p1=11000//lb P=0.58*p//lb/in^2 H=24//C.H.U/lb D=0.947//lb s=7.407//ft^3 //CALCULATION V=sqrt(2*32.2*1400*H)//ft/sec V1=V*(d/144)//ft^3 T=V1/(s*D)//lb A=(p1/3600)//lb C=A/T//lb //RESULTS printf('the coefficient of discharge for the nozzles=% f lb',C)
b8d00c8c2f8ef9b8ec0998ad7b33905c2358081a
449d555969bfd7befe906877abab098c6e63a0e8
/530/CH7/EX7.3/example_7_3.sce
617dd51de6e06d895b05f8fd46c6de4795c35589
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
644
sce
example_7_3.sce
clear; clc; // A Textbook on HEAT TRANSFER by S P SUKHATME // Chapter 7 // Heat Exchangers // Example 7.3 // Page 295 printf("Example 7.3, Page 295 \n \n"); // Because of change of phase , Thi = The Thi = 100 ; // [C], Saturated steam The = 100 ; // [C], Condensed steam Tci = 30 ; // [C], Cooling water inlet Tce = 70 ; // [C], cooling water outlet R = (Thi-The)/(Tce-Tci) ; S = (Tce-Tci)/(Thi-Tci) ; // From fig 7.16 F = 1; // For counter flow arrangement Tm_counter = ((Thi-Tce)-(The-Tci))/log((Thi-Tce)/(The-Tci)); // [C] // Therefore Tm = F*Tm_counter ; printf("Mean Temperaature Difference = %f C",Tm)
d99f414cf25e1d27de46a37cce7938827c64bd61
449d555969bfd7befe906877abab098c6e63a0e8
/10/CH2/EX5/cha2_5.sce
6b13ce18ff7028975126986c8cdb53d37cc07b81
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
441
sce
cha2_5.sce
Power=50;Lo1=0.5; Lo2=0.75;Lo3=1;Lo4=1.1; Pf1=1;Pf2=0.8;Pf3=0.9; Pf4=1;Ho1=6;Ho2=6;Ho3=3;Ho4=3;Ho=6;Pc=200; Pcu=500; EngOut=(Lo1*Power*Ho1*Pf1)+(Lo2*Power*Ho2*Pf2)+(Lo3*Power*Ho3*Pf3)+(Lo4*Power*Ho4*Pf4) A=Pc/1000 TotalHour=Ho+Ho1+Ho2+Ho3+Ho4 Coreloss=A*TotalHour B=Pcu/1000 Copperloss=(Lo1^2*B*Ho1)+(Lo2^2*B*Ho2)+(Lo3^2*B*Ho3)+(Lo4^2*B*Ho4) Totalloss=Coreloss+Copperloss Eff=EngOut/(EngOut+Totalloss)*100
fda0c495e36cffdc36f47cf286afd9ba5bbb744a
449d555969bfd7befe906877abab098c6e63a0e8
/3683/CH14/EX14.6/Ex14_6.sce
e43eef4ce28fa8eea28cb5a1f81c0a953968ac43
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
357
sce
Ex14_6.sce
fck=15//in MPa fy=250//in MPa //b=d/2 M=65//in kN-m Mu=1.5*M//factored moment, in kN-m d=(Mu*10^6/(0.149*fck*0.5))^(1/3)//in mm d=445//approximately, in mm b=d/2//in mm Xc=0.531*d//in mm Ast=round(0.36*fck*b*Xc/0.87/fy)//in sq mm mprintf("b=%f mm\nd=%f mm\nAst=%f sq mm",b,d,Ast) //answer does not match with textbook because of round-off error
edaf184cd70c920bb5fd019f16f22d66fd315304
089894a36ef33cb3d0f697541716c9b6cd8dcc43
/NLP_Project/test/tweet/bow/bow.13_6.tst
9bdc579e5a4200f5700b7e336bdc6391a4a0b44c
[]
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
15,167
tst
bow.13_6.tst
13 16:0.06666666666666667 33:0.125 70:0.125 72:0.5 78:0.5 184:0.5 387:0.25 1025:0.5 3803:1.0 4103:1.0 4741:2.0 5280:0.25 5296:0.25 5363:1.0 5386:1.0 6255:0.3333333333333333 13 11:0.16666666666666666 29:0.3333333333333333 70:0.125 547:0.1111111111111111 554:0.2 590:0.3333333333333333 758:0.5 962:0.25 1321:1.0 3649:1.0 5265:0.14285714285714285 5401:0.3333333333333333 5558:1.0 13 33:0.125 43:0.25 311:0.25 660:1.0 672:0.5 2866:1.0 5265:0.2857142857142857 5295:1.0 5389:1.0 5462:1.0 5804:1.0 6051:1.0 6329:1.0 6363:0.5 6862:1.0 6865:1.0 6867:1.0 13 11:0.16666666666666666 43:0.25 102:0.08333333333333333 274:0.14285714285714285 672:0.5 1219:1.0 2866:1.0 3994:1.0 5958:1.0 13 8:0.25 9:0.6666666666666666 32:1.0 43:0.5 90:0.07142857142857142 1522:0.5 3194:0.5 3941:0.5 5389:1.0 5515:1.0 5577:1.0 6126:0.16666666666666666 6255:0.3333333333333333 6363:0.5 13 16:0.06666666666666667 102:0.08333333333333333 160:0.3333333333333333 438:1.0 5280:0.25 5343:0.3333333333333333 5414:0.2 5577:1.0 5762:0.5 6126:0.16666666666666666 13 16:0.06666666666666667 25:1.0 100:1.0 184:0.5 453:0.1 1742:0.14285714285714285 1918:1.0 1929:1.0 3383:1.0 5293:0.5 5296:0.25 5316:2.0 5363:1.0 5462:2.0 5577:1.0 6126:0.16666666666666666 6255:0.3333333333333333 6806:1.0 13 33:0.125 43:0.25 61:0.25 90:0.14285714285714285 130:1.0 364:1.0 547:0.1111111111111111 4741:1.0 5272:0.125 5401:0.3333333333333333 5476:1.0 5577:1.0 5882:1.0 6126:0.16666666666666666 13 31:0.047619047619047616 71:0.3333333333333333 275:0.25 286:0.3333333333333333 311:0.25 489:1.0 547:0.1111111111111111 737:0.5 846:0.3333333333333333 2077:1.0 2246:1.0 2311:1.0 5280:0.5 5316:1.0 5352:2.0 5389:1.0 5390:1.0 5427:1.0 5462:1.0 5641:1.0 5810:1.0 6255:0.3333333333333333 6309:1.0 6390:1.0 6808:2.0 13 25:1.0 42:0.3333333333333333 90:0.07142857142857142 311:0.25 387:0.25 442:0.3333333333333333 453:0.1 966:0.5 983:0.2 1249:0.5 1742:0.14285714285714285 5293:0.5 5348:1.0 5522:0.5 5804:1.0 13 26:1.0 43:0.25 53:0.6666666666666666 364:1.0 547:0.1111111111111111 873:1.0 1478:0.5 5293:0.5 5382:1.0 5401:0.3333333333333333 5448:1.0 5449:1.0 5481:1.0 5561:0.2 5617:1.0 5782:0.3333333333333333 6850:1.0 13 16:0.06666666666666667 274:0.14285714285714285 1916:1.0 3613:1.0 4177:1.0 5291:0.16666666666666666 5296:0.25 5414:0.2 5462:1.0 5489:1.0 6488:1.0 6491:1.0 6620:1.0 13 5577:1.0 5652:1.0 6126:0.16666666666666666 13 11:0.16666666666666666 16:0.06666666666666667 29:0.3333333333333333 5577:1.0 5702:1.0 6126:0.16666666666666666 13 14:1.0 29:0.3333333333333333 53:1.0 130:1.0 160:0.3333333333333333 274:0.2857142857142857 387:0.25 442:0.3333333333333333 556:1.0 873:1.0 1130:0.3333333333333333 1199:1.0 5280:0.5 5445:1.0 5561:0.2 5574:1.0 5577:1.0 5746:1.0 5782:0.3333333333333333 6030:1.0 6126:0.16666666666666666 13 14:0.5 29:0.3333333333333333 53:0.3333333333333333 90:0.07142857142857142 262:0.3333333333333333 453:0.1 1828:1.0 5401:0.3333333333333333 5473:1.0 5577:1.0 5765:1.0 6126:0.16666666666666666 6353:1.0 6589:1.0 13 61:0.25 100:3.0 102:0.08333333333333333 116:1.0 290:0.3333333333333333 453:0.1 609:1.0 723:0.5 1522:0.5 1855:1.0 2115:3.0 3373:0.3333333333333333 5296:0.25 5316:1.0 5328:1.0 5363:1.0 5400:1.0 5427:4.0 5515:1.0 5861:1.0 5890:1.0 6172:0.5 6532:1.0 13 43:0.25 61:0.25 2111:0.5 5293:0.5 5577:1.0 5700:1.0 5980:1.0 6126:0.16666666666666666 13 25:1.0 33:0.125 42:0.3333333333333333 43:0.25 311:0.25 364:2.0 547:0.1111111111111111 721:0.5 966:0.5 1742:0.14285714285714285 1802:0.5 2676:1.0 3194:0.5 4278:0.3333333333333333 5280:0.5 5293:1.0 5522:0.5 5577:1.0 6126:0.16666666666666666 6665:1.0 13 33:0.125 43:0.25 78:0.5 90:0.07142857142857142 274:0.14285714285714285 554:0.2 983:0.2 2283:1.0 2673:1.0 2694:1.0 3414:1.0 5265:0.14285714285714285 5280:0.25 5340:0.5 5427:1.0 5521:0.14285714285714285 5577:1.0 6126:0.16666666666666666 6859:1.0 13 33:0.125 42:0.3333333333333333 387:0.25 453:0.1 983:0.2 5509:1.0 5704:1.0 13 4:0.5 29:0.3333333333333333 364:1.0 449:0.5 890:1.0 1378:1.0 2694:1.0 3826:1.0 5265:0.14285714285714285 6126:0.16666666666666666 13 43:0.25 53:0.3333333333333333 280:1.0 590:0.3333333333333333 846:0.3333333333333333 1626:1.0 3615:0.5 4177:1.0 5265:0.14285714285714285 5291:0.16666666666666666 5577:1.0 6126:0.16666666666666666 13 33:0.125 453:0.1 1057:0.5 4492:1.0 5265:0.14285714285714285 5280:0.25 5291:0.16666666666666666 5577:1.0 6126:0.16666666666666666 13 29:0.3333333333333333 102:0.08333333333333333 590:0.3333333333333333 5265:0.14285714285714285 5280:0.25 5291:0.16666666666666666 5577:1.0 6126:0.16666666666666666 13 29:0.3333333333333333 70:0.125 274:0.14285714285714285 290:0.3333333333333333 442:0.3333333333333333 1249:0.5 3941:0.5 5265:0.2857142857142857 5427:1.0 5577:1.0 6126:0.16666666666666666 6172:0.5 13 160:0.3333333333333333 184:0.5 925:1.0 1773:1.0 5265:0.14285714285714285 5280:0.25 5445:1.0 5577:1.0 5918:1.0 6126:0.16666666666666666 13 14:1.0 16:0.06666666666666667 42:0.3333333333333333 278:0.3333333333333333 547:0.1111111111111111 594:1.0 631:0.5 886:2.0 935:0.25 1155:1.0 1593:1.0 5280:0.5 5293:0.5 5363:1.0 5386:1.0 5415:1.0 5577:1.0 5652:1.0 6491:2.0 13 16:0.06666666666666667 42:0.3333333333333333 52:0.3333333333333333 57:0.08333333333333333 70:0.25 78:0.5 278:0.3333333333333333 547:0.1111111111111111 746:1.0 860:1.0 872:1.0 983:0.2 1773:1.0 2034:1.0 2119:1.0 3039:1.0 5336:0.16666666666666666 5445:1.0 6246:1.0 6352:1.0 13 16:0.06666666666666667 29:0.3333333333333333 53:0.3333333333333333 116:1.0 131:1.0 184:0.5 248:1.0 290:0.3333333333333333 387:0.25 554:0.2 1629:1.0 3615:0.5 3642:1.0 4224:0.5 4255:1.0 4309:1.0 4687:1.0 4741:2.0 5280:0.5 5296:0.25 5574:1.0 6352:1.0 13 11:0.16666666666666666 14:0.5 29:0.3333333333333333 53:0.3333333333333333 90:0.07142857142857142 246:0.125 274:0.14285714285714285 455:0.5 2206:1.0 5076:1.0 5280:0.25 6363:0.5 13 16:0.13333333333333333 29:0.3333333333333333 31:0.047619047619047616 43:0.25 53:0.3333333333333333 90:0.07142857142857142 116:1.0 246:0.125 275:0.25 311:0.25 364:1.0 387:0.25 453:0.1 461:0.3333333333333333 531:0.5 590:0.3333333333333333 780:0.5 2115:1.0 4571:1.0 5280:0.5 5426:0.3333333333333333 5641:1.0 5698:1.0 5918:1.0 6158:1.0 13 16:0.06666666666666667 43:0.25 100:1.0 276:1.0 547:0.1111111111111111 5293:0.5 5294:1.0 5518:0.2 6280:1.0 6601:1.0 13 14:0.5 31:0.047619047619047616 33:0.375 44:0.5 61:0.25 70:0.125 78:0.5 104:1.0 311:0.25 570:0.5 935:0.25 1742:0.14285714285714285 2501:1.0 3010:1.0 3855:1.0 5235:1.0 5280:0.25 5293:0.5 6454:0.5 13 14:0.5 16:0.2 21:0.5 25:1.0 33:0.25 57:0.08333333333333333 64:0.3333333333333333 100:1.0 137:1.0 453:0.2 521:1.0 554:0.2 609:1.0 935:0.25 949:0.3333333333333333 1742:0.14285714285714285 4492:1.0 5280:0.75 5293:0.5 5401:0.3333333333333333 5521:0.14285714285714285 5785:1.0 5971:1.0 6429:1.0 6457:1.0 6605:1.0 13 9:0.3333333333333333 25:1.0 42:0.3333333333333333 90:0.07142857142857142 453:0.1 554:0.2 935:0.25 1742:0.14285714285714285 5280:0.25 5343:0.3333333333333333 5414:0.2 5515:1.0 5577:1.0 6363:0.5 13 14:0.5 33:0.125 61:0.25 100:1.0 105:0.5 275:0.25 367:1.0 453:0.1 5076:1.0 5280:0.5 5401:0.3333333333333333 5427:1.0 5521:0.14285714285714285 5786:1.0 6705:1.0 13 43:0.25 53:0.3333333333333333 364:1.0 547:0.1111111111111111 873:1.0 5401:0.3333333333333333 5448:1.0 5449:1.0 5561:0.2 5617:1.0 5782:0.3333333333333333 5807:1.0 6850:1.0 13 11:0.16666666666666666 33:0.25 43:0.5 70:0.125 78:0.5 90:0.07142857142857142 303:1.0 311:0.25 547:0.1111111111111111 549:0.5 590:0.3333333333333333 925:1.0 1244:1.0 1245:1.0 1704:1.0 3530:1.0 5038:1.0 5400:1.0 6363:0.5 13 14:0.5 16:0.13333333333333333 53:0.3333333333333333 758:0.5 3272:1.0 5280:0.25 5361:1.0 5393:0.5 5491:2.0 13 16:0.06666666666666667 100:1.0 192:1.0 311:0.25 5280:0.25 5452:1.0 5521:0.14285714285714285 5577:1.0 6230:1.0 13 102:0.08333333333333333 547:0.2222222222222222 3479:1.0 3488:1.0 4567:1.0 5293:0.5 5358:0.16666666666666666 6020:1.0 6363:0.5 13 3962:1.0 13 31:0.047619047619047616 5293:0.5 5296:0.25 6363:0.5 6457:1.0 13 31:0.047619047619047616 2972:1.0 5340:0.5 5400:1.0 6363:0.5 13 33:0.125 102:0.08333333333333333 302:1.0 554:0.2 594:1.0 1848:1.0 2070:1.0 4309:1.0 5291:0.16666666666666666 5296:0.25 5391:1.0 5736:1.0 6363:0.5 6454:0.5 13 14:0.5 218:1.0 245:1.0 286:0.3333333333333333 415:0.5 772:1.0 1035:1.0 1130:0.3333333333333333 5265:0.14285714285714285 5289:0.16666666666666666 5293:1.0 5389:1.0 5423:1.0 5696:0.25 13 61:0.25 184:0.5 983:0.2 1725:0.5 2503:1.0 2768:1.0 4250:1.0 5316:1.0 5358:0.16666666666666666 5453:1.0 6363:0.5 13 31:0.047619047619047616 33:0.125 52:0.3333333333333333 53:0.3333333333333333 61:0.25 83:0.5 278:0.3333333333333333 3138:0.5 5285:1.0 5586:0.5 13 53:0.3333333333333333 387:0.25 453:0.1 5291:0.16666666666666666 5293:0.5 5427:1.0 6074:1.0 6750:1.0 13 16:0.06666666666666667 116:1.0 508:1.0 1464:1.0 6840:1.0 13 16:0.06666666666666667 43:0.25 78:0.5 102:0.08333333333333333 364:1.0 547:0.1111111111111111 631:0.5 5272:0.125 13 14:0.5 43:0.25 594:1.0 1802:0.5 2719:1.0 3373:0.3333333333333333 3941:0.5 5280:0.5 5293:0.5 6363:0.5 6741:1.0 13 33:0.125 43:0.25 56:0.2 90:0.14285714285714285 453:0.1 982:1.0 983:0.2 1802:0.5 2115:1.0 3138:0.5 3969:0.3333333333333333 4492:1.0 5293:0.5 5462:1.0 5646:1.0 5704:1.0 6122:1.0 6363:0.5 13 26:1.0 43:0.5 53:0.6666666666666666 57:0.08333333333333333 90:0.14285714285714285 590:0.3333333333333333 723:0.5 1249:0.5 1582:0.5 1802:0.5 2719:1.0 5280:0.5 5293:0.5 5294:1.0 5296:0.25 5299:1.0 5377:1.0 5414:0.2 5541:1.0 13 70:0.125 275:0.25 561:1.0 672:0.5 780:0.5 1117:1.0 1379:1.0 5280:0.25 5293:0.5 5895:1.0 6138:1.0 6539:1.0 6796:1.0 13 16:0.06666666666666667 43:0.25 2364:1.0 5339:0.5 5518:0.2 5969:1.0 6711:1.0 13 43:0.25 90:0.07142857142857142 102:0.08333333333333333 737:0.5 982:1.0 5087:1.0 5414:0.2 5577:1.0 5755:1.0 6363:0.5 13 387:0.25 453:0.1 4309:2.0 5280:0.25 5390:1.0 6177:1.0 6629:1.0 13 16:0.06666666666666667 31:0.047619047619047616 33:0.125 43:0.25 52:0.3333333333333333 180:1.0 387:0.25 561:1.0 949:0.3333333333333333 4686:1.0 5280:0.75 5343:0.3333333333333333 5383:1.0 5393:0.5 5414:0.2 6255:0.3333333333333333 13 78:0.5 453:0.1 1390:1.0 5280:0.25 5291:0.16666666666666666 5296:0.25 5343:0.3333333333333333 5414:0.2 6491:1.0 13 11:0.16666666666666666 90:0.07142857142857142 215:1.0 672:0.5 5265:0.14285714285714285 5280:0.25 5281:1.0 5414:0.2 6454:0.5 6534:1.0 6867:1.0 13 116:2.0 554:0.2 2115:1.0 5280:0.25 5296:0.25 5363:1.0 5814:1.0 6175:1.0 6863:1.0 6864:1.0 13 42:0.3333333333333333 90:0.07142857142857142 846:0.3333333333333333 924:1.0 3373:0.3333333333333333 5577:1.0 13 33:0.125 53:0.3333333333333333 90:0.14285714285714285 180:1.0 1582:0.5 1802:0.5 2564:1.0 4964:1.0 5280:0.75 5689:1.0 6122:1.0 6370:0.5 6447:1.0 13 16:0.06666666666666667 43:0.5 61:0.25 116:1.0 455:0.5 570:0.5 983:0.2 1470:1.0 1528:1.0 1629:1.0 1918:1.0 2364:1.0 5048:1.0 5076:1.0 5280:0.25 5561:0.2 5987:1.0 13 14:0.5 16:0.06666666666666667 33:0.5 44:0.5 60:0.1 61:0.25 78:0.5 268:0.2 275:0.25 311:0.25 439:2.0 453:0.1 561:1.0 772:1.0 949:0.3333333333333333 2398:1.0 2501:1.0 2569:1.0 5038:1.0 5267:1.0 5280:0.25 5293:0.5 5577:1.0 5963:1.0 13 450:1.0 547:0.1111111111111111 802:0.5 1249:0.5 1742:0.14285714285714285 5291:0.16666666666666666 5293:0.5 5542:1.0 6802:1.0 13 9:0.3333333333333333 16:0.06666666666666667 25:1.0 29:0.3333333333333333 44:0.5 61:0.25 455:0.5 547:0.1111111111111111 1742:0.14285714285714285 1779:1.0 2146:1.0 3497:0.5 5076:1.0 5265:0.2857142857142857 5474:1.0 5577:1.0 6609:1.0 13 29:0.3333333333333333 43:0.25 61:0.25 90:0.07142857142857142 144:0.3333333333333333 1245:1.0 1802:0.5 4579:1.0 4741:1.0 5265:0.14285714285714285 5336:0.16666666666666666 5577:1.0 13 16:0.06666666666666667 29:0.3333333333333333 61:0.25 100:1.0 184:0.5 275:0.25 554:0.2 982:1.0 5280:0.25 5515:1.0 5521:0.14285714285714285 5594:1.0 6034:1.0 6126:0.16666666666666666 6168:1.0 6363:0.5 13 14:0.5 16:0.06666666666666667 846:0.3333333333333333 2111:0.5 3950:1.0 5343:0.3333333333333333 5577:1.0 13 11:0.16666666666666666 16:0.13333333333333333 29:0.3333333333333333 160:0.3333333333333333 780:0.5 982:1.0 5515:1.0 5542:1.0 5753:1.0 5772:1.0 6363:0.5 13 9:0.3333333333333333 31:0.047619047619047616 42:0.3333333333333333 268:0.2 272:0.5 442:0.3333333333333333 886:1.0 3615:0.5 5293:0.5 5348:1.0 5358:0.16666666666666666 5389:1.0 5561:0.2 5577:1.0 5696:0.25 13 2095:1.0 2465:1.0 13 33:0.125 163:1.0 2015:1.0 5291:0.16666666666666666 5861:1.0 6286:1.0 6621:1.0 13 16:0.06666666666666667 78:0.5 1844:0.5 2716:1.0 5293:0.5 5377:1.0 5696:0.25 5974:1.0 5982:1.0 6393:1.0 6454:0.5 6619:1.0 13 53:0.3333333333333333 450:1.0 453:0.1 774:1.0 2716:1.0 5291:0.16666666666666666 13 56:0.2 90:0.07142857142857142 160:0.3333333333333333 275:0.25 370:0.5 415:1.0 1601:1.0 3098:1.0 3941:0.5 5514:1.0 5515:1.0 5579:0.3333333333333333 13 33:0.125 43:0.25 949:0.3333333333333333 1009:0.5 5400:1.0 5628:1.0 13 11:0.16666666666666666 16:0.06666666666666667 33:0.125 311:0.25 554:0.2 1629:1.0 3414:1.0 4741:1.0 5377:1.0 5755:1.0 6665:1.0 13 11:0.16666666666666666 33:0.125 43:0.25 90:0.07142857142857142 233:1.0 311:0.25 554:0.2 590:0.3333333333333333 672:0.5 1057:0.5 5280:0.25 5291:0.16666666666666666 5293:0.5 5336:0.16666666666666666 5343:0.3333333333333333 5377:1.0 5400:1.0 5575:1.0 5696:0.25 5755:1.0 6131:1.0 6447:1.0 6860:1.0 13 42:0.3333333333333333 43:0.5 52:0.3333333333333333 102:0.08333333333333333 183:0.25 230:0.5 246:0.125 262:0.3333333333333333 274:0.14285714285714285 547:0.2222222222222222 554:0.2 631:0.5 672:0.5 925:1.0 982:1.0 2111:0.5 3138:1.0 5293:0.5 5445:1.0 5646:1.0 5762:0.5 6087:1.0 13 14:0.5 61:0.25 437:0.5 455:0.5 5291:0.16666666666666666 5343:0.3333333333333333 5393:0.5 5414:0.2 13 14:0.5 16:0.06666666666666667 225:1.0 935:0.25 5414:0.2 5500:1.0 5502:1.0 6278:1.0 13 53:0.3333333333333333 90:0.07142857142857142 208:0.5 387:0.25 886:1.0 5265:0.2857142857142857 5280:0.25 5427:1.0 6235:1.0 6525:1.0 13 26:1.0 32:1.0 53:0.3333333333333333 268:0.2 275:0.25 3912:1.0 13 184:0.5 631:0.5 712:0.3333333333333333 3474:1.0 5265:0.14285714285714285 13 531:0.5 5694:1.0 6310:1.0 13 42:0.3333333333333333 43:0.25 90:0.07142857142857142 275:0.25 590:0.3333333333333333 1663:1.0 5265:0.14285714285714285 5280:0.25 5293:0.5 5476:1.0 5578:1.0 5625:1.0 6172:0.5 13 16:0.06666666666666667 2719:1.0 5305:1.0 5487:1.0 5955:1.0 13 31:0.047619047619047616 43:0.25 53:0.6666666666666666 387:0.25 671:1.0 4786:0.3333333333333333 5268:2.0 5518:0.2 13 11:0.16666666666666666 14:0.5 31:0.047619047619047616 594:1.0 631:0.5 983:0.2 3941:0.5 5265:0.14285714285714285 5295:1.0 5297:1.0 6031:1.0 13 442:0.3333333333333333 626:1.0 966:0.5 1097:1.0 3613:1.0 3941:0.5 5377:1.0 5736:1.0 5947:1.0 13 146:0.5 442:0.3333333333333333 626:1.0 966:0.5 3451:1.0 3941:0.5 5280:0.25 5377:1.0 5679:1.0 5736:1.0 5947:1.0 13 11:0.16666666666666666 43:0.25 2159:1.0 3373:0.3333333333333333 4741:1.0 5265:0.14285714285714285 5632:1.0 13 43:0.25 184:0.5 364:1.0 5265:0.14285714285714285 5272:0.125 13 9:0.3333333333333333 16:0.06666666666666667 43:0.25 53:0.3333333333333333 70:0.125 102:0.08333333333333333 130:1.0 246:0.125 268:0.2 286:0.3333333333333333 311:0.25 846:0.3333333333333333 1162:1.0 1522:0.5 2719:1.0 3285:1.0 3497:0.5 4571:0.5 5294:1.0 5313:1.0 5882:1.0 13 14:0.5 16:0.06666666666666667 53:0.3333333333333333 268:0.2 3912:1.0 5296:0.25
0c35264408ff0ba16d148c9ec7b6662c0c3b5df7
594cb2143db2483dc9a060b26f3ccbd77cdff0d9
/ass1-LDU.sce
2af9cb4cd469a13006734b32e1034cb150b72f87
[]
no_license
Srija-1955/scilab-assignment
7c6761eb238359810e87656fcbfbdaf5871b028e
ad979aa462fc5bac54f26d4f8bbba6cbfcff9086
refs/heads/master
2020-12-31T09:47:41.409220
2020-04-04T11:47:30
2020-04-04T11:47:30
238,985,033
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,568
sce
ass1-LDU.sce
//LU DECOMPOSITION //FACTORIZING A INTO L AND U (A = LU) clc;clear; function lu_decomposition(A) [r,c]=size(A); u=A; l=eye(r,c); for i=1:(r-1) m=det(u(i,i)); for j=i+1:c n=det(u(j,i)) a=n/m; l(j,i)=a; u(j,:)=u(j,:)-u(i,:)/(m/n); end end disp(l,'The lower triangular matrix L is'); disp(u,'The upper triangular matrix U is'); endfunction disp('Factorization of A into L and U'); A=input('Enter elements of matrix: '); disp(A,'The given matrix is A='); lu_decomposition(A); //SOLVING SYSTEM OF EQUATIONS BY LU DECOMOSITION clc;clear; format('v',5); function lu_decomposition(a, b) [r,c]=size(a); b=b'; l=eye(r,c); for i=1:r for j=1:c s=0; if j>=i for k=1:i-1 s=s+l(i,k)*u(k,j); end u(i,j)=a(i,j)-s; else for k=1:j-1 s=s+l(i,k)*u(k,j); end l(i,j)=(a(i,j)-s)/u(j,j); end end end c=l\b; x=u\c; disp(l,'The lower triangular matrix L is'); disp(u,'The upper triangular matrix U is'); disp(x,'Solution of system of equation is '); endfunction disp("Solving system of equation by LU decomposition"); a=input('Enter elements of matrix A: '); b=input('Enter elements of matrix B: '); disp(a,'The coefficient matrix A is'); disp(b,'The constant matrix b is'); lu_decomposition(a,b);
d77ac0f66ffffd992a6311b1f770017d6b701b4a
449d555969bfd7befe906877abab098c6e63a0e8
/3542/CH8/EX8.4/Ex8_4.sce
f6bed46ea197719781f90d8d2272a07fc663d85a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,219
sce
Ex8_4.sce
// Example no 8.4 // To find the upper bound of the transmission bit rate // Page no. 439 clc; clear all; // Given data FL=810*10^6; // Lower limit of forward channel frequency band FU=826*10^6; // Upper limit of forward channel frequency band N=1150; // Number of simultaneous users; SE=1.68; // Spectral efficiency in bps/Hz CR=0.5; // Coder rate bandused=90/100; // 90% bandwidth is used bandwidth=bandused*(FU-FL); // Total bandwidth available for traffic channels in Hz Cbandwidth=bandwidth/N; // Maximum channel bandwidth in Hz ChannelDR=SE*Cbandwidth; // Maximum channel data rate in bps DR=ChannelDR*CR; // Maximum net data rate in bps // Displaying the result in command window printf('\n Maximum net data rate = %0.1f kbps',DR*10^-3);
a2b0f8312dc89c6b072165d15f71466fed7aff86
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.0/Unix/scilab-2.0/macros/metanet/l2g.sci
c6dc3e207149f8247ecaaf59fdf8fd4ea4bbb4b5
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931111
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
368
sci
l2g.sci
function g1=l2g(a1,p1,s1,dir) [a2,p2,s2]=compl2(a1,p1,s1,dir) [he,ta]=compht(a1,p1,s1,dir) m=prod(size(s1)), n=prod(size(p1))-1 if dir==1 then ma=m, mm=2*m else ma=m/2,mm=m, end g1=list(' ',dir,m,n,ma,mm,a1,p1,s1,a2,p2,s2,he,ta,... n,1:n,ma,1:ma,... 0*(1:n),0*(1:n),0*(1:n),0*(1:n),0*(1:n),0*(1:ma),... 0*(1:ma),0*(1:ma),0*(1:ma),0*(1:ma),0*(1:ma),0*(1:ma),0*(1:ma))
3efb69efc9405513cad821f382e3db7be1627dd8
6e257f133dd8984b578f3c9fd3f269eabc0750be
/ScilabFromTheoryToPractice/CreatingPlots/testanimrotation.sce
37a7f53fd283e8daea0171cca4632f2bca44c9ed
[]
no_license
markusmorawitz77/Scilab
902ef1b9f356dd38ea2dbadc892fe50d32b44bd0
7c98963a7d80915f66a3231a2235010e879049aa
refs/heads/master
2021-01-19T23:53:52.068010
2017-04-22T12:39:21
2017-04-22T12:39:21
89,051,705
0
0
null
null
null
null
UTF-8
Scilab
false
false
264
sce
testanimrotation.sce
clf; plot3d1() // a three-dimensional surface for k=1:360 // loop to rotate the figure // change the angle alpha of the view point by 1 degree A=gca();A.rotation_angles(2)=A.rotation_angles(2)+1; sleep(10) // to have enough time to see the figure end
257e903ac09ae2ed476763ff84490ca447f8560b
449d555969bfd7befe906877abab098c6e63a0e8
/2126/CH1/EX1.23/23.sce
2893b2f12d1ed3891c754d4551e0c96a4ed54693
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
292
sce
23.sce
clc clear //Input data dT=37 //Temperature difference between air inside the tyre and nozzle exit Cp=1005 //Specific heat capacity at constant pressure in J/kg-K //Calculation C=sqrt(2*Cp*dT) //Exit velocity of air in m/s //Output printf('Exit velocity of air is %3.1f m/s',C)
f81f8ada3429a9dd22a9066448340232ffee9e24
417f69e36190edf7e19a030d2bb6aa4f15bb390c
/SMTTests/tests/err_reals2.tst
035e585df8a3c263298ebcc573281764b3c50c7b
[]
no_license
IETS3/jSMTLIB
aeaa7ad19be88117c7454d807a944e8581184a66
c724ac63056101bfeeb39cc3f366c8719aa23f7b
refs/heads/master
2020-12-24T12:41:17.664907
2019-01-04T10:47:43
2019-01-04T10:47:43
76,446,229
1
0
null
2016-12-14T09:46:41
2016-12-14T09:46:41
null
UTF-8
Scilab
false
false
110
tst
err_reals2.tst
; ints in Real and Ints theory (set-logic QF_LRA) (declare-fun x () Real) (assert (= x 1)) (assert (= x 1.0))
d88d711aface0a497d8b32accdf13a3111292630
449d555969bfd7befe906877abab098c6e63a0e8
/1985/CH17/EX17.3/Chapter17_example3.sce
fac27627b1e358929cb4c01844f78139d3d17311
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
412
sce
Chapter17_example3.sce
clc clear //Input data d=0.2//Length of iron rod in m A=0.685*10^-4//Area of cross-section in m^2 T1=100+273//Temperature of the hot end in K T2=30+273//Temperature of the other end in K K=62//Thermal conductivity of iron in W/m.K t=10*60//Time in sec //Calculations Q=(K*A*(T1-T2)*t)/d//Quantity of heat conducted in J //Output printf('The iron rod conducts %3.2f J of energy in 10 minutes',Q)
28844d27202146a2263bc11e3868c53a25439a75
f4d3c7f7e8954cdeb6eb0c7b54a056242b07da22
/Uppsala Biomodel/Exam/SIR.sce
81980506e69e34f44707e9e555dd75bbaa596202
[]
no_license
ThibaultLatrille/Slides-Sciencework
bfdf959dbbe4a94e621a3a9a71ccbcd06c5fc338
84b53f3901cbdb10fab930e832dc75431a7dce05
refs/heads/master
2020-04-27T07:53:52.313720
2019-03-06T16:17:57
2019-03-06T16:17:57
174,151,758
0
0
null
null
null
null
UTF-8
Scilab
false
false
998
sce
SIR.sce
function dx=Gl1(t,x,R1,R2,R3) dx(1)=-x(1)*(R1*x(2)+R2*x(3)) dx(2)=x(2)*(R1*x(1)-1) dx(3)=x(3)*(R2*x(1)+R3*x(4)-1) dx(4)=x(2)-R3*x(4)*x(3) dx(5)=x(3) endfunction function dx=Gl2(t,x,R1,R2,R3,B,C,D) dx(1)=-x(1)*(R1*x(2)+R2*x(3))+B*(x(1)+x(2)+x(3)+x(4)+x(5))-D*x(1) dx(2)=x(2)*(R1*x(1)-1)-D*x(2) dx(3)=x(3)*(R2*x(1)+R3*x(4)-1)-(D+C)*x(3) dx(4)=x(2)-R3*x(4)*x(3)-D*x(4) dx(5)=x(3)-D*x(5) endfunction function dx=Gl3(t,x,R1,R2,R3,B,C,D) dx(1)=-x(1)*(R1*x(2)+R2*x(3))+B*(x(1)+x(3)+x(4)+x(5))-D*x(1) dx(2)=x(2)*(R1*x(1)-1)+(B-D)*x(2) dx(3)=x(3)*(R2*x(1)+R3*x(4)-1)-(D+C)*x(3) dx(4)=x(2)-R3*x(4)*x(3)-D*x(4) dx(5)=x(3)-D*x(5) endfunction R1=1.4;R2=1.4;R3=2;B=0.5;C=0.2;D=0.5; t=0:0.02:12; x1=1;x2=0.05;x3=0.05;x4=0;x5=0; for i=1:1 do x=ode([x1;x2;x3;x4;x5],0,t,Gl3); plot(t,x(1,:),"black") plot(t,x(2,:),"red") plot(t,x(3,:),"blue") plot(t,x(4,:),"yellow") plot(t,x(5,:),"cyan") end
bd7f644580facab592288b7d3026b602d4483e7b
449d555969bfd7befe906877abab098c6e63a0e8
/1092/CH8/EX8.7/Example8_7.sce
d89d99b8c638f6b5c37d29f391bb9a885ce901e4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
4,380
sce
Example8_7.sce
// Electric Machinery and Transformers // Irving L kosow // Prentice Hall of India // 2nd editiom // Chapter 8: AC DYNAMO TORQUE RELATIONS - SYNCHRONOUS MOTORS // Example 8-7 clear; clc; close; // Clear the work space and console. // Given data P_o = 2000 ; // Total power consumed by a factory in kW from the transformer cos_theta = 0.6 ; // 0.6 lagging power factor at which power is consumed - // - from the transformer sin_theta = sqrt(1 - (cos_theta)^2); theta = -acosd(0.6); // power factor angle at which power is consumed - // - from the transformer in degrees V_L = 6000 ; // Primary line voltage of a transformer in volt P = 750 ; // kW expected to be delivered by the dc motor-generator hp = 1000 ; // hp rating of the motor(induction or synchronous) V_L_m = 6000 ; // Line voltage of a synchronous(or induction) motor in volt cos_theta_sm = 0.8 ; // 0.8 leading power factor of the synchronous motor theta_sm = acosd(0.8); // power factor angle of the synchronous motor in degrees cos_theta_im = 0.8 ; // 0.8 lagging power factor of the induction motor theta_im = -acosd(0.8); // power factor angle of the induction motor in degrees eta = 0.92 ; // Efficiency of each motor // Calculations // case a : using Induction Motor(IM) P_m = ( hp * 746 ) / eta ; // Induction(or synchronous) motor load in W I_1 = P_m / ( sqrt(3) * V_L_m * cos_theta_im ); // Lagging current drawn by IM in A I_1_prime = P_o * 1000 / ( sqrt(3) * V_L * cos_theta ); // Original lagging - // - factory load current in A // Total load current in A using Induction Motor : I_TM = I_1*(cosd(theta_im) + %i*sind(theta_im)) + I_1_prime*(cosd(theta) + %i*sind(theta)) ; I_TM_m = abs(I_TM);//I_TM_m = magnitude of I_TM in A I_TM_a = atan(imag(I_TM) /real(I_TM))*180/%pi;//I_TM_a=phase angle of I_TM in degrees PF_im = cosd(I_TM_a); // Overall PF using induction motor // case b: using synchronous motor I_s1 = P_m / ( sqrt(3) * V_L_m * cos_theta_sm ); // Lagging current drawn by IM in A // Total load current in A using synchronous motor : I_TSM = I_s1*(cosd(theta_sm) + %i*sind(theta_sm)) + I_1_prime*(cosd(theta) + %i*sind(theta)) ; I_TSM_m = abs(I_TSM);//I_TSM_m = magnitude of I_TSM in A I_TSM_a = atan(imag(I_TSM) /real(I_TSM))*180/%pi;//I_TSM_a=phase angle of I_TSM in degrees PF_sm = cosd(I_TSM_a); // Overall PF using Synchronous motor // case c percent_I_L = ( I_TM_m - I_TSM_m ) / I_TM_m * 100 ; // Percent reduction in - // - total load current in percent // Display the results printf("Note : case a,I1 calculated is around 97.53 A instead of 47.53 A(textbook).\n") printf(" Note : case b,Actual I_s1 imaginary part is around 58.52 instead of "); printf(" \n 52.52(textbook)so slight variation in I_TSM and percent ") printf(" \n reduction in total load current.\n") disp("Example 8-7 Solution : "); printf(" \n a: Induction(or sunchronous) motor load"); printf(" \n P_m = %.f W ",P_m); printf(" \n Lagging current drawn by the IM = I1"); printf(" \n I_1 = %.2f <-%.2f A \n",I_1,acosd(cos_theta_sm)); printf(" \n I_1 in A = ");disp(I_1*cosd(-36.87)+%i*I_1*sind(-36.87)); printf(" \n Original lagging factory load current = I_1_prime"); printf(" \n I_1_prime in A = ");disp(I_1_prime*cosd(theta)+%i*I_1_prime*sind(theta)); printf(" \n I_1_prime = %.1f <-%.2f A \n",I_1_prime,acosd(cos_theta)); printf(" \n Total load current = motor load + factory load"); printf(" \n I_TM = I_1 + I_1_prime\n"); printf(" \n I_TM in A = ");disp(I_TM); printf(" \n I_TM = %.1f <%.1f A \n ",I_TM_m , I_TM_a ); printf(" \n Overall system PF = %.4f lagging \n ", PF_im ); printf(" \n b: Synchronous motor load\n I_s1 = %.2f <%.2f A\n",I_1,acosd(cos_theta_sm)); printf(" \n I_s1 in A = ");disp(I_s1*cosd(36.87)+%i*I_s1*sind(36.87)); printf(" \n Total load current : I_TSM = I_s1 + I_1_prime \n"); printf(" \n I_TSM in A = ");disp(I_TSM); printf(" \n I_TSM = %.1f <%.1f A \n ",I_TSM_m , I_TSM_a ); printf(" \n Overall system PF = %.1f lagging \n ", PF_sm ); printf(" \n c: Percent reduction in total load current = %.1f percent \n",percent_I_L); printf(" \n d: PF improvement: Using the synchronous motor ( in lieu of the IM)"); printf(" \n raises the total system PF from %.4f lagging to %.1f lagging.",PF_im,PF_sm);
975aa99e1d388ddb92c477072e30ea078f812ad8
449d555969bfd7befe906877abab098c6e63a0e8
/2342/CH2/EX2.25/EX2_25.sce
8079d685aa1abdeb1675d2619be8cac3fe07beaf
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
393
sce
EX2_25.sce
//Exa 2.25 format('v',6) clc; clear; close; // Given data E= 5.95;// in eV EF= 6.25;// in eV delE= 0.01; // delE= 1-1/(1+exp((E-EF)/KT)) K=1.38*10^-23;// Boltzmann Constant in J/K // The temperature at which there is a 1 % probability that a state 0.30 eV below the Fermi energy level T = ((E-EF)/log(1/(1-delE) -1)*1.6*10^-19)/K;// in K disp(T,"The temperature in K is : ")
614edee1bc576f8c5eb1de6f2fb12087658888ea
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.4/macros/mtlb/%b_f_s.sci
6a1c5e207c6663157f74c3a69610d64f53dfa1ad
[ "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
39
sci
%b_f_s.sci
function r=%b_f_s(b,s) r=[bool2s(b);s]
f3acebb80ae5503d69385c382b63d3cd9061a7c5
449d555969bfd7befe906877abab098c6e63a0e8
/1673/CH1/EX1.10/1_10.sce
f2a07dd9c0be337f5bfe2bae31a3067d285e3863
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
229
sce
1_10.sce
//relative error //example 1.10 //page 12 clc;clear;close; a=6.54;b=48.64;c=13.5 da=0.01;db=0.02;dc=0.03; s=(a^2*sqrt(b))/c^3; disp(s,'s='); r_err=2*(da/a)+(db/b)/2+3*(dc/c); printf(' the relative error is :%f',r_err);
539cf766932bc80b9f47eef38528863f579a8a57
efc2fec9dd841d0ca834702c904e00c52762a9f9
/IDCT/IDCT4.sce
36cda0a847e827ad0e01653afbc86c951b3478c3
[]
no_license
surajch77/Scilab-Computer-Vision-Toolbox-TestCases
64c8e0382e8b9d416c4c27c1ed4272f49bf45b51
969f9bcddefea05b42c623aeebe2e0cdcffd6eeb
refs/heads/master
2021-01-20T20:24:14.345296
2016-06-29T15:16:52
2016-06-29T15:16:52
61,932,313
0
0
null
null
null
null
UTF-8
Scilab
false
false
224
sce
IDCT4.sce
// read the image lena_color_256.tif I = imread("lena_color_256.tif"); // convert the image to double I = double(I); // find the IDCT of the image J = IDCT(I); // output: // Error : Input image should be single channel
7cadd63c9154382197fdc681fb94c5250ceac3f5
449d555969bfd7befe906877abab098c6e63a0e8
/2297/CH2/EX2.4/Ex2_4.sce
ee916e339063e566713857cb25cfa3e7c35149f4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
657
sce
Ex2_4.sce
// Example 2.4 :current clc; close; clear; format('v',7) // given : vs1=72;//voltage in volts vs2=40;//voltage in volts R1=36;//resistance in ohms R2=10;//resistance in ohms ig=2;//current in amperes Rx=8;//resistance in ohms disp("Applying Thevenins Theorem ") //(vs1-voc)/R1+(v40-voc)/R2 +2 =0 node equation at 1 voc=(R2*vs1+R1*vs2+R1*R2*ig)/(R1+R2);//voltage in volts req=(R1*R2)/(R1+R2);//resistance in ohms ix1=(voc)/(req+Rx);//resistance in ohms disp(ix1,"current through Rx is, (A)") disp("Applying Nortons Theorem ") Is=(vs1/R1)+(vs2/R2)+ig;//current in amperes ix2=(req*(Is/(Rx+req)));//current in amperes disp(ix2,"current through Rx is, (A) =")
ffbfd77f458a99dd6aff3e8b9fa498a4846694ae
e9d5f5cf984c905c31f197577d633705e835780a
/GED/linear/scilab/functions/pmgei_method/problems/ged_P9_sim_pmgei.sce
a02cbee0ba4bb3276ea143acc77ea24b4df87497
[]
no_license
faiz-hub/dr-ged-benchmarks
1ad57a69ed90fe7595c006efdc262d703e22d6c0
98b250db9e9f09d42b3413551ce7a346dd99400c
refs/heads/master
2021-05-18T23:12:18.631904
2020-03-30T21:12:16
2020-03-30T21:12:16
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,702
sce
ged_P9_sim_pmgei.sce
// Data Reconciliation Benchmark Problems From Lietrature Review // Author: Edson Cordeiro do Valle // Contact - edsoncv@{gmail.com}{vrtech.com.br} // Skype: edson.cv //Mandel, Denis, Ali Abdollahzadeh, Didier Maquin, and Jos� Ragot. 1998. //Data reconciliation by inequality balance equilibration: a LMI approach. //International Journal of Mineral Processing 53, no. 3 (April): 157-169. //http://www.sciencedirect.com/science/article/B6VBN-3VM1X8N-3/2/8bffe94a1153eea8647eed5af0031d36. //Bibtex Citation //@article{Mandel1998, //author = {Mandel, Denis and Abdollahzadeh, Ali and Maquin, Didier and Ragot, Jos�}, //isbn = {0301-7516}, //journal = {International Journal of Mineral Processing}, //keywords = {Linear Matrix Inequality Techniques,data reconciliation,error detection,error isolation}, //month = apr, //number = {3}, //pages = {157--169}, //title = {{Data reconciliation by inequality balance equilibration: a LMI approach}}, //url = {http://www.sciencedirect.com/science/article/B6VBN-3VM1X8N-3/2/8bffe94a1153eea8647eed5af0031d36}, //volume = {53}, //year = { // 12 Streams // 5 Equipments getd('../../'); getd('../../../jacobians/'); getd('../method/'); getd('../method/pls'); cd '../../' clear xr sd sds x_sol xfinal jac jac_col jac_col rj sigma sigam_inv res V V_inv diag_diag_V Wbar gama zr_nt adj zadj Wbar_alt adjustability detect resi Qglr betaglr xchiglr ge_glr op_glr; clear avti_gt_mt op_gt_mt op_gt_nt_tmp avt1_mt1 avt1_mt2 op_mt1 op_mt2 avti_glr op_glr_mt aee_mt aee_nt_tmp op_glr_nt_tmp avti_glr_nt_tmp avti_gt_mt_tmp op_gt_mt_tmp op_gt_nt avt1_nt1 avt1_nt2 op_nt1 op_nt2 avti_glr_tmp op_glr_mt_tmp aee_mt_tmp aee_nt op_glr_nt avti_glr_nt; stacksize('max'); tic; xr =[230;21;209;35;174;15;159;50;209;94;115;44]; //the variance proposed by the original author //sd = [37.575 //1.08 //5 //1.825 //2 //0.88 //7.245 //1 //5 //2 //18.1 //2.385 //]; szx = size(xr,1); runsize = 500; // we are testing equal sigma here sd=ones(12,1); sds = sd; var=sd.^2; jac=jacP9(); jac_col = size(jac,2); jac_row = size(jac,1); rj=rank(jac); sigma=diag(sds.^2); //sigma=eye(12,12); [adj, detect, V, V_inv, sigma_inv, diag_diag_V, Wbar] = adjust(sigma, jac); //[xfinal, resRand, resGrossErrorNodalRand]=generate_data(xr, sd, jac, runsize, 2, 7, 0.1, 0.2); [xfinal, resRand, resGrossErrorNodalRand]=generate_data(xr, sd, jac, runsize, 5, 9, 0.07, 0.15); resGrossErrorNodalRandFi = [ resRand;resGrossErrorNodalRand]; //observability/redundancy tests //user can set unmeasured streams here, if this vector is empty, all streams are measured umeas_P9 = []; [red_P9, just_measured_P9, observ_P9, non_obs_P9, spec_cand_P9] = qrlinclass(jac,umeas_P9); measured_P9 = setdiff([1:length(xr)], umeas_P9); red = measured_P9;// // to run robust reconciliation,, one must choose between the folowing objective functions to set up the functions path and function parameters: //WLS analytical = -1 WLS numerical = 0 ; Absolute sum of squares = 1 ; Cauchy = 2 ;Contamined Normal = 3 ; Fair = 4 //Hampel = 5 Logistic = 6 ; Lorenztian = 7 ; Quasi Weighted = 8 // run the configuration functions with the desired objective function type obj_function_type = 2; [x_sol] = calc_results_DR(xfinal, jac, sigma, resGrossErrorNodalRandFi, obj_function_type); [res, gamaMeasuremts,gamaNodal,zr_nt_nodal, zr_nt_nodal_rand, zadj ] = calc_results_index(x_sol, jac, sigma, resGrossErrorNodalRandFi); // for equal sigma [avti_gt_mt, op_gt_mt, op_gt_nt] = global_test(0.08, 0.08, gamaMeasuremts, runsize, rj, jac_col, jac_row); // cauchy [avt1_mt1, avt1_mt2, op_mt1, op_mt2] = measurement_test(0.00015, 0.0018, zadj, runsize, jac_col); [avt1_nt1, avt1_nt2, op_nt1, op_nt2] = nodal_test(0.0175, 0.101, jac_row, runsize, zr_nt_nodal); nvalidate = 10; lower_bias = 5; delta_bias = 1; upper_bias = 9; lower_leak = 0.07; delta_leak = 0.02; upper_leak = 0.15; //cauchy alfa_gt_mt = 0.08; alfa_gt_nt = 0.08; alfa_mt1 = 0.00015; alfa_mt2 =0.0018; alfa_nt1 = 0.0175; alfa_nt2 = 0.101; pause is_multi = 0; clear res gamaMeasuremts gamaNodal zr_nt_nodal zr_nt_nodal_rand zadj x_sol resGrossErrorNodalRandFi; [p9_train, p9_validate] = generate_trainning2(xr, sd, jac, runsize, nvalidate, lower_bias, delta_bias, upper_bias, lower_leak,delta_leak,upper_leak, alfa_gt_mt,alfa_gt_nt,alfa_mt1,alfa_mt1, alfa_nt1, alfa_nt2,obj_function_type,is_multi); ndatainterval = 5 //pause [list_models_P9, p9_stat] = generate_pls_models_m( 'P9', 12, 6, p9_train, p9_validate, nvalidate,ndatainterval); [avti_meas, op_meas, selectivity_meas, aee_meas, avti_eqp, op_eqp, selectivity_eqp, aee_eqp] = get_lit_info(p9_stat, jac_col, jac_row) list_models_P9 runtime=toc(); cd 'pmgei_method/problems';
0bb35ed63e0e566e96db662abb93a19b41c1591e
449d555969bfd7befe906877abab098c6e63a0e8
/260/CH5/EX5.16/5_16.sce
3e22cf362b5529a005e22a4216499956ce4feff4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
144
sce
5_16.sce
//Eg-5.16 //pg-257 clear clc A=[4 -2 2 8;-2 6 2 4;2 2 10 -6;8 4 -6 12]; T=hess(A); disp("required tridiagonal matrix is") disp(T)
a88a7a996988d0b41239eec6a5f39b118b1ca3ef
449d555969bfd7befe906877abab098c6e63a0e8
/1646/CH9/EX9.12/Ch09Ex12.sce
adb01bcc11d9f5b934d97b9e184f4ea24616e68f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
495
sce
Ch09Ex12.sce
// Scilab Code Ex9.12: Page-468 (2011) clc;clear; Pi =1;....// Input power of optical fibre, mW Po = 0.85;....// Outptu power of optical fibre, mW L = 0.5;....//The distance through the optical wave transmits through the fibre, km alpha = (10/L)*log10(Pi/Po); // The attenuation of power through the optical fibre printf("\nThe attenuation of power through the optical fibre = %5.3f dB/km", alpha); // Result // The attenuation of power through the optical fibre = 1.412 dB/km
c602d4e0c6171189f4afa24629a0736b535f66f8
449d555969bfd7befe906877abab098c6e63a0e8
/3556/CH12/EX12.13/Ex12_13.sce
22c7aa9c3a68badcd9223186d11b2e7d3972b85c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,304
sce
Ex12_13.sce
clc // Fundamental of Electric Circuit // Charles K. Alexander and Matthew N.O Sadiku // Mc Graw Hill of New York // 5th Edition // Part 2 : AC Circuits // Chapter 12 : Three Phase Circuit // Example 12 - 13 clear; clc; close; // // Given data Van_mag = 100.0000; Van_angle = 0.0000; Vbn_mag = 100.0000; Vbn_angle = 120.0000; Vcn_mag = 100.0000; Vcn_angle = -120.0000; Ia_mag = 6.6700; Ia_angle = 0.0000; Ib_mag = 8.9400; Ib_angle = 93.4400; Ic_mag = 10.0000; Ic_angle = -66.8700; // Calculations The Wattmeter Reading 1 P1 = Van_mag * Ia_mag * cosd(Van_angle - Ia_angle); // Calculations The Wattmeter Reading 2 P2 = Vbn_mag * Ib_mag * cosd(Vbn_angle - Ib_angle); // Calculations The Wattmeter Reading 3 P3 = Vcn_mag * Ic_mag * cosd(Vcn_angle - Ic_angle); // Calculations Total Power Absorbed PT = P1 + P2 + P3; // disp("Example 12-13 Solution : "); disp("a. Wattmeter Reading : "); printf(" \n P1 = Wattmeter Reading 1 = %.3f Watt",P1) printf(" \n P2 = Wattmeter Reading 2 = %.3f Watt",P2) printf(" \n P3 = Wattmeter Reading 3 = %.3f Watt",P3) disp("") disp("b. Total Power Absorbed : "); printf(" \n PT = Total Power Absorbed = %.3f Watt",PT)
6c2acce7f840dfe5950ce737c4172dff68f21ed2
15732b8e4190ae526dcf99e9ffcee5171ed9bd7e
/task/topoScript1.sci
197d67540dc5810024ac32a3efa15420f10cff6d
[]
no_license
clovermwliu/whutnetsim
d95c07f77330af8cefe50a04b19a2d5cca23e0ae
924f2625898c4f00147e473a05704f7b91dac0c4
refs/heads/master
2021-01-10T13:10:00.678815
2010-04-14T08:38:01
2010-04-14T08:38:01
48,568,805
0
0
null
null
null
null
UTF-8
Scilab
false
false
66
sci
topoScript1.sci
[Total] style=Waxman1 [Waxman1] count=50 alpha=0.5 beta=0.5
ef34ad94e3296c5d93127c433c3919146fe8b9a3
449d555969bfd7befe906877abab098c6e63a0e8
/1457/CH9/EX9.5/9_5.sce
bf210e723d27af13e59ed20625c2019399ffd036
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
805
sce
9_5.sce
clc //Initialization of variables P1=50 //psia T1=540 //K g=32.2 R=1715 k=1.4 P3=13.5 //psia A2=0.0218 //ft^2 cp=6000 //calculations Pc=0.528*P1 V32=R*T1/g *k/(k-1) *(1- (P3/P1)^((k-1)/k)) V3=sqrt(V32*2*g) G3=g*A2*P1*144/sqrt(T1) *sqrt(k/R *(2/(k+1))^((k+1)/(k-1))) T3= T1 - V3^2 /(2*cp) gam3= g*P3*144/(R*T3) gam2= (Pc/P3 *gam3^k )^(1/k) V2=G3/gam2/A2 T2= (V3^2 -V2^2)/(2*cp) + T3 A3=G3/gam3/V3 D3= sqrt(4/%pi *A3) G2=G3 //results printf("\n velocity at section 3 = %d fps",V3) printf("\n Flow rate at section 3 = %.3f lb/s",G3) printf("\n temperature at section 3 = %d R",T3) printf("\n velocity at section 2 = %d fps",V2) printf("\n Flow rate at section 2 = %.3f lb/s",G2) printf("\n temperature at section 2 = %d R",T2) printf("\n Required Diameter = %.2f in",D3*12)
c430e02ace157f72dc169537ebb805c80eb81874
3b9a879e67cbab4a5a4a5081e2e9c38b3e27a8cc
/Pack/Área 1/P1/q6.sce
fe8052e71fb0c1db4637ebb6f5f363a2f5be4c74
[ "MIT" ]
permissive
JPedroSilveira/numerical-calculus-with-scilab
32e04e9b1234a0a82275f86aa2d6416198fa6c81
190bc816dfaa73ec2efe289c34baf21191944a53
refs/heads/master
2023-05-10T22:39:02.550321
2021-05-11T17:17:09
2021-05-11T17:17:09
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
154
sce
q6.sce
disp(dec2base(2204,8)) //base 8, acho que esse código é simples de entender. //caso necessário, veja a documentação usando o comando "help dec2base"
ebb24de724ca6fb28a6c79fce2f5d5cf06f5ad9c
fa428f297a915e9a041597642bfe29627ab69c42
/app/views/listings/item.sce
8cbe2dba674026383c5cb04cbff9e67f4b3a569d
[]
no_license
TheBrenny/Web-Dev-and-Security
dff903be92838b14f7126dd1f7092922b86bf2cc
e4abb96dc24e606704b09f5acdd2684d6d5d577d
refs/heads/main
2023-06-17T08:33:35.176024
2021-06-15T05:07:20
2021-06-15T05:07:20
343,603,444
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,662
sce
item.sce
[[i= partials/header ]] [[i= partials/navbar ]] <div class="container"> <div class="flex row product"> <div class="container center productImg"> <img src="/assets/img/products/[[item.products_image]]" alt="img"> </div> <div class="container center productData" style="width:78%;"> <h2 name="name">[[item.products_name]]</h2> <span>$[[item.products_cost]]</span> <!-- <label for="cost">$</label> --> <p class="productDescription" name="description">[[item.products_description]]</p> </div> </div> <div class="flex row actions"> [[?= sold ]] <div class="btn red" disabled>Sold to: [[item.users_username]]</div> [[3= ]] <div class="btn" action="addToCart" target="[[item.products_id]]">Add to Cart</div> [[?==]] </div> </div> <hr> <div class="container comments"> <h3>Comments</h3> [[?= comments.length > 0 ]] [[e= comment in comments ]] [[c= components/comment || comment=comment ]] [[?==]] [[3=]] <p><i>No comments have been left yet...</i></p> [[?==]] [[?= user.authed ]] <div class="flex" style="gap:1em;"> <textarea name="commentBox" placeholder="Leave a comment, or ask a question..."></textarea> <div class="btn" action="postComment" target="[[item.products_id]]">Post Comment</div> </div> [[?==]] </div> <link rel="stylesheet" href="/assets/css/listings.css"> <script src="/assets/js/listings.js"></script> [[l= components/comment ]] [[i= partials/footer ]]
843225fb9e1aad106342e890a1ee0a940a8e0572
592b1b7dfaefd62d755737ac7b6e81f44f7786ba
/2b Program to solve algebraic and transcendental equation by false position method.sce
7b8b7aef7cc7e4ccd0fe8bf167330d6ce7161b09
[]
no_license
muitnet/Numerical-and-Statistical-Methods-sem2-fybscit-mumbai-university
841143b72d52229c68bcd0666ed10c844c02f507
2d1c638b881f3e418a982baa02632effd03ae5fe
refs/heads/master
2021-01-19T07:23:05.463429
2017-04-07T11:54:24
2017-04-07T11:54:24
87,540,712
6
5
null
null
null
null
UTF-8
Scilab
false
false
436
sce
2b Program to solve algebraic and transcendental equation by false position method.sce
deff('y=f(x)','y=x^3-2*x-5'); a=2,b=3; //f(2) is negative and f(3) is positive d=0.00001; // for accuracy of root printf('successive iterations \ta \tb \t f(a) \t f(b) \tx1 \n') for i=1:25 x1=b*f(a)/(f(a)-f(b))+a*f(b)/(f(b)-f(a)) if (f(a)*f(x1))>0 b=x1; else a=x1; end if abs(f(x1))<d break end printf('\t%f %f %f %f %f\n',a,b,f(a),f(b),x1); end printf(' the root of equation %f',x1);
a73daf640aea35dd2eae94c642e4f17b04081679
449d555969bfd7befe906877abab098c6e63a0e8
/1994/CH8/EX8.2/Example8_2.sce
681c804460dd798f55ab09fe17bdf0b4000b7ca6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
148
sce
Example8_2.sce
//Chapter-8,Example8_2,pg 8_18 R1=10*10^3 R2=2*10^3 R3=5*10^3 //R4=Rx R4=(R1*R3)/R2 printf("unknown resistance\n") printf("R4=%.2f ohm",R4)
a8e9d7928890fe1ef94b3e50ae7c3567dc5f257e
9b60b7963181dd94c8d10cdb75a83bc010957e71
/taf_monitor_code/taf_monitor/tests/acceptance/12-military_cloud_amount_thresholds.tst
ed43a83b8b5b0ba82008dd2e2ebe556b0037080e
[]
no_license
alanyon/python
577773100eac269750925c1f924edc51060ca865
cbfe0f34fe61ed0495572fa05ea6bf4293ef15bb
refs/heads/master
2023-07-13T17:27:59.555648
2021-08-09T15:59:08
2021-08-09T15:59:08
393,341,633
0
0
null
null
null
null
UTF-8
Scilab
false
false
5,303
tst
12-military_cloud_amount_thresholds.tst
{ "EGWC 150800Z 1509/1518 18005KT 9999 FEW030 TEMPO 1510/1511 SCT020 TEMPO 1511/1512 BKN020 TEMPO 1512/1513 OVC020 BECMG 1513/1515 OVC020": { "TAF base conditions cover METAR - CAVOK": { "metar": "EGWC 150850Z 18005KT CAVOK", "test time": "20200615T0900Z", "expected": "" }, "TAF base conditions cover METAR - cloud NSC": { "metar": "EGWC 150850Z 18005KT 9999 NSC", "test time": "20200615T0900Z", "expected": "" }, "TAF base conditions cover METAR - cloud FEW030": { "metar": "EGWC 150850Z 18005KT 9999 FEW030", "test time": "20200615T0900Z", "expected": "" }, "TAF base conditions cover METAR - cloud SCT030": { "metar": "EGWC 150850Z 18005KT 9999 SCT030", "test time": "20200615T0900Z", "expected": "" }, "TAF base conditions cover METAR - cloud BKN030": { "metar": "EGWC 150850Z 18005KT 9999 BKN030", "test time": "20200615T0900Z", "expected": "" }, "TAF base conditions cover METAR - cloud OVC030": { "metar": "EGWC 150850Z 18005KT 9999 OVC030", "test time": "20200615T0900Z", "expected": "" }, "TAF base conditions do not cover METAR - cloud SCT020": { "metar": "EGWC 150850Z 18005KT 9999 SCT020", "test time": "20200615T0900Z", "expected": "EGWC TAF bust by cloud" }, "TAF base conditions do not cover METAR - cloud BKN020": { "metar": "EGWC 150850Z 18005KT 9999 BKN020", "test time": "20200615T0900Z", "expected": "EGWC TAF bust by cloud" }, "TAF base conditions do not cover METAR - cloud OVC020": { "metar": "EGWC 150850Z 18005KT 9999 OVC020", "test time": "20200615T0900Z", "expected": "EGWC TAF bust by cloud" }, "TAF tempo conditions cover METAR - cloud SCT020 (TAF SCT)": { "metar": "EGWC 150950Z 18005KT 9999 SCT020", "test time": "20200615T1000Z", "expected": "" }, "TAF tempo conditions cover METAR - cloud BKN020 (TAF SCT)": { "metar": "EGWC 150950Z 18005KT 9999 BKN020", "test time": "20200615T1000Z", "expected": "" }, "TAF tempo conditions cover METAR - cloud OVC020 (TAF SCT)": { "metar": "EGWC 150950Z 18005KT 9999 OVC020", "test time": "20200615T1000Z", "expected": "" }, "TAF tempo conditions cover METAR - cloud SCT020 (TAF BKN)": { "metar": "EGWC 151050Z 18005KT 9999 SCT020", "test time": "20200615T1100Z", "expected": "" }, "TAF tempo conditions cover METAR - cloud BKN020 (TAF BKN)": { "metar": "EGWC 151050Z 18005KT 9999 BKN020", "test time": "20200615T1100Z", "expected": "" }, "TAF tempo conditions cover METAR - cloud OVC020 (TAF BKN)": { "metar": "EGWC 151050Z 18005KT 9999 OVC020", "test time": "20200615T1100Z", "expected": "" }, "TAF tempo conditions cover METAR - cloud SCT020 (TAF OVC)": { "metar": "EGWC 151150Z 18005KT 9999 SCT020", "test time": "20200615T1200Z", "expected": "" }, "TAF tempo conditions cover METAR - cloud BKN020 (TAF OVC)": { "metar": "EGWC 151150Z 18005KT 9999 BKN020", "test time": "20200615T1200Z", "expected": "" }, "TAF tempo conditions cover METAR - cloud OVC020 (TAF OVC)": { "metar": "EGWC 151150Z 18005KT 9999 OVC020", "test time": "20200615T1200Z", "expected": "" }, "TAF base conditions cover METAR - cloud OVC020": { "metar": "EGWC 151550Z 18005KT 9999 OVC020", "test time": "20200615T1600Z", "expected": "" }, "TAF base conditions cover METAR - cloud BKN020": { "metar": "EGWC 151550Z 18005KT 9999 BKN020", "test time": "20200615T1600Z", "expected": "" }, "TAF base conditions cover METAR - cloud SCT020": { "metar": "EGWC 151550Z 18005KT 9999 SCT020", "test time": "20200615T1600Z", "expected": "" }, "TAF base conditions do not cover METAR - cloud FEW020": { "metar": "EGWC 151550Z 18005KT 9999 FEW020", "test time": "20200615T1600Z", "expected": "EGWC TAF bust by cloud" }, "TAF base conditions do not cover METAR - cloud NSC": { "metar": "EGWC 151550Z 18005KT 9999 NSC", "test time": "20200615T1600Z", "expected": "EGWC TAF bust by cloud" }, "TAF base conditions do not cover METAR - CAVOK": { "metar": "EGWC 151550Z 18005KT CAVOK", "test time": "20200615T1600Z", "expected": "EGWC TAF bust by cloud" } }, "description": "A contrived test with 1 hour tempo groups to check the grouping of SCT/BKN/OVC cloud amounts as significant for military TAFs below 2500FT." }
ba6972cf1acef16c6c863409ac41a69645124b36
449d555969bfd7befe906877abab098c6e63a0e8
/323/CH2/EX2.43/ex2_43.sci
b8799a2ae31ec92563dd30397241c56988d968ea
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
315
sci
ex2_43.sci
//Chapter 2,Example2.43,Pg 2.54 clc; disp("Refer to the diagram shown in the question") A=[7 -1;1 -6] B=[10;0] I=A\B Vth=(3*I(2))-20 printf("\n Vth=%.2f V \n",Vth) R1=[((6*1)/(6+1))+2] Rth=R1*3/(R1+3) printf("\n Rth=%.2f A \n",Rth) Il=Vth/(Rth+10) printf("\n The value of load current = %.2f A \n",Il)
fb679c053ebe0b20bad395f43baa724fa9ae7864
449d555969bfd7befe906877abab098c6e63a0e8
/1574/CH6/EX6.2/RR_Ex_6_2.sce
40442c27075fde92cb9d658427355d9d20af85e6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
326
sce
RR_Ex_6_2.sce
clc //Chapter8 //Example6.2, page no 262 //Given fmax=1600e3,fmin=500e3,IF=465e3 //i fo1max=fmax+IF,fo1min=fmin+IF C1max_C1min=(fo1max/fo1min)^2 //ii fo2max=fmax-IF,fo2min=fmin-IF C2max_C2min=(fo2max/fo2min)^2 mprintf('a)\nTuning capacitor range is: %f\nb)\nTuning capacitor range is: %d',C1max_C1min,C2max_C2min)
616e524b0efbbf90f335ff326f8c75f0945c6b06
449d555969bfd7befe906877abab098c6e63a0e8
/1511/CH2/EX2.5/ex2_5.sce
1d3a555529dd7b1dc32b56a3cd1d01244acc7d34
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
465
sce
ex2_5.sce
// Example 2.5 page no-48 clear clc f=10*10^6 //Hz h=6.626*10^-34 //Joules/sec e=1.6*10^-19 //C //(a) E=h*f/e printf("\n(a)Energy of each radiated quantum,\n\tE=%.3f*10^-27 Joules/Quantum\n\tE=%.2f*10^-8 eV/Quantum",h*f*10^27,E*10^8) //(b) E=1000 //Joule/sec N=E/(h*f) printf("\n\n(b)\nTotal number of quanta per sec, N=%.2f*10^29",N/10^29) //(c) o=10^-7 printf("\n\n(c)\nNumber of quanta emitted per cycle = %.2f*10^22 per cycle",o*N/10^22)
d458b341d3ce557620966e578dabc18c05bd30c8
aa71d456514d0b21d0f207d4c14ee71876029f21
/aws-java-sdk-core/src/test/resources/resources/profileconfig/CompleteCsmProperties.tst
7e3436870892b7be936b28b6c3264c9879eb18b9
[ "Apache-2.0" ]
permissive
ckiosidis/aws-sdk-java
ff89fb1acd6f27a3792a9c86026b58e2b19a7d95
52c0498762e61e4c2d5cbc293cee61cd614a71f6
refs/heads/master
2020-03-29T05:34:20.817581
2018-09-21T19:28:54
2018-09-21T19:28:54
149,588,289
0
0
Apache-2.0
2018-09-21T19:28:55
2018-09-20T09:54:04
Java
UTF-8
Scilab
false
false
64
tst
CompleteCsmProperties.tst
[aws_csm] csm_enabled = true csm_port = 1234 csm_clientid = foo
6e47298773d4efa8dd385e14646680765d5567df
6813325b126713766d9778d7665c10b5ba67227b
/Chapter6/Ch_6_Eg_6.21.sce
cad97b9c2d5b3e7218f3068af1282db1779635d0
[]
no_license
arvindrachna/Introduction_to_Scilab
955b2063b3faa33a855d18ac41ed7e0e3ab6bd1f
9ca5d6be99e0536ba1c08a7a1bf4ba64620ec140
refs/heads/master
2020-03-15T19:26:52.964755
2018-05-31T04:49:57
2018-05-31T04:49:57
132,308,878
1
0
null
null
null
null
UTF-8
Scilab
false
false
111
sce
Ch_6_Eg_6.21.sce
//A program to write strings in a file. x=[1:3]'; y=x.^2; s=msprintf("%4d%4d\n",x,y); mputl(s,"out.dat");
782857eb251949db3e6456e6445df4c6307cb3d0
449d555969bfd7befe906877abab098c6e63a0e8
/3432/CH7/EX7.20/Ex7_20.sce
14140dde4ec712eaba023d97efdff451ee4191ae
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,717
sce
Ex7_20.sce
//Example 7.20 // Pole Placement as a Dominant Second-Order System xdel(winsid())//close all graphics Windows clear; clc; //------------------------------------------------------------------ clc; clear all; // State space representation F=[0 2 0 0 0;-0.10 -0.35 0.1 0.1 0.75; 0 0 0 2 0;... 0.4 0.4 -0.4 -1.4 0; 0 -0.03 0 0 -1]; G=[0 0 0 0 1]'; H=[0.5 0 0.5 0 0]; //Tape position at the head Ht=[-0.2 -0.2 0.2 0.2 0]; //Tension output J=0; n=sqrt(length(F)) // Desired poles Pc=[-0.707+0.707*%i -0.707-0.707*%i -4 -4 -4]/1.5; //------------------------------------------------------------------ // State feedback gain matrix via LQR (riccati equation) Q = eye(5,5); R =1 // Riccati equation P=riccati(F, G*inv(R)*G', Q, 'c') K1=inv(R)*G'*P //------------------------------------------------------------------ // State feedback gain matrix via pole-placement exec('./acker_dk.sci', -1); K2=acker_dk(F,G,Pc); disp(K2,'K2=',"Gain by ackermans formula" ); //------------------------------------------------------------------ Ntilde1=-inv(H*inv(F-G*K1)*G); //input gain for LQR feedback gain. Ntilde2=-inv(H*inv(F-G*K2)*G); //input gain for Ackerman's feedback gain. syscl1=syslin('c',(F-G*K1),G*Ntilde1,H,J); //closed loop system with K1 syscl2=syslin('c',(F-G*K2),G*Ntilde2,H,J); //closed loop system with K2 t=0:0.1:12; [y1 x1]=csim('step',t,syscl1); //response of position head with K1 [y2 x2]=csim('step',t,syscl2); //response of position head with K2 //plot of a position of read write head plot(t,y1,"m-."); //Design via LQR plot(t,y2,2); //Design via Ackerman's Formula //Title, labels and grid to the figure exec .\fig_settings.sci; // custom script for setting figure properties title('Step response of tape servomotor designs','fontsize',3); xlabel('Time t (sec.)','fontsize',2); ylabel('Tape Posotion','fontsize',2); xstring(2.5,1.1,"LQR") xarrows([3;4],[1.1;0.95],-1,1) xstring(5,0.7,["Dominant";"second order"]) xarrows([5;4.2],[0.8;0.9],-1.5,1) //------------------------------------------------------------------ //response as a tape tension yt1=Ht*x1; yt2=Ht*x2; figure(1) plot(t,yt1,"m-."); //Design via LQR plot(t,yt2,2); //Design via Ackerman's Formula //Title, labels and grid to the figure exec .\fig_settings.sci; // custom script for setting figure properties title('Tension plots for tape servomotor step responses','fontsize',3); xlabel('Time t (sec.)','fontsize',2); ylabel('Tape Tension','fontsize',2); xstring(3.5,0,"LQR") xarrows([3.7;4.7],[0;0],-1) xstring(6.1,-0.015,["Dominant";"second order"]) xarrows([6;6],[-0.013;-0.002],-1) //------------------------------------------------------------------
0f91ae95746baa62349d6faeb9d6003987e033e9
449d555969bfd7befe906877abab098c6e63a0e8
/69/CH5/EX5.4/5_4.sce
4317afeafbfed2c7e16e0bf441f8d1b30bbf2f97
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
669
sce
5_4.sce
clear; clc; close; Vcc = 15; Vbe = 0.7; Vt = 26*(10^(-3)); Rb = 470*(10^(3)); Rc = 4.7*(10^(3)); ro = 50*(10^(3)); Beta = 100; Ib = (Vcc-Vbe)/Rb; Ie = (Beta+1)*Ib; re = Vt/Ie; disp(re,"Value of diode resistive element is :") Zb = Beta*re; //resistance seen from base into the diode Zi = (Rb*Zb)/(Rb+Zb); disp(Zi,"Input impedance(ohms) :"); disp("At ro = infinity values are :-"); Zo = Rc; disp(Zo,"Output impedance(ohms) :"); Av = -Rc/re; disp(Av,"Voltage gain :"); disp("At ro = 50kohm,values are :-"); Zo_2 = (ro*Rc)/(ro+Rc); disp(Zo_2,"Input impedance(ohms) :"); Av_2 = -((ro*Rc)/(ro+Rc))/re; disp(Av_2,"Voltage gain :");
8c5ced0b1309feccee6cf256e6ab351a61f7f2c4
449d555969bfd7befe906877abab098c6e63a0e8
/716/CH8/EX8.2/Solved_Ex8_2.sce
6d872ddc8b11fd52e5f87ee2b8eb25d23f691ec3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
457
sce
Solved_Ex8_2.sce
//Determine the fourier series representation of the given discrete time signal, x(n)={....,1,2,-1,1,2,-1,....} and sketch frequency spectrum clc; clear; x={1,2,-1}; N=3; m=0:1:20; for k=0:1:20 c=0; for n=0:1:N-1 c=c+x(n+1)*exp(-2*%i*%pi*k*n/N); end cmag(k+1)=abs(c/N); cphase(k+1)=atan(imag(c/N)/real(c/N)); end subplot(1,2,1) plot2d3(m,cmag,3); disp(cmag,'Magnitude |Ck|'); subplot(1,2,2) plot2d3(m,cphase,3);
4d29af6d080e8f91411ec17a1d661f3b7692766f
449d555969bfd7befe906877abab098c6e63a0e8
/122/CH7/EX7.28.2/exa7_28_2.sce
094096bbf6373cb042edf0ba735ff0e8d5d1883a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
758
sce
exa7_28_2.sce
// Example 7-26-2 // Evaluating Lag Lead compensated system clear; clc; xdel(winsid()); //close all windows // please edit the path // cd "/<your code directory>/"; // exec("plotresp.sci"); s = %s; G = 1 / (s * (s + 1) * (s + 2)); Gc = 20 * (s + 0.7) * (s + 0.15) / (s + 7) / (s + 0.015); GGc = G*Gc; H = syslin('c',G /. 1); Hc = syslin('c',GGc /. 1); t = 0:0.1:30; u1 = ones(1,length(t)); //step response u2 = t; //ramp response subplot(2,1,1);plotresp(u1,t,H,''); plotresp(u1,t,Hc,'Unit step response'); xstring(3,0.8,'uncompensated system'); xstring(0.7,0.6,'compensated system'); subplot(2,1,2);plotresp(u2,t,H,''); plotresp(u2,t,Hc,'Unit ramp response'); xstring(10,7,'uncompensated system'); xstring(2,0.5,'compensated system');
2af8e93518f0558f411bba5a36ff3db57307a1ea
449d555969bfd7befe906877abab098c6e63a0e8
/1382/CH2/EX2.62/EX_2_62.SCE
7c6fcbae8d08646614b02dc92e051bc93eecb423
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
431
sce
EX_2_62.SCE
// Example 2.62:mid band voltage gain and cut off frequency clc; clear; Rs=1;// ft=500//frequency in mega hertz Cbc=5;//in pico farad //H Paramters are hie=500;//in ohms hfe=100; rbe= 900;//// rbb= 100;// Rl=500;//load resistance in ohms gm=hfe/rbe;//in mho Av=((-gm*Rl));//voltage gain Avs= ((Av*rbe)/(Rs*10^3+rbb+rbe));//mid band voltage gain fb= ft/hfe;// disp(Avs,"(Avs)mid band voltage gain is") disp(fb,"(fb) in mega hertz")
a6613392051d6dd26ba4bed5007b832445b4b1c0
449d555969bfd7befe906877abab098c6e63a0e8
/3020/CH18/EX18.8/ex18_8.sce
fc2a9f65534fe11708364ae0699a6ef9d83659ba
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
621
sce
ex18_8.sce
clc; clear all; T=300;//temperature in kelvin rho=2.12;//resistivity in ohm*m ue=0.36;//mobility of electron in m^2/(V*s) uh=0.17;//mobility of hole in m^2/(V*s) Kb=1.38e-23;//boltzman constant e = 1.6e-19; sigma=1/rho;//conductivity of Ge ni=sigma/(e*(ue+uh));//intrinsic concentration disp('',ni,'intrinsic concentration is:') mo=9.1e-31;//mass of electron me=0.5*mo; mh=0.37*mo; h=6.626e-34;//plank constant x=(2*%pi*Kb*T*me/(h*h))^(3/2);//temporary variable Nc=2*x; Nv=2*(2*%pi*Kb*T/(h*h))^(3/2)*(mh)^(3/2); Eg=2*Kb*T*log((Nc*Nv)^0.5/ni); Eg1=Eg/(1.6e-19); disp('eV',Eg1,'bandgap of Ge is:')
371a71c34977fa44c08dbdfce60e8cc95d3d7202
449d555969bfd7befe906877abab098c6e63a0e8
/2195/CH4/EX4.19.4/ex_4_19_4.sce
e69a4f720418404983362ea38fadce8f7ab87f35
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
ex_4_19_4.sce
//Example 4.19.4: current clc; clear; close; //given data : format('v',4) rd=150*10^3;// in ohm Rm=50;// in ohm Rs=1000*10^3;// in ohm gm=0.0052;//in mho rd1=rd/((gm*rd)+1); V0=gm*((rd1*Rs)/(rd1+Rs)) R0=(2*Rs*rd1)/(Rs+rd1) I=V0/(R0+Rm); disp(I*10^3,"curent,I(mA) = ")
b30157caa427a049aea102244aeb04417aa259a6
449d555969bfd7befe906877abab098c6e63a0e8
/3665/CH3/EX3.3/Ex3_3.sce
e9f2c28252652b15488f43bcab10ab8b84dc7ef2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
379
sce
Ex3_3.sce
clc// // // //Variable declaration d100=0.28; //spacing(nm) lamda=0.071; //wavelength of X rays(nm) n=2; //second order //Calculation d110=(d100/sqrt(2)); //spacing(nm) x=n*lamda/(2*d110); theta=asin(x); //glancing angle(radian) theta=theta*180/%pi ; //glancing angle(degrees) //Result printf("\n glancing angle is %0.0f degrees",theta)
b6763c0ce2a45705ad8cc9b4909d657c62e56f23
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set10/s_Engineering_Thermodynamics_S._S._Khandare_2144.zip/Engineering_Thermodynamics_S._S._Khandare_2144/CH1/EX1.1/ex1_1.sce
07c271abbaaa5d04b0ff50f7e813db41cd55d07d
[]
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
265
sce
ex1_1.sce
errcatch(-1,"stop");mode(2);// Exa 1.1 ; ; // Given data P_m = 760;// pressure of mercury in mm P_m_bar = P_m/750;// in bar P_W = 0.006867;// pressure of water in bar P = P_m_bar+P_W;// in bar disp(P,"The absolute pressure of gas in bar is"); exit();
8b56ae105699ab000d8f1a34cf137066e1d62914
449d555969bfd7befe906877abab098c6e63a0e8
/1826/CH15/EX15.2/ex15_2.sce
f5d184d87e5c8d310402ee2459337254bfec6a59
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
186
sce
ex15_2.sce
// Example 15.2, page no-406 clear clc e=1.6*10^-19//C h=6.626*10^-34 c=3*10^8//m/s lam=6751*10^-10//m E=h*c/lam E=E/e printf("The band gap of the given GaAsP is %.1f eV",E)
2f7165b7bce5c581d04208ced13dfde0ca678c88
6b85d1958ff11075634ed9e0f6dbef2de9548f1b
/ANN_Toolbox/macros/ann_FF_Jacobian_BP.sci
4210fb857754ac14a24394b1d6a236d9ff3af2b8
[ "Unlicense" ]
permissive
ademarazn/REDES_NEURAIS
8a048c13aab33daa4068f52e18b263cc8325884f
a9a35744476d1f7e8405df04d5e4a9f8e4ed4595
refs/heads/master
2021-05-06T13:09:56.514632
2018-04-25T18:49:30
2018-04-25T18:49:30
113,248,743
1
0
null
null
null
null
UTF-8
Scilab
false
false
1,394
sci
ann_FF_Jacobian_BP.sci
function J = ann_FF_Jacobian_BP(x,N,W,af) // This file is part of: // ANN Toolbox for Scilab 5.x // Copyright (C) Ryurick M. Hristev // updated by Allan CORNET INRIA, May 2008 // released under GNU Public licence version 2 // calculate the Jacobian following a backpropagation procedure [lsh,rsh] = argn(0); // optional parameters if rsh < 4, af = ["ann_log_activ", "ann_d_log_activ"], end; // no. of layers L = size(N,'c'); // ... and patterns P = size(x,'c'); // create the hypermatrix to hold (grad_{a(\ell)}} z^\T)^\T grad_a_z = hypermat([N(L), max(N(2:L)), L-1]); // the matrix containing the activities d_f = zeros(max(N(2:L)), L-1); // initialize J J = hypermat([N(L),N(1),P]); // for all patterns for p = 1 : P // forward propagation // initial activation z = x(:,p); for l = 1 : L-1 // find next activation, use extended z, i.e. bias execstr('z = ' + af(1) + '(W(1:N(l+1), 1:N(l)+1, l) * [1;z]);'); // and store its derivative execstr('d_f(1:N(l+1),l) = ' + af(2) + '(z)'); end; // backpropagation // initial values grad_a_z(:, 1:N(L), L-1) = diag(d_f(1:N(L),L-1)); for l = L-2 : -1 : 1 grad_a_z(:, 1:N(l+1), l) = ... (grad_a_z(:, 1:N(l+2), l+1) * ... W(1:N(l+2), 2:N(l+1)+1, l+1)) .* ... (ones(N(L),1) * d_f(1:N(l+1),l)') end; J(:,:,p) = grad_a_z(:, 1:N(2),1) * W(1:N(2), 2:N(1)+1, 1); end; endfunction
7ec2f053e6ff6e2ff36bf752035c1d68165396ac
449d555969bfd7befe906877abab098c6e63a0e8
/3862/CH9/EX9.5/Ex9_5.sce
250cf900d961711c591f79c95f046cf2124f6d73
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
706
sce
Ex9_5.sce
clear //variable declaration //Let the reactions at A be Va and Ma //summation of all horizontal forces is zero & vertical forces is zero. P1=(15) //vertical down Load at 3m from A,KN P2=(10) //vertical down Load at 5m from A,KN M=(30) //CW moment at 4m distance from A, KN-m Pu=(20) //uniform distributed load from A to 2m from A,KN/m(in 2m of span) ////horizontal,vertical component at A is Ha,Va respectively. printf("\n no horizontal force HA=0") Va=Pu*2+P1+P2 printf("\n VA= %0.2f KN",Va) Ma=Pu*2*1+P1*3+P2*5+M printf("\n MA= %0.2f KN-m",Ma)
bfa53fa18bf9898157376c73f1763571cb296b25
449d555969bfd7befe906877abab098c6e63a0e8
/63/CH10/EX10.7/Exa10_7.sci
24417ddb6a4240fa5cd3e1b71f5d6e540ea4ae92
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,090
sci
Exa10_7.sci
//Determine the cut-off wavelength, the guide wavelength, the group and phase velocities and the char. wave impediance for (a) the TE10 mode and (b) the TM11 mode vc = 3e+10; f = 9e+9; a = 4.5; b = 3; m = 1; n = 1; L = 120*%pi; lambda = vc/f; lambda0 = (2*a)/m; rho = sqrt(1 - (lambda/lambda0)^2); lambdap = lambda/rho; vga = vc*rho; vpa = vc/rho; Z0 = L/rho; lambda0b = 2/sqrt((m/a)^2 + (n/b)^2); rhob = sqrt(1 - (lambda/lambda0b)^2); lambdapb = lambda/rhob; vgb = vc*rhob; vpb = vc/rhob; Z0b = L*rhob; disp(lambda0, 'Cut-off wavelength for TE10 mode (in cm)') disp(lambdap, 'Guide wavelength for TE10 mode (in cm)') disp(vga, 'Group Velocitiy for TE10 mode (in m/s)') disp(vpa, 'Phase Velocitiy for TE10 mode (in m/s)') disp(Z0, 'Char. Impediance for TE10 mode (in ohms)') disp(lambda0b, 'Cut-off wavelength for TM11 mode (in cm)') disp(lambdapb, 'Guide wavelength for TM11 mode (in cm)') disp(vgb, 'Group Velocitiy for TM11 mode (in m/s)') disp(vpb, 'Phase Velocitiy for TM11 mode (in m/s)') disp(Z0b, 'Char. Impediance for TM11 mode (in ohms)')
c30bdf154730f23582c5ce0fe379a18f73b8f97e
449d555969bfd7befe906877abab098c6e63a0e8
/1850/CH5/EX5.2/exa_5_2.sce
348bbb48c8c290ccce7ea9e6faa51dc733f973de
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
275
sce
exa_5_2.sce
// Exa 5.2 clc; clear; close; // Given data Rf= 12;// in k ohm Rs1= 12;// in k ohm Rs2= 2;// in k ohm Rs3= 3;// in k ohm Vi1= 9;// in volt Vi2= -3;// in volt Vi3= -1;// in volt Vout= -Rf*[Vi1/Rs1+Vi2/Rs2+Vi3/Rs3];// in volt disp(Vout,"Output voltage in volt");
0d13948d3a8b6f21a7c2c567d721e2f3f558c548
449d555969bfd7befe906877abab098c6e63a0e8
/2360/CH3/EX3.16/ex3_16.sce
5eb22df5e40d827f2ccb2728daa9530edd04281e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
ex3_16.sce
// Exa 3.16 format('v',7);clc;clear;close; // Given data Erms = 10;//r.m.s. range of the voltmeter in V Ep = sqrt(2)*Erms;// in V Eav = 0.6*Ep;// in V Eav = 9;// in V Eavoutput = (1/2)*Eav;// in V Edc = 0.45*Erms;// in V Idc = 1;// in mA Idc = Idc * 10^-3;// in A Rm = 200;// in W Rs = (Edc/Idc) - Rm;//required multiplier resistance in ohm Rs = Rs * 10^-3;// in k ohm disp(Rs,"The required multiplier resistance in kΩ is");
f273cacb2b0ffc329d0fbf1ab5e5da422522a8b5
449d555969bfd7befe906877abab098c6e63a0e8
/1739/CH7/EX7.2/Exa7_2.sce
a4c0de14b84822655056a557ec2ebc0f98e77b51
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
458
sce
Exa7_2.sce
//Exa 7.2 clc; clear; close; //Given data : lambda=0.8;//in um lambda=lambda*10^-6;//in meter deltaNEU=300;//in GHz deltaNEU=deltaNEU*10^9;//in Hz c=3*10^8;//speed of light in m/s n=3.6;//Refractive index(unitless) //Part (a) : //Formula : deltaNEU=c/(2*n*L) L=c/(2*n*deltaNEU);//in meter disp(L*10^6,"Length of optical cavity in micro meter :") //Part(b) : K=2*n*L/lambda;//No. of longitudinal modes disp(K,"No. of longitudinal modes : ");
bec5fc52a16dbef457e9086109a81f70de73ca7d
449d555969bfd7befe906877abab098c6e63a0e8
/61/CH10/EX10.11/ex10_11.sce
a018405e5b859d6cd721aa4b6097f7909d1c6bae
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
383
sce
ex10_11.sce
//ex10.11 C_bc=2.4*10^-12; //from previous question A_v=99; //from previous question R_C=2.2*10^3; R_L=2.2*10^3; R_c=R_C*R_L/(R_C+R_L); C_out_Miller=C_bc*(A_v+1)/A_v; f_c=1/(2*%pi*R_c*C_bc); //C_bc is almost equal to C_in_Miller disp(R_c,'equivalent resistance in ohms') disp(C_out_Miller,'equivalent capacitance in farads') disp(f_c,'critical frequency in hertz')
1cf9ee91517c5dc20691b670fb8a7e0f04799cc4
449d555969bfd7befe906877abab098c6e63a0e8
/1673/CH6/EX6.8/6_8.sce
a32cb31587ea93e2b023aadcf6ff717e616149f5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
369
sce
6_8.sce
//example 6.8 //trapezoidal method for integration //page 226 clc;clear;close; x=[7.47 7.48 7.49 7.0 7.51 7.52]; f_x=[1.93 1.95 1.98 2.01 2.03 2.06]; h=x(2)-x(1); l=length(x); area=0; for i=1:l if i==1|i==l then area=area+f_x(i) else area=area+2*f_x(i) end end area=area*(h/2); printf('area bounded by the curve is %f',area);
f324b2a7f4e1e3527dfa9da78b6fcd156db526cf
b983ae3ffa0de712cc7fc921e6662953dcdd20bd
/test_solve.sci
07ba0cfb27fc4667517b1d5a6f8ddf1c4c083f93
[]
no_license
amarHDev/TP-Calcul-numerique
84a7c6b938e88068617f42882724d61558e4113c
af55cefdb20ad0f429fc0af682f4dbdd0fd9207e
refs/heads/main
2023-01-28T15:43:36.536393
2020-12-03T02:35:19
2020-12-03T02:35:19
314,210,607
0
0
null
null
null
null
UTF-8
Scilab
false
false
619
sci
test_solve.sci
s = 100 rand("seed") n=10; U=rand(n,n);//Ici on génère une matrice carée avec des nombre aléatoires UL=tril(U);//On prend la partie triangulaire inferieur de la matrice A //On aura une matrice triangulaire inferieur UU=triu(U);//On va prend la partie triangulaire superieur de la matrice A //On aura une matrice triangulaire superieur xex=rand(n,1);//Vecteur solution b = A*xex;//Creation du second membre xl = lsolve(U,b) xu = usolve(U,b) //Calcul de l'erreur en avant fErrorB = norm(xex-x,2)/norm(xex,2) //Calcul de l'erreur arrière bErrorB = norm(b-U*x,2)/norm(b,2)
c72173125555b410931ace67c1982b1286c94315
e04f3a1f9e98fd043a65910a1d4e52bdfff0d6e4
/New LSTMAttn Model/.data/form-split/GOLD-TEST/tgk.tst
07dc1cce921e0de6e92e44c4947461b847ca090d
[]
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
409
tst
tgk.tst
рус рус N;NDEF;SG мор мор N;NDEF;SG нам нам N;NDEF;SG модар модар N;NDEF;SG сир сир N;NDEF;SG кишвар кишвар N;SG дил дил N;NDEF;SG бол бол N;NDEF;SG хар хар N;NDEF;SG зар зар N;NDEF;SG ранг ранг N;SG сол сол N;NDEF;SG мех мех N;NDEF;SG ватан وطن N;SG доктор доктор N;NDEF;SG дам дам N;NDEF;SG