blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
214
content_id
stringlengths
40
40
detected_licenses
listlengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
6
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
21 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
141k
586M
star_events_count
int64
0
30.4k
fork_events_count
int64
0
9.67k
gha_license_id
stringclasses
8 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
50 values
src_encoding
stringclasses
23 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
1 class
length_bytes
int64
5
10.4M
extension
stringclasses
29 values
filename
stringlengths
2
96
content
stringlengths
5
10.4M
a2d99a8e466be582f155fc978fe217e398008618
04236ab1161ec860ab3b1d0c3225fcbdc54923a3
/2012.d/3-remez.d/intervalle.sci
144afad1e3739b4cbb2a4fa801da86490c3b1f60
[ "MIT" ]
permissive
homeostasie/petits-pedestres
957695cdb8a7823ed2e3fe79f7b441410928cba9
557c810e26412bc34ebe063dcd904affe5a27855
refs/heads/master
2023-05-31T03:35:13.365160
2023-04-26T21:47:56
2023-04-26T21:47:56
163,504,589
2
0
null
null
null
null
ISO-8859-1
Scilab
false
false
718
sci
intervalle.sci
function [X_n,X_fin]=F_interval(inter,fin) //On peut utiliser la fonction linspace(a,n,b) X_n(1)=inter(1) X_fin(1)=inter(1) for i=1:1:n X_n(i+1)=inter(1)+i*(inter(2)-inter(1))/(n), end for i=1:1:fin X_fin(i+1)=inter(1)+i*(inter(2)-inter(1))/(fin), end endfunction function [X_n]=F_permut(X_n,val,place) // si place = 1 alors on incrémente a partir du premier et si place = -1 on incremente à partir du dernier Xtemp=X_n if place ==1 then X_n(1)=val for i1=1:1:length(X_n)-1 X_n(i1+1)=Xtemp(i1) end else X_n(length(X_n))=val for i1=1:1:length(X_n)-1 X_n(i1)=Xtemp(i1+1) end end endfunction
21e7766dd444211097cb05183442bcf13ef9a812
31cc146b7597c1571ad100fc4dd888898b1b4eb0
/algebra/compute_connectivity.sce
ae7da0f15f044eb342b67f69536649eedd98ce82
[]
no_license
rigid1980/gpp_scilab
a525ae046722e7ba52ebea6003ce712b51631ff6
fadb75dea26cf341e6dc60874efd88c016df4f3b
refs/heads/master
2016-09-11T08:37:44.538715
2014-03-26T08:37:35
2014-03-26T08:37:35
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,547
sce
compute_connectivity.sce
//// compute_connectivity // transform connectivity face to other form to assitant easy access from // face to vertex, or vise verse. // From face we can access vertex in each face. // From vvif we can access face given two vertex of an edge. // From nvif we can access the "next" vertex in a face and one vertex of // the face, "next" in the sense of ccw order. // From pvif we can access the "previous" vertex in a face and one vertex of // the face, "previous" in the sense of ccw order. // Basically, we implement halfedge structure in sparse matrix form. // //// Syntax // [vvif,nvif,pvif] = compute_connectivity(face) // //// Description // face: double array, nf x 3, connectivity of mesh // // vvif: sparse matrix, nv x nv, element (i,j) indicates the face in which // edge (i,j) lies in // nvif: sparse matrix, nf x nv, element (i,j) indicates next vertex of // vertex j in face i // pvif: sparse matrix, nf x nv, element (i,j) indicates previous vertex of // vertex j in face i // //// Contribution // Author : Wen Cheng Feng // Created: 2014/03/06 // Revised: 2014/03/23 by Wen, add doc // // Copyright 2014 Computational Geometry Group // Department of Mathematics, CUHK // http://www.lokminglui.com function [vvif,nvif,pvif] = compute_connectivity(face) fi = face(:,1); fj = face(:,2); fk = face(:,3); ff = (1:size(face,1))'; vvif = sparse([fi;fj;fk],[fj;fk;fi],[ff;ff;ff]); nvif = sparse([ff;ff;ff],[fi;fj;fk],[fj;fk;fi]); pvif = sparse([ff;ff;ff],[fj;fk;fi],[fi;fj;fk]);
98588394fa5cf13d40dd067d6f158e5ee13e632a
449d555969bfd7befe906877abab098c6e63a0e8
/1787/CH2/EX2.10/Exa2_10.sce
fc0ed244b344c0ed84cfe7343090615861d9bb8d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Exa2_10.sce
//Exa 2.10 clc; clear; close; //given data ni=1.5*10^10;//in cm^-3 e=1.6*10^-19;//in coulamb MUh=450;//in cm^2/V-s MUe=1300;//in cm^2/V-s SIGMAi=ni*e*(MUe+MUh);//in (ohm-cm)^-1 disp(SIGMAi,"Conductivity of silicon(intrinsic) in (ohm-cm)^-1 "); Na=10^18;//in cm^-1 SIGMAp=e*Na*MUh;//in (ohm-cm)^-1 disp(SIGMAp,"Conductivity of resulting P-type si semiconductor in (ohm-cm)^-1 : ");
d160994f19417058ccaa4b798baf1610aeb0a718
449d555969bfd7befe906877abab098c6e63a0e8
/3014/CH1/EX1.30/Ex1_30.sce
d1d38596d2d4e4356f7c58298ad0b127aa66362a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
283
sce
Ex1_30.sce
clc //Given that lambda = 680 // Wavelength in m g = 9.8 //Acceleration due to gravity printf("Example 1.30") v_g = 1/2*sqrt(g*lambda/(2*%pi)) // Calculation of group velocity printf("\n Group velocity of seawater waves is %f m/s.\n\n\n",v_g) // Answer in book is 16.29 m/s
a5d7269f399f170a361f98101bee7e11bb970c12
449d555969bfd7befe906877abab098c6e63a0e8
/1619/CH2/EX2.6.2/Example2_6_2.sce
0ad54d89217800f6748b4563904cf82d7852ab43
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
385
sce
Example2_6_2.sce
//Example 2.6.2 page 2.34 clc; clear; t= 0.1*10^-6; L= 10; B_opt= 1/(2*t); B_opt=B_opt/1000000; //converting from Hz to MHz printf("The maximum optical bandwidth is %d MHz.",B_opt); del= t/L; del=del/10^-6; //converting in us... printf("\n\nThe dispersion per unit length is %.2f us/Km",del); BLP= B_opt*L; printf("\n\nThe Bandwidth-Length product is %d MHz.Km",BLP);
a38b9b3c948e6b0d440b74709ef1af5ac094df55
948c6e0314c1822f872350cf63aaceb3d28fa497
/tests/test-prefer32-001.tst
cb10742c0da86705786fa9b1ddef60a14e1f612d
[ "Apache-2.0" ]
permissive
archiecobbs/bom
832eb815b40f4955e6551496bdd2598cb4f00442
0bab1a015bb5e53345e5422902e16f802bd4c07f
refs/heads/main
2023-08-25T05:43:51.470221
2021-11-04T16:12:49
2021-11-04T16:12:49
417,213,171
1
1
null
null
null
null
UTF-8
Scilab
false
false
78
tst
test-prefer32-001.tst
FLAGS='-d' STDIN='\xff\xfe\x00\x00' STDOUT='UTF-16LE\n' STDERR='' EXITVAL='0'
b49970b651d247d98fa943c7950845cdae7eacdd
449d555969bfd7befe906877abab098c6e63a0e8
/2792/CH8/EX8.9/Ex8_9.sce
007dbc66431333cd9e4eb5b40d3a0a1e1ed62d4d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,097
sce
Ex8_9.sce
clc VDS = .5 disp("VDS = "+string(VDS)+"V") //initializing value of drain bias voltage h=1*10^-4 disp("h = "+string(h)+"cm") //initializing value of MOSFET depth ID=4.03 disp("ID(sat) = "+string(ID)+"mA") //initializing value of saturated current F = VDS/h disp("The electric field in channel is ,F = VDS/h = "+string(h)+"V/cm")//calculation Vsi = 5*10^6 disp("Vsi = "+string(Vsi)+"cm/s") //initializing value of velocity of electrons at this field in Si VGaAs = 10^7 disp("VGaAs = "+string(VGaAs)+"cm/s") //initializing value of velocity of electrons at this field in GaAs Ttr1 = h/Vsi disp("The transit time of electrons in silicon is ,Ttr(si) = h/Vsi = "+string(Ttr1)+"s")//calculation Ttr2 = h/VGaAs disp("The transit time of electrons in GaAs is ,Ttr(GaAs) = h/VGaAs= "+string(Ttr2)+"s")//calculation fT1 = 1/(2*%pi*Ttr1) disp("The corresponding frequency of silicon is ,fT(Si) = 1/(2*%pi*Ttr(si))= "+string(fT1)+"Hz")//calculation fT2 = 1/(2*%pi*Ttr2) disp("The corresponding frequency of GaAs is ,fT(GaAs) = 1/(2*%pi*Ttr(GaAs))= "+string(fT2)+"Hz")//calculation
3cb4ac3cb6fe559cd04392c51b85c686f9a65d42
449d555969bfd7befe906877abab098c6e63a0e8
/851/CH6/EX6.4/Figure6_4.sce
8ce6fb9bd0f0326c594085f6e070c5a12c527ee1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,576
sce
Figure6_4.sce
//clear// //Caption:Power Spectra of different binary data formats //Figure 6.4: Power Spectal Densities of //Different Line Coding Techniques //[1].NRZ Polar Format [2].NRZ Bipolar format //[3].NRZ Unipolar format [4]. Manchester format //Page 241 close; clc; //[1]. NRZ Polar format a = input('Enter the Amplitude value:'); fb = input('Enter the bit rate:'); Tb = 1/fb; //bit duration f = 0:1/(100*Tb):2/Tb; for i = 1:length(f) Sxxf_NRZ_P(i) = (a^2)*Tb*(sinc_new(f(i)*Tb)^2); Sxxf_NRZ_BP(i) = (a^2)*Tb*((sinc_new(f(i)*Tb))^2)*((sin(%pi*f(i)*Tb))^2); if (i==1) Sxxf_NRZ_UP(i) = (a^2)*(Tb/4)*((sinc_new(f(i)*Tb))^2)+(a^2)/4; else Sxxf_NRZ_UP(i) = (a^2)*(Tb/4)*((sinc_new(f(i)*Tb))^2); end Sxxf_Manch(i) = (a^2)*Tb*(sinc_new(f(i)*Tb/2)^2)*(sin(%pi*f(i)*Tb/2)^2); end //Plotting a = gca(); plot2d(f,Sxxf_NRZ_P) poly1= a.children(1).children(1); poly1.thickness = 2; // the tickness of a curve. plot2d(f,Sxxf_NRZ_BP,2) poly1= a.children(1).children(1); poly1.thickness = 2; // the tickness of a curve. plot2d(f,Sxxf_NRZ_UP,5) poly1= a.children(1).children(1); poly1.thickness = 2; // the tickness of a curve. plot2d(f,Sxxf_Manch,9) poly1= a.children(1).children(1); poly1.thickness = 2; // the tickness of a curve. xlabel('f*Tb------->') ylabel('Sxx(f)------->') title('Power Spectral Densities of Different Line Codinig Techniques') xgrid(1) legend(['NRZ Polar Format','NRZ Bipolar format','NRZ Unipolar format','Manchester format']); //Result //Enter the Amplitude value:1 //Enter the bit rate:1
b95e8e12b3adedade07ad7b02141a424df2e9bf6
56b102153844197eb790583175d727ab01e5a792
/share/saturation.sci
819b0f8e69dc4738c54d7e9d46d97a5c64ac80e9
[]
no_license
wsbassel/coolingtower
e6b707875e29c4e03f4fb5f9b63346458b9c5d9d
4a8e1ecb2e077d7a19827dbccb46c4b663dcc3e1
refs/heads/master
2020-06-22T02:49:19.135479
2019-07-18T16:25:36
2019-07-18T16:25:36
197,614,871
0
0
null
null
null
null
UTF-8
Scilab
false
false
745
sci
saturation.sci
function [ p ] = saturation(t_k ) // estimation of saturation pressure of a given saturation temperature in degrees K tt = t_k; t = t_k - 273.15; f1 = -741.9242; f2 = -29.721; f3 = -11.55286; f4 = -0.8685635; f5 = 0.1094098; f6 = 0.439993; f7 = 0.2520658; f8 = 0.05218684; tc = 374.136; pc = 220.88; ftp = 1 / (100 * tt) * (tc - t) * (f1 + f2 * (0.65 - 0.01 * t) + f3 * (0.65 - 0.01 * t) ^ 2 ... + f4 * (0.65 - 0.01 * t) ^ 3 + f5 * (0.65 - 0.01 * t) ^ 4 + f6 * (0.65 - 0.01 * t) ^ 5 ... + f7 * (0.65 - 0.01 * t) ^ 6 + f8 * (0.65 - 0.01 * t) ^ 7); p = pc * exp(ftp); endfunction //comp(saturation ) //t_k=310 //[ p ] = saturation(t_k ) //disp (p)
c7817080f5b6644d107d231989136bf32a35a0a9
449d555969bfd7befe906877abab098c6e63a0e8
/911/CH8/EX8.2.a/ex_8_2_a.sce
23d2fa82da00c1f3420dc4115736b5a2dc6ef8e0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,062
sce
ex_8_2_a.sce
//example 8.2 (a)// clear //clears the screen// clc //clears the variable// close //R =input('Enter the value of the resistance R in Kohms : ')// //C =input('Enter the value of the Capacitance C in micro farads : ' ) ; sp =input ('Enter the spacing between two input pulses in microseconds: ' ); R =10; //taking give values// C =0.01; t= 693* R*C; //calculting time constant// tt=t*10; p =1; len =sp*60 -1; q =1; for j=1: len //plotin the graphs// lo = sp *10; f= modulo (j,lo); if f ==0 then inpu (j)=1; else inpu (j)=0; end inpu (1) =1; o(j)=2; end while q<len result (q) =0; q=q+1; end while p<len if inpu (p)==1 then for k=1: tt result (p+k) =1; end p=p+tt; else result (p) =0; p=p+1; end end subplot (2 ,1 ,1); //ploting bothe graphs in same window// plot (o); plot ( inpu ); xlabel ( ' time X10^􀀀7 seconds ' ); ylabel ( 'Magnitude ' ) ; title ( ' input pulses ' ); subplot (2 ,1 ,2); plot (o); plot ( result ); xlabel ( ' t ime X10^􀀀7 seconds' ); ylabel ( 'Magnitude' ); title ( ' Output ' );
25f45bd288d5d5d802367387c24741455e646a24
449d555969bfd7befe906877abab098c6e63a0e8
/1271/CH11/EX11.39/example11_39.sce
b8b0b133ba4ef30ee2c86ad132d9231db09ff3d7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
415
sce
example11_39.sce
clc // Given that k = 1.02 // kinetic energy of electron in Mev E_ = 0.51 // rest mass energy of electron in Mev c = 3e8 // velocity of photon in meter/sec // Sample Problem 39 on page no. 11.32 printf("\n # PROBLEM 39 # \n") printf(" Standard formula used \n") printf(" E = KE + m*c^2 \n m = m_0/((1-v^2/c^2)^1/2) \n") E = k + E_ v = c * sqrt(1 - (E_ / E)^2) printf("\n Speed of the electron is %e meter/sec.",v)
115b0b34cc7c910f8139b039e493f6ec524522c2
dc5a2fe4380e1453a12f15f5080b10f3ababb9de
/AutomationTools/bin/1.0/common/ATLAS/tools/txtfile/sh_addns_coax_2pc.tst
780e6929d6465a2137b6434cc115243fa4c34752
[]
no_license
jameshilliard/PythonCode
f72ad62bb8b8cafbc94cbe7c0d3065343fdf0f98
422543bc049f57a67d53ec0b89caef076297cdc5
refs/heads/master
2020-04-09T00:06:25.689609
2015-03-14T13:14:34
2015-03-14T13:14:34
32,722,067
3
0
null
2015-03-23T09:21:52
2015-03-23T09:21:52
null
UTF-8
Scilab
false
false
2,489
tst
sh_addns_coax_2pc.tst
-v G_USER=qaman -v G_CONFIG=1.0 -v G_TBTYPE=ads -v G_PROD_TYPE=bhr2 -v G_TST_TITLE="Advanced Dynamic DNS" -v G_HTTP_DIR=test/ -v G_FTP_DIR=/log/autotest -v G_TESTBED=tb42 -v G_FROMRCPT=hpeng@actiontec.com -v G_FTPUSR=root -v G_FTPPWD=@ctiontec123 -v U_USER=admin -v U_PWD=admin1 -v G_LIBVERSION=1.0 -v G_LOG=$SQAROOT/automation/logs -v U_COMMONLIB=$SQAROOT/lib/$G_LIBVERSION/common -v U_COMMONJSON=$SQAROOT/platform/1.0/verizon2/testcases/common/json -v U_COMMONBIN=$SQAROOT/bin/$G_LIBVERSION/common -v U_TBCFG=$SQAROOT/config/$G_LIBVERSION/testbed -v U_TBPROF=$SQAROOT/config/$G_LIBVERSION/common -v U_VERIWAVE=$SQAROOT/bin/1.0/veriwave/ -v U_MI424=$SQAROOT/bin/1.0/mi424wr/ -v U_VZBIN=$SQAROOT/bin/$G_LIBVERSION/vz_bin -v U_TESTPATH=$SQAROOT/platform/1.0/verizon/testcases/addns/json #this value used to setup dut configuration -v U_DEBUG=3 -v U_COAX=1 -v G_BUILDID=20.9.43 -v U_DUT=192.168.1.1 -v U_RUBYBIN=$SQAROOT/bin/$G_LIBVERSION/rbin #$G_PFVERSION=1.0 # Configuethe testbed. #-nc $SQAROOT/config/$G_CONFIG/common/testbedcfg_env.xml; -nc $SQAROOT/config/$G_CONFIG/common/testbedcfg.xml; -nc $SQAROOT/platform/1.0/verizon2/testcases/common/tcases/login_logout.xml -nc $SQAROOT/platform/1.0/verizon2/testcases/common/tcases/fw_upgrage_image.xml;pass=init -nc $SQAROOT/platform/1.0/verizon2/testcases/common/tcases/fw_upgrage_image.xml;pass=init -nc $SQAROOT/platform/1.0/verizon2/testcases/common/tcases/fw_upgrage_image.xml;fail=finish -label init -nc $SQAROOT/platform/1.0/verizon2/testcases/common/tcases/reset_dut_to_default.xml -nc $SQAROOT/platform/1.0/verizon2/testcases/common/tcases/tc_init_dut.xml;pass=next -nc $SQAROOT/platform/1.0/verizon2/testcases/common/tcases/tc_init_dut.xml;pass=next -nc $SQAROOT/platform/1.0/verizon2/testcases/common/tcases/tc_init_dut.xml;fail=finish -label next -nc $SQAROOT/platform/1.0/verizon2/testcases/common/tcases/tc_init_ping.xml;fail=finish -nc $SQAROOT/platform/1.0/verizon2/testcases/common/tcases/enable_tnet.xml #------------------------------ # Test cases #------------------------------ #-nc $SQAROOT/platform/1.0/verizon2/testcases/common/tcases/set_default_time.xml -tc $SQAROOT/platform/1.0/verizon/testcases/addns/tcases/tc_changewanip_coax_06019000010.xml -tc $SQAROOT/platform/1.0/verizon/testcases/addns/tcases/tc_changewanip_pppoe2_06019000012.xml -label finish -nc $SQAROOT/config/$G_CONFIG/common/finalresult.xml -nc $SQAROOT/config/$G_CONFIG/common/uploadlog.xml -nc $SQAROOT/config/$G_CONFIG/common/email.xml
3fe5554d25ae5f51659033934d110bdc7d185550
449d555969bfd7befe906877abab098c6e63a0e8
/491/CH11/EX11.4/11_4.sce
a17d9d7b429f4fa2a743d7804d84cc050bec8217
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,351
sce
11_4.sce
L = 25 ; // Length of coloum in ft P1 = 320 ; // Load in K P2 = 40 ; // Load in K E = 30000 ; // Modulus of elasticity of steel in Ksi P = 360 ; // Euivalent load e = 1.5 ; // Ecentricity of compressive load A = 24.1 ; // Area of the Cross section r = 6.05 ; // in inch c = 7.155 ; // in inch sy = 42 ;// Yeild stress of steel in Ksi smax = (P/A)*(1+(((e*c)/r^2)*sec((L/(2*r))*sqrt(P/(E*A))))); // Maximum compressive stress disp("ksi",smax,"The Maximum compressive stress in the column ") // Bisection method method to solve for yeilding function [x] = stress(a,b,f) N = 100; eps = 1e-5; if((f(a)*f(b))>0) then error('no root possible f(a)*f(b)>0'); abort; end; if(abs(f(a))<eps) then error('solution at a'); abort; end if(abs(f(b))<eps) then error('solution at b'); abort; end while(N>0) c = (a+b)/2 if(abs(f(c))<eps) then x = c ; x; return; end; if((f(a)*f(c))<0 ) then b = c ; else a = c ; end N = N-1; end error('no convergence'); abort; endfunction deff('[y]=p(x)',['y = x + (0.2939*x*sec(0.02916*sqrt(x))) - 1012 ']) x = stress(710,750,p); Py = x ; // Yeilding load in K n = Py/P; // Factor of safety against yeilding disp(n,"The factor of safety against yeilding is")
ea95d9a473f347f5fe598676d7569a3e9e86a1ed
b80969c9d72c732b0153d0de2b8fd28dc10d8a16
/Biologie/Site/sauvegarde/28.07.2016/www/Documents/simulation/initation_scilab/ex11.sci
2421d42d0bf2758b01cd65ae13597ab3e41a915f
[]
no_license
adamdepossylux/stem_cells
6a2596a0734e3604b570cfdaa1e6cb798d13d7b7
e1ffdf24a223fea3a3606a0bd262067edc81f5b9
refs/heads/master
2020-04-01T17:26:21.772875
2017-05-10T15:15:09
2017-05-10T15:15:09
61,795,551
0
0
null
null
null
null
UTF-8
Scilab
false
false
69
sci
ex11.sci
//1) A=eye(4,4) //2) B=zeros(2,3) //3) C=ones(3,4) //4) D=rand(3,4)
9fdbf98b2144cbe18d76d785bf7b99e486e6f016
1489f5f3f467ff75c3223c5c1defb60ccb55df3d
/tests/test_diff_3_g.tst
984b424d3c0f66e0665da57913abb533896d4bc4
[ "MIT" ]
permissive
ciyam/ciyam
8e078673340b43f04e7b0d6ac81740b6cf3d78d0
935df95387fb140487d2e0053fabf612b0d3f9e2
refs/heads/master
2023-08-31T11:03:25.835641
2023-08-31T04:31:22
2023-08-31T04:31:22
3,124,021
18
16
null
2017-01-28T16:22:57
2012-01-07T10:55:14
C++
UTF-8
Scilab
false
false
100
tst
test_diff_3_g.tst
<<<<<< (0) a >>>>>> (1) x0 x1 >>>>>> (2) ====== b <<<<<< (0) c >>>>>> (1) >>>>>> (2) y0 y1 ====== d
c8fdb3b2e05973e305f4af5f0747c13931404423
dfad3a0f74ab0fea536e4a29f0707e1412d8f608
/jimtap1.sce
bdd84c5bbfee53352d9dcf655bfdd13a91b06216
[]
no_license
ubc-vision-lab/Action-Tapper
4667427fb069e0afc0d70d6f47a3564eb7d49c12
d2a101d873417f87204f9505a24e31f285f21594
refs/heads/master
2021-09-10T06:42:57.246728
2017-12-07T21:39:40
2017-12-07T21:39:40
108,619,098
0
0
null
null
null
null
UTF-8
Scilab
false
false
15,968
sce
jimtap1.sce
##################################################### # AB & Expectancy a la Martens & Johnson(2005) # ##################################################### scenario = "Expectancy & AB"; scenario_type = trials; default_font = "Arial"; active_buttons = 25; button_codes = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25; #response_matching = simple_matching; randomize_trials = false; # 'true' randomizes order of trials no_logfile = true; # 'true' does NOT write log file to disk pcl_file = "jimtap1.pcl"; default_max_responses = 1; default_all_responses = false; #prevents unwanted key presses from affecting timing begin; picture {} default; picture { bitmap { filename = "fixation.bmp"; }; x=0; y=0;} fixation; array { picture { bitmap { filename = "dots0.bmp";}; x=0; y=0;}; picture { bitmap { filename = "dots1.bmp";}; x=0; y=0;}; picture { bitmap { filename = "dots2.bmp";}; x=0; y=0;}; picture { bitmap { filename = "dots3.bmp";}; x=0; y=0;}; picture { bitmap { filename = "dots4.bmp";}; x=0; y=0;}; picture { bitmap { filename = "dots5.bmp";}; x=0; y=0;}; picture { bitmap { filename = "dots6.bmp";}; x=0; y=0;}; picture { bitmap { filename = "dots7.bmp";}; x=0; y=0;}; picture { bitmap { filename = "dots8.bmp";}; x=0; y=0;}; picture { bitmap { filename = "dots9.bmp";}; x=0; y=0;}; } stimuli; array { picture { bitmap { filename = "plet2.bmp";}; x=0; y=0;}; picture { bitmap { filename = "plet3.bmp";}; x=0; y=0;}; picture { bitmap { filename = "plet4.bmp";}; x=0; y=0;}; picture { bitmap { filename = "plet5.bmp";}; x=0; y=0;}; picture { bitmap { filename = "plet6.bmp";}; x=0; y=0;}; picture { bitmap { filename = "plet7.bmp";}; x=0; y=0;}; picture { bitmap { filename = "plet8.bmp";}; x=0; y=0;}; picture { bitmap { filename = "plet9.bmp";}; x=0; y=0;}; picture { bitmap { filename = "plet10.bmp";}; x=0; y=0;}; picture { bitmap { filename = "plet11.bmp";}; x=0; y=0;}; } pseudo; array { LOOP $i 40; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = false; }; ENDLOOP; } postt1; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = false; } rsvp; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = false; } t1; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_1; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_2; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_3; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_4; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_5; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_6; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_7; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_8; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_9; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_10; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_11; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_12; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_13; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_14; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_15; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_16; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_17; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_18; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_19; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_20; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_21; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_22; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_23; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_24; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_25; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_26; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_27; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_28; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_29; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_30; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_31; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_32; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_33; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_34; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_35; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_36; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_37; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_38; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_39; text { caption = "A"; font_size = 28; font_color = 167,167,167; preload = true; } postt1_40; text { caption = "A"; font_size = 28; font_color = 0,0,0; preload = true; } isi_text; trial { trial_duration = forever; trial_type = correct_response; stimulus_event { picture fixation; target_button=22; code="Fixation"; } fix_event; } fix_trial; trial { stimulus_event { picture fixation; target_button=3; duration=249; code="Fixation"; } fix2_event; } fix2_trial; trial { stimulus_event { picture { text rsvp; x = 0; y = 0; }; duration=29; code="RSVP"; } rsvpdig_event; } rsvpdig_trial; trial { # trial_type=first_response; trial_duration=2500; # all_responses=true; picture {text postt1_1; x = 0; y = 0;}; time=0; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_2; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_3; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_4; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_5; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_6; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_7; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_8; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_9; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_10; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_11; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_12; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_13; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_14; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_15; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_16; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_17; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_18; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_19; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_20; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_21; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_22; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_23; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_24; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_25; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_26; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_27; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_28; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_29; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_30; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_31; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_32; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_33; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_34; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_35; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_36; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_37; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_38; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_39; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; picture {text postt1_40; x = 0; y = 0;}; deltat=39; picture {text isi_text; x = 0; y = 0;}; deltat=9; } postt1_trial; trial { stimulus_event { picture default; duration=29; code="RSVP"; } rsvpdot_event; } rsvpdot_trial; trial { trial_duration = forever; trial_type = correct_response; stimulus_event { picture { text { caption = "Block is done!\n\nTake a break!\n\nPress [space] key to start next block\n"; font_size = 22; } block_text; x=0; y=0; }; target_button=22; code="INTER-BLOCK INTERVAL"; } block_event; } block_trial; trial { stimulus_event { picture default; duration=69; code=""; } isi_event; } isi_trial; trial { stimulus_event { picture { text t1; x = 0; y = 0; }; duration=29; code="T1"; } t1_event; } t1_trial; trial { stimulus_event { picture { text { caption = "Too slow!"; font_size=20; }; x = 0; y = 0; }; duration=499; code="T1"; } tooslow_event; } tooslow_trial; trial { stimulus_event { picture { text { caption = "Didn't tap!"; font_size=20; }; x = 0; y = 0; }; duration=499; code="T1"; } notap_event; } notap_trial; trial { stimulus_event { picture { text { caption = "Too fast!"; font_size=20; }; x = 0; y = 0; }; duration=499; code="T1"; } toofast_event; } toofast_trial; trial { stimulus_event { picture { text { caption = "Good tap!"; font_size=20; }; x = 0; y = 0; }; duration=499; code="T1"; } justright_event; } justright_trial; trial { trial_duration = forever; trial_type = first_response; stimulus_event { picture { text { caption = "Letter?"; font_size=20; }; x = 0; y = 0; }; target_button=22; code="T2 Response"; } t2resp_event; } t2resp_trial; # This part is necessary for entering subject number trial { stimulus_event { picture { text { caption = "Type in your experiment number (two digits)...\n"; font_size = 16; } number_text; x=0; y=0; }; } number_event; } number_trial; # This displays at the end of the experiment trial { trial_duration = forever; trial_type = correct_response; stimulus_event { picture { text { caption = "Experiment Complete!\nTHANK YOU!\nPlease get the experimenter."; font_size=18; }; x = 0; y = -200; }; target_button=25; code="End"; } done_event; } done_trial; # This displays instructions trial { trial_duration = forever; trial_type = correct_response; stimulus_event { picture { text { caption = "INSTRUCTIONS\n\nEvery trial in this experiment will begin with the presentation of a fixation at the centre of the screen.\nWhen you are looking at fixation, press the spacebar to begin.\nYou will see a stream of 6-12 digits at the centre of the screen that you can ignore and then three asterisks.\nOnce the asterisks appear, you should press the spacebar within the next second.\nAcross the different trials, try to tap the spacebar at a variety of evenly-spaced intervals.\nAfter the asterisks, several more digits will be presented along with one letter that can be anything except for I, O, Q, P or Z.\nYou will then receive feedback about the timing of your tap and a prompt to report the letter you saw.\nYou can enter the letter as slowly as you like - concentrate on accuracy rather than speed.\nOnce you have typed the letter, the fixation will re-appear and you can start the next trial!\n\nPress the spacebar to start the experiment"; font_size=18; }; x = 0; y = 200; }; target_button=22; code="Instructions"; } inst_event; } inst_trial;
a75cc02d9d7e116ac888c7f46ac23576e00673cd
8627886261b3eddf8440c0b470cd9ee25c762d97
/laba9d.sce
be46a332bf74081c05e3c3ff6849803fff0ce9f8
[]
no_license
timurzotov/pvis
ba75cf86fae91b6adc8dd3fe9cd2672eea561cca
d60e8e241d6ce0ad3a9b2a75c8771f92a9b039ba
refs/heads/master
2020-09-08T07:59:31.719500
2019-11-11T21:14:13
2019-11-11T21:14:13
221,070,925
0
0
null
null
null
null
UTF-8
Scilab
false
false
74
sce
laba9d.sce
//9d clf [x,y]=meshgrid(-2:0.2:2, -3:.2:3); z=x.^2+y.*sin(x); surf(x,y,z)
49842eff17395548606f601fcc21da8a8d1fb8c8
449d555969bfd7befe906877abab098c6e63a0e8
/1019/CH5/EX5.7/Example_5_7.sce
4a82bb5ca2e934dd9be229e4168ea56f6b19cf9d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
478
sce
Example_5_7.sce
//Example 5.7 clear; clc; //Given P1=2.15;//vapour pressure of water in mm of Hg P2=1.95;//vapour pressure of ice in mm of Hg R=8.314;//gas constant in J K^-1 mol^-1 T=263//temperature in K //To determine the free energy change delG delG=R*T*log(P2/P1);//gibbs free energy in J mol^-1 mprintf('(i) Free energy change = 0 J mol^-1'); mprintf('\n (ii) Free energy change = %f J mol^-1',delG); mprintf('\n (iii) Total Free energy change = %f J mol^-1',delG); //end
84fa2a1cb3e43f8925d4511bf7968c84337500a1
16152b808456a98fcb2d4303d5622c225109bcda
/gaussian.sce
f31b6f7c5e66629e7f95d06f4db2b8890e3a1614
[]
no_license
conradolega/131
b1bcdc7097b661dcc0c503118ec199adffaabfc9
fa0773433f66f485bf96a8adee35f00a1207861a
refs/heads/master
2016-09-05T13:42:37.104466
2013-10-11T14:30:59
2013-10-11T14:30:59
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
859
sce
gaussian.sce
function X = gaussianfull(A) X = A n = size(X, 'r') for col = 1:n if col <> n then [v, pos] = max(abs(X(col:$, col:n))) X([col, pos(1)+col-1], :) = X([pos(1)+col-1, col], :) X(:, [col, pos(2)+col-1]) = X(:, [pos(2)+col-1, col]) end if X(col, col) <> 0 then X(col, col:$) = X(col, col:$) / X(col, col) for row = col+1:n X(row, col:$) = X(row, col:$) - (X(row, col) * X(col, col:$)) end end X = clean(X) end endfunction function X = gaussianpartial(A) X = A n = size(X, 'r') for col = 1:n if col <> n then [v, pos] = max(abs(X(col:$, col:n)), 'r') X([col, pos(1)+col-1], :) = X([pos(1)+col-1, col], :) end if X(col, col) <> 0 then X(col, col:$) = X(col, col:$) / X(col, col) for row = col+1:n X(row, col:$) = X(row, col:$) - (X(row, col) * X(col, col:$)) end end X = clean(X) end endfunction
1e9d5cceaca5cb25b6eb953ced4218bf1b5ed662
2eac84edf941c64588fef76f10d02309aabcb2fb
/System/Scilab/Scripts/createLibrary.sci
9333427d876357b4d2f2462f1aae90b86fd15848
[ "BSD-3-Clause" ]
permissive
AlexisTM/X2C
fdd93bd33b931ea448ba516f5e3f9af6a5149a6a
31f39b598afe271a7fd46ef1ee9e06c410b1120c
refs/heads/master
2021-08-07T04:26:24.391617
2017-11-07T14:34:33
2017-11-07T14:34:33
109,844,123
1
0
null
null
null
null
UTF-8
Scilab
false
false
5,851
sci
createLibrary.sci
// Copyright (c) 2017, Linz Center of Mechatronics GmbH (LCM) http://www.lcm.at/ // All rights reserved. // // This file is licensed according to the BSD 3-clause license as follows: // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // * Neither the name of the "Linz Center of Mechatronics GmbH" and "LCM" nor // the names of its contributors may be used to endorse or promote products // derived from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. // IN NO EVENT SHALL "Linz Center of Mechatronics GmbH" BE LIABLE FOR ANY // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // This file is part of X2C. http://www.mechatronic-simulation.org/ // $LastChangedRevision: 1111 $ // $LastChangedDate:: 2017-02-28 14:18:07 +0100#$ // // Function to create and build all necessary files for a X2C library // Parameters: // libName - Library name // varargin - (optional) project root directory for external blocks function [] = createLibrary(libName, varargin) funcprot(0); // import necessary java classes jimport at.lcm.x2c.core.structure.ControlBlock; jimport at.lcm.x2c.core.structure.Block; jimport at.lcm.x2c.utils.LibraryUtils; // get current directory curDir = pwd(); // get file separator fs = filesep(); // get system architecture arch = getArchitecture(); // get XML file names if length(varargin) == 0 then // internal library xmlPath = jinvoke(LibraryUtils, "getXmlDirectory", libName); elseif length(varargin) == 1 then // external library libRoot = jinvoke(LibraryUtils, "getLibraryRootDirectory", varargin(1)) libRoot = jinvoke(libRoot, "toString"); xmlPath = jinvoke(LibraryUtils, "getXmlDirectory", libName, libRoot); else error("Invalid number of input arguments"); end // get all XML files xmlDir = jinvoke(xmlPath, "toString"); xmlFiles = dir(xmlDir + "*.xml"); xmlFiles = xmlFiles(2)'; xmlList = []; // go through XML list for curXML = xmlFiles temp = part(curXML, $-3:$) convstr(temp,"l") if ~strcmp(temp, ".xml") then // add file name with *.xml ending xmlList = [xmlList, curXML]; end end // get/create scilab directory scilabDir = strsubst(xmlDir, ["XML" + fs], ["Scilab" + fs]); if ~isdir(scilabDir) then mkdir(scilabDir) end // go through all blocks in library for curXml = xmlList // read block XML file x2cBlock = jinvoke(Block, "loadBlockXML", curXml); blockType = jinvoke(jinvoke(x2cBlock, "getClass"), "toString"); // check block type if ~strcmp(blockType, "class at.lcm.x2c.core.structure.ControlBlock") then // normal Block blockObj = jnewInstance(ControlBlock); jinvoke(blockObj, "readBlockXml", curXml); if length(varargin) == 0 then // internal library // create x2c_<block>.sci file createIFunction(libName, blockObj); // create x2c_<block>_<impl>_C.c files createCFunction(libName, blockObj); // create tex and html files //createBlockDocu(libName, blockObj); NOTE: files should already exist else // external library // create x2c_<block>.sci file createIFunction(libName, blockObj, varargin(1)); // create x2c_<block>_<impl>_C.c files createCFunction(libName, blockObj, varargin(1)); // create tex and html files createBlockDocu(libName, blockObj, varargin(1)); end else // IO-Block // do nothing for IO-Blocks end end // create some extra stuff for General library if ~strcmp(libName, "General") then // create additional interface functions (Inport, Outport) createIFunctionIO(); // create additional computational functions (Inport, Outport) createCFunctionIO(); end if length(varargin) == 0 then // internal library // create starter.sce file createLibraryStarter(libName); // create builder_<arch>.sce file createLibraryBuilder(libName); else // external library // create starter.sce file createLibraryStarter(libName, varargin(1)); // create builder_<arch>.sce file createLibraryBuilder(libName, varargin(1)); end // compile library chdir(scilabDir) exec([scilabDir + "builder_" + arch + ".sce"], -1); chdir(curDir) endfunction
61c5283032289f455ff4035b701a661ce68cf1f8
139d4a83f28a14dc04c48d99a492bec7abcc3229
/lab3_v8/2_tangent.sce
f65cf83b9bd81edd96fa67afcbbc721b614f349f
[ "MIT" ]
permissive
s-kostyuk/labs_alg
0f78d0a5df7b94f9190bc3b45a077fb3e68e74fb
320902e94d9bfde9d7a13a427b315605929dec17
refs/heads/master
2021-01-10T03:54:40.483782
2015-12-03T22:52:39
2015-12-03T22:56:46
44,764,651
0
2
null
2015-12-01T15:07:01
2015-10-22T18:20:28
Scilab
UTF-8
Scilab
false
false
791
sce
2_tangent.sce
function nextx=TangentGetNextX( x, f ) firstDer = numderivative( f, x ); nextx = x - f( x ) / firstDer; endfunction function x=TangentSolve( f, a, b, density ) [ firstDerA, secondDerA ] = numderivative( f, a ); [ firstDerB, secondDerB ] = numderivative( f, b ); if( ( f( a ) * secondDerA ) > 0 ) then x = a; elseif( ( f( b ) * secondDerB ) > 0 ) then x = b; else disp( "Something wrong with sign of function and its second derivative" ) end it = 1; while %T xprev = x; x = TangentGetNextX( x, f ); if( abs( xprev - x ) < density ) break; end it = it + 1; end mprintf( "\nSolved on iteration number %d\n", it ) endfunction
e0afed1a2836600c45d124065c2c27ab66c4522a
676ffceabdfe022b6381807def2ea401302430ac
/solvers/ADRSolver/Tests/CylindricalHelmholtz.tst
a42188e6a9a373f9c9b180115e290eb081a1411e
[ "MIT" ]
permissive
mathLab/ITHACA-SEM
3adf7a49567040398d758f4ee258276fee80065e
065a269e3f18f2fc9d9f4abd9d47abba14d0933b
refs/heads/master
2022-07-06T23:42:51.869689
2022-06-21T13:27:18
2022-06-21T13:27:18
136,485,665
10
5
MIT
2019-05-15T08:31:40
2018-06-07T14:01:54
Makefile
UTF-8
Scilab
false
false
603
tst
CylindricalHelmholtz.tst
<?xml version="1.0" encoding="utf-8"?> <test> <description> 2D Helmholtz with cylindrical periodicity P=5 </description> <executable>ADRSolver</executable> <parameters>CylindricalHelmholtz.xml</parameters> <files> <file description="Session File">CylindricalHelmholtz.xml</file> </files> <metrics> <metric type="L2" id="1"> <value variable="u" tolerance="1e-10"> 4.95977e-06 </value> </metric> <metric type="Linf" id="2"> <value variable="u" tolerance="1e-10"> 0.000144863 </value> </metric> </metrics> </test>
d0dd65557235c18aadc82930f87668c1230c1603
f14f2861ee7e97cb37f69216b207bf431873cfb5
/SciLab/raices.sce
195e27cb9dab0c74c6662b8887e6f34500526da3
[]
no_license
osfprieto/Personal
f97307f1014569baa9a10865c255072b8b949c11
f0353c25718f29feebfb26da2003408e448a0aeb
refs/heads/master
2022-09-20T13:11:19.242327
2022-09-12T19:53:37
2022-09-12T19:53:37
14,189,787
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,249
sce
raices.sce
//osfprieto@gmail.com //p = poly ([376 242.2 -34.8 9.9], "t", "coeff") //p = poly ([376 242.2 -34.8 9.9], "t", "c") //p = poly ([376 242.2 -34.8 9.9], "t", "roots") //p = poly ([376 242.2 -34.8 9.9], "t", "r") //help poly //roots(p) function ans = f(a) ans = 9.9*a^3 -34.8*a^2 +242.2*a + 376 - 1000 endfunction function ans = p(y) ans = 29.7*y^2 -69.6*y + 242 endfunction function [ans, iteraciones] = biseccion(iteraciones_maximas, error_aceptado, a, b, funcion_usar) c = (a+b)/2 i = 0 while(abs(funcion_usar(c))>error_aceptado & i<iteraciones_maximas) if(funcion_usar(a)<0 & funcion_usar(c)<0) then a = c elseif(funcion_usar(a)>0 & funcion_usar(c)>0) a = c else b = c end i = i+1 c = (a+b)/2 end ans = c iteraciones = i endfunction function [ans, iteraciones] = posicion_falsa(iteraciones_maximas, error_aceptado, a, b, funcion_usar) if (a>b) then temp = a a = b b = temp end c = b-(funcion_usar(b)*(b-a))/(funcion_usar(b)-funcion_usar(a)) i = 0 while(abs(funcion_usar(c))>error_aceptado & i<iteraciones_maximas) if(funcion_usar(a)<0 & funcion_usar(c)<0) then a = c elseif(funcion_usar(a)>0 & funcion_usar(c)>0) a = c else b = c end i = i+1 c = b-(funcion_usar(b)*(b-a))/(funcion_usar(b)-funcion_usar(a)) end ans = c iteraciones = i endfunction function [ans, iteraciones] = newton_raphson(iteraciones_maximas, error_aceptado, x0, funcion_usar, derivada) i = 0 xi = x0 while(abs(funcion_usar(xi))>error_aceptado & i<iteraciones_maximas) xi = xi - funcion_usar(xi)/derivada(xi) i = i + 1 end ans = xi iteraciones = i endfunction function [ans, iteraciones] = secante(iteraciones_maximas, error_aceptado, x0, x1, funcion_usar) i = 0 xi_2 = x0 xi_1 = x1 xi = xi_1- (funcion_usar(xi_1)*(xi_1-xi_2))/(funcion_usar(xi_1)-funcion_usar(xi_2)) while(abs(funcion_usar(xi))>error_aceptado & i<iteraciones_maximas) xi = xi_1- (funcion_usar(xi_1)*(xi_1-xi_2))/(funcion_usar(xi_1)-funcion_usar(xi_2)) i = i + 1 end ans = xi iteraciones = i endfunction
26298fe1f96152a33802644ebad616b55f8bc129
449d555969bfd7befe906877abab098c6e63a0e8
/2411/CH1/EX1.11/Ex1_11.sce
a639dfba74247ed9f62b173d785de15fc5972b1c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
935
sce
Ex1_11.sce
// Scilab Code Ex1.11: Page-14 (2008) clc; clear; v1 = 20; // Velocity of first piece, m/s v2 = 30; // Velocity of second piece, m/s // From conservation of momentum, in x-direction // m*v1*cosd(0)+m*v2*cosd(45)+m*v3*cosd(theta) = 0, solving for v3*cosd(theta) v3_cos_theta = -(v1*cosd(0)+v2*cosd(45)); // x-component of v3 along theta, m/s // From conservation of momentum, in y-direction // m*v1*sind(0)-m*v2*sind(45)+m*v3*sind(theta) = 0, solving for v3*sind(theta) v3_sin_theta = -(v1*sind(0)-v2*sind(45)); // y-component of v3 along theta, m/s theta = atand(v3_sin_theta/v3_cos_theta); // Direction of velocity of third piece, degree v3 = -(v1*cosd(0)+v2*cosd(45))/cosd(theta+180); // Velocity of third piece, m/s printf("\nThe velocity of third piece is %4.1f m/s towards %d degree north of west", v3, ceil(theta+180)); // Result // The velocity of third piece is 46.4 m/s towards 153 degree north of west
ba1c6da3f99b4bd5eb8ab29a807ebb22e41291e9
449d555969bfd7befe906877abab098c6e63a0e8
/2168/CH25/EX25.6/Chapter25_example6.sce
331ef6a7524273a7b0b30ac9159060264ec6d6c7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
920
sce
Chapter25_example6.sce
clc clear //Input data p1=5.62//Pressure of gas entering the turbine in kg/cm^2 T1=1000+273//Temperature of gas entering the turbine in K p2=1.124//Pressure of gas leaving the turbine in kg/cm^2. In textbook it is given as 1.24 instead of 1.124 n1=0.8//Isotropic efficiency of the turbine in ratio n=1.36//Adiabatic index Cp=0.25//Specific heat at constant pressure in kJ/kg.K //Calculations T2=(T1/(p1/p2)^((n-1)/n))//Temperature at the end of adiabatic expansion in K dt=(T1-T2)//Isentropic temperature drop in K adt=(n1*dt)//Actual temperature drop in K T2i=(T1-adt)//Temperature at the end of actual expansion in K W=(Cp*(T1-T2i))//Workdone per kg of gas in kcal q=(W*427)/4500//H.P developed per kg of gas per minute t2i=(T2i-273)//Exhaust gas temperature in degree C //Output printf('(1) H.P developed per kg of gas per min is %3.2f \n (2) Exhaust gas temperature is %3.1f degree C',q,t2i)
24e95ca0218421d495192d9688d0be078b991208
449d555969bfd7befe906877abab098c6e63a0e8
/1571/CH11/EX11.3/Chapter11_Example3.sce
a6ca170c77a799ea950469476441be61fd3f36e7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
445
sce
Chapter11_Example3.sce
clc clear //INPUT i=1.18;//current in amperes e=20;//potential difference across its ends in volts j=4.2;//joules constant in joule/cal a=2*10^4;//area of the slab in sq.cm t=5;//thickness of the plate in cm t1=12.5;//temperature at hot side in K t2=0;//temperature at cold side in k //CALCULATIONS k=e*i*t/(j*a*(t1-t2));//thermal conductivity in cgs unit //OUTPUT mprintf('thermal conductivity of slab is %3.5f cgs unit',k)
13e5306fffbf2ab580a7d1442f8659d4a97b7f1b
449d555969bfd7befe906877abab098c6e63a0e8
/3825/CH3/EX3.15/Ex3_15.sce
1dc4590501df3c667a6b69ea5fed4bb1a7571c42
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
692
sce
Ex3_15.sce
clc P1=24 P2=26 T1=300 T2=400 v1=0.10336 //at P1 and T1 v2=0.09483 //at P2 and T1 v3=0.12522 //at P1 and T2 v4=0.11526 //at P2 and T2 h1=3013.4 h2=3007.4 h3=3242.3 h4=3239 P3=25 h5=h1+(((h2-h1)*(P3-P1))/(P2-P1))//interpolation at T=300 v5=v1+(((v2-v1)*(P3-P1))/(P2-P1))//interpolation at T=300 h6=h3+(((h4-h3)*(P3-P1))/(P2-P1))//interpolation at T=400 v6=v3+(((v4-v3)*(P3-P1))/(P2-P1))//interpolation at T=400 T3=350 h7=h5+(((h6-h5)*(T3-T1))/(T2-T1))//interpolation at T=350 v7=v5+(((v6-v5)*(T3-T1))/(T2-T1))//interpolation at T=350 mprintf("v=%fmetre-cube/kg\n",v7)//ans may vary due to roundoff error mprintf("h=%fkJ/kg\n",h7)//ans may vary due to roundoff error
8271b362bd158ba1234ca042a8ba306fb1c93cb5
59b742e36fbe9d77cb51ec949c6625f665133d2b
/Resultados/results_LocGlo_10/results/10/l20-2/result1s0.tst
42a61e9e74b2187a184e09c0652443fea311b700
[]
no_license
Tiburtzio/TFG
3132fd045de3a0e911e2c9e23e9c46e1075a3274
864ce4dd00b7f8fe90eafa65b11d799c5907177e
refs/heads/master
2023-01-03T12:44:56.269655
2020-10-24T18:37:02
2020-10-24T18:37:02
275,638,403
0
0
null
null
null
null
UTF-8
Scilab
false
false
502
tst
result1s0.tst
@relation unknow @attribute T3resin real[65.0,144.0] @attribute thyroxin real[0.5,25.3] @attribute triiodothyronine real[0.2,10.0] @attribute thyroidstimulating real[0.1,56.4] @attribute TSH_value real[-0.7,56.3] @attribute class{3,2,1} @inputs T3resin,thyroxin,triiodothyronine,thyroidstimulating,TSH_value @outputs class @data 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 2 2 2 2 2 2 2 2 2 2 2 1 2 1 3 1 3 3 3 3 3 3 3 3 3 3
848c3a8a430f9795df1c466d0c9d67ddfac088cf
449d555969bfd7befe906877abab098c6e63a0e8
/2699/CH10/EX10.9/Ex10_9.sce
9f77b330186c90e4e3ee60a0a5e64cb8276bba23
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
485
sce
Ex10_9.sce
//EX10_9 PG-10.40 clc R1=1e3; Rf=10e3;//feedback resistance A=1+Rf/R1;//gain of a non-inverting amplifier printf("Gain is %.0f\n",A) disp("For Vin =0.5V ") Vin=0.5;//input voltage Vo=A*Vin; printf(" Output voltage Vo=%.1f V \n",Vo) disp("For Vin =-3V ") Vin=-3;//input voltage Vo=A*Vin; printf(" Output voltage Vo=%.1f V \n",Vo) printf("\n but Vo=-33V is not possible. Output will saturate at -12V \n") printf(" And the remaining portion will be clipped from output.")
519aa4fc7003ae7eadc3d2f666cad686059ab7bf
449d555969bfd7befe906877abab098c6e63a0e8
/2084/CH2/EX2.18w/2_18w.sce
9f571aa0c924ff8d979c2d44a6187069aba2fb4b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
575
sce
2_18w.sce
//developed in windows XP operating system 32bit //platform Scilab 5.4.1 clc;clear; //example 2.18w //calculation of value //given data x=21.6003; y=234; z=2732.10; a=13; //calculation //since a has least significant figures that is 2, we have to sort the other numerics with the same number of significant figures i.e. 2 x=22; y=234; z=2732; a=13; temp=(x+y+z)*13 //results into temp=38844. Again we need to consider only 2 significant figures, hence ntemp=39000 printf('value is %d,considering only 2 significant figures value is %d',temp,ntemp);
496199678da3edafebcf3cbb61efc3dd806bfea2
1d7cb1dbfad2558a4145c06cbe3f5fa3fc6d2c08
/Scilab/MarvellBitConv.sce
634d3422988b9f5c5b0c87e3aca19e30ffd8b584
[]
no_license
lrayzman/SI-Scripts
5b5f6a8e4ae19ccff53b8dab7b5773e0acde710d
9ab161c6deff2a27c9da906e37aa68964fabb036
refs/heads/master
2020-09-25T16:23:23.389526
2020-02-09T02:13:46
2020-02-09T02:13:46
66,975,754
0
0
null
null
null
null
UTF-8
Scilab
false
false
3,424
sce
MarvellBitConv.sce
clear; //Enter Marvell values txt=['Default';'Overwrite';]; readback=x_mdialog('Enter values',txt,['';'']); default=readback(1); overwrite=readback(2); //Convert default to binary default_bin=[]; for i=0:7, index=i+1; c=part(default,index); select c case '0' then default_bin(i*4+1:i*4+4)=['0','0','0','0']; case '1' then default_bin(i*4+1:i*4+4)=['0','0','0','1']; case '2' then default_bin(i*4+1:i*4+4)=['0','0','1','0']; case '3' then default_bin(i*4+1:i*4+4)=['0','0','1','1']; case '4' then default_bin(i*4+1:i*4+4)=['0','1','0','0']; case '5' then default_bin(i*4+1:i*4+4)=['0','1','0','1']; case '6' then default_bin(i*4+1:i*4+4)=['0','1','1','0']; case '7' then default_bin(i*4+1:i*4+4)=['0','1','1','1']; case '8' then default_bin(i*4+1:i*4+4)=['1','0','0','0']; case '9' then default_bin(i*4+1:i*4+4)=['1','0','0','1']; case 'A' then default_bin(i*4+1:i*4+4)=['1','0','1','0']; case 'B' then default_bin(i*4+1:i*4+4)=['1','0','1','1']; case 'C' then default_bin(i*4+1:i*4+4)=['1','1','0','0']; case 'D' then default_bin(i*4+1:i*4+4)=['1','1','0','1']; case 'E' then default_bin(i*4+1:i*4+4)=['1','1','1','0']; case 'F' then default_bin(i*4+1:i*4+4)=['1','1','1','1']; end end if size(default_bin,2) ~= 32 then x_message_modeless("Error: Invalid number of Default value characters") abort; end //Cleanup overwrite length_overwrite_len=length(overwrite); fixed_overwrite=[]; fixed_overwrite_index=1; for i=1:length_overwrite_len, c=part(overwrite,i); if (c=='x' | c=='0' | c=='1') then fixed_overwrite_bin(fixed_overwrite_index)=c; fixed_overwrite_index=fixed_overwrite_index+1; end end fixed_overwrite_bin=fixed_overwrite_bin'; //pause //size(fixed_overwrite_bin,2) if size(fixed_overwrite_bin,2) ~= 32 then x_message_modeless("Error: Invalid number of Overwrite value characters") abort; end final_value=[]; //Merge the two values for i=1:32, if (fixed_overwrite_bin(i)=='x') then final_value(i)=default_bin(i); else final_value(i)=fixed_overwrite_bin(i); end end final_value=final_value'; final_value_hex=[]; //Convert to hex for i=0:7, // c=part(default,index); select final_value(i*4+1:i*4+4) case ['0','0','0','0'] then final_value_hex(i+1)='0'; case ['0','0','0','1'] then final_value_hex(i+1)='1'; case ['0','0','1','0'] then final_value_hex(i+1)='2'; case ['0','0','1','1'] then final_value_hex(i+1)='3'; case ['0','1','0','0'] then final_value_hex(i+1)='4'; case ['0','1','0','1'] then final_value_hex(i+1)='5'; case ['0','1','1','0'] then final_value_hex(i+1)='6'; case ['0','1','1','1'] then final_value_hex(i+1)='7'; case ['1','0','0','0'] then final_value_hex(i+1)='8'; case ['1','0','0','1'] then final_value_hex(i+1)='9'; case ['1','0','1','0'] then final_value_hex(i+1)='A'; case ['1','0','1','1'] then final_value_hex(i+1)='B'; case ['1','1','0','0'] then final_value_hex(i+1)='C'; case ['1','1','0','1'] then final_value_hex(i+1)='D'; case ['1','1','1','0'] then final_value_hex(i+1)='E'; case ['1','1','1','1'] then final_value_hex(i+1)='F'; end end x_message_modeless(strcat(final_value_hex));
eb456e6686f5692e383dfb61b361006b669d4b84
449d555969bfd7befe906877abab098c6e63a0e8
/1979/CH4/EX4.13/Ex4_13.sce
260c41fb0caa73dc5adbf3d451fc027c212b2510
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
709
sce
Ex4_13.sce
//chapter-4 page 150 example 4.13 //============================================================================== clc; clear; //For a rectangular waveguide in TE10 mode a=6;//Length of Rectangular Waveguide in cm b=4;//Width of Rectangular Waveguide in cm c=3*10^10;//Velocity of Light in cm/sec x=4.55;//distance between maximum and minimum in cm //CALCULATIONS wc=2*a;//Cutoff wavelength for a TE10 mode in cms wg=4*x;//Guide Wavelength in cm w0=(wg/sqrt(1+(wg/wc)^2));////Free space wavelength in cm f=(c/w0)/10^9;//Frequency of the wave in GHz //OUTPUT mprintf('\nFrequency of the wave is f=%1.3f GHz',f); //=========================END OF PROGRAM===============================
72286673557c9e59b4308c38a7980c5fb258a2f6
449d555969bfd7befe906877abab098c6e63a0e8
/1247/CH6/EX6.15/example6_15.sce
0194f7e1028feeaca3af58e4aac658c5056a9bb0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,021
sce
example6_15.sce
clear; clc; // Stoichiometry // Chapter 6 // Stoichiometry and Unit Operations // Example 6.15 // Page 385 printf("Example 6.15, Page 385 \n \n"); // solution //basis 1kg of dry air entering the air washer //from fig 6.15 H1 = 11.8 //g/kg dry air H2 = 17.76 //g/kg dry air H = H2-H1 // moisture added during saturation DB = 300.95 //K WB = 298.15 //K DP = 297.15 //K Ch = 1.006+1.84*.01776 //kJ/kg dry air K dT = DB-DP Hs = Ch*3.8 A = 25000 //m^3/h actual air at 41 and 24 degree celcius // again from fig 6.15 Vh = .9067 //m^3/kg dry air qm = A/Vh //kg dry air/h fi = qm*Hs //kJ/h P = 300 //kPa lamda= 2163.2 //kJ/kg by appendix IV.2 SC = fi/lamda //kg/h steam consumption at the heater printf(" the moisture added to the air = "+string(H)+" g/kg dry air \n DB temp of final air = "+string(DB)+"K \n WB temp of final air = "+string(WB)+"K \n The heating load of the steam coil per kg dry air = "+string(fi)+" kJ/h \n Steam consumption = "+string(SC)+" kg/h.")
02c7f7da204bd893be4a4423b383cd8fa2dd7731
449d555969bfd7befe906877abab098c6e63a0e8
/797/CH2/EX2.5.e/2_05_example.sci
7db8f189668dc39fdaa024722c13b537ed189c8e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
279
sci
2_05_example.sci
//Example 2-5 Determining the Viscosity of Fluid L = 40 //length of viscometer [cm] l = 0.15 //gap between two cylinders [cm] d_o = 12 //outer diameter of inner cylinder [cm] ndot = 300 //rotational speed of inner cylinder [rpm] T = 1.8 //torque required to move cylinder [N.m]
3b21380fd230d5f10a235d75c4bb94f9624d353d
7411fe89ce8ad5b919ddca183c5b47c8b31010cd
/macros/pythonImport.sci
ae861e7e42f9c071223574f639275713bc483793
[]
no_license
sengupta/Scilab-Python
ce07c1f272d0eabeeef77ac5d8bef2e261214c6b
7141c5ef93880138619e91774fc71af9a7913e20
refs/heads/master
2021-01-25T04:52:57.198542
2011-05-05T19:32:31
2011-05-05T19:32:31
1,707,951
2
0
null
null
null
null
UTF-8
Scilab
false
false
96
sci
pythonImport.sci
function pythonImport(scriptname) call("py_import", scriptname, 1, 'c', "out") endfunction
96b8c8edf9263660a4c5da0f207dca50d55aa36d
449d555969bfd7befe906877abab098c6e63a0e8
/2741/CH6/EX6.21/Chapter6_Example21.sce
c652ce38920045e5fae2d50b81f74b3523479858
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
899
sce
Chapter6_Example21.sce
clc clear //Input data p1=80;//The under pressure of benzene in cm of Hg t=80;//The normal boiling point of benzene in degree centigrade l=380;//The latent heat of vapourisation in joules/g d2=4;//Density of vapour at boiling point in g/litre d1=0.9;//Density of liquid in g/cm^3 //Calculations p=p1-76;//The change in pressure in cm of Hg P=p*13.6*980;//The change in pressure in dynes/cm^2 T=t+273;//The normal boiling point of benzene in K L=l*10^7;//Latent heat of vapourisation in ergs/g V1=1/d1;//The specific volume of liquid in cm^3 V2=1000/d2;//The specific volume of vapour in cm^3 T1=(P*T*(V2-V1))/L;//The increase in the boiling point of benzene in K T2=t+T1;//The boiling point of benzene at a pressure of 80 cm of Hg in degree centigrade //Output printf('The boiling point of benzene at a pressure of 80 cm of Hg is %3.3f degree centigrade ',T2)
5af56dc2c0f00395da6acfb2f70d5b8a26df7ddf
449d555969bfd7befe906877abab098c6e63a0e8
/1553/CH1/EX1.7/1Ex7.sce
85c0b09d9921223a00ffc50da7a5ef154457f073
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
106
sce
1Ex7.sce
//chapter 1 Ex 7 clc; clear; close; //let value to be found is x x=1396*1396; mprintf("x=%.0f",x);
7bff61ca99de1ce62ed5d7a683d93d5abe3b0bb2
449d555969bfd7befe906877abab098c6e63a0e8
/3542/CH6/EX6.8/Ex6_8.sce
8f7b93ac7eddf59ea9f735266290bf7888552168
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,127
sce
Ex6_8.sce
// Example no 6.8 // To find the first zero-crossing RF bandwidth of rectangular pulse and compare to raised cosine filter pulse // Page no. 291 clc; clear all; // Given data RectTs=41.06*10^-6; // Symbol period of rectangular pulse cosineTs=41.06*10^-6; // Symbol period of cosine filter pulse alpha=0.35; // Rolloff factor of cosine filter pulse // To find the first zero-crossing RF bandwidth of rectangular pulse B1=2/RectTs; // The first zero-crossing RF bandwidth of rectangular pulse // The first zero-crossing RF bandwidth of cosine filter pulse B2=(1/cosineTs)*(1+alpha); // The first zero-crossing RF bandwidth of cosine filter pulse // Displaying the result in command window printf('\n The first zero-crossing RF bandwidth of rectangular pulse = %0.2f kHz',B1*10^-3); printf('\n The first zero-crossing RF bandwidth of cosine filter pulse = %0.2f kHz',B2*10^-3);
7fa4ada6638ddc37b481acf06b8374c3c5a0e796
449d555969bfd7befe906877abab098c6e63a0e8
/40/CH9/EX9.5/Exa_9_5.sce
025deebe5dd68b409ff561dcf3d8c091f682f0f5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Exa_9_5.sce
//Mappings from difference algorithms //Backward difference mappings s=%s;z=%z; ts=1;a=1; HS=1/(s+a); HZa=horner(HS,(z-1)/(z*ts)) z1=roots(denom(HZa))//for ts >0 HZa always stable HZb=horner(HS,(z-1)/ts) z2=roots(denom(HZb))//stable only for 0<ats<2 HZc=horner(HS,(z^2-1)/(2*z*ts)) z3=roots(denom(HZc))//magnitude of 1 pole is always>1 hence unstable
4dde66220ae5a61494e0f93739e64fe9559b0491
449d555969bfd7befe906877abab098c6e63a0e8
/50/CH7/EX7.1/ex_7_1.sce
d857f64d6c0355a8ce48f1ac566f137598bb7460
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
454
sce
ex_7_1.sce
// example 7.1 // solve by shooting method; // u''=u+1; // u(0)=0; u(1)=%e-1; // let -> U1(x)=du/dx; // U2(x)=d2u/dx2; // U(x)=[U1(x);U2(x)] // hence ; // dU/dx=f(x,U); deff('[w]=f(x,U)','w=[U(2); U(1)+1]') h=0.25; x=[0:h:1]; ub=[0,%e-1]; up=[0:1:10]; [U] = shooting(ub,up,x,f); // the solution obtained would show the values of u and their derivatives at various x taken in regular intervals of h;
5945a8ea3a2feda8e2c3e680f809973c9e1989eb
449d555969bfd7befe906877abab098c6e63a0e8
/1226/CH3/EX3.18/EX3_18.sce
3e7239c71dd21efd28d0a436cc13540b06e7ccb1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
761
sce
EX3_18.sce
clc;funcprot(0);//EXAMPLE 3.18 // Initialisation of Variables L=0.25;...............//Engine stroke in m D=0.15;..................//Engine bore in m v2=0.0004;...............//Clearance volume in m^3 pers=5;...............//Percentage of stroke when fuel injection occurs ga=1.4;..............//Ratio of specific heats //Calculations Vs=(%pi/4)*D*D*L;..............//Swept volume in m^3 Vt=Vs+v2;....................//Total cylinder volume in m^3 v3=v2+((pers/100)*Vs);..............//Volume at point of cut off rho=v3/v2;............//Cut off ratio r=1+(Vs/v2);.............//Compression ratio etad=1-((((rho^ga)-1)/(rho-1))*(1/(ga*(r^(ga-1)))));..................//Efficiency of diesel engine disp(etad*100,"Efficiency of diesel engine in %:")
175476c181207df543b2654842ac4e1caab686cb
fab9e99fd93c83fe84df349728c73f0fd721c5ab
/requirements.tst
658a118c33559eb80927bc614030a2634781495a
[]
no_license
Rohith-2/pix2pix
3a833f8427ccbd49002db38b0bea0f183bd607a7
210e3f307b05a385ad4d85ce5b3058afd9f332f3
refs/heads/master
2023-06-26T07:15:10.408442
2021-07-29T15:14:36
2021-07-29T15:14:36
384,657,253
0
0
null
null
null
null
UTF-8
Scilab
false
false
41
tst
requirements.tst
torch torchvision imageio visdom dominate
dad1545beed355c0288e64074d48a8de22a4b481
717ddeb7e700373742c617a95e25a2376565112c
/275/CH3/EX3.3.55/Ch3_3_55.sce
351c6d536afde8fb3df43d0909bdabc45c752068
[]
no_license
appucrossroads/Scilab-TBC-Uploads
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
refs/heads/master
2021-01-22T04:15:15.512674
2017-09-19T11:51:56
2017-09-19T11:51:56
92,444,732
0
0
null
2017-05-25T21:09:20
2017-05-25T21:09:19
null
UTF-8
Scilab
false
false
467
sce
Ch3_3_55.sce
clc disp("Example 3.55") printf("\n") disp("Calculate transistor hFE & new Vce level for hFE=100 of base bias ciruit") printf("Given\n") //given Vcc=24 Rb=390*10^3 Rc=3.3*10^3 Vce=10 //Find Ic Ic=(Vcc-Vce)/Rc //from circuit //find Ib Ib=(Vcc-Vbe)/Rb //from ciruit //the value of hFE hFE=Ic/Ib //to find Vce when hFE=100 hFE1=100 Ic1=hFE1*Ib Vce1=Vcc-(Ic1*Rc) printf("Value of hFE is \n%f\n",hFE) printf("New value of Vce is \n%f volt\n",Vce1)
9dacaa55e6d53fe2bbf04b347ffa48bd5b54ac4d
190d7a52f0fed9737c92e627958e4c1b6c7ddb55
/Robotics/Scilab Code/PointRobot_TopLevel.sce
e3bef1f9de14a01a8aba06eae781f1cef7ecb009
[]
no_license
Jsw-4111/SchoolWork
3389c9179d088b26c98a3410180dc3f2569bfdf3
a9a6e345fc30bfa79a7e2bb4848655cb301facee
refs/heads/master
2023-04-12T01:11:02.216417
2021-04-25T21:21:06
2021-04-25T21:21:06
300,689,960
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,702
sce
PointRobot_TopLevel.sce
//This is the top level script used to build the point robot navigation //example for project 1. Let's jump right in! //Some matlab cleanup work here. clear clc scaling = 10; //The first thing we want to do is to load the map. It is called an //"occupancy map" but don't worry about that yet. Just know it is filled with //1's and 0's (with 1 signifying an obstacle or wall and 0 signifing free //space). So, we can only move in free space, mkay. // Here I've changed "load('OccupancyMap_v1.mat');" to: loadmatfile("OccupancyMap_v1.mat"); // This allows me to take MATLAB's occupancy // map data and use it in Scilab. //The goal is where we are trying to get to. GoalLocation = [5, 5]'; //The path length variable is where we will store the number of moves //needed to reach the path pathLength = 0; //This variable will store whether a obstacle is encountered on the //attempted move. 0 for no obstacle 1 for obstacle obstacleEncountered = 0; //Begin the plotting routines by plotting the base map. exec("PlotOccupancyMap.sce") // Scilab requires you to run files before you can call them PlotOccupancyMap(OccupancyMap, GoalLocation); //This is the RobotStartingLocation, I will provide this for the competition RobotLocation = [98,98]'; //Draw the robot location on the map // exec("PlotRobotLocation.sce"); // PlotRobotLocation(RobotLocation); //loop until we reach the goal location or some maximum number of moves have //been tried or we are not moving and have no hope of movement // As stated before, Scilab needs you to execute files before you can call them exec("moveRobot.sce"); exec("TestMovement.sce"); while(~isequal(RobotLocation, GoalLocation) && (pathLength < 2000)) //[newRobotLocation, obstacleHitInMove] = moveRobot(x_move, y_move, CurrentRobotLocation, OccupancyMap) //x_move and y_move are either -1, 0, +1 [RobotLocation, obstacleEncountered, pathLength] = moveRobot(-1, -1, RobotLocation, OccupancyMap); if(obstacleEncountered) [RobotLocation, obstacleEncountered, pathLength] = moveRobot(0, 1, RobotLocation, OccupancyMap); //If we are not moving again then we are dead for this //implimentation if(TestMovement(0, 1, RobotLocation, OccupancyMap)) break; end end //pause for dramatic effect pause(.01); //plot out the robot location PlotRobotLocation(RobotLocation); end //Just display some extremely relevant information if(isequal(RobotLocation, GoalLocation)) disp('Goal Reached!'); else disp('Goal Not Achieved... :('); end disp(strcat('Path Length = ', num2str(pathLength)));
9804d1da813b341c82fc369b2780076cdf671f56
449d555969bfd7befe906877abab098c6e63a0e8
/3717/CH9/EX9.10/Ex9_10.sce
152878b01484e4174a0cfd1b50121e405d226106
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
410
sce
Ex9_10.sce
// Ex9_10 Page:198 (2014) clc;clear; h = 6.626e-034; // Planck's constant, Js B0 = 1.3; // External magnetic field, T mu_B = 9.27e-024; // Bohr's magneton, J/T nu = 35e+009; // Operating frequency, Hz g = h*nu/(mu_B*B0); // Electron g-factor printf("\nThe electron g-factor for the unpaired electron = %5.3f", g); // Result // The electron g-factor for the unpaired electron = 1.924
7c10f0e523d2e7f8975ad8efe1eb0f6e2d719695
449d555969bfd7befe906877abab098c6e63a0e8
/2660/CH5/EX5.35/Ex5_35.sce
c09b0df11dda4c854b25422abc4143324df3af64
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
544
sce
Ex5_35.sce
clc // Automatic lathe p = 30 // number of pieces produced per hour l = 4 // labour rate per hour in Rs d = 4.50 // hourly depreciation rate per machine in hour s = 4 // set up time in hour // turret lathe P = 10 // number of pieces produced per hour L = 4 // labour rate per hour in Rs D = 1.50 // hourly depreciation rate per machine in hour S = 2 // set up time in hour q = (P*p*(S*L+S*D-s*l-s*d))/(P*(l+d)-p*(L+D)) // quantity of pieces at break even point printf("\n Quantity of pieces at Break even point = %d pieces" , q)
9a376eca5f10e7ccf180ae06209add99293c4488
449d555969bfd7befe906877abab098c6e63a0e8
/1640/CH4/EX4.16/4_16.sce
66f2d91ed47f78ac652c928b6074cc42bc615adc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
237
sce
4_16.sce
clc //initialisation of variables x= 6 //in l= 200 //ft d= 10 //ft v= 4 //ft/sec Ce= 0.95 g= 32.2 //ft/sec^2 //CALCULATIONS l1= sqrt(l^2/(Ce^2*(((x/12)*2*g/v^2)+(d^2/(d+(x/12))^2)))) //RESULTS printf ('length = %.f ft ',l1)
97416092be4b1170a75b5b5902cb740127bc8238
449d555969bfd7befe906877abab098c6e63a0e8
/1382/CH6/EX6.29/EX_6_29.sce
eff845c3350c13c10d357cc295b1c2280ae89dbc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
660
sce
EX_6_29.sce
// Example 6.29;//bandwidth clc; clear; close; F2=16;//upper cutoff frequency in killo hertz without feedback F1=40;//upper cutoff frequency in hertz without feedback A= 800;// open loop voltage gain Beta=0.02;// feedback ratio Afb= (A/(1+(Beta*A)));//GAIN WITH FEEDBACk F2f=F2*(1+A*Beta);//uppor cutoff frequency with feedback in killo hertz F1f=F1/(1+A*Beta)*10^-3;//lower cutoff frequency with feedback in killo hertz Bw=F2-F1*10^-3;///bandwidth without feedback in killo hertz Bwf=round(F2f-F1f);//bandwidth with feedback in killo hertz disp(Bw,"bandwidth without feedback in killo hertz") disp(Bwf,"bandwidth with feedback in killo hertz")
3a75847b3499b3ccd3e4038ef13187892a50be01
449d555969bfd7befe906877abab098c6e63a0e8
/3169/CH7/EX7.8/Ex7_8.sce
b8d8fc871d9bc9903aac35076eb7d59f7fb416ab
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
505
sce
Ex7_8.sce
//developed in windows XP operating system //platform Scilab 5.4.1 clc;clear all; //example 7.8 //calculation of resistance and capacitance //given data t1=8*10^-6//fronttime(in s) t2=20*10^-6//tailtime(in s) //calculation f2=1/t2//frequency corresponding to tail time fl=f2/5 omega=2*%pi*fl CR=10*%pi/omega M=10^-3*(1/CR) R=2*10^3//assume resistance(in ohm) C=CR/R printf('The value of resistance is %3.0e ohm',R) printf('\nThe value of capacitance is %3.2f microfarad',C*10^6)
9ca80ced960354f070e36f8399f8f525f9a38333
449d555969bfd7befe906877abab098c6e63a0e8
/3311/CH13/EX13.1/Ex13_1.sce
94bea30336f9832989a9285115208216b8606a9d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
620
sce
Ex13_1.sce
// chapter 13 // example 13.1 // fig. 13.11 // Compute the values of di/dt inductor and the snubber circuit component Rs and Cs // page-807-808 clear; clc; // given E=400; // in V di_dt=50; // in A/us dv_dt=200; // in V/us // calculate // since di/dt=E/L, therefore we get L=E/di_dt; // calculation of // since dV/dt=Rs*di/dt, therefore we get Rs=dv_dt/di_dt; // calculation of Rs=10; // assuming the desired values Cs=0.1; // in uF assuming the desired value L=E*Rs/(dv_dt); printf("\nThe value of di/dt inductor is \t\t L=%.f uH",L); printf("\nThe snubber circuit component are \t Rs=%.f ohm \t Cs=%.1f uF",Rs,Cs);
0aaf325bc8c24d1a1db1e5ea50cfed109262a95b
449d555969bfd7befe906877abab098c6e63a0e8
/1106/CH10/EX10.4/ex10_4.sce
024fac47b7cf06930b4fa9059b286d091644df17
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
316
sce
ex10_4.sce
// Example 10.4, Page No-438 clear clc R1=15000 C1=0.01*10^-6 C=1*10^-6 V=12 fo=1.2/(4*R1*C1) fon=fo*10^-3 printf('\nCentre frequency of VCO is= %.2f kHz', fon) LR=7.8*fo/V LR1=LR/1000 printf('\nLock Range = +/- %.1f kHz', LR1) fcd=sqrt(LR/(C*2*%pi*3.6*1000)) printf('\nDelta FC= %.2f Hz', fcd)
90ae8347f539fa4032b692b04ba58421e8097da8
449d555969bfd7befe906877abab098c6e63a0e8
/1730/CH4/EX4.5/Exa4_5.sce
132f628fb999d7affd3b4d6d5c896f4c5e0f4ad8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
278
sce
Exa4_5.sce
//Exa 4.5 clc; clear; close; //given data : VP=-4.5;//in Volt IDSS=10;//in mAmpere IDS=2.5;//in mAmpere //Formula : IDS=IDSS*[1-VGS/VP]^2 VGS=VP*(1-sqrt(IDS/IDSS));//in Volt gm=(-2*IDSS*10^-3)*(1-VGS/VP)/VP;//in mA/V or mS disp(gm*1000,"Transconductance in mA/V : ");
17a6e6991c54df53a36d61c82b850590c6e91d22
449d555969bfd7befe906877abab098c6e63a0e8
/3869/CH4/EX4.3/Ex4_3.sce
d2f9f06a06290e5d0f1aa852b369d3cc61b62806
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
360
sce
Ex4_3.sce
clear // // // //Variable declaration c=3*10**8 //velocity of light(m/sec) e=1.6*10**-19 //charge of electron(coulomb) Eg=1.44*e //band gap energy(J) h=6.626*10**-34 //planck's constant(Jsec) //Calculation lamda=h*c/Eg //wavelength(m) //Result printf("\n wavelength is %0.0f angstrom",lamda*10**10)
08f736169a98f78fe8e2c0dca80770c33530582e
f3921ba261cdd9c9c4201d85a3b3bcbc42a26421
/protobuflib/pblib_generic_serialize_to_string.sci
af1c1352453510162a68c9ff99792f5ac55ff080
[]
no_license
manojgudi/protobuf-scilab
9bbe77a52ad8bd50d762a6e4a388236f88dacc0c
d5a8e967848b48c1628859f3f52fb59ac3502429
refs/heads/master
2020-12-02T15:54:15.894328
2015-01-08T19:04:45
2015-01-08T19:04:45
28,736,110
0
0
null
null
null
null
UTF-8
Scilab
false
false
5,279
sci
pblib_generic_serialize_to_string.sci
exec pblib_write_tag.sci exec pblib_get_serialized_size.sci exec pblib_encoded_field_size.sci exec pblib_write_wire_type.sci function [buffer] = pblib_generic_serialize_to_string(msg) //pblib_generic_serialize_to_string // function [buffer] = pblib_generic_serialize_to_string(msg) // protobuf-matlab - FarSounder's Protocol Buffer support for Matlab // Copyright (c) 2008, FarSounder Inc. All rights reserved. // http://code.google.com/p/protobuf-matlab/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // * Neither the name of the FarSounder Inc. nor the names of its // contributors may be used to endorse or promote products derived from this // software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // Author: fedor.labounko@gmail.com (Fedor Labounko) // Support function used by Protobuf compiler generated .m files. // enum values we use WIRE_TYPE_LENGTH_DELIMITED = 2; LABEL_REPEATED = 3; descriptor = msg.descriptor_function(); buffer = zeros([1 pblib_get_serialized_size(msg)], 'uint8'); num_written = 0; for i=1:length(descriptor.fields) field = descriptor.fields(i); if (get(msg.has_field, field.name) == 0) continue; end if (field.label == LABEL_REPEATED) if (field.options.packed) // two is the length delimited wire_type tag = pblib_write_tag(field.number, WIRE_TYPE_LENGTH_DELIMITED); buffer(num_written + 1 : num_written + length(tag)) = tag; num_written = num_written + length(tag); wire_values = write_packed_field(msg.(field.name), field); wire_value = pblib_write_wire_type(wire_values, WIRE_TYPE_LENGTH_DELIMITED); buffer(num_written + 1 : num_written + length(wire_value)) = wire_value; num_written = num_written + length(wire_value); else tag = pblib_write_tag(field.number, field.wire_type); for j=1:length(msg.(field.name)) buffer(num_written + 1 : num_written + length(tag)) = tag; num_written = num_written + length(tag); if (field.matlab_type == 7 || field.matlab_type == 8) // 'string' or 'bytes' value = msg.(field.name){j}; else value = msg.(field.name)(j); end wire_values = pblib_write_wire_type(field.write_function(value), field.wire_type); buffer(num_written + 1 : num_written + length(wire_values)) = wire_values; num_written = num_written + length(wire_values); end end else tag = pblib_write_tag(field.number, field.wire_type); buffer(num_written + 1 : num_written + length(tag)) = tag; num_written = num_written + length(tag); value = msg.(field.name); wire_value = pblib_write_wire_type(field.write_function(value), field.wire_type); buffer(num_written + 1 : num_written + length(wire_value)) = wire_value; num_written = num_written + length(wire_value); end end // now write the unknown fields for i=1:length(msg.unknown_fields) buffer(num_read + 1 : num_read + length(msg.unknown_fields(i).raw_data)) = ... msg.unknown_fields(i).raw_data; num_read = num_read + length(msg.unknown_fields(i).raw_data); end if (num_written ~= length(buffer)) error('proto:pblib_generic_serialize_to_string', ... ['num_written, ' string(num_written) ... ', is different from precalculated length ' ... string(length(buffer))]); end endfunction function [wire_values] = write_packed_field(values, field) wire_values = zeros([1 pblib_encoded_field_size(values, field)], 'uint8'); values = field.write_function(values); bytes_written = 0; for i=1:length(values) encoded_value = pblib_write_wire_type(values(i), field.wire_type); wire_values(bytes_written + 1 : bytes_written + length(encoded_value)) = encoded_value; bytes_written = bytes_written + length(encoded_value); end wire_values = wire_values(1 : bytes_written); endfunction
7f9f5f3e0238c2070e2763e7207f4664e1a24a69
1bc06fa90b5425d41347c90d0c73bb82eb4cbbfe
/utils/afficherLogs.sci
7e6a4245396cacad54eb69300a4d80ab0488b3b1
[]
no_license
madox35/Filtre-Canny
a0a527ad6be5a1dc5984b2533008f95b1c9663ee
3a54da9b0ce917c995ea5fbd48e0ed5c3f36748d
refs/heads/master
2020-03-08T08:57:27.702111
2018-04-21T19:39:39
2018-04-21T19:39:39
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
104
sci
afficherLogs.sci
function afficherLogs(something) if AFFICHER_LOGS then disp(something); end endfunction
d98d2da77a4b8bfb24ff582818efb5134926db2a
449d555969bfd7befe906877abab098c6e63a0e8
/3035/CH8/EX8.6/Ex8_6.sce
4fc61b859abffa3579f2ae65deb369682b1ceb76
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,201
sce
Ex8_6.sce
// Variable Declaration X_s = 1.1 //Synchronous reactance of generator(p.u) V_b = 1.0 //Terminal voltage of generator=voltage of infinite bus(p.u) E = 1.25 //Excitation emf of finite machine(p.u) P_G = 0.3 //Active power output(p.u) dec = 0.25 //Excitation is decreased // Calculation Section sin_delta = P_G*X_s/(E*V_b) delta = asin(sin_delta) //Power angle(radian) Q_G = V_b/X_s*(E*cos(delta)-V_b) //Reactive power output(p.u) E_n = (1-dec)*E //New excitation emf of finite machine(p.u) P_Gn = P_G //New active power output(p.u) sin_delta_n = P_G*X_s/(E_n*V_b) delta_n = asin(sin_delta_n) //New power angle(radian) Q_Gn = V_b/X_s*(E_n*cos(delta_n)-V_b) //New reactive power output(p.u) // Result Section printf('Case(a) :') printf('Power angle = %.2f°' ,delta*180/%pi) printf('Reactive power output , Q_G = %.3f p.u' ,Q_G) printf('\nCase(b) :') printf('Active power if excitation is decreased , P_Gn = %.1f p.u' ,P_Gn) printf('Reactive power if excitation is decreased , Q_Gn = %.3f p.u' ,Q_Gn) printf('Power angle if excitation is decreased = %.2f°' ,delta_n*180/%pi)
958d682f618cd2b798560bead04582c860da7c57
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.5/macros/calpol/simstab.sci
9cdb8d962641c8f3741249a955aa67ba8deb49d2
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931111
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
3,641
sci
simstab.sci
function [punst,lambda]=simstab(p0,p,moeb) //[punst,lambda]=simstab(p0,p,moeb) tests stability //of a family of polynomials p0+sum(li*p(i)) for 0<=li<1 //If for all li family is stable, then punst=[];lambda=[]. //If not punst is an unstable polynomial in the family and lambda= //vector of li such that punst=p0+sum(li*p(i)) // //inputs : p0 stable polynomial // p column vector of polynomials // moeb 2x2 matrix for defining the type of stability // required. // moeb=eye(2) continuous time stab. // moeb=[1 1;1 -1] discrete time stab. //! // // // Copyright INRIA deff('[teta]=angle(z)',['teta=atan(imag(z),real(z));'; 'n=prod(size(z));'; 'for k=1:n,'; 'if abs(teta(k)+%pi)<%eps then'; 'teta(k)=teta(k)+2*%pi,end,'; 'end']) // plt=0; punst=[];lambda=[]; [m,W]=size(p) lp=maxi(degree(p))+1 n=degree(p0) rts=roots(p0); zp0=(moeb(2,2)*rts-moeb(1,2)*ones(rts))... ./(-moeb(2,1)*rts+moeb(1,1)*ones(rts)); if maxi(real(zp0))>=0 then error("p0 not stable"), end; //-------- //-------- wstp=mini(abs(zp0)) k=0;aw=0;waw=[0;0]; for j=2:n while aw<=maxi([j-1, 2*j-n-0.5])*%pi/2 k=k+1 aw=sum(angle((%i*k*wstp*ones(1,n))-zp0')); end; waw(:,j)=[k*wstp;aw] end; for j=2:n while j*%pi/2-waw(2,j)<0 nw=(waw(1,j-1)+waw(1,j))/2 naw=sum(angle((%i*nw*ones(1,n))-zp0')) waw(:,mini([j,ent(naw*2/%pi)+1]))=[nw;naw] end; end; //-------- w=waw(1,:) nn=n;p0w=0;scale=0; opiw=moeb(2,2)**n*horner(p0,moeb(1,2)/moeb(2,2)); olo=angle(opiw);j=0; // extra=%i*ones(2*m+1,1); while %t, j=j+1; numer=moeb(1,:)*[%i*w(j);1]; denom=moeb(2,:)*[%i*w(j);1]; p0wn=denom**n*horner(p0,numer/denom); p0w(j)=p0wn; pw=0;pwc=0;piwc=0;piw=0;lda0=0*ones(1,m) for k=1:m pw(k)=denom**n*horner(p(k),numer/denom); if abs(pw(k))<=%eps then pwc(k)=%i; else pwc(k)=pw(k); end; if angle(pwc(k))<0 p0wn=p0wn+pw(k) pw(k)=-pw(k);pwc(k)=-pwc(k);lda0(k)=1-lda0(k); end; end; [ang,ii]=sort(angle(pwc));ang=ang(m:-1:1);ii=ii(m:-1:1); piw(1)=p0wn+pw(ii(1)); for k=2:m, piw(1,k)=piw(k-1)+pw(ii(k));end piw=[piw, (2*p0wn+sum(pw))*ones(piw)-piw]; for k=1:2*m , if abs(piw(k))<=%eps then piwc(1,k)=%i; else piwc(1,k)=piw(k); end; end; scale(j)=maxi(abs(piw)) xpiw=conj([piw, piw(1)]')/scale(j) // if plt==1 then plot2d(real(xpiw)',imag(xpiw)',[-3,-1]) plot2d(real(p0w(j))'/scale(j),imag(p0w(j))'/scale(j),... [-2,-2],"000"); end; // [hi,ihi]=maxi(angle(piwc/p0w(j))) [lo,ilo]=mini(angle(piwc/p0w(j))) if hi-lo>=%pi tri=[real([p0w(j) piw(ihi) piw(ilo)]); imag([p0w(j) piw(ihi) piw(ilo)])]; nl=ker(tri); nl=nl(:,1) ldhi=lda0;ldlo=lda0; if ihi>m then ihi=ihi-m;ldhi=ones(ldhi)-ldhi;end if ilo>m then ilo=ilo-m;ldlo=ones(ldlo)-ldlo;end ldhi(ii(1:ihi))=ones(1,ihi)-ldhi(ii(1:ihi)); ldlo(ii(1:ilo))=ones(1,ilo)-ldlo(ii(1:ilo)); lambda=nl'*[0*ones(1,m);ldhi;ldlo]/sum(nl) punst=p0 punst=punst+lambda*p if plt==1 then plot2d(real(p0w./scale)',imag(p0w./scale)',[-4,-3],"100",... 'parameter lambda gives an unstable polynomial punst'); end; return, end; if hi+angle(p0w(j)/opiw)-olo >%pi w(j+1:nn+1)=w(j:nn); w(j)=(w(j+1)+w(j-1))/2 j=j-1 nn=nn+1 else opiw=p0w(j) olo=lo; end; if j==nn then if hi-lo>=%pi/4 nn=nn+1 w(nn)=w(nn-1)*2-w(nn-2) else if plt==1 then plot2d(real(p0w)./scale',imag(p0w)./scale',[-5,-3],... "100", 'The family is stable'),end return end; end; end;
9ab43105f5609592eac51e7f6e285c12c7ec96dc
449d555969bfd7befe906877abab098c6e63a0e8
/3720/CH5/EX5.8/Ex5_8.sce
0aa769523cb46f4b8a2c247d32043c05b2dfb0a9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
231
sce
Ex5_8.sce
//Example 5_8 clc;clear;funcprot(0); // Given values h_1=0.03;// m h_2=0.07;// m h_3=0.12;// m g=9.81;//m/s^2 //Calculation V_1=sqrt(2*g*h_3);// m/s printf('The velocity at the center of the pipe,V_1=%0.2f m/s\n',V_1);
18bb5ae0d293eb73337d842e467203d76a95c770
99b4e2e61348ee847a78faf6eee6d345fde36028
/Toolbox Test/enbw/enbw13.sce
2ab68b0f2521fbfe78e7241c2e0b8b1c8f680758
[]
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
153
sce
enbw13.sce
a=['a' 'b' 'c']; en=enbw(a); //output //!--error 10000 //Input arguments must be double. //at line 24 of function enbw called by : //en=enbw(a);
3e44c37aefb8ed7737a7c7c58d524ccc5a9a35ad
449d555969bfd7befe906877abab098c6e63a0e8
/162/CH4/EX4.4/example44.sce
861c987e168b18fc93057df6d457d0e1254ddd2f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
128
sce
example44.sce
//Example 4.4 //Laplace transform of f(t)=5cos(wt)+4sin(wt) clc; syms w t; f=5*cos(w*t)+4*sin(w*t); F=laplace(f); disp(F);
5c3aa34594cb991fa444e8eb3b495ed193221b6d
4b1558e166b13f0e90c889b11ee516e4925626ed
/aula9.sce
a5339388c0cacc092cd3e9aa798701635b45a00b
[]
no_license
dalpendre/EI_matematica_discreta
a4712b5c7ea085eb5238a0e45c89733ba25a64b6
93cf0c75c41a231aadf919293089ce240695bf10
refs/heads/master
2022-08-09T18:27:37.572002
2020-05-21T13:00:22
2020-05-21T13:00:22
254,603,532
0
0
null
null
null
null
UTF-8
Scilab
false
false
818
sce
aula9.sce
//aula 9 - PL6 A=[0 1 0 0 1 0;0 0 1 1 0 0;1 0 0 0 1 0;0 0 0 0 0 0;0 0 0 0 0 1;1 0 0 1 0 0;] exec('grafo.sce'); grafo(A) //quantos caminhos existem de comprimento 2 de i para j A^2 //quantos caminhos existem de comprimento 3 de i para j A^3 //quantos caminhos existem de comprimento 4 de i para j A^4 //estudar a conectividade de um grafo, temos de usar a matriz de caminhos //se a matriz de caminhos P só tem 1's como elementos, então o grafo é fortemente conexo; quer dizer que existe um caminho gerador fechado P=bool2s(A+A^2+A^3+A^4+A^5+A^6) //como a matriz de caminhos tem zeros, logo o grafo não é fortemente conexo; a 4ª linha é de zeros pois o vértice 4 é um poço. P2=bool2s(P+P') //o grafo é unilateralmente conexo, pois, fora da diagonal principal, só temos 1´s como elementos
84e0ddbf3bffefb2fc922c20fa8f30ba319a3b92
449d555969bfd7befe906877abab098c6e63a0e8
/1727/CH5/EX5.9/5_9.sce
7f6bd190c5b9969feb79b23804c3c3981897eb75
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
233
sce
5_9.sce
clc //Initialization of variables g=9.81 //m/s^2 rho=10^3 //kg/m^3 Q=0.012 //m^3/s z=10 //m d=0.075 //m //calculations Vb=Q/(%pi/4 *d^2) Hm=z+ Vb^2 /(2*g) P=Hm*rho*g*Q //results printf("Power required = %.3f kW",P/1000)
ea265f37278098dddbbae9e3051de37dc3facce2
449d555969bfd7befe906877abab098c6e63a0e8
/3835/CH4/EX4.5/Ex4_5.sce
90ef398bf87e8da13bd9f19b8b7bd8469f2021d6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
664
sce
Ex4_5.sce
clear // f=50 irms=10 im=irms/(0.707) //omega*t=2*3.14*f*t here the value for t can be substituted and value for i can be found from i=im*sin(omega*t) t=0.0025 p=0.0137 //value of sin(314*0.0025) i=(10*p)/(0.707) printf("\n i= %0.1f A",i) //maximum value is when 314*t=%pi/2 (in radians)-->t=0.005 //hence at t=0.005+0.0125=0.0175 the value of i nedds to be found p=0.0957 i=(10*p)/(0.707) printf("\n i= %0.1f A",i) printf("\n NOTE:The answer given in text is printed wrongly") i=7.07 //7.07=(10*sin314t)/0.707-->t=0.00833 sec t=0.00833-0.005 //the time at which the instaneous value is 7.07A after positive maximum value is at this time printf("\n t= %e A",t)
129d0fbda823487f97d4ba44ad9fec37f455f46b
91b61e2dab060ff512ff55a41701eef53d2f607b
/Piezo/S1ANFUNCO/scenarios/S1ANFUNCO_FastMap_4s_5d_pseudorandom.sce
7669b67f96c173c438c133693061d6cc41d8bf63
[]
no_license
layerfMRI/Phychopy_git
1a8e2cc8e65424d7f4ab93ddd088fb412ddc839d
c09765358f5d7f4f12eed756e41f3376f1461596
refs/heads/master
2023-06-23T04:27:24.616010
2023-06-16T13:58:29
2023-06-16T13:58:29
161,359,522
1
0
null
null
null
null
UTF-8
Scilab
false
false
12,622
sce
S1ANFUNCO_FastMap_4s_5d_pseudorandom.sce
#################################################### 1. SDL HEADER ################################################### scenario = "FingerMapping_SBS_T3_12.8mins_1A_TR4s"; #401 volumes #default_formatted_text = true; default_background_color = 70,70,70; default_text_color = 0, 255, 255; default_font = "Tahoma"; default_font_size = 35; default_volume = 1; #scenario_type = fMRI_emulation; # either fMRI or fMRI_emulation, depending on whether the external device is present or not scenario_type = fMRI; #scan_period = 1900; # off in fMRI mode pulses_per_scan = 1; pulse_code = 44; channels = 6; # 1-8 channels (2 = stereo) bits_per_sample = 16; # the amount of data in each digital sound sample given in number of bits sampling_rate = 48000; # sample rate in Hertz ################################################## 2. SDL Part ######################################## begin; ####### ## instructie EN picture { text {caption = " In a moment you will feel stimulations on the fingertips of your left hand. Please count the total number of interruptions in the stimulations. Please fixate the cross, lie as still as possible. Keep your fingers in the same position, touching the modules without pressure." ; }; x = 0; y = 0; } instructie_pic; ## instructie NL #picture { text {caption = " #You" #; font_size = 20;}; x = 0; y = 0; #} instructie_pic; ## einde run EN picture { text {caption = "This was the end of this scan."; }; x = 0; y = 0; } einde_pic; ## einde run NL #picture { text {caption = "Dit was het einde van deze scan."; }; x = 0; y = 0; #} einde_pic; ###### ## fixatie picture { text{caption = "*"; font_size = 60; description = "Fix"; }; x = 0; y = 0; } fix_pic; ## fixatie picture { text{caption = "*"; font_size = 60; description = "Fix"; }; x = 0; y = 0; } default; #wavefile { filename = "25HzSine_6ch_15s_ch1.wav";}soundstim; #wavefile { filename = "25HzSine_1ch_1s.wav";}soundstim; #wavefile { filename = "25HzSine_1ch_2-9s.wav";}soundstim; #FOR TESTING #wavefile { filename = "15_9_regularinterruptions.wav";}soundstim; #wavefile { filename = "15_9_nointerruptions.wav";}soundstim; #wavefile { filename = "15_9_unpredictable.wav";}soundstim; #wavefile { filename = "15_2_unpredictable.wav";}soundstim; #wavefile { filename = "30_5_unpredictable.wav";}soundstim; #wavefile { filename = "3p9s_0Int.wav";}soundstim; #sound { wavefile soundstim; speakers = 1; description = "module1"; default_code = "module1"; }module1_audio;#d1 speaker 3 #sound { wavefile soundstim; speakers = 2; description = "module2"; default_code = "module2"; }module2_audio;#d2 speaker 6 #sound { wavefile soundstim; speakers = 5; description = "module3"; default_code = "module3"; }module3_audio;#d3 speaker 5 #sound { wavefile soundstim; speakers = 6; description = "module4"; default_code = "module6"; }module4_audio;#d4 speaker 2 #sound { wavefile soundstim; speakers = 3; description = "module5"; default_code = "module5"; }module5_audio;#d5 speaker 1 #sound { wavefile soundstim; speakers = 4; description = "module6"; default_code = "module4"; }module6_audio;# array { sound { wavefile {filename = "3p9s_0Int.wav";}; speakers = 3; description = "D1_0Int"; default_code = "D1_0Int"; }D1_0Int_audio; sound { wavefile {filename = "3p9s_1IntA.wav";}; speakers = 3; description = "D1_1Int"; default_code = "D1_1Int"; }D1_1IntA_audio; sound { wavefile {filename = "3p9s_1IntB.wav";}; speakers = 3; description = "D1_1Int"; default_code = "D1_1Int"; }D1_1IntB_audio; sound { wavefile {filename = "3p9s_1IntC.wav";}; speakers = 3; description = "D1_1Int"; default_code = "D1_1Int"; }D1_1IntC_audio; sound { wavefile {filename = "3p9s_1IntD.wav";}; speakers = 3; description = "D1_1Int"; default_code = "D1_1Int"; }D1_1IntD_audio; sound { wavefile {filename = "3p9s_2IntA.wav";}; speakers = 3; description = "D1_2Int"; default_code = "D1_2Int"; }D1_2IntA_audio; sound { wavefile {filename = "3p9s_2IntB.wav";}; speakers = 3; description = "D1_2Int"; default_code = "D1_2Int"; }D1_2IntB_audio; sound { wavefile {filename = "3p9s_2IntC.wav";}; speakers = 3; description = "D1_2Int"; default_code = "D1_2Int"; }D1_2IntC_audio; sound { wavefile {filename = "3p9s_3Int.wav";}; speakers = 3; description = "D1_3Int"; default_code = "D1_3Int"; }D1_3Int_audio; }sounds_D1; array { sound { wavefile {filename = "3p9s_0Int.wav";}; speakers = 6; description = "D2_0Int"; default_code = "D2_0Int"; }; sound { wavefile {filename = "3p9s_1IntA.wav";}; speakers = 6; description = "D2_1Int"; default_code = "D2_1Int"; }; sound { wavefile {filename = "3p9s_1IntB.wav";}; speakers = 6; description = "D2_1Int"; default_code = "D2_1Int"; }; sound { wavefile {filename = "3p9s_1IntC.wav";}; speakers = 6; description = "D2_1Int"; default_code = "D2_1Int"; }; sound { wavefile {filename = "3p9s_1IntD.wav";}; speakers = 6; description = "D2_1Int"; default_code = "D2_1Int"; }; sound { wavefile {filename = "3p9s_2IntA.wav";}; speakers = 6; description = "D2_2Int"; default_code = "D2_2Int"; }; sound { wavefile {filename = "3p9s_2IntB.wav";}; speakers = 6; description = "D2_2Int"; default_code = "D2_2Int"; }; sound { wavefile {filename = "3p9s_2IntC.wav";}; speakers = 6; description = "D2_2Int"; default_code = "D2_2Int"; }; sound { wavefile {filename = "3p9s_3Int.wav";}; speakers = 6; description = "D2_3Int"; default_code = "D2_3Int"; }; }sounds_D2; array { sound { wavefile {filename = "3p9s_0Int.wav";}; speakers = 5; description = "D3_0Int"; default_code = "D3_0Int"; }; sound { wavefile {filename = "3p9s_1IntA.wav";}; speakers = 5; description = "D3_1Int"; default_code = "D3_1Int"; }; sound { wavefile {filename = "3p9s_1IntB.wav";}; speakers = 5; description = "D3_1Int"; default_code = "D3_1Int"; }; sound { wavefile {filename = "3p9s_1IntC.wav";}; speakers = 5; description = "D3_1Int"; default_code = "D3_1Int"; }; sound { wavefile {filename = "3p9s_1IntD.wav";}; speakers = 5; description = "D3_1Int"; default_code = "D3_1Int"; }; sound { wavefile {filename = "3p9s_2IntA.wav";}; speakers = 5; description = "D3_2Int"; default_code = "D3_2Int"; }; sound { wavefile {filename = "3p9s_2IntB.wav";}; speakers = 5; description = "D3_2Int"; default_code = "D3_2Int"; }; sound { wavefile {filename = "3p9s_2IntC.wav";}; speakers = 5; description = "D3_2Int"; default_code = "D3_2Int"; }; sound { wavefile {filename = "3p9s_3Int.wav";}; speakers = 5; description = "D3_3Int"; default_code = "D3_3Int"; }; }sounds_D3; array { sound { wavefile {filename = "3p9s_0Int.wav";}; speakers = 2; description = "D4_0Int"; default_code = "D4_0Int"; }; sound { wavefile {filename = "3p9s_1IntA.wav";}; speakers = 2; description = "D4_1Int"; default_code = "D4_1Int"; }; sound { wavefile {filename = "3p9s_1IntB.wav";}; speakers = 2; description = "D4_1Int"; default_code = "D4_1Int"; }; sound { wavefile {filename = "3p9s_1IntC.wav";}; speakers = 2; description = "D4_1Int"; default_code = "D4_1Int"; }; sound { wavefile {filename = "3p9s_1IntD.wav";}; speakers = 2; description = "D4_1Int"; default_code = "D4_1Int"; }; sound { wavefile {filename = "3p9s_2IntA.wav";}; speakers = 2; description = "D4_2Int"; default_code = "D4_2Int"; }; sound { wavefile {filename = "3p9s_2IntB.wav";}; speakers = 2; description = "D4_2Int"; default_code = "D4_2Int"; }; sound { wavefile {filename = "3p9s_2IntC.wav";}; speakers = 2; description = "D4_2Int"; default_code = "D4_2Int"; }; sound { wavefile {filename = "3p9s_3Int.wav";}; speakers = 2; description = "D4_3Int"; default_code = "D4_3Int"; }; }sounds_D4; array { sound { wavefile {filename = "3p9s_0Int.wav";}; speakers = 1; description = "D5_0Int"; default_code = "D5_0Int"; }; sound { wavefile {filename = "3p9s_1IntA.wav";}; speakers = 1; description = "D5_1Int"; default_code = "D5_1Int"; }; sound { wavefile {filename = "3p9s_1IntB.wav";}; speakers = 1; description = "D5_1Int"; default_code = "D5_1Int"; }; sound { wavefile {filename = "3p9s_1IntC.wav";}; speakers = 1; description = "D5_1Int"; default_code = "D5_1Int"; }; sound { wavefile {filename = "3p9s_1IntD.wav";}; speakers = 1; description = "D5_1Int"; default_code = "D5_1Int"; }; sound { wavefile {filename = "3p9s_2IntA.wav";}; speakers = 1; description = "D5_2Int"; default_code = "D5_2Int"; }; sound { wavefile {filename = "3p9s_2IntB.wav";}; speakers = 1; description = "D5_2Int"; default_code = "D5_2Int"; }; sound { wavefile {filename = "3p9s_2IntC.wav";}; speakers = 1; description = "D5_2Int"; default_code = "D5_2Int"; }; sound { wavefile {filename = "3p9s_3Int.wav";}; speakers = 1; description = "D5_3Int"; default_code = "D5_3Int"; }; }sounds_D5; ### trials ### ## instructie begin trial { trial_duration = stimuli_length; picture instructie_pic; code = "Instructie"; } instructie_trial; ## einde trial { stimulus_event{ picture einde_pic; duration=4000; } einde_stim; } einde_trial; trial { trial_mri_pulse = 1; trial_duration = stimuli_length; stimulus_event { picture fix_pic; code = "Rest"; } fix_stimulus; # forever; rest wordt er overheen geprojecteerd } fix_trial; ## grijze rechthoek, eerste baseline trial { trial_mri_pulse = 1; trial_duration = 8000; stimulus_event { picture fix_pic; code = "Baseline"; } stim_fix_stimulus; # forever; rest wordt er overheen geprojecteerd } stim_fix_trial; ## stimulation trial; wordt aangepast op basis van randomisatie trial { trial_mri_pulse = 1; stimulus_event { sound D1_0Int_audio; deltat = 0; #duration = 4000; }stim_snd; }stimulation_trial; ############################################################# 3. PCL ################################################### begin_pcl; ##CHANGE BEFORE SCANNING array <int> rest_duration[4]={2, 2, 2, 2}; int pulse_update = 0; int TR= 2000 ; int stim_duration = 2 ;#*TR; int total_nr_trials = 150 ; #int total_nr_trials = 5; array <int> finger [total_nr_trials] = { 2,4,5,4,5,4,3,8,2,8,5,4,3,8,5,8,4,5,2,8,3,1,5,8,3,1,8,3,8,1,2,5,1,8,5,1,2,4,8,1,3,5,3,4,2,1,3,5,8,3,4,2,4,2,5,1,3,2,1,2,4,8,3,8,2,3,5,1,8,4,3,5,1,8,4,8,3,5,1,2,1,2,1,4,8,5,8,1,5,8,2,8,1,3,2,3,2,3,1,3,2,8,4,1,5,3,5,4,1,3,2,3,8,4,3,8,4,1,4,1,8,5,4,8,2,5,8,2,4,5,4,3,5,2,8,1,8,2,3,5,4,8,1,2,8,5,1,4,2,4}; #array <int> finger [total_nr_trials] = { 1, 2, 3, 4, 5}; array <string> modules[4][5] = { {"D1_0Int", "D2_0Int", "D3_0Int", "D4_0Int", "D5_0Int"}, {"D1_1Int", "D2_1Int", "D3_1Int", "D4_1Int", "D5_1Int"}, {"D1_2Int", "D2_2Int", "D3_2Int", "D4_2Int", "D5_2Int"}, {"D1_3Int", "D2_3Int", "D3_3Int", "D4_3Int", "D5_3Int"}}; ## start of actual trials instructie_trial.present(); #stim_fix_trial.set_duration(9500); #should be 9500 stim_fix_trial.present(); pulse_update = pulse_manager.main_pulse_count()+ 2; stimulation_trial.set_mri_pulse(pulse_update); int i = 1; int intercount = 0; loop until i > total_nr_trials begin if finger[i] < 7 then int randnr = random(1,9); if randnr > 1 && randnr < 6 then stim_snd.set_event_code(modules[2][finger[i]]); elseif randnr > 5 && randnr < 9 then stim_snd.set_event_code(modules[3][finger[i]]); elseif randnr == 9 then stim_snd.set_event_code(modules[4][finger[i]]); else stim_snd.set_event_code(modules[1][finger[i]]); end; if finger[i] == 1 then stim_snd.set_stimulus(sounds_D1[randnr]); elseif finger[i] == 2 then stim_snd.set_stimulus(sounds_D2[randnr]); elseif finger[i] == 3 then stim_snd.set_stimulus(sounds_D3[randnr]); elseif finger[i] == 4 then stim_snd.set_stimulus(sounds_D4[randnr]); elseif finger[i] == 5 then stim_snd.set_stimulus(sounds_D5[randnr]); end; stimulation_trial.present(); pulse_update = pulse_update + stim_duration; fix_trial.set_mri_pulse(pulse_update); stimulation_trial.set_mri_pulse(pulse_update); elseif finger[i] >6 then fix_trial.present(); pulse_update = pulse_update + 2; stimulation_trial.set_mri_pulse(pulse_update); end; i = i + 1; end; fix_trial.set_duration(rest_duration[1]*TR*5); #to get 10 volumes of rest at the end fix_trial.present();
809172190c7ee9b5adc993978cdd5fd1682b8929
449d555969bfd7befe906877abab098c6e63a0e8
/22/CH8/EX8.9/ch8ex9.sce
f4b24a2d5509a896d8b1da3af4c099fac3d452aa
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
734
sce
ch8ex9.sce
//signals and systems //sampling:the bridge from continuous to discrete //DFT to compute the fourier transform of 8rect(t) T_0 = 4; N_0 = 32; T = T_0/N_0; x_n = [ones(1,4) 0.5 zeros(1,23) 0.5 ones(1,3)]'; size(x_n) x_r = fft(x_n);r = (-N_0/2:(N_0/2)-1)'; omega_r = ((r*2)*%pi)/T_0; omega = linspace(-%pi/T,%pi/T,4097); size(omega_r) size(omega) X = 8*(sinc(omega/2)); size(X) figure(1); subplot(2,1,1); plot(omega,abs(X),"k"); plot(omega_r,fftshift(abs(x_r)),"ko") xtitle("angle of X(omega) for true FT and DFT"); a=gca(); subplot(2,1,2); a = gca(); a.y_location ="origin"; a.x_location ="origin"; plot(omega,atan(imag(X),real(X)),"k",omega_r,fftshift(atan(imag(x_r),real(x_r))),'r.'); xtitle("angle of X(omega) for true FT and DFT");
3d6f5de97e319fc501efff93a241c925e59fed08
931df7de6dffa2b03ac9771d79e06d88c24ab4ff
/MordixYT.sce
c9759cbb8d69c2f66e0c52464d1364fc1d9835b7
[]
no_license
MBHuman/Scenarios
be1a722825b3b960014b07cda2f12fa4f75c7fc8
1db6bfdec8cc42164ca9ff57dd9d3c82cfaf2137
refs/heads/master
2023-01-14T02:10:25.103083
2020-11-21T16:47:14
2020-11-21T16:47:14
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
22,636
sce
MordixYT.sce
Name=MordixYT PlayerCharacters=OrbMonk;Windowmaker BotCharacters=Watcher Bot Long Strafes.bot IsChallenge=false Timelimit=60.0 PlayerProfile=OrbMonk AddedBots=Watcher Bot Long Strafes.bot PlayerMaxLives=0 BotMaxLives=0 PlayerTeam=2 BotTeams=1 MapName=cataicfps.map MapScale=1.9 BlockProjectilePredictors=true BlockCheats=true InvinciblePlayer=false InvincibleBots=false Timescale=1.0 BlockHealthbars=false TimeRefilledByKill=0.0 ScoreToWin=1000.0 ScorePerDamage=3.0 ScorePerKill=0.0 ScorePerMidairDirect=0.0 ScorePerAnyDirect=0.0 ScorePerTime=0.0 ScoreLossPerDamageTaken=0.0 ScoreLossPerDeath=0.0 ScoreLossPerMidairDirected=0.0 ScoreLossPerAnyDirected=0.0 ScoreMultAccuracy=false ScoreMultDamageEfficiency=false ScoreMultKillEfficiency=false GameTag=OW, Overwatch WeaponHeroTag=Orb Monk, Pistol, Projectile DifficultyTag=1 AuthorsTag=MordixYT BlockHitMarkers=false BlockHitSounds=false BlockMissSounds=true BlockFCT=false Description=Low pressure fast projectile against an easy to hit target. GameVersion=1.0.7.2 ScorePerDistance=0.0 [Aim Profile] Name=At Feet MinReactionTime=0.3 MaxReactionTime=0.4 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=15.0 TrackSpeed=3.5 TrackError=3.5 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=40.0 ShootFOV=15.0 VerticalAimOffset=-200.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 [Aim Profile] Name=Low Skill At Feet MinReactionTime=0.35 MaxReactionTime=0.45 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=20.0 TrackSpeed=3.0 TrackError=5.0 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=60.0 ShootFOV=25.0 VerticalAimOffset=-200.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 [Aim Profile] Name=Low Skill MinReactionTime=0.35 MaxReactionTime=0.45 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=20.0 TrackSpeed=3.0 TrackError=5.0 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=60.0 ShootFOV=25.0 VerticalAimOffset=0.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 [Aim Profile] Name=Default MinReactionTime=0.3 MaxReactionTime=0.4 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=15.0 TrackSpeed=3.5 TrackError=3.5 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=40.0 ShootFOV=15.0 VerticalAimOffset=0.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 [Bot Profile] Name=Watcher Bot Long Strafes DodgeProfileNames=Long Strafes DodgeProfileWeights=1.0 DodgeProfileMaxChangeTime=5.0 DodgeProfileMinChangeTime=1.0 WeaponProfileWeights=1.0;1.0;2.0;1.0;1.0;1.0;1.0;1.0 AimingProfileNames=At Feet;Low Skill At Feet;Low Skill;Default;Default;Default;Default;Default WeaponSwitchTime=3.0 UseWeapons=false CharacterProfile=Watcher SeeThroughWalls=false NoDodging=false NoAiming=false [Character Profile] Name=OrbMonk MaxHealth=200.0 WeaponProfileNames=Monk Orb;;;;;;; MinRespawnDelay=1.0 MaxRespawnDelay=5.0 StepUpHeight=35.0 CrouchHeightModifier=0.69 CrouchAnimationSpeed=5.0 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=2.0 MovementType=Base MaxSpeed=488.888885 MaxCrouchSpeed=270.0 Acceleration=10000.0 AirAcceleration=16000.0 Friction=100.0 BrakingFrictionFactor=0.0 JumpVelocity=270.0 Gravity=1.0 AirControl=0.16 CanCrouch=true CanPogoJump=false CanCrouchInAir=false CanJumpFromCrouch=true EnemyBodyColor=X=0.771 Y=0.000 Z=0.000 EnemyHeadColor=X=0.000 Y=0.000 Z=0.787 TeamBodyColor=X=0.000 Y=0.000 Z=0.784 TeamHeadColor=X=0.000 Y=0.000 Z=0.787 BlockSelfDamage=true InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=true AirJumpCount=0 AirJumpVelocity=800.0 MainBBType=Cylindrical MainBBHeight=128.0 MainBBRadius=50.0 MainBBHasHead=true MainBBHeadRadius=30.0 MainBBHeadOffset=-30.0 MainBBHide=false ProjBBType=Cylindrical ProjBBHeight=128.0 ProjBBRadius=50.0 ProjBBHasHead=true ProjBBHeadRadius=30.0 ProjBBHeadOffset=-30.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.2 JetpackFullFuelTime=2.0 JetpackFuelIncPerSec=1.0 JetpackFuelRegensInAir=true JetpackThrust=7500.0 JetpackMaxZVelocity=600.0 JetpackAirControlWithThrust=0.15 AbilityProfileNames=;;; HideWeapon=true AerialFriction=0.4 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.5 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 SpawnXOffset=0.0 SpawnYOffset=0.0 [Character Profile] Name=Windowmaker MaxHealth=200.0 WeaponProfileNames=Sniper Rifle;;;;;;; MinRespawnDelay=1.0 MaxRespawnDelay=5.0 StepUpHeight=75.0 CrouchHeightModifier=0.5 CrouchAnimationSpeed=5.0 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=2.0 MovementType=Base MaxSpeed=1000.0 MaxCrouchSpeed=500.0 Acceleration=24000.0 AirAcceleration=16000.0 Friction=8.0 BrakingFrictionFactor=2.0 JumpVelocity=800.0 Gravity=3.0 AirControl=0.125 CanCrouch=true CanPogoJump=false CanCrouchInAir=false CanJumpFromCrouch=true EnemyBodyColor=X=0.774 Y=0.000 Z=0.000 EnemyHeadColor=X=0.729 Y=0.537 Z=0.839 TeamBodyColor=X=0.000 Y=0.000 Z=0.774 TeamHeadColor=X=0.729 Y=0.537 Z=0.839 BlockSelfDamage=true InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=true AirJumpCount=0 AirJumpVelocity=800.0 MainBBType=Cylindrical MainBBHeight=210.0 MainBBRadius=40.0 MainBBHasHead=true MainBBHeadRadius=30.0 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Cuboid ProjBBHeight=230.0 ProjBBRadius=60.0 ProjBBHasHead=true ProjBBHeadRadius=30.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.5 JetpackFullFuelTime=1000.0 JetpackFuelIncPerSec=100.0 JetpackFuelRegensInAir=true JetpackThrust=6000.0 JetpackMaxZVelocity=600.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;Melee.abilmelee; HideWeapon=false AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=0.9 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.5 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 SpawnXOffset=0.0 SpawnYOffset=0.0 [Character Profile] Name=Watcher MaxHealth=200.0 WeaponProfileNames=;;;;;;; MinRespawnDelay=1.0 MaxRespawnDelay=5.0 StepUpHeight=35.0 CrouchHeightModifier=0.69 CrouchAnimationSpeed=2.0 CameraOffset=X=0.000 Y=0.000 Z=20.000 HeadshotOnly=false DamageKnockbackFactor=4.0 MovementType=Base MaxSpeed=488.888885 MaxCrouchSpeed=270.0 Acceleration=10000.0 AirAcceleration=16000.0 Friction=100.0 BrakingFrictionFactor=0.0 JumpVelocity=270.0 Gravity=1.0 AirControl=0.16 CanCrouch=true CanPogoJump=false CanCrouchInAir=true CanJumpFromCrouch=false EnemyBodyColor=X=0.771 Y=0.000 Z=0.000 EnemyHeadColor=X=1.000 Y=0.584 Z=0.004 TeamBodyColor=X=1.000 Y=0.888 Z=0.000 TeamHeadColor=X=1.000 Y=1.000 Z=1.000 BlockSelfDamage=false InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=0.0 MainBBType=Cylindrical MainBBHeight=160.0 MainBBRadius=30.0 MainBBHasHead=true MainBBHeadRadius=30.0 MainBBHeadOffset=-59.900002 MainBBHide=false ProjBBType=Cylindrical ProjBBHeight=160.0 ProjBBRadius=30.0 ProjBBHasHead=true ProjBBHeadRadius=30.0 ProjBBHeadOffset=-59.900002 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.2 JetpackFullFuelTime=4.0 JetpackFuelIncPerSec=1.0 JetpackFuelRegensInAir=false JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=false AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.5 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 SpawnXOffset=0.0 SpawnYOffset=0.0 [Dodge Profile] Name=Long Strafes MaxTargetDistance=1245.901611 MinTargetDistance=373.770477 ToggleLeftRight=true ToggleForwardBack=false MinLRTimeChange=0.5 MaxLRTimeChange=1.5 MinFBTimeChange=0.2 MaxFBTimeChange=0.5 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=50.0 DamageReactionResetTimer=0.5 JumpFrequency=0.2 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 [Weapon Profile] Name=Monk Orb Type=Projectile ShotsPerClick=1 DamagePerShot=46.0 KnockbackFactor=0.0 TimeBetweenShots=0.4 Pierces=false Category=FullyAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=8000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=8000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=0.0 HeadshotCapable=true HeadshotMultiplier=2.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=2.0 ReloadTimeFromPartial=2.0 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=25.0 DelayBeforeShot=0.0 HitscanVisualEffect=Tracer ProjectileGraphic=Ball VisualLifetime=0.1 WallParticleEffect=Gunshot HitParticleEffect=Gunshot BounceOffWorld=false BounceFactor=0.0 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=1.0 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=1.0 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=0.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=0.0 RecoilNegatable=false DecalType=0 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 ProjectileTrail=Circles RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=103.0 ADSFOVScale=Overwatch ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 Explosive=false Radius=500.0 DamageAtCenter=120.0 DamageAtEdge=0.1 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=true DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=true SpreadSSA=1.0,1.0,-1.0,0.0 SpreadSCA=1.0,1.0,-1.0,0.0 SpreadMSA=1.0,1.0,-1.0,0.0 SpreadMCA=1.0,1.0,-1.0,0.0 SpreadSSH=1.0,1.0,-1.0,0.0 SpreadSCH=1.0,1.0,-1.0,0.0 SpreadMSH=1.0,1.0,-1.0,0.0 SpreadMCH=1.0,1.0,-1.0,0.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=false TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.5 AAMaxSpeed=0.5 AADeadZone=0.0 AAFOV=180.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=true TriggerBotDelay=0.001 TriggerBotFOV=0.5 StickyLock=false HeadLock=false VerticalOffset=65.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.095 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Weapon Profile] Name=Sniper Rifle Type=Hitscan ShotsPerClick=1 DamagePerShot=13.0 KnockbackFactor=0.1 TimeBetweenShots=0.1 Pierces=false Category=FullyAuto BurstShotCount=2 TimeBetweenBursts=0.1 ChargeStartDamage=0.1 ChargeStartVelocity=X=1500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=3000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=3000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=3.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=2.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=1.0 ReloadTimeFromPartial=0.8 DamageFalloffStartDistance=2500.0 DamageFalloffStopDistance=4000.0 DamageAtMaxRange=6.0 DelayBeforeShot=0.0 HitscanVisualEffect=Tracer ProjectileGraphic=Ball VisualLifetime=0.1 WallParticleEffect=Gunshot HitParticleEffect=Blood BounceOffWorld=true BounceFactor=0.6 BounceCount=0 HomingProjectileAcceleration=6000.0 ProjectileEnemyHitRadius=0.1 CanAimDownSight=true ADSZoomDelay=0.05 ADSZoomSensFactor=0.38 ADSMoveFactor=0.5 ADSStartDelay=0.25 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=true ShootingBlocksADS=false KnockbackFactorAir=0.1 RecoilNegatable=true DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot=Zoomed Sniper Rifle StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 ProjectileTrail=None RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=50.985001 ADSFOVScale=Clamped Horizontal ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=0.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=true DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=true DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=5.0 BlockedByWorld=true SpreadSSA=2.0,5.5,0.0,3.0 SpreadSCA=2.0,5.5,0.0,3.0 SpreadMSA=2.0,5.5,0.0,3.0 SpreadMCA=2.0,5.5,0.0,3.0 SpreadSSH=2.0,5.5,0.0,3.0 SpreadSCH=2.0,5.5,0.0,3.0 SpreadMSH=2.0,5.5,0.0,3.0 SpreadMCH=2.0,5.5,0.0,3.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=true TimeToRecoilPeak=0.05 TimeToRecoilReset=0.45 AAMode=2 AAPreferClosestPlayer=false AAAlpha=1.0 AAMaxSpeed=1.5 AADeadZone=0.0 AAFOV=75.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=true AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=true TriggerBotDelay=0.01 TriggerBotFOV=0.1 StickyLock=false HeadLock=true VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.095 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false [Weapon Profile] Name=Zoomed Sniper Rifle Type=Hitscan ShotsPerClick=1 DamagePerShot=120.0 KnockbackFactor=0.1 TimeBetweenShots=0.25 Pierces=false Category=Charge BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=0.75 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=2.5 MagazineMax=0 AmmoPerShot=3 ReloadTimeFromEmpty=0.5 ReloadTimeFromPartial=0.5 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=80.0 DelayBeforeShot=0.0 HitscanVisualEffect=Tracer ProjectileGraphic=Ball VisualLifetime=0.5 WallParticleEffect=None HitParticleEffect=None BounceOffWorld=false BounceFactor=0.0 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=1.0 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-80.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=0.1 RecoilNegatable=true DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=true BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 ProjectileTrail=None RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=72.099998 ADSFOVScale=Clamped Horizontal ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=0.1 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,0.0 SpreadSCA=1.0,1.0,-1.0,0.0 SpreadMSA=1.0,1.0,-1.0,0.0 SpreadMCA=1.0,1.0,-1.0,0.0 SpreadSSH=1.0,1.0,-1.0,0.0 SpreadSCH=1.0,1.0,-1.0,0.0 SpreadMSH=1.0,1.0,-1.0,0.0 SpreadMCH=1.0,1.0,-1.0,0.0 MaxRecoilUp=5.0 MinRecoilUp=5.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=true TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.05 AAMaxSpeed=1.0 AADeadZone=0.0 AAFOV=5.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=true VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.095 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false [Melee Ability Profile] Name=Melee MaxCharges=1.0 ChargeTimer=0.25 ChargesRefundedOnKill=0.0 DelayAfterUse=1.0 FullyAuto=false AbilityDuration=0.15 HurtboxRadius=250.0 HurtboxDamage=30.0 HurtboxGroundKnockbackFactor=0.0 HurtboxAirKnockbackFactor=0.0 BlockAttackTimer=0.5 AbilityBlockedWhenAttacking=false AmmoPerShot=0 FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 AIUseInCombat=true AIUseOutOfCombat=false AIUseOnGround=true AIUseInAir=true AIReuseTimer=1.0 AIMinSelfHealth=0.0 AIMaxSelfHealth=100.0 AIMinTargHealth=0.0 AIMaxTargHealth=100.0 AIMinTargDist=0.0 AIMaxTargDist=600.0 AIMaxTargFOV=15.0 AIDamageReaction=false AIDamageReactionIgnoreChance=0.0 AIDamageReactionMinDelay=0.125 AIDamageReactionMaxDelay=0.25 AIDamageReactionCooldown=1.0 AIDamageReactionThreshold=0.0 AIDamageReactionResetTimer=0.1 [Map Data]
74b0bd5e5f2260c5002da0e823090cdbdb082b10
ec137036bbd0b9a8f83ce1b09d94fd2f6fdcbfdf
/part2/eng.judgements.tst
d35dcbd708ef7559b24bc9b0488a4f1f3e570757
[]
no_license
sigmorphon/2021Task0
cef358c80898421a3b9dc966b17b3fe337690a14
a8b31713b838bdb32a9bd84a866ee7d330a0badb
refs/heads/main
2023-08-25T18:06:42.560860
2021-10-14T01:01:48
2021-10-14T01:01:48
339,821,394
21
10
null
2021-10-06T06:49:37
2021-02-17T18:40:57
Scilab
UTF-8
Scilab
false
false
4,686
tst
eng.judgements.tst
b ɑː s t b ɑː s t ɪ d V;PST;1;SG b ɑː s t b ɑː s t V;PST;1;SG b ɪ n d b ɪ n d ɪ d V;PST;1;SG b ɪ n d b ɪ n t V;PST;1;SG b l aɪ b l aɪ d V;PST;1;SG b l aɪ b l uː V;PST;1;SG b l eɪ k b l eɪ k t V;PST;1;SG b l eɪ k b l eɪ k V;PST;1;SG b r ʌ s t b r ʌ s t ɪ d V;PST;1;SG b r ʌ s t b r ʌ s t V;PST;1;SG d r iː v d r iː v d V;PST;1;SG d r iː v d r ɛ f t V;PST;1;SG d ʒ ɪ d d ʒ ɪ d ɪ d V;PST;1;SG d ʒ ɪ d d ʒ ɪ d V;PST;1;SG ə l aɪ z ə l aɪ z d V;PST;1;SG ə l aɪ z ə l əʊ z V;PST;1;SG f ɛ t f ɛ t ɪ d V;PST;1;SG f ɛ t f ɛ t V;PST;1;SG f ɪ l d f ɪ l d ɪ d V;PST;1;SG f ɪ l d f ɪ l t V;PST;1;SG f ɪ ŋ f ɪ ŋ d V;PST;1;SG f ɪ ŋ f ʌ ŋ V;PST;1;SG f l ɪ ŋ k f l ɪ ŋ k t V;PST;1;SG f l ɪ ŋ k f l ʌ ŋ k V;PST;1;SG f r aɪ v f r aɪ v d V;PST;1;SG f r aɪ v f r əʊ v V;PST;1;SG f r iː m f r iː m d V;PST;1;SG f r iː m f r ɛ m p t V;PST;1;SG f r ɪ ŋ k f r ɪ ŋ k t V;PST;1;SG f r ɪ ŋ k f r a ŋ k V;PST;1;SG ɡ ɑː s t ɡ ɑː s t ɪ d V;PST;1;SG ɡ ɑː s t ɡ ɑː s t V;PST;1;SG ɡ eɪ k ɡ eɪ k t V;PST;1;SG ɡ eɪ k ɡ ʊ k V;PST;1;SG ɡ l ɪ t ɡ l ɪ t ɪ d V;PST;1;SG ɡ l ɪ t ɡ l ɪ t V;PST;1;SG ɡ r aɪ ɡ r aɪ d V;PST;1;SG ɡ r aɪ ɡ r əʊ d V;PST;1;SG ɡ r aɪ b ɡ r aɪ b d V;PST;1;SG ɡ r aɪ b ɡ r əʊ b V;PST;1;SG ɡ r aɪ v ɡ r aɪ v d V;PST;1;SG ɡ r aɪ v ɡ r əʊ v V;PST;1;SG ɡ r eɪ k ɡ r eɪ k t V;PST;1;SG ɡ r eɪ k ɡ r eɪ k V;PST;1;SG ɡ r ɛ d ɡ r ɛ d ɪ d V;PST;1;SG ɡ r ɛ d ɡ r ɛ d V;PST;1;SG ɡ r iː m ɡ r iː m d V;PST;1;SG ɡ r iː m ɡ r ɛ m p t V;PST;1;SG ɡ r iː p ɡ r iː p t V;PST;1;SG ɡ r iː p ɡ r ɛ p t V;PST;1;SG ɡ r ɪ ŋ ɡ r ɪ ŋ d V;PST;1;SG ɡ r ɪ ŋ ɡ r ɔː t V;PST;1;SG h aɪ n d h aɪ n d ɪ d V;PST;1;SG h aɪ n d h aʊ n d V;PST;1;SG h ɛ t h ɛ t ɪ d V;PST;1;SG h ɛ t h ɛ t V;PST;1;SG h w ɛ l h w ɛ l d V;PST;1;SG h w ɛ l h w ɛ l t V;PST;1;SG ɪ n d ɪ n d ɪ d V;PST;1;SG ɪ n d ɪ n t V;PST;1;SG k ɛ n d k ɛ n d ɪ d V;PST;1;SG k ɛ n d k ɛ n t V;PST;1;SG k r ɪ ŋ k k r ɪ ŋ k t V;PST;1;SG k r ɪ ŋ k k r ʌ ŋ k V;PST;1;SG l aɪ d l aɪ d ɪ d V;PST;1;SG l aɪ d l ɪ d V;PST;1;SG l aɪ n d l aɪ n d ɪ d V;PST;1;SG l aɪ n d l ɪ n t V;PST;1;SG l ɪ n d l ɪ n d ɪ d V;PST;1;SG l ɪ n d l ɪ n t V;PST;1;SG m iː v m iː v d V;PST;1;SG m iː v m ɛ f t V;PST;1;SG n ɛ n d n ɛ n d ɪ d V;PST;1;SG n ɛ n d n ɛ n t V;PST;1;SG p ɪ n d p ɪ n d ɪ d V;PST;1;SG p ɪ n d p ɪ n t V;PST;1;SG p l ɛ t p l ɛ t ɪ d V;PST;1;SG p l ɛ t p l ɛ t V;PST;1;SG p l ɪ d p l ɪ d ɪ d V;PST;1;SG p l ɪ d p l ɪ d V;PST;1;SG p l ɪ n d p l ɪ n d ɪ d V;PST;1;SG p l ɪ n d p l ɪ n t V;PST;1;SG p r eɪ k p r eɪ k t V;PST;1;SG p r eɪ k p r eɪ k V;PST;1;SG p r əʊ p r əʊ d V;PST;1;SG p r əʊ p r uː V;PST;1;SG p r ɛ d p r ɛ d ɪ d V;PST;1;SG p r ɛ d p r ɛ d V;PST;1;SG p r ɛ n d p r ɛ n d ɪ d V;PST;1;SG p r ɛ n d p r ɛ n t V;PST;1;SG r ɛ d r ɛ d ɪ d V;PST;1;SG r ɛ d r ɛ d V;PST;1;SG s aɪ n d s aɪ n d ɪ d V;PST;1;SG s aɪ n d s aʊ n d V;PST;1;SG s ɪ d s ɪ d ɪ d V;PST;1;SG s ɪ d s ɪ d V;PST;1;SG s k ɑː s t s k ɑː s t ɪ d V;PST;1;SG s k ɑː s t s k ɑː s t V;PST;1;SG s k ɪ k s k ɪ k t V;PST;1;SG s k ɪ k s k ʌ k V;PST;1;SG s k r aɪ v s k r aɪ v d V;PST;1;SG s k r aɪ v s k r əʊ v V;PST;1;SG s p ɑː s t s p ɑː s t ɪ d V;PST;1;SG s p ɑː s t s p ɑː s t V;PST;1;SG s p əʊ l d s p əʊ l d ɪ d V;PST;1;SG s p əʊ l d s p əʊ l t V;PST;1;SG s p ɪ n d s p ɪ n d ɪ d V;PST;1;SG s p ɪ n d s p ɪ n t V;PST;1;SG s t aɪ d s t aɪ d ɪ d V;PST;1;SG s t aɪ d s t ʊ d V;PST;1;SG s t r aɪ t s t r aɪ t ɪ d V;PST;1;SG s t r aɪ t s t r əʊ t V;PST;1;SG s t r ɛ n d s t r ɛ n d ɪ d V;PST;1;SG s t r ɛ n d s t r ɛ n t V;PST;1;SG s t r ɪ ŋ k s t r ɪ ŋ k t V;PST;1;SG s t r ɪ ŋ k s t r ʌ ŋ k V;PST;1;SG s w iː d s w iː d ɪ d V;PST;1;SG s w iː d s w ɛ d V;PST;1;SG ʃ ɪ d ʃ ɪ d ɪ d V;PST;1;SG ʃ ɪ d ʃ ɪ d V;PST;1;SG t ɪ ŋ k t ɪ ŋ k t V;PST;1;SG t ɪ ŋ k t ʌ ŋ k V;PST;1;SG t r aɪ v t r aɪ v d V;PST;1;SG t r aɪ v t r əʊ v V;PST;1;SG t r iː m t r iː m d V;PST;1;SG t r iː m t r ɛ m p t V;PST;1;SG t r ɪ ŋ t r ɪ ŋ d V;PST;1;SG t r ɪ ŋ t r ʌ ŋ V;PST;1;SG t r ɪ ŋ k t r ɪ ŋ k t V;PST;1;SG t r ɪ ŋ k t r ʌ ŋ k V;PST;1;SG w ʌ m w ʌ m d V;PST;1;SG w ʌ m w eɪ m V;PST;1;SG θ r aɪ θ r aɪ d V;PST;1;SG θ r aɪ θ r uː V;PST;1;SG θ r iː m θ r iː m d V;PST;1;SG θ r iː m θ r ɛ m p t V;PST;1;SG θ r iː v θ r iː v d V;PST;1;SG θ r iː v θ r ɛ f t V;PST;1;SG
abfc0ccff45e4eeef10ecd2768902a0671a5e0ec
717ddeb7e700373742c617a95e25a2376565112c
/806/DEPENDENCIES/2_66.sci
95e30bab0c4c04df4c68b173d026a79ea114f26b
[]
no_license
appucrossroads/Scilab-TBC-Uploads
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
refs/heads/master
2021-01-22T04:15:15.512674
2017-09-19T11:51:56
2017-09-19T11:51:56
92,444,732
0
0
null
2017-05-25T21:09:20
2017-05-25T21:09:19
null
UTF-8
Scilab
false
false
95
sci
2_66.sci
d=50//mm(Inner diameter of pipe) t=5//m(thickness of pipe) p=0.89//MPa(Pressure on pipe wall)
6671f8a71ddb03f92edd705b23145d5657be6930
449d555969bfd7befe906877abab098c6e63a0e8
/2417/CH11/EX11.12/Ex11_12.sce
ebe3a6e28e97d7f3a78e427547adcf8c4a864a49
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,383
sce
Ex11_12.sce
//scilab 5.4.1 clear; clc; printf("\t\t\tProblem Number 11.12\n\n\n"); // Chapter 11 : Heat Transfer // Problem 11.12 (page no. 569) // Solution //From problem 11.9, //The bare pipe r2=3.50; //Outside diameter //Unit:in. r1=3.00; //inside diameter //Unit:in. Ti=240; //Inside temperature //unit:fahrenheit L=5; //Length //Unit:ft k=26; //Unit:Btu/(hr*ft*F) //k=proportionality constant //k=thermal conductivity Rpipe=log(r2/r1)/(2*%pi*k*L); //the resistance of pipe //Unit:(hr*F)/Btu printf("The resistance of pipe is %f (hr*F)/Btu\n",Rpipe); //Now,in problem 11.12, To=70; //Outside temperature //unit:fahrenheit deltaT=Ti-To; //Change in temperature //unit:fahrenheit h=0.9; //Coefficient of heat transfer //Unit:Btu/(hr*ft^2*F) A=(%pi*r2)/12*L; //Area //Unit:ft^2 //1 inch = 1/12 feet //unit:ft^2 Rconvection=inv(h*A); //The resistance due to natural convection to the surrounding air //Unit:(hr*F)/Btu printf("The resistance due to natural convection to the surrounding air is %f (hr*F)/Btu\n",Rconvection); Rtotal=Rpipe+Rconvection; //The total resistance //unit:(hr*F)/Btu printf("The total resistance is %f (hr*F)/Btu\n\n",Rtotal); Q=deltaT/Rtotal; //ohm's law (fourier's equation) //The heat transfer from the pipe to the surrounding air //unit:Btu/hr printf("The heat transfer from the pipe to the surrounding air is %f Btu/hr\n",Q);
db57fbbb1c680c341e82eeec5654e58f56270daa
449d555969bfd7befe906877abab098c6e63a0e8
/534/CH9/EX9.2/9_2_Glass_door.sce
b0fb82b808c684dd55b85311169ba616814d8549
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,050
sce
9_2_Glass_door.sce
clear; clc; printf('FUNDAMENTALS OF HEAT AND MASS TRANSFER \n Incropera / Dewitt / Bergman / Lavine \n EXAMPLE 9.2 Page 572 \n'); //Example 9.2 // Heat transfer by convection between screen and room air. //Operating Conditions Ts = 232+273; //[K] Surface Temperature Tsurr = 23+273; //[K] Surrounding Temperature L = .71; //[m] length w = 1.02; //[m] Width //Table A.4 Air Properties T = 400 K k = 33.8*10^-3 ;//[W/m.K] uv = 26.4*10^-6 ;//[m^2/s] Kinematic Viscosity al = 38.3*10^-6 ;//[m^2/s] be = 2.5*10^-3 ;//[K^-1] Tf^-1 Pr = .69 ;// Prandtl number g = 9.81 ;//[m^2/s] gravitational constt Ra = g*be*(Ts-Tsurr)/al*L^3/uv; printf("\n\n As the Rayleigh Number is %.2e the free convection boundary layer is turbulent",Ra); //From equatiom 9.23 Nu = [.825 + .387*Ra^.16667/[1+(.492/Pr)^(9/16)]^(8/27)]^2; h = Nu*k/L; q = h*L*w*(Ts-Tsurr); printf("\n Heat transfer by convection between screen and room air is %i W",q); //END
a40bfc3942315aaf52de1413fb30538140b37bb9
449d555969bfd7befe906877abab098c6e63a0e8
/2267/CH12/EX4.18/Ex12_18.sce
68f42cf9c2b64c07b617dede99bf90d8718b0204
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
195
sce
Ex12_18.sce
//Part B Chapter 4 Example 18 clc; clear; close; d=3.5/1000;//m tau_s=240*10^6;//N/m^2 Ip=%pi/32*d^4;//m^4 T=tau_s*Ip/(d/2);//Nm disp("Maximum torque transmitted is "+string(T)+" Nm.");
7e1938918e29ebe6a655b863d07971cc9d8ab73b
449d555969bfd7befe906877abab098c6e63a0e8
/3523/CH12/EX12.17.5/Ex12_5.sce
766f5b59263a4d193ca471eceed08b773e276585
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex12_5.sce
//Example 5// Ch 12 clc; clear; close; // given data C2 = 0.75/3;//capacitance between 3 core bunched together and lead sheath in uF/km C3=0.56//in uf/km V=33*10^3; f=50;//in Hz C4=0.5*(C2+C3)*10;//capacitance per km b/w any two cores printf("capacitance per km b/w any two cores %f uF",C4) ChargKVAr=V^2*2*%pi*f*C4/10^9; printf("Charging KVAr %f KVAr",ChargKVAr) //given ans in book is wrong the capacitance of 10km b/w 2 cores is 4.05uF
0ca366cb40208c13f6fe7404d419c05c1a3b94b1
01ecab2f6eeeff384acae2c4861aa9ad1b3f6861
/xcos_blocks/nmirror.sci
6463ca69ffcf857a8588804b758ae2ae8974a526
[]
no_license
jhasler/rasp30
9a7c2431d56c879a18b50c2d43e487d413ceccb0
3612de44eaa10babd7298d2e0a7cddf4a4b761f6
refs/heads/master
2023-05-25T08:21:31.003675
2023-05-11T16:19:59
2023-05-11T16:19:59
62,917,238
3
3
null
null
null
null
UTF-8
Scilab
false
false
1,617
sci
nmirror.sci
function [x,y,typ]=nmirror(job,arg1,arg2) x=[];y=[];typ=[]; select job case 'plot' then standard_draw(arg1); case 'getinputs' then [x,y,typ]=standard_inputs(arg1); case 'getoutputs' then [x,y,typ]=standard_outputs(arg1); case 'getorigin' then [x,y]=standard_origin(arg1); case 'set' then x=arg1; graphics=arg1.graphics; model=arg1.model; exprs=graphics.exprs; while %t do [ok,num_of_blk,mblif_num,fix_loc,exprs]=scicos_getvalue('N-mirror',['No. of Nmirrors';'Macro-blif Number';'Fix_location'],list('vec',-1,'vec',-1,'vec',-1),exprs); if ~ok then break,end if ok then model.ipar=[num_of_blk,mblif_num]; model.rpar= [fix_loc']; graphics.exprs=exprs; x.graphics=graphics; x.model=model; break; end end case 'define' then num_of_blk=1; mblif_num=0; fix_loc=[0;0;0]; model=scicos_model(); model.in=[-1]; model.in2=[-1]; model.intyp=[-1]; model.out=[-1;]; model.out2=[-1;]; model.outtyp=[-1;]; model.ipar=[num_of_blk,mblif_num]; model.rpar= [fix_loc']; model.state=zeros(1,1); model.blocktype='d'; model.dep_ut=[%t %t]; exprs=[sci2exp(num_of_blk);sci2exp(mblif_num);sci2exp(fix_loc)]; gr_i=['txt='' Blank '';';'xstringb(orig(1),orig(2),txt,sz(1),sz(2),''fill'')']; x=standard_define([5 2],model, exprs,gr_i); //Numbers define the width and height of block end endfunction
3e5353a3e8c3eb0bf3e14493690f8acbf6dfb8ba
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.3/macros/percent/%lssvp.sci
49c3e8f04614ecdeb6d0d3a280c71d2e003b5070
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-public-domain" ]
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
235
sci
%lssvp.sci
function [sr]=%lssvp(s,p) // feedback sr=(eye+s*p)\s //s=%lssvp(s,p) <=> sr=s/.p // p : polynomial matrix // s : state-space syslin list //! //origine S Steer INRIA 1992 sr=s/.tlist(['lss','A','B','C','D','X0','dt'],[],[],[],p,[],[])
c00ee2313382702ba86727ce6b5368a2742cd028
f6134e0a162a059c42ec3ef8de2a63941d73936c
/Scilab_code/kNN/stackPop.sci
d30eaed89d45895a1fb831bc6efe6c1122ff1167
[]
no_license
mxch18/SRL-WRT_pathPlanning
38a1701934a4a0e919a6c1c7990092b242df72da
6992febbbe103814d2cef5351a0e8917b183a2b0
refs/heads/master
2020-03-23T06:43:54.155192
2018-09-26T17:26:56
2018-09-26T17:26:56
141,226,032
0
0
null
null
null
null
UTF-8
Scilab
false
false
577
sci
stackPop.sci
function [out,stackOut] = stackPop(stackIn) //Author : Maxens ACHIEPI //Space Robotics Laboratory - Tohoku University //Description: //Get the last inserted element in the stack and removes it from the stack (FIFO) //INPUT: //stackIn: the current stack //OUTPUT: //out: the removed element //stackOut: the updated stack //TODO: Handle empty stack //----------------------------------------------------------------------------// out = stackIn(1); stackIn(1) = null(); stackOut = stackIn; endfunction
70a80b590b1fa737b95893a4341b7e7c73185f5a
623a9dd972dc78dbde5d5b8dc187acd6a1eb5910
/TP2/crout.sci
0238161f35db3ec8f3c95c8d881aa0f68ef42699
[]
no_license
gtessi/CN2012-FICH
0daad054ceb6c36636ee5e8b174a676b9e0acb9b
4024384653b61b5af9e1c11ffb575e154025ee47
refs/heads/master
2020-03-27T05:53:04.684505
2018-08-25T03:03:15
2018-08-25T03:03:15
146,059,800
0
0
null
null
null
null
UTF-8
Scilab
false
false
575
sci
crout.sci
function [L, U] = crout(A) n=size(A,1); U=eye(n,n); L=zeros(n,n); // recorro cada fila de la matriz for (k=1:n) // armo la matriz L for (i=k:n) suma=0; for (p=1:k-1) suma=suma+L(i,p)*U(p,k); end L(i,k)=A(i,k)-suma; end // armo la matriz U for (j=k+1:n) suma=0; for (p=1:k-1) suma=suma+L(k,p)*U(p,j); end U(k,j)=(A(k,j)-suma)/L(k,k); end end endfunction
fb65ed7e7b2a56bf513678a550e9f0d20e8d4dbc
449d555969bfd7befe906877abab098c6e63a0e8
/2234/CH3/EX3.28/ex3_28.sce
b98b675f763b4ebf4197c90602b0510990a16f93
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
267
sce
ex3_28.sce
clc; vp=10; //peak voltage v=vp*sqrt(2); //voltage hc=10+7.07; //horizontal components disp(hc,"Hrizontal Components = "); //horizontal components vc=sqrt((hc*hc)+(7.07*7.07)); //vertical components disp(vc,"Vertical Components = "); //vertical components
9943d87d34befdf7ced21325c153c1478f7c8432
449d555969bfd7befe906877abab098c6e63a0e8
/569/CH6/EX6.25/6_25.sci
eb02c0612b6dd0747994101330bd24e2ca425d01
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
344
sci
6_25.sci
// Calculating maximum permissible current through strain gauge, supply voltage // and Power dissipation in series resistance clc; R=100; P=250*10^-3; i=(P/R)^0.5; disp(i,'maximum permissible current (A)=') ei=2*i*R; disp(ei,'maximum supply voltage (V)=') Rs=100; Ps=10^2/Rs; disp(Ps,'Power dissipation in series resistance (W)')
71988e75b0306d38b75571bb8142004b99849664
449d555969bfd7befe906877abab098c6e63a0e8
/3689/CH16/EX16.7/16_7.sce
dc85dd54fd7d1e91e637ac942a817b36b5350081
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
784
sce
16_7.sce
//// //Variable Declaration R = 8.314 //Ideal Gas Constant, J/(mol.K) T = 298 //Temperature of Gas, K MAr = 0.04 //Molecular wt of Ar, kg/mol MKr = 0.084 //Molecular wt of Kr, kg/mol pAr = 360 //Partial Pressure Ar, torr pKr = 400 //Partial Pressure Kr, torr rAr = 0.17e-9 //Hard sphere radius of Ar, m rKr = 0.20e-9 //Hard sphere radius of Kr, m NA = 6.022e23 //Number of particles per mol k = 1.38e-23 //Boltzmann constant, J/K //Calculations pAr = pAr*101325/760 pKr = pKr*101325/760 p1 = pAr*NA/(R*T) p2 = pKr*NA/(R*T) sigm = %pi*(rAr+rKr)**2 mu = MAr*MKr/((MAr+MKr)*NA) p3 = sqrt(8*k*T/(%pi*mu)) zArKr = p1*p2*sigm*p3 //Results printf("\n Collisional frequency is %4.2e m-3s-1",zArKr)
2cac9439b43050433cf78425cb06241aaf899cdd
449d555969bfd7befe906877abab098c6e63a0e8
/1370/CH8/EX8.9/example8_9.sce
cc82355efdc1481b86f1eb254235661be8e398b8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
789
sce
example8_9.sce
//example8.9 clc disp("For half wave rectifier, the SCR operates as shown in the Fig. 8.63.") disp("V_in = 325*sin(wt)=V_m*sin(wt)") disp("Therefore, V_m = 325 V") disp("w=100*pi rad/sec") disp("V_BO=125 V") a=sinh(125/325) format(6) disp(a,"Therefore, alpha=sinh(V_BO/V_m)=") d=(22.619*%pi)/180 format(7) disp(d,"Therefore, alpha=(22.619*pi)/180 radian=") t=0.3947/(100*%pi) format(8) disp(t,"Therefore, Time of alpha(in sec)=alpha/w=0.3947/(100*pi)=") disp("For this period SCR remains OFF in positive half cycle.") disp("While for entire negative half cycle i.e. for pi radians (180 degree) it remains OFF. Thus corresponding time is (angle/w)") a=1/100 disp(a,"i.e. pi/(100*pi)[in sec]= ") t=10+1.25 disp(t,"Total time for which SCR is OFF(in msec) = 10+1.25= ")
4934e6fb750249f8176a9f0719bad21cb874b2e7
449d555969bfd7befe906877abab098c6e63a0e8
/1938/CH5/EX5.20/5_20.sce
e190c4c70b267173964a5ffeb55431a0d5e9360c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,129
sce
5_20.sce
clc,clear printf('Example 5.20\n\n') R_a=0.6,X_s=6 //armature resistance and synchronous reactance per phase E_L=6599, E_ph=E_L/sqrt(3) I_L=180,I_a=I_L //part(i) // using E_ph = sqrt((V_ph*cos(phi)+I_a*R_a)^2 +(V_ph*sin(phi)+ I_a*X_s)^2) and solving for V_ph p=[1 1135.83 -13338836.49] roots(p) V_ph=ans(2) V_L=V_ph*sqrt(3) regulation=100*(E_ph-V_ph)/V_ph phi=acos(0.9) theta=atan( (I_a*X_s+V_ph*sin(phi) )/(E_ph) ) delta=theta-phi printf('(i)0.9 lagging\nTerminal voltage is %.2f V\nVoltage regulation is %.2f percent\nLoad angle is %.2f degrees',V_ph*sqrt(3),regulation,delta*(180/%pi)) //part(ii) phi_2=acos(0.8) // using E_ph = sqrt((V_ph*cos(phi)+I_a*R_a)^2 +(V_ph*sin(phi)- I_a*X_s)^2) and solving for V_ph p=[1 -941.53 -11399574.87] roots(p) V_ph=ans(1) //second root is ignored as its -ve V_L=V_ph*sqrt(3) regulation2=100*(E_ph-V_ph)/V_ph delta_2 = asin( (tan(phi)*(V_ph*cos(phi_2)+I_a*R_a) -I_a*X_s )/E_ph ) printf('\n\n(ii)0.8 leading\nTerminal voltage is %.2f V\nVoltage regulation is %.2f percent\nLoad angle is %.2f degrees',V_L,regulation2,delta_2*(180/%pi))
b9a39f6a01e8a9b1a30d7fe48e0956bdc8fe770b
be96e52def8294f354d9eb84ba5fd00c3306a984
/Templates/EnumTypeTemplate.tst
5dd44226e82e719120c7914f818aca973fef65c3
[ "MIT" ]
permissive
FuryTechs/FuryTech.OdataTypescriptServiceGenerator
e6177564000a74e38e34bf82bd311a8d075b2a33
234c226ebe8a2faeb4f4661d2acca7bbeeb54e95
refs/heads/master
2023-04-28T06:05:05.934471
2023-04-18T05:34:27
2023-04-18T05:34:27
76,648,222
18
11
MIT
2023-04-18T05:34:28
2016-12-16T11:22:28
TypeScript
UTF-8
Scilab
false
false
84
tst
EnumTypeTemplate.tst
// Created by FuryTech.ODataTypeScriptGenerator export enum $Name$ { $members$ }
bc7fdb88b19c685c2113a28d1ec326de5acda4c9
449d555969bfd7befe906877abab098c6e63a0e8
/2201/CH1/EX1.16/ex1_16.sce
2edbfd232820285a99dab433ea444c97e9fd568f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
276
sce
ex1_16.sce
// Exa 1.16 clc; clear; close; // Given data M = 55.85; a = 2.9;// in Å a = a * 10^-8;// in cm Rho = 7.87;// in gm/cc N_A = 6.023*10^23; n = (Rho*N_A*((a)^3))/M;// atom per unit disp("A lattice having "+string(round(n))+" atom per unit cell is a BCC structure");
e5e9d51d161649bad3353432ca2f173143cf7681
449d555969bfd7befe906877abab098c6e63a0e8
/569/CH3/EX3.37/3_37.sci
5c278f39262d2443c22870f1bbc49589930e8c16
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
423
sci
3_37.sci
//to find Cq and its possible errors clc; d=12.5; A=(%pi/4)*d^2*10^-6; W=392; t=600; p=1000; g=9.81; h=3.66; Cq=W/(t*p*A*sqrt(2*g*h)); disp(Cq,'Cq'); dW=.23/W; dt=2/t; dp=.1/100; dA=2*.002; dg=.1/100; dh=.003/h; dd=.002; dCq=Cq*(dW+dt+dp+dA+dg/2+dh/2); disp(dCq*100/Cq,'%age absolute error'); sdCq=Cq*sqrt(dW^2+dt^2+dp^2+4*dd^2+.25*(dg^2+dh^2)); disp(sdCq*100/Cq,'%age standard deviation error');
2c8b9f5c273afab06d685ccd50e6aac21b577ef6
449d555969bfd7befe906877abab098c6e63a0e8
/1823/CH5/EX5.28/SolEx5_28.sce
251d95378c4d50c3a7af4021041d7a3a67ca34be
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
486
sce
SolEx5_28.sce
//a) Find the range of IDQ that can be expected if R1 ¼ 1M and R2 ¼ 3M. (b) Find the range of IDQ that can be expected if R1 ¼ 1M //and R2 = 7M. (c) Discuss the significance of the results of parts a and b. //Example 5.28 page no 159 clear clc Vdd=24 Idqmax=4 Idqmin=2.8 Rs=2 //MΩ Rd=1 //MΩ Vdsqmax=Vdd-Idqmax*(Rs+Rd) Vdsqmin=Vdd-Idqmin*(Rs+Rd) printf("\n The value of Vdsqmax=%0.3f V" ,Vdsqmax) printf("\n The value of Vdsqmin=%0.3f V" ,Vdsqmin)
a8363247362e115e6af89500243cbffed03bee29
449d555969bfd7befe906877abab098c6e63a0e8
/1478/CH3/EX3.7.12/3_7_12.sce
5192ea8a2d3a9d5cae5c1babc09e6068e8c0817a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
437
sce
3_7_12.sce
//lubricants// //example 3.7.12// clc wt_oil=4.45//weight f oil saponified(gms)// volume=2.5//volume of alcoholic KOH consumed to neutralize fatty acids(ml)// normality_KOH=0.01//normality of KOH // A=volume*normality_KOH*56/wt_oil//formula for acid value// printf("\nAcid value of oil is %.3f mgs KOH",A); if A<=0.1 then printf("\nOil can be used for lubrication"); else printf("\nOil cannot be used for lubrication"); end
67afda122687688580e8aef1b6a2c091cda855d7
449d555969bfd7befe906877abab098c6e63a0e8
/1691/CH6/EX6.21/Exmp6_21.sce
ad9df095299212e330d2763cda4b8063cb054d49
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Exmp6_21.sce
//Example 6.21 clc disp("R_L = 8 ohm, P_ac(max) = 40 W") disp("2*N1 = 160, N2 = 40") disp("N1 = 80") n=40/80 format(4) disp(n,"n = N2/N1 =") rl=8/0.5^2 disp(rl,"Therefore, R''_L(in ohm) = R_L / n^2 =") disp("Under maximum condition, V_CC = V_m") disp("Therefore, P_ac(max) = 1/2 * V_CC^2/R''_L") vcc=sqrt(40*2*32) format(6) disp(vcc,"Therefore, V_CC(in V) =") disp("This is the required value of V_CC")
f278a46ee764a0bfe055be73b3be670ba06b928a
449d555969bfd7befe906877abab098c6e63a0e8
/3784/CH1/EX1.2/Ex1_2.sce
c74318d3b444d3abe8dced6448e6713834e22648
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,106
sce
Ex1_2.sce
clc // variable Initialization Vm=208 //Supply Voltage In Volts af=0 //Firing Angle Of Converters In Field Rf=147 //Field Resistance In Ohm Ra=0.25 //Armature Resistance In Ohm T=45 //Load Torque In N-m Kv=0.7032 //Motor Voltage Constant N=1000 //Motor Speed In Rpm //Solution Vf=Vm*(1+cos(af))*(1/%pi)*1.414 //Voltage Across Field In Volts If=Vf/Rf //Field Current In Amp Ia=T/(Kv*If) //Armature Current In Amp w=(2*%pi*N)/60 //Angular Speed In Rad/Sec Eb=Kv*If*w //Back Emf In Volts Va=Eb+Ia*Ra //Voltage Across Armature In Volts A=%pi*Va*(1/Vm)*(1/1.414) aa=acosd(A-1) //Delay Angle Of Semi Converter In Armature Circuit VaIa=Va*Ia //Power Output Of Converters In Armature Circuit In Watts I=sqrt((180-aa)*(1/180))*Ia //Input Current VA=Vm*I //Input VA Pf=VaIa/VA //Input Power Factor //Result printf('\n\n The Field Current=%0.1f Amp\n\n',If) printf('\n\n The Delay Angle Of Semi Converter In Armature Circuit=%0.1f degree\n\n',aa) printf('\n\n The Power Factor Of Semi Converter In Armature Circuit=%0.1f\n\n',Pf) //The answers vary due to round off error(2nd and 3rd)
ef355c7ac9c7b9772ecea8ebd33974e4c7c6c40a
271e1c7556443952fc17a95243f62923f3b742a4
/scilab/mdf.sce
60dd74dc32b4d2550eaa550a572f6122a931c762
[]
no_license
Edlward/aec
5b38f9d8d502e27ae7037c6bc20568ee0ccb4f50
3aa5e2f81be6818c5b9b837512431f527a85dc2c
refs/heads/master
2021-06-01T03:57:16.874040
2016-07-13T18:33:01
2016-07-13T18:33:01
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
6,028
sce
mdf.sce
// MULTIDELAY BLOCK FREQUENCY DOMAIN ADAPTIVE FILTER // Interesting links: // https://en.wikipedia.org/wiki/Multidelay_block_frequency_domain_adaptive_filter // http://mathworld.wolfram.com/FourierMatrix.html // http://www.mathworks.com/help/signal/ref/dftmtx.html funcprot(0); // create Fourier transform matrix F(n, n) function F = dftmtx(n) i = complex(0, 1); // imaginary unit F = ones(n, n); for j = 1:n for k = 1:n F(j, k) = exp(2*%pi*i*(j-1)*(k-1)/n); end end endfunction function test_dftmtx() // 128 samples, containing 4 sine periods t = 0:127; x = sin(2*%pi*t/32); X_FFT = fft(x); // use scilab function F = dftmtx(128); X_F = x * F; // use Fourier matrix subplot(2, 1, 1); plot(abs(X_FFT)); xtitle('scilab fft()'); subplot(2, 1, 2); plot(abs(X_F)); xtitle('Fourier transform matrix'); endfunction // creates block diagonal matrix from k square matrices function [y] = mdiag(m, k) s = size(m); s = s(1); y = zeros(s*k, s*k); for i=0:(k-1) y((s*i+1):(s*(i+1)), (s*i+1):(s*(i+1))) = m; end endfunction function test_mdiag() m = ones(2, 2); y = mdiag(m, 3); disp(y); endfunction // Calculates response of a system in frequency domain. // Input variables: // x ... input signal (row vector) // h ... filter coefficients in freq domain (column vector 2Nx1) // N ... filter block size (scalar value) function y = mdf_response(x, h, N) L = length(h) / 2; // length of filter K = L / N; // number of blocks y = zeros(1, length(x)); // prepare output vector // Fourier transform matrices F = dftmtx(2*N); Finv = inv(F); // normalization matrix 2Nx2N G1 = abs(F * [zeros(N, 2*N); zeros(N, N) eye(N, N)] * Finv); // how many blocks in input signal B = length(x) / N; // X(l) composed of diag(fft(xf_k)) X = zeros(2*N, 2*N*K); // input with zero-padding x0 = [zeros(1, (K-1)*N) x zeros(1, N)]; for l = 1:B // calculate X(l) for k = 0:(K-1) // subset of x which is to be FFT'd xf_k = x0(((l+K-2-k)*N+1):((l+K-k)*N)); // x_k as defined in Wiki x_k = abs(diag(F*(flipdim(xf_k, 2))')); // place x_k to X(l) X(1:$, (k*2*N+1):((k+1)*2*N)) = x_k; end // output of filter, needs to IFFT ye_l = G1 * X * h; // 2Nx1 // IFFT y_l = real(Finv * ye_l); // 2Nx1 // store last N values to output vector y(((l-1)*N+1):(l*N)) = (y_l((N+1):(2*N)))'; end endfunction function test_mdf_response() Fs = 1000; t = 0:1/Fs:(1-1/Fs); x1 = sin(2*%pi*10*t); x2 = sin(2*%pi*100*t); x = x1 + x2; h = 0.9 * ones(24, 1); y = mdf_response(x, h, 4); subplot(2, 1, 1); plot(t, x); subplot(2, 1, 2); plot(t, y); endfunction // MDF algorithm, as described on Wikipedia // Input variables: // x ... input to unknown system + adaptive filter // y ... output from unknown system + interference // N ... length of one adaptive filter block // K ... number of adaptive filter blocks // Output variables: // e ... error output, estimate of interference // y ... adaptive filter output // H ... history of adaptive filter weights function [e, y, H] = mdf(x, y, N, K) // filter parameters L = N*K; // length of filter h = zeros(2*N*K, 1); // filter weights mu = 0.7; // Fourier transform matrices F = dftmtx(2*N); Finv = inv(F); // normalization matrices G1 = F * [zeros(N, 2*N); zeros(N, N) eye(N, N)] * Finv; G2t = F * [eye(N, N) zeros(N, N); zeros(N, 2*N)] * Finv; G2 = mdiag(G2t, K); B = length(x) / N; // how many blocks in input signal H = zeros(B, 2*N*K); // history of h vector // X(l) composed of diag(fft(xf_k)) X = zeros(2*N, 2*N*K); // input with zero-padding x0 = [zeros(1, (K-1)*N) x zeros(1, N)]; for l = 1:B // calculate X(l) for k = 0:(K-1) // subset of x which is to be FFT'd xf_k = x0(((l+K-2-k)*N+1):((l+K-k)*N)); // x_k as defined in Wiki x_k = diag(F*(flipdim(xf_k, 2))'); // place x_k to X(l) X(1:$, (k*2*N+1):((k+1)*2*N)) = x_k; end // real y(l) y_l = y(((l-1)*N+1):(l*N)); // 1xN // 2N-FFT'd y(l) df_l = F * [zeros(1, N) y_l]'; // 2Nx1 // estimate y(l), output of adaptive filter ye_l = G1 * X * h; // 2Nx1 // FFT'd error signal ef_l = df_l - ye_l; // normalisation matrix Phi = X' * X; H(l, 1:$) = h'; // update filter weights h = h + mu * G2 * Phi * X' * ef_l; // IFFT of error signal e_l = real(Finv * ef_l); y_l = real(Finv * ye_l); // store last N values to outputs vector e(((l-1)*N+1):(l*N)) = (e_l((N+1):(2*N)))'; y(((l-1)*N+1):(l*N)) = (y_l((N+1):(2*N)))'; end endfunction // SCRIPT SECTION ---------------------------------------------------- // input signal t = 0:1023; x1 = sin(2*%pi*t/10); x2 = sin(2*%pi*t/100); x = x1 + x2; // MDF parameters N = 8; // length of one block K = 3; // number of blocks // real system F = dftmtx(2*N); h = 0.9 * ones(N, 1); // one block in time domain h0 = [h; zeros(N, 1)]; // padded with zeros hfk = abs(fft(h0)); // one block in frequency domain hf = [hfk; hfk; hfk]; // all blocks in frequency domain printf("calculating response...\n"); y = mdf_response(x, hf, N); printf("calculating MDF...\n"); [e, ye] = mdf(x, y, N, K); //deletefile('mdf_e.txt'); //write('mdf_e.txt', e, '(1(f7.2,3x))'); //deletefile('mdf_y.txt'); //write('mdf_y.txt', y, '(1(f7.2,3x))'); //deletefile('mdf_h.txt'); //write('mdf_h.txt', H, '(24(f7.2,3x))'); subplot(211); plot(t, x); subplot(212); plot(t, y);
9b0e9ae84ca7d7949607875649f90c775f8b210f
6dc71f120472f68e559fa0558d1fdd089dc6fb0b
/write4Latex3D.sci
ae62fe5f6645d14075bae4ffddcf529af08a214e
[]
no_license
DASnoeken/Scilab_for_LaTeX
72bfa2bf8354984efeb43d0ec261bed942abecd7
9a43b066ee126a0f2ea8905e8efe24378ab200e3
refs/heads/master
2022-10-23T17:50:58.764916
2020-06-07T14:26:27
2020-06-07T14:26:27
270,330,021
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,214
sci
write4Latex3D.sci
function write4Latex3D(A,name) //This function is able to write an nx3 matrix to a .csv file so it can be //used in Latex for making data contour plots. // //Input A: nx3 matrix that represents the data //Input name: string that will be the name of the outputfile // // 16-07-2019 D.A. Snoeken if argn(2)~=2 then mprintf('Example: write4Latex3D(Matrix,outname)\n') error('Need nx3 matrix and string as input.') end if size(A,2)~=3 then error('Input must be nx3 matrix.') end name=string(name); while(isfile(name+'.csv')) mprintf('WARNING! File %s.csv already exists!\n',name) x = input('Overwrite? (yes/no) ','string'); if(x=='yes') mprintf('Overwriting %s.csv!',name) break; else x=input('Give a new name: ','string'); name=x; end end mprintf('output written to ./%s.csv',name); fd=mopen(msprintf('./%s.csv',name),'w'); mclose(fd); fid=mopen(msprintf('./%s.csv',name),'a'); mfprintf(fid,'x,y,z\n'); for i=1:size(A,1) mfprintf(fid,'%.5f,%.15f,%.15f\n',[A(i,1) A(i,2) A(i,3)]); end mclose(fid); endfunction
0c04d2d21972e3887af109b41963fe9e239bc03e
449d555969bfd7befe906877abab098c6e63a0e8
/257/CH7/EX7.19/example_7_19.sce
3c923811e50f01fdfe4a37983e48ef34bc471d0c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
420
sce
example_7_19.sce
q=poly([0 20 1],'s','coeff'); G=400/q //gain FACTOR=k H=1 T=G/(1+G*H) omegaN=sqrt(400) zeta=20/(2*omegaN) disp(omegaN,"omegaN = ") disp(zeta,"zeta = ") omegaD=omegaN*sqrt(1-zeta^2) theta= atan(sqrt(1-zeta^2)/zeta) disp(theta,"theta = ") syms s t c=(1-(%e^(-zeta*omegaN*t))/sqrt(1-zeta^2)*sin(omegaD*t+theta)) disp(c, " c = ") Kv=limit(s*G*H,s,0) disp(Kv, " Kv = ") Ess=1/Kv disp(Ess, " Ess = ")
e019a9bf258ceae67fb74570f540b492e82931bc
28a8d47c4d79b231f8bebc28925792a290f67e9f
/bk/others/sql/create_xml_from_json.tst
5bc80875a21f19530a5a45b19149690f11eb11c7
[]
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
3,519
tst
create_xml_from_json.tst
PL/SQL Developer Test script 3.0 118 -- Created on 13.10.2014 by ZHURAVOV_VB declare -- Local variables here cursor l_parse_cur is with t_data as ( select t.id, t.parent_id, t.name, t.type, t.value, row_number()over(partition by t.name order by t.id) rnum from table(xxdoo.xxdoo_json_pkg.parse_json( '{"contractor.name":"test",'|| '"contractor.sites.site.id":null,'|| '"contractor.sites.site.site_number":"1",'|| '"contractor.sites.site.phones":[66,88,77],'|| '"contractor.sites.site.tax_reference":"12345",'|| '"contractor.sites.site.id":null,'|| '"contractor.sites.site.site_number":"2",'|| '"contractor.sites.site.phones":[66,88,77],'|| '"contractor.sites.site.tax_reference":"56789",'|| '"contractor.category.name":"vendor"}' )) t where 1=1 order by t.id ), t_parse as ( select 0 lvl, 0 id, null parent_id, 'U' type, 0 atom, null parent, 'contractor' name, null value, 1 rnum from dual union all select level lvl, t.id, t.parent_id, t.type, case t.type when 'A' then 0 else CONNECT_BY_ISLEAF end atom, regexp_substr(t.name,'[^.]+',1,level) parent, regexp_substr(t.name,'[^.]+',1,level+1) name, t.value, row_number()over(partition by sys_connect_by_path(regexp_substr(t.name,'[^.]+',1,level+1),'.') order by t.id) rnum from t_data t where 1=1 connect by prior id = id and prior dbms_random.value is not null and level <= regexp_count(name,'[.]+') ), t_analit as ( select p.lvl, p.id, p.type, p.atom, p.name, case p.atom when 1 then p.value end value, rnum, lag(rnum,1,99)over(order by id, lvl)rnum_prior from t_parse p ) select a.lvl, a.atom, a.name, a.value from t_analit a where (a.rnum = 1 or (a.rnum < a.rnum_prior)) and a.type <> 'A' order by a.id, a.lvl; -- type l_parent_nodes_typ is table of varchar2(1024) index by pls_integer; l_parent_nodes l_parent_nodes_typ; -- s xxdoo.xxdoo_db_select; t xxdoo.xxdoo_db_text; l_level_prior number; l_atom_prior number; x xmltype; begin s := xxdoo.xxdoo_db_select(); t := xxdoo.xxdoo_db_text(); t.append('xmlroot('); t.inc; l_level_prior := 0; l_atom_prior := -1; -- Test statements here for e in l_parse_cur loop if l_level_prior > e.lvl then t.append(rpad(')',l_level_prior - e.lvl,')'),false); t.dec(l_level_prior - e.lvl); elsif l_level_prior < e.lvl then t.inc(e.lvl - l_level_prior); end if; -- if l_atom_prior = 1 then t.append(','); elsif e.lvl > 1 then t.append(null); end if; -- l_level_prior := e.lvl; l_atom_prior := e.atom; t.append('xmlelement("'||e.name||'",',false); -- if e.atom = 1 then t.append(''''||e.value||''')',false); end if; -- end loop; -- t.append(rpad(')',l_level_prior-1,')')||','); t.dec(l_level_prior); t.append('version 1.0)'); dbms_output.put_line(t.get_text); -- s.s(t, 'xml_info'); s.f('dual'); -- dbms_output.put_line(s.build); return; execute immediate s.build into x; dbms_output.put_line(x.getStringVal); --*/ end; 0 0
368e172533d9067d931600c29e13bbedfe2df9f7
449d555969bfd7befe906877abab098c6e63a0e8
/991/CH6/EX6.16/Example6_16.sce
3aeb53a3e9a099be2f20088169beb8c0e7ee1c34
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
264
sce
Example6_16.sce
//Example 6.16. clc format(6) delta_IC=0.995*10^-3 delta_IE=1*10^-3 alpha=delta_IC/delta_IE disp(alpha,"Common base current gain is, alpha = delta_IC/delta_IE = ") beta=alpha/(1-alpha) disp(beta,"Common-emitter current gain is beta = alpha / (1-alpha) = ")
118fe51dee10bd92a7f0d88a2a92c7bef2d62acf
a195e307602bacc3397b8f74a3b9b4cbd7a3b752
/trajectory_generator/scilab/test.sce
7aae2ea9d92737b46ad731815cff3cbaecf90231
[ "BSD-3-Clause" ]
permissive
Robator/red_manipulation_step
eb0026e92b9eef7ba1bbf9bd2bc9730be7a45f02
7f8d82c47a97a1ae641fbfee64efa09c23f56853
refs/heads/master
2021-01-01T18:30:54.118019
2018-03-11T08:25:11
2018-03-11T08:25:11
98,350,282
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,774
sce
test.sce
clear(); directory = "/home/egor/vrepWS/src/red_manipulation_step/trajectory_generator/scilab/"; exec(directory + "math.sce", -1); exec(directory + "kinematic.sce", -1); exec(directory + "Trajectory.sce", -1) //q = [-%pi/4; -%pi/4; %pi/4; %pi/2; -%pi/2] //[P, R] = FK(q) //config = [0, 1]; //a = IK(P, R, config) //q_i = [0; 0; 0; 0; 0]; //[P, R] = FK([0; %pi/2; 0; 0; 0]); //v = [P; %pi/2; %pi]; //q = numIK(v, q_i) v_i = [0.3; -0.1; 0; %pi/2; 0]; v_e = [0.3; 0; 0; %pi/2; 0]; maxVel = 0.1; maxAccel = 1; timeStep = 0.01; [t, v, x, r] = workSpaceTraj(v_i, v_e, maxAccel, maxVel, timeStep); s_traj = [x; r]; // ** Convert work space to joint space q_i = zeros(DOF, 1); q_traj = []; q_min = []; q_max = []; n_trj = []; n = 0; // error e = 0; for i = 1:length(t); [q_curr, e] = numIK(s_traj(:, i), q_i); q_i = q_curr; // if () // n = int(q_curr/(2*%pi)); // qMinCurr = n*2*%pi + jointLimits(:, 1); // qMaxCurr = n*2*%pi + jointLimits(:, 2); // n_trj = [n_trj, n]; // q_min = [q_min, qMinCurr]; // q_max = [q_max, qMaxCurr]; // for j = 1:DOF // if (q_curr(j) > qMaxCurr(j)) then // q_curr(j) = q_curr(j) - 2*%pi; // elseif (q_curr(j) < qMinCurr(j)) then // q_curr(j) = q_curr(j) + 2*%pi; // end // end // q_curr = q_curr - n*2*%pi; q_traj = [q_traj, q_curr]; end // ** end ** T = length(t); for i = 1:DOF subplot(DOF, 1, i) // plot(t, n_trj(i, :)*2*%pi, 'k--'); // plot(t, q_max(i, :), 'r--'); // plot(t, q_min(i, :), 'r--'); // plot([t(1), t(T)], [jointLimits(i, 1), jointLimits(i, 1)], 'k--'); // plot([t(1), t(T)], [jointLimits(i, 2), jointLimits(i, 2)], 'k--'); plot(t, q_traj(i, :)); a = gca(); // a.data_bounds = [t(1), -n*%pi; t(T), %pi]; end
e9eff2741ac42c426c5e7850d9d099f24ba6838a
449d555969bfd7befe906877abab098c6e63a0e8
/3637/CH4/EX4.17/Ex4_17.sce
8a3c42f844a3229740934bb4101d21d170bbc850
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
153
sce
Ex4_17.sce
//problem 17 pagenumber 4.45 //given vref=10;//volt vin=100e-3;//volt v0=vref*vin/10^-3;format(6); disp('Output voltage = '+string(v0)+' counts');
1142f30d1bf6027050b3cab451c42dc75d3117c7
449d555969bfd7befe906877abab098c6e63a0e8
/1217/CH9/EX9.1/Exa9_1.sce
bd7b957dc0b890802d759e1f9706313894f18c56
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
375
sce
Exa9_1.sce
//Exa 9.1 clc; clear; close; //given data Iq=5;//in mA Vo=18;//in volts Vreg=15;//in volts disp("we have to find the values of R1 & R2 which can be used with IC7815 to produce this voltage"); R1=Vreg/(10*Iq*10^-3);//in Ohms; Iq must be in Amperes here R2=(Vo-Vreg)/(11*Iq*10^-3);//in Ohms; Iq must be in Amperes here disp(R2,R1,"the values of R1 and R2 are : ");
b97064f53a71609613c0f09f71a10df03ce6f7c9
b801b811d1e45665a31cfc99d79ae520ae636363
/test/lt/lt.tst
b6b71c8305dd4cdbe3b5ee410b10dc56e7811cfa
[]
no_license
jibuntu/vmtranslator_nand2tetris
f737f05ec091508944ba5d8a1d2697079ca817c8
4c52f6bdcc265fd8e73310b105a0bd1201e55814
refs/heads/master
2022-05-25T02:07:31.170385
2020-04-28T13:35:53
2020-04-28T13:35:53
257,823,204
0
0
null
null
null
null
UTF-8
Scilab
false
false
345
tst
lt.tst
// ltのテスト load lt.asm, output-file lt.out, compare-to lt.cmp, output-list RAM[0]%D2.6.2 RAM[256]%D2.6.2 RAM[257]%D2.6.2 RAM[258]%D2.6.2; set RAM[0] 256, // initializes the stack pointer repeat 120 { // enough cycles to complete the execution ticktock; } output; // the stack pointer and the stack base
8c29feb41adb3791d1cc3628c58742bfd0bc4327
449d555969bfd7befe906877abab098c6e63a0e8
/680/CH8/EX8.09/8_09.sce
4e6067a1036313061076fd682b63dfddfa904dc1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
314
sce
8_09.sce
//Problem 8.09: //initializing the variables: Tn = 100; // in deg C P = 101370; // in Pa dHn = 2200; // in kJ/Kg Tc = 370; // in deg C T = 250; // in deg C //calculation: dH250 = dHn*(1 - ((T - Tn)/(Tc - Tn))^2) printf("\n\nResult\n\n") printf("\n the enthalpy of vaporization is %.0f kJ/kg",dH250)
0a9a2fe2eb614beb77b817070669b72a78b315bc
b26cbe6bc3e201f030705aaf9eb82da94def231f
/tests/Morisita_RP-026.tst
809bde0225cba1f2b8978ed07fdaf0915bd9a24a
[]
no_license
RP-pbm/Recurrence-plot
f86c5cd85460661b01a609f8f4281d2cda6b4e07
b5da95f9b30c1a924a002102219bf0a2ad47df2c
refs/heads/master
2022-07-24T12:11:34.163543
2022-07-09T19:32:43
2022-07-09T19:32:43
92,934,698
0
0
null
null
null
null
UTF-8
Scilab
false
false
31
tst
Morisita_RP-026.tst
../inputs/pops-11x2-sqrt-01.ssv
987492791db219d1390f9d70319e0eb5440a7c3e
449d555969bfd7befe906877abab098c6e63a0e8
/278/CH15/EX15.2/ex_15_2.sce
f2a1442fe084f21f81dd90d9e867dea358d60bc8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
487
sce
ex_15_2.sce
clc //solution //given t=15//mm Fp=900//N //let Rq and Rr be rxn at Q and R ///tkaing monnt abt R Rq=900*950/150//N Rr=Rq-900//N printf("the rxn at Q and R are ,%f N\n,%f N\n",Rq,Rr) d1=12//mm//dia of tie rod A=(%pi/4)*d1^2//mm^2 ft=Rq/A//N/mm^2 printf("the stress acting is,%f N/mm^2\n",ft) //dp=dq=dr=12//mm dp=12//mm Ap=(%pi/4)*dp^2//mm^2 Aq=Ap Ar=Ap tp=Fp/Ap tq=Rq/(2*Aq) tr=Rr/(2*Ar) printf("the shear stressa cxting at P,Q,R are ,%f N/mm^2\n, %f N/mm^2\n, %f N/mm^2\n",tp,tq,tr)