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
e862f21908ff9dbd88134a44e5b431eafb234fb4
7b040f1a7bbc570e36aab9b2ccf77a9e59d3e5c2
/Scilab/virtual/2dof_controller/dc/ss/scilab/double_int_dead.sce
26ea4a2ea82eef33de53c576d281528b47779b13
[]
no_license
advait23/sbhs-manual
e2c380051117e3a36398bb5ad046781f7b379cb9
d65043acd98334c44a0f0dbf480473c4c4451834
refs/heads/master
2021-01-16T19:50:40.218314
2012-11-16T04:11:12
2012-11-16T04:11:12
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
549
sce
double_int_dead.sce
// Double integrator, p. 362 and p. 446 of Ogata a1 = [0 1; 0 0]; b1 = [0;1]; c1 = [1 0]; d1 = 0; // Transfer functions Ga = syslin('c',a1,b1,c1,d1); Ts = 0.2; [B,A,k] = myc2d(Ga,Ts); // Discrete time state space matrices [a,b,c,d] = abcd(dscr(Ga,Ts)); // Transient specifications roots = [0,0]; phi_pol = poly(roots,'x'); phi = flip(coeff(phi_pol)); // State space pole placement controller K = ppol(a,b,roots) // Transfer function approach to controller design [Rc,Sc,Tc,gamm] = pp_basic(B,A,k,phi); Sc/Rc(1), Rc/Rc(1)
16468b6e1944ec7f9c1eb75bebb329f0584e0d56
449d555969bfd7befe906877abab098c6e63a0e8
/659/CH5/EX5.6/exm5_6.sce
42e10995cefaa7b8b496e53004348c5f47d8292b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
638
sce
exm5_6.sce
// Example 5.6 // A program to process loan applications and to sanction loans. MAXLOAN=50000; disp("Enter the values of previous two loans"); loan1=int32(input("Enter first loan:")); loan2=int32(input("Enter second loan:")); loan3=int32(input("Enter the values of new loan:")); sum23=loan2+loan3; //Calculate the sanction loan if(loan1>0), sancloan=0; elseif(sum23>MAXLOAN), sancloan=MAXLOAN-loan2; else sancloan=loan3; end //Print the results printf("Previous loans pending:%d %d\n",loan1,loan2); printf("Loan requested =%d\n",loan3); printf("Loan sanctioned =%d\n",sancloan);
928d4f254f27d64bd74e33f32b71f164d2621162
449d555969bfd7befe906877abab098c6e63a0e8
/3869/CH2/EX2.17/Ex2_17.sce
85aca5febe0e1b5abcb83ff93c5c2bc4d4c49640
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
295
sce
Ex2_17.sce
clear // // // //Variable declaration theta=15*%pi/180 //angle(radian) lamda=6500*10**-8 //wavelength(cm) n=1 //order //Calculation a=n*lamda/sin(theta) //slit width(cm) //Result printf("\n slit width is %0.2f *10**-4 cm",a*10**4)
bbf18be8aa326a63c07e3376ebdc839fffdb3032
449d555969bfd7befe906877abab098c6e63a0e8
/1118/CH1/EX1.4/eg1_4.sce
4ce951b2aec852193f8dcf6e185e1fa37e465567
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
367
sce
eg1_4.sce
clear; clc; x=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 ];//dividing the x axis in 24 hours y=[30 30 30 30 20 20 20 20 20 8 8 8 8 8 8 8 8 8 8 8 8 8 8 5];//load in MW values bar(x,y,1,'blue'); //plotting the bargraph with a width of 1 xlabel('time in hours'); ylabel('load in MW'); title('LOAD DURATION CURVE');
fceea5e8b2c7347b09c374b9570071ea9fe53d5e
a5de878687ee2e72db865481785dafbeda373e2a
/trunck/OpenPR-0.0.2/macros/emparams.sci
eea7af9b7633759b3219410dc95953503124091c
[ "BSD-3-Clause" ]
permissive
Augertron/OpenPR
8f43102fd5811d26301ef75e0a1f2b6ba9cbdb73
e2b1ce89f020c1b25df8ac5d93f6a0014ed4f714
refs/heads/master
2020-05-15T09:31:08.385577
2011-03-21T02:51:40
2011-03-21T02:51:40
182,178,910
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,794
sci
emparams.sci
////////////////////////////////////////////////////////////////////////////// // Author: Jia Wu // Version: 0.1 // Date: Dec. 2009 // // // Copyright (C) 2009 OpenPR // All rights reserved. // // 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 OpenPR 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 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 HOLDER AND 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. //////////////////////////////////////////////////////////////////////////// function params = emparams(nclusters, cov_mat_type, start_step, iter, eps, probs, weights, means, covs) //function params = emparams(nclusters, cov_mat_type, start_step, term_crit, probs, weights, means, covs) rhs = argn(2); if rhs == 0 then disp('Create a struct variable containing parameter values for EM algorithm.'); disp('Usage:', 'params = emparams(nclusters[,cov_mat_type,start_step,iter,eps,probs,weights,means,covs])'); disp('nclusters: number of Gaussian distributions.'); disp('cov_mat_type: type of covariance matrix. 0 - spherical, 1 - diagonal, 2 - generic'); disp('start_step: initial step EM starts from. 0 - Auto-step, 1 - E-step, 2 - M-step'); disp('iter/eps: termination criteria of the procedure. iter for iteration times; eps for difference of change.'); disp('probs: initial probabilities (Pi,k); used(must be not NULL) only when EM starts from M-step'); disp('weights: initial weights for each distribution; used(if not NULL) only when EM starts from E-step'); disp('means: initial means of each distribution; used(must be not NULL) only when EM starts from E-step'); disp('covs: initial covariance matrix of each distribution; used(if not NULL) only when EM starts from E-step'); // disp('term_crit: termination criteria of the procedure. It is struct variable and is a combination of iteration times and parameter of change'); disp('params: a struct variable containing the parameters of EM algorithm.'); abort; end if rhs < 1 | rhs > 8 then error('The number of input arguments should be in the range of [1, 8].\n'); end //default cov_mat_type1 = 1; start_step1 = 0; probs1 = []; weights1 = []; means1 = []; covs1 = []; // term_crit1 = struct('iter', 1000, 'eps', 1e-6); iter1 = 1000; eps1 = 1e-6; if exists('cov_mat_type') then cov_mat_type1 = cov_mat_type; end if exists('start_step') then start_step1 = start_step; end // if exists('term_crit') then // if ~isstruct(term_crit) then // error('The argument term_crit must be a struct variable.'); // end // term_crit1 = term_crit; // end if exists('iter') then iter1 = iter; end if exists('eps') then eps1 = eps; end if exists('probs') then probs1 = probs; end if exists('weights') then weights1 = weights; end if exists('means') then means1 = means; end if exists('covs') then ndim = length(size(covs)); if ndim ~= 3 then error('The argument covs should be a 3-dimensional array.'); end nc = size(covs, 3); if nc ~= nclusters then error('The sizes of nclusters and covs do not match.'); end covs1 = covs; end // params = struct('nclusters',nclusters, 'cov_mat_type',cov_mat_type1, 'start_step',start_step1, 'term_crit',term_crit1, 'probs',probs1, 'weights',weights1, 'means',means1, 'covs',covs1); params = struct('nclusters',nclusters, 'cov_mat_type',cov_mat_type1, 'start_step',start_step1, 'iter',iter1, 'eps',eps1, 'probs',probs1, 'weights',weights1, 'means',means1, 'covs',covs1); endfunction
12a22bc70fa32a3204cfea9ae5f73edd205b9bed
449d555969bfd7befe906877abab098c6e63a0e8
/226/CH10/EX10.1/example1_sce.sce
a016005f080ec0b84a65a99d178642a8007bafc9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
226
sce
example1_sce.sce
//chapter 10 //example 10.1 //page 381 printf("\n") printf("given") Vdd=22;Rd=2*10^3; disp("when Id=0") Id=0; Vds=Vdd-Id*Rd disp(" at point A Id=0 nad Vds=22") Vds=0; Id=Vdd/Rd disp(" at point B Id=11mA and Vds=0")
13dcf9e173016981082ea6a123877b7f112d4eae
3cbee2296fd6b54f80587eead83813d4c878e06a
/sci2blif/sci2blif_added_blocks/Max_detect.sce
e2895dcd86e3a882a5a5b6358de8cdbcad73dadd
[]
no_license
nikhil-soraba/rasp30
872afa4ad0820b8ca3ea4f232c4168193acbd854
936c6438de595f9ac30d5619a887419c5bae2b0f
refs/heads/master
2021-01-12T15:19:09.899590
2016-10-31T03:23:48
2016-10-31T03:23:48
71,756,442
0
0
null
2016-10-24T05:58:57
2016-10-24T05:58:56
null
UTF-8
Scilab
false
false
681
sce
Max_detect.sce
//**************************** Max_detect ********************************** if (blk_name.entries(bl) == "Max_detect") then mputl("#Max_detect",fd_w); for ss=1:scs_m.objs(bl).model.ipar(1) Max_detect_str= '.subckt Max_detect'+' in[0]=net'+string(blk(blk_objs(bl),2))+'_'+string(ss)+' out[0]=net'+string(blk(blk_objs(bl),2+numofip))+'_'+string(ss)+' #Max_detect_ls =0'+'&Max_detect_fgswc_ibias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(1-1)+ss)))+'&Max_detect_ota0_ibias ='+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(2-1)+ss))) mputl(Max_detect_str,fd_w); mputl("",fd_w); end end
065820892aba1c3dc033197e68124683f03a6466
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.0/macros/tdcs/finit.sci
c9a595be538771fd6720002fcc6b3950fbdf941f
[ "MIT", "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
5,282
sci
finit.sci
//[]=finit() // Initialisation de parametres relatif au probleme // de l'alunissage //k : acceleration de poussee de la fusee //gamma : acceleration de la pesanteur sur la lune //umax : debit maximum d'ejection des gaz //mcap : masse de la capsule //cpen : penalisation dans la fonction cout de l'etat final //! k=100 gamma=1 umax = 1 mcap = 10 cpen =100; [k,gamma,umax,mcap,cpen]=resume(k,gamma,umax,mcap,cpen) //end //[ukp1]=fuseegrad(niter,ukp1,pasg) //[ukp1]=fuseegrad(niter,ukp1,pasg) // niter : nombre d'iteration de gradient a faire a partir // de ukp1 solution initiale de taille 135 // pasg : le pas de gradient choisit // la valeur renvoyee est la derniere loi de commande obtenue. // l'optimum s'obtient avec ubang(135,50) // (optimum du pb non penalise) //! // fenetres graphiques xset("window",0);xclear(); xset("window",1); if xget("window")=0 , xinit('unix:0.0'),xset("window",1),end xclear(); xset("window",2); if xget("window")=0 , xinit('unix:0.0'),xset("window",2),end xclear(); // on s'arrete a tf=135 tf=135 [n1,n2]=size(ukp1) if n2 <>135, print(%io(2),"uk doit etre un vecteur (1,135)") return,end // Calculs de gradient et dessins for i=1:niter, [c,xk,pk,ukp1]=fcout(tf,ukp1,pasg), write(%io(2),c,'(''Cout : '',f20.2)'); write(%io(2),xk(3,135),'(''Masse de la fusee : '',f20.2)'); xset("window",0); tt=1:tf; plot2d(tt',xk(1,:)',[-1],"111","Trajectoire",[1,0,tf,5200]); xset("window",1); plot2d(tt',xk(3,:)',[-1],"111","Evolution de la masse",[1,10,tf,100]); xset("window",2); plot2d(tt',ukp1',[-1],"111","Commande",[1,-1,tf,2]); end //end //[c,xk,pk,ukp1]=fcout(tf,uk,pasg) //[c,xk,pk,ukp1]=fcout(tf,uk,pasg) // pour une loi de commande uk // Calcule la fonction cout que l'on cherche a minimiser // c = -m(tf) + C*( h(tf)**2 + v(tf)**2) // (on veut minimiser la consommation et atteindre la // cible h=0 avec une vitess nulle obtenue par penalisation) // la trajectoire associee // Calcule aussi une nouvelle loi de commande par une methode // de gradient //! [xk,pk]=equad(tf,uk); c= - xk(3,tf) +cpen*(xk(1,tf)**2 +xk(2,tf)**2); grad = k*pk(2,:)./xk(3,:) -pk(3,:); //gradient projete su [0,umax] ukp1=maxi(mini(uk- pasg*grad,umax*ones(1,tf)),0*ones(1,tf)); //end //[xdot]=fusee(t,x) //[xdot]=fusee(t,x) // dynamique de la fusee //! xd= x(2); if x(3)<= 10, md=0 yd= -gamma; ,else md= -pousse(t), yd= k*pousse(t)/x(3)-gamma; end; xdot=[xd;yd;md]; //end //[pdot]=fuseep(t,p) //[pdot]=fuseep(t,p) //equation adjointe //! xp=0 yp=-p(1); zp= p(2)*k*pousse(t)/(traj(t)**2); pdot=[xp;yp;zp] //end //[ut]=pousse(t) //[ut]=pousse(t) // la loi de commande u(t) constante par morceaux // construite sur la loi de comande discrete uk //! [n1,n2]=size(uk); ut=uk(mini(maxi(ent(t),1),n2)); //end //[uk]=ubang(tf,tcom) //[uk]=ubang(tf,tcom) // genere une loi bang-bang qui vaut 0 de 0 a tcom // et 1 de tcom a tf //! uk=0*ones(1,tf) uk(tcom:tf)=1*ones(1,tf-tcom+1); //end //[]=sfusee(tau,h0,v0,m0,Tf) //[]=sfusee(tau,h0,v0,m0,Tf) // // calcule la trajectoire de la fusee soumise a // une commande bang-bang // tau est la date de commutation // h0 : la hauteur initiale // v0 : la vitesse initiale ( negative si chute) // m0 : la masse initiale ( carburant + capsule) // Tf : l'horizon d'integration //! // Premiere phase : chute libre n=20; ind=1:n; t= ind*tau/n; m(ind)= m0*ones(1,n); v(ind)=-gamma*(t)+v0*ones(1,n); h(ind)= - gamma*(t.*t)/2 + v0*(t) + h0*ones(1,n); m = [ m0,m] v= [ v0,v] h= [h0,h] t= [ 0 t] // Deuxieme phase : frein plein gaz n1=40; ind=1:n1; ind1=0:(n1-1) t1= ind1*Tf/(n1-1) +tau* ((n1-1)*ones(1,n1)-ind1)/(n1-1); m1(ind)= ( m0+umax*tau)*ones(1,n1) -umax*(t1); mcapsul=mcap*ones(1,n1); m1=maxi(m1,mcapsul); v1(ind)= - gamma*(t1)+ v0*ones(1,n1) -k *log( m1(ind)/m0); h1(ind)= - gamma*(t1.*t1)/2 + v0*(t1) + (h0-k*tau)*ones(1,n1)... +(k/umax)*m1(ind).*log(m1(ind)/m0)+k*t1; m=[m,m1]; v=[v,v1]; h=[h,h1]; t=[t,t1]; // a revoir [m1,m2]=maxi(h,0*h); m2=2*ones(m2)-m2; [n1,n2]=size(m2); ialu=1; for i=1:n2,if m2(i)=0,ialu=[ialu,i],end,end ialu=ialu(2); write(%io(2),t(ialu),'('' Date alunissage'',f7.2)') write(%io(2),m(ialu),'('' Masse alunissage'',f7.2)') write(%io(2),v(ialu),'('' Vitesse alunissage'',f7.2)') xset("window",0) xclear(); // Dessin [q1,q2]=size(h) h1=0*ones(h); //h1(ialu:q2)=maxi(h)*ones(1,q2-ialu+1); // plot2d([t]',[h]',[-1;1],"111","distance par rapport au sol",... [0,0,tf,maxi(h)]) xset("window",1) if xget("window")=0 , xinit('unix:0.0'),xset("window",1),end xclear(); plot2d([t;t]',[v;0*v]',[-1;-1],"121",... "vitesse de la fusee (si + v ascent.)@0"); //recherche de la date d'arrivee au sol //end //[xk,pk]=equad(tf,uk) //[xk,pk]=equad(tf,uk) // pour une loi de commande u(t) stockee dans uk, calcule // la trajectoire xk associee et l'etat adjoint pk //! xk=ode([5220;-5;100],1,1:tf,0.01,0.01,fusee); deff('[y]=gg(t,x)','y=-fuseep('+string(tf)+'-t,x)'); // condition finales pour l'equation adjointe // en fait on minimise -m(tf)**2+... pk=ode([2*cpen*xk(1,tf);2*cpen*xk(2,tf);-xk(3,tf)],0.01,0.01:tf,... 1,1,gg); pk(1,:)=pk(1,tf:-1:1); pk(2,:)=pk(2,tf:-1:1); pk(3,:)=pk(3,tf:-1:1); //end //[xt]=traj(t) //[xt]=traj(t) // approximation constante par morceaux de l'evolution de la masse // construite sur xk : trajectoire discrete. //! xt=xk(3,maxi(ent(t),1)); // //end
10e0746b3f9dd4a625bcb4587affbef21b0d78ee
449d555969bfd7befe906877abab098c6e63a0e8
/2522/CH15/EX15.6/exm15_6.sce
a42e964c59bd510123596ae0fec14b32b81da550
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,023
sce
exm15_6.sce
// page no 493 // example no 15.6 // EXPLANATION OF INSTRUCTIONS clc; printf('1) DI instruction disables the interrupts. \n \n'); printf('2) Command word 76H specifies the following parameters \n'); printf('A7 A6 A5 A4 A3 A2 A1 A0 \n'); printf('0 1 1 1 0 1 1 0 =76H \n'); printf('A7,A6,A5 Low order address bits \n'); printf('A3 Edge triggered \n'); printf('A2 Call address interval is four locations \n'); printf('A1 Single 8259A \n \n'); printf('Low order byte of the IR0 call address \n'); printf('A7 A6 A5 A4 A3 A2 A1 A0 \n'); printf('0 1 1 0 0 0 0 0 =60H \n'); printf('The address bits A4-A0 are supplied by 8259A. \n'); printf('Subsequent addresses are four locations apart eg. IR1=64H') printf('3) Port address of the 8259SA for ICW1 is 80H, A0 should be at \n logic 0 & the other bits are determined by the decoder. \n \n'); printf('4) Command word ICW2 is 20H. \n \n'); printf('5) Port address of ICW2 is 81H, A0 should be at logic 1.');
2aa94a4a2a948c77d8f07d4141ba46e232b66f05
449d555969bfd7befe906877abab098c6e63a0e8
/1850/CH1/EX1.19/exa_1_19.sce
0093d23914e7cd4d8805b88f9b094d9190cc434f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
433
sce
exa_1_19.sce
// Exa 1.19 clc; clear; close; // Given data format('v',7) V_BE=0.715;// in volt V_CC=9;// in volt Bita_dc=100; Bita_ac= Bita_dc; V_EE= 10;// in volt R=5.6;// in k ohm R= R*10^3;// in ohm I_REF= (V_EE-V_BE)/R;// in amp // From 2*I_B + I_C1 -I_REF =0 I_C1= I_REF*Bita_dc/(2+Bita_dc);// in amp // By symmetry I_C2= I_C1; I_C3= I_C2; I=3*I_C1;// current through R_C in amp disp(I*10^3,"Current through R_C in mA");
b93722a06aba53c2df8f5bccd3ee2d19dda45bc8
449d555969bfd7befe906877abab098c6e63a0e8
/50/CH2/EX2.26/ex_26.sce
2e5761bf3d5dc77b285a61b1c7a2af8f0a9d5364
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,070
sce
ex_26.sce
// The equation x^3-7*x^2+16*x-12==0 has real roots. // the graph of this function can be observed here. xset('window',25); x=0:.001:4; // defining the range of x. deff('[y]=f(x)','y=x^3-7*x^2+16*x-12'); //defining the cunction. deff('[y]=fp(x)','y=3*x^2-14*x+16'); y=feval(x,f); a=gca(); a.y_location = "origin"; a.x_location = "origin"; plot(x,y) // instruction to plot the graph title(' y = x^3-7*x^2+16*x-12') // given that the equation has double roots at x=2 hence m=2; m=2; // solution by newton raphson method newton(1,f,fp) // calling the user defined function //solution by modified newton raphsons mathod modified_newton(1,f,fp)
b64a0165066c48808995617d44561fc25a130a1a
449d555969bfd7befe906877abab098c6e63a0e8
/3537/CH1/EX1.21/Ex1_21.sce
9f534ac7f626fb867222eb519122aae84352f7bb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
300
sce
Ex1_21.sce
//Example 1_21 clc(); clear; //To find the wavelength of light used D5=0.3 //units in cm D25=0.8 //units in cm R=100 //units in cm P=20 lemda=(D25^2-D5^2)/(4*P*R) printf("The wavelength of the light used is %f cm",lemda)
931b09acd4accb025df20a330335ffcca4c315d6
449d555969bfd7befe906877abab098c6e63a0e8
/2912/CH5/EX5.5/Ex5_5.sce
9d62ef2c95b73705deb183f1d425e3bf291724ae
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
317
sce
Ex5_5.sce
//chapter 5 //example 5.4 //Calculate wavelength //page 104 clear; clc; //given V=1600; // in V (Potential) //calculate lambda=12.27/sqrt(V); // calculation of wavelength in Angstrom printf('\nThe wavelength is\t=%.3f Angstrom',lambda); // Note: The answer in the book is wrong due to calculation mistake
90a2dfd6b6f5cc5590c0c9dc671b9a45e8bac635
717ddeb7e700373742c617a95e25a2376565112c
/3044/CH3/EX3.10/Ex3_10.sce
80f2ff325a27637457608d27fd3d4dacfc2f91e9
[]
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
562
sce
Ex3_10.sce
//Variable declaration n1 = 10 // Total machines n2 = 8 // Working Machines r = 2 // To be selected //Calculation function ans = fact(n) // returns factorial of number n""" if(n==1 | n==0) then ans = 1 else: ans = n*fact(n-1) end endfunction function ans = comb(n,r) ans = fact(n)/(fact(r)*fact(n-r)) endfunction p1 = comb(n2,r)/(comb(n1,r)) p2 = comb(n2,1)*comb(n1-n2,1)/(comb(n1,r)) //Results printf ( "Probability: Both motors works : %.3f",p1) printf ( "Probability: Exactly one works : %.3f",p2)
e93b399efa34ef2ad092492da2446eb37fb290fe
449d555969bfd7befe906877abab098c6e63a0e8
/3862/CH8/EX8.5/Ex8_5.sce
cd677a9cc2e970b2494a184411c3bcd8586904ce
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
661
sce
Ex8_5.sce
clear // //variable declaration P=(40) //Load,KN L1=150 //length of 1st portion,mm A1=%pi*(25**2)/4 //Area of 1st portion**mm^2 L2=250 //length of 2nd portion,mm A2=%pi*(20**2)/4 //Area of 2nd portion**mm^2 L3=150 //length of 3rd portion,mm A3=%pi*(25**2)/4 //Area of 3rd portion**mm^2 //E,Young's modulus ,N/mm^2 //Total extension= Extension of portion 1+Extension of portion 2+Extension of portion 3 //Extension=(P*1000*L)/(A*E) E=((P*1000*L1/A1)+(P*1000*L2/A2)+(P*1000*L3/A3))/0.28 printf("\n E= %0.2f N/mm^2",E)
edd0feaa4c9ee92487722b8e237849ba9bf38efc
f542bc49c4d04b47d19c88e7c89d5db60922e34e
/PresentationFiles_Subjects/SCHI/NF65WHQ/ATWM1_Working_Memory_MEG_NF65WHQ_Session1/ATWM1_Working_Memory_MEG_Salient_Uncued_Run1.sce
507889e2cbbdde70eb453a4260ac769927a1f166
[]
no_license
atwm1/Presentation
65c674180f731f050aad33beefffb9ba0caa6688
9732a004ca091b184b670c56c55f538ff6600c08
refs/heads/master
2020-04-15T14:04:41.900640
2020-02-14T16:10:11
2020-02-14T16:10:11
56,771,016
0
1
null
null
null
null
UTF-8
Scilab
false
false
48,405
sce
ATWM1_Working_Memory_MEG_Salient_Uncued_Run1.sce
# ATWM1 MEG Experiment scenario = "ATWM1_Working_Memory_MEG_salient_uncued_run1"; #scenario_type = fMRI; # Fuer Scanner #scenario_type = fMRI_emulation; # Zum Testen scenario_type = trials; # for MEG #scan_period = 2000; # TR #pulses_per_scan = 1; #pulse_code = 1; pulse_width=6; default_monitor_sounds = false; active_buttons = 2; response_matching = simple_matching; button_codes = 10, 20; default_font_size = 36; default_font = "Arial"; default_background_color = 0 ,0 ,0 ; write_codes=true; # for MEG only begin; #Picture definitions box { height = 382; width = 382; color = 0, 0, 0;} frame1; box { height = 369; width = 369; color = 255, 255, 255;} frame2; box { height = 30; width = 4; color = 0, 0, 0;} fix1; box { height = 4; width = 30; color = 0, 0, 0;} fix2; box { height = 30; width = 4; color = 255, 0, 0;} fix3; box { height = 4; width = 30; color = 255, 0, 0;} fix4; box { height = 369; width = 369; color = 42, 42, 42;} background; TEMPLATE "StimuliDeclaration.tem" {}; trial { sound sound_incorrect; time = 0; duration = 1; } wrong; trial { sound sound_correct; time = 0; duration = 1; } right; trial { sound sound_no_response; time = 0; duration = 1; } miss; # Start of experiment (MEG only) - sync with CTF software trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; } expStart; time = 0; duration = 1000; code = "ExpStart"; port_code = 80; }; # baselinePre (at the beginning of the session) trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; }default; time = 0; duration = 10000; #mri_pulse = 1; code = "BaselinePre"; port_code = 91; }; TEMPLATE "ATWM1_Working_Memory_MEG.tem" { trigger_encoding trigger_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4; 42 61 292 292 399 125 1942 2992 2142 fixation_cross gabor_099 gabor_071 gabor_155 gabor_036 gabor_099_alt gabor_071_alt gabor_155 gabor_036 "1_1_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2150_gabor_patch_orientation_099_071_155_036_target_position_1_2_retrieval_position_2" gabor_circ gabor_118_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_1_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_118_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1992 2992 2192 fixation_cross gabor_044 gabor_071 gabor_133 gabor_026 gabor_044 gabor_071_alt gabor_133_alt gabor_026 "1_2_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2200_gabor_patch_orientation_044_071_133_026_target_position_2_3_retrieval_position_2" gabor_circ gabor_071_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_2_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_071_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2092 2992 2442 fixation_cross gabor_138 gabor_049 gabor_088 gabor_169 gabor_138_alt gabor_049 gabor_088 gabor_169_alt "1_3_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2450_gabor_patch_orientation_138_049_088_169_target_position_1_4_retrieval_position_1" gabor_001_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_3_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_001_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1742 2992 2142 fixation_cross gabor_021 gabor_050 gabor_131 gabor_077 gabor_021_alt gabor_050_alt gabor_131 gabor_077 "1_4_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2150_gabor_patch_orientation_021_050_131_077_target_position_1_2_retrieval_position_2" gabor_circ gabor_096_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_4_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_096_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 2192 2992 2042 fixation_cross gabor_153 gabor_017 gabor_170 gabor_082 gabor_153 gabor_017 gabor_170_alt gabor_082_alt "1_5_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_300_300_399_2200_3000_2050_gabor_patch_orientation_153_017_170_082_target_position_3_4_retrieval_position_1" gabor_153_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_5_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_153_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1892 2992 2092 fixation_cross gabor_128 gabor_090 gabor_021 gabor_157 gabor_128_alt gabor_090 gabor_021 gabor_157_alt "1_6_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2100_gabor_patch_orientation_128_090_021_157_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_157_framed blank blank blank blank fixation_cross_white "1_6_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_157_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2142 2992 2542 fixation_cross gabor_121 gabor_076 gabor_031 gabor_142 gabor_121_alt gabor_076 gabor_031_alt gabor_142 "1_7_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2550_gabor_patch_orientation_121_076_031_142_target_position_1_3_retrieval_position_1" gabor_121_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_7_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_121_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1742 2992 1992 fixation_cross gabor_092 gabor_054 gabor_002 gabor_167 gabor_092 gabor_054 gabor_002_alt gabor_167_alt "1_8_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2000_gabor_patch_orientation_092_054_002_167_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_002_framed gabor_circ blank blank blank blank fixation_cross_white "1_8_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_002_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2092 2992 1942 fixation_cross gabor_016 gabor_087 gabor_155 gabor_034 gabor_016_alt gabor_087_alt gabor_155 gabor_034 "1_9_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_1950_gabor_patch_orientation_016_087_155_034_target_position_1_2_retrieval_position_1" gabor_066_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_9_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_066_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2042 2992 2242 fixation_cross gabor_170 gabor_011 gabor_044 gabor_060 gabor_170_alt gabor_011 gabor_044_alt gabor_060 "1_10_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2250_gabor_patch_orientation_170_011_044_060_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_092_framed gabor_circ blank blank blank blank fixation_cross_white "1_10_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_092_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2092 2992 2292 fixation_cross gabor_005 gabor_087 gabor_156 gabor_024 gabor_005_alt gabor_087 gabor_156_alt gabor_024 "1_11_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2300_gabor_patch_orientation_005_087_156_024_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_156_framed gabor_circ blank blank blank blank fixation_cross_white "1_11_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_156_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1992 2992 2142 fixation_cross gabor_173 gabor_110 gabor_088 gabor_155 gabor_173_alt gabor_110_alt gabor_088 gabor_155 "1_12_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2150_gabor_patch_orientation_173_110_088_155_target_position_1_2_retrieval_position_1" gabor_173_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_12_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_173_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 1742 2992 2592 fixation_cross gabor_064 gabor_028 gabor_116 gabor_084 gabor_064_alt gabor_028_alt gabor_116 gabor_084 "1_13_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_300_300_399_1750_3000_2600_gabor_patch_orientation_064_028_116_084_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_134_framed blank blank blank blank fixation_cross_white "1_13_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_134_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2042 2992 2492 fixation_cross gabor_076 gabor_162 gabor_117 gabor_145 gabor_076 gabor_162_alt gabor_117 gabor_145_alt "1_14_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2500_gabor_patch_orientation_076_162_117_145_target_position_2_4_retrieval_position_2" gabor_circ gabor_162_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_14_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_162_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 2142 2992 2342 fixation_cross gabor_116 gabor_003 gabor_141 gabor_080 gabor_116_alt gabor_003 gabor_141 gabor_080_alt "1_15_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_300_300_399_2150_3000_2350_gabor_patch_orientation_116_003_141_080_target_position_1_4_retrieval_position_2" gabor_circ gabor_003_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_15_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_003_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2142 2992 1892 fixation_cross gabor_050 gabor_066 gabor_005 gabor_031 gabor_050 gabor_066_alt gabor_005_alt gabor_031 "1_16_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_1900_gabor_patch_orientation_050_066_005_031_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_140_framed gabor_circ blank blank blank blank fixation_cross_white "1_16_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_140_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2242 2992 1992 fixation_cross gabor_066 gabor_131 gabor_178 gabor_090 gabor_066 gabor_131 gabor_178_alt gabor_090_alt "1_17_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2000_gabor_patch_orientation_066_131_178_090_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_090_framed blank blank blank blank fixation_cross_white "1_17_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_090_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1842 2992 2342 fixation_cross gabor_158 gabor_122 gabor_041 gabor_010 gabor_158_alt gabor_122 gabor_041_alt gabor_010 "1_18_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2350_gabor_patch_orientation_158_122_041_010_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_041_framed gabor_circ blank blank blank blank fixation_cross_white "1_18_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_041_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2142 2992 2042 fixation_cross gabor_099 gabor_055 gabor_035 gabor_171 gabor_099_alt gabor_055 gabor_035_alt gabor_171 "1_19_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2050_gabor_patch_orientation_099_055_035_171_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_083_framed gabor_circ blank blank blank blank fixation_cross_white "1_19_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_083_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 2042 2992 2492 fixation_cross gabor_148 gabor_064 gabor_172 gabor_084 gabor_148 gabor_064_alt gabor_172_alt gabor_084 "1_20_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_300_300_399_2050_3000_2500_gabor_patch_orientation_148_064_172_084_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_129_framed blank blank blank blank fixation_cross_white "1_20_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_129_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2242 2992 1892 fixation_cross gabor_177 gabor_047 gabor_069 gabor_025 gabor_177_alt gabor_047 gabor_069 gabor_025_alt "1_21_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_1900_gabor_patch_orientation_177_047_069_025_target_position_1_4_retrieval_position_1" gabor_132_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_21_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_132_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1942 2992 2192 fixation_cross gabor_042 gabor_025 gabor_151 gabor_098 gabor_042_alt gabor_025_alt gabor_151 gabor_098 "1_22_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2200_gabor_patch_orientation_042_025_151_098_target_position_1_2_retrieval_position_1" gabor_042_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_22_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_042_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1742 2992 2442 fixation_cross gabor_009 gabor_037 gabor_058 gabor_078 gabor_009_alt gabor_037 gabor_058 gabor_078_alt "1_23_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2450_gabor_patch_orientation_009_037_058_078_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_125_framed blank blank blank blank fixation_cross_white "1_23_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_125_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1892 2992 2592 fixation_cross gabor_138 gabor_158 gabor_032 gabor_073 gabor_138 gabor_158_alt gabor_032 gabor_073_alt "1_24_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2600_gabor_patch_orientation_138_158_032_073_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_122_framed blank blank blank blank fixation_cross_white "1_24_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_122_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1942 2992 2092 fixation_cross gabor_171 gabor_085 gabor_052 gabor_121 gabor_171 gabor_085_alt gabor_052 gabor_121_alt "1_25_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2100_gabor_patch_orientation_171_085_052_121_target_position_2_4_retrieval_position_2" gabor_circ gabor_036_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_25_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_036_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1742 2992 2192 fixation_cross gabor_068 gabor_093 gabor_025 gabor_111 gabor_068 gabor_093_alt gabor_025 gabor_111_alt "1_26_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2200_gabor_patch_orientation_068_093_025_111_target_position_2_4_retrieval_position_2" gabor_circ gabor_093_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_26_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_093_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 2192 2992 2292 fixation_cross gabor_174 gabor_016 gabor_086 gabor_038 gabor_174 gabor_016_alt gabor_086 gabor_038_alt "1_27_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_300_300_399_2200_3000_2300_gabor_patch_orientation_174_016_086_038_target_position_2_4_retrieval_position_1" gabor_174_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_27_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_174_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2242 2992 2442 fixation_cross gabor_083 gabor_017 gabor_098 gabor_141 gabor_083 gabor_017_alt gabor_098_alt gabor_141 "1_28_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2450_gabor_patch_orientation_083_017_098_141_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_053_framed gabor_circ blank blank blank blank fixation_cross_white "1_28_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_053_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 2242 2992 2392 fixation_cross gabor_090 gabor_056 gabor_171 gabor_135 gabor_090 gabor_056 gabor_171_alt gabor_135_alt "1_29_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_300_300_399_2250_3000_2400_gabor_patch_orientation_090_056_171_135_target_position_3_4_retrieval_position_2" gabor_circ gabor_008_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_29_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_008_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1992 2992 2342 fixation_cross gabor_009 gabor_042 gabor_079 gabor_116 gabor_009 gabor_042_alt gabor_079 gabor_116_alt "1_30_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2350_gabor_patch_orientation_009_042_079_116_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_161_framed blank blank blank blank fixation_cross_white "1_30_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_161_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1992 2992 2542 fixation_cross gabor_052 gabor_091 gabor_007 gabor_026 gabor_052_alt gabor_091_alt gabor_007 gabor_026 "1_31_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2550_gabor_patch_orientation_052_091_007_026_target_position_1_2_retrieval_position_2" gabor_circ gabor_140_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_31_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_140_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2242 2992 2342 fixation_cross gabor_072 gabor_098 gabor_016 gabor_050 gabor_072_alt gabor_098 gabor_016 gabor_050_alt "1_32_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2350_gabor_patch_orientation_072_098_016_050_target_position_1_4_retrieval_position_1" gabor_122_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_32_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_122_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2142 2992 2042 fixation_cross gabor_159 gabor_049 gabor_098 gabor_179 gabor_159_alt gabor_049_alt gabor_098 gabor_179 "1_33_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2050_gabor_patch_orientation_159_049_098_179_target_position_1_2_retrieval_position_1" gabor_159_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_33_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_159_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2192 2992 2042 fixation_cross gabor_092 gabor_123 gabor_149 gabor_108 gabor_092 gabor_123_alt gabor_149_alt gabor_108 "1_34_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2050_gabor_patch_orientation_092_123_149_108_target_position_2_3_retrieval_position_2" gabor_circ gabor_123_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_34_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_123_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1792 2992 2592 fixation_cross gabor_066 gabor_083 gabor_028 gabor_145 gabor_066_alt gabor_083 gabor_028 gabor_145_alt "1_35_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2600_gabor_patch_orientation_066_083_028_145_target_position_1_4_retrieval_position_1" gabor_066_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_35_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_066_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2092 2992 2142 fixation_cross gabor_011 gabor_118 gabor_093 gabor_035 gabor_011 gabor_118_alt gabor_093_alt gabor_035 "1_36_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2150_gabor_patch_orientation_011_118_093_035_target_position_2_3_retrieval_position_2" gabor_circ gabor_118_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_36_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_118_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 1942 2992 1942 fixation_cross gabor_064 gabor_034 gabor_096 gabor_081 gabor_064 gabor_034_alt gabor_096_alt gabor_081 "1_37_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_300_300_399_1950_3000_1950_gabor_patch_orientation_064_034_096_081_target_position_2_3_retrieval_position_1" gabor_014_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_37_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_014_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1892 2992 2092 fixation_cross gabor_051 gabor_160 gabor_180 gabor_111 gabor_051_alt gabor_160 gabor_180_alt gabor_111 "1_38_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2100_gabor_patch_orientation_051_160_180_111_target_position_1_3_retrieval_position_1" gabor_051_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_38_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_051_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1842 2992 2242 fixation_cross gabor_043 gabor_019 gabor_131 gabor_163 gabor_043_alt gabor_019 gabor_131_alt gabor_163 "1_39_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2250_gabor_patch_orientation_043_019_131_163_target_position_1_3_retrieval_position_1" gabor_043_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_39_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_043_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2042 2992 2592 fixation_cross gabor_002 gabor_108 gabor_053 gabor_176 gabor_002 gabor_108 gabor_053_alt gabor_176_alt "1_40_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2600_gabor_patch_orientation_002_108_053_176_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_176_framed blank blank blank blank fixation_cross_white "1_40_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_176_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2192 2992 2242 fixation_cross gabor_062 gabor_131 gabor_095 gabor_170 gabor_062 gabor_131 gabor_095_alt gabor_170_alt "1_41_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_2200_3000_2250_gabor_patch_orientation_062_131_095_170_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_045_framed gabor_circ blank blank blank blank fixation_cross_white "1_41_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_045_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 2042 2992 2442 fixation_cross gabor_173 gabor_150 gabor_018 gabor_107 gabor_173_alt gabor_150 gabor_018_alt gabor_107 "1_42_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_300_300_399_2050_3000_2450_gabor_patch_orientation_173_150_018_107_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_107_framed blank blank blank blank fixation_cross_white "1_42_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_107_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1942 2992 1992 fixation_cross gabor_081 gabor_141 gabor_033 gabor_054 gabor_081 gabor_141 gabor_033_alt gabor_054_alt "1_43_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2000_gabor_patch_orientation_081_141_033_054_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_170_framed gabor_circ blank blank blank blank fixation_cross_white "1_43_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_170_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1842 2992 2042 fixation_cross gabor_100 gabor_167 gabor_127 gabor_012 gabor_100 gabor_167 gabor_127_alt gabor_012_alt "1_44_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2050_gabor_patch_orientation_100_167_127_012_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_078_framed gabor_circ blank blank blank blank fixation_cross_white "1_44_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_078_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2242 2992 1992 fixation_cross gabor_005 gabor_089 gabor_115 gabor_072 gabor_005_alt gabor_089 gabor_115 gabor_072_alt "1_45_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2000_gabor_patch_orientation_005_089_115_072_target_position_1_4_retrieval_position_1" gabor_005_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_45_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_005_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1792 2992 2142 fixation_cross gabor_041 gabor_016 gabor_095 gabor_057 gabor_041_alt gabor_016 gabor_095 gabor_057_alt "1_46_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2150_gabor_patch_orientation_041_016_095_057_target_position_1_4_retrieval_position_1" gabor_178_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_46_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_178_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1892 2992 1942 fixation_cross gabor_045 gabor_120 gabor_154 gabor_076 gabor_045_alt gabor_120 gabor_154_alt gabor_076 "1_47_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_1950_gabor_patch_orientation_045_120_154_076_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_104_framed gabor_circ blank blank blank blank fixation_cross_white "1_47_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_104_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 2092 2992 2542 fixation_cross gabor_027 gabor_082 gabor_106 gabor_142 gabor_027_alt gabor_082 gabor_106 gabor_142_alt "1_48_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_300_300_399_2100_3000_2550_gabor_patch_orientation_027_082_106_142_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_060_framed gabor_circ blank blank blank blank fixation_cross_white "1_48_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_060_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1842 2992 2242 fixation_cross gabor_045 gabor_155 gabor_180 gabor_121 gabor_045 gabor_155_alt gabor_180 gabor_121_alt "1_49_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2250_gabor_patch_orientation_045_155_180_121_target_position_2_4_retrieval_position_2" gabor_circ gabor_155_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_49_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_155_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1842 2992 2242 fixation_cross gabor_176 gabor_092 gabor_131 gabor_153 gabor_176_alt gabor_092 gabor_131_alt gabor_153 "1_50_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2250_gabor_patch_orientation_176_092_131_153_target_position_1_3_retrieval_position_1" gabor_041_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_50_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_041_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1792 2992 2392 fixation_cross gabor_023 gabor_104 gabor_078 gabor_145 gabor_023_alt gabor_104 gabor_078 gabor_145_alt "1_51_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2400_gabor_patch_orientation_023_104_078_145_target_position_1_4_retrieval_position_1" gabor_161_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_51_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_161_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 2192 2992 2492 fixation_cross gabor_107 gabor_170 gabor_046 gabor_091 gabor_107_alt gabor_170 gabor_046 gabor_091_alt "1_52_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_300_300_399_2200_3000_2500_gabor_patch_orientation_107_170_046_091_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_046_framed gabor_circ blank blank blank blank fixation_cross_white "1_52_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_046_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2042 2992 2292 fixation_cross gabor_047 gabor_084 gabor_156 gabor_116 gabor_047_alt gabor_084 gabor_156 gabor_116_alt "1_53_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2300_gabor_patch_orientation_047_084_156_116_target_position_1_4_retrieval_position_1" gabor_047_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_53_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_047_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1842 2992 1992 fixation_cross gabor_053 gabor_140 gabor_098 gabor_117 gabor_053_alt gabor_140 gabor_098 gabor_117_alt "1_54_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2000_gabor_patch_orientation_053_140_098_117_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_167_framed blank blank blank blank fixation_cross_white "1_54_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_167_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 1792 2992 1892 fixation_cross gabor_152 gabor_126 gabor_097 gabor_036 gabor_152 gabor_126_alt gabor_097_alt gabor_036 "1_55_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_300_300_399_1800_3000_1900_gabor_patch_orientation_152_126_097_036_target_position_2_3_retrieval_position_1" gabor_152_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_55_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_152_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1892 2992 2292 fixation_cross gabor_172 gabor_025 gabor_067 gabor_048 gabor_172_alt gabor_025 gabor_067 gabor_048_alt "1_56_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2300_gabor_patch_orientation_172_025_067_048_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_048_framed blank blank blank blank fixation_cross_white "1_56_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_048_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1892 2992 1942 fixation_cross gabor_173 gabor_067 gabor_125 gabor_103 gabor_173_alt gabor_067_alt gabor_125 gabor_103 "1_57_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_1950_gabor_patch_orientation_173_067_125_103_target_position_1_2_retrieval_position_2" gabor_circ gabor_019_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_57_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_019_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1742 2992 2292 fixation_cross gabor_037 gabor_153 gabor_092 gabor_072 gabor_037_alt gabor_153 gabor_092 gabor_072_alt "1_58_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2300_gabor_patch_orientation_037_153_092_072_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_072_framed blank blank blank blank fixation_cross_white "1_58_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_072_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2142 2992 2392 fixation_cross gabor_179 gabor_143 gabor_162 gabor_013 gabor_179 gabor_143_alt gabor_162_alt gabor_013 "1_59_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2400_gabor_patch_orientation_179_143_162_013_target_position_2_3_retrieval_position_2" gabor_circ gabor_143_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_59_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_143_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1842 2992 2092 fixation_cross gabor_131 gabor_050 gabor_080 gabor_169 gabor_131 gabor_050_alt gabor_080 gabor_169_alt "1_60_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2100_gabor_patch_orientation_131_050_080_169_target_position_2_4_retrieval_position_2" gabor_circ gabor_100_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_60_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_100_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1792 2992 1892 fixation_cross gabor_125 gabor_087 gabor_048 gabor_104 gabor_125 gabor_087 gabor_048_alt gabor_104_alt "1_61_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_1900_gabor_patch_orientation_125_087_048_104_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_104_framed blank blank blank blank fixation_cross_white "1_61_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_104_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1992 2992 1942 fixation_cross gabor_032 gabor_140 gabor_074 gabor_106 gabor_032_alt gabor_140 gabor_074 gabor_106_alt "1_62_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_1950_gabor_patch_orientation_032_140_074_106_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_106_framed blank blank blank blank fixation_cross_white "1_62_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_106_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 1942 2992 2392 fixation_cross gabor_169 gabor_005 gabor_093 gabor_051 gabor_169_alt gabor_005 gabor_093 gabor_051_alt "1_63_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_300_300_399_1950_3000_2400_gabor_patch_orientation_169_005_093_051_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_093_framed gabor_circ blank blank blank blank fixation_cross_white "1_63_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_093_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1792 2992 2342 fixation_cross gabor_180 gabor_164 gabor_123 gabor_102 gabor_180_alt gabor_164_alt gabor_123 gabor_102 "1_64_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2350_gabor_patch_orientation_180_164_123_102_target_position_1_2_retrieval_position_1" gabor_045_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_64_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_045_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1742 2992 2092 fixation_cross gabor_086 gabor_039 gabor_014 gabor_176 gabor_086_alt gabor_039 gabor_014_alt gabor_176 "1_65_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2100_gabor_patch_orientation_086_039_014_176_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_014_framed gabor_circ blank blank blank blank fixation_cross_white "1_65_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_014_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1992 2992 2192 fixation_cross gabor_057 gabor_108 gabor_031 gabor_140 gabor_057 gabor_108_alt gabor_031_alt gabor_140 "1_66_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2200_gabor_patch_orientation_057_108_031_140_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_081_framed gabor_circ blank blank blank blank fixation_cross_white "1_66_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_081_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2092 2992 2492 fixation_cross gabor_154 gabor_137 gabor_028 gabor_101 gabor_154_alt gabor_137 gabor_028_alt gabor_101 "1_67_Encoding_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2500_gabor_patch_orientation_154_137_028_101_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_028_framed gabor_circ blank blank blank blank fixation_cross_white "1_67_Retrieval_Working_Memory_MEG_P8_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_028_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 1892 2992 2542 fixation_cross gabor_157 gabor_045 gabor_095 gabor_024 gabor_157_alt gabor_045 gabor_095_alt gabor_024 "1_68_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_300_300_399_1900_3000_2550_gabor_patch_orientation_157_045_095_024_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_073_framed blank blank blank blank fixation_cross_white "1_68_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_073_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2192 2992 2192 fixation_cross gabor_099 gabor_151 gabor_167 gabor_027 gabor_099 gabor_151_alt gabor_167_alt gabor_027 "1_69_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_300_300_399_2200_3000_2200_gabor_patch_orientation_099_151_167_027_target_position_2_3_retrieval_position_2" gabor_circ gabor_011_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_69_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_011_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 1792 2992 1892 fixation_cross gabor_178 gabor_058 gabor_018 gabor_107 gabor_178 gabor_058_alt gabor_018 gabor_107_alt "1_70_Encoding_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_300_300_399_1800_3000_1900_gabor_patch_orientation_178_058_018_107_target_position_2_4_retrieval_position_1" gabor_133_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_70_Retrieval_Working_Memory_MEG_P8_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_133_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; }; # baselinePost (at the end of the session) trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; }; time = 0; duration = 5000; code = "BaselinePost"; port_code = 92; };
8ef9a9186d4d376c3eaf05a76af570ad44e6dae7
449d555969bfd7befe906877abab098c6e63a0e8
/1673/CH9/EX9.7/9_7.sce
f259cae3cc2e0717c24ba04ad2359e19e9b11c43
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
851
sce
9_7.sce
//bender-schimdt's formula and crank-nicolson formula //example 9.7 //page 363 //bender -schimdt's formula clc;clear;close; deff('y=f(x,t)','y=exp(-%pi^2*t)*sin(%pi*x)'); u=[f(0,0) f(0.2,0) f(0.4,0) f(0.6,0) f(0.8,0) f(1,0)]; u11=u(3)/2;u12=(u(2)+u(4))/2;u13=u12;u14=u11; printf(' u11=%f\t u12=%f\t u13=%f\t u14=%f\n\n',u11,u12,u13,u14) u21=u12/2;u22=(u12+u14)/2;u23=u22;u24=u21; printf(' u21=%f\t u22=%f\t u23=%f\t u24=%f\n\n',u21,u22,u23,u24) printf(' the error in the solution is: %f\n\n',abs(u22-f(0.6,0.04))) //crank-nicolson formula //by putting i=1,2,3,4 we obtain four equation A=[4 -1 0 0 ;-1 4 -1 0;0 -1 4 -1;0 0 -1 4]; C=[0.9510;1.5388;1.5388;0.9510]; X=A^-1*C; printf( ' u11=%f\t u21=%f\t u31=%f\t u41=%f\t\n\n',X(1,1),X(2,1),X(3,1),X(4,1)) printf(' the error in the solution is: %f\n\n',abs(X(2,1)-f(0.6,0.04)))
dab92d17b5644fff77307ddf1551e1f8eda4e9b8
449d555969bfd7befe906877abab098c6e63a0e8
/671/CH12/EX12.11/12_11.sce
9943b84be51bab8c5e87bd7cca96edb15c187b1a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
72
sce
12_11.sce
s1=1-960/1000 s2=1-800/1000 R2ext=4/3*s2*0.25/s1-0.25 disp(R2ext)
1259ba96fd08ed5fbfc8e83c220db618cbe62ee3
089894a36ef33cb3d0f697541716c9b6cd8dcc43
/NLP_Project/test/blog/bow/bow.18_16.tst
12d5feb42267dadf216d4b30e7a3775b98d2246e
[]
no_license
mandar15/NLP_Project
3142cda82d49ba0ea30b580c46bdd0e0348fe3ec
1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2
refs/heads/master
2020-05-20T13:36:05.842840
2013-07-31T06:53:59
2013-07-31T06:53:59
6,534,406
0
1
null
null
null
null
UTF-8
Scilab
false
false
4,497
tst
bow.18_16.tst
18 12:0.16666666666666666 45:0.3333333333333333 83:0.5 133:0.16666666666666666 134:2.0 1230:1.0 1578:1.0 1608:1.0 1687:1.0 18 70:0.05263157894736842 80:0.09090909090909091 83:0.5 85:0.16666666666666666 120:1.0 133:0.16666666666666666 134:1.0 199:1.0 1172:1.0 1230:1.0 18 12:0.3333333333333333 21:0.14285714285714285 39:0.2 45:0.6666666666666666 63:1.0 65:1.0 70:0.05263157894736842 72:1.0 83:0.5 92:1.0 120:1.0 141:1.0 164:0.3333333333333333 200:0.125 220:0.5 227:0.25 248:1.0 319:0.3333333333333333 347:0.25 379:1.0 399:1.0 810:1.0 879:0.5 942:1.0 1140:1.0 1222:1.0 1271:1.0 1348:0.3333333333333333 1428:1.0 18 11:1.0 12:0.16666666666666666 39:0.4 45:0.6666666666666666 78:0.25 80:0.18181818181818182 100:0.25 104:1.0 120:0.5 134:1.0 147:0.2 161:0.09090909090909091 254:1.0 771:1.0 1207:1.0 1212:1.0 1213:1.0 1216:1.0 1219:0.5 1220:1.0 1221:1.0 1222:1.0 1223:1.0 1224:1.0 1276:0.5 1348:0.3333333333333333 1664:1.0 18 70:0.05263157894736842 120:0.5 1663:1.0 18 23:0.020833333333333332 75:1.0 1463:1.0 18 12:0.16666666666666666 21:0.14285714285714285 23:0.020833333333333332 28:0.25 45:0.3333333333333333 47:0.5 70:0.10526315789473684 80:0.09090909090909091 85:0.16666666666666666 120:0.5 134:2.0 186:1.0 240:0.3333333333333333 254:1.0 550:1.0 628:1.0 636:0.25 1001:0.5 1189:1.0 1708:1.0 1864:1.0 18 70:0.05263157894736842 80:0.18181818181818182 120:0.5 161:0.09090909090909091 412:1.0 569:0.5 1172:1.0 1276:0.5 1425:1.0 18 9:1.0 12:0.16666666666666666 28:0.25 83:0.5 85:0.16666666666666666 100:0.25 107:1.0 213:0.2857142857142857 239:0.3333333333333333 248:1.0 616:0.5 633:1.0 636:0.25 942:1.0 1295:1.0 1317:1.0 1390:1.0 18 1625:1.0 18 21:0.42857142857142855 45:0.3333333333333333 72:1.0 80:0.09090909090909091 120:1.0 178:2.0 236:1.0 248:1.0 636:0.25 643:1.0 866:1.0 886:1.0 1181:0.3333333333333333 1334:1.0 1628:1.0 18 12:0.3333333333333333 21:0.14285714285714285 28:0.25 118:1.0 120:1.5 161:0.09090909090909091 1317:1.0 1434:1.0 18 12:0.3333333333333333 21:0.14285714285714285 39:0.2 45:0.3333333333333333 70:0.05263157894736842 74:1.0 83:1.0 134:1.0 186:1.0 569:0.5 1137:1.0 1207:1.0 1318:1.0 1334:1.0 1348:0.3333333333333333 18 7:0.1111111111111111 45:0.3333333333333333 56:1.0 134:1.0 147:0.2 355:1.0 1181:0.3333333333333333 1449:1.0 1575:1.0 1592:1.0 18 21:0.14285714285714285 80:0.09090909090909091 319:0.3333333333333333 1307:1.0 1616:1.0 18 45:0.3333333333333333 70:0.05263157894736842 203:1.0 248:1.0 634:1.0 18 1564:1.0 18 28:0.25 155:1.0 161:0.09090909090909091 423:1.0 1348:0.3333333333333333 1564:1.0 1582:1.0 18 39:0.4 45:0.3333333333333333 70:0.10526315789473684 78:0.25 85:0.16666666666666666 108:1.0 134:1.0 176:1.0 178:2.0 200:0.125 275:1.0 449:1.0 679:1.0 1158:1.0 1455:1.0 1477:1.0 1857:1.0 18 12:0.16666666666666666 39:0.4 70:0.05263157894736842 118:1.0 120:1.0 129:1.0 134:1.0 178:1.0 186:1.0 248:1.0 298:0.2 310:1.0 368:1.0 1217:0.5 1303:1.0 1348:0.3333333333333333 1456:1.0 1577:1.0 1582:1.0 1628:1.0 1634:1.0 18 12:0.16666666666666666 70:0.05263157894736842 310:1.0 679:1.0 906:1.0 18 70:0.05263157894736842 116:0.5 977:1.0 18 28:0.25 39:0.2 107:1.0 292:1.0 18 56:1.0 161:0.09090909090909091 18 39:0.2 74:1.0 120:0.5 200:0.125 241:1.0 575:1.0 674:1.0 1216:1.0 1348:0.3333333333333333 1592:1.0 1628:1.0 18 1564:1.0 18 39:0.2 45:0.3333333333333333 70:0.05263157894736842 108:1.0 118:1.0 120:0.5 129:1.0 160:0.3333333333333333 1036:0.5 1348:0.6666666666666666 1582:1.0 18 70:0.05263157894736842 1104:1.0 18 12:0.16666666666666666 245:0.5 318:0.25 693:1.0 1823:1.0 18 7:0.1111111111111111 39:0.4 45:0.3333333333333333 65:1.0 74:1.0 147:0.2 221:1.0 533:1.0 668:1.0 966:1.0 1433:1.0 1449:1.0 18 12:0.16666666666666666 1575:1.0 18 7:0.1111111111111111 28:0.25 45:0.3333333333333333 56:1.0 135:1.0 1348:0.3333333333333333 1361:1.0 1535:1.0 1582:1.0 18 12:0.16666666666666666 21:0.2857142857142857 45:0.6666666666666666 74:1.0 88:1.0 120:0.5 161:0.09090909090909091 275:1.0 383:1.0 552:1.0 1334:1.0 1357:1.0 1575:1.0 18 7:0.1111111111111111 39:0.2 1038:1.0 18 12:0.3333333333333333 28:0.25 45:0.6666666666666666 83:0.5 94:1.0 120:0.5 213:0.14285714285714285 401:1.0 618:1.0 831:1.0 886:1.0 1186:0.5 1190:1.0 1201:1.0 1248:1.0 1262:1.0 1295:1.0 18 12:0.16666666666666666 83:1.0 134:2.0 202:0.5 213:0.14285714285714285 227:0.25 452:1.0 616:0.5 655:1.0 698:0.5 884:1.0 1270:1.0 1295:1.0 1296:1.0 1321:1.0 18 12:0.16666666666666666 39:0.2 45:0.3333333333333333 78:0.25 83:1.0 120:0.5 160:0.3333333333333333 162:1.0 254:1.0 334:1.0 532:1.0 738:1.0 1198:1.0 1199:1.0 1359:1.0 1578:1.0
ec02f257132a3d8ddc62c9698d82dbecd73ca400
449d555969bfd7befe906877abab098c6e63a0e8
/2969/CH7/EX7.10/Ex7_10.sce
2f21a211c5af33a47d837f71dd3348a6d376b384
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,086
sce
Ex7_10.sce
clc clear //DATA GIVEN n=4; //no. of cylinders BP=30; //Brake Power in kW N=2500; //engine speed in R.P.M. Pmi=8; //mean effective pressure in bar ETAm=0.8; //mechanical efficiency ETAthb=0.28; //brake thermal efficiency C=43900; //calorific value of fuel used in kJ/kg k=1; //for 2-stroke cylinder //mechanical efficiency, ETAm=BP/IP IP=BP/ETAm; //INDICTED POWER ,I.P.=(n*PMI*l*A*N*k*10)/6 kW //L=1.5D, D=((6*IP)/(10*k*N*n*Pmi*1.5*(%pi/4)))^(1/3); //bore diameter in m L=1.5*D; //length of stroke in m //Brake thermal efficiency, ETAtb=BP/(Mf*C) Mf=BP/(ETAthb*C); //fuel consumption in kg/hr printf(' (i) The Bore diameter is: %5.3f m or %2.0f mm.\n',D,(D*1000)); printf(' The Stoke length is: %2.0f mm.\n',(L*1000)); printf(' (ii) The Fuel consumption is: %5.5f kg/s or %3.2f kg/hr. \n',Mf,(Mf*3600));
d57e5e3091a2e554602931ac77a626fa6b948b1d
1bb72df9a084fe4f8c0ec39f778282eb52750801
/test/PG01.prev.tst
53acf78fd41221b5219c1c72455205fb41bd9fce
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
gfis/ramath
498adfc7a6d353d4775b33020fdf992628e3fbff
b09b48639ddd4709ffb1c729e33f6a4b9ef676b5
refs/heads/master
2023-08-17T00:10:37.092379
2023-08-04T07:48:00
2023-08-04T07:48:00
30,116,803
2
0
null
null
null
null
UTF-8
Scilab
false
false
3,059
tst
PG01.prev.tst
/* Generated at yyyy-mm-dd hh:mm by java -cp dist/ramath.jar org.teherba.ramath.ProgramGenerator -w 3 -l 3 -n barning Do N O T edit this file, but ProgramGenerator.java instead! */ #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int reslines = 0; printf("#---> start of results ----\n"); int m11,m12,m13 ,m21,m22,m23 ,m31,m32,m33 ; int a=3; int b=4; int c=5; for (m11 = -3; m11 < 4; m11++) /* row 1 */ { if (m11 != 0) { for (m12 = -3; m12 < 4; m12++) /* row 1 */ { if (m12 != 0) { for (m13 = -3; m13 < 4; m13++) /* row 1 */ { if (m13 != 0) { for (m21 = -3; m21 < 4; m21++) /* row 2 */ { if (m21 != 0) { for (m22 = -3; m22 < 4; m22++) /* row 2 */ { if (m22 != 0) { for (m23 = -3; m23 < 4; m23++) /* row 2 */ { if (m23 != 0) { if (m21 != m11 || m22 != m12 || m23 != m13) /* row 2 != row 1 */ { for (m31 = -3; m31 < 4; m31++) /* row 3 */ { if (m31 != 0) { for (m32 = -3; m32 < 4; m32++) /* row 3 */ { if (m32 != 0) { for (m33 = -3; m33 < 4; m33++) /* row 3 */ { if (m33 != 0) { if (m31 != m21 || m32 != m22 || m33 != m23) /* row 3 != row 2 */ { if (m31 != m11 || m32 != m12 || m33 != m13) /* row 3 != row 1 */ { if (m11 != m12 || m21 != m22 || m31 != m32) /* col 1 != col 2 */ { if (m11 != m13 || m21 != m23 || m31 != m33) /* col 1 != col 3 */ { if (m12 != m13 || m22 != m23 || m32 != m33) /* col 2 != col 3 */ { if ( m11^2 + 2*m11*m13 + m13^2 + m21^2 + 2*m21*m23 + m23^2 - m31^2 - 2*m31*m33 - m33^2 == 0) { if ( - m11^2 + 2*m12^2 + m13^2 - m21^2 + 2*m22^2 + m23^2 + m31^2 - 2*m32^2 - m33^2 == 0) { if ( m11*m12 + m12*m13 + m21*m22 + m22*m23 - m31*m32 - m32*m33 == 0) { if ( - m11*m12 + m12*m13 - m21*m22 + m22*m23 + m31*m32 - m32*m33 == 0) { int v1=m11*a+m12*b+m13*c; if (v1 > a ) { int v2=m21*a+m22*b+m23*c; if (v2 > b && v2 > v1) { int v3=m31*a+m32*b+m33*c; if (v3 > c && v3 > v2) { if (v1*v1 + v2*v2 - v3*v3 == 0) { printf("["); printf("[%d,%d,%d]",m11,m12,m13); printf(","); printf("[%d,%d,%d]",m21,m22,m23); printf(","); printf("[%d,%d,%d]",m31,m32,m33); printf("]"); reslines ++; printf("\t\tpreserves: [%d,%d,%d] -> [%d,%d,%d]\n",a,b,c, v1,v2,v3); }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} printf("#---> reslines=%d\n", reslines); } /* main */ #---> start of results ---- [[-3,1,2],[1,1,1],[-2,1,3]] preserves: [3,4,5] -> [5,12,13] [[-2,1,2],[-1,2,2],[-2,2,3]] preserves: [3,4,5] -> [8,15,17] [[-2,2,2],[1,2,1],[-1,2,3]] preserves: [3,4,5] -> [12,16,20] [[-1,1,1],[-2,1,2],[-3,1,3]] preserves: [3,4,5] -> [6,8,10] [[-1,2,1],[2,2,2],[1,2,3]] preserves: [3,4,5] -> [10,24,26] [[1,-2,2],[2,-1,2],[2,-2,3]] preserves: [3,4,5] -> [5,12,13] [[1,2,-1],[2,-2,2],[1,-2,3]] preserves: [3,4,5] -> [6,8,10] [[2,-2,2],[2,1,1],[2,-1,3]] preserves: [3,4,5] -> [8,15,17] [[2,-1,1],[2,2,2],[2,1,3]] preserves: [3,4,5] -> [7,24,25] [[2,1,-1],[-2,2,2],[-2,1,3]] preserves: [3,4,5] -> [5,12,13] [[2,1,2],[1,2,2],[2,2,3]] preserves: [3,4,5] -> [20,21,29] #---> reslines=11
23202ae7240313528dc347af54822036e2b2ebf0
449d555969bfd7befe906877abab098c6e63a0e8
/24/CH28/EX28.2/Example28_2.sce
6e2766eac46dfa8a2fcd5daeaeea9002b9f227dd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
551
sce
Example28_2.sce
//Given that R1 = 20 //in Ohm R2 = 20 //in Ohm R3 = 30 //in Ohm R4 = 8 //in Ohm E = 12 //in Volts //Sample Problem 28-2a printf("**Sample Problem 28-2a**\n") R23 = R2*R3/(R2+R3) Req = R1 + R23 + R4 i = poly(0, 'i') i = E/Req printf("The current through the battery is %fA\n", i) //Sample Problem 28-2b printf("\n**Sample Problem 28-2b**\n") i2 = i*R23/R2 printf("The current through R2 is %fA\n", i2) //Sample Problem 28-2c printf("\n**Sample Problem 28-2c**\n") i3 = i2*R2/R3 printf("The current through R3 is %fA", i3)
164e2d0eb8f501a7a3efeaf6eb9bed3db4566347
449d555969bfd7befe906877abab098c6e63a0e8
/1760/CH5/EX5.36/EX5_36.sce
2e00a5209e05276e945720c346863f45cdddf6a3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
326
sce
EX5_36.sce
//EXAMPLE 5-36 PG NO=329 I1=-10; //CURRENT Vpc=15; I2=7.5; Vqc=I2*1; disp(' Voltage is = '+string(Vqc)+'V'); Vpq=Vpc-Vqc; disp(' Voltage is = '+string(Vpq)+'V'); RTH=1.406; Pmax=[I2/(2*RTH)]^2*RTH; disp(' Power is = '+string(Pmax)+'W');
0afe446b56dd9dad36b081ee5632d5c512f7a403
449d555969bfd7befe906877abab098c6e63a0e8
/1583/CH10/EX10.4/FS_Ex_10_4.sce
460d847e9be4f959e7672c17174568085ab13733
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
683
sce
FS_Ex_10_4.sce
clc //Chapter 10:Frequency Synthesizers //Example 10.4 page no 417 fo=185.6*10^6//required output frequency fr=31.25*10^3//reference frequency P=64 disp('To begin with the hopping bin channel spacing requirement of at least 20KHz,a 2MHz crystal is connected to the MC14512-2 with the reference address inputs(pins 4,5,6) connected such that the crystal is divided by 64(RA2=0,RA1=0,RA0=1) This gives a reference frequency of 31.25KHz; and the maximum number of hops is 5.2MHz/31.25KHz=166.4hops FOr 185.6MHZ the values of N and A are found as follows:') N=(fo/fr)/P//finding N for A=0 disp('For this value of N,find A by ') A=(fo/fr)-92*P mprintf('N = %d \n A = %d ',N,A)
f85280fcb6309c0248768f613f9e273dfa135ff2
25033eda4e7cd13f945f94c5dc35f15825066b42
/ExactCure/Gradient/gradient performance.sce
3ebeba4f6725fda8b919feeee9207120b6b9fb50
[]
no_license
julienguegan/Internships
a26cb9efa2f1715832511a7aa94d25bfc675388b
ad51d5845ed8fd41e29259c95e8beff80bac65cf
refs/heads/master
2020-12-20T21:54:29.099157
2020-01-25T19:20:10
2020-01-25T19:20:10
236,217,889
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,875
sce
gradient performance.sce
clear exec('C:\Users\Julien Guégan\Desktop\PFE\Algorithmes\affichage.sce',-1) function z = rozenbrock(x) z = 10*(x(2)-x(1)^2)^2 + (1-x(1))^2; endfunction function z = cout(x) z = 6*x(1).^2+2*x(2).^2+4*x(1).*x(2)+x(1)+x(2) endfunction function alpha = linearsearch1(f,x,d,grad) alpha = 1 w1 = 0.9 w2 = 0.1 cpt = 0 if(f(x+alpha*d)<(f(x)+alpha*w1*(grad'*d))) while(f(x+alpha*d)<(f(x)+alpha*w1*(grad'*d))) alpha = alpha*2 cpt = cpt+1 end else while(f(x+alpha*d)>(f(x)+alpha*w2*(grad'*d))) alpha = alpha/2 cpt = cpt+1 end end endfunction function pas = linearsearch2(f,x,df) pas = 1 grad = numderivative(f,) cpt=0 while(f(x+pas*df)>(f(x)+0.5*grad'*df)) cpt=cpt+1 pas = (-pas*grad*df')/(2*(f(x+pas*df)-f(x)-pas*grad*df')) end endfunction clf(0) tol = 0.001 f = cout affiche(f,0.8,-2,2,-1.1,'contour') g = gcf(); g.color_map = bonecolormap(50); x0 =[-1.5 1.5] ///////////////pas variable////////////////////////// x(1,:) = x0 df = numderivative(f,x0) n = 1 while (norm(df'*df)>tol) pas = linearsearch2(f,x(n,:),df) //pas = -linearsearch1(f,x(n,:),-df,df) x(n+1,:) = x(n,:)+pas*df df = numderivative(f, x(n+1,:)) // plot(x(n,1),x(n,2),'k.','markersize',3) // plot([x(n,1) x(n+1,1)],[x(n,2) x(n+1,2)],'k-') n = n+1; aploter(n) = f(x(n,:)) end for i=1:size(x,1)-1 plot([x(i,1) x(i+1,1)],[x(i,2) x(i+1,2)],'b-') end clf(1) ite = 1:n aploter(1) = f(x0) plot(ite',aploter,'b','markersize',3) ////////////////gradient cpnjugué//////////////////////////// x = [] aploter = [] x(1,:) = x0+0.01 grad0 = numderivative(f,x0) direction = grad0 k = 1 while k<n then alpha = linearsearch2(f,x(k,:),direction) x(k+1,:) = x(k,:)+alpha*direction //le nouvel itéré solution du pb grad1 = numderivative(f,x(k+1,:)) //le nouveau gradient au point x(n+1) Beta = (grad1*grad1')/(grad0*grad0')// la constante Beta (un scalaire) direction = grad1+Beta*direction // la nouvelle direction grad0 = grad1//mise a jour pour la prochaine iteration k = k+1 aploter(k) = f(x(k,:)) end disp(k) aploter(1) = f(x0) ite = 1:k plot(ite',aploter,'r-') ////////////////////////////////////////////// ///////////////pas = 0.01 ////////////////////////// x = [] aploter = [] x(1,:) = x0 df = numderivative(f,x0) k = 1 while k<n pas = -0.05 x(k+1,:) = x(k,:)+pas*df df = numderivative(f, x(k+1,:)) k = k+1; aploter(k) = f(x(k,:)) end aploter(1) = f(x0) ite = 1:k plot(ite',aploter,'b--') ////////////////////////////////////////////////////// g = gca() g.data_bounds=[0,0; n,f(x0)]; legend(["$pas\ variable$";;"$GC$";"$pas = 0.05$"] ,-1, %f) xlabel('$nbr\ d\ évaluation$','fontsize',4) ylabel('$f(x)$','fontsize',4)
63642a0b64a021f378e212dc3158d3b10a9f1680
449d555969bfd7befe906877abab098c6e63a0e8
/978/CH5/EX5.10/Example5_10.sce
95c05662543b2e431e30a5b26b59d8583b18c3ad
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
212
sce
Example5_10.sce
//chapter-5,Example5_10,pg 493 n=3//3-bit ADC SbyN=(((2^(n-1)*12^0.5)/2^0.5))//S/N ratio printf("S/N ratio\n") printf("SbyN=%.4f \n",SbyN) printf("this produces an error due to noise nearly 0.10")
62d1185b4ec1983a1e251e057e17c56210db7a2d
449d555969bfd7befe906877abab098c6e63a0e8
/3866/CH2/EX2.8/Ex2_8.sce
6f6d49347600c3156ffc3a98421d07bcdaa13208
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
302
sce
Ex2_8.sce
clear; clc;close; vgs=1.2; vt=0.4; ecln=0.6; eclp=2.4; vdsat1=((vgs-vt)*ecln)/(vgs-vt+ecln); vdsat2=((vgs-vt)*eclp)/(vgs-vt+eclp); ratio=(vgs-vt+eclp)/(vgs-vt+ecln); disp(vdsat1,'for NMOS(in volts)'); disp(vdsat2,'for PMOS(in volts)'); disp(ratio,'saturation current ratio nmos to pmos');
5004ba9003e70d0d78a43cff7c96240ba61a8ccf
449d555969bfd7befe906877abab098c6e63a0e8
/40/CH8/EX8.9b/Exa_8_9b.sce
48e9487cc2e46aa9620df3f262ef5c9dbbf2b0b0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
299
sce
Exa_8_9b.sce
//DFT and DFS of sinusoids n2=0:1/1280:31/128; xt=4*sin(72*%pi*n2'); n=0:1/128:31/128;//F=9/32 hence N=32 xn=4*sin(72*%pi*n'); XDFT=abs(fft(xn,-1)); n1=0:31; a=gca(); a.x_location="origin"; plot2d(n2,xt); plot2d3('gnn',n,xn); xset('window',1); b=gca(); b.x_location="origin"; plot2d3('gnn',n1,XDFT);
e92773d3a2de249d9840ce869581fb4d9f601308
449d555969bfd7befe906877abab098c6e63a0e8
/2120/CH2/EX2.2/exa_2_2.sce
39de168ba1e939670855257c0aa97b333abc2982
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,040
sce
exa_2_2.sce
// Exa 2.2 clc; clear; close; // Given data p= 12;// in bar p=p*10^5;// in N/m^2 v= 25;// in m^3 T= 30+273;// in K // Part (a) Mass of each gas //Formula p*v=m*R*T R_U= 8314;// in J/kg-mole K M_N2= 28.016;// in mole M_O2= 32;// in mole M_CO2= 44;// in mole R_N2= R_U/M_N2;// in J/kg K R_O2= R_U/M_O2;// in J/kg K R_CO2= R_U/M_CO2;// in J/kg K m_of_N2= p*v/(R_N2*T);// in kg m_of_O2= p*v/(R_O2*T);// in kg m_of_CO2= p*v/(R_CO2*T);// in kg disp(m_of_N2,"The mass of Nitrogen gas stored in the vessel in kg is : ") disp(m_of_O2,"The mass of Oxygen gas stored in the vessel in kg is : ") disp(round(m_of_CO2),"The mass of Carbon dioxide gas stored in the vessel in kg is : ") // Part (b) Molar Volume // Formula v_molar= M*R*T/p= R_U*T/p v_molar= R_U*T/p;// in m^3 disp(v_molar,"Molar volume of the gas mixture in m^3 is : ") // Part (c) Average density // rho_avg= total mass/total volume rho_avg= (m_of_N2+m_of_O2+m_of_CO2)/v;// in kg/m^3 disp(rho_avg,"Average density of the gas mixture in kg/m^3 is : ")
f4d759c711c945c09a433e120bdc991e1f0e46e2
449d555969bfd7befe906877abab098c6e63a0e8
/608/CH41/EX41.13/41_13.sce
dd15f072984147fd28e11d08eb37032b20f5e9f7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
823
sce
41_13.sce
//Problem 41.13: An asymmetrical T-section attenuator is shown in Figure 41.24. Determine for the section (a) the image impedances, and (b) the iterative impedances. //initializing the variables: R1 = 100; // in ohm R2 = 200; // in ohm R3 = 300; // in ohm I1 = 1; // in amperes (lets say) //calculation: //image impedance Roa Roa = ((R1 + R2)*(R2 + (R1*R3/(R1 + R3))))^0.5 //image impedance Rob Rob = ((R1 + R3)*(R3 + (R1*R2/(R1 + R2))))^0.5 //The iterative impedance at port 1 Ri1 = (-1*R1 + (R1^2 - (-1*4*((R2*(R1 + R3)) + (R3*R1))))^0.5)/2 //The iterative impedance at port 2 Ri2 = (R1 + (R1^2 - (-1*4*((R3*(R1 + R2)) + (R2*R1))))^0.5)/2 printf("\n\n Result \n\n") printf("\n image impedance are %.1f ohm and %.0f ohm ",Roa,Rob) printf("\n iterative impedances are %.1f ohm and %.1f ohm ",Ri1,Ri2)
5c77b0005e5f6e0d1d9fa54837e06336160819cf
244971ae8af51184d278cdc2be1c80775413adae
/SSSeSourceSin.sci
0cf16d98f57b9be84049b1c0861b2963be3f3f4d
[]
no_license
MSCA-SIMFREE/748767
5879f1f139b608c7cd2f1bd62325b281c9c1e7d1
4726206e514f1e47e939e73b9339c056057866db
refs/heads/master
2020-12-27T15:21:13.646362
2020-02-03T11:40:00
2020-02-03T11:40:00
237,951,088
1
0
null
null
null
null
UTF-8
Scilab
false
false
971
sci
SSSeSourceSin.sci
// The code was developed under Horizon2020 Framework Programme // Project: 748767 — SIMFREE function y=SSSeSourceSin(Frequency_GHz, Amplitude) // Cosinusoidal Source // // Calling Sequence // y=SSSeSourceSin(Frequency_GHz, Amplitude) // // Parameters // Frequency_GHz : Signal Frequency // Amplitude : Amplitude of the output wave // y : Electrical Output // Description // Generates a cosinusoidal wave = A cos(2π·f·t). // The actual frequency used is rounded to the nearest sample point to maintain periodicity over the modeled time window. // global MNT MDT; [lhs,rhs]=argn(0); select rhs case 0 then Frequency_GHz=10; Amplitude=1; case 1 then Amplitude=1; end x=round((0.1+MNT)*MDT*Frequency_GHz); if MNT/2 < x then; Amplitude=0; end y=zeros(MNT,1); for i=1:MNT y(i)= Amplitude*sin(2*%pi*x/MNT*(i-1)+%pi*90/180); end endfunction
2da3367a01691412ccc4a565e2b7fdcc2ec89594
449d555969bfd7befe906877abab098c6e63a0e8
/1217/CH2/EX2.7/Exa2_7.sce
e21d40acc14d982dc0d5b1fb1bd0a48c58aeeedd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
191
sce
Exa2_7.sce
//Exa 2.7 clc; clear; close; //given data fm=50;//in kHz SR=0.5;//in V/uSec //formula : SR=2*%pie*fm*Vm Vm=(SR*10^6)/(2*%pi*fm*10^3);//in Volts disp(Vm,"Maximum vltage in volt is :")
57895a05c5ac6250e20c3ced12affe03ae18eb84
449d555969bfd7befe906877abab098c6e63a0e8
/167/CH7/EX7.11/ex11.sce
02038a95bb9c7676dcf935e0e051d832eb8b1934
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
296
sce
ex11.sce
//ques11 //Isentropic Compression of an Ideal Gas clear clc //using the equation P2=P1*(T2/T1)^(k/(k-1)) P1=14;//initial pressure in psia T2=780;//final temp in R T1=510;//initial temp in R k=1.667;//isentropic ratio P2=P1*(T2/T1)^(k/(k-1)); printf('Final pressure = %.1f psia',P2);
5d9118b016b9482a33ed845d3a223363ca602f2b
449d555969bfd7befe906877abab098c6e63a0e8
/2885/CH3/EX3.12/ex3_12.sce
26a30ac35c9cebf260f5217c07f0b83f08be2950
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,023
sce
ex3_12.sce
//Calculate max and min values of zener diode current clear; clc; //soltion //given Vimin=80;//V //minimum input voltage Vimax=120;//V //maximum input voltage Rl=10*10^3;// ohm //load resistance Rs=5*10^3;//ohm //series resistance Vz=50;//V //Zener voltage V=Vimin*Rl/(Rs+Rl); //This V>Vz therefore Zener diode is ON //For minimum value of zener diode Vo=Vz; //output voltage Vs=Vimin-Vo; //Voltage drop across the series resistor Is=Vs/Rs //current through the series resistor Il=Vo/Rl; //Current through load resistance Izmin=Is-Il; printf("\nMinimum values of zener diode current is %.0f mA\n",Izmin*1000); //For maximum value of zener diode Vo=Vz; //output voltage Vs=Vimax-Vo; //Voltage drop across the series resistor Is=Vs/Rs //current through the series resistor Il=Vo/Rl; //Current through load resistance Izmax=Is-Il; printf("Maximum values of zener diode current is %.0f mA",Izmax*1000);
16353d54540231b230af6ee5c1e50ef27e99ff82
449d555969bfd7befe906877abab098c6e63a0e8
/51/CH6/EX6.7/6_7.sce
1261a4cdee8114e1ad9b7cb232c22b52c144d413
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
757
sce
6_7.sce
clc; clear; h=200;//ft U=40;//mi/hr d=0.00238;//slugs/ft^3 //V^2= (U^2)*(1 + (2*b*cos(ang)/r) + ((b^2)/(r^2))) //at point 2, ang=%pi/2 //r=b*(%pi-ang)/sin(ang)=(%pi*b/2) V=U*(1+(4/(%pi^2)))^0.5;//mi/hr y2=h/2;//ft //bernoulli equation //p1-p2= d*((V2^2)-(V1^2)) + (sw*(y2-y1)) V1=U*(5280/3600); V2=V*(5280/3600); pdiff=((d*((V2^2)-(V1^2))/2) + (d*32.2*(y2)))/144;//psi disp("mi/hr",V,"The magnitude of velocity at (2) for a 40 mi/hr approaching wind =") disp("psi",pdiff,"The pressure difference between points (1) and (2)=") u=0:100; for i=0:100 pd(i+1)= ((d*((((i*(1+(4/(%pi^2)))^0.5)*(5280/3600))^2)-((i*(5280/3600))^2))/2) + (d*32.2*(y2)))/144; end plot2d(u,pd,rect=[0,0,100,0.14]) xtitle("(p1-p2) vs U","U,mph","p1-p2 ,psi")
213287a0c602b46baca9fd56fd8f0a7d4417f370
449d555969bfd7befe906877abab098c6e63a0e8
/1919/CH6/EX6.17/Ex6_17.sce
c034fbc249c4a2f823b3a56ec91bdc46c15ba285
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
802
sce
Ex6_17.sce
// Theory and Problems of Thermodynamics // Chapter 6 // Thermodynamic Potentials and Availability // Example 17 clear ;clc; //Given data P1 = 3 // entering pressure of superheated steam in MPa T1 = 573.15 // entering temperature of superheated steam in K P2 = 20 // pressure of dry saturated steam in kPa T0 = 300 // ambient temperature in K // Steam at 3.0 MPa and 573.15 k h = 2993.5 // in kJ/kg s = 6.539 // in kJ/kg K // Steam at 20 kPa hg = 2609.7 // in kJ/kg sg = 7.9085 // in kJ/kg K // n2 = W/(B1-B2) // second law efficiency of turbine n2 = (h-hg)/(h-hg-T0*(s-sg)) // Output Results mprintf('Second law efficiency of turbine = %4.3f' ,n2);
70e82667fdaaf41aca84c79ed6c8bfdde7be6c8f
449d555969bfd7befe906877abab098c6e63a0e8
/1067/CH3/EX3.6/3_6.sce
4ad7a6d827ded8cd81809e70a07047ebf2bfffe8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
328
sce
3_6.sce
clear; close; clc; V=78e3; Vph=V/sqrt(3); Em=2*Vph; pf=0.4; angle=acos(pf); k1=sin(angle); k1=round(k1*100)/100; k2=.951; k3=1; k=k1*k2*k3; k=round(k*1000)/1e3; E=k*Em; f=15000; t=1/(2*f); t=round(t*1e6); eavg=2*E/t; eavg=round(eavg/100)*100; printf("average restriking voltage=%fkV/microsecs",eavg/1e3);
bdeb3369caa8468d6b6d54090c52a2707e50825d
449d555969bfd7befe906877abab098c6e63a0e8
/800/DEPENDENCIES/5_4.sci
9da1cdac87aff3062fdce1cbccee74cbe162ade5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
88
sci
5_4.sci
CCH4 = [2.44 4.44 10 1.65 2.47 1.75]'*1e-4; PCO= [1 1.8 4.08 1 1 1]'; v0 =300; W= 10;
00dd9b28e23569c23dce4f98e06a2bae164dabd8
6285663d2259fa331b87bfb8ab368f892ee94351
/10/testers/p8/test/test.tst
8efaadb39d901645d8ee8a47503fee9f952f1922
[]
no_license
Ellonet/nand-ex1
1ed60786aef5386321519d23b1d2328930e0700d
19eee2248c24c9912ca72b61ce0d1869dc885d71
refs/heads/master
2020-04-01T10:07:53.274194
2019-01-06T18:07:23
2019-01-06T18:07:23
153,103,996
0
0
null
null
null
null
UTF-8
Scilab
false
false
163
tst
test.tst
load test.asm, output-file test.out, compare-to test.cmp, output-list RAM[5000]%D1.6.1 RAM[5001]%D1.6.1 RAM[5002]%D1.6.1; repeat 1000000 { ticktock; } output;
cb24acff3727e2e37ce636998e1c498944f80fb4
449d555969bfd7befe906877abab098c6e63a0e8
/2183/CH7/EX7.7/Ex_7_7.sce
49547776bd2c034d97229b4ea4bfa2a921ee1a42
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
201
sce
Ex_7_7.sce
// Example 7.7 //width of deplition region clc; clear; close; n=70;//efficinecy absc=10^5;//cm^-1 W=(2.303*-log10(1-(n/100)))/(absc);//in meter disp(round(W*10^6),"deplition width in micro meter is")
b70f11ec2d453cf03e90f1030413a204a8b4885f
449d555969bfd7befe906877abab098c6e63a0e8
/2138/CH3/EX3.11.c/ex_3_11_c.sce
d08fd46ef69f2a302eb6a9e7d2c0ad0bbd6de39e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
440
sce
ex_3_11_c.sce
//Example 3.11.C // CURRENT IN EACH RESISTANCE clc; clear; close; t=15;//TOTAL CURRENT IN AMPERES i1=2;//CURRENT THROUGH UNKNOWN RESISTANCE R1=15;//in ohms R2=50/2;//in ohms x=(t-i1)*((R1*R2)/(R1+2*R2));//unknown resistance in ohms PD=i1*x;//in volts i5= PD/(2*R2);//current in 5 ohms resistance i15=PD/R1;//current in 15 ohms resistance disp(i5,"current in 5 ohms resistance in ampere") disp(i15,"current in 15 ohms resistance in ampere")
832377f9aa4a3306e7a219ef78c9ffa4d9cd0ad4
5a05d7e1b331922620afe242e4393f426335f2e3
/macros/gmonopuls.sci
72658538c8d7f639bbcc9d6a2c443831238e3462
[]
no_license
sauravdekhtawala/FOSSEE-Signal-Processing-Toolbox
2728cf855f58886c7c4a9317cc00784ba8cd8a5b
91f8045f58b6b96dbaaf2d4400586660b92d461c
refs/heads/master
2022-04-19T17:33:22.731810
2020-04-22T12:17:41
2020-04-22T12:17:41
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,874
sci
gmonopuls.sci
// Copyright (C) 2018 - IIT Bombay - FOSSEE // // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt // Author:[insert name] // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in function y = gmonopuls(t, fc ) // // This program is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free Software // Foundation; either version 3 of the License, or (at your option) any later // version. // // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // this program; if not, see <http://www.gnu.org/licenses/>. // Calling Sequence // [y]=gmonopuls(t) // [y]=gmonopuls(t,fc) // Parameters // t: Real or complex valued vector or matrix // fc: Real non-negative value or complex value or a vector or matrix with not all real values negative. // Description // This is an Octave function // This function returns samples of the Gaussian monopulse of amplitude unity. // Examples // 1. gmonopuls([1 2 3],0.1) // ans= 0.85036 0.94070 0.52591 // 2. gmonopuls([1 2 3],[]) // ans= 0 0 0 [nargout,nargin]=argn(); if (nargin<1 | nargin > 2) error("wrong number of input arguments"); end if(isempty(fc)) fc=1e3; end if fc < 0 error("fc must be positive"); end y = 2*sqrt(exp(1)) .* %pi.*t.*fc.*exp(-2 .* (%pi.*t.*fc).^2); endfunction
71b3fbe778a5acd8256241bc58c00dff62940701
449d555969bfd7befe906877abab098c6e63a0e8
/1775/CH2/EX2.5/Chapter2_Example5.sce
c64e5a791edff042e782d84d6e2ba16c75ba99be
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,273
sce
Chapter2_Example5.sce
//Chapter-2, Illustration 5, Page 60 //Title: Gas Power Cycles //============================================================================= clc clear //INPUT DATA rv=8;//Compression ratio P1=95;//Pressure at point 1 in kPa T1=300;//Temperature at point 1 in K q23=750;//Heat transferred during constant volume heat addition process in kJ/kg y=1.4;//Ratio of specific heats Cv=0.718;//Specific heat at constant volume in kJ/kg-K R=287;//Universal gas constant in J/kg-K //CALCULATIONS T2=T1*(rv^(y-1));//Temperature at point 2 in K P2=P1*(rv^y);//Pressure at point 2 in kPa T3=(q23/Cv)+T2;//Temperature at point 3 in K P3=P2*(T3/T2);//Pressure at point 3 in kPa nth=(1-(1/(rv^(y-1))))*100;//Thermal efficiency Wnet=(nth*q23)/100;//Net work output in kJ/kg v1=(R*T1)/(P1*1000);//Speific volume at point 1 in (m^3)/kg MEP=Wnet/(v1*(1-(1/rv)));//Mean effective pressure in kPa //OUTPUT mprintf('Pressure at the end of heat addition process is %3.1f kPa \n Temperature at the end of heat addition process is %3.1f K \n Net work output is %3.2f kJ/kg \n Thermal efficiency is %3.2f percent \n Mean effective pressure is %3.0f kPa',P3,T3,Wnet,nth,MEP) //==============================END OF PROGRAM=================================
faa43697262c34a46a686e6ece06f2daaebf03be
449d555969bfd7befe906877abab098c6e63a0e8
/1553/CH25/EX25.28/25Ex28.sce
3839a4c4fb935c28da79cf506f9fa45fb7f428b7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
245
sce
25Ex28.sce
//Ch25_Ex28 clc; clear; close; db=1.5; rb=db/2; //diameter and radius of bullet rc=6; hc=28;//radius and height of cylinder volC=%pi*rc^2*hc; volB=(4/3)*%pi*rb^3; noBullets=volC/volB; mprintf("THe number of bullets are %d",noBullets);
87cf743c721a3d66cecb0c722f5fc625699ca3b7
449d555969bfd7befe906877abab098c6e63a0e8
/3020/CH21/EX21.12/ex21_12.sce
8fdf66223a25f07b087656dcd20b1fb183133b41
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
222
sce
ex21_12.sce
clc; clear all; er=12;//relative dielectric constant of material N=5e28;//no of atoms e0=8.85e-12;//permittivity of vacume xe=e0*(er-1)/N;//polarisability of element disp('F m^2',xe,'polarisability of element is:')
9338c1896740ad2e0b510d325c9268b0cea1d0ae
449d555969bfd7befe906877abab098c6e63a0e8
/2192/CH4/EX4.18/4_18.sce
cf449e3a08a2976504879300e199746eb5ffa94b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
519
sce
4_18.sce
clc,clear printf('Example 4.18\n\n') m=1.8 //mass of aluminium to be melt t1=15 //initial temperature t2=660 //melting temperature S=880 //specific heat of aluminium L=32000 //latent heat of aluminium heat_required= m*S*(t2-t1) + m*L heat_required= heat_required*2.78*10^-7 //converting Joules to kWh T=10//time taken for melting in minutes energy_input=5*(T/60) //In kWh efficiency_of_furnace = 100* heat_required / energy_input printf('Efficiency of furnace = %.0f percent',efficiency_of_furnace )
392854dee1d7fb4a2f0f01f14d023f297c3f2549
449d555969bfd7befe906877abab098c6e63a0e8
/548/DEPENDENCIES/5_06data.sci
3745edebf7f92af2d059989898c200a6be4cac3f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
sci
5_06data.sci
V=100;//velocity of airplane(m/s) H=3000;//standard altitude at which airplane is flying(meter) Cp=-2.2;//pressure coefficient at a point on fuselage P=7.0121*10^4;//pressure at 3000 m,N/m^2 D=0.90926;//density at 3000 m,Kg/m^3 q=D*V^2/2 //dynamic pressure,N/m^2
85a6ea92a578af815d0f29529afa1d946fa58494
449d555969bfd7befe906877abab098c6e63a0e8
/587/CH2/EX2.7/example2_7.sce
05ecabfad3d61300695382bfd81a13e6e9a854e6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
821
sce
example2_7.sce
clear; clc; //Example2.7[Heat Flux boundary Condition] //Given:- Q=800;//Heat transfer rate[W] D=0.2;//Diameter of pan[m] L=0.003;//Thickness of pan[m] T_in=110;//T(L) Temperature of the inner surface of the pan[degree Celcius] neta=0.9;//Percent of total heat transferred to the pan //Solution;- //The inner and outer surfaces of the bottom section of the pan can be represented by x=0 and x=L,respectively. During steady operation the temperature will depend on x only and thus T=T(x). //Solution:- actual_Q=neta*Q;//90 percent of the 800W is transferred to the pan at that surface A=%pi*(D^2)/4;//Bottom Surface Area[m^2] disp("-k*dT(0)/dx=q_") q_=actual_Q/(1000*A);//[kW/m^2] //The boundary condition on this surface can be expressed as disp("degree Celcius",T_in,"T(L)=") disp("m",L,"where L=")
24c5b4dbf3ca624cc9a3e0a33a98ce26aff6c024
449d555969bfd7befe906877abab098c6e63a0e8
/3507/CH21/EX21.2/Ex21_2.sce
105359a2a6ac5819a02616521b79983b95ad39de
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
292
sce
Ex21_2.sce
//chapter21 //example21.2 //page463 R=10d3 // ohm C=0.01d-6 // F T=1.4*R*C f=1/T printf("time period of square wave = %.3f ms \n",T*1000) printf("frequency of square wave = %.3f kHz \n",f/1000) // the accurate answer for frequency is 7.143 kHz but in book it is given 7 kHz
237a207d86bda751c66bfa8e946c12a451a7320d
449d555969bfd7befe906877abab098c6e63a0e8
/2297/CH4/EX4.1/Ex4_1.sce
39d9534589c891c45f889664843bda83d0ec20d9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
409
sce
Ex4_1.sce
// Example 4.1;NUMBER OF TURNS clc; close; clear; // given : format('v',7) e1=2200;//voltage in volts f=50;//frequency in Hz e2=220;//voltage in volts fd=1.6;//magnetic field in Tesla a=3600;//area in mm^2 n1=(e1/(4.44*f*fd*a*10^-6));//number of turns n2=(e2/(4.44*f*fd*a*10^-6));//number of turns disp(round(n1),"number of primary winding turns are") disp(round(n2),"number of secondary winding turns are")
72a6b3dcde680f6339c41833bf755743f9667f65
449d555969bfd7befe906877abab098c6e63a0e8
/40/CH9/EX9.11/Exa_9_11.sce
35a2c585ddde9abf4ba0fbd2ba761a9c9932bb96
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
716
sce
Exa_9_11.sce
//interference Rejection //design oh high-Q and low-Q notch filters s=%s;z=%z; Q=50; fo=60;S=300; delf=fo/Q; Wo=2*%pi*fo/S; delW=2*%pi*delf/S; C=tan(0.5*delW),B=cos(Wo) HS=(s)/(s+1); H1Z=horner(HS,(z^2-(2*B*z)+1)/(C*(z^2)-C)) Q1=5;delf1=fo/Q1; delW1=2*%pi*delf1/S; C1=tan(0.5*delW1),B1=cos(Wo) H2Z=horner(HS,(z^2-(2*B1*z)+1)/(C1*(z^2)-C1)) f=0:0.5:150; H1Z1=horner(H1Z,exp(%i*2*%pi*f'/S)); H2Z1=horner(H2Z,exp(%i*2*%pi*f'/S)); a=gca(); subplot(211); plot2d(f,H1Z1); xlabel('Analog Frequency f[Hz]'); ylabel('Magnitude'); xtitle('60 HZ notch filter with Q=50'); subplot(212); plot2d(f,H2Z1); xlabel('Analog Frequency f[Hz]'); ylabel('Magnitude'); xtitle('60 HZ notch filter with Q=5');
4336764bca182082cf80c576d402c5abb925fb2b
449d555969bfd7befe906877abab098c6e63a0e8
/1670/CH10/EX10.1/10_1.sce
9960ca40714ae9b70e6bbc553089b8b1ed3beac6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
561
sce
10_1.sce
//Example 10.1 //Taylor Method //Page no. 302 clc;clear;close; deff('y=f1(x,y)','y=y-2*x/y') deff('y=f2(x,y)','y=(2*y*f1(x,y)-2-f1(x,y)^2)/y') deff('y=f3(x,y)','y=(2*y*f2(x,y)-3*f1(x,y)*f2(x,y)+2*f1(x,y)^2)/y') h=0.1;y=1; x=[0.1;-0.1] for i=1:2 k=y; for j=1:3 if j==1 then k=k+(-1)^((i-1)*j)*(h^j)*f1(0,y)/factorial(j) elseif j==2 k=k+(-1)^((i-1)*j)*(h^j)*f2(0,y)/factorial(j) elseif j==3 k=k+(-1)^((i-1)*j)*(h^j)*f3(0,y)/factorial(j) end end printf('\ny(%g) = %g\n\n',x(i),k) end
d80d65674e2bacf718e82400c3733cd746cb5ce1
449d555969bfd7befe906877abab098c6e63a0e8
/2744/CH10/EX10.13/Ex10_13.sce
034d3333df0d6b6dba7c3afd672afb4691978ddf
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
832
sce
Ex10_13.sce
clear; clc; r1 = 0.5*9;// inches r2 = 0.5*3;// inches r3 = 0.5*6;// inches del_r3 = 0.5*0.003;// inches E = 13000;// tons/in^2 k1 = r1/r3; k2 = r2/r3; a1 = (del_r3/r3)*E/((k1^2 +1)- (k2^2 +1)*(k1^2 -1)/(k2^2 -1)); a = a1*(k1^2 -1)/(k2^2 -1); b1 = a1*r1^2; b = a*r2^2; p_ = (b/r3^2) -a;// tons/in^2 // for the inner tube f_x1 = (b/r2^2) +a;// tons/in^2 f_x2 = (b/r3^2) +a;// tons/in^2 // for the outer tube f_x3 = (b1/r3^2) +a1;// tons/in^2 f_x4 = (b1/r1^2) +a1;// tons/in^2 printf('The hoop stresses are as under:'); printf('\n For the inner tube, at x = 1/5 inches, f = %.2f tons/in^2., compressive\n at x = 3 inches, f = %.2f tons/in^2.,compressive',-f_x1,-f_x2); printf('\n For the outer tube, at x = 3 inches, f = %.2f tons/in^2., tensile\n at x = 4.5 inches, f = %.2f tons/in^2.,tensile',f_x3,f_x4);
992dc6606837cb7f6014e81d3ef4bddea1a067be
449d555969bfd7befe906877abab098c6e63a0e8
/3850/CH31/EX31.7/Ex31_7.sce
dad58a9e2be59cf2ae3c19d970ae71a1c80da077
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
308
sce
Ex31_7.sce
//To Calculate the Energy stored in Capacitor //Example 31.7 clear; clc; C=100*10^-6;//Capacitance of the capacitor in Faraday V=20;//Potential Difference in Volts U=1/2*C*V^2;//Formula for finding the energy stored in a capacitor printf("The energy stored in the capacitor= %f J",U);
9c5a29ce8ffa3c7ceea57aad4bed7fcd1f0776ee
449d555969bfd7befe906877abab098c6e63a0e8
/1544/CH4/EX4.2/Ch04Ex2.sce
72a96f8c02d164b37fad8b1d15640ccc4fbf64bb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
405
sce
Ch04Ex2.sce
// Scilab code Ex4.2: Pg 116 (2008) clc; clear; A = 45e-06; // Cross sectional area of pole face, metre-square B = 0.6; // Flux density, T // Using formula B = phi/A, solving for phi phi = B*A; // Flux, Wb printf("\nThe flux produced by pole face = %2d micro-wWb", phi/1e-06); // Result //The flux produced by pole face = 27 micro-Wb
097d9ff6e21bbafaedff3dc51351b52d6fb9d785
449d555969bfd7befe906877abab098c6e63a0e8
/2144/CH2/EX2.9/exa_2_9.sce
fc7f51de512be494743a36a8b8fdeb2019214f1b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
359
sce
exa_2_9.sce
// Example 2.9 clc; clear; close; // Given data P1= 96;// in kN/m^2 P2= 725;// in kN/m^2 V1= 600;// in cm^3 V2= 100;// in cm^3 T1= 100+273;// in K // Formula P1*V1/T1 = P2*V2/T2 T2= P2*V2*T1/(P1*V1);// in K disp(T2-273,"Temperature at the end of compression in °C is : "); // Note:- In the book, There is an error to calculate the value of T2.
bd44c0968bed3c332bd6af14cb2c3e226d471a2e
99b4e2e61348ee847a78faf6eee6d345fde36028
/Toolbox Test/statelevels/statelevels17.sce
bdf0edcaa2fb686d75fd3be7c3e967d66bce29d6
[]
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
246
sce
statelevels17.sce
// x=[-0.00104287295007201 -0.00244190236539361 0.00330474678679599 0.00312506274996585 -0.00888427641170878 -0.000128837692967764 ]; [levels,histogram,binlevels] = statelevels(x,100,'mean'); disp(levels); //output // - 0.0088233 0.0005378
027031a371d1e5241f25b49c8d28897965d1ef46
29cfe7e83274e757dc406cdc2a855f7e76fdb698
/scilab/multi_lidar_point.sce
8b4b678b8b61543503b012224b24b9054a2dbb98
[]
no_license
andreucm/essential_maths_roboticists
2eb637afe3f46be6eb6c697eba7ada1d9406f482
95530267db0890be1e76778062d8eafd41d451dd
refs/heads/master
2022-07-16T05:18:15.976563
2022-07-01T08:36:47
2022-07-01T08:36:47
47,470,143
1
12
null
null
null
null
UTF-8
Scilab
false
false
996
sce
multi_lidar_point.sce
//point in Lidar 1 q = [10;3;1]; //lidar motion T1_1 = eye(3,3); T2_1 = [cos(-%pi/8) -sin(-%pi/8) 0.1; sin(-%pi/8) cos(-%pi/8) 0 0.2; 0 0 1 -0.2; 0 0 0 1 ]; T3_1 = [cos(-%pi/5) -sin(-%pi/5) 0 0.5; sin(-%pi/5) cos(-%pi/5) 0 -0.1; 0 0 1 0.1; 0 0 0 1 ]; T4_1 = [cos(%pi/7) 0 -sin(%pi/7) 0.5; 0 1 0 0.1; sin(%pi/7) 0 cos(%pi/7) -0.1; 0 0 0 1 ]; T5_1 = [cos(%pi/9) 0 -sin(%pi/9) 0.4; 0 1 0 0.2; sin(%pi/9) 0 cos(%pi/9) 0.1; 0 0 0 1 ]; //measurements u1 = K*T1_1*q + [rand(2,1);0]; //u1 = u1/u1(3) + [rand(2,1);0]; u2 = K*inv(T2_1)*q + [rand(2,1);0]; //u2 = u2/u2(3) + [rand(2,1);0]; u3 = K*inv(T3_1)*q + [rand(2,1);0]; //u3 = u3/u3(3) + [rand(2,1);0]; u4 = K*inv(T4_1)*q + [rand(2,1);0]; //u4 = u4/u4(3) + [rand(2,1);0]; u5 = K*inv(T5_1)*q + [rand(2,1);0]; //u5 = u5/u5(3) + [rand(2,1);0]; //mount the LS problem z = [u1;u2;u3;u4;u5]; //measurements H = [K*T1_1;K*inv(T2_1);K*inv(T3_1);K*inv(T4_1);K*inv(T5_1)]; //H matrix -> measurement model //solve LS x = inv(H'*H)*H'*z; x = x/x(4); disp(x);
8f006d5460bac2bf464eb8a0065df940d8d32567
9b3a82b71b55170a9d272048e2f4dc6858ff106c
/control-system/response_stability.sce
3052072802caea722365897435b8928f3e365155
[]
no_license
omrastogi/Digital-Signal-Processing
afcee58a1decbd9949e0bfcda47b62bbf19c935f
68b4f85ec5b9dbf7840a0857ee388f9d660bbb2e
refs/heads/main
2023-01-03T13:54:45.554127
2020-11-02T05:40:13
2020-11-02T05:40:13
309,267,769
0
0
null
null
null
null
UTF-8
Scilab
false
false
224
sce
response_stability.sce
clc; clf; clear all; t=0:0.01:5; s1=exp(-t); s2=exp(t); subplot(2,1,1); plot(s1); xlabel("time"); ylabel("amplitude"); title("plot by Om"); subplot(2,1,2); plot(s2); xlabel("time"); ylabel("amplitude"); title("plot by Om");
7e35668a09edfb2327c4b92ecf8b964076ac9d53
56743f362de98f910919780918c86679ec136d3e
/resolvidos/Ficha prática 7.sce
d0833c6463d9f2a7b789619ca21c6b004973efff
[]
no_license
andre-paulo98/fichas-ei-a1s2-MD
aaf75e6b45cbac7ebbf92949deb783ce6f1201b7
99c50eb08cf409ce8e5aa8301728dbe9148e16c5
refs/heads/master
2022-02-24T23:13:49.293944
2019-10-06T17:50:26
2019-10-06T17:50:26
171,472,323
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,371
sce
Ficha prática 7.sce
//Matemática Discreta - Proposta de resolução da ficha prática 7 //Nota: As resoluções que se seguem apresentam apenas sugestões de resolução dos exercícios propostos. Na maior parte dos casos, existem muitas outras formas de resolver o exercício. //Exercício 1 function P=Warshall(A) [u,v]=size(A) P=A for k=1:u for i=1:u for j=1:v if P(i,j)==1 | (P(i,k)==1 & P(k,j)==1) then P(i,j)=1 end end end disp(P,"P"+string(k)+"=") end disp("A Matriz de Caminhos P é:") endfunction //outra forma com código simplificado: function P=Warshall(A) [u,v]=size(A) P=A for k=1:u for i=1:u for j=1:v P(i,j)= P(i,j) | (P(i,k) & P(k,j)) end end end disp("A Matriz de Caminhos P é:") endfunction //a) A=[0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0] Warshall(A) //b) A=[1 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0] Warshall(A); //Exercício 2 function [Q,M]=Warshall_MIN(W) [u,v]=size(W) //construção da matriz M0: for i=1:u for j=1:v if W(i,j)<>0 then M(i,j)=string(i)+string(j) else M(i,j)='-' end end end //construção da matriz Q0: for i=1:u for j=1:v if W(i,j)==0 Q(i,j)=%inf; else Q(i,j)=W(i,j); end end end for k=1:u for i=1:u for j=1:v if (Q(i,j)>Q(i,k)+Q(k,j)) then M(i,j)=M(i,k)+part(M(k,j), 2:length(M(k,j))) end Q(i,j)=min(Q(i,j),Q(i,k)+Q(k,j)) end end disp(Q,"Q"+string(k)+"=") disp(M,"M"+string(k)+"=") end endfunction //Para grafos com mais de 9 vértices: function Warshall_MIN_9(W) [u,v]=size(W) M=string(W) for i=1:u for j=1:v if W(i,j)<>0 then M(i,j)=string(i)+string(j) else M(i,j)='-' end end end disp(M) for i=1:u for j=1:v if W(i,j)==0 then W(i,j)=%inf end end end Q=W for k=1:u for i=1:u for j=1:v if Q(i,j)>Q(i,k)+Q(k,j) then if k>9 M(i,j)=M(i,k)+part(M(k,j),3:length(M(k,j))) else M(i,j)=M(i,k)+part(M(k,j),2:length(M(k,j))) end end Q(i,j)=min(Q(i,j),Q(i,k)+Q(k,j)) end end disp(Q,"Q"+string(k)+"=") disp(M,"M"+string(k)+"=") end endfunction //Exercício 3 //a) W=[0 0 3 0 5 0 1 7 2 0 0 4 0 6 0 8] Warshall_MIN(W) //b) W=[0 3 0 1 5 0 0 0 0 0 0 0 0 4 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 4 0 0 0 0 4 0 3 2 0 0 0 0 0 2 0 0 4 0 0 3 0 0 0 0 0 0 0 0 0 0 1 0 2 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 1 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 3 4 0 0 6 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] //Warshall_MIN_9(W) //Exercício 4 //a) A=readxls('grafos_f7.xls') //o ficheiro deverá estar visível na janela lateral "File Browser" B=A(1) B=B.value //b) function viagem_custo(A,partida,chegada) I=['Braga' 'Porto' 'Coimbra' 'FigFoz' 'Leiria' 'Santarém' 'Lisboa' 'Évora' 'Sines'] C=A(3).value [Q,M]=Warshall_MIN(C) q=Q(partida,chegada) m=M(partida,chegada) D=A(2) D=D.value lista=evstr(strsplit(m)); d=0; P=' ' for i=1:length(m)-1 d=d+D(lista(i),lista(i+1)) P=P+I(1,lista(i))+" - " end P=P+I(1,lista(i+1)) disp("Para viajar entre "+string(I(1,partida))+" e "+string(I(1,chegada))+" com custo mínimo de "+string(q)+" euros, deverá fazer o percurso "+string(P)+", com duração de "+string(d)+" horas") endfunction viagem_custo(A,3,7) c) function viagem_duracao(A,partida,chegada) I=['Braga' 'Porto' 'Coimbra' 'FigFoz' 'Leiria' 'Santarém' 'Lisboa' 'Évora' 'Sines'] D=A(2).value [Q,M]=Warshall_MIN(D) q=Q(partida,chegada) m=M(partida,chegada) C=A(3) C=C.value lista=evstr(strsplit(m)); c=0; P=' ' for i=1:length(m)-1 c=c+C(lista(i),lista(i+1)) P=P+I(1,lista(i))+" - " end P=P+I(1,lista(i+1)) disp("Para viajar entre "+string(I(1,partida))+" e "+string(I(1,chegada))+" com duração mínima de "+string(q)+" horas, deverá fazer o percurso "+string(P)+", com o custo de "+string(c)+" euros") W=B endfunction viagem_duracao(A,1,2)
49b52f035a96bf3de38c0d65ea4a163c1074137d
fdc5047b7bf8122bad1e621df236b0481226c36e
/virtualProcessComm_V4/macros/vpcGuiClose.sci
718cde9e8c8d97f7c10d84d8a09d5d8063d09a0b
[]
no_license
jpbevila/virtualHartSci
aea3c6ba23d054670eb193f441ea7de982b531cc
a3f5be6041d230bd9f0fd67e5d7efa71f41cfca5
refs/heads/main
2023-07-26T23:05:28.044194
2021-09-09T11:50:59
2021-09-09T11:50:59
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
75
sci
vpcGuiClose.sci
function vpcGuiClose() bdVpcDesconect(); close(gcf()); endfunction
3038a162878d64b0cd9789ce43af1035d5b2594c
449d555969bfd7befe906877abab098c6e63a0e8
/62/CH3/EX3.41/ex_3_41.sce
94d0fb3a04f113a3dbf74de0a58710b15462343a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
75
sce
ex_3_41.sce
clear; clc; syms s t n; I=1/(s/2+2+20/s) i=ilaplace(I) disp(i,"i(t)=")
2f0c16d99cbcc9734d592b6be46bd41b9a61a043
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.2/Unix/scilab-2.2/macros/scicos/get_cnct.sci
6b8fc2880be371d8d9c8698ecc0247bc1b1fd80b
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931111
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
797
sci
get_cnct.sci
function x=old2new(x) nx=size(x) for k=1:nx o=x(k) if o(1)=='Block' then graphics=o(2) [ip,op,cip,cop]=get_cnct(x,k) graphics(5)=ip graphics(6)=op graphics(7)=cip graphics(8)=cop o(2)=graphics x(k)=o end end function [ip,op,cip,cop]=get_cnct(x,k) //old version of get_connected only use to translate old structures to //new style //look at connected links nx=size(x) o=x(k) graphics=o(2) [ip,op,cip,cop]=graphics(5:8) ip=0*ones(ip) op=0*ones(op) cip=0*ones(cip) cop=0*ones(cop) for i=1:nx oi=x(i) if oi(1)=='Link' then [ct,from,to]=oi(7:9) if from(1)==k then if ct(2)<>-1 then op=[op;i] else cop=[cop;i] end elseif to(1)==k then if ct(2)<>-1 then ip=[ip;i] else cip=[cip;i] end end end end end
60fbd6df100d0dd6f432f453195729453b8773de
449d555969bfd7befe906877abab098c6e63a0e8
/3492/CH5/EX5.17/Ex5_17.sce
9ef90096548424999b73a1f0e4e1e4fbe9bace0e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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_17.sce
clc //Chapter5 //Ex_17 //Given Eg=1.42 //in eV //letE=hc/lambda=hf E=1.96 //in eV P_L=50 //in mW kT=0.0259 // in eV delta_E=E-(Eg+(3/2)*kT) P_H=(P_L/(E))*delta_E disp(P_H,"Amount of power dissipated as heat in mW is")
354db70fe09bdbfb49f94ae5f7b2d82de152647d
449d555969bfd7befe906877abab098c6e63a0e8
/2411/CH3/EX3.c.211/Ex3c_11.sce
a395f9f34f7e9a7ddaf102336f7b2fe22ce12320
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex3c_11.sce
// Scilab Code Ex3c.11: Page-187 (2008) clc; clear; D_n = 0.42; // Diameter of nth ring, cm D_mplusn = 0.7; // Diameter of (m+n)th ring, cm m = 14; // Difference between (m+n)th and nth rings R = 100; // Radius of curvature of the plano-convex lens, m lambda = (D_mplusn^2 - D_n^2)/(4*m*R); // Wavelength of the light, cm printf("\nThe wavelength of the light used = %4d angstrom", lambda/1e-008); // Result // The wavelength of the light used = 5600 angstrom
78910323c1623d8bad1e785a051e5a3133cd85db
b0aff14da16e18ea29381d0bd02eede1aafc8df1
/mtlbSci/macros/moc_randi.sci
fd86bab5eba56ef2948e7550ac395f56e24100a2
[]
no_license
josuemoraisgh/mtlbSci
5d762671876bced45960a774f7192b41124a13ed
5c813ed940cccf774ccd52c9a69f88ba39f22deb
refs/heads/main
2023-07-15T23:47:11.843101
2021-08-26T17:52:57
2021-08-26T17:52:57
385,216,432
0
0
null
null
null
null
UTF-8
Scilab
false
false
5,572
sci
moc_randi.sci
function ri = moc_randi (bounds, varargin) // Return random integers in a given range // Calling Sequence // ri = moc_randi(imax) // ri = moc_randi(imax,n) // ri = moc_randi(imax,m,n,...) // ri = moc_randi([imin,imax],...) // Description // Additional arguments determine the shape of the return matrix. When no // arguments are specified a single random integer is returned. If one // argument n is specified then a square matrix (n x n) is // returned. Two or more arguments will return a multi-dimensional // matrix (m x n x ...). // // The integer range may optionally be described by a two element matrix // with a lower and upper bound in which case the returned integers will be // on the interval [imin, imax]. // Examples // // The following example returns 150 integers in the range 1-10. //ri = randi (10, 150, 1) // Authors // Rik Wehbring // H. Nahrstaedt - 2014 // Copyright (C) 2010-2013 Rik Wehbring // // This file is part of Octave. // // Octave is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or (at // your option) any later version. // // Octave is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Octave; see the file COPYING. If not, see // <http://www.gnu.org/licenses/>. // -*- texinfo -*- // @deftypefn {Function File} {} randi (@var{imax}) // @deftypefnx {Function File} {} randi (@var{imax}, @var{n}) // @deftypefnx {Function File} {} randi (@var{imax}, @var{m}, @var{n}, @dots{}) // @deftypefnx {Function File} {} randi ([@var{imin} @var{imax}], @dots{}) // @deftypefnx {Function File} {} randi (@dots{}, "@var{class}") // Return random integers in the range 1:@var{imax}. // // Additional arguments determine the shape of the return matrix. When no // arguments are specified a single random integer is returned. If one // argument @var{n} is specified then a square matrix @w{(@var{n} x @var{n})} is // returned. Two or more arguments will return a multi-dimensional // matrix @w{(@var{m} x @var{n} x @dots{})}. // // The integer range may optionally be described by a two element matrix // with a lower and upper bound in which case the returned integers will be // on the interval @w{[@var{imin}, @var{imax}]}. // // The optional argument @var{class} will return a matrix of the requested // type. The default is @qcode{"double"}. // // The following example returns 150 integers in the range 1-10. // // @example // ri = randi (10, 150, 1) // @end example // // Implementation Note: @code{randi} relies internally on @code{rand} which // uses class @qcode{"double"} to represent numbers. This limits the maximum // integer (@var{imax}) and range (@var{imax} - @var{imin}) to the value // returned by the @code{bitmax} function. For IEEE floating point numbers // this value is @w{@math{2^{53} - 1}}. // // @seealso{rand} // @end deftypefn // Author: Rik Wehbring // [nargout,nargin]=argn(0); if (nargin < 1) error ("Wrong number of input variables!"); end if (~ (or(type (bounds)==[1 4 8]) & isreal (bounds))) error ("randi: IMIN and IMAX must be real numeric bounds"); end if (isscalar (bounds)) imin = 1; imax = fix (bounds); if (imax < 1) error ("randi: require IMAX >= 1"); end else imin = fix (bounds(1)); imax = fix (bounds(2)); if (imax < imin) error ("randi: require IMIN <= IMAX"); end end if (nargin > 1 & type (varargin($))==10) rclass = varargin($); varargin($) = []; else rclass = "double"; end // if (strcmp (rclass, "int")) // if (imax > intmax (rclass)) // error ("randi: require IMAX < intmax (CLASS)"); // end // elseif (strcmp (rclass, "single")) // if (imax > bitmax (rclass)) // error ("randi: require IMAX < bitmax (CLASS)"); // end // end // // Limit set by use of class double in rand() // if (imax > bitmax) // error ("randi: maximum integer IMAX must be smaller than bitmax ()"); // end // if ((imax - imin) > bitmax) // error ("randi: maximum integer range must be smaller than bitmax ()"); // end if length(varargin)==1 ri = imin + floor ( (imax-imin+1)*rand (varargin(1)) ); elseif length(varargin)==2 ri = imin + floor ( (imax-imin+1)*rand (varargin(1),varargin(2)) ); elseif length(varargin)==3 ri = imin + floor ( (imax-imin+1)*rand (varargin(1),varargin(2),varargin(3)) ); else error("Wrong number of input arguments"); end if (~ (rclass=="double" | rclass=="float")) itype=4; ri = iconvert (ri, itype); end endfunction //test // ri = randi (10, 1000, 1); // assert (ri, fix (ri)); // assert (min (ri), 1); // assert (max (ri), 10); // assert (rows (ri), 1000); // assert (columns (ri), 1); // assert (class (ri), "double"); //test // ri = randi ([-5, 10], 1000, 1, "int8"); // assert (ri, fix (ri)); // assert (min (ri), int8 (-5)); // assert (max (ri), int8 (10)); // assert (class (ri), "int8"); // //assert (size (randi (10, 3,1,2)), [3, 1, 2]) // Test input validation //error (randi ()) //error (randi ("test")) //error (randi (10+2i)) //error (randi (0)) //error (randi ([10, 1])) //error (randi (256, "uint8")) //error (randi (2^25, "single")) //error (randi (bitmax () + 1)) //error (randi ([-1, bitmax()]))
f25087926cbf9f1f15c93743785444aa982713bd
449d555969bfd7befe906877abab098c6e63a0e8
/551/CH12/EX12.12/12.sce
6c929dab5fb9a6463c10df4750836836b380880c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
388
sce
12.sce
clc h1=3100; //kJ/kg h2=2100; //kJ/kg h3=2500; //kJ/kg h_f2=570.9; //kJ/kg h_f5=125; //kJ/kg h_f2=570.9; //kJ/kg a=11200; //Quantity of bled steam in kg/h m=(h_f2-h_f5)/(h2-h_f5); S=a/m; //Steam supplied to the turbine per hour W_net=(h1-h3) + (1-m)*(h3-h2); P=W_net*S/3600; //Power developed by the turbine disp("Power developed by the turbine=") disp(P) disp("kW")
16c18643cbd817d8f987140b5662cab685288e1c
67ba0a56bc27380e6e12782a5fb279adfc456bad
/STAMPER_PROG_8.0/bin/mathLib/d2r.sci
2a85322e59619bf82b4ac94a8e54fa9d805c2cc6
[]
no_license
2-BiAs/STAMPER_PROG
8c1e773700375cfab0933fc4c2b0f5be0ab8e8f0
4fdc0bcdaef7d6d11a0dcd97bd25a9463b9550d0
refs/heads/master
2021-01-18T19:30:06.506977
2016-11-10T23:32:40
2016-11-10T23:32:40
71,999,971
0
0
null
null
null
null
UTF-8
Scilab
false
false
67
sci
d2r.sci
function fRad = d2r(fDeg) fRad = fDeg * %pi / 180; endfunction
b0eec5269c19a6da42c8bcdb970dfeb4ec714c07
449d555969bfd7befe906877abab098c6e63a0e8
/196/CH6/EX6.8/example_6_8.sce
d271f5fa9111283521a18344066a7ea0d2604a16
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
406
sce
example_6_8.sce
//Chapter 6 //Example 6-8 //DesignOnSawtoothWaveGenerator //Page 163 clear;clc; //Design a voltage divider to give voltage reference 10 V //Here Ri = 10 KiloOhm and C = 0.1microfarad //The Circuit will be as shown below xcos('Figure6_8.xcos'); //Checking Frequency value Ri = 10*10^3 ; Ci = 0.1*10^-6 ; Ei = 1 ; Vref = 10 ; f = Ei / (Ri*Ci*Vref) ; printf ( "\n\n Frequency is %.4f Hz ", f )
b1a98b931b7239f3f53cbd43a5bd9c3fca0872e1
62230b0213ef4f762aaeff538e51f33739a54246
/PCAcode.sce
417a58e13740f706b0cc221e6b83ab437672b955
[]
no_license
PriyaRcodes/Scilab-project
453090012d8cdfb27d770c0228b74d7dc71f1b6e
8ad324bd219a6a66c9b1c796a96e8dd146544e73
refs/heads/master
2020-04-10T10:03:05.348575
2018-12-08T16:53:05
2018-12-08T16:53:05
160,954,321
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,337
sce
PCAcode.sce
clear all; clc; //Project on image compression //Using PCA-Principal Component Analysis technique //Implementing the maths behind PCA img= imread('C:\Users\dell\Pictures\Camera Roll\wallpaper.jpg'); gray_img = rgb2gray(img); gray_imgdouble = im2double(gray_img); meancol=mean(gray_imgdouble,'r'); [a b]= size(gray_img); disp("Rows:"+string(a)); disp("Columns:"+string(b)); mean_matrix = repmat(meancol,a,1); data_adjust = gray_imgdouble - mean_matrix; cov_adjust = cov(data_adjust); [EV,E]=spec(cov_adjust); EVtrans = EV'; data_adjustTrans = data_adjust'; FinalData = EVtrans*data_adjustTrans; //Inverse PCA originalimgtrans = inv(EVtrans)* FinalData; originalimg = originalimgtrans'+ mean_matrix; // Image reconstructed //Image compression cols = input("Enter the new size percentage :"); cols = floor( (cols/100) * b ); [Esorted,index]= gsort(diag(E),'g','d'); EVselect=EV(:,index(1:cols)); X=EVselect' * data_adjustTrans; compressed_data = EVselect * X; compressed_img = compressed_data' + mean_matrix ; imshow(compressed_img ); //Displaying the final result // Thus the image is compressed retaining maximum clarity for the given percentage //*********************PROJECT DONE BY****************************** //PRIYA R //APARNA S //AKSHAT AGARWAL
eadcb98a366a6a98f10ba95075149db578343b84
449d555969bfd7befe906877abab098c6e63a0e8
/172/CH3/EX3.12/ex12.sce
5c690ee245cde6984201a87626135e63e2c9ec07
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
868
sce
ex12.sce
//example 12 //determining specific using diffenet laws clear clc T=100 //given temp.in 100 celsius P=3 //given pressure in MPa v1=0.0065 //specific volume in m^3/kg using table printf("\n hence,the specific volume for R-134a using R-134a tables is v1 = %.3f m^3/kg. \n",v1) M=102.3 //molecular mass in kg R=8.3145 //in kJ/K Ru=R/M //in kJ/K-kg v2=Ru*(T+273)/(P*1000) //specific volume assuming R-134a to be ideal gas in m^3/kg printf("\n hence,the specific volume for R-134a using R-134a the ideal gas laws is v2 = %.3f m^3/kg. \n",v2) Tr=373.2/374.2 //reduced temperature using generalized chart Pr=3/4.06 //reduced pressure using generalized chart Z=0.67 //compressibility factor v3=Z*v2 // specific volume using generalized chart in m^3/kg printf("\n hence,the specific volume for R-134a using the generalized chart is v3 = %.3f m^3/kg. \n",v3)
7643c2328794e2a47067edd7a3dc619f6a006f1a
449d555969bfd7befe906877abab098c6e63a0e8
/1370/CH4/EX4.7/Exp4_7.sce
6f736cac8cf06cd1edfd989c0fea50e0167dcc88
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,987
sce
Exp4_7.sce
//Example 4.7 clc disp("V_L = 866 V, kVA = 100") disp("Therefore, kVA = sqrt(3)*V_L*I_L*10^-3") il=100/(sqrt(3)*866*10^-3) format(6) disp(il,"Therefore, I_L(in A) =") disp("Therefore, I_aph F.L. = I_L = 66.67 A ... as star connected alternator") disp("V_ph = Rated terminal voltage per phase = V_L/3") vp=866/sqrt(3) disp(vp,"Therefore, V_ph(in V) =") disp("For calculation of Z_s on full load, it is necessary to plot O.C.C. and S.C.C. to the scale") disp("Note : If for same value of I_f, both I_ssc and V_oc can be obtained from the table itself, graph need not be plotted. In some problems, the values of V_oc and I_ssc for same I_f are directly given, in that case too, the graph need not be plotted.") disp("In this problem, I_ssc = 25 A for I_f = 1 A") disp("But we want to calculate Z_s for I_ssc = its full load value which is 66.67 A. So graph is required to be plotted.") disp("For plotting O.C.C. the lines values of open circuit voltage are converted to phase by dividing each value by sqrt(3)") disp("From S.C.C.") disp("For I_scc = 66.67 A, I_f = 2.4 A") disp("From O.C.C.") disp("For I_f = 2.4 A, (V_oc)_ph = 240 V") disp("From the graph, Z_s for full load is,") disp("Z_s = (V_oc)_ph / (I_scc)_ph |for same excitation") zs=240/66.67 format(4) disp(zs,"Therefore, Z_s(in ohm/phase) =") disp("R_a = 0.15 ohm/phase") xs=sqrt((3.6^2)-(0.15^2)) format(6) disp(xs,"Therefore, X_s(in ohm/phase) = sqrt(Z_s^2 - R_a^2) =") disp("V_ph F.L = 500 V") disp("cos(phi) = 0.8") disp("Therefore, sin(phi) = 0.6 lagging p.f.") disp("So E_ph for full load, 0.8 lagging p.f. condition can be calculated as,") disp("(E_ph)^2 = (V_ph*cos(phi)+I_a*R_a)^2 + (V_ph*sin(phi)+I_a*X_s)^2") eph=(((500*0.8)+(66.67*0.15))^2)+(((500*0.6)+(66.67*3.597))^2) p=sqrt(eph) format(7) disp(p,"Therefore, E_ph(in V) = ") regu=((677.86-500)/500)*100 format(6) disp(regu,"Therefore, %Regulation(in percentage) = (E_ph-V_ph / V_ph)*100 =")
42f454d39f3eb5bd440fa68543be00237d28e545
449d555969bfd7befe906877abab098c6e63a0e8
/3831/CH14/EX14.4/Ex14_4.sce
c3731ece280219ef0c48002da72387aba9d77e7f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
762
sce
Ex14_4.sce
// Example 14_4 clc;funcprot(0); // Given data // Station 1 x_1=1.00;// The dryness fraction T_1=-15.0;// °C h_1=244.13;// kJ/kg s_1=0.95052;// kJ/kg.K // Station 2 p_2s=909.9;// kPa s_2s=0.95052;// kJ/kg.K s_2s=s_1;// kJ/kg.K h_2s=271.92;// kJ/kg T_2s=39.3;// °C // Station 3 T_3=20.0;// °C x_3=0.00;// The dryness fraction h_3=68.67;// kJ/kg s_3=0.25899;// kJ/kg.K // Station 4h T_4h=T_1;// °C h_4h=h_3;// kJ/kg x_4h=0.1910;// The quality of steam s_4h=0.27088;// kJ/kg.K n_c=75.0/100;// The isentropic efficiency of compressor // Calculation Q=h_1-h_4h;// kJ/kg W_c=(h_2s-h_1)/n_c;// kJ/kg COP_vc=Q/W_c;// The coefficient of performance of vapor compression cycle printf("\nCOP_vapor compression cycle R/AC=%1.2f",COP_vc);
df5fd7d7ed5ccc6c191f16f7d765f4fb6b6cecf2
449d555969bfd7befe906877abab098c6e63a0e8
/1511/CH7/EX7.9/ex7_9.sce
281a74096684cf1a0fc4c18ec1a2b4242873b2c0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
ex7_9.sce
// Example 7.9 page no-424 clear clc Rc=4 Rb=40 Rs=10 hie=1.1 hfe=50 hre=0 hoe=0 Rcdash=Rc*Rb/(Rc+Rb) R=Rs*Rb/(Rs+Rb) Rm=-hfe*Rcdash*R/(R+hie) Rm=floor(Rm) printf("\nTransresistance Rm=%d k",Rm) B=-1/(Rb) D=1+B*Rm Rmdash=Rm/D Avdash=Rmdash/Rs Ri=R*hie/(R+hie) Ridash=Ri/D printf("\nBeta=%.3f mA/V\nRm_dash=%dk Ohm\nAv_dash=%f\nRi=%f k Ohm\nRi_dash=%fk Ohm",B,Rmdash,Avdash,Ri,Ridash)
b270464b4120df7dc24fedc6cf219e82a12268bc
449d555969bfd7befe906877abab098c6e63a0e8
/911/CH6/EX6.3/ex_6_3.sce
66e63695235d8d8d32a1d06efe5a68c248c1b8df
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
154
sce
ex_6_3.sce
//example 6.3// clc //clears the screen// clear //clears all existing variables// disp('Difference output = X''Y+XY''') disp('Borrow output = X''Y')
2367d852cbfb6c13c2120a9661fb3f93785bb4f7
62e6605ab494919b6833bf1a1b158bcb6f9b79df
/chami.sce
4788631da3f755bf5caff6a8ec3f57f81b293e2c
[]
no_license
mani1250/system-identification
c597c26d10bb5dd62b1b4db650b3945afc336e37
5db0536c792dfaa4a8f01561315263503ff34d3d
refs/heads/master
2021-01-12T06:56:00.703593
2017-03-07T12:18:15
2017-03-07T12:18:15
76,865,655
0
0
null
null
null
null
UTF-8
Scilab
false
false
337
sce
chami.sce
function X = chami(a,b,c) if (size(a,'*') > 1 & size(b,'*') > 2) then disp('You are going in a correct direction keep going') end X = a*b*c^2; disp(X) endfunction function out = checkunity(x) if(size(x)==1 & x==1) out = "TRUE" else out = "FALSE" end return(out) endfunction
8197c33065b65b5686d9cac218704c8b54d5e2d9
449d555969bfd7befe906877abab098c6e63a0e8
/2672/CH5/EX5.2/Ex5_2.sce
30973afc279b85d89e78c224d4628e0a52d36ca3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
493
sce
Ex5_2.sce
//Example 5_2 clc; clear; close; format('e',9); //given data : ND=10^16;//cm^-3 A=4*10^-4;//cm^2 NA=5*10^18;//cm^-3 T=300;//K epsilon0=8.85*10^-14;//vaccum permittivity epsilonr=11.8;//relative permittivity e=1.6*10^-19;//C/electron ni=1.5*10^10;//cm^-3 kBT=0.0259;//eV//at room temperture V0=kBT*log(NA*ND/ni^2);//V W=sqrt(2*epsilonr*epsilon0*V0/e*(1/NA+1/ND));//cm disp(W,"Width of depletion zone(cm)"); ///Answer in the texbook is not accurate.Calculation mistake in W.
e803d7b2bb63dbbb69e24fdfdcf19056d375e104
449d555969bfd7befe906877abab098c6e63a0e8
/1652/CH13/EX13.4/13_4.sce
1478c4661d0484e2d9b732145589beb6569b2f2c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
194
sce
13_4.sce
clc //Initialization of variables T1=77.32 //K P=1 //atm T2=126 //K Pc=33.5 //atm //calculations dS=27/32 *1.987*P/Pc *(T2/T1)^3 //results printf("Change in entropy = %.2f eu/mol",dS)
c69852ac98bbe3c2a97814f1a70c4bfd8fd633cd
449d555969bfd7befe906877abab098c6e63a0e8
/689/CH16/EX16.2/2.sce
7a80b879207960a2f59e40e615aeea48e232463d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,175
sce
2.sce
clc; funcprot(0); //Example 16.2 Horsepower required at sea level // Initialisation of variables W = 4225; b1 = 38; b2 = 35; Gap = 5.35; S1 = 214; S2 = 150; Dp = 9.4; // Parasite drag equivalent // Calculations mu =b2/b1; Gab_MeanSpan = 2*Gap/(b1+b2); S = S1 + S2; sigma = 0.56; //From fig 10.10 r = S2/S1; K = mu*(1+r)/sqrt(mu^2 + 2*sigma*r*mu + r^2); EMAR = K^2*b1^2/S; Coeff_Cdi = 1/(%pi*EMAR); Cdp = 1.28*Dp/S; Coeff_Cl = W/(0.00256*S) Coeff_HPTot = 0.00256*S/375; V = [54 60 70 80 90 100 110 120 130 140 150]; Cl = Coeff_Cl*diag(inv(diag(V^2))); Cd0 = [0.043 0.019 0.013 0.011 0.010 0.010 0.010 0.009 0.009 0.009 0.009] Cdi = Cl^2*Coeff_Cdi; Cd = Cd0+Cdi'+Cdp; Hp = Coeff_HPTot*diag(diag(V^3)*diag(Cd)); Result = zeros(11,6); Result(:,1) = V'; Result(:,2) = Cl; Result(:,3) = Cd0'; Result(:,4) = Cdi; Result(:,5) = Cd'; Result(:,6) = Hp; disp(Result,"!! V Cl Cd0 Cdi Cd HP Req !!") ; clf(); plot2d(Result(:,1),Result(:,6)); xlabel("Miles Per Hour"); ylabel("HorsePower"); title("Horsepower required for various airspeeds "); set(gca(),"grid",[1 1])
08aab31946b74f9f4b8b5728530b931655a2f677
e2c7fea29ba137d8bfbcdd732ac94d7733d8456c
/datasets/iris/data.tst
683ed531e48e3ba0ffce92d617ac81832a22b1c9
[ "Apache-2.0" ]
permissive
alex-c/data-science-exercises
b3acbfc844abcf78a3d62cf934fb0b8de8531a94
c1c8a06292cf7e0ce6643240d052c2577439c927
refs/heads/master
2020-05-04T15:11:59.889851
2019-06-17T15:44:36
2019-06-17T15:44:36
179,229,365
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,275
tst
data.tst
5.0 3.0 1.6 0.2 Iris-setosa 5.0 3.4 1.6 0.4 Iris-setosa 5.2 3.5 1.5 0.2 Iris-setosa 5.2 3.4 1.4 0.2 Iris-setosa 4.7 3.2 1.6 0.2 Iris-setosa 4.8 3.1 1.6 0.2 Iris-setosa 5.4 3.4 1.5 0.4 Iris-setosa 5.2 4.1 1.5 0.1 Iris-setosa 5.5 4.2 1.4 0.2 Iris-setosa 4.9 3.1 1.5 0.2 Iris-setosa 5.0 3.2 1.2 0.2 Iris-setosa 5.5 3.5 1.3 0.2 Iris-setosa 4.9 3.6 1.4 0.1 Iris-setosa 4.4 3.0 1.3 0.2 Iris-setosa 5.1 3.4 1.5 0.2 Iris-setosa 5.0 3.5 1.3 0.3 Iris-setosa 4.5 2.3 1.3 0.3 Iris-setosa 4.4 3.2 1.3 0.2 Iris-setosa 5.0 3.5 1.6 0.6 Iris-setosa 5.1 3.8 1.9 0.4 Iris-setosa 4.8 3.0 1.4 0.3 Iris-setosa 5.1 3.8 1.6 0.2 Iris-setosa 4.6 3.2 1.4 0.2 Iris-setosa 5.3 3.7 1.5 0.2 Iris-setosa 5.0 3.3 1.4 0.2 Iris-setosa 6.6 3.0 4.4 1.4 Iris-versicolor 6.8 2.8 4.8 1.4 Iris-versicolor 6.7 3.0 5.0 1.7 Iris-versicolor 6.0 2.9 4.5 1.5 Iris-versicolor 5.7 2.6 3.5 1.0 Iris-versicolor 5.5 2.4 3.8 1.1 Iris-versicolor 5.5 2.4 3.7 1.0 Iris-versicolor 5.8 2.7 3.9 1.2 Iris-versicolor 6.0 2.7 5.1 1.6 Iris-versicolor 5.4 3.0 4.5 1.5 Iris-versicolor 6.0 3.4 4.5 1.6 Iris-versicolor 6.7 3.1 4.7 1.5 Iris-versicolor 6.3 2.3 4.4 1.3 Iris-versicolor 5.6 3.0 4.1 1.3 Iris-versicolor 5.5 2.5 4.0 1.3 Iris-versicolor 5.5 2.6 4.4 1.2 Iris-versicolor 6.1 3.0 4.6 1.4 Iris-versicolor 5.8 2.6 4.0 1.2 Iris-versicolor 5.0 2.3 3.3 1.0 Iris-versicolor 5.6 2.7 4.2 1.3 Iris-versicolor 5.7 3.0 4.2 1.2 Iris-versicolor 5.7 2.9 4.2 1.3 Iris-versicolor 6.2 2.9 4.3 1.3 Iris-versicolor 5.1 2.5 3.0 1.1 Iris-versicolor 5.7 2.8 4.1 1.3 Iris-versicolor 7.2 3.2 6.0 1.8 Iris-virginica 6.2 2.8 4.8 1.8 Iris-virginica 6.1 3.0 4.9 1.8 Iris-virginica 6.4 2.8 5.6 2.1 Iris-virginica 7.2 3.0 5.8 1.6 Iris-virginica 7.4 2.8 6.1 1.9 Iris-virginica 7.9 3.8 6.4 2.0 Iris-virginica 6.4 2.8 5.6 2.2 Iris-virginica 6.3 2.8 5.1 1.5 Iris-virginica 6.1 2.6 5.6 1.4 Iris-virginica 7.7 3.0 6.1 2.3 Iris-virginica 6.3 3.4 5.6 2.4 Iris-virginica 6.4 3.1 5.5 1.8 Iris-virginica 6.0 3.0 4.8 1.8 Iris-virginica 6.9 3.1 5.4 2.1 Iris-virginica 6.7 3.1 5.6 2.4 Iris-virginica 6.9 3.1 5.1 2.3 Iris-virginica 5.8 2.7 5.1 1.9 Iris-virginica 6.8 3.2 5.9 2.3 Iris-virginica 6.7 3.3 5.7 2.5 Iris-virginica 6.7 3.0 5.2 2.3 Iris-virginica 6.3 2.5 5.0 1.9 Iris-virginica 6.5 3.0 5.2 2.0 Iris-virginica 6.2 3.4 5.4 2.3 Iris-virginica 5.9 3.0 5.1 1.8 Iris-virginica
c02b0e58588981d3574c6be8e92bc855c6f77d7d
33d7960e39a3e71591538dccbe1dd4014c377e78
/Sample Solution/CompFin_2017_SS_Exercise_21_MathQF.sce
48ee3f09202dea2ac95afd911414612e9f33d781
[]
no_license
wiiwins/Compfin
529e2997994babb9e3795283ddbd8ec782131148
2629685421e970a369ec797b76dda3d2803bcbcf
refs/heads/master
2020-05-18T01:25:39.357847
2019-06-27T11:21:46
2019-06-27T11:21:46
184,090,400
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,585
sce
CompFin_2017_SS_Exercise_21_MathQF.sce
function [V0, c1, c2] = EuOption_BS_MC (S0, r, sigma, T, M, g) // Generate an Mx1-vector of independent samples from // standard normally distributed random variables. X = grand(M, 1, 'nor', 0, 1); ST = S0*exp( (r-0.5*sigma^2)*T + sigma*sqrt(T)*X ); // Compute Monte-Carlo estimator. Y = exp(-r*T)*g(ST); V0 = mean(Y); // Compute 95% confidence interval epsilon = 1.96 * sqrt(variance(Y)/M); c1=V0-epsilon; c2=V0+epsilon; endfunction // test parameters S0 = 95; r = 0.05; sigma = 0.2; T = 1; K = 100; M = 100000; function y=g(x) y=max(100-x,0) endfunction [V0, c1, c2] = EuOption_BS_MC (S0, r, sigma, T, M, g); disp("Price of European put by use of plain Monte-Carlo simulation: " + string(V0) + ", 95% confidence interval: [" + string(c1)+","+string(c2)+"]"); //Closed formula for Put price (not asked for in the exercise) function V0 = BS_EuPut(t, S_t, r, sigma, T, K) // A function in a function: Provide the cumulative distribution function // of the standard normal distribution as function Phi, using the internal // scilab function cdfnor. function p = Phi(x) p = cdfnor("PQ", x, zeros(x), ones(x)); endfunction // Implement Black-Scholes formula (3.23) and below d_1 = ( log(S_t./K) + (r+1/2*sigma^2)*(T-t) ) ./ ( sigma*sqrt(T-t) ); d_2 = d_1 - sigma*sqrt(T-t); V0 = K.*exp(-r*(T-t)).*Phi(-d_2)-S_t.*Phi(-d_1); endfunction V0 = BS_EuPut (0, S0, r, sigma, T, K); disp("Exact price of European Put by use of the BS-Formula: " + string(V0));
8b51696e32766e5507e95bffd8367529e565cebb
449d555969bfd7befe906877abab098c6e63a0e8
/2144/CH3/EX3.27/ex3_27.sce
4111273d6df2baa65b0f91c09d02bab1804ece06
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
967
sce
ex3_27.sce
// Exa 3.27 clc; clear; close; // Given data P1 = 1 * 10^5;// in N/m^2 V1 = 0.1;// in m^3 V2 = 0.01;// in m^3 T1 = 90;// in degree C T1 = T1 +273;// in K R = 0.287;// in kJ/kg-K R = R *10^3; C_v = 0.717;// in kJ/kg-K C_P = 1.005;// in kJ/kg-K m = (P1 * V1)/(R*T1);// in kg Gamma = 1.4; T2 = T1 * ((V1/V2)^(Gamma - 1));// in K del_U = m*C_v*(T1-T2);// in kJ disp(del_U,"The change in internal energy in kJ is : ") del_E = m * C_P*(T2-T1);// in kJ disp(del_E,"The change in enthalpy in kJ is : ") U2 = m*C_v*T2;//Internal energy at 2 in kJ T= 473;// temp. of entering air E = V1*C_P*T;//Enthalpy of entering air in kJ // U3= (m+V1)*C_v*T3 ; (internal energy at 3) // U3= U2+E T3 = (E+U2)/( (m+V1)*C_v );// in K disp(T3,"Temperature in K is"); m=m+.1; P3 =m* R*T3/V2;// in N/m^2 disp(P3*10^-6,"The pressure in MN/m^2 is"); // Note: There is a calculation error to evaluating the value of P3. So the answer in the book of P3 is wrong.
2df8a7c0cbe7935aacdb94cc5f5e9497c6b63786
449d555969bfd7befe906877abab098c6e63a0e8
/527/CH9/EX9.6/9_6eaxm.sce
fe9738af2075bd21918d721f2fe08ac478c8094c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
900
sce
9_6eaxm.sce
//Engineering and Chemical Thermodynamics //Example 9.6 //Page no :451 clear ; clc ; del_g0_f_C6H6 = -32.84 ; //[kJ/mol] , From Table E9.6 del_g0_f_C2H4 = 68.15 ; //[kJ/mol] , From Table E9.6 del_g0_f_H2 = 0 ; //[kJ/mol] , From Table E9.6 del_h0_f_C6H6 = -84.68 ; //[kJ/mol] , From Table E9.6 del_h0_f_C2H4 = 52.26 ; //[kJ/mol] , From Table E9.6 del_h0_f_H2 = 0 ; //[kJ/mol] , From Table E9.6 T1 = 298.2 ;//[K] P = 1 ;//[bar] R = 8.31 ; T2 = 1273 ; // [K] del_g0_f_rxn = del_g0_f_C2H4 + del_g0_f_H2 - del_g0_f_C6H6 ; K_298 = exp ( - (del_g0_f_rxn * 10^3) / (R * T1)) ; del_h0_f_rxn = (del_h0_f_C2H4 + del_h0_f_H2 - del_h0_f_C6H6) * 10^3 ; K_1273 = K_298 * exp( - del_h0_f_rxn / R * (1/T2 - 1/T1)) ; x = sqrt( K_1273 / ( K_1273 + P)) ; disp(" Example: 9.6 Page no : 451") ; printf("\n n_C2H6 = %.2f mol\n\n n_C2H4 = %.2f mol\n\n n_H2 = %.2f mol",1-x ,x,x) ;
96a67fc283c6e8edaf3646c702f9f38aeff4c366
e20b143bd16a6a60520c5d3f6c30af9356cc0aa2
/macros/update_country.sci
b0565de28b93165dab29af1a903b234eb0d0c5d3
[]
no_license
slevin48/covid
2c4806c1d1d91b2196f3086e2af7c69c420fb4db
c482d908ae58b82558f338b63020845cefc43742
refs/heads/master
2022-05-28T10:40:56.271120
2020-04-29T16:08:27
2020-04-29T16:08:27
258,529,494
0
0
null
null
null
null
UTF-8
Scilab
false
false
773
sci
update_country.sci
function update_country() eu_countries = ['Germany', 'Italy', 'Spain']; // [header, data] = importdata(covid_getpath()+"\data\time_series_covid19_confirmed_global.csv"); // confirmed = strtod(data(:,5:$)); // country = data(:,2); c = get("country"); // a=get("cases_plot_frame"); // my = confirmed(country == c.string(c.value),:); // a.children(1).children(2).children(1).data(:,2)=my; // a.children(1).data_bounds=[1,0;93,max(my)]; // a.children(1).children(1).text = c.string(c.value) //legend // update list of countries to compare with set("country_compared","string",eu_countries(eu_countries <> c.string(c.value))) set("country_compared","value",1) endfunction
dad97d519bcbd2c5a77a1584398aa15d253952d7
e0c1e7e8cb7074e354e2baf085ed4c6d77ca157a
/TAREAS/tercer tarea/segunda.sce
790c8ff83f3cee8403cc3c5463d450e42e68e642
[]
no_license
solanosandoval/SOLANO.SANDOVAL.JORGE.ALEJANDRO
00a9ff678605cbb2665100f9c57b6940e54ce97c
fd34afd8c8750a70b081475e06858e2e7092a1e2
refs/heads/master
2020-04-17T00:28:35.687396
2019-04-11T13:49:11
2019-04-11T13:49:11
166,051,105
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,706
sce
segunda.sce
-> grados1= 7 grados1 = 7. --> grados2= 60 grados2 = 60. --> grados3= 75 grados3 = 75. --> radianes= grados*%pi/180 Undefined variable: grados --> radianes1= grados*%pi/180 Undefined variable: grados --> radianes1= grados2*%pi/180 radianes1 = 1.0471976 --> radiasnes1= grados1*%pi/180 radiasnes1 = 0.122173 --> radianes2= grados2*%pi/180 radianes2 = 1.0471976 --> radianes3= grados3*%pi/180 radianes3 = 1.3089969 --> y=[cos(radianes1) 0 sen(radianes1);0 1 0;-sin(radianes1) 0 cos(radianes1)] Undefined variable: sen --> y=[cos(radianes1) 0 sen(radianes1);0 1 0;-sin(radianes1) 0 cos(radianes1)] Undefined variable: sen --> y=[cos(radianes1) 0 sen(radianes1);0 1 0;-sin(radianes1) 0 cos(radianes1)] Undefined variable: sen --> y=[cos(radianes1) 0 sin(radianes1);0 1 0;-sin(radianes1) 0 cos(radianes1)] y = 0.5 0. 0.8660254 0. 1. 0. -0.8660254 0. 0.5 --> x=[1 0 0;0 cos(radianes2) -sin(radianes2);0 sin(radianes2) cos(radianes2)] x = 1. 0. 0. 0. 0.5 -0.8660254 0. 0.8660254 0.5 --> yx=y*x yx = 0.5 0.75 0.4330127 0. 0.5 -0.8660254 -0.8660254 0.4330127 0.25 --> y2=[cos(radianes3) 0 sin(radianes3);0 1 0;-sin(radianes3) 0 cos(radianes3)] y2 = 0.258819 0. 0.9659258 0. 1. 0. -0.9659258 0. 0.258819 --> yxy2=yx*y2 yxy2 = -0.2888486 0.75 0.5950348 0.8365163 0.5 -0.2241439 -0.4656253 0.4330127 -0.7718115
bb7793bc6d7dd40c490d47008c5692b6df8012e7
449d555969bfd7befe906877abab098c6e63a0e8
/629/CH6/EX6.12/example6_12.sce
5c8c05bc107b7e78f2084f3673baacaf4285b496
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
438
sce
example6_12.sce
clear clc //Example 6.12 PRESSURE RISE DUE TO WATER HAMMER EFFECT rho=1.94; //[slugs/ft^3] Ev=3.2*10^5; //[lbf/in^2] V=4; //[ft/s] //Sound speed c=sqrt(Ev*144/rho) //[ft/s] L=3000; //[ft] tc=2*L/c //[s] //Closure time of 1sec is less than tc //Pressure rise delp=rho*V*c/144 //[psi] pi=40; //initial pressure[psi] pmax=pi+delp //[psi] printf("\n The maximum pressure that develops at the downstream end = %.f psig.\n",pmax)
6070235af4d880d17466b00adcfbacb810341ee4
3b9a879e67cbab4a5a4a5081e2e9c38b3e27a8cc
/Área 1/Revisão P1/ExemploErroDeArredondamentoCatastrofico.sce
2e5af3bef811da9e4ebae9f8e5dd8491cf0fb70c
[ "MIT" ]
permissive
JPedroSilveira/numerical-calculus-with-scilab
32e04e9b1234a0a82275f86aa2d6416198fa6c81
190bc816dfaa73ec2efe289c34baf21191944a53
refs/heads/master
2023-05-10T22:39:02.550321
2021-05-11T17:17:09
2021-05-11T17:17:09
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
311
sce
ExemploErroDeArredondamentoCatastrofico.sce
x = 1/3 y = 0.333333 z_exato = 0.00000033333333333333333333333333333333333333333333333333333 z_aproximado = x-y resultado = digitos_significativos(z_exato,z_aproximado) format(25) disp(z_exato) disp(z_aproximado) disp(resultado) disp('Se perdeu 6 digitos de significancia por arredondamento catastrófico')
bf573c2d7cc30252931eaf604b2be3a4a114d5ca
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.4.1/macros/percent/%p_d_p.sci
a79c3b4b2f7d3de8018c4c28bee0741bc84e5898
[ "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
236
sci
%p_d_p.sci
function f=%p_d_p(p1,p2) //f= %p_d_p(p1,p2) <=> f=p1./p2 //! // Copyright INRIA if size(p1,'*')==1 then p1=p1*ones(p2) elseif size(p2,'*')==1 then p2=p2*ones(p1) end [p1,p2]=simp(p1,p2); f=tlist(['r','num','den','dt'],p1,p2,[])
e96a07f551f2e2fb98227afaae06c912c13703a7
449d555969bfd7befe906877abab098c6e63a0e8
/1427/CH2/EX2.18/2_18.sce
c879741631b9e5e05d715989f94946cacabb92fe
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,031
sce
2_18.sce
//ques-2.18 //Calculating weight of air and oxygen and weight of air when excess air is supplied and GCV and NCV clc C=750;//Weight of carbon in coal (in g) H=52;//Weight of hydrogen in coal (in g) O=121;//Weight of oxygen in coal (in g) N=32;//Weight of nitrogen in coal (in g) e=40;//Percentage of excess air supplied //Part (i) min_O=C*(32/12)+H*(16/2)-O;//Minimum weight of oxygen required (in g) min_air=min_O*(100/23);//Minimum weight of air required for complete combustion (in g) printf("The minimum amount of air and oxygen required are %.3f kg and %.3f kg respectively.\n\n",min_air/1000,min_O/1000); //Part (ii) W=min_air*(1+e/100);//Weight of air with excess air supplied (in g) printf(" The weight of air when excess air is supplied is %.3f kg.\n\n",W); //Part(iii) GCV=(8080*C+34500*(H-O/8))/1000;//Gross calorific value (in kcal/kg) NCV=GCV-0.09*(H/10)*587;//Net calorific value (in kcal/kg) printf(" The gross and net calorific values are %d kcal/kg and %d kcal/kg respectively.",GCV,NCV);
fc8a614f749c75be3ac8fd67eb353d20f88a05a1
449d555969bfd7befe906877abab098c6e63a0e8
/1370/CH7/EX7.15/exp7_15.sce
cb5a4eaa2249173d89838ebb9fb77328ffe4e1a5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
489
sce
exp7_15.sce
//Example 7.15 clc disp("Given values are R_L = 1 k-ohm, V_m = 10 V peak") disp("case(i) Ideal diode") disp("Cut-in voltage V_T = 0 V, R_f = 0 ohm") edc=10/%pi format(5) disp(edc,"Therefore, E_DC(in V) = V_m/pi =") idc=3.18 disp(idc,"Therefore, I_DC(in mA) = E_DC/R_L =") disp("case(ii) Silicon diode") disp("Cut-in voltage V_T = 0.7 V") edc=9.3/%pi format(5) disp(edc,"Therefore, E_DC(in V) = V_m-V_T / pi =") idc=2.96 disp(idc,"Therefore, I_DC(in mA) = E_DC/R_L =")
65b585ed90a0401929b8cb54ffcab402ea486035
449d555969bfd7befe906877abab098c6e63a0e8
/61/CH3/EX3.6/ex3_6.sce
286a9d6ba1165f781c10a4e726a2ed1eda6a0364
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
406
sce
ex3_6.sce
//ex3.6 V_Z=12; V_IN=24; I_ZK=1*10^-3; I_ZM=50*10^-3; Z_Z=0; R=470; //when I_L=0, I_Z is max and is equal to the total circuit current I_T I_T=(V_IN-V_Z)/R; I_Z_max=I_T; if I_Z_max<I_ZM then I_L_min=0; end I_L_max=I_T-I_ZK; R_L_min=V_Z/I_L_max; disp(R_L_min,'minimum value of load resistance in ohms') disp(I_L_min,'minimum curent in amperes') disp(I_L_max,'maximum curent in amperes')
971faa237a2007646c9a7ac1ada3e20690d036e8
9aa95a74bbb2cde53d49cfbeb529fe858781b85c
/bisection.sce
b259cd0449a96e71021935518d0477c1a7c332c5
[]
no_license
Killer2499/Scilab
020807deb4ea75743af080761b65be086d05d491
322a592dcccad58dab48bcf52411aa5b26fcb8ff
refs/heads/master
2020-03-10T09:08:15.979283
2018-04-12T19:57:09
2018-04-12T19:57:09
129,303,189
0
0
null
null
null
null
UTF-8
Scilab
false
false
572
sce
bisection.sce
function bisection() xl=0; xu=1; xm=0.5; y1=1; ym=(0.5^3)-(5*0.5)+1; if(y1*ym<0) then xu=xm; end while (1) m=(xl+xu)/2; yl=(xl^3)-(5*xl)+1; ym=(m^3)-(5*m)+1; e=((m-xm)/m)*100; if(-5<e&e<5) then disp(m); break; end if(y1*ym<0) then xu=m; end if(y1*ym==0) then disp(m); break; end if(y1*ym>0) then xl=m; end xm=m; end endfunction
4e249d6c7178cca73f07a3ae6ffa3f5bff2b35f6
f6134e0a162a059c42ec3ef8de2a63941d73936c
/Scilab_code/Local_Planner/testConversionQuat.sce
46f66d531d3e3f2849370b9df77e48bcd932844f
[]
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
394
sce
testConversionQuat.sce
clear;clc;getd("./Local_Planner"); q1 = createQuaternion(0,[1 0 0]); q2 = createQuaternion(%pi/2,[0 1 0]); q3 = createQuaternion(-%pi/4,[1 0 1]); q4 = createQuaternion(-3*%pi/2,[1 1 0]); q5 = createQuaternion(-%pi/3,[0 0 1]); vector = [-1 -1 1]; angle = %pi/2; R = matrix_fromAngleVector(angle,vector); [a,b] = angle_vector_FromMat(R); q = createQuaternion(a,b); disp(a) disp(b) disp(q)
bb9c6f8d103b25b1dbe49120a4a3500a5f1a8eed
50d8beb29ad9db96e5fa92983467b1a74e314045
/Module/Easy-trajectory/Easy_traj_template.sce
026e941bd8d0b1678c8799101a05988f11b92d84
[]
no_license
TheTypoMaster/DOCKing_System
6779b1aa778a487d7cc3f0b617e1c19151615f73
2d0418f3beedcd5f8b3b3b8449c0eeceea64e82a
refs/heads/master
2021-01-16T00:22:08.900373
2015-10-02T13:07:26
2015-10-02T13:07:26
43,553,238
0
0
null
2015-10-02T13:07:03
2015-10-02T13:07:03
null
UTF-8
Scilab
false
false
782
sce
Easy_traj_template.sce
clear clc // Mean orbital elements, frame = ECI(EME2000) sma = 6800.e3; // semi major axis (unit m) ecc = 1.e-3; // eccentricity inc = 45 * %pi/180; // inclination pom = %pi/2; // Argument of perigee gom = 5.5289325; // RAAN (Longitude of the ascending node) anm = 0; // Mean anomaly // Orbit type: Keplerian or Circular type_oe = "Circular"; // Simulation time start_time = [51480 0.0]; // MJD [date sec] end_time = [51509 10]; step_size = 100; // Unit: sec // CIC output setting Sat_name = 'Birdy'; Body_name = 'EARTH'; File_path = '/home/birdy/Software/Backup/Easy_Traj/test01.txt'; // Call the EasyTraj2CIC function exec('EasyTraj_gen.sci'); EasyTraj_gen(sma, ecc, inc, pom, gom, anm, type_oe, start_time, end_time, step_size, Sat_name, Body_name, File_path); exit();
ead61d9abfb9dfd994433e0d5df04d2e3bac05b4
9d0ab5efb08cc05ae362e8a981bdf5fa2debd7f6
/02/AddSub16.tst
9230272ac6c920ab7ea4ab7e3e596f6cbef4a617
[]
no_license
nandha1nks/Nand2Tetris
bca96e324a1ff7ed425e33a37e3b7579d38fd29f
82769b7a4e69b11c0bacd100991dfdf2b36a5f1d
refs/heads/master
2023-01-02T11:57:25.843133
2020-10-29T10:10:27
2020-10-29T10:10:27
295,441,600
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,230
tst
AddSub16.tst
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/02/Add16.tst load AddSub16.hdl, output-file AddSub16.out, compare-to AddSub16.cmp, output-list a%B1.16.1 b%B1.16.1 sel out%B1.16.1; set a %B0000000000000000, set b %B0000000000000000, set sel 0, eval, output; set a %B0000000000000000, set b %B0000000000000000, set sel 1, eval, output; set a %B0000000000000000, set b %B1111111111111111, set sel 0, eval, output; set a %B0000000000000000, set b %B1111111111111111, set sel 1, eval, output; set a %B1111111111111111, set b %B1111111111111111, set sel 0, eval, output; set a %B1111111111111111, set b %B1111111111111111, set sel 1, eval, output; set a %B1010101010101010, set b %B0101010101010101, set sel 0, eval, output; set a %B1010101010101010, set b %B0101010101010101, set sel 1, eval, output; set a %B0011110011000011, set b %B0000111111110000, set sel 0, eval, output; set a %B0011110011000011, set b %B0000111111110000, set sel 1, eval, output; set a %B0001001000110100, set b %B1001100001110110, set sel 0, eval, output; set a %B0001001000110100, set b %B1001100001110110, set sel 1, eval, output;
01159adcfaf7c91e7f64173b89c2047e13199366
449d555969bfd7befe906877abab098c6e63a0e8
/3845/CH4/EX4.6/Ex4_6.sce
781bdaa3ce073449ed777415f49e05273a4a2314
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
430
sce
Ex4_6.sce
//Example 4.6 m=70;//Mass of the tightrope walker (kg) theta=5;//Angle (deg) g=9.8;//Acceleration due to gravity (m/s^2) w=m*g;//Weight of the tightrope walker (N) T=w/(2*sind(theta));//Tension (N), See Equation 4.52 //See textbook for derivation printf('Tension in the wire = %0.1f N',T) //Answer varies due to round off error //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest
2f7e73a264eebcbc5312ceed0c8e951166271778
449d555969bfd7befe906877abab098c6e63a0e8
/2045/CH1/EX1.17/Ex1_17.sce
ad6a113f17f5f6299c3f24f25cee24d2fb55cc92
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
427
sce
Ex1_17.sce
//pagenumber 35 example 17 clear nd=10^14;//atoms per cubic centimetre na=5*10^13;//atoms per cubic centimetre un=3800; up=1800; q=1.6*10^-19;//coulomb resist=80;//ohm metre e1=5;//volt per metre w=nd-na; ni=(un+up)*q*resist; p1=poly([1 w -ni^2],'q'); roots(p1);//p1=taken as 3.65*19^12 p1=3.65*10^12; n=p1+w; j=(n*un+p1*up)*q*e1; disp("current density = "+string((j))+"ampere per square centimetre");
530d0a664563e38af2d83dab9209c084cef0a068
449d555969bfd7befe906877abab098c6e63a0e8
/1760/CH5/EX5.28/EX5_28.sce
6738c9e18611b96ff7228620c41fb4c3b98009aa
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
194
sce
EX5_28.sce
//EXAMPLE 5-28 PG NO-322 Z1=0.6-%i*1.2; Z2=0.6-%i*1.2; Z3=1.2+%i*0.6; Z=Z1+(((Z2+3)*(Z3+%i*3))/(Z2+3+Z3+%i*3)); disp('i) Impedance (Z) is in polar = '+string (Z) +' ohms ');
744e1f3b734186edbd00b17ba2e640aedc2a3063
449d555969bfd7befe906877abab098c6e63a0e8
/83/CH9/EX9.7/example_9_7.sce
1fb5fd8ac80c65b5dbc59eaf251bc790019beec9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
770
sce
example_9_7.sce
//Chapter 9 //Example 9.7 //page 355 //To evaluate Zbus using Current Injection method clear;clc; disp("We can approach this problem using XCOS simulation") disp("In this simulation"); disp("1)For injecting unit current at bus1 keeping bus2 open circuit,we use a current source of 1 unit which is switched on from t=0 to t=2. During this period we can observe the voltage waveforms of V1 and V2 and compare with the results given in the textbook"); disp("2)For injecting unit current at bus2 keeping bus1 open circuit,we use a current source of 1 unit which is switched on from t=4 to t=6. During this period we can observe the voltage waveforms of V1 and V2 and compare with the results given in the textbook"); Z11=7; Z21=4; Z12=Z21; Z22=6; Zbus=[Z11 Z12;Z21 Z22]
7bf75b5d4b00af59024556f59321b5dd7f323640
6a0d5ad524ce9b230c7e35af224317d515bb8f2d
/ResilienceMSY/Traj_msy.sce
6edca17c04c0d86d76faaf2130bdc7380b080e50
[]
no_license
mcuilleret/Entropic
b562ded98cbb74ad55579b6be5730767f24f4f2b
0dd4e8bacb312015cd6c3b04b732ebd69de4ac23
refs/heads/main
2023-08-13T07:07:02.684153
2021-10-05T10:28:19
2021-10-05T10:28:19
413,753,215
0
0
null
null
null
null
UTF-8
Scilab
false
false
965
sce
Traj_msy.sce
chdir('C:\Users\matve\Desktop\Code These\ResilienceMSY\'); exec('fctdyn.sce'); exec('fctdyn_eco.sce'); //////////////////////////// //Parametre de lancement //////////////////////////// nb_boats_Post_BAU=nb_boats_MSY; aij=data_param(2:2+N_species-1,2:2+N_species-1); choc=0 Y=20; PopGuyTr=PopGuyTrim; //PROBLEME exec('DynMat2.sce'); [IndGen,IndPro,IndFoodsect,IndBlim,Pro,Catcht,CCt,CCAt,Tt,Xt,IndSP,IndBio,SP,Blim,Foodssect,nb_boats_Post_BAU_t,IndNPV,CompteFi]=dynamique_MAT_2(nb_boats_Post_BAU,gam,aij,B_simul,Y,PopGuyTr) //////////////////////////////////////////////////////////////////////////////////// save('SP_sans_choc'+string(cas),'SP'); save('Blim_sans_choc'+string(cas),'Blim'); save('Pro_sans_choc'+string(cas),'Pro'); save('Foodssect_sans_choc'+string(cas),'Foodssect'); save('nb_boats_Post_BAU_t_sans_choc'+string(cas),'nb_boats_Post_BAU_t') ////////////////////////////////////////////////////////////////////////////////////