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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
01adacbb97a95fda0b1635bfbc657be3c77c9bc0 | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/ofemdemo/basic_elt_test.sci | 7f718cbf71e4bbdfb611d5c787c7bfb0431d6e6a | [] | no_license | mikeg2105/matlab-old | fe216267968984e9fb0a0bdc4b9ab5a7dd6e306e | eac168097f9060b4787ee17e3a97f2099f8182c1 | refs/heads/master | 2021-05-01T07:58:19.274277 | 2018-02-11T22:09:18 | 2018-02-11T22:09:18 | 121,167,118 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 17,211 | sci | basic_elt_test.sci | function [out,out1,out2]=basic_elt_test(varargin);
// ELEMENT TESTS
//
//// eig, load, mat for all elements => comparisons with SDT5.1
// basic_elt_test('compare')
//
//// test of basic commands (integinfo, call, etc.) for all elements
// basic_elt_test('integinfo')
//
//// testmat for all elements,
//// the optional output argument is a cell array containing basic matrices
// out = basic_elt_test('mat')
//
//// testeig for all elements,
//// the optional output argument is a cell array containing frequencies
// out = basic_elt_test('eig')
//
//// testload for all elements,
//// the optional output argument is a cell array containing RHS norms
// out = basic_elt_test('load')
//
//// test mat,eig,surf,... for element
//// st=q4p,t3p,...
//// st1=mat,eig,sur,vol
// basic_elt_test(st,st1) or basic_elt_test (all the tests)
//
// example
// basic_elt_test('penta15','mat') // check anisotropic material for 2D
// Etienne Balmes, J.M. Leclere
// Copyright (c) 2001-2003 by INRIA and SDTools,All Rights Reserved.
// Use under OpenFEM trademark.html license and LGPL.txt library license
// $Revision: 1.7 $ $Date: 2004/07/28 07:19:10 $
global withoutplot
[nargout,nargin] = argn(0);
carg=1;
out = []; out1 = []; out2 = [];
//-----------------------------------------------------------------------
// To do the matrix, rhs, stress test for a specified element
if carg<=nargin-1
st=varargin(carg); st1=varargin(carg+1);carg=carg+2;
else
// list of elements to check
//st=makecell([1 1],'tria6');
st=makecell([1 20],'q4p','q8p','t3p','t6p',...
'hexa8','hexa20','penta6','penta15',...
'tetra4','tetra10','tria3','tria6',...
'quad4','quadb','quad9','bar1','flui4',...
'flui6','flui8','beam1');
// missing: mitc4, , beam3, , celas , q5p, q9a ,'dktp',
if carg<=nargin; st1=varargin(carg);carg=carg+1;
else; st1='';
end
end
//-----------------------------------------------------------------------
// testmat for all elements
if isempty(st1)|comstr(st1,'mat')
st1='testmat';
ierr2 = execstr('host(''rm basic_elt_test.txt'');','errcatch');
filename = 'basic_elt_test.txt';
[fd,err] = mopen(filename,'a');
out=cell();
for j1=1:prod(size(st))
st3=['k='+st(j1).entries+'('''+st1+''');'];
ierr = zeros(1,3);
if any(strcmp(st(j1).entries,makecell([1 6],'q4p','q5p','q8p','t3p','t6p','q9a')))
st3=['k='+st(j1).entries+'('''+st1+'_0'+''');'];
ierr(1) = execstr(st3,'errcatch');
if ierr(1)==0; out(size(out,1)+1,1:2)=makecell([1 2],st3,k); end
st3=['k='+st(j1).entries+'('''+st1+'_1'+''');'];
ierr(2) = execstr(st3,'errcatch');
if ierr(2)==0; out(size(out,1)+1,1:2)=makecell([1 2],st3,k); end
st3=['k='+st(j1).entries+'('''+st1+'_2'+''');'];
ierr(3) = execstr(st3,'errcatch');
if ierr(3)==0; out(size(out,1)+1,1:2)=makecell([1 2],st3,k); end
else
ierr(1) = execstr(st3,'errcatch');
if ierr(1)==0; out(size(out,1)+1,1:2)=makecell([1 2],st3,k); ierr = zeros(1,3); end
end
if any(ierr)
disp(lasterror());
fprintf(fd,'------------------------------- error in %s %s\n',st(j1).entries,st1)
out(size(out,1)+1,1:3)=makecell([1 3],st3,'error',lasterror());
elseif iscell(k)
if isempty(find(isfinite(k(1).entries))) | isempty(find(k(1).entries))
error('Infinite or zeros matrix');
end
end
end //j1
mclose(fd);
// diary off
return;
//-----------------------------------------------------------------------
// testeig for all elements
elseif comstr(st1,'eig')
withoutplot = 1;
st1='testeigstress';
ierr2 = execstr('host(''rm basic_elt_test.txt'');','errcatch');
filename = 'basic_elt_test.txt';
[fd,err] = mopen(filename,'a');
out=cell();
for j1=1:prod(size(st))
st3=['[model,def]='+st(j1).entries+'('''+st1+''');'];
ierr = zeros(1,3);
if any(strcmp(st(j1).entries,makecell([1 6],'q4p','q5p','q8p','t3p','t6p','q9a')))
st3=['[model,def]='+st(j1).entries+'('''+st1+'_0'+''');'];
ierr(1) = execstr(st3,'errcatch');
if ierr(1)==0; out(size(out,1)+1,1:3)=makecell([1 3],st3,def,def.data(1:5)); end
st3=['[model,def]='+st(j1).entries+'('''+st1+'_1'+''');'];
ierr(2) = execstr(st3,'errcatch');
if ierr(2)==0; out(size(out,1)+1,1:3)=makecell([1 3],st3,def,def.data(1:5)); end
st3=['[model,def]='+st(j1).entries+'('''+st1+'_2'+''');'];
ierr(3) = execstr(st3,'errcatch');
if ierr(3)==0; out(size(out,1)+1,1:3)=makecell([1 3],st3,def,def.data(1:5)); end
else
ierr(1) = execstr(st3,'errcatch');
if ierr(1)==0 & isfield(def,'def')
out(size(out,1)+1,1:3)=makecell([1 3],st3,def,def.data(1:5));
else
out(size(out,1)+1,1:3)=makecell([1 3],st3,'error',lasterror()); ierr = zeros(1,3);
end
end
if any(ierr)
disp(lasterror());
fprintf('------------------------------- error in %s %s\n',st(j1).entries,st3);
out(size(out,1)+1,1:3)=makecell([1 3],st3,'error',lasterror());
end
end //j1
mclose(fd);
withoutplot = 0;
// diary off
return;
//-----------------------------------------------------------------------
// testload for all elements
elseif comstr(st1,'load')
withoutplot = 1;
st1='testload';
ierr2 = execstr('host(''rm basic_elt_test.txt'');','errcatch');
filename = 'basic_elt_test.txt';
[fd,err] = mopen(filename,'a');
out=cell();
for j1=1:prod(size(st))
st3=['[model,def]='+st(j1).entries+'('''+st1+''');'];
ierr = zeros(1,3);
if any(strcmp(st(j1).entries,makecell([1 6],'q4p','q5p','q8p','t3p','t6p','q9a')))
st3=['[model,def]='+st(j1).entries+'('''+st1+'_0'+''');'];
ierr(1) = execstr(st3,'errcatch');
if ierr(1)==0; out(size(out,1)+1,1:3)=makecell([1 3],st3,def,norm(full(def.def),2)); end
st3=['[model,def]='+st(j1).entries+'('''+st1+'_1'+''');'];
ierr(2) = execstr(st3,'errcatch');
if ierr(2)==0; out(size(out,1)+1,1:3)=makecell([1 3],st3,def,norm(full(def.def),2)); end
st3=['[model,def]='+st(j1).entries+'('''+st1+'_2'+''');'];
ierr(3) = execstr(st3,'errcatch');
if ierr(3)==0; out(size(out,1)+1,1:3)=makecell([1 3],st3,def,norm(full(def.def),2)); end
else
ierr2 = execstr(st3,'errcatch');
if ierr(1)==0 & isfield(def,'def')
out(size(out,1)+1,1:3)=makecell([1 3],st3,def,norm(full(def.def),2));
elseif ierr(1)~=0
out(size(out,1)+1,1:3)=makecell([1 3],st3,'error',lasterror()); ierr = zeros(1,3);
else
out(size(out,1)+1,1:3)=makecell([1 3],st3,'error','attempt to reference field of non-structure array ''def''.'); ierr = zeros(1,3);
end
end
if any(ierr)
disp(lasterror());
fprintf(fd,'------------------------------- error in %s %s\n',st(j1).entries,st1)
out(size(out,1)+1,1:3)=makecell([1 3],st3,'error',lasterror());
end
end //j1
mclose(fd);
withoutplot = 0;
//diary off
return;
//-----------------------------------------------------------------------
//
elseif comstr(st1,'compare')
withoutplot = 1;
st0=st;
filename = 'basic_elt_test.txt';
[fd,err] = mopen(filename,'a');
[Eig_ref,Load_ref,Mat_ref] = ref_elt_test();
[st0,i1]=%ce_intersect_ce(st,st0);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Matrices
Mat = basic_elt_test('mat'); result_Mat=Mat;
for j1=1:size(Mat,1)
i1=find(strcmp(Mat_ref,Mat(j1,1).entries));
if ~isempty(i1)
if ~isstr(Mat_ref(i1,2).entries) & ~isstr(Mat(j1,2).entries) & iscell(Mat(j1,2).entries)
result_Mat(j1,2).entries=[(Mat_ref(i1,2).entries(1)-max(svd(Mat(j1,2).entries(1).entries)))/Mat_ref(i1,2).entries(1)
(Mat_ref(i1,2).entries(2)-max(svd(Mat(j1,2).entries(2).entries)))/Mat_ref(i1,2).entries(1) ];
else
result_Mat(j1,2).entries='error';
end
else
result_Mat(j1,2).entries='not compared';
end
end // j1
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - EIG
Eig = basic_elt_test('eig');result_Eig=Eig;
for j1=1:size(Eig,1)
i1=find(strcmp(Eig_ref,Eig(j1,1).entries));
if ~isempty(i1)
if ~isstr(Eig_ref(j1,2).entries) & ~isstr(Eig(j1,2).entries)
result_Eig(j1,2).entries=Eig_ref(i1,2).entries(:)'-Eig(i1,3).entries(:)';
else
result_Eig(j1,2).entries='error';
end
else
result_Eig(j1,2).entries='not compared';
end
end // j1
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - LOAD
Load = basic_elt_test('load');result_Load=Load;
for j1=1:size(Load,1)
i1=find(strcmp(Load_ref,Load(j1,1).entries));
if ~isempty(i1)
if ~isstr(Load_ref(j1,2).entries) & ~isstr(Load(j1,2).entries)
result_Load(j1,2).entries=Load_ref(i1,2).entries-Load(i1,3).entries;
else
result_Load(j1,2).entries='error';
end
else
result_Load(j1,2).entries='not compared';
end
end // j1
out=makecell([1 3],result_Mat,result_Eig,result_Load);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - Comparisons output
for j1=1:size(out(1).entries,1) // Mat
if ~isstr(out(1).entries(j1,2).entries) & ~isempty(find(out(1).entries(j1,2).entries>sdtdef('epsl')))
fprintf(fd,'%s : ',out(1).entries(j1,1).entries);
fprintf(fd,'%f ',out(1).entries(j1,2).entries);
fprintf(fd,'\n');
elseif ~isstr(out(1).entries(j1,2).entries) & isempty(find(out(1).entries(j1,2).entries>sdtdef('epsl')))
fprintf(fd,'%s : comparison OK\n',out(1).entries(j1,1).entries);
else fprintf(fd,'%s : error\n',out(1).entries(j1,1).entries);
end
end
for j1=1:size(out(2).entries,1) // Eig
if ~isstr(out(2).entries(j1,2).entries) & ~isempty(find(out(2).entries(j1,2).entries>sdtdef('epsl')))
fprintf(fd,'%s : ',out(2).entries(j1,1).entries);
fprintf(fd,'%f ',out(2).entries(j1,2).entries);
fprintf(fd,'\n');
elseif ~isstr(out(2).entries(j1,2).entries) & isempty(find(out(2).entries(j1,2).entries>sdtdef('epsl')))
fprintf(fd,'%s : comparison OK\n',out(2).entries(j1,1).entries);
else fprintf(fd,'%s : error\n',out(2).entries(j1,1).entries);
end
end
for j1=1:size(out(3).entries,1) // Load
if ~isstr(out(3).entries(j1,2).entries) & ~isempty(find(out(3).entries(j1,2).entries>sdtdef('epsl')))
fprintf(fd,'%s : ',out(3).entries(j1,1).entries);
fprintf(fd,'%f ',out(3).entries(j1,2).entries);
fprintf(fd,'\n');
elseif ~isstr(out(3).entries(j1,2).entries) & isempty(find(out(3).entries(j1,2).entries>sdtdef('epsl')))
fprintf(fd,'%s : comparison OK\n',out(3).entries(j1,1).entries);
else fprintf(fd,'%s : error\n',out(3).entries(j1,1).entries);
end
end
withoutplot = 0;
return;
//-----------------------------------------------------------------------
// test each basic command of elements
elseif comstr(st1,'integinfo')
st1=makecell([1 8],'call','rhscall','node','patch',...
'dof','line','face','parent');
ierr2 = execstr('host(''rm basic_elt_test.txt'');','errcatch');
filename = 'basic_elt_test.txt';
[fd,err] = mopen(filename,'a');
for j1=1:length(st)
for j2=1:length(st1)
st3=['r1='+st(j1).entries+'('''+st1(j2).entries+''');'];
ierr = 0;
ierr = execstr(st3,'errcatch');
if ierr==0 & isempty(r1); error('Empty return'); end
if ierr~=0
disp(lasterror());
fprintf('------------------------------- error in %s\n',st3)
end
end //j2
end //j1
// test 'integinfo' (based on femesh test elt call)
st1='integinfo';
for j1=1:length(st)
st3=['i1='+st(j1).entries+'('''+st1+''',[100;110],model.pl,model.il);'];
st4=['model=femesh(''test'+st(j1).entries+''');' ];
ierr = zeros(1,2);
ierr(1) = execstr(st4,'errcatch'); ierr(2) = execstr(st3,'errcatch');
if ~any(ierr) & isempty(find(i1)); error('Empty constit'); end
if any(ierr)
disp(lasterror());
fprintf('------------------------------- error in %s\n',st3)
end
end //j1
mclose(fd);
//diary off
return;
//-----------------------------------------------------------------------
// no input argument => test all
elseif nargin==0
st1=makecell([1 4],'mat','eig','loadStressMises','load');
ierr2 = execstr('host(''rm basic_elt_test.txt'');','errcatch');
filename = 'basic_elt_test.txt';
[fd,err] = mopen(filename,'a');
for j1=1:length(st)
for j2=1:length(st1)
basic_elt_test(st(j1).entries,st1(j2).entries);
end //j2
end //j1
mclose(fd);
// diary off
return;
else error('Not a valid test')
end
//-----------------------------------------------------------------------
// Actually do the test for one specified element
filename = 'basic_elt_test.txt';
[fd,err] = mopen(filename,'a');
st2=sprintf('%s test%s;',st,st1);
ierr = execstr(st2,'errcatch');
if ierr~=0
disp(lasterror());
fprintf(fd,' ------------------ error in %s test\n%s\n', st2)
end
if any(strcmp(st,makecell([1 6],'q4p','q5p','q8p','t3p','t6p','q9a')))
st2=sprintf('%s test%s_0;',st,st1);
ierr = execstr(st2,'errcatch');
if ierr~=0
disp(lasterror());
fprintf(fd,' ------------------ error in %s test\n%s\n',st2)
end
st2=sprintf('%s test%s_1;',st,st1);
ierr = execstr(st2,'errcatch');
if ierr~=0
disp(lasterror());
fprintf(fd,' ------------------ error in %s test\n%s\n',st2)
end
st2=sprintf('%s test%s_2;',st,st1);
ierr = execstr(st2,'errcatch');
if ierr~=0
disp(lasterror());
fprintf(fd,' ------------------ error in %s test\n%s\n',st2)
end
// test anisotropic material
// plane stress
E=2.1e11;nu=.285;C=E/(1.-nu*nu);
e=[C C*nu C 0. 0. C*(1-nu)/2];
pl=[100 fe_mat('m_elastic','SI',4) e 7800 0 0 0 0 .1];
st2=sprintf('k=%s (''test%s_0'');',st,st1)
execstr(st2);
st2=sprintf('k1=%s (''test%s_0'',pl);',st,st1)
execstr(st2);
if iscell(k1)
if norm(k(1).entries-k1(1).entries); error(['anisotropic element '+st2]); end
end
// plane strain
unmnu=1.-nu;
C=E*unmnu/(1+nu)/(1-2*nu);
e=[C nu*C/unmnu C 0. 0. C*(1-2*nu)/(2*unmnu)];
pl=[100 fe_mat('m_elastic','SI',4) e 7800 0 0 0 0 .1];
st2=sprintf('k=%s (''test%s_1'');',st,st1);
execstr(st2,'errcatch');
st2=sprintf('k1=%s (''test%s_1'',pl);',st,st1);
execstr(st2);
if iscell(k1)
if norm(k(1).entries-k1(1).entries); error(['anisotropic element '+st2]); end
end
end
mclose(fd);
return;
//-----------------------------------------------------------------------
if 1==2
// anisotropic
model=femesh('testq4p');
model.il(3)=0;
E=2.1e11;nu=.285;C=E/(1.-nu*nu);
e=[C C*nu C 0. 0. C*(1-nu)/2];
model.pl=[100 fe_mat('m_elastic','SI',4) e 7800 0 0 0 0 .1];
[constit,iopt,elmap]=q4p('integinfo',[100;110],model.pl,model.il);
[k,m]=q4p(model.Node,model.Elt(2,:),[36 36 0 0 0 0 0 0 0],int32(iopt),constit,elmap);
unmnu=1.-nu;
C=E*unmnu/(1+nu)/(1-2*nu);
e=[C nu*C/unmnu C 0. 0. C*(1-2*nu)/(2*unmnu)];
pl=[100 fe_mat('m_elastic','SI',4) e 7800 0 0 0 0 .1];
end
//--------------------------------------------------------- RHS
if 1==2
// st={'q4p','q5p','q8p','t3p','t6p',...
// 'hexa8','hexa20','penta6',...
// 'tetra4','tetra10'};
// st={'quad4','tria3','quadb'};
//st={'bar1','beam1'};
//st={'flui4','flui6','flui8'};
st=makecell([1 5],'q4p','q5p','q8p','t3p','t6p');
errors=cell();
for j2=1:4
for j1=1:length(st)
st1=['[model,def1]=femesh(''teststruct'+st(j1).entries+'load'');' ];
st2=['[model,def2]=femesh(''teststruct'+st(j1).entries+'load'');' ];
st3=['[model,def3]=femesh(''teststruct'+st(j1).entries+'load'');' ];
execstr(st1);execstr(st2);execstr(st3);
if ~isequal(def1.def,def2.def) | ~isequal(def1.def,def3.def)
errors(size(errors,1)+1,1).entries=st1;
if ~isequal(def1.def(:,1:2),def2.def(:,1:2)) |...
~isequal(def1.def(:,1:2),def3.def(:,1:2))
errors(size(errors,1),2).entries='gravity and/or surf';
else
errors(size(errors,1),2)='pressure only';
end
end
end //j1
end //j2
end
//------------------------------------------ compare basic matrices
if 1==2
out=basic_elt_test('mat')
loadmatfile 'basic_elt_test_matrices'
result=out;
for j1=1:size(out,1)
i1=find(strcmp(k,out(j1,1).entries));
if ~isempty(i1)
if ~isstr(out(j1,2).entries);
result(j1,2).entries=norm(out(j1,2).entries(1).entries-k(i1,2).entries(1).entries);
result(j1,3).entries=norm(out(j1,2).entries(2).entries-k(i1,2).entries(2).entries);
else
result(j1,2).entries='error';
result(j1,3).entries='error';
end
else
result(j1,2).entries='not compared';
end
end
end
//--------------------------------------------------------- RHS
if 1==2
out=basic_elt_test('load')
loadmatfile 'basic_elt_test_load'
result=out;
for j1=1:size(out,1)
i1=find(strcmp(k,out(j1,1).entries));
if ~isempty(i1)
if ~isstr(out(j1,2).entries);
result(j1,2).entries=norm(out(j1,3).entries-k(i1,3).entries);
else
result(j1,2).entries='error';
end
else
result(j1,2).entries='not compared';
end
end
end
//--------------------------------------------------------- EIG
if 1==2
out=basic_elt_test('eig')
loadmatfile basic_elt_test_load
result=out;
for j1=1:size(out,1)
i1=find(strcmp(k,out(j1,1).entries));
if ~isempty(i1)
if ~isstr(out(j1,2).entries);
result(j1,2).entries=norm(out(j1,3).entries-k(i1,3).entries);
else
result(j1,2).entries='error';
end
else
result(j1,2).entries='not compared';
end
end
end
//---------------------------------------------------------
|
9fc5b9341351467d09e4ee375b129ded07334f96 | 449d555969bfd7befe906877abab098c6e63a0e8 | /569/CH2/EX2.3/2_3.sci | 9d0204df8cefa6c68b967c1864b6f642e80b9447 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 422 | sci | 2_3.sci | // calculating Relative error (expressed as a percentage of f.s.d)
clc;
disp('calculating Relative error (expressed as a percentage of f.s.d)')
Am = 1.46;
At=1.50;
e=Am-At;
disp(e,'Absolute error(V)=');
Sc=-e;
disp(Sc,'Absolute Correction(V)=');
RE=(e/At)*100;
disp(RE,'Relative Error in terms of true value(in percentage)=');
REF=(e/2.5)*100;
disp(REF,'Relative Error in terms of true value(in percentage)='); |
cbc19422abb92cfce314089b28081d04b35a44be | 8062fe46632f0a71aa99ad958256ac4f8b2e4065 | /projects/03/a/RAM64alt.tst | 2252df57c055901a01913d6917e06933de81f767 | [] | no_license | bodgergely/nand2tetris | e4ba621d8e3e8a1f96e618029df6332a55a4699e | d2d2c28d01e03ae15a139b09fe82944bc3c67cde | refs/heads/master | 2022-07-22T03:56:54.314969 | 2022-07-08T21:42:46 | 2022-07-08T21:42:46 | 145,323,539 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 881 | tst | RAM64alt.tst | // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/03/a/RAM64.tst
load RAM64.hdl,
output-file RAM64alt.out,
compare-to RAM64alt.cmp,
output-list time%S1.4.1 in%D1.6.1 load%B2.1.2 address%D2.3.2 out%D1.6.1;
set in 0,
set load 0,
set address 0,
tick,
output;
tock,
output;
set load 1,
tick,
output;
tock,
output;
set in 1313,
set load 0,
tick,
output;
tock,
output;
set load 1,
set address 13,
tick,
output;
tock,
output;
set load 0,
set address 0,
tick,
output;
tock,
output;
set in 4747,
set address 47,
tick,
output;
tock,
output;
set load 1,
tick,
output;
tock,
output;
set in 5463,
set load 1,
tick,
output;
tock,
output;
set in 4747,
set address 13,
set load 1,
tick,
output;
tock,
output;
|
8bfce214f6c16cd0ecaccd39866e304a9974efff | 449d555969bfd7befe906877abab098c6e63a0e8 | /2732/CH2/EX2.10/Ex2_10.sce | cd4721315629912420eae76e1aff4567aa7dc16a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex2_10.sce | clc
// initialization of variables
clear
tau_xx= -1 // kgf/cm^2
tau_yy= 0 // kgf/cm^2
tau_xy= 7 // kgf/cm^2
// calculations
sigma_1=(tau_xx+tau_yy)/2+sqrt((1/2*(tau_xx-tau_yy))^2+tau_xy^2)
sigma_2=(tau_xx+tau_yy)/2-sqrt((1/2*(tau_xx-tau_yy))^2+tau_xy^2)
x=sigma_1 // positive one is tension
if(sigma_2>sigma_1)
x=sigma_2
end
// Results
printf('The diagonal tension is %.3f kgf/cm^2',x)
|
a028c7a18e23563783396b6b9e5a52a9fd5f24f2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2204/CH13/EX13.17/ex13_17.sce | 8aa015dc28e8b3f92b9c90db28f64f55b8eb8a9a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 233 | sce | ex13_17.sce | // Exa 13.17
clc;
clear;
close;
// Given data
R_A = 20;// in k ohm
R_A = R_A * 10^3;// in ohm
C = 0.1;// in µF
C = C*10^-6;// in F
pulse_width = 1.1*R_A*C;// in s
disp(pulse_width*10^3,"The output pulse width in ms is");
|
cde1cd4c89d2baff4b89979442ed3e37f3aa1c0d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1247/CH5/EX5.53/example5_53.sce | 6de823af8af389192afed1da75a4cedd882f8059 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 554 | sce | example5_53.sce | clear;
clc;
// Stoichiometry
// Chapter 5
// Energy Balances
// Example 5.53
// Page 308
printf("Example 5.53, Page 308 \n \n");
// solution
F = 1135
Benzenef = 400*.993
HNO3con = Benzenef*63/78
H1 = -186.5
C11 = 1.88
H11 = H1+C11*(298.15-273.15)
H2 = -288.9
C12 = 1.96
H22 = H2+C12*(298.15-273.15)
H3 = 0
C13 = 1.98
H33 = C13*(298.15-273.15)
Hr = -285.83+12.5-(-174.1+49.08)
Benzener = Benzenef/78.1118
fi = 903.84*H22+HNO3con*H33-F*H11+Benzener*Hr*1000 // kJ/h
printf(" Total heat exchanged = "+string(fi)+" kJ/h.")
|
d7a139acfff1e49b975f0d77fb07eea10d57071c | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /sci2blif/sci2blif_added_blocks/HH_RG_3s.sce | 90384d402966313039957fd3b97f494cdf7d6bb9 | [] | no_license | jhasler/rasp30 | 9a7c2431d56c879a18b50c2d43e487d413ceccb0 | 3612de44eaa10babd7298d2e0a7cddf4a4b761f6 | refs/heads/master | 2023-05-25T08:21:31.003675 | 2023-05-11T16:19:59 | 2023-05-11T16:19:59 | 62,917,238 | 3 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 4,005 | sce | HH_RG_3s.sce | //**************************** HH_RG_3s **********************************
if (blk_name.entries(bl) == "HH_RG_3s") then
for ss=1:scs_m.objs(bl).model.ipar(1)
mputl("# HH_RG_3s "+string(bl)+" "+string(scs_m.objs(bl).model.ipar(2))+" "+string(ss),fd_w);
sci2blif_str= ".subckt HH_RG_3s"+" in[0]=net"+string(blk(blk_objs(bl),2))+"_"+string(ss)+" in[1]=net"+string(blk(blk_objs(bl),3))+"_"+string(ss)+" in[2]=net"+string(blk(blk_objs(bl),4))+"_"+string(ss)+" in[3]=net"+string(blk(blk_objs(bl),5))+"_"+string(ss)+" in[4]=net"+string(blk(blk_objs(bl),6))+"_"+string(ss)+" in[5]=net"+string(blk(blk_objs(bl),7))+"_"+string(ss)+" in[6]=net"+string(blk(blk_objs(bl),8))+"_"+string(ss)+" out[0]=net"+string(blk(blk_objs(bl),2+numofip))+"_"+string(ss)+" out[1]=net"+string(blk(blk_objs(bl),3+numofip))+"_"+string(ss)+" #HH_RG_3s_ls =0"+"&HH_RG_3s_Nafb_ibias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(1-1)+ss)))+"&HH_RG_3s_syn0_ibias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(2-1)+ss)))+"&HH_RG_3s_syn1_ibias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(3-1)+ss)))+"&HH_RG_3s_syn2_ibias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(4-1)+ss)))+"&HH_RG_3s_pfet_ibias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(5-1)+ss)))+"&HH_RG_3s_nmr_ibias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(6-1)+ss)))+"&HH_RG_3s_Na_ibias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(7-1)+ss)))+"&HH_RG_3s_Na_pbias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(8-1)+ss)))+"&HH_RG_3s_Na_nbias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(9-1)+ss)))+"&HH_RG_3s_K_ibias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(10-1)+ss)))+"&HH_RG_3s_K_pbias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(11-1)+ss)))+"&HH_RG_3s_K_nbias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(12-1)+ss)))+"&HH_RG_3s_buf_ibias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(13-1)+ss)))+"&HH_RG_3s_comp_ibias ="+string(sprintf('%e',scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(14-1)+ss)))
sci2blif_str=sci2blif_str+"&";
if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(15-1)+ss) == 1 then sci2blif_str=sci2blif_str+"HH_RG_3s_cap0_1x_cs =1"; end
if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(15-1)+ss) == 2 then sci2blif_str=sci2blif_str+"HH_RG_3s_cap0_2x_cs =2"; end
if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(15-1)+ss) == 3 then sci2blif_str=sci2blif_str+"HH_RG_3s_cap0_1x_cs =3&HH_RG_3s_cap0_2x_cs =0"; end
if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(15-1)+ss) == 4 then sci2blif_str=sci2blif_str+"HH_RG_3s_cap0_4x_cs =4"; end
if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(15-1)+ss) == 5 then sci2blif_str=sci2blif_str+"HH_RG_3s_cap0_1x_cs =5&HH_RG_3s_cap0_4x_cs =0"; end
if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(15-1)+ss) == 6 then sci2blif_str=sci2blif_str+"HH_RG_3s_cap0_2x_cs =6&HH_RG_3s_cap0_4x_cs =0"; end
if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(15-1)+ss) == 7 then sci2blif_str=sci2blif_str+"HH_RG_3s_cap0_1x_cs =7&HH_RG_3s_cap0_2x_cs =0&HH_RG_3s_cap0_4x_cs =0"; end
mputl(sci2blif_str,fd_w);
mputl(" ",fd_w);
if scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(16-1)+1) == 1 then
plcvpr = %t;
plcloc=[plcloc;'net'+string(blk(blk_objs(bl),2+numofip))+"_"+string(ss),string(scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(16-1)+1+2*ss-1))+' '+string(scs_m.objs(bl).model.rpar(scs_m.objs(bl).model.ipar(1)*(16-1)+1+2*ss))+' 0'];
end
end
end
|
cd0e15b734a8651e31087786c71bb7aa1088a3ad | b13c6d07b88515b61d998f4fe34d9ec9710ba3ef | /ExperienceFiabilité.sce | 103d9780fd0ed422537db10104186d56df7d756d | [] | no_license | EmSavalle/PremiereExpe | c3018f5a833057b88cc5b7bce9f60cecc8b7aa27 | afb9188571ce7e460deed2971586ab0ef161d6cd | refs/heads/main | 2023-01-13T06:07:18.591098 | 2020-11-12T12:35:44 | 2020-11-12T12:35:44 | 310,552,016 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 58 | sce | ExperienceFiabilité.sce | response_matching = simple_matching;
begin;
begin_pcl;
|
02efd028bb0a339abc021e3a4d136c26cf5775e1 | a557f90da8513f81cafd8f65e37e2c0d66449a2f | /cir_conv_freq_domian.sce | f3a207009e04b19c775a9939a8c4253b2f7980fc | [] | no_license | Sahil966121/SCI | 484cd77d6247e54fe87d36b4f112965c83ab5d96 | cf2921861486a4f2e2e83c3ca813a4e7710d3508 | refs/heads/main | 2023-03-03T17:43:08.236192 | 2021-02-03T05:19:43 | 2021-02-03T05:19:43 | 324,413,192 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 460 | sce | cir_conv_freq_domian.sce | clc;
clear;
close;
x1=input('x(n)=');
x2=input('h(n)=');
L1=length(x1);
L2=length(x2);
N=max(L1,L2);
x1=[x1,zeros(1,N-L1)];
x2=[x2,zeros(1,N-L2)];
//circular convolution in freq domain
X1=fft(x1);
X2=fft(x2);
Y=X1.*X2;
y=ifft(Y);
disp(y,'Circular Convolution y=')
subplot(3,1,1);plot2d3(x1);xtitle('input signal x1','n','x1[n]');
subplot(3,1,2);plot2d3(x2);xtitle('input signal x2','n','x2[n]');
subplot(3,1,3);plot2d3(Y);xtitle('output signal Y','n','Y[n]');
|
469e4450d8d428fdc34286764607d96243e2e0f1 | b73e9d989ebb6c74535238e10eede063a5d7e66b | /123.sce | 5a1a37fe5c4cbf7ab9f9df7713457e2843e00592 | [] | no_license | ParthaSurve/CODES_SEM_VI | 930a520ccdbc7cb389dac6b6f03900674b5e1a6b | 1f6afa9b92ad8263d0773ce0f90f9ffa5943b8e4 | refs/heads/master | 2021-01-21T05:13:44.089655 | 2017-02-25T17:46:44 | 2017-02-25T17:46:44 | 83,149,933 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 513 | sce | 123.sce | syms a e; a is semimajor and e is eccentricity
[a,e] = solve(a*(1-e)==6375+300,a*(1+e)==6375+10000,a,e); % earth radius = 6375km,
hp=300, ha=10000
b=a*sqrt(1-e.^2); %b is semiminor
b=double(b);
a=double(a);
e=double(e);
u=0:pi/100:2*pi; %u is true anomaly
r=(a*(1-e^2)./(1+e.*cos(u))); %r is radial distance from earth's center
figure(1);
plot(u,r); %Radial distance evolution over one revolution
xlabel('true anomaly(degree)')
ylabel('radial distance(km)')
title('Radial distance evolution over one revolution')
|
fb9a9954546e7720db8b9aa933e07c08ff822835 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1118/CH4/EX4.6/eg4_6.sce | 88d8ce2afebfaab47090229012c2bce2230bd0a8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 276 | sce | eg4_6.sce | clear;
//clc();
v=11;
ct=0.7;
cs=0.4;
cc=(ct-cs)/2;
printf("\n the capacitance between conductors is: %.2f uF\n ",cc);
cl=0.5*(3*cc + cs);
ic=(v*2*3.14*50*2*cl*.001)/sqrt(3);..//charging current in ka/phase
printf("\n the charging current is: %.3f A\n ",ic);
|
bb8f93f555e3ed17edb94478bb9f6f467feeb7b5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2891/CH2/EX2.31/Ex2_31.sce | 491b737d978c247a0bda144938b98bc6eca308bd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,404 | sce | Ex2_31.sce | // Exa 2.31
clc;
clear;
close;
// given :
E_i=1 // magnitude of incident electric field in mV/m
E_i=1*10^-3 // magnitude of incident electric field in V/m
epsilon_0=8.854*10^-12 // permittivity in free space in F/m
mu_0=4*%pi*10^-7 // permeability in free space in H/m
theta_i=15 // incident angle in degrees
epsilon_r1=8.5 // relative permittivity of medium 1
mu_r1=1 // relative permeability of medium 1
epsilon1=epsilon_r1*epsilon_0 // permittivity
mu1=mu_0*mu_r1 // permeability
eta1=sqrt(mu1/epsilon1) // intrinsic impedence of medium 1 in ohm
epsilon2=epsilon_0 // permittivity of medium 2
mu2=mu_0 // permeability of medium 2
eta2=sqrt(mu2/epsilon2) // intrinsic impedence of medium 2 in ohm
//formula : sind(theta_i)/sind(theta_t)=sqrt(epsilon2/epsilon1)
theta_t=asind(sind(theta_i)/(sqrt(epsilon2/epsilon1))) // transmitted angle in degrees
E_r=E_i*((eta2*cosd(theta_i)-(eta1*cosd(theta_i)))/(eta2*cosd(theta_i)+eta1*cosd(theta_i))) // reflection cofficient of electric field
disp(E_r*1000,"reflection cofficient of electric field in mV/m:")
H_i=E_i/eta1 // incident cofficient of magnetic field
disp(H_i*10^6,"incident cofficient of magnetic field in micro*A/m:")
H_r=E_r/eta1 // reflection cofficient of electric field
disp(H_r*10^6,"reflection cofficient of magnetic field in micro*A/m:")
// note : minute difference in decimal answer between scilab and book.
|
9519c28298d4a116a26eb50e33e4aab6a6a76d30 | 6eb42df0d9f452fee0d084e0b0058e4e4ac242ef | /Updated_Exercises_March_2015/Miscellaneous/CoriolisForce/StraightPath.sce | b61fdfb39c79d14569b5e30d476865e060bdb45d | [] | no_license | huangqingze/ocean_modelling_for_beginners | b21c1b398efe91e4a3aa1fa5a1d732e2eb4ec16e | 3e73a511480c73f4e38b41c17b2defebb53133ed | refs/heads/main | 2023-07-03T12:00:01.326399 | 2021-08-14T21:16:12 | 2021-08-14T21:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,608 | sce | StraightPath.sce | //*******************************************
// Scilab script for visualisation of the
// Coriolis force.
//
// Use the help facility for more information
// on individual functions used.
//
// Author: J. Kaempf, 2015 (update)
//********************************************
clf; scf(0); a=gcf(); a.figure_size= [600,600];
T = 24.*3600.; // period
fre = -2*%pi/T; // rotation rate
radius = 20;
time = 0;
dt = T/200; // time step
xp = 0;
yp = 5;
xf = xp;
yf = yp;
uf = 0.0; // speed in m/s
vf = 0.15;
// time loop starts here
fact = 0.9;
fac2 = fact*radius;
xpp(1:200)= %nan;
ypp(1:200)= %nan;
for n = 1:200 // run for 1 period
drawlater; clf;
// isoview scaling
plot2d(0,0,-1,"030"," ",[-20,-20,20,20])
time = time+dt;
xx = radius*sin(fre*time);
yy = radius*cos(fre*time);
x1 = [fact*xx xx];
y1 = [fact*yy yy];
xset("color",5)
xset("thickness",6)
xpoly(x1,y1,"lines",1)
xx = radius*cos(fre*time);
yy = -radius*sin(fre*time);
x2 = [fact*xx xx];
y2 = [fact*yy yy];
xset("color",0)
xset("thickness",6)
xpoly(x2,y2,"lines",1)
xx = -radius*sin(fre*time);
yy = -radius*cos(fre*time);
x3 = [fact*xx xx];
y3 = [fact*yy yy];
xset("color",0)
xset("thickness",6)
xpoly(x3,y3,"lines",1)
xx = -radius*cos(fre*time);
yy = radius*sin(fre*time);
x4 = [fact*xx xx];
y4 = [fact*yy yy];
xset("color",0)
xset("thickness",6)
xpoly(x4,y4,"lines",1)
xset("color",2)
xfarc(-fac2,fac2,2*fac2,2*fac2,0,360*64)
x1 = [0 0];
y1 = [fact*fac2 fac2];
xset("color",5)
xset("thickness",6)
xpoly(x1,y1,"lines",1)
x1 = [0 0];
y1 = [-fac2 -fact*fac2];
xset("color",0)
xset("thickness",6)
xpoly(x1,y1,"lines",1)
y1 = [0 0];
x1 = [fact*fac2 fac2];
xset("color",0)
xset("thickness",6)
xpoly(x1,y1,"lines",1)
y1 = [0 0];
x1 = [-fac2 -fact*fac2];
xset("color",0)
xset("thickness",6)
xpoly(x1,y1,"lines",1)
//new ball position
xf = xf + dt*uf/1000;
yf = yf + dt*vf/1000;
xp = xf*cos(fre*time)+yf*sin(fre*time);
yp = yf*cos(fre*time)-xf*sin(fre*time);
xpp(n) = xp;
ypp(n) = yp;
xset("color",1)
xfarc(xp-1,yp+1,2.0,2,0,360*64)
xset("color",7)
xfarc(xp-0.8,yp+0.8,1.6,1.6,0,360*64)
xset('thickness',2)
plot2d(xpp,ypp,8,'000','',[-radius,-radius,radius,radius])
title("Rotating Frame of Reference","fontsize",3,"font_style",4);
xpause(5d2);
// creation of GIF files (optional)
//if n < 10 then
// xs2gif(0,'ex100'+string(n)+'.gif')
//else
// if n < 100 then
// xs2gif(0,'ex10'+string(n)+'.gif')
// else
// xs2gif(0,'ex1'+string(n)+'.gif')
// end
//end
drawnow;
end;
|
2076fae0dad0a1a305c988a88e28c04ea6aa826c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1538/CH12/EX12.3/Ex12_3.sce | f42a27c84fb2a959ac04156598f4fcb53613a16c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 545 | sce | Ex12_3.sce | //example-12.3
//page no-396
//given
//the molecular weight of polyisoprene monomer
Mm=68 //gm
//after vulcanisation with sulphur, it is observedthat the 2 molecules of isoprene monimer require 2 molecules of sulphur
//hence for full cross linking ,(68*2) gm of isoprene requires (32*2)gm of sulphur. therefore 68kg of isoprene requires
M=32*2*68/68/2 //kg of sulphur
printf ("the weight of sulphur required for cross link polymerization of polyisoprene is %d of sulphur",M)
printf ("the fully cross linked product will be EBONITE")
|
f3b15a5dd303d5842c654eb3f5aca706b0032fbd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2201/CH1/EX1.19/ex1_19.sce | f7d697717b5d5b8e3b567eaa2012468381e77ce7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex1_19.sce | // Exa 1.19
clc;
clear;
close;
// Given data
M = 120;
n = 2;
N_A = 6.023*10^23;
m1 = M/N_A;//mass of 1 atom in gm
m2 = n*m1;//mass of unit cell in gm
disp(20/m2,"Number of unit cell in 20 gms of element is : ")
|
1afb60a95cf3a35d3ef0cf2f903ab20f93183488 | 449d555969bfd7befe906877abab098c6e63a0e8 | /632/CH11/EX11.12/example11_12.sce | 6d590b223e8f66394ecc606d16af3e0dc7c5b187 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 567 | sce | example11_12.sce | //clc()
//Cp = 26.586 + 7.582 * 10 ^-3 * T - 1.12 * 10^-6 * T^2
T1 = 500;//K
T2 = 1000;//K
x = integrate('26.586 + 7.582 * 10^-3 * T - 1.12 * 10^-6 * T^2','T',T1,T2);
Cpm = 1 *x / ( T2 - T1 ) ;
disp("kJ/kmolK",Cpm,"(a)Mean molal heat capacity = ")
V = 500;//m^3;
N = V / 22.4143;
Q = N * Cpm * ( T2 - T1 );
disp("kJ/h",Q,"(b)Heat to be supplied = ")
T3 = 1500;//K
Q1 = Cpm * (T3 - T1);
y = integrate('26.586 + 7.582 * 10 ^-3 * T - 1.12 * 10^-6 * T^2','T',T1,T3);
Q2 = y ;
disp(Q2)
Perror = (Q2 - Q1) * 100 / Q2;
disp("%",Perror,"(c)Percent error = ") |
59f88a302c7fb1cea9e9c234002ceb31e38fac9c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2072/CH23/EX23.2/EX23_2.sce | 472f0be14d9a4af74e41a04924305ddff3e4c216 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 255 | sce | EX23_2.sce | //23.2
p=25//in cm
f=10//in cm
x=(1/f)-(1/p)
q=1/x
p=25
M=-(q/p)
disp("part a")
disp(M,"The magnification when object is at 25cm=")
p=5//in cm
f=10//in cm
x=(1/f)-(1/p)
q=1/x
p=5
M=-(q/p)
disp("part c")
disp(M,"The magnification when object is at 5cm=")
|
4ec522042c3cf2a0f303ab3c686cd46280ad1e41 | ca8a1752ffab27d706f447f6671fec785bff91f6 | /ncp/cs2/project 01/Or8Way.tst | a010cca4216071809d289abbfea0e9a0d9325b72 | [] | no_license | aling94/school | 0d01dbdd582107a58b0a59c564df2db6367777be | 81d52961bc4c9244cf7abef2276ee69495eec351 | refs/heads/master | 2020-04-26T11:05:10.559842 | 2019-03-02T22:27:19 | 2019-03-02T22:27:19 | 173,504,921 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 474 | tst | Or8Way.tst | // This file is part of the materials accompanying the book
// "The Elements of Computing Systems" by Nisan and Schocken,
// MIT Press. Book site: www.idc.ac.il/tecs
// File name: projects/01/Or8Way.tst
load Or8Way.hdl,
output-file Or8Way.out,
compare-to Or8Way.cmp,
output-list in%B1.8.1 out%B2.1.2;
set in %B00000000,
eval,
output;
set in %B11111111,
eval,
output;
set in %B00010000,
eval,
output;
set in %B00000001,
eval,
output;
set in %B00100110,
eval,
output;
|
84b232da9cc2ef3bf6b0bf989df4620011085a2c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2438/CH4/EX4.3/Ex4_3.sce | 0baf633a8d74e08d8e0d2a0f7d4f0e6d09be024f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 767 | sce | Ex4_3.sce | //=======================================================================
// chapter 4 example 3
clc;
clear;
//input data
E0 = 300*10^2; //local field in V/m
P1 = 3.398*10^-7; //dipole moment Coulomb/m
P2 = 2.124*10^-5; //dipole moment Coulomb/m
e0 = 8.85*10^-12; //permittivity in F/m
//formula
//E10Ci=E0-(2*Pi/3*e0)
//calculation
E10C1 = E0-((2*P1)/(3*e0)); //local field of benzene in V/m
E10C2 = E0-((2*P2)/(3*e0)); //local field of water in V/m
//result
mprintf('local field of benzene=%3.2e.V/m\n',E10C1);
mprintf('local field of water=%3.2e.V/m\n',E10C2);
//=======================================================================
|
65cf7a57e64a1fc436b455d617874c579eff16fc | 449d555969bfd7befe906877abab098c6e63a0e8 | /2135/CH3/EX3.1/Exa_3_1.sce | eef5eb1b95693e8b887ccb610a68ec1f2f859446 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 159 | sce | Exa_3_1.sce | //Exa 3.1
clc;
clear;
close;
format('v',7);
//Given Data :
Q2=1800;//KJ/hr
Q2=Q2/3600;//KJ/sec or KW
W=0.35;//KW
COP=Q2/W;
disp(COP,"COP is : ");
|
c193cfc90cb901567f53754004826785a7327955 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1673/CH4/EX4.4/4_4.sce | 607c5a243b0604714d5e7e41c6db63c3834855a3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 788 | sce | 4_4.sce | //example 4.4
//linearization of non-linear law
//page 131
clc;clear;close;
x=[1 3 5 7 9];
y=[2.473 6.722 18.274 49.673 135.026];
for i=1:5
Y(i)=log(y(i));
x2(i)=x(i)^2;
xy(i)=x(i)*Y(i);
end
S_x=0,S_y=0,S_x2=0,S_xy=0;
printf('X\t Y=lny\t X^2\t XY\n\n');
for i=1:5
printf('%d\t %0.3f\t %d\t %0.3f\n',x(i),Y(i),x2(i),xy(i));
S_x=S_x+x(i);
S_y=S_y+Y(i);
S_x2=S_x2+x2(i);
S_xy=S_xy+xy(i);
end
printf('----------------------------------------------------------------------------------------------------------------------------\n\n')
printf('%d\t %0.3f\t %d\t %0.3f\t\n\n',S_x,S_y,S_x2,S_xy);
A1=((S_x/5)*S_xy-S_x*S_y)/((S_x/5)*S_x2-S_x^2);
A0=(S_y/5)-A1*(S_x/5);
a=exp(A0);
printf('y=%0.3fexp(%0.2fx)',a,A1); |
49cf3c609de70096631ee062676fa40ba89a3d73 | 449d555969bfd7befe906877abab098c6e63a0e8 | /62/CH3/EX3.6/ex_3_6.sce | c8ce95b972db928b71e517b990f91f658295f08c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex_3_6.sce | syms t s a
y=laplace(%e^(-a*t)-%e^(a*t))
disp(y,"X(s)=")
s1=%s;
//a>0
a=2;
t=-5:0.1:5;
x=%e^(-a*abs(t));
subplot(2,1,1)
plot(t,x)
subplot(2,1,2)
x=1/(s1+a)-1/(s1-a);
plzr(x)
//a<0
a=-0.5;
t=-5:0.1:5;
x=%e^(-a*abs(t));
figure
subplot(2,1,1)
plot(t,x)
subplot(2,1,2)
x=1/(s1+a)-1/(s1-a);
plzr(x)
disp("there is no region of convergence when a<0 hence no transform exists for a<0")
|
97d8d91896fa9e17e81f20fda194a996f9bdd435 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2165/CH1/EX1.9/1_9.sce | 6e41d2ad7ec3f69cf4647a2cc5ab53843f2d824d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 1_9.sce | clc
//initialisation of variables
v=10//ft^3
p=100//lb/in^2
p1=18//lb/in^2
v1=50//ft^3
n=log(p/p1)/log(5)
gama=1.4//air
//CALCULATIONS
W=[144*(p*v-p1*v1)]/(n-1)//ft lb
H=(gama-n)/(gama-1)*W//ft lb
E=W-H//ft lb
//RESULTS
printf('The heat supplied and the change of internal energy=% f ft lb',E)
|
f8c72f2087831141f8e2c2ad56ac222c033fd673 | 5ba2544f304e60e58fcb981a9e543cc526cb602a | /iView X SDK/Examples/NBS Presentation/Slideshow/Slideshow.sce | 7fcefdd7f302ed1b81757ad61f79d770808dcff5 | [] | no_license | air2310/cpp_rep | 24747ab9d55c17a00693ff7226c272ddf459edbe | c3464f08ae6431e64ee48b1c2a4c0539cc886189 | refs/heads/master | 2021-01-12T15:42:46.056782 | 2016-12-06T12:25:00 | 2016-12-06T12:25:00 | 71,864,975 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,425 | sce | Slideshow.sce | # -----------------------------------------------------------------------
#
# (c) Copyright 1997-2013, SensoMotoric Instruments GmbH
#
# Permission is hereby granted, free of charge, to any person or
# organization obtaining a copy of the software and accompanying
# documentation covered by this license (the "Software") to use,
# reproduce, display, distribute, execute, and transmit the Software,
# and to prepare derivative works of the Software, and to permit
# third-parties to whom the Software is furnished to do so, all subject
# to the following:
#
# The copyright notices in the Software and this entire statement,
# including the above license grant, this restriction and the following
# disclaimer, must be included in all copies of the Software, in whole
# or in part, and all derivative works of the Software, unless such
# copies or derivative works are solely in the form of
# machine-executable object code generated by a source language
# processor.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
# NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE
# DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER
# LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
# OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
# -----------------------------------------------------------------------
# Author:
# (C) 2013 Sensomotoric Instruments
#############################################################
# #
# before running this scenario please set #
# "Scenarios -> Stimulus Directory" to a path where all #
# stimuli used in this scenario reside #
# #
#############################################################
scenario = "Slideshow";
no_logfile = true;
active_buttons = 1;
button_codes = 1;
default_font_size = 24;
default_font = "Times New Roman";
default_background_color = 230, 230, 230;
# pcl file
pcl_file = "Slideshow.pcl";
begin;
picture {} default;
#############################################################
# #
# image definition #
# #
#############################################################
array {
bitmap { filename = "image01.jpg"; preload = false; };
bitmap { filename = "image02.jpg"; preload = false; };
bitmap { filename = "image03.jpg"; preload = false; };
} graphics;
trial {
trial_duration = forever;
trial_type = specific_response;
terminator_button = 1;
picture {
# placeholder - set by PCL
box { height = 1; width = 1; color = 0,0,0; };
x = 0; y = 0;
} pic1;
} trial1;
#calibration bitmap
picture
{
bitmap
{
filename = "black circle.bmp";
trans_src_color = 255,255,255;
};
x = 0;
y = 0;
} et_calibration;
# show error message if connection could not be established
picture{
text{
caption = "Could not establish connection to Eye Tracker \n\n\n Check if the Eye Tracker \n is running and the \n Network Settings are set correctly";
font_size = 20;
font_color = 20, 20, 20;
transparent_color = 0,0,0;
};
x = 0;
y = 0;
}connect_error;
# show accuracy message after the calibration has been validated
picture {
text {
caption = "Validation Results: \n\n Accuracy X: - \n Accuracy Y: -";
font_size = 20;
font_color = 20, 20, 20;
transparent_color = 0,0,0;
preload = false;
}accuracy_text;
x = 0;
y = 0;
}accuracy_picture;
# show error message if resolution is wrong
picture{
text{
caption = "Please change \n the screen resolution \n of your computer \n to 1280 x 1024 or 1680 x 1050";
font_size = 20;
font_color = 20, 20, 20;
transparent_color = 0,0,0;
};
x = 0;
y = 0;
}resolution_error;
# show end message if experiment has been finished
picture{
text{
caption = "End of Experiment";
font_size = 20;
font_color = 20, 20, 20;
transparent_color = 0,0,0;
};
x = 0;
y = 0;
}end_experiment;
picture{
text{
caption = "Try to acquire data...";
font_size = 20;
font_color = 20, 20, 20;
transparent_color = 0,0,0;
};
x = 0;
y = 0;
}data_acquisition;
|
bc5d75704cd155bf5db5d5b71b282237fd7307bb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1627/CH10/EX10.3/Ex10_3.sce | adab23125fcc80f2a338249221a04a126379f1b7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 248 | sce | Ex10_3.sce | clc
//initialisation of variables
a=45//deg
b=120//deg
r=1750//rpm
v=15//cm
p=1000//N.s/m^4
u1=15*10^-2//m
v1=0.5//m
//CALCULATIONS
U2=(2*%pi*r/60)*u1//m/s
V1=U2-[(v*v1)]//m/s
P=U2*V1//kPa
//RESULTS
printf('The pressure =% f kPa',P)
|
34786bb4185ea76ebb5974ec5da0fa04cdd4966d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2093/CH6/EX6.10/exa_6_10.sce | 083bd9d1fbb636b5a8d1ab8838df44d6a68b6bed | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 234 | sce | exa_6_10.sce | // Exa 6.10
clc;
clear;
close;
// Given data
R1= 220;// in kohm
R1=R1*10^3;// in ohm
R2=R1;// in ohm
C1= 250;// in pF
C1= C1*10^-12;// in F
C2=C1;// in F
f= 1/(2*%pi*R1*C1);
disp(f,"Frequency of oscilltions in Hz is : ")
|
e49d848eae978890910538d64f48bed02f93abfc | 449d555969bfd7befe906877abab098c6e63a0e8 | /1415/CH1/EX1.2.2/ex2.sce | d2daea230e36ab9810a057e00ee80fcb875daef2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,069 | sce | ex2.sce | //Example 2 Page 59
clc
clear
//creating C(x) function
function y=C(x)
y=100000+160*x-0.2*x^2
endfunction
//the variable cost is the part of the cost function that depends on x
VariableCost=poly([0 160 -0.2],'x','c')//variablecost polynomial
disp(VariableCost,'VariableCost in dollars=')
FixedCost=100000
disp(FixedCost,'FixedCost in dollars=')
x=poly(0,'x')//x polynomial creation
Rx=800*x//annual revence of x members
//for the profit we use the formula
Px=Rx-C(x)//displaying the P(x) value by subtracting C(x) from Rx
disp('P(x)=R(x)-C(x)')
disp(Px)
r=roots(Px)//finding the roots of the quadratic equation obtained in P(x)
disp(r)
disp('since members cannot be in negative value we consider the positive value')
x=[0 250]//taking random variables of x for graph
y=C(x)//function calling
plot(400,350000,x,y,'red')//plotting graph
//creating the P(x) function
function y=P(x)
y=-100000+640*x+0.2*x^2
endfunction
x=([0 150 350])//taking values of x for graph
y=P(x)
plot(x,y,'blue')//plotting graph
xtitle(' ','x','y');
|
9336a1cf28f442a18378b0c815b8f7db5b801d43 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3760/CH1/EX1.33/Ex1_33.sce | 4be6cb6f6f45cdd60085617e3eaeeac674f3e776 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 876 | sce | Ex1_33.sce | clc;
P=500000; // VA rating of transformer
E2=400; // rated secondary voltage
nmax=0.98; // maximum efficiency of transformer
l=80; // percentage of full load at which maximum efficiency occurs
ze2=4.5; // percentage impedance
pt=((1/nmax)-1)*P*(l/100); // total losses
pc=pt/2; // core loss = ohmic loss at maximum efficiency
poh=pc; // ohmic loss
pohl=poh*(100/l)^2; // full load ohmic losses
re2=(pohl/P)*100; // percentage resistance
xe2=sqrt(ze2^2-re2^2); // percentage leakage reactance
pfl=re2/ze2; // load power factor
vr=re2*pfl+xe2*sqrt(1-pfl^2); // voltage regulation
dv=(E2*vr)/100; // change in terminal voltage
V2=E2-dv; // Secondary terminal voltage
printf('Load power factor at which secondary terminal voltage is minimum is %f\n',pfl);
printf('Secondary terminal voltage is %f v',V2);
// answer for total losses is given wrong in the book
|
4fc8825829e48502f8992ed10ecdfacb12a4d705 | 449d555969bfd7befe906877abab098c6e63a0e8 | /858/CH4/EX4.14/example_14.sce | 4cf05a66026236d6a8802174b1731475ea334ac1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 452 | sce | example_14.sce | clc
clear
printf("example 4.14 page number 151\n\n")
//to find the discharge pressure
d=0.025 //in m
u=3 //in m/s
density=894 //in kg/m3
viscosity=6.2*10^4 //in Pa-s
Re=(u*d*density)/viscosity;
f=0.0045;
L=50;
delta_P=2*f*density*u^2*(L/d)
printf("frictional head loss = %f kPa",delta_P/1000)
required_P=25*density*9.8;
total_head=delta_P+required_P;
printf("\n\ntotal pressure head = %f bar",total_head/10^5)
|
bab86da7145e80f44c7492786f48d58fa4af04da | 449d555969bfd7befe906877abab098c6e63a0e8 | /2417/CH3/EX3.7/Ex3_7.sce | e007560b0ca41feb3fd5c386b6d713a7fcd38831 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 447 | sce | Ex3_7.sce | clear;
clc;
printf("\t\t\tProblem Number 3.7\n\n\n");
// Chapter 3 : The First Law Of Thermodynamics
// Problem 3.7 (page no. 97)
// Solution
Rho=62.4 //Unit:lbm/ft^3 //the density of the fluid
V=100 //Unit:ft/s //Velocity of fluid
d=1 //Unit:in //Diameter
//1 ft^2=144 in^2 //A=(%pi/4)*d^2
A=(%pi*d^2)/(4*144) //Unit:ft^2 //area
m=Rho*A*V; //Unit:lbm/s //mass rate of flow per unit time
printf("Mass flow rate is %f lbm/s\n",m);
|
79a9500369f1963ba2d3405c9a58d7ff6648a388 | 66106821c3fd692db68c20ab2934f0ce400c0890 | /test/disassembler/brvs.instr.tst | bb4ab8eb3b541a54916dbc98466b0cfa26fc0dc4 | [] | no_license | aurelf/avrora | 491023f63005b5b61e0a0d088b2f07e152f3a154 | c270f2598c4a340981ac4a53e7bd6813e6384546 | refs/heads/master | 2021-01-19T05:39:01.927906 | 2008-01-27T22:03:56 | 2008-01-27T22:03:56 | 4,779,104 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,670 | tst | brvs.instr.tst | ; @Harness: disassembler
; @Result: PASS
section .text size=0x00000100 vma=0x00000000 lma=0x00000000 offset=0x00000034 ;2**0
section .data size=0x00000000 vma=0x00000000 lma=0x00000000 offset=0x00000134 ;2**0
start .text:
label 0x00000000 ".text":
0x0: 0xfb 0xf1 brvs .+126 ; 0x80
0x2: 0xf3 0xf1 brvs .+124 ; 0x80
0x4: 0xeb 0xf1 brvs .+122 ; 0x80
0x6: 0xe3 0xf1 brvs .+120 ; 0x80
0x8: 0xdb 0xf1 brvs .+118 ; 0x80
0xa: 0xd3 0xf1 brvs .+116 ; 0x80
0xc: 0xcb 0xf1 brvs .+114 ; 0x80
0xe: 0xc3 0xf1 brvs .+112 ; 0x80
0x10: 0xbb 0xf1 brvs .+110 ; 0x80
0x12: 0xb3 0xf1 brvs .+108 ; 0x80
0x14: 0xab 0xf1 brvs .+106 ; 0x80
0x16: 0xa3 0xf1 brvs .+104 ; 0x80
0x18: 0x9b 0xf1 brvs .+102 ; 0x80
0x1a: 0x93 0xf1 brvs .+100 ; 0x80
0x1c: 0x8b 0xf1 brvs .+98 ; 0x80
0x1e: 0x83 0xf1 brvs .+96 ; 0x80
0x20: 0x7b 0xf1 brvs .+94 ; 0x80
0x22: 0x73 0xf1 brvs .+92 ; 0x80
0x24: 0x6b 0xf1 brvs .+90 ; 0x80
0x26: 0x63 0xf1 brvs .+88 ; 0x80
0x28: 0x5b 0xf1 brvs .+86 ; 0x80
0x2a: 0x53 0xf1 brvs .+84 ; 0x80
0x2c: 0x4b 0xf1 brvs .+82 ; 0x80
0x2e: 0x43 0xf1 brvs .+80 ; 0x80
0x30: 0x3b 0xf1 brvs .+78 ; 0x80
0x32: 0x33 0xf1 brvs .+76 ; 0x80
0x34: 0x2b 0xf1 brvs .+74 ; 0x80
0x36: 0x23 0xf1 brvs .+72 ; 0x80
0x38: 0x1b 0xf1 brvs .+70 ; 0x80
0x3a: 0x13 0xf1 brvs .+68 ; 0x80
0x3c: 0x0b 0xf1 brvs .+66 ; 0x80
0x3e: 0x03 0xf1 brvs .+64 ; 0x80
0x40: 0xfb 0xf0 brvs .+62 ; 0x80
0x42: 0xf3 0xf0 brvs .+60 ; 0x80
0x44: 0xeb 0xf0 brvs .+58 ; 0x80
0x46: 0xe3 0xf0 brvs .+56 ; 0x80
0x48: 0xdb 0xf0 brvs .+54 ; 0x80
0x4a: 0xd3 0xf0 brvs .+52 ; 0x80
0x4c: 0xcb 0xf0 brvs .+50 ; 0x80
0x4e: 0xc3 0xf0 brvs .+48 ; 0x80
0x50: 0xbb 0xf0 brvs .+46 ; 0x80
0x52: 0xb3 0xf0 brvs .+44 ; 0x80
0x54: 0xab 0xf0 brvs .+42 ; 0x80
0x56: 0xa3 0xf0 brvs .+40 ; 0x80
0x58: 0x9b 0xf0 brvs .+38 ; 0x80
0x5a: 0x93 0xf0 brvs .+36 ; 0x80
0x5c: 0x8b 0xf0 brvs .+34 ; 0x80
0x5e: 0x83 0xf0 brvs .+32 ; 0x80
0x60: 0x7b 0xf0 brvs .+30 ; 0x80
0x62: 0x73 0xf0 brvs .+28 ; 0x80
0x64: 0x6b 0xf0 brvs .+26 ; 0x80
0x66: 0x63 0xf0 brvs .+24 ; 0x80
0x68: 0x5b 0xf0 brvs .+22 ; 0x80
0x6a: 0x53 0xf0 brvs .+20 ; 0x80
0x6c: 0x4b 0xf0 brvs .+18 ; 0x80
0x6e: 0x43 0xf0 brvs .+16 ; 0x80
0x70: 0x3b 0xf0 brvs .+14 ; 0x80
0x72: 0x33 0xf0 brvs .+12 ; 0x80
0x74: 0x2b 0xf0 brvs .+10 ; 0x80
0x76: 0x23 0xf0 brvs .+8 ; 0x80
0x78: 0x1b 0xf0 brvs .+6 ; 0x80
0x7a: 0x13 0xf0 brvs .+4 ; 0x80
0x7c: 0x0b 0xf0 brvs .+2 ; 0x80
0x7e: 0x03 0xf0 brvs .+0 ; 0x80
0x80: 0xfb 0xf3 brvs .-2 ; 0x80
0x82: 0xf3 0xf3 brvs .-4 ; 0x80
0x84: 0xeb 0xf3 brvs .-6 ; 0x80
0x86: 0xe3 0xf3 brvs .-8 ; 0x80
0x88: 0xdb 0xf3 brvs .-10 ; 0x80
0x8a: 0xd3 0xf3 brvs .-12 ; 0x80
0x8c: 0xcb 0xf3 brvs .-14 ; 0x80
0x8e: 0xc3 0xf3 brvs .-16 ; 0x80
0x90: 0xbb 0xf3 brvs .-18 ; 0x80
0x92: 0xb3 0xf3 brvs .-20 ; 0x80
0x94: 0xab 0xf3 brvs .-22 ; 0x80
0x96: 0xa3 0xf3 brvs .-24 ; 0x80
0x98: 0x9b 0xf3 brvs .-26 ; 0x80
0x9a: 0x93 0xf3 brvs .-28 ; 0x80
0x9c: 0x8b 0xf3 brvs .-30 ; 0x80
0x9e: 0x83 0xf3 brvs .-32 ; 0x80
0xa0: 0x7b 0xf3 brvs .-34 ; 0x80
0xa2: 0x73 0xf3 brvs .-36 ; 0x80
0xa4: 0x6b 0xf3 brvs .-38 ; 0x80
0xa6: 0x63 0xf3 brvs .-40 ; 0x80
0xa8: 0x5b 0xf3 brvs .-42 ; 0x80
0xaa: 0x53 0xf3 brvs .-44 ; 0x80
0xac: 0x4b 0xf3 brvs .-46 ; 0x80
0xae: 0x43 0xf3 brvs .-48 ; 0x80
0xb0: 0x3b 0xf3 brvs .-50 ; 0x80
0xb2: 0x33 0xf3 brvs .-52 ; 0x80
0xb4: 0x2b 0xf3 brvs .-54 ; 0x80
0xb6: 0x23 0xf3 brvs .-56 ; 0x80
0xb8: 0x1b 0xf3 brvs .-58 ; 0x80
0xba: 0x13 0xf3 brvs .-60 ; 0x80
0xbc: 0x0b 0xf3 brvs .-62 ; 0x80
0xbe: 0x03 0xf3 brvs .-64 ; 0x80
0xc0: 0xfb 0xf2 brvs .-66 ; 0x80
0xc2: 0xf3 0xf2 brvs .-68 ; 0x80
0xc4: 0xeb 0xf2 brvs .-70 ; 0x80
0xc6: 0xe3 0xf2 brvs .-72 ; 0x80
0xc8: 0xdb 0xf2 brvs .-74 ; 0x80
0xca: 0xd3 0xf2 brvs .-76 ; 0x80
0xcc: 0xcb 0xf2 brvs .-78 ; 0x80
0xce: 0xc3 0xf2 brvs .-80 ; 0x80
0xd0: 0xbb 0xf2 brvs .-82 ; 0x80
0xd2: 0xb3 0xf2 brvs .-84 ; 0x80
0xd4: 0xab 0xf2 brvs .-86 ; 0x80
0xd6: 0xa3 0xf2 brvs .-88 ; 0x80
0xd8: 0x9b 0xf2 brvs .-90 ; 0x80
0xda: 0x93 0xf2 brvs .-92 ; 0x80
0xdc: 0x8b 0xf2 brvs .-94 ; 0x80
0xde: 0x83 0xf2 brvs .-96 ; 0x80
0xe0: 0x7b 0xf2 brvs .-98 ; 0x80
0xe2: 0x73 0xf2 brvs .-100 ; 0x80
0xe4: 0x6b 0xf2 brvs .-102 ; 0x80
0xe6: 0x63 0xf2 brvs .-104 ; 0x80
0xe8: 0x5b 0xf2 brvs .-106 ; 0x80
0xea: 0x53 0xf2 brvs .-108 ; 0x80
0xec: 0x4b 0xf2 brvs .-110 ; 0x80
0xee: 0x43 0xf2 brvs .-112 ; 0x80
0xf0: 0x3b 0xf2 brvs .-114 ; 0x80
0xf2: 0x33 0xf2 brvs .-116 ; 0x80
0xf4: 0x2b 0xf2 brvs .-118 ; 0x80
0xf6: 0x23 0xf2 brvs .-120 ; 0x80
0xf8: 0x1b 0xf2 brvs .-122 ; 0x80
0xfa: 0x13 0xf2 brvs .-124 ; 0x80
0xfc: 0x0b 0xf2 brvs .-126 ; 0x80
0xfe: 0x03 0xf2 brvs .-128 ; 0x80
start .data:
|
c3580ff879ddb9bbd1bcb45e9cb708a5ab8769b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1871/CH3/EX3.7/Ch03Ex7.sce | 1afcd6f155db24fe36e91d03ae9fbeca8f591b19 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,714 | sce | Ch03Ex7.sce | // Scilab code Ex3.7 : Pg:102 (2008)
clc;clear;
F = 9.0; // Focal length of the eye-piece, cm
// As F = f1*f2/(f1 + f2 - d) and f1 = f; f2 = f; d = 2/3*f, solving for f
f = poly(0, 'f');
f = roots(f*f-F*(f+f-2/3*f)); // Focal length of the eye-lens, cm
d = 2/3*f(1); // Distance of separation of two lenses, cm
f1 = f(1); // Focal length of the first plano-convex lens, cm
f2 = f(1); // Focal length of the second plano-convex lens, cm
alpha = F*d/f2; // Distance of first principal point from the field lens L1, cm
bita = -F*d/f1; // Distance of second principal point from the field lens L2, cm
L1F1 = -F*(1-d/f2); // Distance of first focal point from the lens L1, cm
L2F2 = F*(1-d/f1); // Distance of second focal point from the lens L2, cm
printf("\nThe focal lengths of the plano-convex lenses are %1.0f cm and %2.0f cm", f1, f2);
printf("\nThe distance between the lenses = %1.0f cm", d);
printf("\nThe distance of first principal point from the field lens L1 = %1.0f cm", alpha);
printf("\nThe distance of second principal point from the field lens L2 = %1.0f cm", bita);
printf("\nThe distance of first focal point from the field lens L1 = %1.0f cm", L1F1);
printf("\nThe distance of second focal point from the field lens L2 = %1.0f cm", L2F2);
// Result
// The focal lengths of the plano-convex lenses are 12 cm and 12 cm
// The distance between the lenses = 8 cm
// The distance of first principal point from the field lens L1 = 6 cm
// The distance of second principal point from the field lens L2 = -6 cm
// The distance of first focal point from the field lens L1 = -3 cm
// The distance of second focal point from the field lens L2 = 3 cm |
e040cfd67229c8659a23263ee5ba32a7783ecfc5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /534/CH12/EX12.1/12_1_Plate_surface.sce | 953567f5f547c7421b00c87c247f32f3ae0063bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,660 | sce | 12_1_Plate_surface.sce | clear;
clc;
printf('FUNDAMENTALS OF HEAT AND MASS TRANSFER \n Incropera / Dewitt / Bergman / Lavine \n EXAMPLE 12.1 Page 731 \n')// Example 12.1
// a) Intensity of emission in each of the three directions
// b) Solid angles subtended by the three surfaces
// c) Rate at which radiation is intercepted by the three surfaces
A1 = .001 ;//[m^2] Area of emitter
In = 7000 ;//[W/m^2.Sr] Intensity of radiation in normal direction
A2 = .001 ;//[m^2] Area of other intercepting plates
A3 = A2 ;//[m^2] Area of other intercepting plates
A4 = A2 ;//[m^2] Area of other intercepting plates
r = .5 ;//[m] Distance of each plate from emitter
theta1 = 60 ;//[deg] Angle between surface 1 normal & direction of radiation to surface 2
theta2 = 30 ;//[deg] Angle between surface 2 normal & direction of radiation to surface 1
theta3 = 45 ;//[deg] Angle between surface 1 normal & direction of radiation to surface 4
//From equation 12.2
w31 = A3/r^2;
w41 = w31;
w21 = A2*cos(theta2*0.0174532925)/r^2;
//From equation 12.6
q12 = In*A1*cos(theta1*0.0174532925)*w21;
q13 = In*A1*cos(0)*w31;
q14 = In*A1*cos(theta3*0.0174532925)*w41;
printf("\n (a) As Intensity of emitted radiation is independent of direction, for each of the three directions I = %i W/m^2.sr \n\n (b) By the Three Surfaces\n Solid angles subtended Rate at which radiation is intercepted \n w4-1 = %.2e sr q1-4 = %.1e W \n w3-1 = %.2e sr q1-3 = %.1e W\n w2-1 = %.2e sr q1-2 = %.1e W ",In,w41,q14,w31,q13,w21,q12);
//END
|
6831b3b305d543edff806a38f45dbbb3e89b6c75 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2267/CH7/EX7.16/ex7_16.sce | 6db372c9304db955694a7f3b40ac7b4b17d0909b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 417 | sce | ex7_16.sce | //Part A Chapter 7 Example 16
clc;
clear;
close;
mg=40;//kg
mf=2.2;//kg
p1=1.47;//MPa
T=120;//degree C
p2=107.88;//kPa
cv=2.09;//kJ/kg.K
Td=T-101.8;//degree C(DegreeSuperHeat)
hf=2673.95;//kJ/kg
h=hf+Td*cv;//kJ/kg
hf2=918.926;//kJ/kg
hfg2=1864.28;//kJ/kg
x2=(h-hf2)/hfg2;//dryness fraction
x1=(mg-mf)/mg;//dryness fraction
x=x1*x2;//overall dryness fraction
disp("Dryness fraction is "+string(x));
|
e87f12ef7261f8a0fccd1c5d8321b43accfabc1c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH2/EX1.2.17/Ex1_2_17.sce | 624bf6681dbfa5c051950f7c9f39f0af7611c7a1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 451 | sce | Ex1_2_17.sce | //Section-1,Example-4,Page no.-AC.205
//To find the air required for the perfect combustion of 1 m^3 of the given gas.
clc;
T=0.22
L_O2=0.02
Net_O2=0.2
Plus_CO2=0.05
T_CO2=T+L_O2+Plus_CO2
T_N2=1.6
T_O2=Net_O2*(40/100)
T_W=T_CO2+T_N2+T_O2
M_Q=Net_O2*(100/21)
P_CO2=(T_CO2/T_W)*100
disp(P_CO2,'Percentage composition of CO_2')
P_N2=(T_N2/T_W)*100
disp(P_N2,'Percentage composition of N_2')
P_O2=(T_O2/T_W)*100
disp(P_O2,'Percentage composition of O_2')
|
8f5c4c3ffc444bc0995046aebcd275c059d1dedc | 449d555969bfd7befe906877abab098c6e63a0e8 | /182/CH7/EX7.6/example7_6.sce | 561118190fa8a1e970187c3820b60107a33bca67 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 887 | sce | example7_6.sce | // to calculate the minimum change detectable by the bridge
// example 7-6 in page 172
clc;
//Given data
P=3.5e+3; Q=7e+3; S=4e+3; R=2e+3; // bridge arm resistances in ohm
Eb=10;// supply voltage in volt
Ig=1e-6;//galvano meter reading in ampere
rg=2.5e+3;//galvanometer resistance=2.5 K-ohm
//calculations
r=((P*R)/(P+R))+((Q*S)/(Q+S));// internal resistance of the bridge in ohm
dVR=Ig*(r+rg);// open-circuit galvano meter voltage i,e VR-VS in volt
VR=Eb*R/(R+P);// voltage across resistance R in volt
VP=Eb-(VR+dVR);//voltage across resistance P in volt
IR=VP/P;// current through P which is equal to current through R in ampere
dR=((VR+dVR)/IR)-R;//Change in R value that the device can detect in ohm
printf("the minimum change in R which is detected by the bridge is %f ohm\n",dR);
//result
// the minimum change in R which is detected by the bridge is 5.466141 ohm |
be7f243d5e9035f0d0532b9b216e0ba16f3cd558 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1535/CH8/EX8.10/Ch08Ex10.sci | cb1c55c62e5380c278cc7efc4de04a3585da8a73 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 345 | sci | Ch08Ex10.sci | // Scilab Code Ex8.10: Page-175 (2010)
c = 3e+008; // Speed of light in vacuum, m/s
dE = 4e+026; // Energy radiated per second my the sun, J/s
dm = dE/c^2; // Rate of decrease of mass of sun, kg/s
printf("\nThe rate of decrease of mass of sun = %4.2e kg/s", dm);
// Result
// The rate of decrease of mass of sun = 4.44e+009 kg/s |
75f69fb092138889e970447acbd3fc30bcd46cfb | 449d555969bfd7befe906877abab098c6e63a0e8 | /3739/CH2/EX2.9/EX2_9.sce | e7ff25591ff2c0cd026cfd9e11a8febc6c033c50 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 685 | sce | EX2_9.sce | //Chapter 2, Example 2.9, page 47
clc
//Initialisation
FSL=128 //FSL in dB
Lb=135 //Sum of FSL and medium loss Lm
Lc=5
Gt=30 //transmitter gain in dB
Gr=30 //reciever gain in dB
Pr=-60 //received signal level
//Calculation
Lm=Lb-FSL //medium loss in dB
Lm1=10**(Lm*10**-1) //medium loss
Pt=Lc+Lb-Gt-Gr+Pr //power in dBm
Pt1=10**(Pt*10**-1) //power in watt
//Result
printf("Medium Loss = %d",Lm1)
printf("\nPt = %.1f mW",(Pt1))
|
7001af9a8d85eee1c6298a9e5d23f8db64c62042 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2699/CH3/EX3.27/Ex3_27.sce | 5fbc5d59d2e6374800740d79226e85eb5fb6cf72 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 477 | sce | Ex3_27.sce | //EX3_27 PG-3.60
clc
Il=12e-3;//load current
Es=200;//rms voltage
Rf=0.02;//riplle factor
Esm=sqrt(2)*Es;//peak value of input voltage
Edc=2*Esm/%pi;
Idc=Il;
Rl=Edc/Idc;//load resistance
f=50;//frequency of the supply in Hz
disp(" For a half wave rectifier Ripple factor=1/(2*sqrt(3)*f*C*Rl)")
C=(4*sqrt(3)*f*Rf*Rl)^(-1);//filter capacitor
printf("\n Therefore minimum value of capacitance required is %.3f microF",C*1e6)
//C=9.619 microF not 9.622 microF
|
4d6f2aed22442247e04458f92c582c345f745bb8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1895/CH8/EX8.20/EXAMPLE8_20.SCE | 3f5c2087352612da3a6741eb992bbff4842fab15 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 718 | sce | EXAMPLE8_20.SCE | //ANALOG AND DIGITAL COMMUNICATION
//BY Dr.SANJAY SHARMA
//CHAPTER 7
//WAVEFORM CODING TECHNIQUES
clear all;
clc;
printf("EXAMPLE 8.20(PAGENO 415)");
//given
SbyN_0dB = 40//signal to noise ratio in dB
SbyN_0 = exp((SbyN_0dB/10)*log(10))//signal to noise ratio
q = sqrt((2 / 3) * (SbyN_0));//quantizing level
v = log2(q)//number of binary bits
q_1 = 2^v//number of levels required
SbyN_dB1 = 1.76 + 6.02*v//output signal-to-quantizing noise ratio in dB
//results
printf("\n\nNumber of required levels = %.2f ",v);
printf("\n\nOutput signal-to-quantizing noise ratio = %.2f dB",SbyN_dB1);
printf("\n\nNote : In the textbook they took number of levels as approximation so we get change\n in SbyN")
|
9526ab43dd795fda09e57abfbd4e0296d8e2ec84 | 449d555969bfd7befe906877abab098c6e63a0e8 | /854/CH11/EX11.8/Example11_8.sce | fd0c52c59d50cb2f34d2c46dd2dfb07758e1f606 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,183 | sce | Example11_8.sce | //clear//
//Caption:Program to find the input impedance and power delivered to
//the load
//Example11.8
//page363
clc;
close;
ZR1 = 300; //input impedance of first receiver
ZR2 = 300; //input impedance of second receiver
Zo = ZR1; //characteristic impedance = 300 ohm
Zc = -%i*300;//capacitive impedance
L = 80e-02;//length = 80 cm
Lambda = 1; //wavelength = 1m
Vth = 60; // voltage 300 volts
Zth = Zo;
ZL1 = (ZR1*ZR2)/(ZR1+ZR2);
ZL = (ZL1*Zc)/(ZL1+Zc); //net load impedane
T = (ZL-ZR2)/(ZL+ZR2);//reflection coefficient
[R,teta1] = polar(T); //reflection coefficient in polar form
teta1 = real(teta1)*57.3;//teta value in degrees
S = (1+R)/(1-R); //voltage standing wave ratio
EL = 2*%pi*L/Lambda; //electrical length in degrees
Zin = Zo*(ZL*cos(EL)+%i*Zo*sin(EL))/(Zo*cos(EL)+%i*ZL*sin(EL));
disp(Zin,'Input Impedance in ohms Zin =')
Is = Vth/(Zth+Zin);//source current in amps
[Is,teta2] = polar(Is);//source current in polar form
Pin = (1/2)*(Is^2)*real(Zin);
PL = Pin; //for lossless line
disp(Pin,'Power delivered to a loss less line in watss PL =')
//Result
//Input Impedance in ohms Zin = 755.49551 - 138.46477i
// Power delivered to a loss less line in watss PL = 1.2 |
3f8f02de0c45620f8122bb520dbe837dbd98b925 | 683d2599aa2be1a5f74b928d545b20e7ea656cd1 | /microdaq/macros/microdaq_blocks/mdaq_mem_read.sci | b32039b714a65c08ca2a3ec78839b65664f6a26e | [
"BSD-3-Clause"
] | permissive | pj1974/Scilab | 5c7fb67d5cae5ac0cdf78e3dd66b97ba50f9fc95 | cd54f1bd8502d6914ad6ff5271ca0e6e3d323935 | refs/heads/master | 2020-12-25T17:12:56.934984 | 2015-10-06T17:16:11 | 2015-10-06T17:16:11 | 41,862,822 | 0 | 0 | null | 2015-09-03T14:00:56 | 2015-09-03T14:00:56 | null | UTF-8 | Scilab | false | false | 3,382 | sci | mdaq_mem_read.sci | function [x,y,typ] = mdaq_mem_read(job,arg1,arg2)
mem_write_desc = ["This block reads data from MicroDAQ memory.";
"Block with mdaq_mem_set function can be used to";
"change Standalone and Ext model parameters";
"";
"Set block parameters:"];
x=[];y=[];typ=[];
select job
case 'set' then
x=arg1
model=arg1.model;
graphics=arg1.graphics;
exprs=graphics.exprs;
while %t do
try
[ok,start_idx, data_size, vec_size,do_increment,exprs]=..
scicos_getvalue(mem_write_desc,..
['Start index:';
'Size:';
'Vector size:';
'Periodic:'],..
list('vec',1,'vec',1,'vec',1,'vec',1),exprs)
catch
[ok,start_idx, data_size,vec_size,do_increment,exprs]=..
getvalue(mem_write_desc,..
['Start index:';
'Size';
'Vector size:';
'Periodic:'],..
list('vec',1,'vec',1,'vec',1,'vec',1),exprs)
end;
if ~ok then
break
end
//~16MB = 16 000 000B = 4 000 000 floats
max_index = 4000000;
if start_idx < 1 | start_idx > max_index then
ok = %f;
message("Incorrect memory start index - use index from 1 to "+string(max_index));
end
if vec_size > 10000 | vec_size < 1 then
ok = %f;
message("Wrong vector size - use 10000 max!");
end
size_mod = modulo(data_size, vec_size)
if size_mod <> 0 then
ok = %f;
message("Incorrect size. Size is not multiple of array size!");
end
if data_size < 1 | data_size > (max_index-start_idx) then
ok = %f;
message("Incorrect size (max "+string(max_index-start_idx)+")");
end
if do_increment > 1 | do_increment < 0 then
ok = %f;
message("Use values 0 or 1 to set increment option.");
end
if ok then
[model,graphics,ok] = check_io(model,graphics, [], vec_size, 1, []);
graphics.exprs = exprs;
model.rpar = [];
model.ipar = [(start_idx-1);vec_size;do_increment;data_size];
model.dstate = [];
x.graphics = graphics;
x.model = model;
break
end
end
case 'define' then
start_idx = 1;
vec_size = 1;
data_size = 100;
do_increment = 0;
model=scicos_model()
model.sim=list('mdaq_mem_read_sim',5)
model.in =[]
model.out=vec_size
model.out2=1
model.outtyp=1
model.evtin=1
model.rpar=[];
model.ipar=[(start_idx-1);vec_size;do_increment;data_size]
model.dstate=[];
model.blocktype='d'
model.dep_ut=[%t %f]
exprs=[sci2exp(start_idx);sci2exp(data_size);sci2exp(vec_size);sci2exp(do_increment)]
gr_i=['xstringb(orig(1),orig(2),['''' ; ],sz(1),sz(2),''fill'');']
x=standard_define([4 3],model,exprs,gr_i)
x.graphics.in_implicit=[];
x.graphics.exprs=exprs;
end
endfunction
|
325dd08e71a00ab52fd7a0eb30bdb8fd3ce57969 | 717ddeb7e700373742c617a95e25a2376565112c | /1766/CH4/EX4.11/EX4_11.sce | 2e0d94c2ba57469b1677cc2bc2f7b326616bb11a | [] | 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 | 864 | sce | EX4_11.sce | clc;funcprot(0);......//Example 4.11
//Initialization of variables
L=0.05;.........//Distance between 2 verticle plates in m
L1=1;...........//Length of the plate in m
W=1;...........//
Tw=100;........//Temperature of hot plate in degrees celcius
Ta=20;.............//Temperature of cold plate in degrees celcius
v=18.97*10^-6;.......//Viscosity in m^2/s
K=28.96;.......//Thermal conductivity in W/mK
g=9.8;....//Gravitational constant
Pr=0.696;......//Prandlt no
//Calculations
Tf=(Tw+Ta)/2;.........//Film temperature in K
B=1/(Tf+273);........//Temp inverse in K^-1
Gr=(g*B*(Tw-Ta)*L*L*L)/(v^2);.......//Grashoff No
Nu=0.42*(Gr*Pr)^0.25*(Pr)^0.012*(20)^-0.3;............//Nusselt no
h=(Nu*K)/(L);.........//Heat transfer co-efficient in W/m^2 K
Q=h*(L1*W)*(Tw-Ta);.........//Rate of heat loss in W
disp(Q/1000,"Rate of heat transfer in kW:")
|
9a874284426d1542cbc5ce3262ad36697a15f005 | 931df7de6dffa2b03ac9771d79e06d88c24ab4ff | /OW McCoy Dodge.sce | bc215e022c0b5b40e6fd519e88432d486a6556f7 | [] | no_license | MBHuman/Scenarios | be1a722825b3b960014b07cda2f12fa4f75c7fc8 | 1db6bfdec8cc42164ca9ff57dd9d3c82cfaf2137 | refs/heads/master | 2023-01-14T02:10:25.103083 | 2020-11-21T16:47:14 | 2020-11-21T16:47:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 30,336 | sce | OW McCoy Dodge.sce | Name=OW McCoy Dodge
PlayerCharacters=McCoy
BotCharacters=McCoy Bot.bot
IsChallenge=true
Timelimit=60.0
PlayerProfile=McCoy
AddedBots=McCoy Bot.bot
PlayerMaxLives=0
BotMaxLives=0
PlayerTeam=2
BotTeams=1
MapName=horizbounce.map
MapScale=2.5
BlockProjectilePredictors=true
BlockCheats=true
InvinciblePlayer=true
InvincibleBots=true
Timescale=1.0
BlockHealthbars=false
TimeRefilledByKill=0.0
ScoreToWin=1000.0
ScorePerDamage=3.0
ScorePerKill=0.0
ScorePerMidairDirect=0.0
ScorePerAnyDirect=0.0
ScorePerTime=0.0
ScoreLossPerDamageTaken=0.0
ScoreLossPerDeath=0.0
ScoreLossPerMidairDirected=0.0
ScoreLossPerAnyDirected=0.0
ScoreMultAccuracy=false
ScoreMultDamageEfficiency=false
ScoreMultKillEfficiency=false
GameTag=Overwatch, Fortnite, Quake
WeaponHeroTag=Tracking, LG
DifficultyTag=4
AuthorsTag=Hud
BlockHitMarkers=false
BlockHitSounds=false
BlockMissSounds=true
BlockFCT=false
Description=McCoy 1v1 Practice with movement scoring
GameVersion=1.0.8.0
ScorePerDistance=0.0
MBSEnable=true
MBSTime1=0.08
MBSTime2=1.0
MBSTime3=1.0
MBSTime1Mult=90.0
MBSTime2Mult=150.0
MBSTime3Mult=150.0
MBSFBInstead=false
MBSRequireEnemyAlive=false
[Aim Profile]
Name=Default
MinReactionTime=0.3
MaxReactionTime=0.4
MinSelfMovementCorrectionTime=0.001
MaxSelfMovementCorrectionTime=0.05
FlickFOV=30.0
FlickSpeed=1.5
FlickError=15.0
TrackSpeed=3.5
TrackError=3.5
MaxTurnAngleFromPadCenter=75.0
MinRecenterTime=0.3
MaxRecenterTime=0.5
OptimalAimFOV=30.0
OuterAimPenalty=1.0
MaxError=40.0
ShootFOV=15.0
VerticalAimOffset=0.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[Bot Profile]
Name=McCoy Bot
DodgeProfileNames=Long Strafes Jumping;Short Strafes Jumping;Mimic;Circle Strafe
DodgeProfileWeights=2.0;1.0;3.0;2.0
DodgeProfileMaxChangeTime=3.0
DodgeProfileMinChangeTime=0.1
WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0
AimingProfileNames=Default;Default;Default;Default;Default;Default;Default;Default
WeaponSwitchTime=3.0
UseWeapons=true
CharacterProfile=McCoy
SeeThroughWalls=false
NoDodging=false
NoAiming=false
[Character Profile]
Name=McCoy
MaxHealth=200.0
WeaponProfileNames=Six Shooter;;;;;;;
MinRespawnDelay=1.0
MaxRespawnDelay=5.0
StepUpHeight=30.0
CrouchHeightModifier=0.69
CrouchAnimationSpeed=5.0
CameraOffset=X=0.000 Y=0.000 Z=0.000
HeadshotOnly=false
DamageKnockbackFactor=1.0
MovementType=Base
MaxSpeed=488.888885
MaxCrouchSpeed=270.0
Acceleration=10000.0
AirAcceleration=16000.0
Friction=100.0
BrakingFrictionFactor=0.0
JumpVelocity=270.0
Gravity=1.0
AirControl=0.16
CanCrouch=true
CanPogoJump=false
CanCrouchInAir=false
CanJumpFromCrouch=true
EnemyBodyColor=X=0.778 Y=0.000 Z=0.000
EnemyHeadColor=X=1.000 Y=0.265 Z=0.000
TeamBodyColor=X=0.000 Y=0.000 Z=0.787
TeamHeadColor=X=1.000 Y=0.265 Z=0.000
BlockSelfDamage=true
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=true
AirJumpCount=0
AirJumpVelocity=800.0
MainBBType=Cylindrical
MainBBHeight=120.0
MainBBRadius=20.0
MainBBHasHead=true
MainBBHeadRadius=12.5
MainBBHeadOffset=-12.5
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=120.0
ProjBBRadius=20.0
ProjBBHasHead=true
ProjBBHeadRadius=12.5
ProjBBHeadOffset=-12.5
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.5
JetpackFullFuelTime=1000.0
JetpackFuelIncPerSec=100.0
JetpackFuelRegensInAir=true
JetpackThrust=6000.0
JetpackMaxZVelocity=600.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=Rush.abilmov;Stun Gren.abilwep;;Melee.abilmelee
HideWeapon=false
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=0.9
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.5
AllowBufferedJumps=true
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=0.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=2048.0
VerticalSpawnOffset=0.0
SpawnXOffset=0.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
[Dodge Profile]
Name=Long Strafes Jumping
MaxTargetDistance=1245.901611
MinTargetDistance=373.770477
ToggleLeftRight=true
ToggleForwardBack=false
MinLRTimeChange=0.5
MaxLRTimeChange=1.5
MinFBTimeChange=0.2
MaxFBTimeChange=0.5
DamageReactionChangesDirection=false
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=0.0
DamageReactionResetTimer=0.1
JumpFrequency=0.0
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Ignore
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.125
BlockedMovementReactionMax=0.2
[Dodge Profile]
Name=Short Strafes Jumping
MaxTargetDistance=1245.901611
MinTargetDistance=373.770477
ToggleLeftRight=true
ToggleForwardBack=false
MinLRTimeChange=0.2
MaxLRTimeChange=0.5
MinFBTimeChange=0.2
MaxFBTimeChange=0.5
DamageReactionChangesDirection=false
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=0.0
DamageReactionResetTimer=0.1
JumpFrequency=0.0
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Ignore
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.5
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.125
BlockedMovementReactionMax=0.2
[Dodge Profile]
Name=Mimic
MaxTargetDistance=1245.901611
MinTargetDistance=373.770477
ToggleLeftRight=true
ToggleForwardBack=false
MinLRTimeChange=0.2
MaxLRTimeChange=0.5
MinFBTimeChange=0.2
MaxFBTimeChange=0.5
DamageReactionChangesDirection=true
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=0.0
DamageReactionResetTimer=0.1
JumpFrequency=0.5
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Mimic
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.125
BlockedMovementReactionMax=0.2
[Dodge Profile]
Name=Circle Strafe
MaxTargetDistance=1245.901611
MinTargetDistance=373.770477
ToggleLeftRight=true
ToggleForwardBack=false
MinLRTimeChange=0.2
MaxLRTimeChange=0.5
MinFBTimeChange=0.2
MaxFBTimeChange=0.5
DamageReactionChangesDirection=true
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=0.0
DamageReactionResetTimer=0.1
JumpFrequency=0.5
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Oppose
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.125
BlockedMovementReactionMax=0.2
[Weapon Profile]
Name=Six Shooter
Type=Hitscan
ShotsPerClick=1
DamagePerShot=70.0
KnockbackFactor=0.1
TimeBetweenShots=0.5
Pierces=false
Category=FullyAuto
BurstShotCount=1
TimeBetweenBursts=0.5
ChargeStartDamage=10.0
ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000
ChargeTimeToAutoRelease=2.0
ChargeTimeToCap=1.0
ChargeMoveSpeedModifier=1.0
MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000
MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000
InheritOwnerVelocity=0.0
OriginOffset=X=0.000 Y=0.000 Z=0.000
MaxTravelTime=5.0
MaxHitscanRange=100000.0
GravityScale=1.0
HeadshotCapable=true
HeadshotMultiplier=2.0
MagazineMax=0
AmmoPerShot=1
ReloadTimeFromEmpty=1.5
ReloadTimeFromPartial=1.5
DamageFalloffStartDistance=2200.0
DamageFalloffStopDistance=4500.0
DamageAtMaxRange=20.0
DelayBeforeShot=0.0
HitscanVisualEffect=Tracer
ProjectileGraphic=Ball
VisualLifetime=0.5
WallParticleEffect=None
HitParticleEffect=None
BounceOffWorld=false
BounceFactor=0.0
BounceCount=0
HomingProjectileAcceleration=0.0
ProjectileEnemyHitRadius=1.0
CanAimDownSight=false
ADSZoomDelay=0.0
ADSZoomSensFactor=0.7
ADSMoveFactor=1.0
ADSStartDelay=0.0
ShootSoundCooldown=0.08
HitSoundCooldown=0.08
HitscanVisualOffset=X=0.000 Y=0.000 Z=-80.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=0.1
RecoilNegatable=true
DecalType=1
DecalSize=15.0
DelayAfterShooting=0.0
BeamTracksCrosshair=false
AlsoShoot=
ADSShoot=
StunDuration=0.0
CircularSpread=true
SpreadStationaryVelocity=0.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.0
HitscanVisualRadius=6.0
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
ProjectileTrail=None
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=true
AimPunchAmount=0.0
AimPunchResetTime=0.05
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=true
MinimumDecelVelocity=0.0
PSRManualNegation=false
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=0
CancelReloadOnKill=false
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=No Scope
ADSFOVOverride=72.099998
ADSFOVScale=Overwatch
ADSAllowUserOverrideFOV=true
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.0
Explosive=false
Radius=500.0
DamageAtCenter=100.0
DamageAtEdge=0.0
SelfDamageMultiplier=0.5
ExplodesOnContactWithEnemy=false
DelayAfterEnemyContact=0.0
ExplodesOnContactWithWorld=false
DelayAfterWorldContact=0.0
ExplodesOnNextAttack=false
DelayAfterSpawn=0.0
BlockedByWorld=false
SpreadSSA=1.0,1.0,-1.0,0.0
SpreadSCA=1.0,1.0,-1.0,0.0
SpreadMSA=1.0,1.0,-1.0,0.0
SpreadMCA=1.0,1.0,-1.0,0.0
SpreadSSH=1.0,1.0,-1.0,0.0
SpreadSCH=1.0,1.0,-1.0,0.0
SpreadMSH=1.0,1.0,-1.0,0.0
SpreadMCH=1.0,1.0,-1.0,0.0
MaxRecoilUp=4.0
MinRecoilUp=4.0
MinRecoilHoriz=0.0
MaxRecoilHoriz=0.0
FirstShotRecoilMult=1.0
RecoilAutoReset=true
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.44
AAMode=2
AAPreferClosestPlayer=false
AAAlpha=0.05
AAMaxSpeed=0.5
AADeadZone=0.0
AAFOV=30.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=true
AABlocksMouse=false
AAOffTimer=0.0
AABackOnTimer=0.0
TriggerBotEnabled=true
TriggerBotDelay=0.01
TriggerBotFOV=0.1
StickyLock=false
HeadLock=true
VerticalOffset=0.0
DisableLockOnKill=false
UsePerShotRecoil=false
PSRLoopStartIndex=0
PSRViewRecoilTracking=0.45
PSRCapUp=9.0
PSRCapRight=4.0
PSRCapLeft=4.0
PSRTimeToPeak=0.095
PSRResetDegreesPerSec=40.0
UsePerBulletSpread=false
PBS0=0.0,0.0
[Weapon Profile]
Name=Stun Gren
Type=Projectile
ShotsPerClick=1
DamagePerShot=25.0
KnockbackFactor=4.0
TimeBetweenShots=0.8
Pierces=false
Category=FullyAuto
BurstShotCount=1
TimeBetweenBursts=0.5
ChargeStartDamage=10.0
ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000
ChargeTimeToAutoRelease=2.0
ChargeTimeToCap=1.0
ChargeMoveSpeedModifier=1.0
MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000
MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000
InheritOwnerVelocity=0.0
OriginOffset=X=0.000 Y=0.000 Z=0.000
MaxTravelTime=1.0
MaxHitscanRange=100000.0
GravityScale=1.0
HeadshotCapable=false
HeadshotMultiplier=2.0
MagazineMax=0
AmmoPerShot=0
ReloadTimeFromEmpty=0.5
ReloadTimeFromPartial=0.5
DamageFalloffStartDistance=100000.0
DamageFalloffStopDistance=100000.0
DamageAtMaxRange=25.0
DelayBeforeShot=0.0
HitscanVisualEffect=Tracer
ProjectileGraphic=Ball
VisualLifetime=0.1
WallParticleEffect=Flare
HitParticleEffect=Flare
BounceOffWorld=false
BounceFactor=0.0
BounceCount=0
HomingProjectileAcceleration=0.0
ProjectileEnemyHitRadius=1.0
CanAimDownSight=false
ADSZoomDelay=0.0
ADSZoomSensFactor=0.7
ADSMoveFactor=1.0
ADSStartDelay=0.0
ShootSoundCooldown=0.08
HitSoundCooldown=0.08
HitscanVisualOffset=X=0.000 Y=0.000 Z=0.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=4.0
RecoilNegatable=false
DecalType=0
DecalSize=15.0
DelayAfterShooting=0.0
BeamTracksCrosshair=false
AlsoShoot=
ADSShoot=
StunDuration=0.8
CircularSpread=true
SpreadStationaryVelocity=0.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.0
HitscanVisualRadius=6.0
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
ProjectileTrail=None
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=true
AimPunchAmount=0.0
AimPunchResetTime=0.05
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=true
MinimumDecelVelocity=0.0
PSRManualNegation=false
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=0
CancelReloadOnKill=false
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=No Scope
ADSFOVOverride=72.099998
ADSFOVScale=Overwatch
ADSAllowUserOverrideFOV=true
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.0
Explosive=true
Radius=230.0
DamageAtCenter=25.0
DamageAtEdge=25.0
SelfDamageMultiplier=0.5
ExplodesOnContactWithEnemy=true
DelayAfterEnemyContact=0.0
ExplodesOnContactWithWorld=false
DelayAfterWorldContact=0.0
ExplodesOnNextAttack=false
DelayAfterSpawn=0.15
BlockedByWorld=true
SpreadSSA=1.0,1.0,-1.0,0.0
SpreadSCA=1.0,1.0,-1.0,0.0
SpreadMSA=1.0,1.0,-1.0,0.0
SpreadMCA=1.0,1.0,-1.0,0.0
SpreadSSH=1.0,1.0,-1.0,0.0
SpreadSCH=1.0,1.0,-1.0,0.0
SpreadMSH=1.0,1.0,-1.0,0.0
SpreadMCH=1.0,1.0,-1.0,0.0
MaxRecoilUp=0.0
MinRecoilUp=0.0
MinRecoilHoriz=0.0
MaxRecoilHoriz=0.0
FirstShotRecoilMult=1.0
RecoilAutoReset=false
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.35
AAMode=0
AAPreferClosestPlayer=false
AAAlpha=0.05
AAMaxSpeed=1.0
AADeadZone=0.0
AAFOV=30.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=true
AABlocksMouse=false
AAOffTimer=0.0
AABackOnTimer=0.0
TriggerBotEnabled=false
TriggerBotDelay=0.0
TriggerBotFOV=1.0
StickyLock=false
HeadLock=false
VerticalOffset=0.0
DisableLockOnKill=false
UsePerShotRecoil=false
PSRLoopStartIndex=0
PSRViewRecoilTracking=0.45
PSRCapUp=9.0
PSRCapRight=4.0
PSRCapLeft=4.0
PSRTimeToPeak=0.095
PSRResetDegreesPerSec=40.0
UsePerBulletSpread=false
PBS0=0.0,0.0
[Movement Ability Profile]
Name=Rush
MaxCharges=1.0
ChargeTimer=8.0
ChargesRefundedOnKill=0.0
DelayAfterUse=0.5
FullyAuto=false
AbilityDuration=0.25
LockDirectionForDuration=true
NegateGravityForDuration=true
MainVelocity=1500.0
MainVelocityCanGoVertical=false
MainVelocitySetToMovementKeys=true
UpVelocity=0.0
EndVelocityFactor=0.25
Hurtbox=false
HurtboxRadius=50.0
HurtboxDamage=50.0
HurtboxGroundKnockbackFactor=1.0
HurtboxAirKnockbackFactor=1.0
AbilityBlocksTurning=false
AbilityBlocksMovement=true
AbilityBlocksAttack=true
AttackCancelsAbility=false
AbilityReloadsWeapon=true
HealthRestore=0.0
AIUseInCombat=false
AIUseOutOfCombat=false
AIUseOnGround=true
AIUseInAir=true
AIReuseTimer=1.0
AIMinSelfHealth=0.0
AIMaxSelfHealth=100.0
AIMinTargHealth=0.0
AIMaxTargHealth=100.0
AIMinTargDist=0.0
AIMaxTargDist=2000.0
AIMaxTargFOV=15.0
AIDamageReaction=true
AIDamageReactionIgnoreChance=0.75
AIDamageReactionMinDelay=0.125
AIDamageReactionMaxDelay=0.25
AIDamageReactionCooldown=1.0
AIDamageReactionThreshold=50.0
AIDamageReactionResetTimer=1.0
[Weapon Ability Profile]
Name=Stun Gren
MaxCharges=1.0
ChargeTimer=10.0
ChargesRefundedOnKill=0.0
DelayAfterUse=0.5
FullyAuto=false
WeaponProfile=Stun Gren
BlockAttackTimer=0.0
AbilityBlockedWhenAttacking=false
AmmoPerShot=0
AIUseInCombat=false
AIUseOutOfCombat=false
AIUseOnGround=false
AIUseInAir=false
AIReuseTimer=1.0
AIMinSelfHealth=0.0
AIMaxSelfHealth=100.0
AIMinTargHealth=0.0
AIMaxTargHealth=100.0
AIMinTargDist=0.0
AIMaxTargDist=500.0
AIMaxTargFOV=15.0
AIDamageReaction=false
AIDamageReactionIgnoreChance=0.0
AIDamageReactionMinDelay=0.125
AIDamageReactionMaxDelay=0.25
AIDamageReactionCooldown=1.0
AIDamageReactionThreshold=0.0
AIDamageReactionResetTimer=1.0
[Melee Ability Profile]
Name=Melee
MaxCharges=1.0
ChargeTimer=0.25
ChargesRefundedOnKill=0.0
DelayAfterUse=1.0
FullyAuto=false
AbilityDuration=0.15
HurtboxRadius=100.0
HurtboxDamage=30.0
HurtboxGroundKnockbackFactor=0.0
HurtboxAirKnockbackFactor=0.0
BlockAttackTimer=0.5
AbilityBlockedWhenAttacking=false
AmmoPerShot=0
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
AIUseInCombat=true
AIUseOutOfCombat=false
AIUseOnGround=true
AIUseInAir=true
AIReuseTimer=1.0
AIMinSelfHealth=0.0
AIMaxSelfHealth=100.0
AIMinTargHealth=0.0
AIMaxTargHealth=100.0
AIMinTargDist=0.0
AIMaxTargDist=600.0
AIMaxTargFOV=15.0
AIDamageReaction=false
AIDamageReactionIgnoreChance=0.0
AIDamageReactionMinDelay=0.125
AIDamageReactionMaxDelay=0.25
AIDamageReactionCooldown=1.0
AIDamageReactionThreshold=0.0
AIDamageReactionResetTimer=0.1
[Map Data]
reflex map version 8
global
entity
type WorldSpawn
String32 targetGameOverCamera end
UInt8 playersMin 1
UInt8 playersMax 16
brush
vertices
-184.000000 272.000000 408.000000
-168.000000 272.000000 408.000000
-168.000244 272.000000 -888.000000
-184.000244 272.000000 -888.000000
-184.000000 0.000000 408.000000
-168.000000 0.000000 408.000000
-168.000244 0.000000 -888.000000
-184.000244 0.000000 -888.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
0.000000 16.000000 -144.000000
16.000000 16.000000 -144.000000
16.000000 16.000000 -384.000000
0.000000 16.000000 -384.000000
0.000000 0.000000 -144.000000
16.000000 0.000000 -144.000000
16.000000 0.000000 -384.000000
0.000000 0.000000 -384.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-128.000000 16.000000 -144.000000
0.000000 16.000000 -144.000000
0.000000 16.000000 -160.000000
-128.000000 16.000000 -160.000000
-128.000000 0.000000 -144.000000
0.000000 0.000000 -144.000000
0.000000 0.000000 -160.000000
-128.000000 0.000000 -160.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-128.000000 704.000000 -144.000000
0.000000 704.000000 -144.000000
0.000000 704.000000 -160.000000
-128.000000 704.000000 -160.000000
-128.000000 16.000000 -144.000000
0.000000 16.000000 -144.000000
0.000000 16.000000 -160.000000
-128.000000 16.000000 -160.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0xff8f7d6a internal/editor/textures/editor_clip
brush
vertices
-128.000000 16.000000 -368.000000
0.000000 16.000000 -368.000000
0.000000 16.000000 -384.000000
-128.000000 16.000000 -384.000000
-128.000000 0.000000 -368.000000
0.000000 0.000000 -368.000000
0.000000 0.000000 -384.000000
-128.000000 0.000000 -384.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-128.000000 704.000000 -368.000000
0.000000 704.000000 -368.000000
0.000000 704.000000 -384.000000
-128.000000 704.000000 -384.000000
-128.000000 16.000000 -368.000000
0.000000 16.000000 -368.000000
0.000000 16.000000 -384.000000
-128.000000 16.000000 -384.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0xff8f7d6a internal/editor/textures/editor_clip
brush
vertices
-144.000000 704.000000 -136.000000
-128.000000 704.000000 -136.000000
-128.000000 704.000000 -376.000000
-144.000000 704.000000 -376.000000
-144.000000 16.000000 -136.000000
-128.000000 16.000000 -136.000000
-128.000000 16.000000 -376.000000
-144.000000 16.000000 -376.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0xff8f7d6a internal/editor/textures/editor_clip
brush
vertices
-144.000000 16.000000 -144.000000
-128.000000 16.000000 -144.000000
-128.000000 16.000000 -384.000000
-144.000000 16.000000 -384.000000
-144.000000 0.000000 -144.000000
-128.000000 0.000000 -144.000000
-128.000000 0.000000 -384.000000
-144.000000 0.000000 -384.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
0.000000 704.000000 208.000000
16.000000 704.000000 208.000000
16.000000 704.000000 -768.000000
0.000000 704.000000 -768.000000
0.000000 16.000000 208.000000
16.000000 16.000000 208.000000
16.000000 16.000000 -768.000000
0.000000 16.000000 -768.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0xff8f7d6a internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0xff8f7d6a internal/editor/textures/editor_clip
brush
vertices
600.000000 272.000000 408.000000
616.000000 272.000000 408.000000
616.000000 272.000000 -888.000000
600.000000 272.000000 -888.000000
600.000000 0.000000 408.000000
616.000000 0.000000 408.000000
616.000000 0.000000 -888.000000
600.000000 0.000000 -888.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-168.000000 0.000000 408.000000
616.000000 0.000000 408.000000
616.000000 0.000000 -888.000000
-168.000000 0.000000 -888.000000
-168.000000 -16.000000 408.000000
616.000000 -16.000000 408.000000
616.000000 -16.000000 -888.000000
-168.000000 -16.000000 -888.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
616.000000 272.000000 -744.000000
616.000000 272.000000 -760.000000
-184.000000 272.000000 -759.999756
-184.000000 272.000000 -743.999756
616.000000 0.000000 -744.000000
616.000000 0.000000 -760.000000
-184.000000 0.000000 -759.999756
-184.000000 0.000000 -743.999756
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-176.000000 272.000000 184.000000
-176.000000 272.000000 200.000000
632.000000 272.000000 199.999573
632.000000 272.000000 183.999573
-176.000000 0.000000 184.000000
-176.000000 0.000000 200.000000
632.000000 0.000000 199.999573
632.000000 0.000000 183.999573
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-192.000031 288.000000 416.000000
672.000000 288.000000 416.000000
672.000000 288.000000 -896.000000
-192.000031 288.000000 -896.000000
-192.000031 272.000000 416.000000
672.000000 272.000000 416.000000
672.000000 272.000000 -896.000000
-192.000031 272.000000 -896.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
entity
type CameraPath
UInt32 entityIdAttachedTo 5
UInt8 posLerp 2
UInt8 angleLerp 2
entity
type Effect
Vector3 position 0.000000 256.000000 0.000000
String64 effectName internal/misc/reflectionprobe
entity
type Target
Vector3 position 352.000000 256.000000 224.000000
Vector3 angles -135.000000 30.000000 0.000000
String32 name end
entity
type PlayerSpawn
Vector3 position 416.000000 0.000000 -256.000000
Vector3 angles 270.000000 0.000000 0.000000
Bool8 teamA 0
entity
type PlayerSpawn
Vector3 position -64.000000 24.000000 -256.000000
Vector3 angles 450.000000 0.000000 0.000000
Bool8 teamB 0
|
cb390de1b18022f13bd7241fa85e1722d8e76d72 | 449d555969bfd7befe906877abab098c6e63a0e8 | /896/CH6/EX6.5/5.sce | 0d6847b9466e742775dfa5f34614d6576649ccff | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 448 | sce | 5.sce | clc
//Example 6.5
//Calculate volumetric flow rate of gasoline through a pipe
d=0.1//m internal diameter of pipe
A=%pi*d^2/4//m^2
dx=100//m length of pipe
f=0.005//dimentionless fanning friction factor
dz=10//m difference in water level
g=9.81//m/s^2
v=((2*g*dz/4/f)*d/dx)^0.5//m/s
printf("The velocity of gasoline through pipe is %f m/s\n",v);
q=A*v//m^3/s
printf("The volumteric flow arte od gasoline through the pipe is %f m^3/s",q); |
80aa18b2fa5cf226be87e5900f9ae6876d1dae19 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set9/s_Engineering_Physics_K._Rajagopal_2840.zip/Engineering_Physics_K._Rajagopal_2840/CH2/EX2.7/Ex2_7.sce | 90cb8e88342a06272664bd458f3edac12ad7d95a | [] | no_license | hohiroki/Scilab_TBC | cb11e171e47a6cf15dad6594726c14443b23d512 | 98e421ab71b2e8be0c70d67cca3ecb53eeef1df6 | refs/heads/master | 2021-01-18T02:07:29.200029 | 2016-04-29T07:01:39 | 2016-04-29T07:01:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 182 | sce | Ex2_7.sce | errcatch(-1,"stop");mode(2);;
//need to find absorption coefficient
V=5600 //in m^3
T=2 //in second
s=700 //in m^2
a=0.16*V/(s*T)
disp(a,"absorption coefficient =")
exit();
|
d5fca7953c9087b879c213bafe8ac6a0aa433db9 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/hypermatrices.man.tst | 566da4dac4e480dcb6ec4a8684aa1323ad65c497 | [
"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 | 81 | tst | hypermatrices.man.tst | clear;lines(0);
a(1,1,1,1:2)=[1 2]
a=[1 2;3 4];a(:,:,2)=rand(2,2)
a(1,1,:)
[a a]
|
54888e215e4d63f6d2b0f15afc2e1212b734d1ff | 449d555969bfd7befe906877abab098c6e63a0e8 | /2198/CH1/EX1.11.8/Ex1_11_8.sce | cbd6b58f76a794289c200aae386b620b6dd2c773 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 506 | sce | Ex1_11_8.sce | //Ex 1.11.8
clc;clear;close;
format('v',9);
//Given :
n=5*10^22;//per cm^3
ni=1.52*10^10*10^6;//per m^3
q=1.6*10^-19;//Coulomb
mu_n=0.135;//m^2/V-s
mu_p=0.048;//m^2/V-s
impurity=1/10^8;//atoms
sigma_i=ni*q*(mu_n+mu_p);//(ohm-cm)^-1
rho_i=1/sigma_i;//ohm-cm
disp(rho_i,"Resistivity of intrinsic Si in ohm-m : ");
ND=n*impurity*10^6;//per m^3
sigma_n=ND*mu_n*q;//(ohm-m)^-1
rho_n=1/sigma_n;//ohm-m
disp(rho_n,"Resistivity of doped Si in ohm-m : ");
//Answer in the book is not accurate.
|
66a70814aa64b898c67829fb0f679e1856bb5cb3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2762/CH4/EX4.3.4/4_3_4.sce | f7bb436856b4ae779f73e54e7b41543a09730a30 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 473 | sce | 4_3_4.sce | //Transport Processes and Seperation Process Principles
//Chapter 4
//Example 4.3-4
//Principles of Steady State Heat Transfer
//given data
//nomenclature of unmentioned specifications similar to previous example
I=200;//current in A
R=0.126;// resistance in ohms
P=I*I*R;//Power in watts
Tw=422.1;//watt temp in K
L=0.91;//length of wire
r=0.001268;//radius of wire
qdot=P/(%pi*L*r*r);
k=22.5;
T0=(qdot*r*r/(4*k))+Tw
mprintf("centre temperature= %f K",T0)
|
f5fc248e668d9891e46d3301da30472379229b93 | e02aa9695b075784e5d6aba93cab02d1864f1039 | /Analyse/tp_scilab_latex/annexes/prise_en_main_scilab.sce | cb502bc5b350bd222c244d5805aec8087621a446 | [] | no_license | michelprojets/Ensimag1 | 1a4cf84203f0e63a71ece278bf364d32d2219825 | b9ed4a050c7c548781a9e26d99747e8883c5c1f5 | refs/heads/master | 2021-09-13T15:47:16.632446 | 2018-05-01T18:17:26 | 2018-05-01T18:17:26 | 103,514,194 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 854 | sce | prise_en_main_scilab.sce | // question 1
// spec permet de renvoyer les valeurs propres d'une matrice
eye(4,4) // matrice identité 4x4
// question 2
// 1)
A = [1,0,3,1;1,2,0,1;0,1,3,0]
size(A) // taille matrice A
// 2)
A(1,:) // première ligne
A(:,4) // dernière colonne
A(2,3) // élément deuxième ligne troisième colonne
// 3)
diag(A) // diagonale matrice A
triu(A) // triangulaire supérieure
tril(A) // triangulaire inférieure
// question 3
// matrice identité 10x10
B=ones(1,10)
C=diag(B)
// question 4
// traçage courbe fonction sin sur [0,2pi] pour 6 points de discrétisation puis 21 points de discrétisation (en une autre couleur) avec titre et légendes
x=linspace(0,2*%pi,6)
y=linspace(0,2*%pi,21)
plot(x, sin(x), "r", y, sin(y), "b")
xtitle("Graphes de la fonction sin")
legend("sin (6 points discrétisation)","sin (21 points discrétisation)")
|
8f26b5f5a3e8c221d2dbfe99b515c179145a54f8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1472/CH11/EX11.5.b/11_5b.sce | 653dd4560c1f62ebc0355620e6a35e7215f6effa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 312 | sce | 11_5b.sce | clc
//initialization of varaibles
P1=100 //psia
T1=2000+460 //R
P2=15 //psia
g=1.4
cp=0.276
cv=0.207
T2=1520 //R
//calculations
k=cp/cv
v1=53.34*T1/(P1*144)
v2=v1*(P1/P2)^(1/k)
dh=cp*(T2-T1)
dv=v2-v1
//results
printf("Enthalpy change = %d B/lb",dh)
printf("\n Volume change = %.1f cu t/lb",dv)
|
11011ef16c943b799c229d1610c895fd1c6bfd26 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3673/CH2/EX2.a.12/Example_a_2_12.sce | 59b25363099a3647eb74be2d4080bc3a61cd6b52 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 370 | sce | Example_a_2_12.sce | //Example 2_12 page no:96
clc;
//current source are parallel so added them up
I1=5;
I2=5;
I3=10;
I=I1+I2+I3;
R1=2;
R2=2;
R3=3;
R4=2;
R5=1;
R=1/((1/R1)+(1/R2)+(1/R3)+(1/R4)+(1/R5));
V=I*R;
disp(V,"the voltage source is (in V)");
disp(R,"the resistance connected in series is (in ohm)");
//in text book resistance calculationg is wrong
//R valus is 0.35
|
ae073be5cef0d088fa53ffb8a6880416c845fa6d | fdbfc24750929832bb65f0d880937a70c6135798 | /Assignment4/3 Rayleigh_Power_Method.sce | a03ba3c83a6cd175d1fa581a02a16ccab71c294a | [] | no_license | mohitgaggar/LA_assignment-Scilab- | 05ff51030d875d326f01b75a8300c41bf6a1cb75 | adcbc360e81b9d3b64c826ba3299b90dacdcc8e5 | refs/heads/master | 2021-01-02T20:29:33.540763 | 2020-06-03T11:05:06 | 2020-06-03T11:05:06 | 239,787,284 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,359 | sce | 3 Rayleigh_Power_Method.sce | clc;clear;close;
A=[]
disp("-------------------------------------------------------------------------")
printf(" Enter a 3x3 matrix:\n\n")
for i=1:3
for j=1:3
printf("Enter element A(%d,%d):",i,j)
A(i,j)=input("")
end
end
disp(A,"The matrix is:")
x0=[]
disp("-------------------------------------------------------------------------")
printf("\nEnter the initial Eigen Vector:\n")
for i=1:3
x0(i,1)=input("")
end
disp(x0,"Initial Eigen Vector")
a=max(x0)
disp(a,"Initial Largest Eigen Value")
disp("-------------------------------------------------------------------------")
v=A*x0
i=1
while abs(max(v)-a)>0.002 then
printf(" Iteration Number = %d\n",i)
i=i+1
a=max(v)
disp(a,"Current Eigen Value:")
x1=v/a
disp(x1,"Current Eigen Vector:")
v=A*x1
disp("-------------------------------------------------------------------------")
end
format('v',5)
disp("-------------------------------------------------------------------------")
printf(" Iteration Number = %d \n",i)
printf(" (Equal Eigen Vectors in iteration number %d and %d)\n",i-1,i)
disp("The largest Eigen Value:")
disp(max(v))
disp("The largest Eigen Vector:")
disp(v/a)
disp("-------------------------------------------------------------------------")
|
dc0b037830e4486bf53c721db8833c5c525a9324 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1670/CH3/EX3.21/3_21.sce | 335c80b6bf3a0eb42504df53e4f2e38007b15129 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,157 | sce | 3_21.sce | //Example 3.21
//Relaxation Method
//Page no. 79
clc;clear;close;
A=[10,-2,-2,-6;-1,10,-2,-7;-1,-1,10,-8]
deff('y=R(i,x,y,z)','y=A(i,1)*x+A(i,2)*y+A(i,3)*z+A(i,4)')
printf('dx\tdy\tdz\tdR1\tdR2\tdR3\n---------------------------------------------')
I=eye(3,3)
for i=1:3
printf('\n')
for j=1:3
printf(' %g\t',I(i,j))
end
for j=1:3
printf('%g\t',A(j,i))
end
end
printf('\n\n\n\n\n xi\tyi\tzi\tR1\tR2\tR3\n---------------------------------------------\n')
I1=[0,0,0;0,0,1;0,1,0;1,0,0]
for i=1:4
for j=1:3
l=0;
for k=1:i
l=l+I1(k,j)
end
I(i,j)=l
end
end
X=eye(1,6)-eye(1,6)
for i=1:4
printf('\n')
for j=1:3
printf(' %g\t',I1(i,j))
X(j)=X(j)+I1(i,j)
end
for j=1:3
printf('%g\t',R(j,I(i,1),I(i,2),I(i,3)))
if i==4 then
X(j+3)=X(j+3)+R(j,I(i,1),I(i,2),I(i,3))
end
end
end
printf('\n---------------------------------------------\n')
for i=1:6
printf(' %g\t',X(i))
end
printf('\n\n\nHence the solution is \n\t x = %g\n\t y = %g\n\t z = %g',X(1),X(2),X(3)) |
6c6a9580570f2ad059af0957b1b020f0a7474f33 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1538/CH4/EX4.6/Ex4_6.sce | 0052115be12628a3041e24ebd7eb279be05c30dd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 465 | sce | Ex4_6.sce | //example-4.6
//page no-125
//given
//radii of cation and anion in CaO
rc=0.94*10^-10 //m
ra=1.32*10^-10 //m
//so the lattice side will be
a=2*(rc+ra) //m
//effective no of atoms in FCC lattice structure
Ne=4 //because CuO has FCC cubic structure
//molecular weight of CuO
Aw=40.08+16
//atomic weight unit
amu=1.66*10^-27 //amu
//mass of atom per unit cell
M=Aw*amu
//density
rho=M*Ne/a^3 //kg/m^3
printf ("density of CuO is 4032 Kg/m^3")
|
b94e7a08c21a13d52aed75a2332b576e0bf0e155 | bb44d6eb6adf8f21077f2a49f2eb44d2424b2a5b | /gcd.sci | a8dede61dd92d30daaf0fb89f2fbf5a834f75cba | [] | no_license | prasadovhal/Scilab-Codes | c8ccc49feba4243d092d8a1eba7a708eb95dc89e | 3af5566d62b1f1b6cf080ec20391c39b9d61897d | refs/heads/master | 2020-03-29T16:50:45.738023 | 2018-09-24T16:05:50 | 2018-09-24T16:05:50 | 150,130,310 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 244 | sci | gcd.sci | function [gcd]=gd(n1,n2)
if (n1>n2) then
(n1==n1, n2==n2)
else
temp==n1
n1==n2
n2==temp
end
while((remainder=n1 % n2)!=0)
n1==n2
n2==remainder
end
gcd==n2
endfunction
|
686bcb0dc617221ec8be76e2b8f5bc096f7943c2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1382/CH5/EX5.24/EX_5_24.SCE | 17dce1596f1c170446cb2fc49e41c57219940e7e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 534 | sce | EX_5_24.SCE | // Example 5.23:corner frequency and bandwidth
clc;
clear;
close;
tr=16;//rise time in micro second
V=100;//voltage in milli volts
Vd=90;//voltage in milli volts
f=5;//frequecny in killo hertz
fh= (0.35/(tr*10^-6))*10^-3;//upper cut off frequency in killo hertz
P= ((V-Vd)/V)*100;//
fl=(P*10^3*f)/(100*%pi);//lower cut off frequency in hertz
BW=(fh*10^3-fl)*10^-3;//bandwith in killo hertz
disp(fh,"upper cut off frequency in killo hertz")
disp(fl,"lower cut off frequency in hertz")
disp(BW,"bandwith in killo hertz")
|
6fe29dd9249fdcdae2f6fc00389d11d2acd34688 | 449d555969bfd7befe906877abab098c6e63a0e8 | /662/CH8/EX8.5/Example8_5.sci | b9ea72a64c9a3d061153d88613a726336bd13f15 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,396 | sci | Example8_5.sci | //Programming Example 8.5
//read several lines of text & determine the average number of characters per line
function[]= mainAvg()
global Sum //total number of characters
Sum=0
global Lines //total number of lines
Lines=0
printf("Enter the text below")
//read a line of text and update the cumulative counters
//n=number of chars in agiven line
//avg=average number of chars per line
n=linecount(); //expression can not b evaluated inside while,
//hence first calculated outside and used within while()
while ( n>0)
Sum=Sum+n;
Lines=Lines+1;
n=linecount();
end
avg = Sum/Lines; //average number of characters per line
printf("\nAverage number of character per line: %5.2f", avg)
endfunction
//read a line of text and count the number of charcters
function[count]= linecount()
count=0
//as the getchar is used to used with while loop to
//read character array which is here replced by read command
// and the count of characters along with white spaces is made
// with the help of length().
s=read(%io(1), 1, 1, '(a)');
if (s == " ") then
return;
else
count=length(s);
end
endfunction
//calling routine
mainAvg() |
d7400b95d18dffcfc01691593c640f8c54f32db4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1752/CH2/EX2.9/exa_2_9.sce | b26e5ba19603269aaa16eedce6d47667d8142e11 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 641 | sce | exa_2_9.sce | //Exa 2.9
clc;
clear;
close;
//given data
k_in=0.3;// in W/mK
k_gw=0.038;// in W/mK
ro=1.5;// in cm
ho=12;// in W/m^2 degree C
rc=k_in/ho;// in m
rc=rc*10^2;// in cm
disp(rc,"Critical radius in cm")
if ro<rc then
disp("Since radius of insulation ("+string(ro)+" cm) is less than critical radius of insulation ("+string(rc)+" cm), so heat transfer rate will increase by adding thsi insulation");
disp("and hence it is not effective")
end
ro=ro*10^-2;// in meter
// For effective insulation
// ro>=rc
// Kin/ho<= ro
roho=ro*ho;// in W/mK
/// Kin<= ro*ho
disp(roho,"Maximum value of thermal conductivity in W/mK") |
194d8cadf0f3c5f031c9165f4c94dda4fdfa2e63 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2078/CH4/EX4.6/Example4_6.sce | e006068f651bcb5db45944700c75447306967022 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Example4_6.sce | //Exa 4.6
clc;
clear;
close;
//Given data :
r=2/2;//cm
rdash=0.7788*r;//cm
d12=0.12*100;//cm
d11dash=300;//cm
d12dash=sqrt(300^2+100^2);//cm
d21dash=d12dash;//cm
d22dash=d11dash;//cm
d11=rdash;//cm
d22=rdash;//cm
d12=100;//cm
d21=100;//cm
Dm=(d11dash*d12dash*d21dash*d22dash)^(1/4);//cm
Ds=(d11*d12*d21*d22)^(1/4);//cm
L=0.4*log(Dm/Ds);//mH/km
disp(L,"Loop inductance of line(mH/km)");
|
7c25fffc958e9cc352391deda7920e1e3598b77b | bd1c6c9cddf020f43e361b17ddf9ecd803d20f82 | /BN/code/testes_2/resultado.tst | 69c27549bac806d8b49144d31bf2a761cc73b38a | [] | no_license | drohobytskyy/C | 04f66acb410f4a044d2d4c4a2c358e0ae19271ee | 073ac49322cfca0aa42fa7f7019666dcf5227bef | refs/heads/master | 2021-01-22T03:23:39.283301 | 2017-02-06T19:42:16 | 2017-02-06T19:42:16 | 81,118,496 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 566 | tst | resultado.tst | V_01 ok
V_02 ok
V_03 ok
V_04 ok
V_05 ok
V_06 ok
V_07 ok
V_08 ok
V_09 ok
V_10 ok
V_11 no
V_12 no
V_13 no
V_14 ok
V_15 ok
V_16 ok
V_17 ok
V_18 no
V_19 ok
V_20 ok
V_21 ok
V_22 ok
V_23 no
V_24 no
V_25 ok
V_26 ok
V_27 ok
V_28 no
V_29 ok
V_30 no
V_31 no
V_32 no
V_33 no
V_34 ok
V_35 ok
V_36 ok
V_37 ok
D_01 no
D_02 no
D_03 no
D_04 no
D_05 ok
D_06 no
e_01 ok
e_02 ok
l_01 ok
E1_01 ok
E1_02 ok
E1_03 ok
E1_04 ok
E2_01 ok
E2_02 ok
E2_03 ok
E2_04 ok
E3_01 ok
E3_02 no
E3_03 ok
E3_04 no
E3_05 ok
E3_06 no
E3_07 ok
E3_08 ok
E3_09 ok
E3_10 ok
E3_11 ok
E3_12 ok
E3_13 ok
E3_14 no
|
fefc7bfc4647776cf0e8822788979b2fb42e1421 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1442/CH9/EX9.10/9_10.sce | bd97da391bb3ee92d2f8eede8b60715f7eafd48f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 329 | sce | 9_10.sce | clc
//initialisation of variables
m1= 1 //kg
h1= 2967.6 //kJ/kg
h2= 83.96 //kJ/kg
m2= 10
s1= 7.5166 //kJ/kg K
s2= 0.2966 //kJ/kg K
s3= 1.1654 //kJ/kg K
//CALCULATIONS
h3= (m1*h1+m2*h2)/(m1+m2)
S= -m1*s1-m2*s2+(m1+m2)*s3
//RESULTS
printf (' enthalpy = %.1f kJ/kg',h3)
printf (' \n entropy change = %.4f kJ/kg K',S)
|
6ae3278504ab937689b21f5f826116cdb8753d2a | 449d555969bfd7befe906877abab098c6e63a0e8 | /409/CH2/EX2.8/Example2_8.sce | f60b0cd5b457e382de1c3cc2d50a19d3cf2a8f40 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 389 | sce | Example2_8.sce | clear ;
clc;
// Example 2.8
printf('Example 2.8\n\n');
//Page no. 63
// Solution
// 1 kg of the air/HCN mixture
// (a)
m1 = 27.03 ;//[g]
m2 = 29.0 ;//[g]
cn = (10*m1*1000*1000)/(10^6*m2) ;//[mgHCN/kg air]
printf('(a) 10.0 ppm HCN is %.2f mg HCN/kg air.\n',cn);
// (b)
ld = 300 ;//[mg/kg air]
fr = cn/ld;
printf(' (b) Fraction of lethal dose is 10.0 ppm is %.3f.',fr); |
942027cf978092c7a3571cf5c8c424a375040224 | d976bbc11c40569df55ffeebaa44336b1aebb02b | /simulation_par_discretisation.sce | e0f6bebbfc88fe3839f4e6c1e7e99e39e1d330fb | [] | no_license | jonathanVisbecq/Projet-MODAL-SNA | 212271eb7c47164b32b26823c629ad5f44c8230b | 596e0052536cfe4522371bbd6de0ca0c37ba2f4d | refs/heads/master | 2021-01-02T09:27:42.502076 | 2013-06-19T16:30:39 | 2013-06-19T16:30:39 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | Scilab | false | false | 1,802 | sce | simulation_par_discretisation.sce | //------------------------------------------------------------------------------
// Simule le système avec discrétisation en temps
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// Simule une trajectoire de l'état du système à l'aide d'une discrétisation en
// temps.
//------------------------------------------------------------------------------
//
// lambda : (reel) Parametre de la loi d'arrivee des paquets
// mu : (reel) Parametre de la loi d'envoi des paquets.
// tmax : (reel) Temps jusqu'auquel on désire simuler le système.
// h : (reel) Pas de la discrétisation en temps.
// nbSimulations : (entier) Le nombre de simulations à effectuer
//
// T : (vecteur ligne) Discrétisation du temps entre 0 et tmax avec un pas h.
// X: (matrice) Valeur de l'encombrement aux instants donnés par t. Chaque ligne
// correspond à une simulations.
//
function [T,X]=trajectoireDiscrete2(lambda, mu, tmax, h, nbSimulations)
X = zeros(nbSimulations, 1)
T = zeros(nbSimulations, 1)
F = ones(nbSimulations, 1)
Ones = ones(nbSimulations, 1)
n = 1000
while or(F)
j = 1
T1 = h*grand(nbSimulations, n, 'geom', lambda*h)
T2 = h*grand(nbSimulations, n, 'geom', (lambda+mu)*h)
U = grand(nbSimulations, n, 'def')
e = 1*(U<=lambda/(lambda+mu)) + (-1)*(U>lambda/(lambda+mu))
while or(F) & (j<=n)
T = [T, T(:,$) + (T1(:,j).*(X(:,$)==0) + T2(:,j).*(X(:,$)>0))]
X = [X, X(:,$) + ((Ones.*(X(:,$)==0)) + e(:,j).*(X(:,$)>0))]
F = T(:,$)<tmax
j = j+1
end
end
endfunction
[t,X] = trajectoireDiscrete2(0.36, 0.4,2000,1, 1)
plot2d(t,X, style=[color('red')])
|
359ecb5dc11abcb32794b9350bc19c49cb1eb996 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2090/CH2/EX2.7/Chapter2_example7.sce | b3c9dde24aaeb35826c24076365c9899fbbebe3e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 509 | sce | Chapter2_example7.sce | clc
clear
//Input data
p1=1//Inlet pressure in bar
p2=32.425//Pressure at the end of isentropic compression in bar
r=6//Ratio of expansion
r1=1.4//Isentropic index
//Calculations
rc=(p2/p1)^(1/r1)//Compression ratio
b=(rc/r)//cut-off ratio
n=(1-((b^r1-1)/(rc^(r1-1)*r1*(b-1))))*100//Air-standard efficiency
pm=((p1*rc^r1*n/100*r1*(b-1))/((r1-1)*(rc-1)))//Mean effective pressure in bar
//Output
printf('Air-standard efficiency is %3.2f percent \n Mean effective pressure is %3.3f bar',n,pm)
|
ec9f8be1432a1ac963851c41e0f38040074fce20 | 918e8207504f36c7eaf613b62c71e91ad3a33a8a | /2017/educrace_by_lulu/EducRace/DATA/Scenario/CarCrash.sce | dfbe09bf2bf0c4718f20d9740276b441fa2568b1 | [] | no_license | lazarusccr/GraphicsContest | b1299eeb74449b8714f126deeb64dc02da285260 | 8dec398588970e958c7f08ab7be32af760acbbd6 | refs/heads/master | 2021-04-29T07:29:46.122593 | 2017-12-28T16:26:51 | 2017-12-28T16:26:51 | 77,950,829 | 4 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 115 | sce | CarCrash.sce | Tint 255 0 0 0
Label Here1
TintAlphaChange 100 0.5 Linear
Wait 0.5
TintAlphaChange 0 0.5 Linear
Wait 0.5
Goto Here1 |
59a24b741f76ff0f7c30bdd4937b65d6ff5133c9 | c557cd21994aaa23ea4fe68fa779dd8b3aac0381 | /test/ltagdelete.tst | b7e65bf4d858433c0a8f6e60423ab625502d6917 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | dougsong/reposurgeon | 394001c0da4c3503bc8bae14935808ffd6f45657 | ee63ba2b0786fa1b79dd232bf3d4c2fe9c22104b | refs/heads/master | 2023-03-09T15:22:45.041046 | 2023-02-25T08:33:06 | 2023-02-25T08:33:06 | 280,299,498 | 1 | 0 | NOASSERTION | 2023-02-25T08:33:08 | 2020-07-17T01:45:32 | Go | UTF-8 | Scilab | false | false | 109 | tst | ltagdelete.tst | ## Test for correct side effects of lightweight tag deletion.
read <lighttag.fi
tag first-tag delete
write -
|
cc7e70a464a2497205402db93b5c8196f6faaa59 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1217/CH4/EX4.5/Exa4_5.sce | 7785990590d8fb06713b562d3bbbca56599e5f8d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 282 | sce | Exa4_5.sce | //Exa 4.5
clc;
clear;
close;
disp("The given circuit is basically an inverting amplifier with node A at virtual ground. Writing KCL at node A yields ");
disp("I1+I2=If");
disp("-2/10Kohm+3/20Kohm=-Vo/100Kohm");
Vo=-(-20+15);//in Volts
disp(Vo,"Output voltage in Volt is : ") |
64db6d0e6fe1104433af81c4661ed41287d1985f | 3655c97e8146a7ca97eaf60c4eb20ced2238eacb | /scilab/Function Optimization/min_bd_rastrigin.sci | 0be537efb4540496735b8c61a957a2b8a15e7ceb | [] | no_license | edielsonpf/genetic-algorithm | 99ae112982b6fee77ecfc55cbd10172b381e1dde | 94c599a23fa3b2f477c7a5062f65248a93cc395a | refs/heads/master | 2020-04-05T22:02:45.016605 | 2018-12-24T14:36:40 | 2018-12-24T14:36:40 | 32,630,334 | 0 | 1 | null | 2019-03-25T12:23:16 | 2015-03-21T11:45:11 | Python | UTF-8 | Scilab | false | false | 66 | sci | min_bd_rastrigin.sci | function Res = min_bd_rastrigin()
Res = [-1 -1]';
endfunction
|
350dfe16b001f373ecd242d5dd46ddd5dad1c7fb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1445/CH3/EX3.3/Ex3_3.sce | 4af78e16070e36be9c0cfa02bf32e42aaacbf7c5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,014 | sce | Ex3_3.sce | //CHAPTER 3- THREE-PHASE A.C. CIRCUITS
//Example 3
clc;
disp("CHAPTER 3");
disp("EXAMPLE 3");
//VARIABLE INITIALIZATION
r_ph=30; //resistance of coils in Ohms
l=0.07; //inductance of coils in Henry
v_l=400; //line voltage in Volts
f=50; //frequency in Hertz
//SOLUTION
//solution (a)
x_ph=2*(%pi)*f*l; //inductive reactance
z_ph=sqrt((r_ph^2)+(x_ph^2));
I_ph=v_l/z_ph; //phase voltage = line voltage for delta connection
disp(sprintf("(a) The phase current is %f A",I_ph));
//solution (b)
I_l=sqrt(3)*I_ph; //phase current = (line current)/sqrt(3) for delta connection
disp(sprintf("(b) The line current is %f A",I_l));
//solution (c)
pow_fact=r_ph/z_ph;
disp(sprintf("(c) The power factor is %f (lagging)",pow_fact));
//solution (d)
p=sqrt(3)*v_l*I_l*pow_fact;
disp(sprintf("(d) The power absorbed is %f W",p));
//Answer is different due to precision of floating point numbers
//END
|
c8dee917accbdefef331ce7628c6b7df9ebf4aaf | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4.1/Unix-Windows/scilab-2.4.1/macros/util/%spb_diag.sci | 59c62d146883a5d6cc810e0994313e51bcd40bde | [
"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 | 503 | sci | %spb_diag.sci | function d=%spb_diag(a,k)
// g_diag - implement diag function for sparse matrix, rational matrix ,..
// Copyright INRIA
[lhs,rhs]=argn(0)
if rhs==1 then k=0,end
[ij,v,sz]=spget(a)
m=sz(1);n=sz(2)
if m>1&n>1 then
l=find(ij(:,1)==(ij(:,2)-k))
if k<=0 then
mn=mini(m,n-k)
else
mn=min(m+k,n)
end
kk=abs(k)
d=sparse([ij(l,1),ones(ij(l,1))],v(l),[mn,1])
else
nn = max(m,n)+abs(k)
if ij==[] then
d=sparse([],[],[nn,nn])
else
d=sparse([ij(:,1),ij(:,1)+k],v,[nn,nn])
end
end
|
26b8690ee99546fde5a2e3ca61d41f6a8abe5f38 | e9affefd4e89b3c7e2064fee8833d7838c0e0abc | /aws-java-sdk-core/src/test/resources/resources/profileconfig/ProfileWithEmptySecretKey.tst | 666fcc27d6ac911274a9cb4540700a144209c68e | [
"Apache-2.0"
] | permissive | aws/aws-sdk-java | 2c6199b12b47345b5d3c50e425dabba56e279190 | bab987ab604575f41a76864f755f49386e3264b4 | refs/heads/master | 2023-08-29T10:49:07.379135 | 2023-08-28T21:05:55 | 2023-08-28T21:05:55 | 574,877 | 3,695 | 3,092 | Apache-2.0 | 2023-09-13T23:35:28 | 2010-03-22T23:34:58 | null | UTF-8 | Scilab | false | false | 53 | tst | ProfileWithEmptySecretKey.tst | [test]
aws_access_key_id=abcd
aws_secret_access_key=
|
b282123f39670959aac8275794ff33791123f4b2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /69/CH5/EX5.8/5_8.sce | 5d069e989846bca1d7d04c8a3e9c637ffc49b2ad | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 498 | sce | 5_8.sce | clear; clc; close;
Vcc = 16;
Vbe = 0.7;
Vt = 26*(10^(-3));
R1 = 90*(10^(3));
R2 = 10*(10^(3));
Re = 0.68*(10^(3));
Rc = 2.2*(10^(3));
ro = 50*(10^(3));
Beta = 210;
Vb = (R2/(R1+R2))*Vcc;
Ve = Vb - Vbe;
Ie = Ve/Re;
re = Vt/Ie;
disp(re,"Value of diode resistive element is(in ohms) :");
Rb = (R1*R2)/(R1+R2);
Zb = Beta*Re;
Zi = (Rb*Zb)/(Rb+Zb);
disp(Zi,"Input Impedance(ohms) :");
Zo = Rc;
disp(Zo,"Output Impedance(ohms) :");
Av = -Rc/Re;
disp(Av,"Voltage gain :");
|
eb5af3b0aa36878025ae6fbd364e6fd3a42b275c | 449d555969bfd7befe906877abab098c6e63a0e8 | /635/CH5/EX5.10/Ch05Ex10.sci | 38ade59ca4196eb832aa1089bd3a60b1e9cda705 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 778 | sci | Ch05Ex10.sci | // Scilab Code Ex5.10 Determining resolved componet of shearing force in a given direction: Page-168 (2010)
h1 = 1; k1 = 1; l1 = 1 // Miller indices for first set of planes
h2 = 1; k2 = 1; l2 = 0; // Miller indices for second set of planes
F_111 = 660; // Shearing force along [111] direction, N
cos_theta = (h1*h2+k1*k2+l1*l2)/(sqrt(h1^2+k1^2+l1^2)*sqrt(h2^2+k2^2+l2^2)); // Cosine of angle between [1 -1 0] and [100] directions
// As F_110/F_111 = cos_theta, solving for F_110
F_110 = F_111*cos_theta; // Resolved component of shearing force along [110] direction, N
printf("\nThe resolved component of shearing force along [110] direction, F_110 = %3d N", F_110);
// Result
// The resolved component of shearing force along [110] direction, F_110 = 538 N |
184764c51aa210f59ea05ebe4044e08fa010ab82 | 765bc14bfd27d828ffb23b30e838ac739fce91c5 | /Framework/Config_class/UserFiles/Tests/LSE/DynamicSystem_case1_1pmus.tst | d27b1e0aad1e21dc97aea78eee281e817acb8120 | [] | no_license | MaximeBaudette/PARTF | e677d9d5824271910b4b6de07569619201dea273 | 85b733e59c8160ec16b27dc373cc2ce6d35c3ff4 | refs/heads/master | 2020-03-09T20:57:14.579999 | 2018-05-17T00:50:08 | 2018-05-17T00:50:08 | 128,997,252 | 0 | 0 | null | 2018-04-10T21:30:48 | 2018-04-10T21:30:48 | null | UTF-8 | Scilab | false | false | 3,505 | tst | DynamicSystem_case1_1pmus.tst | [Bus1]
BusNumber = "1"
EvtPluginINIFilePath = "EventFromCSVPlugin/EventFromCSVPlugin.ini"
EvtParams.<size(s)> = "1 1"
EvtParams 0 = "C:\Projects\PARTF\trunk\Framework\Applications\AppPlugins\Mathscript\Ringdown\RealEvent_case1_1pmus.csv"
EvtConfig.UTC Time 0 = "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
EvtConfig.Nominal Frequency = "60"
EvtConfig.Reporting Rate = "60"
EvtConfig.Fsamp = "960"
EvtConfig.PosSeq = "FALSE"
Start Time = "0"
End Time = "8.2"
PmuImpairPluginINIFilePath = "NoPmuImpairPlugin/NoPmuImpairPlugin.ini"
PmuImpairParams .<size(s)> = "0 0"
PmuImpairConfig.FilterType = "Blackman"
PmuImpairConfig.bPosSeq = "FALSE"
NetImpPluginINIFilePath = "NetworkPluginNone/NetworkPluginNone.ini"
NetImpParams.<size(s)> = "0 0"
FlagImpPluginINIFilePath = "NoFlagImpairPlugin/NoFlagImpairPlugin.ini"
FlagImpParams.<size(s)> = "0 0"
[AppData]
AppData.AppPluginIniFilePath = "RingdownPlugin/RingdownPlugin.ini"
AppData.Config = "<Cluster>\0D\0A<Name>Accessors:RingdownConfig</Name>\0D\0A<NumElts>5</NumElts>\0D\0A<Cluster>\0D\0A<Name>Config</Name>\0D\0A<NumElts>12</NumElts>\0D\0A<I32>\0D\0A<Name>Addmod</Name>\0D\0A<Val>-1</Val>\0D\0A</I32>\0D\0A<I32>\0D\0A<Name>Scalmod</Name>\0D\0A<Val>0</Val>\0D\0A</I32>\0D\0A<I32>\0D\0A<Name>Lpocon</Name>\0D\0A<Val>-1</Val>\0D\0A</I32>\0D\0A<I32>\0D\0A<Name>Pircon</Name>\0D\0A<Val>-1</Val>\0D\0A</I32>\0D\0A<I32>\0D\0A<Name>Dmodes</Name>\0D\0A<Val>0</Val>\0D\0A</I32>\0D\0A<U16>\0D\0A<Name>Lpmcon</Name>\0D\0A<Val>3</Val>\0D\0A</U16>\0D\0A<U16>\0D\0A<Name>Lpacon</Name>\0D\0A<Val>1</Val>\0D\0A</U16>\0D\0A<U16>\0D\0A<Name>Fbcon</Name>\0D\0A<Val>1</Val>\0D\0A</U16>\0D\0A<I32>\0D\0A<Name>Ordcon</Name>\0D\0A<Val>1</Val>\0D\0A</I32>\0D\0A<DBL>\0D\0A<Name>Trimre</Name>\0D\0A<Val>-1.00000000000000</Val>\0D\0A</DBL>\0D\0A<DBL>\0D\0A<Name>Ftrimh</Name>\0D\0A<Val>-1.00000000000000</Val>\0D\0A</DBL>\0D\0A<DBL>\0D\0A<Name>Ftriml</Name>\0D\0A<Val>-1.00000000000000</Val>\0D\0A</DBL>\0D\0A</Cluster>\0D\0A<Cluster>\0D\0A<Name>Window</Name>\0D\0A<NumElts>3</NumElts>\0D\0A<I32>\0D\0A<Name>StOffset</Name>\0D\0A<Val>0</Val>\0D\0A</I32>\0D\0A<I32>\0D\0A<Name>EndOffset</Name>\0D\0A<Val>10000</Val>\0D\0A</I32>\0D\0A<I32>\0D\0A<Name>Length</Name>\0D\0A<Val>0</Val>\0D\0A</I32>\0D\0A</Cluster>\0D\0A<I32>\0D\0A<Name>V index</Name>\0D\0A<Val>0</Val>\0D\0A</I32>\0D\0A<I32>\0D\0A<Name>I index</Name>\0D\0A<Val>3</Val>\0D\0A</I32>\0D\0A<Boolean>\0D\0A<Name>PosSeq</Name>\0D\0A<Val>0</Val>\0D\0A</Boolean>\0D\0A</Cluster>\0D\0A"
[OutToFileConfig]
OutToFileConfig.OutputToFilePluginINIFilePath = "OutputToFileBasePlugin/OutputToFileBasePlugin.ini"
OutToFileConfig.Output File Path = "Output"
OutToFileConfig.clConfigOptions.TIME_BASE = "\00\00\00\00\00\0FB@"
OutToFileConfig.clConfigOptions.STN = "Bus_1"
OutToFileConfig.clConfigOptions.IDCODE = "0"
OutToFileConfig.clConfigOptions.rdoPolRect = "Rectangular"
OutToFileConfig.clConfigOptions.rdoFloatInt = "Float"
OutToFileConfig.clConfigOptions.PHUNIT = "\00\00\00\00\00\0FB@"
OutToFileConfig.clConfigOptions.rdoFreqDfreq = "Float"
OutToFileConfig.clConfigOptions.CHNAM.<size(s)> = "8"
OutToFileConfig.clConfigOptions.CHNAM 0 = "VA"
OutToFileConfig.clConfigOptions.CHNAM 1 = "VB"
OutToFileConfig.clConfigOptions.CHNAM 2 = "VC"
OutToFileConfig.clConfigOptions.CHNAM 3 = "V+"
OutToFileConfig.clConfigOptions.CHNAM 4 = "IA"
OutToFileConfig.clConfigOptions.CHNAM 5 = "IB"
OutToFileConfig.clConfigOptions.CHNAM 6 = "IC"
OutToFileConfig.clConfigOptions.CHNAM 7 = "I+"
OutToFileConfig.clConfigOptions.chkCfg2Prefix = "TRUE"
|
9bbe2a430dc3a4e0c27b95e30d316caa77d7da44 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2939/CH5/EX5.12/Ex5_12.sce | 529e45ea1c619ed2a0fa4076a8bb2889d11215bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 186 | sce | Ex5_12.sce |
// Ex5_12
clc;
// Given:
w=0.1189;
flux=10^16;
// Solution:
A=w/(flux*3.16*10^7);// in m^2
A1=A*10000/(10^-24);// in Barns
printf("The cros section area is = %d b", A1)
|
c463ddc6f084111651620a3c6b117ad701ecf586 | 449d555969bfd7befe906877abab098c6e63a0e8 | /149/CH28/EX28.4/ques4.sce | 72b1d6605d5372f83a7499471f65b9c349764544 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,516 | sce | ques4.sce | //ques4
clear
clc
disp('See figure in question');
disp('using numerical poissons equation u(i-1)(j)+u(i+1)(j)+u(i)(j-1)+u(i)(j+1)=h^2f(ih,jh)');
disp('Here f(x,y)=-10(x^2+y^2+10');
disp('Here for u1 i=1,j=2 putting in equation this gives : ');
disp('u1=1/4(u2+u3+150');
disp('similarly ');
disp('u2=1/4(u1+u4+180');
disp('u3=1/4(u1+u4+120');
disp('u4=1/4(u2+u3+150');
disp('reducing therse equations since u4=u1');
disp('4u1-u2-u3-150=0');
disp('u1-2u2+90=0');
disp('u1-2u3+60=0');
disp('Solvng these equations by Gauss jordon method ');
A=[4 -1 -1;1 -2 0;1 0 -2];
r=[150;-90;-60];
D=A;d=r;
n=3;
//create upper triangular matrix
s=0;
for j=1:n-1
if A(j,j)==0
k=j;
for k=k+1:n
if A(k,j)==0
continue
end
break
end
B=A(j,:); C=r(j);
A(j,:)=A(k,:); r(j)=r(k);
A(k,:)=B; r(k)=C;
end
for i=1+s:n-1
L=A(i+1,j)/A(j,j);
A(i+1,:)=A(i+1,:)-L*A(j,:);
r(i+1)=r(i+1)-L*r(j);
end
s=s+1;
end
//Solution of equations
x(n)=r(n)/A(n,n);
for i=n-1:-1:1
sum=0;
for j=i+1:n
sum=sum+A(i,j)*x(j);
end
x(i)=(1/A(i,i))*(r(i)-sum);
end
//hecking with scilab functions
p=inv(D)*d;
//Output
disp('@----------------------------------------------------------@')
disp('Output [B][x]=[b]')
disp('Upper riangular Matrix [B] =');disp(A)
disp('Matrix [b] =');disp(r)
disp('solution of linear equations :');disp(x') |
31215ff0457d4bb92e5ce1648326fa65ad92cba0 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/macros/m2sci/sci_cumsum.sci | 4d627d144f31e2f15394e52b0cdb6e4472b458d6 | [
"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 | 894 | sci | sci_cumsum.sci | function [stk,txt,top]=sci_cumsum()
// Copyright INRIA
txt=[]
if stk(top-rhs+1)(5)=='4' then
v='bool2s('+stk(top-rhs+1)(1)+')',
else
v=stk(top-rhs+1)(1),
end
if rhs==1 then
[m,n]=checkdims(stk(top))
x=stk(top)(1)
if m==-1&n==-1 then
set_infos([
'mtlb_cumsum('+x+') may be replaced by '
'cumsum('+x+')'+' if '+x+'is a vector'
'cumsum('+x+',1)'+' if '+x+'is a matrix'],1)
stk=list('mtlb_cumsum('+x+')','0','?','?','1')
elseif m==1|n==1 then
stk=list('cumsum('+x+')','0','1','1','1')
else
stk=list('cumsum('+x+',1)','0','1',stk(top)(4),'1')
end
else
if stk(top)(1)=='1' then
stk=list('cumsum('+v+',1)','0','1',stk(top-1)(4),stk(top-1)(5))
elseif stk(top)(1)=='2' then
stk=list('cumsum('+v+',2)','0',stk(top-1)(3),'1',stk(top-1)(5))
else
x=stk(top)(1)
stk=list('cumsum('+v+','+x+')','0','?','?',stk(top-1)(5))
end
top=top-1
end
|
923045f054d9a210cc6cf837df9ffbaff4a7f61c | 6d1f05d2074f1d6f18d3d473f2dbd867c94fc7ee | /giarratano/SOURCE/TESTING/example.tst | 8ad6d824383131a2edf308fe6cd1606319d15ee9 | [] | no_license | arranger1044/icse-1516 | c40d2c86892cd90c14042a95581cbb0e238190fb | ee4bafb57bb549ef40e29b8edf8cdad038e97162 | refs/heads/master | 2020-12-24T19:04:01.588095 | 2016-05-31T07:46:47 | 2016-05-31T07:46:47 | 56,578,768 | 14 | 5 | null | null | null | null | UTF-8 | Scilab | false | false | 2,638 | tst | example.tst | (set-sequence-operator-recognition FALSE)
(set-dynamic-constraint-checking FALSE)
(set-strategy depth)
(unwatch all)
(watch rules)
; mab.clp test
(clear)
(open "example.rsl" example "w")
(load "compline.clp")
(load "mab.clp")
(reset)
(progn (dribble-on "mab.out") (run) (dribble-off))
(printout example "mab.clp differences are as follows:" crlf)
(compare-files mab.exp mab.out example)
; dilemma1.clp test
(clear)
(load "compline.clp")
(load "dilemma1.clp")
(reset)
(progn (dribble-on "dilemma1.out") (run) (dribble-off))
(printout example "dilemma1.clp differences are as follows:" crlf)
(compare-files dilemma1.exp dilemma1.out example)
; dilemma2.clp test
(clear)
(load "compline.clp")
(load "dilemma2.clp")
(reset)
(watch deffunctions)
(progn (dribble-on "dilemma2.out") (run) (dribble-off))
(unwatch deffunctions)
(printout example "dilemma2.clp differences are as follows:" crlf)
(compare-files dilemma2.exp dilemma2.out example)
; wordgame.clp test
(clear)
(load "compline.clp")
(load "wordgame.clp")
(reset)
(progn (dribble-on "wordgame.out") (run) (dribble-off))
(printout example "wordgame.clp differences are as follows:" crlf)
(compare-files wordgame.exp wordgame.out example)
; zebra.clp test
(clear)
(load "compline.clp")
(load "zebra.clp")
(reset)
(progn (dribble-on "zebra.out") (run) (dribble-off))
(printout example "zebra.clp differences are as follows:" crlf)
(compare-files zebra.exp zebra.out example)
; electronic.clp test
(clear)
(set-strategy mea)
(load "compline.clp")
(load "electrnc.clp")
(load "circuit3.clp")
(reset)
(progn (dribble-on "electrnc.out") (run) (dribble-off))
(printout example "electronic.clp differences are as follows:" crlf)
(compare-files electrnc.exp electrnc.out example)
; object monkeys & bananas test
(set-strategy depth)
(watch rules)
(clear)
(setgen 1)
(load "compline.clp")
(load "mabobj.clp")
(reset)
(progn (dribble-on "mabobj.out") (run) (dribble-off))
(printout example "mabobj.clp differences are as follows:" crlf)
(compare-files mabobj.exp mabobj.out example)
; object farmer's dilemma example
(clear)
(setgen 1)
(load "compline.clp")
(load "objfarm.clp")
(reset)
(progn (dribble-on "objfarm.out") (run) (dribble-off))
(printout example "objfarm.clp differences are as follows:" crlf)
(compare-files objfarm.exp objfarm.out example)
; object wordgame example
(clear)
(setgen 1)
(load "compline.clp")
(load "wrdgmobj.clp")
(reset)
(progn (dribble-on "wrdgmobj.out") (run) (dribble-off))
(printout example "wrdgmobj.clp differences are as follows:" crlf)
(compare-files wrdgmobj.exp wrdgmobj.out example)
; close result file
(unwatch all)
(set-strategy depth)
(close example)
|
b2b953b7ed0597f416da75658f60ab48f1408d9b | 5a05d7e1b331922620afe242e4393f426335f2e3 | /macros/sos2ss.sci | d629c290dfda03e29947071560e1ab0538860860 | [] | 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,987 | sci | sos2ss.sci | //Author: Parthasarathi Panda
//parthasarathipanda314@gmail.com
//Convert digital filter second-order section parameters to state-space form
//Calling Sequence
//[A,B,C,D] = sos2ss(sos)
//[A,B,C,D] = sos2ss(sos,g)
//
//sos2ss converts a second-order section representation of a digital filter to an equivalent state-space representation.
//A,B,C,D:Steady state parameters
//sos:6 column second order section matrix
//g:gain
//EXAMPLES:
//sos = [1 1 1 1 0 -1 ;
// -2 3 1 1 10 1];
//[A,B,C,D] = sos2ss(sos,2);
//
//EXPECTED OUTPUT:
//D =- 4.
//C =42. 4. - 32. - 2.
//B =[1. 0. 0. 0. 0.]'
//A =[- 10. 0. 10. 1. ; 1. 0. 0. 0. ; 0. 1. 0. 0. ; 0. 0. 1. 0. ]
function [A,B,C,D]=sos2ss(sos,g)
[nargout,nargin]=argn();
if nargin==1 then
g=1;
end
if type(sos)~=1 | type(g)~=1 then
error('check the data type of input'); //to check if the inputs are real/complex arrays
end
if size(g)~=[1,1] then
error('check the data type of input'); //to check that n is single dimensional
end
//checking if sos is a 6 column matrix
[d,j]=size(sos);
if j~=6 then
error('sos should be a 6-column matrix');
end
num=[1];
den=[1];
//convolving the numerator and denominator to get the coefficient of the numerator and the denominator at the top and bottom
for i=[1:d]
num=convol(num,sos(i,1:3));
den=convol(den,sos(i,4:6));
end
t=2*d+1; //polynomial degree must be defined here
if den(t)==0 then
error('improper transfer function check input');
end
// t=2*d+1; //polynomial degree
A=zeros(t-1,t-1);
if t>2 then
A(2:(t-1),1:(t-2))=eye(t-2,t-2);
end
A(1,:)=-1*den(2:t)/den(1);
B=zeros(t,1);
B(1)=1/den(1); //constructing (A,B) in canonical controllable form
C=g*(num(2:t)-den(2:t)*num(1)/den(1));//appropiate C and D
D=g*num(1)/den(1);
endfunction
|
e35e7f3133b0a668288eb252f3c621dd577792e5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1574/CH3/EX3.11/M_Ex_3_11.sce | 6ce1df5d8c3c1f9d744c4ef1b6c12762c71b30b1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 781 | sce | M_Ex_3_11.sce | clf();
clc
//Chapter3: Modulation
//Example3.11, page no 144
//Given
deff("[y]=f(x)","y=Ec*(1+ma*(sin(wm*x)))*sin(wc*x)")
Ec=10,ma=0.5,wm=10000*%pi,wc=2*%pi*1e7
x=[0:0.01:20]*%pi/10;
subplot(2,1,1)
fplot2d(x,f)
xlabel("t", "fontsize", 3);
ylabel("Modulated Wave", "fontsize", 3, "color", "red");
Fc=wc/(2*%pi)
Fm=wm/(2*%pi)
Fusb=(wm+wc)/(2*%pi)
Flsb=(wm-wc)/(2*%pi)
mprintf('USB freq=%d k5Hz\nUSB amplitude=%f V\nLSB freq=%d kHz\nLSB amplitude=%f V\nCarrier amplitude=%d V',Fusb*1e-3,2.5,Flsb*-1e-3,2.5,10)
F=[0,2.5,10,2.5,0]
T=[-2,-1,0,1,2]
subplot(2,1,2)
plot2d3(T,F,5)
xlabel("Freq", "fontsize", 3);
ylabel("Amplitude", "fontsize", 3, "color", "blue");
xlabel("fc-fm fc fc+fm", "fontsize", 2);
|
2f3912d16b20b64b40921ef334d58610eedaefdf | 449d555969bfd7befe906877abab098c6e63a0e8 | /2075/CH9/EX9.5/pe9_5.sce | 9d746f83d9766471fef0cfc618561cbbb5c10199 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 272 | sce | pe9_5.sce | //example 9.5
clc;funcprot(0);
//Initialization of Variable
I=22.6;//current
V=120;//voltage
Id=28;//A
Vd=280;//V
//calculation
P=3*I*V;
disp(P/1000,"total power in kW:")
Pl=Id*Vd;
disp(Pl/1000,"load power in kW:")
Pf=Pl/P;
disp(Pf,"power factor:")
clear()
|
bc4a790028590c04439fb923b1416cfbe8a08dda | 449d555969bfd7befe906877abab098c6e63a0e8 | /1436/CH1/EX1.7/ex1_7.sce | be0c304629cc82cca63235467b2f2b2705d760b3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 124 | sce | ex1_7.sce | // Example 1.7, page no-55
clear
clc
E_rec_pyro=0.95*0.85
T=1100/E_rec_pyro
printf("Pyrometer reading T = %.2f°C",T)
|
2599c36d3344f568725525177b2d26b1cf4ca49a | 449d555969bfd7befe906877abab098c6e63a0e8 | /443/DEPENDENCIES/3_7_data.sci | 06e577d17018c736300d248e9a631f84641b65bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 319 | sci | 3_7_data.sci | //Compression ratio
r=6;
//Ratio specific heats for air
y=1.4;
//Pressure at beginning of compression(in bar)
p1=1;
//Temperature at beginning of compression(in K)
T1=27+273;
//Heat added during the constant volume combustion process(in kJ/kg)
qs=1170;
//Specific heat at constant volume(in kJ/kgK)
Cv=0.717; |
875b9deb33056140c981bb2a103e36fc1fb23fb7 | 676ffceabdfe022b6381807def2ea401302430ac | /library/Demos/Python/NekMesh/Tests/structured_grid.tst | a20cd5419d856601a68a9b034751604e506b8a04 | [
"MIT"
] | permissive | mathLab/ITHACA-SEM | 3adf7a49567040398d758f4ee258276fee80065e | 065a269e3f18f2fc9d9f4abd9d47abba14d0933b | refs/heads/master | 2022-07-06T23:42:51.869689 | 2022-06-21T13:27:18 | 2022-06-21T13:27:18 | 136,485,665 | 10 | 5 | MIT | 2019-05-15T08:31:40 | 2018-06-07T14:01:54 | Makefile | UTF-8 | Scilab | false | false | 565 | tst | structured_grid.tst | <?xml version="1.0" encoding="utf-8" ?>
<test>
<description>Structured grid generation from NekMesh wrapper</description>
<executable python="true">StructuredGrid.py</executable>
<parameters> 5 6 0.0 1.0 2.0 3.0 2 Quad output.xml </parameters>
<files />
<metrics>
<metric type="regex" id="1">
<regex>^.*Total negative Jacobians: (\d+)</regex>
<matches>
<match>
<field id="0">0</field>
</match>
</matches>
</metric>
</metrics>
</test>
|
26fc9979cc41022df2e556c37c672cda1dd1e93a | 4e9df66700bcf9688afe22df0009cdf4a17bc61f | /Scilab_Lab/examples/eyes.sci | 01c0b0ac169ebff1de25530d260a03cdb8d1fbf8 | [] | no_license | vmebus/workspace | e18947a1f967e6a3a7dfbc5cce6f92380d8637fc | f251b8a8e6cec30a77c7ef7b4103c5ee6e6d1393 | refs/heads/master | 2021-01-09T21:53:45.183564 | 2015-10-03T06:42:23 | 2015-10-03T06:42:23 | 36,120,248 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 192 | sci | eyes.sci | function eyes(result,L,Na)
N=length(result);
tt=0:1:Na*L;
set(gca(),"auto_clear","off");
for jj=1:Na*L:N-Na*L
plot(tt,result(jj:jj+Na*L));
end
set(gca(),"auto_clear","on");
endfunction |
2a9f1c0baa4bb68cdc16c13eb046fa58487c4efd | e8bcf3f9ffdfb367940fb9ed498b1c598ce92e65 | /comet.sce | f5d78ff341c641740879eca4bc6b963e65c9418d | [] | no_license | yoddha24/Intro-to-Scilab | 1fe25aee3ebd319bc2c9e2cf7c25d7050b09890e | 4c458c1bea6880839ebae07adfd39dea0eac4e2c | refs/heads/master | 2021-01-20T18:24:05.191473 | 2016-08-08T13:45:16 | 2016-08-08T13:45:16 | 65,207,356 | 1 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 177 | sce | comet.sce | // Program to demonstarte usage of comet
x=linspace(-%pi,%pi,500);
comet(x,%s^5-%s^3+%s+5)
xtitle('Using comet function to animate an equation')
xlabel('x')
ylabel('y')
|
ef140386d5ed97b8d708d4af9ca22b6b98c00c54 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3765/CH3/EX3.10/Ex3_10.sce | 4becf30993a1bd7d563a632f4d8e0ef0dd90becd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 680 | sce | Ex3_10.sce | clc
// Example 3.10.py
// In example 3.9, how much heat per unit mass must be added to choke the flow//
// Variable declaration from example 3.9
To1 = 840 // upstream total temperature (in K)
M1 = 3.0 // upstream mach number
To1_by_Tostar = 0.6540 // To1/Tostar from Table A3
cp = 1004.5 // specific heat at constant pressure for air (in J/Kg K)
// Calculations
Tostar = To1 / To1_by_Tostar // Tostar = To1 * Tostar/To1 (in K)
M2 = 1.0 // for choked flow
To2 = Tostar // since M2 = 1.0
q = cp * (To2 - To1) // required heat = cp(To2 - To1) (in J/kg)
// Result
printf("\n Heat require to choke the flow is %.2e J/kg", q)
|
ca25a0d279f223ce0198525cebfa5851f3c88405 | 7a77843c417bcedf80e1b0062437cf2e660f77fe | /GNSS_SOFTWARE_RECEIVERS/POSTPROCESSING_RECEIVERS/osgnss_next_step/src/third_party_tools/scilab/check_correlators_outputs/read_corr_out.sce | b309c7de42ef6a651b042b7433ce5d2ecd1a7b07 | [] | no_license | muhammadali201/gnsssdr | f3433dd5542f3df30e7ea966bffbeddbd2558e29 | 5e2d354c709563ed17ee5c8d0b6b725e00c59cdb | refs/heads/master | 2021-01-01T05:33:17.554728 | 2013-09-16T11:30:22 | 2013-09-16T11:30:22 | 41,659,404 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 838 | sce | read_corr_out.sce | clear all;
clc;
fileName='e:\corr_out.csv';
[fd, err] = mopen(fileName, 'rt');
s = mgetl(fd);
[Ie s] = strtod(s);
[Qe s] = strtod(s);
[Ip s] = strtod(s);
[Qp s] = strtod(s);
[Il s] = strtod(s);
[Ql s] = strtod(s);
[cross s] = strtod(s);
[dot s] = strtod(s);
[freqErr s] = strtod(s);
[carrErr s] = strtod(s);
[codeErr s] = strtod(s);
carrFreq = strtod(s);
mclose(fd);
plot(Ie, 'r');
plot(Qe, 'b');
plot(Ip, 'g');
plot(Qp, 'c');
plot(Il, 'y');
plot(Ql, 'm');
// figure;
// plot(dot, 'r');
// plot(cross, 'b');
//
// figure;
// plot(freqErr, 'b');
//
// figure;
// plot(carrErr, 'b');
//
// figure;
// plot(codeErr, 'b');s
//
// figure;
// plot(freqErr, 'r');
// plot(dot, 'g');
// plot(cross, 'b'); |
45c317216763cbba1cd77f2d9994445f8bd5f6f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /620/CH2/EX2.3/example2_3.sce | ee28e306208bf07054bfcbd51a6b8d687e1894fb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 76 | sce | example2_3.sce | w=24;
q=0.2;
v=w/q;
disp("the potential difference (in V) is "); disp(v); |
8d0a0bc9c3f34ffd4801feb87fc3c12cad1febbf | 449d555969bfd7befe906877abab098c6e63a0e8 | /858/CH3/EX3.18/example_18.sce | 37db2eb07c0f9b9b993234c0be034f10943fefe0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 400 | sce | example_18.sce | clc
clear
printf("example 3.18 page number 108\n\n")
//to find the temperature of combustion
H_combustion = 1560000 //in kJ/kmol
H0_CO2 = 54.56 //in kJ/kmol
H0_O2 = 35.2 //in kJ/kmol
H0_steam = 43.38 //in kJ/kmol
H0_N2 = 33.32 //in kJ/kmol
t = H_combustion/(2*H0_CO2+3*H0_steam+0.875*H0_O2+16.46*H0_N2);
printf("theoritical temperature of combustion = %f degree C",t)
|
316c3943b1d81270147ca8400c6783e4ea1a1128 | ad617742f184bf6d4cceb3e9c99232d8bd52b862 | /tests/CBUC.tst | 4f67559f991a81ef0fbb70b50dcf59861b509e41 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"BSD-2-Clause"
] | permissive | 9track/hyperion | d621343e7eea27c45db49c7c284dd1680491c82c | 9ceed2cc7261820eef01c55dac9b9a6ae47636b2 | refs/heads/master | 2022-09-15T12:19:09.059528 | 2020-05-28T03:05:29 | 2020-05-28T03:05:29 | 268,044,749 | 3 | 1 | NOASSERTION | 2020-05-30T09:03:56 | 2020-05-30T09:03:55 | null | UTF-8 | Scilab | false | false | 398 | tst | CBUC.tst | *Testcase CBUC (Concurrent Block Update Consistency)
defsym testdur 10 # (maximum test duration in seconds)
mainsize 1
numcpu 2
sysclear
archlvl z/Arch
loadcore "$(testpath)/CBUC.core"
script "$(testpath)/CBUC.subtst" & # ('&' = async thread!)
runtest 300 # (subtst will stop it)
*Done
numcpu 1 # (reset back to default)
|
cf3cb7d2072092bc25ed33677a68d10f29e8964e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3751/CH11/EX11.6/Ex11_6.sce | 7c8c9871e8b24ce70d617bde9a7bef89ba724b6e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 2,058 | sce | Ex11_6.sce | //Fluid Systems - By - Shiv Kumar
//Chapter 11- Centrifugal Pumps
//Example 11.6
//To Calculate the Blade angle at Outlet, Power Required and Overall Efficiency of Pump.
clc
clear
//Given Data:-
Do=80; //Outer Diameter of the Impeller, cm
Q=1; //Discharge, m^3/s
H=80; //Head, m
N=1000; //Speed, rpm
bo=8; //Width at Outlet, cm
Delta_Q_per=3; //Percentage of Leakage Loss(of the Discharge)
Delta_P=10; //Mechanical Loss, kW
eta_H=80/100; //Hydraulic Efficiency
//Data Used:-
rho=1000; //Density of water, kg/m^3
g=9.81; //Acceleration due to gravity, m/s^2
//Computations:-
Do=Do/100; //m
bo=bo/100; //m
uo=%pi*Do*N/60; //m/s
Vfo=Q/(%pi*Do*bo); //m/s
Vwo=g*H/(uo*eta_H); //m/s
Vrwo=uo-Vwo; //m/s
//(a)
beta_o=atand(Vfo/Vrwo); //Blade Angle at Outlet, degrees
//Result1
printf(" Blade Angle at Outlet, beta_o=%.2f Degrees \n",beta_o) //The answer vary due to round off error
//(b)Power Required
Pi=rho*(1+Delta_Q_per/100)*Q*Vwo*uo; //Power delivered by the Impeller, W
P=Pi/1000+Delta_P; //Power required, kW
//Result2
printf(" Power Required, P =%.3f kW \n",P) //The answer vary due to round off error
//(c)Overall Efficiency, eta_o
eta_V=1/(1+Delta_Q_per/100); //Volumetric Efficiency
eta_m=(P-Delta_P)/P; //Mechanical Efficiency
eta_o=eta_H*eta_V*eta_m*100; //In Percentage
//Result3
printf(" Overall Efficiency, eta_o =%.2f Percent \n",eta_o) //The answer vary due to round off error
//Also, Overall Efficiency
eta_o=rho*Q*g*H/(P*1000)*100; //In Percentage
printf("Also, Overall Efficiency, eta_o=%.2f Percent\n",eta_o)
|
0e81285a90908fef464a7d5290a47c7bc7e0fbdf | d5bd4b5a4760efd0a3d16d7c39c7b495c5874d28 | /AnalogDigtitalCommunication/ampmod.sci | 79103c52014cc75cd7c67c741afcd8d7536e6e83 | [] | no_license | APU-PhasedArrayBeamForming/Array-Based-Beam-Forming | 27a61bc3cf93e544364121e508dc4d140b7e0cb1 | 4cde46b7aa3f4e995297ac72fc5038fa0cdf083d | refs/heads/master | 2021-01-25T08:01:17.468481 | 2017-06-15T18:47:40 | 2017-06-15T18:47:40 | 93,699,808 | 1 | 1 | null | 2017-06-15T18:47:40 | 2017-06-08T02:36:01 | Scilab | UTF-8 | Scilab | false | false | 724 | sci | ampmod.sci | function[x,Vm,Vc]=ampmod(Ec,Em,fm,fc,fs)
//Ec -carrier amplitude in volts
//Em - message signal amplitude in volts
//fm - modulating signal frequency Hz
//fc - carrier signal frequency in Hz
//fs - sampling frequency in samples/sec
t = 0:1/fs:1;
Vm = Em*sin(2*%pi*fm*t);
Vc = Ec*sin(2*%pi*fc*t);
x = (Ec+Em*sin(2*%pi*fm*t)).*(sin(2*%pi*fc*t));
subplot(3,1,1)
plot(Vm)
title('Modulating Signal')
subplot(3,1,2)
plot(Vc)
title('Carrier Signal')
subplot(3,1,3)
plot(x);
title('Amplitude Modulated Signal')
endfunction
//Example
//Em = 8; //8 volts
//Ec = 10; //20 volts
//fm = 2; //2 Hz
//fc = 10; //10 Hz
//fs = 100; samples/sec
//ampmod(Ec,Em,fm,fc,fs)
|
3c2059e0883c71e2dd44978f53008020ad4e58f3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /172/CH3/EX3.7/ex7.sce | 3fc0f72ff12e36d2b8a4e3f88fdbae0bc4d0c72d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 399 | sce | ex7.sce | //example 7
//determining the pressure of water
clear
clc
vg=0.12736 //specific volume in m^3/kg for water at 200C
v=0.4 //specific volume in m^3/kg
P1=500 //in kPa
v1=0.42492 //specific volume at P1 in m^3/kg
P2=600 //in kPa
v2=0.35202 //specific volume at P2 in m^3/kg
P=P1+(P2-P1)*(v-v1)/(v2-v1) //calculating pressure by interplotation
disp('hence,the pressure of water is 534.2 kPa') |
714e180596ef3c6892214c847126b2a444f9ffc5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1541/CH2/EX2.37/Chapter2_Example37.sce | 2f8f87d82af460c55bbe4135883c4d37394cb3ce | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 742 | sce | Chapter2_Example37.sce | //Chapter-2, Example 2.37, Page 2.68
//=============================================================================
clc
clear
//INPUT DATA
nFL=0.98;//Efficiency of transformer at full load 0.8 power factor
upf=0.99;//Efficiency of the transformer at half load
Q=500;//Transformer rating in KVA
cosq=0.8;//Power facotor
//CALCULATIONS
L=((Q*1000*cosq)/nFL)-(Q*1000*cosq);//Full load losses in W
L2=((0.5*Q*1000*100)/99)-(0.5*Q*1000);//Half load losses in W
A=[0.25,0.25;
1,0.25]
B=[(0.25*L);
L2]
A=inv(A)*B;//Soving for Pi and Pc
//OUTPUT
mprintf('Constant losses are %3.2f W\nFull load copper losses are %3.2f W',A(1),A(2))
//=================================END OF PROGRAM==============================
|
9134306799fac1ffbbf8026643b821210df8856f | 449d555969bfd7befe906877abab098c6e63a0e8 | /122/CH7/EX7.1/exa7_1.sce | adcd43a4a111f6c6905b1ef1507b1982fe7fff8e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 365 | sce | exa7_1.sce | // Example 7-1
// Steady state sinusoidal output
clear; clc;
xdel(winsid()); //close all windows
// please set the path
// cd "/<your code directory>/"
// exec("plotresp.sci")
s = %s;
w = 1;
K = 5;
T = 0.1;
G = syslin('c',K,T*s + 1);
t = 0:0.1:20;
u = sin(w*t);
plotresp(u,t,G,'Response to sinusoidal input');
// as T*w is small amplitude of output is ~ K (5) |
5565e9fca60b2dd09039a8bdf83b119bdef27879 | 449d555969bfd7befe906877abab098c6e63a0e8 | /683/CH23/EX23.7/B_7.sce | f09ab6a9c3bf9163623c87db3f904643c671022c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 385 | sce | B_7.sce | // sum 23-7
clc;
clear;
Vi=20*5/18;
Vf=0;
m=80;
pmax=1;
u=0.1;
S=50;
KE=0.5*m*Vi^2;
N=KE/(u*S*2);
t=sqrt(N/(pmax*3));
b=3*t;
// printing data in scilab o/p window
printf("KE is %0.1f Nm ",KE);
printf("\n N is %0.2f N ",N);
printf("\n t is %0.1f mm ",t);
printf("\n b is %0.1f mm ",b);
//The difference in the answers are due to rounding-off of values.
|
8eec0a180831e529d808118095ecf313cd610ad5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1223/CH6/EX6.3/Ex6_3.sce | acf742640675028ea02d0ccadb53da6bd0af5130 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 786 | sce | Ex6_3.sce | clear;
clc;
//Example 6.3
Vdd=10;
R1=70.9;//(Kohm)
R2=29.1;//(Kohm)
Rd=5;//(Kohm)
Vtn=1.5;
Kn=0.5;//(mA/V^2)
//lambda=y
y=0.01;//V^-1
Rsi=4;//(Kohm)
Vgsq=Vdd*R2/(R1+R2);
printf('\ngate to source voltage=%.2f V\n',Vgsq)
Idq=Kn*(Vgsq-Vtn)^2;
printf('\ndrain current=%.3f mA\n',Idq)
Vdsq=Vdd-Idq*Rd;
printf('\ndrain to source voltage=%.2f V\n',Vdsq)
g_m=2*Kn*(Vgsq-Vtn);
printf('\ntransconductance=%.3f mA/V\n',g_m)
ro=(y*Idq)^-1;
printf('\noutput resistance=%.2f KOhm\n',ro)
Ri=R1*R2/(R1+R2);
printf('\namplifier input resistance=%.2f Kohm\n',Ri)
Av=-g_m*(ro*Rd/(ro+Rd))*Ri/(Ri+Rsi);
printf('\nsmall signal voltage gain=%.2f\n',Av)
printf('\namplifier input resistance=%.2f Kohm\n',Ri)
Ro=Rd*ro/(Rd+ro);
printf('\namplifier output resistance=%.2f Kohm\n',Ro)
|
1cce086e14d13ecbb26ddeee688c7911249d7583 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1946/CH9/EX9.1/Ex_9_1.sce | 4f6b225c36711cd9ec71744217ff3d72e9b02bbc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 258 | sce | Ex_9_1.sce | // Example 9.1;//quantum efficiency
clc;
clear;
close;
re=4.2*10^6;// Average no. of electron hole pair generated
rp=6*10^6;//no. of photons
h=1200;//wavelength in nano meter
n=round((re/rp)*100);//quantum efficiency
disp(n,"quantum efficiency is")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.