blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 6 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 6 87 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 15 values | visit_date timestamp[us]date 2016-08-04 09:00:04 2023-09-05 17:18:33 | revision_date timestamp[us]date 1998-12-11 00:15:10 2023-09-02 05:42:40 | committer_date timestamp[us]date 2005-04-26 09:58:02 2023-09-02 05:42:40 | github_id int64 436k 586M ⌀ | star_events_count int64 0 12.3k | fork_events_count int64 0 6.3k | gha_license_id stringclasses 7 values | gha_event_created_at timestamp[us]date 2012-11-16 11:45:07 2023-09-14 20:45:37 ⌀ | gha_created_at timestamp[us]date 2010-03-22 23:34:58 2023-01-07 03:47:44 ⌀ | gha_language stringclasses 36 values | src_encoding stringclasses 17 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 1 class | length_bytes int64 5 10.4M | extension stringclasses 15 values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c26b02810babb11d61030804ff5ca2a77fcaed7b | 449d555969bfd7befe906877abab098c6e63a0e8 | /620/CH24/EX24.5/example24_5.sce | 2663ac02aed742053d8f6b0e81df6ededbdf56bd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 301 | sce | example24_5.sce | disp("Part a");
c=0.1*10^(-6);
i=5*10^(-3);
v=10;
f=1000;
x_c=1/(2*%pi*f*c);
z=v/i;
r=sqrt(z^2-x_c^2);
disp("the resistance (in kΩ) required is"); disp(r*10^(-3));
disp("Part b");
deg=-atan(x_c/r)*180/%pi;
disp("the phase angle (in deg) between applied voltage and current is"); disp(deg); |
a8d907c29a7954293ab6ec8a37a211bd24dabc4f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2318/CH4/EX4.1/ex_4_1.sce | d18cc53acc89a6d7c04c2de3a97fa34c444c90f7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 242 | sce | ex_4_1.sce | //Example 4.1: Unknown resistor
clc;
clear;
close;
//given data :
Vd=0.83942;// volt-drop in V
emf=23*10^-6;// in V
Vds=1.01575;// volt-drop in V
Rs=0.10014;// in ohm
Vdt=Vd-emf;// in V
I=Vds/Rs;
R=Vdt/I;
disp(R,"Unknown resistor,R(ohm) = ")
|
ade4767552beda36d032e4fa3c77d71d044fe866 | 5bc3a272ac3972765259062ed2c4abd8ac31eb84 | /EE 324 controls lab/lab3/q4.sce | 0f7d1b72ecd9a2b1e49b80c60a6327984bc13c7f | [] | no_license | ishan-2404/Duaon-mei-yaad-rakhna-XD | 51a268cb15695d78a1bd086d958f402fe6ee093d | bf702ac84c18f7d677a35f9f850e3bfb63a32625 | refs/heads/main | 2023-07-13T17:10:57.650902 | 2021-08-14T07:06:22 | 2021-08-14T07:06:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,806 | sce | q4.sce | s = poly(0,'s');
t = 0:.001:30;
// PART a
G1 = 1/(s^2+1); // undamped
G2 = 1/(s^2+.4*s+1); // underdamped (zeta = 1/5)
G3 = 1/(s^2+3*s+1); // overdamped (zeta = 1.5)
G1 = syslin('c',G1);
G2 = syslin('c',G2);
G3 = syslin('c',G3);
y1 = csim('step',t,G1);
y2 = csim('step',t,G2);
y3 = csim('step',t,G3);
plot2d(t,[y1',y2',y3']);
legend(['Undamped (zeta =0)','Underdamped (zeta =1/5)','overdamped (zeta =1.5)']);
xlabel('Time t (in sec)');
ylabel('Step Response');
title('Step Responses of Un, Under, Over - damped systems');
show_window(1)
param = zeros(2,5); // for over & underdamped only
o = [y2;y3;y1];
steady_state_value = 1 // both over & underdamped have steady state value of 1
for i = 1:2
param(i,1) = 100*(max(o(i,:)) - steady_state_value); // % overshoot
t1 = t(find(o(i,:)>.9))(1); // find function returns array of indices of elements satisfying the criterion
t2 = t(find(o(i,:)>.1))(1); // we want the first instance
param(i,2) = t1-t2; // rise time
param(i,3) = t(find(o(i,:) == max(o(i,:)))); // peak time
param(i,4) = t(find(o(i,:)>.98 & o(i,:) < 1.02))(1); // settle time
param(i,5) = t(find(o(i,:) >= .5))(1) // delay time (time to reach 50% in first oscillation)
end
// PART b
// the damping ratio is still kept as 1/5
t = 0:.001:15;
o = zeros(5, length(t));
f_range = [1 3 5 7 9]; // note that steady state value is independent of f and is = 1
param_b = zeros(5,5);
for i = 1:5
f = f_range(i);
G = f^2/(s^2+f^2+.4*f*s);
G = syslin('c',G);
o(i,:) = csim('step',t,G);
param_b(i,1) = 100*(max(o(i,:)) - steady_state_value); // % overshoot
t1 = t(find(o(i,:)>.9))(1); // find function returns array of indices of elements satisfying the criterion
t2 = t(find(o(i,:)>.1))(1); // we want the first instance
param_b(i,2) = t1-t2; // rise time
param_b(i,3) = t(find(o(i,:) == max(o(i,:)))); // peak time
param_b(i,4) = t(find(o(i,:)>.98 & o(i,:) < 1.02))(1); // settle time
param_b(i,5) = t(find(o(i,:) >= .5))(1);
end
plot2d(t,o');
legend(['f = 1','f = 3', 'f = 5', 'f = 7', 'f = 9']);
xlabel('Time t (in sec)');
ylabel('Step Response');
title('Step Responses of Underdamped systems with varying frequencies');
show_window(2)
plot2d(f_range,param_b(:,[2 3 4 5]));
legend(['Rise time', 'Peak Time', 'Settle Time', 'Delay Time']);
xlabel('Freq');
ylabel('Various parameter values');
title('Variation of various parameters with damping frequency');
show_window(3)
|
2519fc390216e5ed200a11fc3dacc69678345f07 | 449d555969bfd7befe906877abab098c6e63a0e8 | /52/CH5/EX5.6/Example5_6.sce | 0c8717271a1f8622036bb1ac6c262776706d18c7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 290 | sce | Example5_6.sce | //Example 5.6
//To Find out the order of the Filter using Chebyshev Approximation
clear;
clc ;
close ;
ap=3;//db
as=16;//db
fp=1000;//Hz
fs=2000;//Hz
op=2*%pi*fp;
os=2*%pi*fs;
N=acosh(sqrt((10^(0.1*as)-1)/(10^(0.1*ap)-1)))/acosh(os/op);
disp(ceil(N),'Order of the filter, N ='); |
32367a9ae93d88a0ae94f5dc982730936edf1d81 | 9e81e75d5f9cddfd3c9fe8eb932ce2e9de0fdf39 | /GUI/interface.sce | 778be3a5e202389ddddc59138f43f516493afa4f | [] | no_license | pimentafm/TPEAM313_ajustLinearInjuncionado | 1c2735218973cac3374cbfc951565675bc538945 | 2fcba16336844ff38f1e6089cd492c2666f68880 | refs/heads/master | 2021-08-21T21:03:17.515970 | 2017-11-29T02:46:29 | 2017-11-29T02:46:29 | 112,415,589 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 26,065 | sce | interface.sce | // Topografia IV
// Allan Turini Speroto 78233
// Fernando Martins Pimenta 80018
// Gabriel Batista Freitas 82718
// Matheus Lopes Vieira 80020
// Interface gráfica
// Tela da aplicação
f=figure('figure_size',[1000,480],...
'auto_resize','on',...
'figure_name','Ajustamento por Interseção Linear',...
'BackgroundColor', [0.9 0.9 0.9],...
'dockable','off',...
'infobar_visible','on',...
'toolbar_visible','off',...
'menubar_visible','off',...
'default_axes','on',...
'visible','off');
handles.dummy = 0;
handles.txt_estacao=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','bold',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.02,0.8973799,0.2671875,0.0393013],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','Dados da Estação',...
'Style','text',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','txt_estacao',...
'Callback','');
handles.txt_est_a=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.02,0.799476,0.0259375,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','a:',...
'Style','text',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','txt_est_a',...
'Callback','');
handles.txt_est_b=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.0205804,0.7114597,0.0259375,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','b:',...
'Style','text',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','txt_est_b',...
'Callback','');
handles.txt_est_ece=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.0211607,0.6252713,0.0459375,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','ece:',...
'Style','text',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','txt_est_ece',...
'Callback','');
handles.txt_est_ecp=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.0217411,0.5390830,0.0459375,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','ecp:',...
'Style','text',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','txt_est_ecp',...
'Callback','');
handles.txt_est_desvDir=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.2320313,0.7114597,0.183125,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','Desvio da Direção:',...
'Style','text',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','txt_est_desvDir',...
'Callback','');
handles.txt_est_erro=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.2320313,0.7976481,0.0453125,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','Erro:',...
'Style','text',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','txt_est_erro',...
'Callback','');
handles.txt_nivelConf=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.2320313,0.6252713,0.1871875,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','Nível de Confiança:',...
'Style','text',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','txt_nivelConf',...
'Callback','');
handles.txt_varPriori=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.2320313,0.5390829,0.1871875,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','Variância a Priori:',...
'Style','text',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','txt_nivelConf',...
'Callback','');
handles.edt_a=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.1023214,0.7976481,0.0859375,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','3.000',...
'Style','edit',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','edt_a',...
'Callback','');
handles.edt_b=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.1023214,0.7114597,0.0859375,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','3.000',...
'Style','edit',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','edt_b',...
'Callback','');
handles.edt_ece=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.1023214,0.6252713,0.0859375,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','3.000',...
'Style','edit',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','edt_ece',...
'Callback','');
handles.edt_ecp=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.1023214,0.5390830,0.0859375,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','3.000',...
'Style','edit',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','edt_ecp',...
'Callback','');
handles.edt_desvDir=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.4346875,0.7114597,0.0796875,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','5.000',...
'Style','edit',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','edt_desvDir',...
'Callback','');
handles.edt_erro=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.4346875,0.7976481,0.0796875,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','0.0001',...
'Style','edit',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','edt_erro',...
'Callback','');
handles.edt_nivelConf=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.4346875,0.6252713,0.0796875,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','95',...
'Style','edit',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','edt_nivelConf',...
'Callback','');
handles.edt_varPriori=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','left',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.4346875,0.5390829,0.0796875,0.0742358],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','1.0',...
'Style','edit',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','edt_nivelConf',...
'Callback','');
handles.abrirArquivo=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','center',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.0217411,0.4283843,0.1796875,0.0720524],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','Abrir Arquivo',...
'Style','pushbutton',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','abrirArquivo',...
'Callback','abrirArquivo_callback(handles)');
handles.calcular=uicontrol(f,'unit','normalized',...
'BackgroundColor',[-1,-1,-1],...
'Enable','on',...
'FontAngle','normal',...
'FontName','DejaVu Sans',...
'FontSize',[12],...
'FontUnits','points',...
'FontWeight','normal',...
'ForegroundColor',[-1,-1,-1],...
'HorizontalAlignment','center',...
'ListboxTop',[],...
'Max',[1],...
'Min',[0],...
'Position',[0.8015625,0.0283843,0.1796875,0.0720524],...
'Relief','default',...
'SliderStep',[0.01,0.1],...
'String','Calcular',...
'Style','pushbutton',...
'Value',[0],...
'VerticalAlignment','middle',...
'Visible','on',...
'Tag','calcular',...
'Callback','calcular_callback(handles)');
// Cria gráfico na tela
handles.grafico = newaxes();
handles.grafico.margins = [ 0 0 0 0];
handles.grafico.axes_bounds = [0.5599341,0.1014150,0.420000,0.7207547];
handles.grafico.visible = 0;
handles.grafico.title.text = "Elipses dos Erros";
handles.grafico.title.font_style = 4;
handles.grafico.title.font_size = 3;
handles.grafico.font_style = 4;
handles.grafico.x_label.font_style = 4;
handles.grafico.x_label.text = "X";
handles.grafico.y_label.font_size = 3;
handles.grafico.y_label.text = "Y";
sca(handles.grafico);
f.visible = "on";
//////////
// Callbacks are defined as below. Please do not delete the comments as it will be used in coming version
//////////
function abrirArquivo_callback(handles)
[num, header_inj, header_dist, inj, dist] = lerArquivo(); // return modifica a variável por referência
[num, header_inj, header_dist, inj, dist] = return(num, header_inj, header_dist, inj, dist);
endfunction
|
fae0b880aa545d6031aece43a7c200002442e82e | b37ac7105c45cf46c3d4a422d28ad4977fa8f380 | /gradient-descent/fitting-line-using-gradient-descent.sci | c950814829fffadb560473d7c71560ebd0ca5ce9 | [] | no_license | svrealtime/publecture-ai-smalldata | d0045ed9852d03e29c829ba7aa6eb7611201e57c | 7479f2eaaef60d2e425828229e3b1f3648418168 | refs/heads/master | 2020-07-17T13:50:41.277701 | 2017-06-14T10:43:51 | 2017-06-14T10:43:51 | 94,319,589 | 1 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,806 | sci | fitting-line-using-gradient-descent.sci | // given 5 samples (c.q. approximated points) of a line
// determine the parameters of the best fitting line
// i.e. a and b in l:y = ax + b
// via gradient descent
// e.g. y=2x-3
xx = 1:5;
yy = [-1.1, 0.9, 3.2, 4.9,7.2]; // approximations
function [a, b] = update_one_step(a, b, xx, yy, lambda) // lambda is learning rate
rr = a*xx + b - yy; // (minus) residuals
nabla_a = rr*xx'; // gradient w.r.t. a
nabla_b = rr*ones(xx)'; // gradient w.r.t. b
// update
a = a - lambda*nabla_a; // gradient descent
b = b - lambda*nabla_b;
endfunction
function pr_gr_ss = progress(aa,bb)
delta_aa = max(aa) - min(aa);
delta_bb = max(bb) - min(bb);
pr_gr_ss = sqrt(delta_aa*delta_aa + delta_bb*delta_bb);
endfunction
function [a,b] = gradient_descent(xx,yy)
aa = 1; // initiate sequence of a's
bb = 0; // initiate sequence of b's
lambda = .01; // learning rate
epsilon = 10^-6; // progress tolerance
// fill sequences aa and bb with 4 extra values
for n = 1:4
[a,b] = update_one_step(aa($), bb($), xx, yy, lambda);
aa = [aa, a]; bb = [bb, b];
end
// continu if progress in not small enough
while progress(aa,bb)>epsilon
[a,b] = update_one_step(aa($), bb($), xx, yy, lambda);
aa = [aa(2:$),a]; bb = [bb(2:$), b];
end
// return tail values
a = aa($);
b = bb($);
endfunction
// calculate and report
[a,b] = gradient_descent(xx,yy);
disp('a = '+string(a)); // a = 2.0599923
disp('b = '+string(b)); // b = -3.1599722
function y = f(x)
y = a*x+b;
endfunction
clf()
CROSS = -2;
plot2d(xx,yy,CROSS);
x_min = min(xx); x_max = max(xx);
RED = 5;
plot2d([x_min,x_max],[f(x_min),f(x_max)],RED);
xtitle('best fitting line, using Gradient Descent');
xlabel('x'); ylabel('y');
|
1549df5fe11878d935025f33622a14d7b1288b58 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2300/CH8/EX8.14.5/Ex8_5.sce | 5640630aa0c6b1bdc3a72107dfcde74407bcf78c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 782 | sce | Ex8_5.sce |
//scilab 5.4.1
//windows 7 operating system
//chapter 8:Junction Transistors:Biasing and Amplification
clc;
clear;
//given data
Rl=5*10^3; //Load resistance in ohms
hie=1*10^3; //h parameter of the transistor in terms of ohms
hre=5*10^-4; //h parameter of the transistor
hfe=100; //h parameter of the transistor
hoe=25*10^-6; //h parameter of the transistor in terms of mho
Rg=1*10^3; //source reistance in ohms
AI=(-hfe)/(1+(hoe*Rl)); //Current gain
disp(AI,'AI=');
Ri=hie+(AI*hre*Rl); //input resistance in ohms
disp('ohms',Ri,'Ri=');
AVo=AI*Rl/(Rg+Ri); //Overall voltage gain including source resistance
disp(AVo,'AVo=');
APo=AVo*AI; //Overall voltage gain including source resistance
disp(APo,'APo=');
|
97910f1448b35c19825fa7cba585f06188614153 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/HR1.prev.tst | eceb1df2e2fc0f6780a0b52f602547a1d9b310ba | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,996 | tst | HR1.prev.tst | polys[0]=0
polys[1]=1
polys[2]=1
polys[3]=-1
order=2
initialize: mN=-1, mRElen=3, mNPlen=1, mOrder=2, mLinit=2
setRE(0,0): [*0,0,0] -> [*0,0,0]
result=0, RE=[*0,0,0]
0 0
setRE(1,1): [0,*0,0] -> [0,*1,0]
result=1, RE=[0,*1,0]
1 1
pvals[3]=-1
pvals[2]=1
pvals[1]=1
pvals[0]=0
sum: 0 (pvals[1]=1, RE=[0,1,*0]) -> 0 (pvals[1]=1, RE=[*0,1,0])
sum: 0 (pvals[2]=1, RE=[*0,1,0]) -> 1 (pvals[2]=1, RE=[0,*1,0])
setRE(2,1): [0,1,*0] -> [0,1,*1]
result=1, RE=[0,1,*1]
2 1
pvals[3]=-1
pvals[2]=1
pvals[1]=1
pvals[0]=0
sum: 0 (pvals[1]=1, RE=[*0,1,1]) -> 1 (pvals[1]=1, RE=[0,*1,1])
sum: 1 (pvals[2]=1, RE=[0,*1,1]) -> 2 (pvals[2]=1, RE=[0,1,*1])
setRE(0,2): [*0,1,1] -> [*2,1,1]
result=2, RE=[*2,1,1]
3 2
pvals[3]=-1
pvals[2]=1
pvals[1]=1
pvals[0]=0
sum: 0 (pvals[1]=1, RE=[2,*1,1]) -> 1 (pvals[1]=1, RE=[2,1,*1])
sum: 1 (pvals[2]=1, RE=[2,1,*1]) -> 3 (pvals[2]=1, RE=[*2,1,1])
setRE(1,3): [2,*1,1] -> [2,*3,1]
result=3, RE=[2,*3,1]
4 3
pvals[3]=-1
pvals[2]=1
pvals[1]=1
pvals[0]=0
sum: 0 (pvals[1]=1, RE=[2,3,*1]) -> 2 (pvals[1]=1, RE=[*2,3,1])
sum: 2 (pvals[2]=1, RE=[*2,3,1]) -> 5 (pvals[2]=1, RE=[2,*3,1])
setRE(2,5): [2,3,*1] -> [2,3,*5]
result=5, RE=[2,3,*5]
5 5
pvals[3]=-1
pvals[2]=1
pvals[1]=1
pvals[0]=0
sum: 0 (pvals[1]=1, RE=[*2,3,5]) -> 3 (pvals[1]=1, RE=[2,*3,5])
sum: 3 (pvals[2]=1, RE=[2,*3,5]) -> 8 (pvals[2]=1, RE=[2,3,*5])
setRE(0,8): [*2,3,5] -> [*8,3,5]
result=8, RE=[*8,3,5]
6 8
pvals[3]=-1
pvals[2]=1
pvals[1]=1
pvals[0]=0
sum: 0 (pvals[1]=1, RE=[8,*3,5]) -> 5 (pvals[1]=1, RE=[8,3,*5])
sum: 5 (pvals[2]=1, RE=[8,3,*5]) -> 13 (pvals[2]=1, RE=[*8,3,5])
setRE(1,13): [8,*3,5] -> [8,*13,5]
result=13, RE=[8,*13,5]
7 13
pvals[3]=-1
pvals[2]=1
pvals[1]=1
pvals[0]=0
sum: 0 (pvals[1]=1, RE=[8,13,*5]) -> 8 (pvals[1]=1, RE=[*8,13,5])
sum: 8 (pvals[2]=1, RE=[*8,13,5]) -> 21 (pvals[2]=1, RE=[8,*13,5])
setRE(2,21): [8,13,*5] -> [8,13,*21]
result=21, RE=[8,13,*21]
8 21
pvals[3]=-1
pvals[2]=1
pvals[1]=1
pvals[0]=0
sum: 0 (pvals[1]=1, RE=[*8,13,21]) -> 13 (pvals[1]=1, RE=[8,*13,21])
sum: 13 (pvals[2]=1, RE=[8,*13,21]) -> 34 (pvals[2]=1, RE=[8,13,*21])
setRE(0,34): [*8,13,21] -> [*34,13,21]
result=34, RE=[*34,13,21]
9 34
pvals[3]=-1
pvals[2]=1
pvals[1]=1
pvals[0]=0
sum: 0 (pvals[1]=1, RE=[34,*13,21]) -> 21 (pvals[1]=1, RE=[34,13,*21])
sum: 21 (pvals[2]=1, RE=[34,13,*21]) -> 55 (pvals[2]=1, RE=[*34,13,21])
setRE(1,55): [34,*13,21] -> [34,*55,21]
result=55, RE=[34,*55,21]
10 55
pvals[3]=-1
pvals[2]=1
pvals[1]=1
pvals[0]=0
sum: 0 (pvals[1]=1, RE=[34,55,*21]) -> 34 (pvals[1]=1, RE=[*34,55,21])
sum: 34 (pvals[2]=1, RE=[*34,55,21]) -> 89 (pvals[2]=1, RE=[34,*55,21])
setRE(2,89): [34,55,*21] -> [34,55,*89]
result=89, RE=[34,55,*89]
11 89
|
b6c013460e814b573d9bbb594dc00f520b00315d | c3f30c57c194640b9ce943b27456d4d7bd7a6706 | /exp6/exp6.2(geometric-mean).sce | a0f8fe478e2438ff8a25782ca6410433f9008fba | [] | no_license | dikshitakambri/Image-Processing-Using-Scilab | af7d2f738c271edb0f12c9825b7a044233668f67 | 9cb0a7f2b0ac402c54bd297f28d578a2905c3da8 | refs/heads/master | 2023-04-18T00:11:42.093266 | 2021-04-27T08:23:52 | 2021-04-27T08:23:52 | 362,016,834 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 72 | sce | exp6.2(geometric-mean).sce | //Geometric Mean Filter
//Dikshita Kambri 118A2044 A3
clc;
clear all;
|
efaa9c0ec9cef6361982a45e0c73d0f52eb8c86f | 638e584c816a7bd11ec96d6be4e933243edfcb1d | /Fortran/mur-insta/run.sci | c34fe4ef9a6619ae6f4bc52a777601940acddd70 | [] | no_license | sgibout/M2S | f7c3ba5a7b37a4bb3ab0ce34e6b14ea1a4e47b6f | 7614c676373747cb609b88bccd02133da097366b | refs/heads/master | 2022-10-22T14:10:02.950774 | 2022-10-19T14:54:53 | 2022-10-19T14:54:53 | 23,542,373 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,868 | sci | run.sci | // ***********************************************************
// ** Exemple de code - Cours M2S - ENSGTI 2A - Energétique **
// ** Stéphane Gibout - 2014 **
// ** **
// ** Mur Instationnaire - Schéma de Crank-Nicholson **
// ** **
// ***********************************************************
function [ T ] = run(M,I,D,L,rho,C,k,T0,TG,TD)
// -------------------------------------------------------
// Valeurs calculées
// -------------------------------------------------------
// Pas de temps
dt = D/I
// Pas de temps
dx = L/M
// Coefficient <<alpha>>
a = (dt*k)/(rho*C*dx*dx);
// -------------------------------------------------------
// Déclaration des vecteurs et matrices
// avec remplissage . CI
// -------------------------------------------------------
// Matrice A : je profite ici de la structure particulière
A = diag([(1+1.5*a) , (1+a)*linspace(1,1,M-2) , (1+1.5*a) ]);
A = A + diag(-0.5*a*linspace(1,1,M-1),1) + diag(-0.5*a*linspace(1,1,M-1),-1);
// Matrice B : idem
B = diag([(1-1.5*a) , (1-a)*linspace(1,1,M-2) , (1-1.5*a) ]);
B = B + diag(0.5*a*linspace(1,1,M-1),1) + diag(0.5*a*linspace(1,1,M-1),-1);
// Vecteur C : on met des 0 partout puis on modifie les deux seuls valeurs non nulles
C = zeros(M,1);
C([1 M])= 2*a*[TG TD]';
// On peut maintenant calculer les matrices <<primes>>
AA = inv(A)*B;
CC = inv(A)*C;
// Chaque colonne correspond au champs de température pour un pas
// de temps donné. Puisque la numérotation des indices débute à 1
// avec Scilab, on doit décaler les indices de colonne...
T = zeros(M,I+1);
T(:,1) = T0;
// -------------------------------------------------------
// Résolution
// -------------------------------------------------------
for i=1:I
T(:,i+1) = AA*T(:,i) + CC;
end
// -------------------------------------------------------
// C'est tout !
// -------------------------------------------------------
endfunction
M = 100; // Nombre de noeuds en espace
I = 7200; // Nombre de pas de temps
L = 0.1; // Epaisseur du mur [m]
D = 5000; // Durée totale [s]
rho = 1000; // Masse volumique [kg/m3]
C = 1000; // Capacité calorifique [J/(kg.K)]
k = 1; // Conductivité thermique [W/(m.K)]
T0 = 20; // Température initiale [°C]
TG = 30; // Température imposée en x=0 [°C]
TD = 00; // Température imposée en x=L [°C]
[ T ] = run(M,I,D,L,rho,C,k,T0,TG,TD)
clf();
plot2d(linspace(0,100*L,M),T(:,linspace(1,I+1,10)))
xlabel("x [cm]");
|
6511fd4e4235383ef47ee84899abf44dcd5cdc7c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3557/CH16/EX16.1/Ex16_1.sce | da69e6e95941fddb7eb3588a1e046d83176bd140 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 240 | sce | Ex16_1.sce | //Example 16.1//
l=400*10^-9;//m //meter //wavelength
h=(0.6626*10^-33);//J s //Joule-second //Plank's constant
a=0.2998*10^9;//m/s //speed of light
c=(6.242*10^18);//eV/J //1 Coulomb of charge
E=((h*a)/l)*c
mprintf("E = %f eV",E)
|
c660e6a53c06a39a6b731440633ec97c45764c14 | e7055fdf94e8a24293cab7ccbeac12039d6fe512 | /macros/detectBRISKFeatures.sci | 9626e0658c4f7d4538f3dfc8dfa9670680d70182 | [] | no_license | sidn77/FOSSEE-Image-Processing-Toolbox | 6c6b8b860f637362a73d28dcfe13e87d18af3e2c | 8dfbdbdfd38c73dc8a02d1a25678c4a6a724fe18 | refs/heads/master | 2020-12-02T16:26:06.431376 | 2017-11-08T17:54:03 | 2017-11-08T17:54:03 | 96,552,565 | 0 | 0 | null | 2017-07-07T15:37:18 | 2017-07-07T15:37:18 | null | UTF-8 | Scilab | false | false | 3,449 | sci | detectBRISKFeatures.sci | // Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
// Author: Shashank Shekhar & Siddhant Narang
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
function [varargout] = detectBRISKFeatures(image, varargin)
// This function is used to detect BRISK(Binary Robust Invariant Scalable Keypoints) Features in a grayscale Image.
//
// Calling Sequence
// result = detectBRISKFeatures(Image);
// result = detectBRISKFeatures(Image, Name, Value, ...)
//
// Parameters
// result: BRISKPoints struct which contains Location of KeyPoints, Orientation, Metric, SignOfLaplacian, Scale and Count of the features.
// Image : Input image, specified as a A-by-N 2D grayscale.
// MinContrast : (Optional) The minimum difference in intensity between a corner and its surrounding region. (Default: 0.2). The value must be between 0 and 1.
// NumOctaves : (Optional)The number of Octaves that the detector uses. (Default - 3) The value must be an integer scalar in between 1 and 4.
// MinQuality : (Optional) This specifies the minimum quality accepted for corners. (Default - 0.1) The value must be between 0 and 1.
// ROI : (Optional) Region Of Interest. This is taken as a vector [u v width height]. When specified, the function detects the key points within region of area width*height with u and v being the top left corner coordinates.
//
// Description
// This function returns the BRISK features detected in a 2D grayscale image.
//
// Examples
// stacksize('max');
// img_1 = imread("images/table.jpg", 0);
// img_2 = imread("images/table1.jpg", 0);
// lis1 = detectBRISKFeatures(img_1);
// lis2 = detectBRISKFeatures(img_2);
// features_1 = extractFeatures(img_1, lis1.KeyPoints, "BRISKPoints", "Metric", lis1.Metric, "Orientation", lis1.Orientation, "Scale", lis1.Scale);
// features_2 = extractFeatures(img_2, lis2.KeyPoints, "BRISKPoints", "Metric", lis2.Metric, "Orientation", lis2.Orientation, "Scale", lis2.Scale);
// [matches, distance] = matchFeatures(features_1.Features, features_2.Features);
// matchedImage = drawMatch(img_1, img_2, lis1.KeyPoints, lis2.KeyPoints, matches, distance);
//
// See also
// imread
// drawMatch
// drawKeypoints
// matchFeatures
// extractFeatures
//
// Authors
// Shashank Shekhar
// Siddhant Narang
image_list = mattolist(image);
[lhs, rhs] = argn(0)
if rhs > 9 then
error(msprintf("Too many input arguments"))
end
if lhs > 1 then
error(msprintf("Too many output arguments"))
end
select rhs
case 1 then
[a b c d e]= ocv_detectBRISKFeatures(image_list)
case 3 then
[a b c d e]= ocv_detectBRISKFeatures(image_list, varargin(1), varargin(2))
case 5 then
[a b c d e]= ocv_detectBRISKFeatures(image_list, varargin(1), varargin(2), varargin(3), varargin(4))
case 7 then
[a b c d e]= ocv_detectBRISKFeatures(image_list, varargin(1), varargin(2), varargin(3), varargin(4), varargin(5), varargin(6))
case 9 then
[a b c d e]= ocv_detectBRISKFeatures(image_list, varargin(1), varargin(2), varargin(3), varargin(4), varargin(5), varargin(6), varargin(7), varargin(8))
end
varargout(1) = struct('KeyPoints', a, 'Orientation', b, 'Metric', c ,'Scale', d, 'Count', e);
endfunction
|
720053febd3083b6251ecf48a035ecc9b197bc36 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3440/CH15/EX15.1/Ex15_1.sce | 56b9bb35b69f63c4a1c7acb2fb40d7fd0575ebad | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 60 | sce | Ex15_1.sce | clc
l=9
r=1.3//kohm
res=l+r
disp(res,"res in k ohm")
|
62698e7b1868584a92361c6542ba5dc55eeaf470 | 9ad712cefe61d85b01d2448a5b74c34296ee7e5f | /Lab_PD_Controller.sce | 2a39cb14e9f3b788a855da3e5a558d7c32115528 | [] | no_license | CoE-Warintorn/Control | a50f7cf26d0e80e3b90ea9dc3cac097b67f94d49 | 9572040e0e41d8d355f51032cd2ac98b1d04db64 | refs/heads/master | 2020-03-16T06:56:11.148006 | 2018-05-08T07:02:35 | 2018-05-08T07:02:35 | 132,565,771 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 289 | sce | Lab_PD_Controller.sce | s = poly(0, 's');
t = 0:0.01:15;
//a=4;
R = 2;
L = 1;
C = 1;
R1 = 2;
C1 = 10e-3;
//Gs1 = (1/L) / (s + (R/L));
Gs2 = 1 / (R * C * s + 1);
Gs3 = 1 / (R1 * C1 * s + 1);
//plot(t,csim('step',t,Gs1),t,csim('step',t,Gs2));
plot(t,csim('step',t,Gs2),t,csim('step',t,Gs3));
xgrid();
|
021ad502742c01683d74d8e33c9268758319bfb8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3718/CH14/EX14.2/Ex14_2.sce | 49fe2e62a6213d89be53062083f283c2cab846c8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 543 | sce | Ex14_2.sce | //Chapter 14: Water Treatment
//Problem: 2
clc;
//Declaration of Variables
wt1 = 9.3 //in mg/L
wt2 = 17.4 //in mg/L
wt3 = 8.7 //in mg/L
wt4 = 12.6 //in mg/L
//Solution
temp_h = wt1 * 100 / 146 + wt2 * 100 / 162 //where temp_h is temporary hardness
perm_h = wt3 * 100 / 95 + wt4 * 100 / 136 //where perm_h is permanent hardness
total_h = temp_h + perm_h //where total_h is total hardness
mprintf("Temporary hardness: %.2f mg/L\n",temp_h)
mprintf(" Total hardness: %.2f mg/L",total_h)
|
2e053958e507dcff62d467dd1b2f9de56d80b8b3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2198/CH1/EX1.11.4/Ex1_11_4.sce | 06aee80cb1a2f27cd07e0d436d331ef6182abc37 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex1_11_4.sce | //Ex 1.11.4
clc;clear;close;
format('v',9);
//Given :
rho=3*10^5*10^-2;//ohm-m
T1=30+273;//K
mu_n=0.13;//m^2/V-s
mu_p=0.05;//m^2/V-s
q=1.6*10^-19;//Coulomb
T2=100+273;//K
sigma_i=1/rho;//(ohm-m)^-1
ni1=sigma_i/q/(mu_n+mu_p);//electrons/m^3
disp(ni1,"Intrinsic concentration at 30 degree C(per m^3) : ");
k=8.62*10^-5;//eV/K(Boltzman constant)
EGO=1.21;//V(Energy band gap)
Ao=ni1^2/(T1^3*exp(-EGO/k/T1));//constant
ni2=sqrt(Ao*T2^3*exp(-EGO/k/T2));//per cm^3
disp(ni2,"Intrinsic concentration at 100 degree C(per m^3) : ");
|
761dc76905f38c463b99f798e8270eff4a514938 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3685/CH8/EX8.3/Ex8_3.sce | 6373b23fd5d4df0b70d0da97e144f8de1c51f6d9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 528 | sce | Ex8_3.sce | clc
Tw_ = 75 // Initial temperature of water in degree Celsius
Ts_ = 5 // Atmospheric temperature in degree Celsius
m = 40 // mass of water in kg
cp = 4.2 // Specific heat capacity of water in kJ/kgK
printf("\n Example 8.3")
Tw= Tw_+273 // Initial temperature of water in K
Ts = Ts_+273 // Atmospheric temperature in K
Q1 = m*cp*(Tw-Ts) // Heat transfer
W = integrate('m*cp*(1-(Ts/T))','T',Ts,Tw)
UE = Q1-W // Available energy
printf("\n Available energy is %d kJ",UE)
//The answers vary due to round off error
|
49056bfe43ba954615b62810d898ce194a2ebf8f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1076/CH5/EX5.6/5_6.sce | 9e6a9cfe9ffa762a96cf2f174137874f755df247 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 889 | sce | 5_6.sce | clear
clc
safety=2
d=1.95e-2
A=2.25e-4
E=91.4 *1e9
alpha=18.44 *1e-6
Temp21=10
Temp22=40
Tmax=77900
w=8.31
span=250
Fw=378 * d
Fw=round(Fw*100)/100
Ft1=sqrt(w^2 + Fw^2)
T1=Tmax/safety
Ft2=w
c_1=1
c_2=T1 -(alpha * A * E * (Temp22-Temp21)) - A*E*Ft1^2 * span^2 /(24*T1^2)
c_3=0
c_4=A*E*Ft2^2 * span^2 /24
pol=poly([-c_4 -c_3 -c_2 c_1], "xx", "c")
T2s=roots(pol)
T2=T2s(1)
T2=round(T2)
Sag1= w * span *span / (8 * T2)
//difference in results is seen as the author has used hit and trial aproach to solve T2, while the program uses iterative method to solve equations. The equations have the same coefficients
mprintf("sag at erection= %.2f m", Sag1)
disp("difference in results is seen as the author has used hit and trial aproach to solve T2, while the program usesiterative method to solve equations. The equations have the same coefficients")
|
301d21105534592b5f24c10dd4e54d7c15b8bee2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2522/CH12/EX12.3/exm12_3.sce | c3db03c729785d87306e8e30b9cbb1695c40f768 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,110 | sce | exm12_3.sce | // page no 375
// example no 12.3
// CHECK PENDING INTERRUPT
clc;
printf('RIM instruction interpretation \n \n');
printf('D7=SID Serial input data if any \n');
printf('D6,D5,D4= I7.5,I6.5,I5.5 Pending interrupts: 1= pending \n');
printf('D3=IE Interrupt enable flag: 1= enabled \n');
printf('D2,D1,D0= M7.5,M6.5,M5.5 Interrupt masks: 1= masked \n \n \n');
printf('Instructions \n \n');
printf(' RIM \n'); // Read interrupt mask
printf(' MOV B,A \n'); // save mask information
printf(' ANI 20H \n'); // check whether RST 6.5 is pending
printf(' JNZ NEXT \n');
printf(' EI \n');
printf(' RET \n'); // RST 6.5 is not pending, return to main program
printf('NEXT: MOV A,B \n'); // get bit pattern; RST 6.5 is pending
printf(' ANI 0DH \n'); // enables RST 6.5 by setting D1=0
printf(' ORI 08H\n'); // enable SIM by setting D3=1
printf(' SIM \n');
printf(' JMP SERV \n'); // jump to service routine for RST 6.5
|
dad1e803e1d703fe9b359b296a1227ee5dc59c64 | 449d555969bfd7befe906877abab098c6e63a0e8 | /821/CH7/EX7.2/7_2.sce | c87167862012b9b11163e04dd51bd8f79ae8c403 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,112 | sce | 7_2.sce | i=3;//current passed through the solution in amps//
t=5;//amount of time current passed through in hours//
q=(i*t)/26.8;//quantity of electricity passed in farads//
printf('Quantity of electricity passed=q=%fFarads',q);
printf('\nIf all the current is used in the deposition of Ni,i.e 100percent efficiency 0.56 equivalents of Ni should be deposited at the cathode.');
N=0.56*0.60;//No. of equivalents of Ni deposited//
printf('\nNo. of equivalents of Ni deposited=N=%f',N);
w=58.71;//weight of Ni in grams//
wd=N*w/2;//weight of Ni actually deposited in grams//
printf('\nWeight of Ni actually deposited=wd=%fgrams',wd);
TA=32;//total area of the cathode in cm^2 for 2faces//
d=8.9;//density of Ni in gram per cm^3//
V=wd/d;//volume of the Ni deposited in cm^3//
printf('\nVolume of the Ni deposited=V=%fcm^3',V);
T=V/TA;//thickness of the deposit in cm//
printf('\nThickness of the deposit=T=%fcm',T);
printf('\nOut of 0.56Farad, 0.336Farad is used for Ni deposition\nhence 0.224Farad is used for liberation of hydrogen.');
printf('\n0.224 equivalent of hydrogen is=11.2*0.224=2.51litres.');
|
43dfae87c4b3603b990c16cc82936f74db781f14 | 449d555969bfd7befe906877abab098c6e63a0e8 | /443/CH9/EX9.3/9_3.sce | f8276e2b7bedd778db046ca5ec071634284b8b34 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 596 | sce | 9_3.sce | pathname=get_absolute_file_path('9_3.sce')
filename=pathname+filesep()+'9_3_data.sci'
exec(filename)
//Power output per cylinder
Pc=P/k
//Fuel consumption per cylinder
Fc=Pc*bsfc
//Fuel injected per cycle
mf=(Fc/60)/(N/2)
//Time for injection
t=(Tc*60)/(360*N)
//Pressure at beginning
dpb=P1-Pc1
//Pressure at end
dpe=P2-Pc2
//Average pressure difference
Pd=(dpb+dpe)/2
//Velocity of injection
Vinj=Cd*sqrt(2*((Pd)*10^5)/Pf)
//Volume of fuel injected per cycle
Vf=mf/(Pf)
//Area of orifice
Af=Vf/(Vinj*t)
printf("\n\nRESULTS\n\n")
printf("\nArea of orifice:%f\n",Af*10^6) |
81e90e2236cca6aaa3f42bb51310bafd0e29d11e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2672/CH1/EX1.1/Ex1_1.sce | 1e54fb568d9864016677c0214a378772ffebb8cb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 264 | sce | Ex1_1.sce | //Example 1_1
clc;
clear;
close;
format('v',6);
//given data :
Vs=20;//V
Rse=5;//ohm(Internal Resistance)
//Source Conversion
Is=Vs/Rse;//A
Rsh=Rse;//ohm(same)
disp(Is,"Equivalent current source(A)");
disp(Rsh,"Internal resistance in parallel(ohm)")
|
70b54b0724b6b241053c592d0dd8dec1ec985981 | 449d555969bfd7befe906877abab098c6e63a0e8 | /339/CH6/EX6.1/ex6_1.sce | cf22485dae30e0f01e4c96aab0feef0bac2bd4e1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 802 | sce | ex6_1.sce | //define physical constants
q=1.60218e-19;
k=1.38066e-23;
// define material properties
Nc_300=[1.04e19 2.8e19 4.7e17];
Nv_300=[6e18 1.04e19 7e18];
mu_n= [3900 1500 8500];
mu_p= [1900 450 400];
Wg= [0.66 1.12 1.424];
T0=273;
T=-50:250; // temperature range in centigrade
sigma=zeros(3, length(T));
for s=1:3 //loop through all semi conductor materials
Nc=Nc_300(s)*((T+T0)/300).^(3/2);
Nv=Nv_300(s)*((T+T0)/300).^(3/2);
sigma(s,:)=[q*sqrt(Nc.*Nv).*(exp(-Wg(s)./(2*k*(T+T0)/q)))*(mu_n(s)+mu_p(s))];
end;
plot(T,sigma(1,:),'r');
mtlb_hold on
plot(T,sigma(2,:),'b')
plot(T,sigma(3,:),'g')
legend('Ge','Si','GaAs',2);
title('Conductivity of semiconductor at different temperatures');
xlabel('Temperature, {\circ}C');
ylabel('Conductivity \sigma, \Omega^{-1}cm^{-1}'); |
146f1c0092500d1540d1cf8c7bb5dae0742ee253 | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/strips/strips2.sce | f5670ce84b7a95df416f62b70a6aaa4c2142d412 | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 77 | sce | strips2.sce | //x = vco(sin(2*pi*t),[10 490],fs);
strips(x);
//plot matches that of matlab
|
fe371fdee7422f2e32d04960c13b9faee392c6f3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1952/CH13/EX13.1.14/Ex14.sce | 6f4e047059db74461c9f3b0b58eb5cdd9cdc07e9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 592 | sce | Ex14.sce | // Additional solved numerical questions , Example(set 1) 14_a_3 , pg 350
lam=1.24*10^-13 //wavelength (in m)
h=6.625*10^-34//plancksconstant(in J s)
c=3*10^8//velocity of x-ray photon(in m/sec)
m0=9.11*10^-31//rest mass of electron(in Kg)
phi=(90*%pi)/180//angle of scattering (in radian) (converting degree into radian)
delta_H=(h*(1-cos(phi)))/(m0*c)//change in wavelength due to compton scattering (in m)
LAM=lam+delta_H //wavelength (in m)
E=(h*c)/LAM //energy of scattered photon (in J)
printf("Energy of scattered photon (in J)=")
disp(E)
|
dce074fdc86257a2a57bff252f350ddc9ee1bbe7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2129/CH5/EX5.13.7/ex5_13_7.sce | 8bf1c95b07388849db20804b3834bb65cd7ec277 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 640 | sce | ex5_13_7.sce | //Exa 5.13.7
clc;
clear;
close;
// Given data
bita= 100;
V_BEsat= 0.8;// in V
V_CEsat= 0.2;// in V
V_BEact= 0.7;// in V
V_CC = 10;// in V
V_BB=5;// in V
R_E = 2;// in kΩ
R_C = 3;// in kΩ
R_B= 50;// in kΩ
// Applying KVL to input loop
// V_BB= I_B*R_B+(1+bita)*I_B*R_E+V_BEact or
I_B= (V_BB-V_BEact)/(R_B+(1+bita)*R_E);// in mA
I_C= bita*I_B;// in mA
// Applying KVL to collector circuit
// V_CC= I_Csat*R_C +V_CEsat +(I_C+I_B)*R_E
V_CEact= V_CC-I_B*R_E-I_C*(R_C+R_E);// in V
disp(I_B*10^3,"The value of I_B in µA is : ")
disp(I_C,"The value of I_C in mA is : ")
disp(V_CEact,"The value of V_CE in volts is : ")
|
86606cf7f019c0f5169a127f0c2a030af6e6a9b7 | c87a44be475d3008f7d0fcb8dd2eac3b2fa78e94 | /Examples/Chapter_4/Example_4_5.sce | fcc77c15330ecd1cc14f4e14bbdf26eca3ba1fc7 | [] | no_license | Echeban/icmd3e | 6c766ffafab0137a64de46448879d8a9eed2903c | 6ca0273e322fa390fcabc66669f3f56c9af5a563 | refs/heads/master | 2020-03-27T09:08:47.798549 | 2018-08-27T15:45:44 | 2018-08-27T15:45:44 | 146,316,991 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 820 | sce | Example_4_5.sce | // Example 4.5. Calculate CTEs
mode(0);clear;clc;
exec('C:\Users\zorza\OneDrive\Scilab\CLT.sci');// load CLT functions
Polyester.E = 3.4E3;// MPa. Isophtalic Polyester
Polyester.nu = 0.38;
Polyester.alpha = 30;// ppm/C
Eglass.E = 72.35E3;// MPa
Eglass.nu = 0.22;//dimensionless
Eglass.alpha = 5.4;// ppm/C
Sglass.E = 85.0E3;
Sglass.nu = 0.22;
Sglass.alpha = 2.9;
Kevlar49.E = 131E3;
Kevlar49.nu = 0.35;
Kevlar49.alpha = -2;
T300.E = 230E3;
T300.nu = 0.2;
T300.alpha = -0.6;
Vf = 0.55;
Vm = 1-Vf;
EM = Polyester.E;
vM = Polyester.nu;
alphaM = Polyester.alpha;
EA = Sglass.E;
vA = Sglass.nu;
alphaA = Sglass.alpha;
alphaT = alphaA;// isotropic
ET = EA;// isotropic
vT = vA;//isotropic
GA = EA/2/(1+vT);// Transversely isotropic
[E1,E2,G12,v12,v23,alpha1,alpha2] = PMM(EA,ET,GA,vA,vT,EM,vM,alphaA,alphaT,alphaM,Vf)
|
6e0410c999605a2a363e8163dfb08996a77caa86 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1301/CH18/EX18.11/ex18_11.sce | 5ae1a9a54ba3dad4dec72d2fab10ad92f3b4a1fe | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 466 | sce | ex18_11.sce | clc;
e=1.6*10^-19; //charge
h= 6.626 * 10^-34;
ke=1.5*10^4; //kinetic energy in eV
KE=ke*e; //calculating kinetic energy
m=9.1*10^-31; //mass in kg
disp(KE,"Kinetic Energy in Joule = "); //displaying result
v=sqrt((2*KE)/m); //calculating velocity
disp(v,"Velocity in m/sec = "); //displaying result
l=h/(m*v); //calculating wavelength
disp(l,"Wavelength in metre = "); h=6.63*10^-34; //planck's constant in J.sec |
3a3c46b9a97ad17006faf6ff24a46ef0c5e37e90 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2318/CH3/EX3.3/ex_3_3.sce | 6257ef07f24961743e9fd5053c918f1040ee31ed | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 175 | sce | ex_3_3.sce | //Example 3.3: Resistor
clc;
clear;
close;
//given data :
S=0.02;// in ohm
Vs=0.98;// in V
Vx=0.735;// in V
X=(S*Vx)/Vs;
disp(X,"Resistance of resistor under test,X(ohm) = ")
|
3c4d00576ca435ec8e90c1d1ed791b99e4d815d4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /389/CH3/EX3.7/Example3_7.sce | 083394eccda077002f8cd6dafbe6331ed0951f49 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,018 | sce | Example3_7.sce | clear;
clc;
// Illustration 3.7
// Page: 80
printf('Illustration 3.7 - Page: 80\n\n');
// solution
//****Data*****//
// a = water b = air
out_dia = 0.0254;// [m]
wall_thick = 0.00165;// [m]
avg_velocity = 4.6;// [m/s]
T1 = 66;// [C]
P = 1;// [atm]
Pa1 = 0.24;// [atm]
k1 = 11400;// [W/(square m.K)]
T2 = 24;// [C]
k2 = 570;// [W/square m.K]
k_Cu = 381;// [w/square m.K]
//******//
// For the metal tube
int_dia = out_dia-(2*wall_thick);// [m]
avg_dia = (out_dia+int_dia)/2;// [mm]
Nb = 0;
Flux_a = 1;
Ya1 = 0.24;
Yb1 = 1-Ya1;
Mav = (Ya1*18.02)+(Yb1*29);// [kg/kmol]
density = (Mav/22.41)*(273/(273+T1));// [kg/cubic m]
viscosity = 1.75*10^(-5);// [kg/m.s]
Cpa = 1880;// [J/kg.K]
Cpmix = 1145;// [J/kg.K]
Sc = 0.6;
Pr = 0.75;
G_prime = avg_velocity*density;// [kg/square m.s]
G = G_prime/Mav;// [kmol/square m.s]
Re = avg_dia*G_prime/viscosity;
// From Table 3.3:
// Jd = Std*Sc^(2/3) = (F/G)*Sc^(2/3) = 0.023*Re^(-0.17);
Jd = 0.023*Re^(-0.17);
F = (0.023*G)*(Re^(-0.17)/Sc^(2/3));
// The heat transfer coeffecient in the absence of mass transfer will be estimated through Jd = Jh
// Jh = Sth*Pr^(2/3) = (h/Cp*G_prime)*(Pr^(2/3)) = Jd
h = Jd*Cpmix*G_prime/(Pr^(2/3));
U = 1/((1/k1)+((wall_thick/k_Cu)*(int_dia/avg_dia))+((1/k2)*(int_dia/out_dia)));// W/square m.K
// Using Eqn. 3.70 & 3.71 with Nb = 0
// Qt = (Na*18.02*Cpa/1-exp(-(Na*18.02*Cpa/h)))*(T1-Ti)+(Lambda_a*Na);
// Qt = 618*(Ti-T2);
// Using Eqn. 3.67, with Nb = 0, Cai/C = pai, Ca1/C = Ya1 = 0.24;
// Na = F*log(((Flux_a)-(pai))/((Flux_a)-(Ya1));
// Solving above three Eqn. simultaneously:
Ti = 42.2;// [C]
pai = 0.0806;// [atm]
Lambda_a = 43.4*10^6;// [J/kmol]
Na = F*log(((Flux_a)-(pai))/((Flux_a)-(Ya1)));// [kmol/square m.s]
Qt1 = 618*(Ti-T2);// [W/square m]
Qt2 = ((Na*18.02*Cpa/(1-exp(-(Na*18.02*Cpa/h))))*(T1-Ti))+(Lambda_a*Na);// [W/square m]
// since the value of Qt1 & Qt2 are relatively close
printf('The local rate of condensation of water is %e kmol/square m.s',Na); |
4136b9af364ac29b3debbef7b3407cab727af235 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2990/CH6/EX6.20/Ex6_20.sce | b96b0c5433900f8a7ad8c5f47d8a861cf4953417 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 533 | sce | Ex6_20.sce |
clc; funcprot(0);
// Initialization of Variable
alpha=50.0;//angle in degrees
beta=46.0;//angle in degrees
f=300.0;//focal length in mm
xa=24.0;//x coordinate of a
xb=30.0;//x coordinate of b
//calculation
dela=xa/f;
delb=xb/f;
A=alpha+dela*180/%pi;//angle A
B=beta-delb*180/%pi;//angle B
D=180-A-B;
AD=1300.0*sin(B*%pi/180)/sin(D*%pi/180);
disp(round(AD),"distance of AD in m");
Y=6/(sqrt(xa**2+f**2))*AD;
RD=60.12+Y;
disp(RD,"RL of D in m");
disp("the answer varies slightly due to round off error");
clear()
|
d436890324e2eaf096f18d1acdb3159e119e410f | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /prog_assembly/libs/scilab_code/characterization/all_step/DRAIN_DAC/drain_dac_cal.sce | 08e42b2525d043f767ce7dd22babf314f7542a4c | [] | 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 | 2,203 | sce | drain_dac_cal.sce | chip_number=01;
chip_numbers=string(chip_number)
board='_30'
cd ~/rasp30/prog_assembly/libs/scilab_code/characterization/all_step/DRAIN_DAC/;
path=pwd();
mkdir test;
unix_g('sudo ~/rasp30/prog_assembly/libs/sh/asm2ihex.sh '+path+'/drain_DAC_char '+path+'/drain_DAC_char.s43 16384 16384 16384')
mkdir test
count=0;
while count<2
counter=1;
m=0;
reset_count=0
while m<256
unix_g('> input_vector')
DRAIN_DAC_INPUT = mopen('input_vector','wb')
m_hex=dec2hex(m);
DRAIN_CTRL=string(m_hex)
if count==0 then // for ivdd=2.5
if m<16 then
mputl('0x0'+DRAIN_CTRL+'4e 0x0024',DRAIN_DAC_INPUT)
end
if m>15 then
mputl('0x'+DRAIN_CTRL+'4e 0x0024',DRAIN_DAC_INPUT)
end
end
if count==1 then // for ivdd=6
if m<16 then
mputl('0x0'+DRAIN_CTRL+'4e 0x0014',DRAIN_DAC_INPUT)
end
if m>15 then
mputl('0x'+DRAIN_CTRL+'4e 0x0014',DRAIN_DAC_INPUT)
end
end
mclose(DRAIN_DAC_INPUT)
b=1
while b==1
[a,b]=unix_g("sudo tclsh ~/rasp30/prog_assembly/libs/tcl/write_mem2_NoRelease.tcl -start_address 0x5300 -input_file_name '+path+'/input_vector");
[a,b]=unix_g('sudo tclsh ~/rasp30/prog_assembly/libs/tcl/program.tcl -device /dev/ttyUSB1/ -speed 115200 '+path+'/drain_DAC_char.elf')
end
unix_w("sleep 2");
if count==0 then
unix_g('sudo dwfcmd connect watch=2s analogin record channel=1 enable=1 range=1V offset=0 frequency=1k run=0.01s start save='+ path +'/test/test'+DRAIN_CTRL+'.csv')
end
if count==1 then
unix_g('sudo dwfcmd connect watch=2s analogin record channel=1 enable=1 range=2.5V offset=0 frequency=1k run=0.01s start save='+ path +'/test/test'+DRAIN_CTRL+'.csv')
end
M = csvRead(path+'/test/test'+DRAIN_CTRL+'.csv');
M=mean(M(3:10));
M=string(M)
if count==0 then
drain_dac_ivdd25V(counter,1) =DRAIN_CTRL;
drain_dac_ivdd25V(counter,2) =M;
end
if count==1 then
drain_dac_ivdd60V(counter,1) =DRAIN_CTRL;
drain_dac_ivdd60V(counter,2) =M;
end
if reset_count==10 then
unix_s('/home/ubuntu/rasp30/sci2blif/usbreset');
reset_count=0;
end
m=m+5;
counter=counter+1;
reset_count=reset_count+1;
end
count=count+1;
end
mkdir DRAIN_DAC
file_name_cal = path+'/DRAIN_DAC/DRAIN_DAC'+chip_numbers+board
csvWrite(drain_dac_ivdd25V,file_name_cal+'_25V')
csvWrite(drain_dac_ivdd60V,file_name_cal+'_60V')
|
5867e20532df95a4299e262026fcecfaf01cb5a7 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/freson.man.tst | 2b2b2f52efa2e6fa4890b4a6ccd2ebaa48dd6970 | [
"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 | 125 | tst | freson.man.tst | clear;lines(0);
h=syslin('c',-1+%s,(3+2*%s+%s^2)*(50+0.1*%s+%s^2))
fr=freson(h)
bode(h)
g=20*log(abs(repfreq(h,fr)))/log(10)
|
fd2811e1210e1755ad81249ceb5f1f0016bf2f1b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1631/CH8/EX8.2/Ex8_2.sce | f67a8eea2af99448a5b6b0f1860ec94607af0dc9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 262 | sce | Ex8_2.sce | //Caption: peak Amplitude
//Example 8.2
//page no 374
//Find peak Transmission pulseAmplitude
clc;
clear;
NO=1.338*10^-5;
Pe=2.055*10^-5;
T=100*10^-6;
//Pe=erfc(sqrt(Eb/(2*N0)));
Eb=(2*2.9^2*NO);
A=sqrt((Eb*2)/T);
disp("Volts",A,"Transmission pulse Amplitude");
|
816f0df276468560bed0e632fa0541fe8574ed29 | 598546b56588670efcd591e67deb3578f52ddddc | /btests/4.2.tst | 7cee1d9198308d5fc273582d58e8c6d93160654b | [] | no_license | natindo/techpark-HM1 | 6ae5da7cca55a5306f33fedd9ab4021a0d897cc2 | e9a4f25d32b0e802d1749ec2f5d1a250b6e1b2f4 | refs/heads/master | 2023-08-25T14:35:18.304147 | 2021-10-13T18:51:42 | 2021-10-13T18:51:42 | 416,403,554 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 54 | tst | 4.2.tst | KEYS="4 -10"
OUT="1 0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10"
|
a658c2fff4e14f1c446e090bd2a9d7172df8ff9a | 449d555969bfd7befe906877abab098c6e63a0e8 | /647/CH8/EX8.9/Example8_9.sce | 37914fbfff427eb16df23107ab2fbc7f47dcc915 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 428 | sce | Example8_9.sce | clear;
clc;
// Example: 8.9
// Page: 308
printf("Example: 8.9 - Page: 308\n\n");
// Solution
//*****Data******//
Th = 273 + 125;// [K]
Tl = 273 - 5;// [K]
Ts = 273 + 28;// [K]
COP = 2;
//*************//
COP_absorption = (Tl/(Ts - Tl))*((Th - Ts)/Th);
if (COP - 0.1) < COP_absorption | (COP + 0.1) > COP_absorption
printf("Claim is Valid and reasonable");
else
printf("Claim is not Valid");
end |
30d2552442d5aec6321e1bc8f37c35a9878bcfd1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1061/CH5/EX5.22/Ex5_22.sce | 65e70df10aaafa5042cb76d3b9e49352b6317c77 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 270 | sce | Ex5_22.sce | //Ex:5.22
clc;
clear;
close;
n1=1.46;// core refractive index
df=0.025;
L=1500;// length in meter
c=3*10^8;// the speed of ligth in m/s
md=(n1*L*df)/(c*(1-df));// max dispersion in sec
Md=md*10^9;// max dispersion in ns
printf("The max dispersion =%d ns", Md); |
bc17c73f1a9851385af26e9c2bee7f3e9ca055dd | 449d555969bfd7befe906877abab098c6e63a0e8 | /1883/CH2/EX2.4.10/Example2_17.sce | 21037771540f93b36f3caa600324f8016d71c8e3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 407 | sce | Example2_17.sce | //Chapter-2,Example2_4_10,pg 2-28
N=5000*10^2 //Number of lines per meter
wavelength=6000*10^-10 //wavelength of light
m_max=1/(N*wavelength)
//for absent spectra
n=[1 2 3]
m=3*n //as b = 2a and m = ((a+b)/a)*n
printf('\n The order of absent spectra is m = %.0f ',m_max)
|
d3d7afe49b8a7f7c5697fe7354f3dd83245dfa06 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1208/CH1/EX1.1/Exa1.sce | b1ab2c521ecacde87e2fe54b9917c09c3be3f9e1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 243 | sce | Exa1.sce | //Exa1
clc;
clear;
close;
//given data :
Vo=500;//in Rs
r=5;//in % per annum
i=r/100;
n=3;//in years
//formula Vn=Vo*(1+i)^n
V3=Vo*(1+i)^n;
disp(V3,"future value after three years : ")
CI=V3-Vo;
disp(CI,"compound interest is : ") |
58f61c8f8ab1073b285d87550b4f29066d948b00 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1052/CH19/EX19.5/195.sce | 360836ac74b6d9d73011c360e4cb0f5fa2660251 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 783 | sce | 195.sce | clc;
//Example 19.5
//page no 254
printf("Example 19.5 page no 254\n\n");
//a venturi meter has gasoline flowing through it.
h=0.035//height of venturi meter
D1=0.06//upsteeam diameter,m
D2=0.02//throat diameter,m
rho_m=13600//density of mercury
rho=680//density of gasoline
g=9.807
v2=sqrt((2*g*h*(rho_m-rho)/rho)/1-D2^4/D1^4)//velocity of gasoline at the the throat
printf("\n velocity at throat v2=%f m/s",v2);
q=(%pi/4)*D2^2*v2//flow rate
printf("\n flow rate q =%f m^3/s",q);
P1=101325//upstream pressure,Pa
P2=P1-g*h*(rho_m-rho)//pressure at throat P2
printf("\n pressure P2=%f Pa",P2);
P_d=P1-P2//pressure difference
P_l=.1*P_d//pressure loss is 10 %
printf("\n pressure loss P_l=%f Pa",P_l);
W_l=q*P_l//power loss
printf("\n power loss W_l=%f W",W_l);
|
828dfa7e781cd301c9f1404b34c0911924226924 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1370/CH2/EX2.12/example2_12.sce | 9468d7e275c1a854e175196c6a71f6a5fc4acefd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 356 | sce | example2_12.sce | //example2.12
clc
disp("V=250 V, I_L=20 A, R_s=0.3ohm, R_sh=200 ohm")
disp("I_L=(I_a)+(I_sh)")
s=250/200
disp(s,"(I_sh)[in A]=V/(R_sh)=")
disp("Therefore, I_a=(I_L)-(I_sh)")
a=20-1.25
disp(a,"I_a(in A)=20-1.25=")
disp("Now, V=(E_b)+(I_a*R_a)")
disp("Therefore, E_b=V-[(I_a)*(R_a)]")
b=250-(18.75*0.3)
format(8)
disp(b,"E_b(in V)")
|
8f08aa5e0e526a64f0b003d04bd82ae41f7e3cd6 | 3dbdc1a91ad07ea5fc4c4fa52a6fa2a6870125a6 | /calculo-numerico/secante.sce | 2a6cc9d93fe8b941eeb743ae5db88df1ade1a007 | [
"Apache-2.0"
] | permissive | geovani-moc/Algoritmos | 226ceea9b599bb1979770ac001f5108a0533bb00 | d2d838c158da62a94946a7af29b24ca7396af34e | refs/heads/master | 2023-01-09T12:40:50.330766 | 2020-11-06T17:46:46 | 2020-11-06T17:46:46 | 256,744,544 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,131 | sce | secante.sce | //calcular a raiz de uma equacao pelo metodo da secante
/*
a,b = limites do intervalo
toler = tolerancia
iterMax = numero maximo de iteracoes
f = funcao
*/
clc;clear;
function [raiz, iter, erro] = secante(a, b, toler, iterMax, f)
fa = f(a);
fb = f(b);
if abs(fa) < abs(fb) then
t = a;
a = b;
b = t;
t = fa;
fa = fb;
fb = t;
end
iter = 0;
x = b;
fx = fb;
while 1 then
iter = iter+1;
deltaX = -fx/(fb-fa)*(b-a);
x = x + deltaX;
fx = f(x);
disp([iter, a, b, x, fx, deltaX]);
if (abs(deltaX)<toler && abs(fx)<toler) || iter >= iterMax then
break;
end
a = b;
fa = fb;
b = x;
fb = fx;
end
raiz = x;
if abs(deltaX) < toler && abs(fx) < toler then
erro = 0;
else
erro = 1;
end
endfunction
function y = f(x)
y = 2*x^3-cos(x+1)-3;
endfunction
a =-1;
b = 2;
toler = 0.0001;
iterMax = 100;
[raiz, iter, erro] = secante(a, b, toler, iterMax, f)
|
04554470356e95449ece56804c05e23cb96f2b0d | 449d555969bfd7befe906877abab098c6e63a0e8 | /69/CH7/EX7.11/7_11.sce | 57f3ff558854f51b58bffd13bbd0e0762a77c608 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 785 | sce | 7_11.sce | clear; clc; close;
Id_on = 6*10^(-3);
Vgs_on = 8;
Vgs_th = 3;
Rd = 2*10^(3);
Vdd = 12;
k = Id_on/(Vgs_on-Vgs_th);
Vgs1 = Vgs_th;
Id1 = 0;
Vgs2 = 6;
Id2 = 0.24*10^(-3)*(6-3)^2;
Vgs3 = Vgs_on;
Id3 = Id_on;
Vgs4 = 10;
Id4 = 0.24*10^(-3)*(10-3)^2;
x = [0 1 2 Vgs1 Vgs2 Vgs3 Vgs4];
y = [0 0 0 Id1 Id2 Id3 Id4];
yi=smooth([x;y],0.1);
a = gca();
a.thickness = 2;
a.y_location = 'left';
a.x_label.text = 'Vgs';
a.y_label.text = 'Id(mA)';
a.title.text = 'Transfer curve for MOSFET';
a.grid = [1 1];
plot2d(yi(1,:)',yi(2,:)',[3]);
Vgs = Vdd; //at Id = 0
Id = Vdd/Rd; //at Vgs = 0
x = 0:1:12;
y = (-0.5*10^(-3))*x + 6*10^(-3);
plot2d(x,y);
Idq = 2.75*10^(-3);
Vgsq = 6.4;
Vdsq = Vgsq;
disp(Idq,'Idq(Amperes) = ');
disp(Vdsq,'Vdsq(Volts) = ');
|
03fede5c0ac95f940817f772269ac96a40aba1bc | be07c1e346737e6e38bb958d9a66f52f6da2180a | /Regression/CONTROL_FLOW/CONTROL_FLOW_W.tst | 3c587ebafc59faef02161f0bd39850c976623559 | [] | no_license | dpreisser/Training | 1bc8840d646306d861f4c7610a28bb23667f06e5 | 97eb58c7963e4725d6a2ad9e8200ca9367c84061 | refs/heads/master | 2021-01-10T13:03:12.508795 | 2016-04-11T12:49:06 | 2016-04-11T12:49:06 | 54,963,561 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,313 | tst | CONTROL_FLOW_W.tst | -- VectorCAST 6.4d (02/29/16)
-- Test Case Script
--
-- Environment : CONTROL_FLOW_W
-- Unit(s) Under Test: control_flow
--
-- Script Features
TEST.SCRIPT_FEATURE:C_DIRECT_ARRAY_INDEXING
TEST.SCRIPT_FEATURE:CPP_CLASS_OBJECT_REVISION
TEST.SCRIPT_FEATURE:MULTIPLE_UUT_SUPPORT
TEST.SCRIPT_FEATURE:MIXED_CASE_NAMES
TEST.SCRIPT_FEATURE:STANDARD_SPACING_R2
TEST.SCRIPT_FEATURE:OVERLOADED_CONST_SUPPORT
TEST.SCRIPT_FEATURE:UNDERSCORE_NULLPTR
TEST.SCRIPT_FEATURE:FULL_PARAMETER_TYPES
TEST.SCRIPT_FEATURE:STATIC_HEADER_FUNCS_IN_UUTS
--
-- Subprogram: computeBaseArea
-- Test Case: AreaTest
TEST.UNIT:control_flow
TEST.SUBPROGRAM:computeBaseArea
TEST.NEW
TEST.NAME:AreaTest
TEST.NOTES:
Author:
Date:
Version:
Requirement:
TEST.END_NOTES:
TEST.VALUE:control_flow.<<GLOBAL>>.widthX:2.0
TEST.VALUE:control_flow.<<GLOBAL>>.lengthY:3.0
TEST.VALUE:control_flow.<<GLOBAL>>.heightZ:4.0
TEST.VALUE:control_flow.computeBaseArea.shape:BOX
TEST.VALUE:uut_prototype_stubs.validShape.return:1
TEST.EXPECTED:control_flow.computeBaseArea.return:6.0
TEST.END
-- Subprogram: computeVolume
-- Test Case: VolumeTest1
TEST.UNIT:control_flow
TEST.SUBPROGRAM:computeVolume
TEST.NEW
TEST.NAME:VolumeTest1
TEST.NOTES:
Author:
Date:
Version:
Requirement:
TEST.END_NOTES:
TEST.VALUE:<<OPTIONS>>.REFERENCED_GLOBALS:FALSE
TEST.VALUE:control_flow.<<GLOBAL>>.widthX:2.0
TEST.VALUE:control_flow.<<GLOBAL>>.lengthY:3.0
TEST.VALUE:control_flow.<<GLOBAL>>.heightZ:4.0
TEST.VALUE:control_flow.computeVolume.shape:BOX
TEST.VALUE:uut_prototype_stubs.validShape.return:1
TEST.EXPECTED:control_flow.computeVolume.return:24.0
TEST.END
-- Test Case: VolumeTest2
TEST.UNIT:control_flow
TEST.SUBPROGRAM:computeVolume
TEST.NEW
TEST.NAME:VolumeTest2
TEST.NOTES:
Author:
Date:
Version:
Requirement:
TEST.END_NOTES:
TEST.VALUE:control_flow.<<GLOBAL>>.widthX:2.0
TEST.VALUE:control_flow.<<GLOBAL>>.lengthY:3.0
TEST.VALUE:control_flow.<<GLOBAL>>.heightZ:4.0
TEST.VALUE:control_flow.computeVolume.shape:BOX
TEST.VALUE:uut_prototype_stubs.validShape.return:1
TEST.EXPECTED:control_flow.computeVolume.return:24.0
TEST.END
-- Subprogram: controlFlowExample
-- Test Case: Test_One
TEST.UNIT:control_flow
TEST.SUBPROGRAM:controlFlowExample
TEST.NEW
TEST.NAME:Test_One
TEST.NOTES:
Author:
Date:
Version:
Requirement:
TEST.END_NOTES:
TEST.FLOW
control_flow.c.controlFlowExample
uut_prototype_stubs.someExternalFunctionA
uut_prototype_stubs.someExternalFunctionB
uut_prototype_stubs.someExternalFunctionC
uut_prototype_stubs.someExternalFunctionD
uut_prototype_stubs.someExternalFunctionE
control_flow.c.controlFlowExample
TEST.END_FLOW
TEST.END
-- Subprogram: partitionExample
-- Test Case: 10_Partitions
TEST.UNIT:control_flow
TEST.SUBPROGRAM:partitionExample
TEST.NEW
TEST.NAME:10_Partitions
TEST.NOTES:
Author:
Date:
Version:
Requirement:
TEST.END_NOTES:
TEST.VALUE:<<OPTIONS>>.DATA_PARTITIONS:10
TEST.VALUE:control_flow.partitionExample.numberOfIterations:VARY FROM:<<MIN>> TO:<<MAX>> BY: <<PARTITION>>
TEST.END
-- Test Case: 5_Partitions
TEST.UNIT:control_flow
TEST.SUBPROGRAM:partitionExample
TEST.NEW
TEST.NAME:5_Partitions
TEST.NOTES:
Author:
Date:
Version:
Requirement:
TEST.END_NOTES:
TEST.VALUE:<<OPTIONS>>.DATA_PARTITIONS:5
TEST.VALUE:control_flow.partitionExample.numberOfIterations:VARY FROM:<<MIN>> TO:<<MAX>> BY: <<PARTITION>>
TEST.END
|
6acff01a54501f94d26dd65883708fae4b1dab70 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3415/CH11/EX11.6/Ex11_6.sce | e4df7ea77af6538a9590ba3ca83bac2b79c00fb7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 622 | sce | Ex11_6.sce | //fiber optic communications by joseph c. palais
//example 11.6
//OS=Windows XP sp3
//Scilab version 5.4.1
clc
clear all
//given
lambda=0.82e-6//wave length in m
h=6.63e-34//planks constant
tau=1e-6//bit period in Sec
c=3e8//light speed in m/s
ns=10//no. of photons required per bit
eta=1//Quantum efficiency
Pt=146*10^-9//power in thermal system from Ex11.5=146nW
//to find
P=(h*c*ns)/(eta*lambda*tau)// optic power in W
mprintf("Power=%fpW",P*10^12)
sensitivity=10*log10(Pt/P)//The shot noise limited system sensitivity
mprintf("\nThe shot noise limited system is more sensitive by=%fdB",sensitivity)
|
40ef2daf661a67acc4086411227570cde6680be4 | 7ef51c5d0a21a0b16fdcf1e2b0ba34941a192b5d | /resultados/functions.sci | 0c564c040f35ba7825ec1c5c69da0a7c4cd9572a | [] | no_license | josepedro/TCC | c4ab515fea01859420ba3f5123815430ea2b0e02 | 72622069c60ae6c639d9aa2189f868b6db22c6df | refs/heads/master | 2021-01-21T22:29:10.992789 | 2014-12-26T22:32:02 | 2015-01-02T03:06:25 | 22,113,358 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 98 | sci | functions.sci | function [degrees] = radians2degrees(radians)
degrees = radians*(180/%pi);
%
endfunction
|
5d6f7eb34b4054b7105f8d84a09fe6cbc3e41cf0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2087/CH4/EX4.47/example4_47.sce | 2d08b6896e2bc70722b5e7ff3c5fa1323865c091 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 726 | sce | example4_47.sce |
//example 4.47
//calculate average depth of precipitation using depth area curve
clc;funcprot(0);
//given
I=[21:-1:12]; //isohytes
a=[543 1345 2030 2545 2955 3280 3535 3710 3880 3915]; //enclosed area
ia(1)=543;
for i=2:10
ia(i)=a(i)-a(i-1); //net incremental area between isohytes
end
r=[21.5:-1:12.5]
for i=1:10
rv(i)=r(i)*ia(i); //rainfall volume
end
cv(1)=11675;
for i=2:10
cv(i)=cv(i-1)+rv(i); //cumulative volume
end
for i=1:10
eud(i)=cv(i)/a(i); //depth(mm)
end
mprintf("From depth area curve we obtain average depth of precipitation=20.15 mm for an\narea of 2400 sq. km.");
//graph is plotted between eud and a
|
5908da02296c8051e3850fb542a35fe71c6cd2d5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1379/CH11/EX11.1.2/example11_2.sce | f168716fc918df9c235967b05b82223491cb6846 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 671 | sce | example11_2.sce |
//exapple 11.2
clc; funcprot(0);
// Initialization of Variable
d=50/1000000;
rhos=1850;//density of particle
rho=880;//density of hydrocarbon
mu=2.75/1000;//viscosity of hydrocarbon
e=0.45;//void fraction coeff.
g=9.81;
h=1.37;//flow depth
c=5.5/1000;//c=1/K
//calculation
//part 1
u=c*e^3*d^2*g*(rhos-rho)/mu/(1-e);
disp(u,"The superficial linear flow rate in (m/s):")
//part 2
u=d^2*g*(rhos-rho)/18/mu;
disp(u,"Terminal Settling Velocity in (m/s):");
Re=d*u*rho/mu;
if Re<2 then
disp("Stoke law assumption is sustained with this velocity")
end
//part 3
P=g*(rhos-rho)*h*(1-e);
disp(P,"Pressure drop across fluidised bed in (N/m^2):");
|
794567aba07132bb87424e94e7a9aed2ff26ce07 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronics_Devices_And_Circuits_G._S._N._Raju_2534.zip/Electronics_Devices_And_Circuits_G._S._N._Raju_2534/CH14/EX14.2/Ex14_2.sce | 8e20d68828668afb99732bc39cb6f3dde3a0adbe | [] | 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 | 224 | sce | Ex14_2.sce | errcatch(-1,"stop");mode(2);//Ex14_2
CMRR_dB = 100//Common Mode Rejection Ratio in decibles
CMRR = 10^(100/20)//CMRR as a ratio
disp("CMRR = "+string(CMRR_dB)+"dB")
disp("CMRR = 10^(100/20) = "+string(CMRR))
exit();
|
913338a4e264c9b482a94a9e189500a5aa74df44 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2045/CH1/EX1.23/Ex1_23.sce | f43234268cfb0db073eb6377dc98d8dc46929aa1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 289 | sce | Ex1_23.sce | //pagenumber 40 example 23 //figure is not given in the book
clear
nd=10^7;//per cubic centimetre
na=10^17;//per cubic centimetre
voltag=0.1*3800*10^-4*1500*3*10^-3;
disp("hall voltage = "+string((voltag))+"volt");
disp("remains the same but there change in polarity");
|
d1d4f6bf7e103fbf1e1a586de7b6e8d015e62723 | 449d555969bfd7befe906877abab098c6e63a0e8 | /243/CH14/EX14.4/14_04.sce | f927296987e6ea3debed46a27e6428d6fd420c8e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 438 | sce | 14_04.sce | //Example No. 14_04
//Fadeev - Leverrier method
//Pg No. 474
clear ; close ; clc ;
A = [ -1 0 0 ; 1 -2 3 ; 0 2 -3 ]
[r,c] = size(A)
A1 = A
p(1) = trace(A1)
for i = 2:r
A1 = A*( A1 - p(i-1)*eye())
p(i) = trace(A1)/i
mprintf('\nA%i = ',i)
disp(A1)
mprintf('\np%i = %f\n',i,p(i))
end
x = poly(0,'x');
p = p($:-1:1)
polynomial = poly([-p ; 1],'x','coeff')
disp(polynomial,'Charateristic polynomial is') |
13a50710a4633ff5ee786ab516dd1273d7f724ea | 449d555969bfd7befe906877abab098c6e63a0e8 | /1979/CH4/EX4.9/Ex4_9.sce | 59db7cd15ea756e9ef3ce5e9980f2e9495922ee2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,683 | sce | Ex4_9.sce | //chapter-4 page 147 example 4.9
//==============================================================================
clc;
clear;
f=8.6*10^9;//frequency in Hz
c=3*10^10;//Velocity of Light in cm/sec
a=2.5;//Length of a Waveguide in cm
b=1;//Width of a Waveguide in cm
//CALCULATION
disp('The condition for the wave to propagate along a guide is that wc>w0.');
w0=c/f;//free space wavelength in cm
disp('Free space wavelength w0 in cm is');
disp(w0);
disp('For TE waves, wc=(2ab/sqrt((mb)^2+(na)^2))');
disp('For TE01 waves');
m1=0;
n1=1;
wc1=((2*a*b)/(sqrt((m1*b)^2+(n1*a)^2)));//Cutoff wavelength for TE01 mode in cm
disp('Cutoff wavelength for TE01 mode in cm is');
disp(wc1);
disp('Since wc for TE01=2cm is not greater than w0 TE01,will not propagate for TE01 mode.');
disp('For TE10 waves');
m2=1;
n2=0;
wc2=((2*a*b)/(sqrt((m2*b)^2+(n2*a)^2)));//Cutoff wavelength for TE10 mode in cm
disp('Cutoff wavelength for TE10 mode in cm is');
disp(wc2);
disp('Since wc TE10 > w0 TE10 is a possible mode.');
fc=(c/wc2)/10^9;//Cutoff frequency in GHz
disp('For TE11 and TM11 waves');
m3=1;
n3=1;
wc3=((2*a*b)/(sqrt((m3*b)^2+(n3*a)^2)));//Cutoff wavelength for TE11 mode in cm
disp('Cutoff wavelength for TE11 and TM11 modes in cm is');
disp(wc3);
disp('As wc for TE11 and TM11 is < w0 both TE11 and TM11 do not propagate as higher modes.');
wg=(w0/sqrt(1-(w0/wc2)^2));//Guide wavelength in cm
disp('From the above analysis we conclude that only TE10 mode is possible');
//OUTPUT
mprintf('\nCutoff frequency is fc=%1.0f GHz \nGuide wavelength is wg=%1.3f cm',fc,wg);
//=========================END OF PROGRAM===============================
|
8f7ca82f53550213b897db7b3601e1b0a0be2a68 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2339/CH1/EX1.1.8/Ex1_8.sce | 3ae88ac7f37088f6f51df160d7a42b74b426082e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 433 | sce | Ex1_8.sce | clc
clear
//Declaring Values
m=600; //Mass in kg
z=50000; //Distance in meters
V=2500000; //Velocity in m/hr
g=7.9; //Gravitational Field in m/s^2
Vel=V/3600;
KE=(0.5*m*Vel*Vel)/1000000; //Kinetic Energy in MJ
PE=(m*g*z)/1000000; //Potential Energy in MJ
//Displaying Results
printf('The Kinetic Energy is %3.2f MJ',KE);
printf('\n')
printf('The Potential Energy is %3.2f MJ',PE);
|
695a3d237f07bf89f5ef5df6b80e258066bf7ddb | c557cd21994aaa23ea4fe68fa779dd8b3aac0381 | /test/gitify.tst | 9e7bf07cc63f7e319fd1f52727e89b4bf88d2d2d | [
"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 | 100 | tst | gitify.tst | ## Test for the gitify command to canonicalize comments.
read <gitify.svn
prefer git
gitify
write -
|
f55e9341f49ac1a403a883cd9f4a3b76b2fe1431 | a77a50f3f25853ec6a7b5b8548a13b7a4b4b3980 | /rsc/sceneries/temp.sce | 2868c6b298d5dcbc5afd85cb21d578f889abe7f7 | [] | no_license | nidoro/PointlessWars | f051b41cb71df783141e5953d2c03d9cf305150a | 2e8a9c073026ebb07454922cc3caec41d8c68f29 | refs/heads/master | 2021-03-27T13:12:04.182891 | 2016-11-08T15:23:16 | 2016-11-08T15:23:16 | 71,281,107 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 610 | sce | temp.sce | %Background
beach.bg
% OBJECT-NAME X-RELATIVE Y-RELATIVE X-SCALE Y-SCALE H-FLIP V-FLIP
obj1 0.3313 0.3929 1.0000 1.0000 0 0
novoObjeto 0.4439 0.4408 1.0000 1.0000 0 0
gandalf 0.5308 0.3202 1.0000 1.0000 0 0
obj3 0.3697 0.5560 1.0000 1.0000 0 0
obj3 0.4484 0.3397 1.0000 1.0000 0 0
|
52bc36e150d70950612059d6d5facbe0383e9b8e | e770dc26235168913bdcd5b2332f3a38a95a8bc7 | /Toolbox Test/db/db1.sce | e5816877d18cb5a236cbe2271b404d8a2508d963 | [] | no_license | deecube/majorTom | f00eca4e2effff2c5eba746878f2c0842fe14680 | 84365fc032fc0ca44abac8330ec4ac6d85a85b3f | refs/heads/master | 2021-01-21T14:04:23.323717 | 2016-05-23T06:05:31 | 2016-05-23T06:05:31 | 51,731,222 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 232 | sce | db1.sce | //check o/p when i/p is 0.1 v with refernce to 1 ohm resistance
v=0.1;
d=db(v);
disp(d);
//output
//!--error 4
//Undefined variable: SignalType
//at line 28 of function db called by :
//d=db(v);
//at line 3
|
4a936f942b40ff4e526227d1cc1123ac362f99ab | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronic_Measurements_And_Instrumentation_P._Sharma_876.zip/Electronic_Measurements_And_Instrumentation_P._Sharma_876/CH2/EX2.14/Ex2_14.sce | 7a09a5ee2b632326084965190de2572fb8ee96c9 | [] | 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 | 475 | sce | Ex2_14.sce | errcatch(-1,"stop");mode(2);//caption:Find deviation
//Ex2.14
x1=25.65//first reading(in W)
x2=24.39//second reading(in W)
x3=23.75//third reading(in W)
x4=26.42//fourth reading(in W)
x5=24.92//fifth reading(in W)
n=5//number of readings
X=(x1+x2+x3+x4+x5)/5
d1=x1-X
d2=x2-X
d3=x3-X
d4=x4-X
d5=x5-X
D1=d1//mod of d1
D2=-(d2)//mod of d2
D3=-(d3)//mod of d3
D4=d4//mod of d4
D5=-(d5)//mod of d5
D=(D1+D2+D3+D4+D5)/n
disp(D,'deviation(in W)=')
exit();
|
a88575b2a986582f49c1fc0437a2bc4f64a01633 | 449d555969bfd7befe906877abab098c6e63a0e8 | /848/CH11/EX11.1/Example11_1.sce | 3dcc5d30311a0a7b161f69a4f3e898f6c58fff30 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 602 | sce | Example11_1.sce | //clear//
//Caption:Program to calculate Photon density
//Example11.1
//page 397
clear;
clc;
close;
Vg = 2e08; //group velocity in m/s
h = 6.625e-34; //planks constant
C = 3e08; //free space velocity in m/s
Lamda = 1550e-09;//operating wavelength
V = C/Lamda; //frequency in Hz
w = 5e-06; //width of optical amplifier in meters
d = 0.5e-06; //thickness of optical amplifier in meters
Ps = 1e-06; //optical signal of power
Nph = Ps/(Vg*h*V*w*d);
disp(Nph,'The photon density in photons/cubic meter is Nph = ')
//Result
//The photon density in photons/cubic meter is Nph = 1.560D+16
|
83880d31d19185199bcf1f97864f980acb611303 | 9b4666eff03ccecf238f420f9b796208b0a70b01 | /Math IN/Cin/TP02/decoopman_tp02.sce | b5ae52ef267a959737674ebd59222409b3aecdc3 | [] | no_license | NanoClem/Math | 71a74881b2ac5b3ac323265eec82dd9d2183a185 | 8a20ce2c724dc9a7053ea12d73d162a037e33b70 | refs/heads/master | 2021-09-20T16:55:09.153747 | 2018-08-12T16:08:22 | 2018-08-12T16:08:22 | 114,249,616 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,440 | sce | decoopman_tp02.sce | // DECOOPMAN Clément TP02
//EXERCICE 1
img0 = imread('D:\Git\Math\Math IN\Cin\TP02\lena.pgm');
function res = imgHist(img)
[counts, cells] = imhist( uint8(img) );
plot(cells, counts);
endfunction
//count : tableau d'effectif de pixel dont chaque valeur de pixel est égale à cells
//cells : valeur du niveau de gris (variant)
//3
function res = imgToNeg(img)
img = double(img);
[m,n] = size(img);
imgNeg = img;
for i = 1:m
for j = 1:n
imgNeg(i,j) = 255 - img(i,j);
end
end
res = uint8(imgNeg);
endfunction
//img_test = imgToNeg(img0);
//imshow(img_test);
//4
function res = teinte(img, h)
img = double(img);
if (h < -255 | h > 255) then
disp("h pas compris dans [-255; 255]");
res = %f
else
[m,n] = size(img);
X = img;
for i = 1:m
for j = 1:n
X(i,j) = X(i,j) + h;
end
end
X(X<0) = 0;
X(X>255) = 255;
res = uint8(X);
end
endfunction
//img_test2 = teinte(img0, 255);
//imshow(img_test2);
//EXERCICE 2
//1
function res = recadrage(img)
img = double(img);
[m,n] = size(img);
X = img;
LUT = zeros(1,256);
//LUT
for i = 1:256
LUT(i) = ( 255/( max(img)-min(img) )) * (i-min(img));
end
//recadrage
for i = 1:m
for j = 1:n
X(i,j) = LUT(img(i,j)+1); //car le niveau de gris des pixels commence à 0 et LUT(0) n'existe pas
end
end
X(X<0) = 0;
X(X>255) = 255;
res = uint8(X);
endfunction
//2
img1 = imread('D:\Git\Math\Math IN\Cin\TP02\hotel-de-ville.pgm');
//img_test3 = recadrage(img1);
//imshow(img_test3);
//EXERCICE 3
//1
function res = egalisation(img)
img = double(img);
[m,n] = size(img);
X = img;
//Histogramme cumulé
[counts, cells] = imhist(uint8(img)); //count : tableau d'effectifs
HC = [counts(1)];
for i = 2:256
HC = [HC, HC(i-1)+counts(i)]
end
//LUT
LUT = zeros(1,256);
for i = 1:256
LUT(i) = ( 256/(m*n) ) * HC(i) - 1;
end
//egalisation
for i = 1:m
for j = 1:n
X(i,j) = LUT(img(i,j)+1);
end
end
X(X<0) = 0;
X(X>255) = 255;
res = uint8(X);
endfunction
img2 = imread('D:\Git\Math\Math IN\Cin\TP02\port.pgm');
//img_test4 = egalisation(img2);
//imshow(img_test4);
//EXERCICE 4
//1
I1 = imread('D:\Git\Math\Math IN\Cin\TP02\cameraman.pgm');
info = imfinfo('D:\Git\Math\Math IN\Cin\TP02\cameraman.pgm'); //informations de l'image
//imshow(I1);
// On peut observer qu'il y a un pic de pixels pour les valeurs de gris appartenant à [0;10] et [150;170]
//imgHist(I1);
//2
I2 = floor(I1 ./2^(8-6));
//imshow(I2);
// Les pics de pixels se trouvent aux mêmes endroits que pour l'histogramme de I1
//imgHist(I1);
//3
I3 = floor(I1 ./2^(8-4));
//imshow(I3);
// L'histogramme n'est plus autant étalé que celui de I1, l'image est assombrie. L'histogramme de I3 est compacte vers les valeurs de gris basses
//imgHist(I3);
//4
I4 = abs(I3-I1);
//On obtient l'image I1 en négatif
//imshow(I4);
//imgHist(I4);
|
e3734bfeaffe385cdb856657de227ae638d5870e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH17/EX10.17.7/Ex10_17_7.sce | a7bd40a650f1543cad4c1d7e86c5caab10e62c14 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 193 | sce | Ex10_17_7.sce | //Section-10,Example-2,Page no.-CT.31
//To calculate dl_E for the given process.
clc;
P=4
V_2=25
V_1=5
W=-(P*(V_2-V_1))*(8.314/0.08206)
q=500
dl_E=q+W
disp(dl_E,'Change in internal energy(J)')
|
e22b35661f97b7ee893f71f85e4cd8458ee1b229 | 047d952507eb3b9d71fac69ec3332225f17f53ef | /main/out/main/testfiles/test08.tst | 7d2d0bcf74c9df53e3eb1e1c850f7bd6f0c1a979 | [] | no_license | patrick-nanys/project-laboratories-hw | 89ab8f366219f491e6feba5558bf41ef8205dda1 | ba57a9d5e4ca33a3cc1be3cdb4fe679fe0149f93 | refs/heads/master | 2022-08-09T14:14:31.220503 | 2020-05-18T11:20:03 | 2020-05-18T11:20:03 | 250,313,203 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 85 | tst | test08.tst | 1;e;0
5;f
p1;-;-;-;4;8;-
usePlayerItem 1 f
usePlayerItem 1 f
usePlayerItem 1 f
status |
bbae54e425c934a0553f0adeac26c4310b29e39e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1868/CH6/EX6.13/Ch06Ex13.sce | 5bc679c9b371a2c987beccf1742036eec18d59e2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,228 | sce | Ch06Ex13.sce | // Scilab code Ex6.13: Pg 211 (2005)
clc; clear;
h_cross = 6.582e-016; // Reduced Planck's constant, eV-s
// For spring-mass system
K = 0.100; // Force constant of the spring-mass system, N/m
m = 0.0100; // Mass attached to the spring, kg
omega = sqrt(K/m); // Angular frequency of oscillations, rad/s
delta_E = h_cross*omega; // Energy spacing between quantum levels, eV
printf("\nThe energy spacing between quantum levels for spring-mass system = %4.2e eV\nwhich is far below present limits of detection", delta_E);
// For vibrating hydrogen molecule
K = 510.5; // Force constant of the hydrogen molecule system, N/m
mu = 8.37e-028; // Reduced mass of the hydrogen molecule, kg
omega = sqrt(K/mu); // Angular frequency of oscillations, rad/s
delta_E = h_cross*omega; // Energy spacing between quantum levels, eV
printf("\nThe energy spacing between quantum levels for hydrogen molecule = %5.3f eV\nwhich can be measured easily", delta_E);
// Result
// The energy spacing between quantum levels for spring-mass system = 2.08e-15 eV
// which is far below present limits of detection
// The energy spacing between quantum levels for hydrogen molecule = 0.514 eV
// which can be measured easily
|
ecf4e29be9bf1f4347b1ef822839c4b9e4d98988 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3740/CH2/EX2.2/Ex2_2.sce | 68737ad2238940975474dab9352e3a674ae591f6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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_2.sce | //Optoelectronics - An Introduction, 2nd Edition by J. Wilson and J.F.B. Hawkes
//Example 2.2
//OS=Windows XP sp3
//Scilab version 5.5.2
clc;
clear;
//given
//Let the quanity 'me/m' be denoted by M
M=0.26;
Epsilonr=11.8//relative permittivity of Si
Ed=13.6*M/(Epsilonr^2);//Energy required to excite the electrons from donor levels to the conduction band in eV
mprintf("Ed = %.3f eV", Ed);
|
5a3a19348f6a4d85a3a457723d42b6ac63b3d043 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1067/CH33/EX33.03/33_03.sce | b05c0104ed4e457452f9849815cb529335e65c8e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 211 | sce | 33_03.sce | clear;
clc;
per=.2;
r=10e6;
R=7;
v=11e3;
i=r/(sqrt(3)*v);
i=round(i);
i0=per*i;
v=v/sqrt(3);
p=R*i0/v*100;
p=round(p*10)/10;
printf("percentage of unprotected winding for earth fault=%fpercent",p);
|
64eebb1e6d220ee9224b1346612ca6f9482a83e4 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set14/s_Materials_Science_R._S._Khurmi_And_R._S._Sedha_2153.zip/Materials_Science_R._S._Khurmi_And_R._S._Sedha_2153/CH7/EX7.5.b/ex_7_5_b.sce | 126271f6d8cff48a3432185648a72c59d135d34b | [] | 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 | 450 | sce | ex_7_5_b.sce | errcatch(-1,"stop");mode(2);// Example 7.5.b: ultimate tensile stress
;
;
format('v',6)
yl=34;//yeild load in kN
ul=61;//ultimate load in kN
fl=78;//final length in mm
glf=60;//gauge length of fratture in mm
fd=7;//final diamtere in mm
d=12;//specimen diamtere in mm
sl=62.5;//specimen length in mm
A=(%pi*(d)^2)/4;// in meter square
uts=((ul*10^3)/(A));//ultimate tensile strangth in N/mm^2
disp(uts,"ultimate tensile strangth in N/mm^2")
exit();
|
35af755940e16da58f35a8e73eb154964f506391 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.2/macros/xdess/xbasr.sci | 66c1dd1fa25d7901fd61eff63fc205a7439d6309 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 272 | sci | xbasr.sci | //[]=xbasr(win_num)
//[]=xbasr(win_num)
// This function is used to redraw the content of the graphic
// window win_num. It works only with the driver "Rec"
//!
cw=xget("window");
xclear(win_num);xset("window",win_num);xtape('replay',win_num);
xset("window",cw);
//end
|
62c865382a27b357adfa8ac6858ab3c21f74db3c | daa5574081d4c7f04bf8db4a39ee6f79d5da55b8 | /Experiment_1.sce | 764e75d189d077b2c9c2acdca3f57c24f3a5ae6d | [] | no_license | smasa1112/presentation_practice | fec8a78d3c3c7260d1815174169ff47b1a5a3527 | 599664d4fae6783c52c46d7cb540bbcf35a12b27 | refs/heads/main | 2023-07-18T22:46:30.056399 | 2021-09-23T05:39:07 | 2021-09-23T05:39:07 | 405,818,206 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 203 | sce | Experiment_1.sce | begin;
begin_pcl;
int a=1;
int b=2;
int c=3;
array<int> my_numbers[]={1,2,3,4,5};
my_numbers.shuffle();
loop
int i=1;
until
i>my_numbers.count()
begin
term.print_line(my_numbers[i]);
i = i+1;
end;
|
83a26557ef9d5dfd08ce9688a072ab3ef42f86d0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1442/CH9/EX9.5/9_5.sce | 733edd0915ffe511107e7ff520f1189a55f1023a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 450 | sce | 9_5.sce | clc
//initialisation of variables
m= 0.2 //kg/s
v1= 1.0803 //m^3/kg
T= 200 //C
s2= 5.8041 //kJ/kg K
s1= 7.5066 //kJ/kg K
h1= 2328.1 //kJ/kg
h2= 2654.4 //kJ/kg
//CALCULATIONS
V1= m*v1
V2= 0.1*V1
Q= m*(273.15+T)*(s2-s1)
W= Q-m*(h1-h2)
//RESULTS
printf (' volume flow rate into composser = %.4f m^3',V1)
printf (' \n volume flow rate out of composser = %.4f m^3',V2)
printf (' \n Heat = %.1f kJ',Q)
printf (' \n Work = %.1f kJ',W)
|
dac4998f27d08ee84c7db256f7147cf15edb928c | c02a5183ecb8b32e87391dc92c7592fd218b55f0 | /02/IsZero16.tst | 0808c4340161b4899da72b5520f49eee9d396142 | [] | no_license | feel-think/nand2tetris | 386ad8065c401a5995dbf3a38025417d2ad8125b | 819e4efa4aa523a7805c453ddab24c2c16924eee | refs/heads/master | 2022-02-11T17:24:01.814746 | 2019-09-17T08:00:10 | 2019-09-17T08:00:10 | 198,190,700 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 231 | tst | IsZero16.tst | load IsZero16.hdl,
output-file IsZero16.out,
compare-to IsZero16.cmp,
output-list in%B1.16.1 out%B2.1.2;
set in %B0000000000000000,
eval,
output;
set in %B0001000100010001,
eval,
output;
set in %B0110011001100110,
eval,
output;
|
b08d6bde640520d9fd8bae3c73c3863c1b0cd755 | 449d555969bfd7befe906877abab098c6e63a0e8 | /824/CH1/EX1.3/1_3.sce | 296457f4814ea4d0e83ec63c9f994460dabb243f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 125 | sce | 1_3.sce | //clear//
clc
clear
exec("1.3data.sci");
//CA = 0.1*CA0;
V = (v0/k)*log(1/0.1);
disp("V =")
disp(V)
disp ("dm^3")
|
4d6396fdaae76c134eb9a954169d20d52cfd5449 | 87749481136b7b72a47930f587f27667e0c0f97d | /FIR filter design/cshift.sci | 913b0bb01c4ae8bc7d1f0715308cea36582305ee | [
"MIT"
] | permissive | brooky56/Digital_Signal_Processing | cf15e5ac443a16edcb3efc8d7703cf4746dedcba | f28651e40b0a99b79e9ba27deabc4db8bfc7f08e | refs/heads/master | 2022-06-30T17:59:28.072522 | 2020-05-11T18:58:39 | 2020-05-11T18:58:39 | 242,598,653 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 491 | sci | cshift.sci | function R = cshift(M,d)
Fname = "cshift"
if argn(2)==0
head_comments(Fname)
R = []
return
end
s = size(M)
R = M
for i=1:length(d)
if s(i)>1
D = pmodulo(d(i),s(i))
if D~=0
S = emptystr(1,length(s))+":"
S(i) = "[s(i)-D+1:s(i) 1:s(i)-D]"
S = strcat(S,",")
if typeof(R) ~= "ce"
execstr("R = R("+S+")")
else
execstr("R.entries = R("+S+").entries")
end
end
end
end
endfunction
|
9d768776a21d8c532f835ecccbed1291ac6c2c65 | cac765899ef2f4a3fea7b30feb7d3cc9e32a4eb4 | /main/qp/testAVJerk.sce | a4ab6321d08b367d34e1ef27e661bbfb2f201439 | [] | no_license | clairedune/AsserVisu | 136d9cb090f709a410f23d3138ab115b722066d2 | f351f693bffd50b5ae19656a7fcb7b52e01d6943 | refs/heads/master | 2020-04-11T09:56:32.106000 | 2017-01-12T14:01:12 | 2017-01-12T14:01:12 | 1,187,919 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,305 | sce | testAVJerk.sce | //--------------------------------------------------//
// test the cost computed with different QP
//
//--------------------------------------------------//
clear;
exec('Load.sce')
disp('')
disp('------ Test Predictive Control -------')
disp('')
// Variables global pour le calcul du cout
global Q_global ;
global Udiag_global;
global Vdiag_global;
global Eframe_global;
global Sdes_global ;
global Ewalk_global ;
global Np_global;
ndof_in = 2;
Te_in = 0.1;
L_in = matIntMireC;
stateCoM_in = zeros(3*ndof_in,1);
funcost_in = costGlobalMireJerk;
Np_in = 4;
name_in ='test';
//----------------------------------------------------------------//
// problem Statement
// A fixed Object and a mobile camera
//----------------------------------------------------------------//
// ------ Camera Pose
pose = [ stateCoM_in(1) stateCoM_in(2) 0 -%pi 0 stateCoM_in(3)]';
stateCoM_m = stateCoM_in;
Np_m = Np_in; // horizon lenght
Nc_m = Np_m;
jerk_m = [0*ones(Np_m,1);0.6*ones(Np_m,1)];
ndof_m = ndof_in;
for i=1:ndof_m-2
jerk_m = [jerk_m; zeros(Np_m,1)];
end
// ------ Constraints definition
xu_m = [0.4 ; 0.4 ]; // position max of the a 2D point in the image plane
xl_m = [-0.4 ; -0.4 ]; // position min of the a 2D point in the image plane
bu_m = 1e4*0.25*ones(ndof_in,1); // command bounds
bl_m = -bu_m; // command bounds on the horizon
// -------- Sampling time
Te_m = Te_in; // to be consistant with the image frame rate
Te_simu = 1/25;
a_m = 0.10; // dimension of the target
oP_m = mire5points (a_m); // create the Npbts Points Target
Nbpts_m = length(oP_m)/3 ;
//-------- LFunction
Lfunction = L_in;
// ----- Q definction
Q_m = matWeightIdentity(Np_m,Nbpts_m);
//Q_m = matWeightIdentityZero(Np_m,Nbpts_m,1);
//Q_m = matWeightTV(Np_m,Nbpts_m);
// ----- Cost and function
funcost_m = funcost_in;
// ------ Homogeneous Poses
wMr_m = homogeneousMatrixFromPos(pose);
[rMc_m,rVc_m]= loadHRP2camCom();
wMc_m = wMr_m*rMc_m;
posecMo_m = [ 0 0 1 0 0 0 ];
posecDesMo_m= [ 0 0 1 0 0 0 ];
cMo_m = homogeneousMatrixFromPos(posecMo_m); // pose target/object init
wMo_m = wMc_m*cMo_m;
// compute the init projection on the view
cP_m = changeFrameMire(oP_m,cMo_m); // target Points in the camera frame
s_m = projectMireDirect(cP_m); // projection of the target points in the image plane
Z_m = cP_m(3:3:length(cP_m)) ; // depth of the target points in the camera frame
//------- Desired Camera Object Position
cDesMo_m = (homogeneousMatrixFromPos(posecDesMo_m));
wMcDes_m = wMo_m*inv(cDesMo_m);
wMcDes_m = wMcDes_m.*(abs(wMcDes_m)>1e-10);
// compute the desired projection on the view
cDesP_m = changeFrameMire(oP_m,cDesMo_m); // desired target Points in the camera frame
sDes_m = projectMireDirect(cDesP_m); // desired target Points projection
ZDes_m = cDesP_m(3:3:length(cDesP_m)) ; // desired depth
halt;
//-----------------
//
//------------------
[Sp_m, Sv_m, Sa_m, Up_m, Uv_m, Ua_m] = buildC(Np_m,Te_m);
[sm_out, Z_out ]= predHorGlobalMireJerk(s_m,Z_m,stateCoM_m,rMc_m,jerk_m,Sp_m,Up_m,Sv_m,Uv_m,Sa_m,Ua_m,Te_m,Np_m,ndof_m);
global computeL_global ;
computeL_global= matIntMireC;
L_out = predIntMatGlobalJerk(computeL_global,sm_out,Z_out,Np_m,Nbpts_m);
Lbig= bigPredBigMatrixGlobal(L_out,Np_m, Nbpts_m);
StepNumber=4;
defineGlobalVariableJerk(s_m,Z_m,stateCoM_m,rMc_m,Np_m,Nbpts_m,ndof_m,Te_m,sDes_m,ZDes_m,Lfunction);
Ewalk_global= [[eye(Np_global,Np_global), zeros(Np_global,StepNumber*2+Np_global)];[zeros(Np_global,StepNumber+Np_global),eye(Np_global,Np_global), zeros(Np_global,StepNumber)]] ;
Q = Ewalk_global'*Udiag_global'*Eframe_global'*Vdiag_global'*Lbig'*Lbig*Vdiag_global*Eframe_global*Udiag_global*Ewalk_global;
pT = (sm_out-Sdes_global)'*Lbig*Vdiag_global*Eframe_global*Udiag_global*Ewalk_global;
djerk_m = 0*ones(Np_m,1);
ndof_m = ndof_in;
for i=1:ndof_m-1
djerk_m = [djerk_m; zeros(Np_m,1)];
end
djerkAndrei = [djerk_m(1:Np_m);zeros(StepNumber,1);0.0*ones(Np_m,1);
zeros(StepNumber,1)];
costQP = (sm_out-Sdes_global)'*(sm_out-Sdes_global)+pT*djerkAndrei+djerkAndrei'*Q*djerkAndrei
Q2 = Udiag_global'*Eframe_global'*Vdiag_global'*Lbig'*Lbig*Vdiag_global*Eframe_global*Udiag_global;
pT2 = (sm_out-Sdes_global)'*Lbig*Vdiag_global*Eframe_global*Udiag_global;
cost2 = djerk_m'*Q2* djerk_m+pT2* djerk_m+(sm_out-Sdes_global)'*(sm_out-Sdes_global)
[Qvisu, pTvisu]= computeQPvisuDelta(sm_out,Sdes_global, Lbig)
cost3 = djerk_m'*Qvisu* djerk_m+pTvisu* djerk_m+(sm_out-Sdes_global)'*(sm_out-Sdes_global)
halt;
index=1;
costGlobal = costGlobalMireJerk(index,jerk_m+djerk_m);
disp('costGlobal')
disp(costGlobal)
costLocal = costLocalMireJerk(index,jerk_m+djerk_m) ;
disp('costLocal')
disp(costLocal)
|
1d086c75e177ce69d13608fdcfbe8a3f14a222e0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2168/CH3/EX3.18/Chapter3_example18.sce | bb326e8845ac792484a33a634d4df53877e354d4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 703 | sce | Chapter3_example18.sce | clc
clear
//Input data
n=6//Six cylinder engine
r=5//Compression ratio
Vc=110//Clearance volume in c.c
a=0.66//Efficiency ratio referred to the air standard cycle
N=2400//Speed in r.p.m
m=9.9//Mass of petrol in kg
CV=10600//Calorific value of fuel in kcal/kg
g=1.4//Ratio of specific heats
//Calculations
Vs=(r*Vc-Vc)//Swept Volume in c.c
na=(1-(1/r)^(g-1))*100//Air standard efficiency in percent
nt=(na/100)*a//Thermal efficiency
IHP=(nt*CV*m*427)/(4500*60)//Indicated Horse Power in h.p
pm=(((IHP/n)*4500*100*2)/(Vs*N))//Average indicated mean effective pressure in kg/cm^2
//Output
printf('The average indicated mean effective pressure in each cylinder is %3.3f kg/cm^2',pm)
|
d829a736056e208c802f12b41c8c88e1c41b907a | 449d555969bfd7befe906877abab098c6e63a0e8 | /401/CH3/EX3.9/Example3_9.sce | e97565ee9f3ff09f1b351cd52f94e684e51ea783 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 962 | sce | Example3_9.sce | //Example 3.9
//Program to compare rms pulse broadening per kilometer due to
//intermodal dispersion for multimode step index fiber with that of
//near parabolic graded index fiber
clear;
clc ;
close ;
//Given data
delta=0.01; //*100 percent - RELATIVE REFRACTIVE INDEX DIFFERENCE
L=1; //km - LENGTH OF OPTICAL LINK
n1=1.5; //CORE REFRACTIVE INDEX
c=2.998*10^8; //m/s - VELOCITY OF LIGHT IN VACCUM
//RMS pulse broadening /km due to intermodal dispersion for MMSI Fiber
sigma_s=L*n1*delta/(2*sqrt(3)*c);
//RMS pulse broadening /km for near parabolic graded index fiber
sigma_g=L*n1*delta^2/(20*sqrt(3)*c);
//Displaying the Results in Command Window
printf("\n\n\t RMS pulse broadening per kilometer due to intermodal dispersion for MMSI Fiber is %0.1f ns/km.",sigma_s/10^(-12));
printf("\n\n\t RMS pulse broadening per kilometer for near parabolic graded index fiber is %0.1f ps/km.",sigma_g/10^(-15)); |
9b87a03c57b7e044e5afad4977427ca685d57c40 | b2675f983fedb79e5e6f1940962373bda0570ec4 | /Cars v9/Tests/cars_login_template.tst | 8182addd30d9d92c110da8ef181878c5266739c8 | [] | no_license | Meena92/Projects | b854c40b91515bb429c9e13fb0cbc95c03e0a9d6 | 06361e24bf51883ff4140db5c37c3f40836a5752 | refs/heads/master | 2020-03-29T01:45:03.726432 | 2019-06-11T05:26:08 | 2019-06-11T05:26:08 | 149,404,524 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,484 | tst | cars_login_template.tst | <?xml version="1.0" ?>
<TestCase name="car_demo_template" version="5">
<meta>
<create version="9.5.0" buildNumber="9.5.0.371" author="admin" date="04/07/2016" host="CAIDEMO004" source="pathfinder" />
<lastEdited version="9.5.0" buildNumber="9.5.0.660" author="admin" date="04/28/2016" host="linch0512501" />
</meta>
<id>97659FAFFCE811E5AFBC2CBE20524153</id>
<IsInProject>true</IsInProject>
<sig>ZWQ9NSZ0Y3Y9NSZsaXNhdj05LjUuMCAoOS41LjAuNjYwKSZub2Rlcz0xOTYyMjAyNTI1</sig>
<subprocess>false</subprocess>
<initState>
</initState>
<resultState>
</resultState>
<deletedProps>
</deletedProps>
<Companion type="com.itko.lisa.test.FailTestCaseCompanion" >
</Companion>
<Companion type="com.ca.lisa.apptest.json.IgnoredJsonNodesCompanion" >
<ignoredJsonPathForName><string-array> <string>$.access_token</string> </string-array></ignoredJsonPathForName>
<ignoredRegExForValue></ignoredRegExForValue>
</Companion>
<Filter type="com.itko.lisa.ws.HTTPInjectHeaderFilter">
<headerKey>Authorization</headerKey>
<headerValue>{{token_type}} {{access_token}}</headerValue>
<skipStep>CAI Template Place Holder</skipStep>
</Filter>
<Node name="/cars-app/api/login" log=""
type="com.itko.lisa.ws.rest.RESTNode"
version="3"
uid="9769704BFCE811E5AFBC2CBE20524153"
think="500-1S"
useFilters="true"
quiet="false"
next="CAI Template Place Holder" >
<!-- Filters -->
<Filter type="com.ca.lisa.apptest.json.FilterJSONGet">
<valueToFilterKey>lisa./cars-app/api/login.rsp</valueToFilterKey>
<jsonPath>$.access_token</jsonPath>
<valueProp>access_token</valueProp>
<lengthProp></lengthProp>
</Filter>
<Filter type="com.ca.lisa.apptest.json.FilterJSONGet">
<valueToFilterKey>lisa./cars-app/api/login.rsp</valueToFilterKey>
<jsonPath>$.token_type</jsonPath>
<valueProp>token_type</valueProp>
<lengthProp></lengthProp>
</Filter>
<!-- Assertions -->
<CheckResult assertTrue="false" name="Assert Response Code Equals" type="com.itko.lisa.test.CheckResultHTTPResponseCode">
<log>Assertion name: Assert Response Code Equals checks for: false is of type: HTTP Response Code.</log>
<then>fail</then>
<valueToAssertKey></valueToAssertKey>
<param>200</param>
</CheckResult>
<CheckResult assertTrue="false" name="Assert Response Equals" type="com.ca.lisa.apptest.json.AssertJSONEquals2">
<log>Actual response does not match expected response.</log>
<then>continue</then>
<valueToAssertKey></valueToAssertKey>
<jsonPath>$</jsonPath>
<expectedValue>{ "access_token": "eyJhbGciOiJIUzI1NiJ9.eyJwcmluY2lwYWwiOiJINHNJQUFBQUFBQUFBSlZTUDBcL2JRQlJcL1RvTUFVUldvQkJJRFhhQmJkWkhhTVZOQmFTVmtRVVdhaFVwVUZcL3ZoSHB6dnpOMFprcVhLQkFNRHFBVUpxVitCYjFJV1BnQnFoNjdNWFhsbkNBNHNpSnZzZHpcL1wvXC9qMmZYY0dRTmZBdU1WeEl5ektaSjBJeG14bWhFb3RSYm9UcnN0eWlpZEVWaUk4RnNFVVR1RGxCQllJUUtpSjI4RExjNUR1OEpybEthaXZ0VFl4Y3ZXUGdyVGJKTGVPRzRTbnVhclBGN3JnamJmQ2VRRWtkSEZWZ2VBMG1lUlRwWExsbHJScWRUQmlNMTJDaW5JVTYydktqcVlodVVEbkJwUjJFRHFQaWJZbHhDR004ZDk4MHFRcTBEc1p2ek9aT3lGb1RYVDJFa1l4YlMrNGVKR2s2YjkzZmU1dUtFbXpEZDZoMnNvQU9kZmZhUTVubllZdGFTa290dExMekxaWHFXR3dJTDA3OHZka2ZGNGVcL2VxMEtBSFh5NXZGdnl2bk1BdlIrclwvOVwvVlJRZFJBNm1CNnlYc0hvbkl6ZVRKZk5uZzE3NTh2VFR6NU9yXC9TXC9QU05ralBqeDlIXC9QdmI1dnJMdW8wNDRZN1BiQWpvdDJ0K21jaVgzaWN2TCtGTG11S05KTklmNVJ5R045SmxNUVV0MnEwN1BmdFlIUjFKV3g4YlRVYnFcLzd0dVJTV00wc2tsc296OEtLSTduZkdRazBiT1wvaDNkSDQ0OTRkNGxtQm9oOHNjcWZtSkVyU2NwMjAwZTJjbnMyUEhmdytLSFAxXC8raHBPQ09jWUZ3TUFBQT09Iiwic3ViIjoibGlzYS5zaW1wc29uIiwicm9sZXMiOlsiUk9MRV9VU0VSIl0sImV4cCI6MTQ2MDM5MTc1NSwiaWF0IjoxNDYwMzg4MTU1fQ.zqMzBhNOoosFvr4CwxvFb2C-S117W52hWA0iY2QG2ko", "firstname": "Lisa", "roles": ["ROLE_USER"], "token_type": "Bearer", "lastname": "Simpson", "username": "lisa.simpson" }</expectedValue>
<ignoreArrayOrder>true</ignoreArrayOrder>
</CheckResult>
<url>http://{{SERVER}}:{{PORT}}/cars-app/api/login</url>
<content>{"username":"lisa.simpson","password":"golisa"}</content>
<content-type>application/json;charset=UTF-8</content-type>
<data-type>text</data-type>
<header field="accept-language" value="en-US,en;q=0.8" />
<header field="connection" value="keep-alive" />
<header field="content-type" value="application/json;charset=UTF-8" />
<header field="accept-encoding" value="gzip, deflate" />
<header field="accept" value="application/json, text/plain, */*" />
<header field="user-agent" value="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36" />
<httpMethod>POST</httpMethod>
<onError>abort</onError>
</Node>
<Node name="CAI Template Place Holder" log=""
type="com.itko.lisa.test.NoTransNode"
version="1"
uid="271EEE9BFCFA11E5A9B02CBE20524153"
think="500-1S"
useFilters="true"
quiet="true"
next="Output Log Message" >
</Node>
<Node name="Output Log Message" log=""
type="com.itko.lisa.test.TestNodeLogger"
version="1"
uid="586278EDFCFA11E5A9B02CBE20524153"
think="500-1S"
useFilters="true"
quiet="true"
next="end" >
<log>Provide logging info here. Token Information = {{token_type}} {{access_token}}</log>
</Node>
<Node name="abort" log="The test was aborted"
type="com.itko.lisa.test.AbortStep"
version="1"
uid="97659FB5FCE811E5AFBC2CBE20524153"
think="0h"
useFilters="true"
quiet="true"
next="fail" >
</Node>
<Node name="fail" log=""
type="com.itko.lisa.test.Abend"
version="1"
uid="97659FB3FCE811E5AFBC2CBE20524153"
think="0h"
useFilters="true"
quiet="true"
next="fail" >
</Node>
<Node name="end" log=""
type="com.itko.lisa.test.NormalEnd"
version="1"
uid="97659FB1FCE811E5AFBC2CBE20524153"
think="0h"
useFilters="true"
quiet="true"
next="fail" >
</Node>
</TestCase>
|
2be6022704f0045a3e8383268051958472dc61ba | 449d555969bfd7befe906877abab098c6e63a0e8 | /291/CH4/EX4.1c/eg4_1c.sce | 921c2bd00663b94d52f8a18e99604aef0e2b1b8e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 68 | sce | eg4_1c.sce | prob = 1-(1-(1/%e));
disp( prob, "Probability that X exceeds 1 is") |
572c0ae6d274f1636a15bfc4c75a22013008f342 | 449d555969bfd7befe906877abab098c6e63a0e8 | /572/CH7/EX7.3/c7_3.sce | 8506d92c551a2f29093e18d9212bcaed1fcc9dd2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,973 | sce | c7_3.sce | //(7.3) Water initially a saturated liquid at 100C is contained in a piston–cylinder assembly. The water undergoes a process to the corresponding saturated vapor state, during which the piston moves freely in the cylinder. For each of the two processes described below, determine on a unit of mass basis the change in exergy, the exergy transfer accompanying work, the exergy transfer accompanying heat, and the exergy destruction, each in kJ/kg. Let T0 = 20C, p0 = 1.014 bar. (a) The change in state is brought about by heating the water as it undergoes an internally reversible process at constant temperature and pressure. (b) The change in state is brought about adiabatically by the stirring action of a paddle wheel.
//solution
//variable initialization
T = 373.15 //initial temperature of saturated liquid in kelvin
T0 = 293.15 //in kelvin
P0 = 1.014 //in bar
//part(a)
//from table A-2
ug = 2506.5 //in kj/kg
uf = 418.94 //in kj/kg
vg = 1.673 //in m^3/kg
vf = 1.0435*10^(-3) //in m^3/kg
sg = 7.3549 //in kj/kg.k
sf = 1.3069 //in kj/kg.k
deltae = ug-uf + P0*10^5*(vg-vf)/(10^3)-T0*(sg-sf)
//exergy transfer accompanying work
etaw = 0 //since p = p0
//exergy transfer accompanying heat
Q = 2257 //in kj/kg,obtained from example 6.1
etah = (1-(T0/T))*Q
//exergy destruction
ed = 0 //since the process is accomplished without any irreversibilities
printf('part(a)the change in exergy in kj/kg is:\n\t deltae = %f ',deltae)
printf('\nthe exergy transfer accompanying work in kj/kg is:\n\t etaw = %f',etaw)
printf('\nthe exergy transfer accompanying heat in kj/kg is:\n\t etah = %f',etah)
printf('\nthe exergy destruction in kj/kg is:\n\t ed = %f',ed)
//part(b)
Deltae = deltae //since the end states are same
Etah = 0 //since process is adiabatic
//exergy transfer along work
W = -2087.56 //in kj/kg from example 6.2
Etaw = W- P0*10^5*(vg-vf)/(10^3)
//exergy destruction
Ed = -Deltae-Etaw
printf('\n\n\npart(b)the change in exergy in kj/kg is:\n\t Deltae = %f ',Deltae)
printf('\nthe exergy transfer accompanying work in kj/kg is:\n\t Etaw = %f',Etaw)
printf('\nthe exergy transfer accompanying heat in kj/kg is:\n\t Etah = %f',Etah)
printf('\nthe exergy destruction in kj/kg is:\n\t Ed = %f',Ed)
|
795edb988bf8ddf0c63171beee64958e406f6617 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3864/CH6/EX6.11/Ex6_11.sce | a3f927997ecb4161113f46a75cc3b188e7af7d57 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,107 | sce | Ex6_11.sce | clear
//
//
//Initilization of Variables
P=250*10**6 //N-mm/sec //Power transmitted
n=100 //rpm
q_s=75 //N/mm**2 //Shear stress
//Calculations
//From Equation of Power we have
T=P*60*(2*%pi*n)**-1 //N-mm //Torsional moment
//Now from torsional moment equation we have
//T=j*q_s*(d/2**-1)**-1
//After substituting values in above equation and further simplifying we get
//T=%pi*16**-1**d**3*q_s
d=(T*16*(%pi*q_s)**-1)**0.3333 //mm //Diameter of solid shaft
//PArt-2
//Let d1 and d2 be the outer and inner diameter of hollow shaft
//d2=0.6*d1
//Again from torsional moment equation we have
//T=%pi*32**-1*(d1**4-d2**4)*q_s*(d1/2)**-1
d1=(T*16*(%pi*(1-0.6**4)*q_s)**-1)**0.33333
d2=0.6*d1
//Cross sectional area of solid shaft
A1=%pi*4**-1*d**2 //mm**2
//cross sectional area of hollow shaft
A2=%pi*4**-1*(d1**2-d2**2)
//Now percentage saving in weight
//Let W be the percentage saving in weight
W=(A1-A2)*100*A1**-1
//Result
printf("\n Size of shaft is:solid shaft:d %0.3f mm",d)
printf("\n :Hollow shaft:d1 %0.3f mm",d1)
printf("\n : :d2 %0.3f mm",d2)
|
278beb337d90a14261be83a9cc172b06be30d965 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1055/CH9/EX9.4/ch9_4.sce | aa79b313f51f89cf22ff00771c302e10df5047e9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 383 | sce | ch9_4.sce | //To determine the maximum stresses in each of the three layers .
clear
clc;
r=.9;
r1=1.25
r2=r1+.35;
r3=r2+.35;// radius of outermost layer
Vd=20;// voltage difference (kV)
g1max=Vd/(r*log(r1/r));
g2max=Vd/(r1*log(r2/r1));
g3max=(66-40)/(r2*log(r3/r2));
mprintf("g1max =%.1f kV/cm\n",g1max);
mprintf("g2max =%.2f kV/cm\n",g2max);
mprintf("g3max =%.0f kV/cm\n",g3max);
|
7075f38da00ca020ae5dcb0404753c4436242686 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2159/CH12/EX12.8/128.sce | a0310f49ed155ec51773a90f1de740241f57f184 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 128.sce | // problem 12.8
D=4.5
d=2
P=20608
N=140/60
H=22
nh=0.94
w=9810
g=9.81
no=0.85
Q=P*1000/(w*no*H)
Vf1=Q*4/(3.142*((D^2)-(d^2)))
u1=3.142*D*N
Vw1=nh*g*H/u1
x1=atand(Vf1/Vw1)
disp(x1,Q,"discharge through the turbine,guide blade angle at inlet")
|
48eb1b5e32d9ede5765f1d447f7848cf59384aa1 | 717ddeb7e700373742c617a95e25a2376565112c | /3044/CH7/EX7.6/Ex7_6.sce | 68836b2f0a7fbc46422034c2f7e45a23c2967e7a | [] | 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 | 486 | sce | Ex7_6.sce | // Variable declaration
n = 50 // sample size
Mean = 305.58 // sample mean(in nm)
std_dev = 36.97 // standard deviation(in nm)
// Calculation
// as alpha = 0.01 , z(alpha/2) = 2.575
Z = 2.575
y1 = Mean - Z*(std_dev / sqrt(n)) // lower limit of range
y2 = Mean + Z*(std_dev / sqrt(n)) // upper limit of range
// Result
printf ( "99%% confidence interval(in nm): ( %.2f , %.2f )",y1,y2)
|
3125dad28be798ab105ab8362352f61f00889ad6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1109/CH1/EX1.9/1_9.sce | f81b572ae4e941df271500ca59914336693f4016 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 325 | sce | 1_9.sce | clear;
clc;
R=6;L=2*(10^-3);G=.5*(10^-6);C=.005*(10^-6);f=1000;l=100;
w=2*%pi*f;
Z=R+(%i*w*L);
Y=G+%i*w*C;
Zo=sqrt(Z/Y);
P=sqrt(Z*Y);
a=real(P);
b=imag(P);
a1=fix(a*8.66*l*10^3)/10^3;
printf("-Attenuation suffered while travelling = %f db\n",a1);
Vp=fix(w/b)/10^3;
printf("-Phase velocity Vp = %f km/sec",Vp );
|
3f1e30e332645831a509d58055b19d604219ed62 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3731/CH6/EX6.1/Ex6_1.sce | 989f15996e9b2f18155ec2a6db386eac6c261c4f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,802 | sce | Ex6_1.sce | //Chapter 6:Induction Motor Drives
//Example 1
clc;
//Variable Initialization
//Ratings of the Y-connected induction motor
f=50 // frequency in HZ
Vl=440 //line voltage in V
P=6 // number of poles
N=950 //speed in rpm
//Parameters referred to the stator
Xr_=1.2 // rotor winding reactance in ohm
Rr_=0.4 // resistance of the rotor windings in ohm
Rs=0.5 // resistance of the stator windings in ohm
Xs=Xr_ // stator winding reactance in ohm
Xm=50 // no load reactance in ohms
//Solution
Ns=120*f/P //synchronous speed in rpm
s=(Ns-N)/Ns //full load slip
x=sqrt((Rs+Rr_/s)**2+(Xs+Xr_)**2) //total impedance
Ir_=(Vl/sqrt(3))/x //full load rotor current
angle=-atan((Xs+Xr_)/(Rs+Rr_/s)) //angle in radian
Ir_=Ir_*(cos(angle)+sin(angle)*%i) //full load rotor current in rectangular form
Im=Vl/sqrt(3)/Xm*(-%i) //magnetizing current
Is=Ir_+Im //full load current
Zf=Rs+Xs*%i+%i*Xm*(Rr_/s+%i*Xr_)/(Rr_/s+%i*(Xr_+Xm))
Zb=Rs+Xs*%i+%i*Xm*(Rr_/(2-s)+%i*Xr_)/(Rr_/(2-s)+%i*(Xr_+Xm))
Z=Zf+Zb
I=(Vl/sqrt(3))/abs(Z) //motor current
Wms=2*%pi*Ns/60
//Torque due to positive sequence
Tp=(1/Wms)*(3*I**2*Xm**2*Rr_/s)/((Rr_/s)**2+(Xr_+Xm)**2)
//Torque due to negative sequence
Tn=-(1/Wms)*(3*I**2*Xm**2*Rr_/(2-s))/((Rr_/(2-s))**2+(Xr_+Xm)**2)
T=Tp+Tn //net torque
Wm=Wms*(1-s) //rated speed in in rad/sec
Tl=0.0123*Wm**2 //required torque of the load
//Results
var=phasemag(Is)
mprintf("Full load motor current Is:%.1f %.1f ° A",abs(Is),var)
mprintf("\nTp:%.2f N-m",Tp)
mprintf("\nTn:%.3f N-m",Tn)
mprintf("\n\nSince I:%.2f A and N:%d rpm",I,N)
mprintf("\nAnd I:%.2f A< Is %.2f A, the motor will run safely",I,abs(Is))
|
a75fc025fe33be778995f5bee5ca9810279f7d06 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2006/CH4/EX4.5/ex4_5.sce | b4dfdc509d0d632176088d3682b317203075ac46 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,129 | sce | ex4_5.sce | clc;
p1=0.1; // Initial pressure (before compression) of air in MPa
T1=30; // Initial temperature (before compression) of air in degree celcius
p2=0.9; // Final pressure (after compression) of air in MPa
R=0.287; // Characteristic constant of air in kJ/kg k
// (i) Actual work in the flow process
// (a).Isothermal Process
w=-R*(T1+273)*log (p2/p1); // work done for isothermal process
disp ("kJ/kg",w,"work done = ","(a).Isothermal Process","(i) Actual work in the flow process");
// (b).Polytropic process
n=1.4; // Index of polytropic process
T2=(T1+273)*(p2/p1)^((n-1)/n); // From Polytropic process relation for final temperature
w=(n/(1-n))*R*(T2-(T1+273)); // work done for polytropic process
disp ("kJ/kg",w,"compression work = ","(b).Polytropic process");
// (ii).Nonflow work
// (a).Isothermal Process
w=-R*(T1+273)*log (p2/p1); // work done for isothermal process
disp ("kJ/kg",w,"work done = ","(a).Isothermal Process","(ii).Nonflow work");
// (b).Polytropic process
w=(1/(1-n))*R*(T2-(T1+273));// work done for polytropic process
disp ("kJ/kg",w,"compression work = ","(b).Polytropic process");
|
1c7426a1c86fd083e9b67999fc524ccdb23bc185 | 9182a918c195a40e939d89161585e04a97513ad9 | /parsec_gridgen.sce | 4697ae733cb9186da33b10664fa4fe589032f970 | [] | no_license | marcellorighi/haps_optimization | 996f7fbae18e8128a4e9d55ceafe0758ea513960 | 0ac1d1053350bbed2d747a1fe1b31b75f47e69a0 | refs/heads/main | 2023-01-02T11:27:55.854626 | 2020-10-21T11:03:08 | 2020-10-21T11:03:08 | 305,994,280 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,792 | sce | parsec_gridgen.sce | clear;
nsamples = 24;
nactive=4;
RV=grand(nactive,"prm",(0:(nsamples-1))')/(nsamples) + grand(nsamples,nactive,"unf",0,1/nsamples)-0.5;
t=0.06;
eps = 0.075;
dt = eps * RV(:,1) * t;
P1 = 1.1019*(t + dt).^2;
P2 = 0.30 * (1 + eps * RV(:,2));
P3 = 0.5 * (t + dt);
P4 = -0.2125 * (1 + RV(:,3) * eps);
P5 = P1;
P6 = P2;
P7 = P4;
P8 = zeros(P1);
P9 = 6.3e-4*2 * ones(P1);
P10= zeros(P1);
P11= 8*%pi/(180) * (1 + RV(:,4) * eps);
/*
p1=1.1019*t^2; //0.005;
p2=0.30;
p3=t/2;
p4=-0.2125;
p5=p1;
p6=p2;
p7=p4;
p8=0;
p9=6.3e-4*2;
p10=0.;
p11= 8*%pi/(180);
*/
//x=linspace(0,1,100);
tt=0:%pi/200:%pi/2;
xx=1-cos(tt);
upper(:,1) = xx;
lower(:,1) = xx;
exec('/home/rigm/SU2/runs/Scilab/airfoil/param/ogrid_func.sce');
f1=scf(1); clf;
for isample = 1:nsamples;
p1 = P1(isample);
p2 = P2(isample);
p3 = P3(isample);
p4 = P4(isample);
p5 = P5(isample);
p6 = P6(isample);
p7 = P7(isample);
p8 = P8(isample);
p9 = P9(isample);
p10 = P10(isample);
p11 = P11(isample);
Cup = [ones(1,6);
p2^(1/2) p2^(3/2) p2^(5/2) p2^(7/2) p2^(9/2) p2^(11/2);
1/2 3/2 5/2 7/2 9/2 11/2;
1/2*p2^(-1/2) 3/2*p2^(1/2) 5/2*p2^(3/2) 7/2*p2^(5/2) 9/2*p2^(7/2) 11/2*p2^(9/2);
-1/4*p2^(-3/2) 3/4*p2^(-1/2) 15/4*p2^(1/2) 35/4*p2^(3/2) 63/4*p2^(5/2) 99/4*p2^(7/2);
1 zeros(1,5)];
bup = [p8 + p9/2;
p3;
tan(p10 -p11/2);
0;
p4;
sqrt(2*p1)];
aup = inv(Cup)*bup;
yup=aup(1)*xx.^(1/2)+aup(2)*xx.^(3/2)+aup(3)*xx.^(5/2)+aup(4)*xx.^(7/2)+aup(5)*xx.^(9/2)+aup(6)*xx.^(11/2);
yup_naca = t*5*(0.2969*xx.^(1/2)-0.1260*xx-0.3516*xx.^2+0.2843*xx.^3-0.1015*xx.^4);
plot(xx,yup,'b-',xx,yup_naca,'r-');
upper(:,2)=yup;
lower(:,2)=-yup;
Dir='/home/rigm/SU2/runs/If/NACA0006/UQ/M015/pert_'+string(isample);
unix('mkdir -p ' + Dir); // /home/staff/rigm/unix/SU2/runs/awp-testing/airfoil10/pert1/pert'+string(isample));
fileNameG=Dir+'/mesh.su2';
nPts=256;
nPts2=256;
nJ=128;
hBL=5.0e-6;
Radius=500.;
[x,y,nX]=ogrid_func(upper,lower,nPts,nPts2,nJ,1.125,hBL,Radius);
f4=scf(4);
clf();
a=get("current_axes");
a.rotation_angles=[90,0];
title('$\Large \text{Airfoil}$');
mesh(x,y,zeros(x));
xgrid;
// numbering points
for j=1:nJ;
for i=1:nX;
npoin(i,j)=i-1+(nX)*(j-1);
end;
end;
// numbering elements
for j=1:nJ-1;
for i=1:nX;
nelem(i,j)=i-1+(nX-1)*(j-1);
end;
end;
//
// saving Design Param perturbations
fileNameParam=Dir+'/para.csv';
fd=mopen(fileNameParam,"wt");
mfprintf(fd,'DP Pert\n');
mfprintf(fd,'%3.0f,%13.8f\n',[1:4]',RV(isample,:)');
mclose(fd);
fdg=mopen(fileNameG,'wt');
mfprintf(fdg,'NDIME=2\n');
mfprintf(fdg,'NELEM=%i\n',nX*(nJ-1));
for j=1:nJ-1
for i=1:nX-1
mfprintf(fdg,'%i %i %i %i %i %i\n',9,npoin(i,j),npoin(i,j+1),npoin(i+1,j+1),npoin(i+1,j),nelem(i,j));
end;
mfprintf(fdg,'%i %i %i %i %i %i\n',9,npoin(nX,j),npoin(nX,j+1),npoin(1,j+1),npoin(1,j),nelem(nX,j));
end;
mfprintf(fdg,'NPOIN=%i\n',(nX)*(nJ));
for j=1:nJ
for i=1:nX
mfprintf(fdg,'%e %e %i\n',x(i,j),y(i,j),npoin(i,j));
end;
end;
nmark=2;
mfprintf(fdg,'NMARK=%d\n',nmark);
mfprintf(fdg,'MARKER_TAG=%s\n','Airfoil');
mfprintf(fdg,'MARKER_ELEMS=%i\n',nX);
for i=2:nX;
mfprintf(fdg,'%i %i %i\n',3,npoin(i,1),npoin(i-1,1));
end;
mfprintf(fdg,'%i %i %i\n',3,npoin(1,1),npoin(nX,1));
mfprintf(fdg,'MARKER_TAG=%s\n','Farfield');
mfprintf(fdg,'MARKER_ELEMS=%i\n',nX);
for i=1:nX-1;
mfprintf(fdg,'%i %i %i\n',3,npoin(i,nJ),npoin(i+1,nJ));
end;
mfprintf(fdg,'%i %i %i\n',3,npoin(nX,nJ),npoin(1,nJ));
mclose(fdg);
//
end; // loop over samples
|
7118ff6f96e94d1802abd4852d496bac85608ca5 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/macros/int/%s_2_i.sci | 5dc7d6c0f1502f57263e98712dddbfb794603ff3 | [
"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 | 44 | sci | %s_2_i.sci | function r=%s_2_i(a,b)
// a>b
r=a>double(b)
|
0ad99fc7e411456829bc9e49a5b672d200b56cf8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1535/CH6/EX6.13/Ch06Ex13.sci | bd20d5322c31a2b4c74dda3acfa8c3a85e248d76 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 656 | sci | Ch06Ex13.sci | // Scilab Code Ex6.13 : Distance between nearest neighbours of NaCl: Page-138 (2010)
M = 23+35.5; // Molecular weight of NaCl, kg per k-mole
d = 2.18e+03; // Density of rock salt, kg per metre cube
n = 4; // No. of atoms per unit cell for an fcc lattice of NaCl crystal
N = 6.023D+26; // Avogadro's No., atoms/k-mol
// Volume of the unit cell is given by
// a^3 = M*n/(N*d)
// Solving for a
a = (n*M/(d*N))^(1/3); // Lattice constant of unit cell of NaCl
printf("\nThe distance between nearest neighbours of NaCl structure = %5.3e", a/2);
// Result
// The distance between nearest neighbours of NaCl structure = 2.814e-010 |
464bdc59ae1e73899182a2faa8093b9fcbed1386 | 449d555969bfd7befe906877abab098c6e63a0e8 | /29/CH4/EX4.4.2/exa4_4_2.sce | aa85ac9430f89a2525c6826b0fcc141ec3113055 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 431 | sce | exa4_4_2.sce | //Caption:overall_gain
// example 4.4.2
//page 65
syms a b c d e f g h
// forward path denoted by P1,P2 and so on and loop by L1,L2 and so on
//path factor by D1,D2 and so on and graph determinant by D
P1=a*b*c*d;
P2=a*g;
L1=f;
L2=c*e;
L3=d*h;
//nontouching loops are L1L2, L1L3
L1L2=L1*L2;
L1L3=L1*L3;
D1=1;
D2=1-L2;
D=1-(L1+L2+L3)+(L1L2+L1L3);
D=simple(D);
Y=(P1*D1+P2*D2)/D;
Y=simple(Y);
disp(Y,"x5/x1"); |
8ca6828d27527300fda89ab288e440a2c3f9762b | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/TED1.prev.tst | 1721a1664547021393c2bb0a083f09a9f86b68b0 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 30,396 | tst | TED1.prev.tst | Expanding for base=3, level=5, reasons+features=base,same,similiar invall,norm
Refined variables=x,y
[0+1x,0+1y]: unknown -> [1] [0,0] 2x²-4y³
-> solution [0,0],trivial(3)
---------------- level 0
expanding queue[0]^-1,meter=[3,3]: 2x²-4y³
[0+3x,0+3y]: unknown -> [1] [0,0] x²-6y³
-> solution [0,0],trivial(3)
[1+3x,2+3y]: unknown -> [2] [1,2] 2x+3x²-24y-36y²-18y³-5
-> solution [4,2],NONTRIVIAL
[2+3x,2+3y]: unknown -> [3] [2,2] 4x+3x²-24y-36y²-18y³-4
endexp[0]
---------------- level 1
expanding queue[1]^0,meter=[3,3]: x²-6y³
[0+9x,0+9y]: unknown -> [4] [0,0] x²-18y³
-> solution [0,0],trivial(3)
endexp[1]
expanding queue[2]^0,meter=[3,3]: 2x+3x²-24y-36y²-18y³-5
[4+9x,2+9y]: unknown -> [5] [1,0] 8x+9x²-24y-108y²-162y³
-> solution [4,2],NONTRIVIAL
[4+9x,5+9y]: unknown -> [6] [1,1] 8x+9x²-150y-270y²-162y³-26
[4+9x,8+9y]: unknown -> [7] [1,2] 8x+9x²-384y-432y²-162y³-112
endexp[2]
expanding queue[3]^0,meter=[3,3]: 4x+3x²-24y-36y²-18y³-4
[5+9x,2+9y]: unknown -> [8] [1,0] 10x+9x²-24y-108y²-162y³+1
[5+9x,5+9y]: unknown -> [9] [1,1] 10x+9x²-150y-270y²-162y³-25
[5+9x,8+9y]: unknown -> [10] [1,2] 10x+9x²-384y-432y²-162y³-111
endexp[3]
---------------- level 2
expanding queue[4]^1,meter=[3,3]: x²-18y³
[0+27x,0+27y]: same x²-54y³ map {y=>y/3} -> [0] 2x²-4y³
-> solution [0,0],trivial(3)
[0+27x,9+27y]: unknown -> [11] [0,1] x²-18y-54y²-54y³-2
[0+27x,18+27y]: unknown -> [12] [0,2] x²-72y-108y²-54y³-16
endexp[4]
expanding queue[5]^2,meter=[3,3]: 8x+9x²-24y-108y²-162y³
[4+27x,2+27y]: unknown -> [13] [0,0] 8x+27x²-24y-324y²-1458y³
-> solution [4,2],NONTRIVIAL
[4+27x,11+27y]: unknown -> [14] [0,1] 8x+27x²-726y-1782y²-1458y³-98
[4+27x,20+27y]: unknown -> [15] [0,2] 8x+27x²-2400y-3240y²-1458y³-592
endexp[5]
expanding queue[6]^2,meter=[3,3]: 8x+9x²-150y-270y²-162y³-26
[13+27x,5+27y]: unknown -> [16] [1,0] 26x+27x²-150y-810y²-1458y³-3
[13+27x,14+27y]: unknown -> [17] [1,1] 26x+27x²-1176y-2268y²-1458y³-197
[13+27x,23+27y]: unknown -> [18] [1,2] 26x+27x²-3174y-3726y²-1458y³-895
endexp[6]
expanding queue[7]^2,meter=[3,3]: 8x+9x²-384y-432y²-162y³-112
[22+27x,8+27y]: unknown -> [19] [2,0] 44x+27x²-384y-1296y²-1458y³-20
[22+27x,17+27y]: unknown -> [20] [2,1] 44x+27x²-1734y-2754y²-1458y³-346
[22+27x,26+27y]: unknown -> [21] [2,2] 44x+27x²-4056y-4212y²-1458y³-1284
endexp[7]
expanding queue[8]^3,meter=[3,3]: 10x+9x²-24y-108y²-162y³+1
[23+27x,2+27y]: unknown -> [22] [2,0] 46x+27x²-24y-324y²-1458y³+19
[23+27x,11+27y]: unknown -> [23] [2,1] 46x+27x²-726y-1782y²-1458y³-79
[23+27x,20+27y]: unknown -> [24] [2,2] 46x+27x²-2400y-3240y²-1458y³-573
endexp[8]
expanding queue[9]^3,meter=[3,3]: 10x+9x²-150y-270y²-162y³-25
[14+27x,5+27y]: unknown -> [25] [1,0] 28x+27x²-150y-810y²-1458y³-2
[14+27x,14+27y]: unknown -> [26] [1,1] 28x+27x²-1176y-2268y²-1458y³-196
[14+27x,23+27y]: unknown -> [27] [1,2] 28x+27x²-3174y-3726y²-1458y³-894
endexp[9]
expanding queue[10]^3,meter=[3,3]: 10x+9x²-384y-432y²-162y³-111
[5+27x,8+27y]: unknown -> [28] [0,0] 10x+27x²-384y-1296y²-1458y³-37
-> solution [32,8],NONTRIVIAL
[5+27x,17+27y]: unknown -> [29] [0,1] 10x+27x²-1734y-2754y²-1458y³-363
[5+27x,26+27y]: unknown -> [30] [0,2] 10x+27x²-4056y-4212y²-1458y³-1301
endexp[10]
---------------- level 3
expanding queue[11]^4,meter=[3,3]: x²-18y-54y²-54y³-2
endexp[11]
expanding queue[12]^4,meter=[3,3]: x²-72y-108y²-54y³-16
[27+81x,18+81y]: unknown -> [31] [1,0] 2x+3x²-72y-324y²-486y³-5
-> solution [108,18],NONTRIVIAL
[54+81x,18+81y]: unknown -> [32] [2,0] 4x+3x²-72y-324y²-486y³-4
[27+81x,45+81y]: unknown -> [33] [1,1] 2x+3x²-450y-810y²-486y³-83
[54+81x,45+81y]: unknown -> [34] [2,1] 4x+3x²-450y-810y²-486y³-82
[27+81x,72+81y]: unknown -> [35] [1,2] 2x+3x²-1152y-1296y²-486y³-341
[54+81x,72+81y]: unknown -> [36] [2,2] 4x+3x²-1152y-1296y²-486y³-340
endexp[12]
expanding queue[13]^5,meter=[3,3]: 8x+27x²-24y-324y²-1458y³
[4+81x,2+81y]: unknown -> [37] [0,0] 8x+81x²-24y-972y²-13122y³
-> solution [4,2],NONTRIVIAL
[4+81x,29+81y]: unknown -> [38] [0,1] 8x+81x²-5046y-14094y²-13122y³-602
[4+81x,56+81y]: unknown -> [39] [0,2] 8x+81x²-18816y-27216y²-13122y³-4336
endexp[13]
expanding queue[14]^5,meter=[3,3]: 8x+27x²-726y-1782y²-1458y³-98
[31+81x,11+81y]: unknown -> [40] [1,0] 62x+81x²-726y-5346y²-13122y³-21
[31+81x,38+81y]: unknown -> [41] [1,1] 62x+81x²-8664y-18468y²-13122y³-1343
[31+81x,65+81y]: unknown -> [42] [1,2] 62x+81x²-25350y-31590y²-13122y³-6769
endexp[14]
expanding queue[15]^5,meter=[3,3]: 8x+27x²-2400y-3240y²-1458y³-592
[58+81x,20+81y]: unknown -> [43] [2,0] 116x+81x²-2400y-9720y²-13122y³-156
[58+81x,47+81y]: unknown -> [44] [2,1] 116x+81x²-13254y-22842y²-13122y³-2522
[58+81x,74+81y]: unknown -> [45] [2,2] 116x+81x²-32856y-35964y²-13122y³-9964
endexp[15]
expanding queue[16]^6,meter=[3,3]: 26x+27x²-150y-810y²-1458y³-3
[13+81x,5+81y]: unknown -> [46] [0,0] 26x+81x²-150y-2430y²-13122y³-1
[13+81x,32+81y]: unknown -> [47] [0,1] 26x+81x²-6144y-15552y²-13122y³-807
[13+81x,59+81y]: unknown -> [48] [0,2] 26x+81x²-20886y-28674y²-13122y³-5069
endexp[16]
expanding queue[17]^6,meter=[3,3]: 26x+27x²-1176y-2268y²-1458y³-197
[40+81x,14+81y]: unknown -> [49] [1,0] 80x+81x²-1176y-6804y²-13122y³-48
[40+81x,41+81y]: unknown -> [50] [1,1] 80x+81x²-10086y-19926y²-13122y³-1682
[40+81x,68+81y]: unknown -> [51] [1,2] 80x+81x²-27744y-33048y²-13122y³-7744
endexp[17]
expanding queue[18]^6,meter=[3,3]: 26x+27x²-3174y-3726y²-1458y³-895
[67+81x,23+81y]: unknown -> [52] [2,0] 134x+81x²-3174y-11178y²-13122y³-245
[67+81x,50+81y]: unknown -> [53] [2,1] 134x+81x²-15000y-24300y²-13122y³-3031
[67+81x,77+81y]: unknown -> [54] [2,2] 134x+81x²-35574y-37422y²-13122y³-11217
endexp[18]
expanding queue[19]^7,meter=[3,3]: 44x+27x²-384y-1296y²-1458y³-20
[49+81x,8+81y]: unknown -> [55] [1,0] 98x+81x²-384y-3888y²-13122y³+17
[49+81x,35+81y]: unknown -> [56] [1,1] 98x+81x²-7350y-17010y²-13122y³-1029
[49+81x,62+81y]: unknown -> [57] [1,2] 98x+81x²-23064y-30132y²-13122y³-5855
endexp[19]
expanding queue[20]^7,meter=[3,3]: 44x+27x²-1734y-2754y²-1458y³-346
[76+81x,17+81y]: unknown -> [58] [2,0] 152x+81x²-1734y-8262y²-13122y³-50
[76+81x,44+81y]: unknown -> [59] [2,1] 152x+81x²-11616y-21384y²-13122y³-2032
[76+81x,71+81y]: unknown -> [60] [2,2] 152x+81x²-30246y-34506y²-13122y³-8766
endexp[20]
expanding queue[21]^7,meter=[3,3]: 44x+27x²-4056y-4212y²-1458y³-1284
[22+81x,26+81y]: unknown -> [61] [0,0] 44x+81x²-4056y-12636y²-13122y³-428
[22+81x,53+81y]: unknown -> [62] [0,1] 44x+81x²-16854y-25758y²-13122y³-3670
[22+81x,80+81y]: unknown -> [63] [0,2] 44x+81x²-38400y-38880y²-13122y³-12636
endexp[21]
expanding queue[22]^8,meter=[3,3]: 46x+27x²-24y-324y²-1458y³+19
[77+81x,2+81y]: unknown -> [64] [2,0] 154x+81x²-24y-972y²-13122y³+73
[77+81x,29+81y]: unknown -> [65] [2,1] 154x+81x²-5046y-14094y²-13122y³-529
[77+81x,56+81y]: unknown -> [66] [2,2] 154x+81x²-18816y-27216y²-13122y³-4263
endexp[22]
expanding queue[23]^8,meter=[3,3]: 46x+27x²-726y-1782y²-1458y³-79
[50+81x,11+81y]: unknown -> [67] [1,0] 100x+81x²-726y-5346y²-13122y³-2
[50+81x,38+81y]: unknown -> [68] [1,1] 100x+81x²-8664y-18468y²-13122y³-1324
[50+81x,65+81y]: unknown -> [69] [1,2] 100x+81x²-25350y-31590y²-13122y³-6750
endexp[23]
expanding queue[24]^8,meter=[3,3]: 46x+27x²-2400y-3240y²-1458y³-573
[23+81x,20+81y]: unknown -> [70] [0,0] 46x+81x²-2400y-9720y²-13122y³-191
[23+81x,47+81y]: unknown -> [71] [0,1] 46x+81x²-13254y-22842y²-13122y³-2557
[23+81x,74+81y]: unknown -> [72] [0,2] 46x+81x²-32856y-35964y²-13122y³-9999
endexp[24]
expanding queue[25]^9,meter=[3,3]: 28x+27x²-150y-810y²-1458y³-2
[68+81x,5+81y]: unknown -> [73] [2,0] 136x+81x²-150y-2430y²-13122y³+54
[68+81x,32+81y]: unknown -> [74] [2,1] 136x+81x²-6144y-15552y²-13122y³-752
[68+81x,59+81y]: unknown -> [75] [2,2] 136x+81x²-20886y-28674y²-13122y³-5014
endexp[25]
expanding queue[26]^9,meter=[3,3]: 28x+27x²-1176y-2268y²-1458y³-196
[41+81x,14+81y]: unknown -> [76] [1,0] 82x+81x²-1176y-6804y²-13122y³-47
[41+81x,41+81y]: unknown -> [77] [1,1] 82x+81x²-10086y-19926y²-13122y³-1681
[41+81x,68+81y]: unknown -> [78] [1,2] 82x+81x²-27744y-33048y²-13122y³-7743
endexp[26]
expanding queue[27]^9,meter=[3,3]: 28x+27x²-3174y-3726y²-1458y³-894
[14+81x,23+81y]: unknown -> [79] [0,0] 28x+81x²-3174y-11178y²-13122y³-298
[14+81x,50+81y]: unknown -> [80] [0,1] 28x+81x²-15000y-24300y²-13122y³-3084
[14+81x,77+81y]: unknown -> [81] [0,2] 28x+81x²-35574y-37422y²-13122y³-11270
endexp[27]
expanding queue[28]^10,meter=[3,3]: 10x+27x²-384y-1296y²-1458y³-37
[32+81x,8+81y]: unknown -> [82] [1,0] 64x+81x²-384y-3888y²-13122y³
-> solution [32,8],NONTRIVIAL
[32+81x,35+81y]: unknown -> [83] [1,1] 64x+81x²-7350y-17010y²-13122y³-1046
[32+81x,62+81y]: unknown -> [84] [1,2] 64x+81x²-23064y-30132y²-13122y³-5872
endexp[28]
expanding queue[29]^10,meter=[3,3]: 10x+27x²-1734y-2754y²-1458y³-363
[5+81x,17+81y]: unknown -> [85] [0,0] 10x+81x²-1734y-8262y²-13122y³-121
[5+81x,44+81y]: unknown -> [86] [0,1] 10x+81x²-11616y-21384y²-13122y³-2103
[5+81x,71+81y]: unknown -> [87] [0,2] 10x+81x²-30246y-34506y²-13122y³-8837
endexp[29]
expanding queue[30]^10,meter=[3,3]: 10x+27x²-4056y-4212y²-1458y³-1301
[59+81x,26+81y]: unknown -> [88] [2,0] 118x+81x²-4056y-12636y²-13122y³-391
[59+81x,53+81y]: unknown -> [89] [2,1] 118x+81x²-16854y-25758y²-13122y³-3633
[59+81x,80+81y]: unknown -> [90] [2,2] 118x+81x²-38400y-38880y²-13122y³-12599
endexp[30]
---------------- level 4
expanding queue[31]^12,meter=[3,3]: 2x+3x²-72y-324y²-486y³-5
[108+243x,18+243y]: unknown -> [91] [1,0] 8x+9x²-72y-972y²-4374y³
-> solution [108,18],NONTRIVIAL
[108+243x,99+243y]: unknown -> [92] [1,1] 8x+9x²-2178y-5346y²-4374y³-294
[108+243x,180+243y]: unknown -> [93] [1,2] 8x+9x²-7200y-9720y²-4374y³-1776
endexp[31]
expanding queue[32]^12,meter=[3,3]: 4x+3x²-72y-324y²-486y³-4
[135+243x,18+243y]: unknown -> [94] [1,0] 10x+9x²-72y-972y²-4374y³+1
[135+243x,99+243y]: unknown -> [95] [1,1] 10x+9x²-2178y-5346y²-4374y³-293
[135+243x,180+243y]: unknown -> [96] [1,2] 10x+9x²-7200y-9720y²-4374y³-1775
endexp[32]
expanding queue[33]^12,meter=[3,3]: 2x+3x²-450y-810y²-486y³-83
[108+243x,45+243y]: unknown -> [97] [1,0] 8x+9x²-450y-2430y²-4374y³-26
[108+243x,126+243y]: unknown -> [98] [1,1] 8x+9x²-3528y-6804y²-4374y³-608
[108+243x,207+243y]: unknown -> [99] [1,2] 8x+9x²-9522y-11178y²-4374y³-2702
endexp[33]
expanding queue[34]^12,meter=[3,3]: 4x+3x²-450y-810y²-486y³-82
[135+243x,45+243y]: unknown -> [100] [1,0] 10x+9x²-450y-2430y²-4374y³-25
[135+243x,126+243y]: unknown -> [101] [1,1] 10x+9x²-3528y-6804y²-4374y³-607
[135+243x,207+243y]: unknown -> [102] [1,2] 10x+9x²-9522y-11178y²-4374y³-2701
endexp[34]
expanding queue[35]^12,meter=[3,3]: 2x+3x²-1152y-1296y²-486y³-341
[108+243x,72+243y]: unknown -> [103] [1,0] 8x+9x²-1152y-3888y²-4374y³-112
[108+243x,153+243y]: unknown -> [104] [1,1] 8x+9x²-5202y-8262y²-4374y³-1090
[108+243x,234+243y]: unknown -> [105] [1,2] 8x+9x²-12168y-12636y²-4374y³-3904
endexp[35]
expanding queue[36]^12,meter=[3,3]: 4x+3x²-1152y-1296y²-486y³-340
[135+243x,72+243y]: unknown -> [106] [1,0] 10x+9x²-1152y-3888y²-4374y³-111
[135+243x,153+243y]: unknown -> [107] [1,1] 10x+9x²-5202y-8262y²-4374y³-1089
[135+243x,234+243y]: unknown -> [108] [1,2] 10x+9x²-12168y-12636y²-4374y³-3903
endexp[36]
expanding queue[37]^13,meter=[3,3]: 8x+81x²-24y-972y²-13122y³
[4+243x,2+243y]: unknown -> [109] [0,0] 8x+243x²-24y-2916y²-118098y³
-> solution [4,2],NONTRIVIAL
[4+243x,83+243y]: unknown -> [110] [0,1] 8x+243x²-41334y-121014y²-118098y³-4706
[4+243x,164+243y]: unknown -> [111] [0,2] 8x+243x²-161376y-239112y²-118098y³-36304
endexp[37]
expanding queue[38]^13,meter=[3,3]: 8x+81x²-5046y-14094y²-13122y³-602
[85+243x,29+243y]: unknown -> [112] [1,0] 170x+243x²-5046y-42282y²-118098y³-171
[85+243x,110+243y]: unknown -> [113] [1,1] 170x+243x²-72600y-160380y²-118098y³-10925
[85+243x,191+243y]: unknown -> [114] [1,2] 170x+243x²-218886y-278478y²-118098y³-57319
endexp[38]
expanding queue[39]^13,meter=[3,3]: 8x+81x²-18816y-27216y²-13122y³-4336
[166+243x,56+243y]: unknown -> [115] [2,0] 332x+243x²-18816y-81648y²-118098y³-1332
[166+243x,137+243y]: unknown -> [116] [2,1] 332x+243x²-112614y-199746y²-118098y³-21050
[166+243x,218+243y]: unknown -> [117] [2,2] 332x+243x²-285144y-317844y²-118098y³-85156
endexp[39]
expanding queue[40]^14,meter=[3,3]: 62x+81x²-726y-5346y²-13122y³-21
[31+243x,11+243y]: unknown -> [118] [0,0] 62x+243x²-726y-16038y²-118098y³-7
[31+243x,92+243y]: unknown -> [119] [0,1] 62x+243x²-50784y-134136y²-118098y³-6405
[31+243x,173+243y]: unknown -> [120] [0,2] 62x+243x²-179574y-252234y²-118098y³-42611
endexp[40]
expanding queue[41]^14,meter=[3,3]: 62x+81x²-8664y-18468y²-13122y³-1343
[112+243x,38+243y]: unknown -> [121] [1,0] 224x+243x²-8664y-55404y²-118098y³-400
[112+243x,119+243y]: unknown -> [122] [1,1] 224x+243x²-84966y-173502y²-118098y³-13818
[112+243x,200+243y]: unknown -> [123] [1,2] 224x+243x²-240000y-291600y²-118098y³-65792
endexp[41]
expanding queue[42]^14,meter=[3,3]: 62x+81x²-25350y-31590y²-13122y³-6769
[193+243x,65+243y]: unknown -> [124] [2,0] 386x+243x²-25350y-94770y²-118098y³-2107
[193+243x,146+243y]: unknown -> [125] [2,1] 386x+243x²-127896y-212868y²-118098y³-25461
[193+243x,227+243y]: unknown -> [126] [2,2] 386x+243x²-309174y-330966y²-118098y³-96119
endexp[42]
expanding queue[43]^15,meter=[3,3]: 116x+81x²-2400y-9720y²-13122y³-156
[58+243x,20+243y]: unknown -> [127] [0,0] 116x+243x²-2400y-29160y²-118098y³-52
[58+243x,101+243y]: unknown -> [128] [0,1] 116x+243x²-61206y-147258y²-118098y³-8466
[58+243x,182+243y]: unknown -> [129] [0,2] 116x+243x²-198744y-265356y²-118098y³-49604
endexp[43]
expanding queue[44]^15,meter=[3,3]: 116x+81x²-13254y-22842y²-13122y³-2522
[139+243x,47+243y]: unknown -> [130] [1,0] 278x+243x²-13254y-68526y²-118098y³-775
[139+243x,128+243y]: unknown -> [131] [1,1] 278x+243x²-98304y-186624y²-118098y³-17181
[139+243x,209+243y]: unknown -> [132] [1,2] 278x+243x²-262086y-304722y²-118098y³-75059
endexp[44]
expanding queue[45]^15,meter=[3,3]: 116x+81x²-32856y-35964y²-13122y³-9964
[220+243x,74+243y]: unknown -> [133] [2,0] 440x+243x²-32856y-107892y²-118098y³-3136
[220+243x,155+243y]: unknown -> [134] [2,1] 440x+243x²-144150y-225990y²-118098y³-30450
[220+243x,236+243y]: unknown -> [135] [2,2] 440x+243x²-334176y-344088y²-118098y³-107984
endexp[45]
expanding queue[46]^16,meter=[3,3]: 26x+81x²-150y-2430y²-13122y³-1
[175+243x,5+243y]: unknown -> [136] [2,0] 350x+243x²-150y-7290y²-118098y³+125
[175+243x,86+243y]: unknown -> [137] [2,1] 350x+243x²-44376y-125388y²-118098y³-5109
[175+243x,167+243y]: unknown -> [138] [2,2] 350x+243x²-167334y-243486y²-118098y³-38207
endexp[46]
expanding queue[47]^16,meter=[3,3]: 26x+81x²-6144y-15552y²-13122y³-807
[13+243x,32+243y]: unknown -> [139] [0,0] 26x+243x²-6144y-46656y²-118098y³-269
-> solution [256,32],NONTRIVIAL
[13+243x,113+243y]: unknown -> [140] [0,1] 26x+243x²-76614y-164754y²-118098y³-11875
[13+243x,194+243y]: unknown -> [141] [0,2] 26x+243x²-225816y-282852y²-118098y³-60093
endexp[47]
expanding queue[48]^16,meter=[3,3]: 26x+81x²-20886y-28674y²-13122y³-5069
[94+243x,59+243y]: unknown -> [142] [1,0] 188x+243x²-20886y-86022y²-118098y³-1654
[94+243x,140+243y]: unknown -> [143] [1,1] 188x+243x²-117600y-204120y²-118098y³-22548
[94+243x,221+243y]: unknown -> [144] [1,2] 188x+243x²-293046y-322218y²-118098y³-88802
endexp[48]
expanding queue[49]^17,meter=[3,3]: 80x+81x²-1176y-6804y²-13122y³-48
[40+243x,14+243y]: unknown -> [145] [0,0] 80x+243x²-1176y-20412y²-118098y³-16
[40+243x,95+243y]: unknown -> [146] [0,1] 80x+243x²-54150y-138510y²-118098y³-7050
[40+243x,176+243y]: unknown -> [147] [0,2] 80x+243x²-185856y-256608y²-118098y³-44864
endexp[49]
expanding queue[50]^17,meter=[3,3]: 80x+81x²-10086y-19926y²-13122y³-1682
[121+243x,41+243y]: unknown -> [148] [1,0] 242x+243x²-10086y-59778y²-118098y³-507
[121+243x,122+243y]: unknown -> [149] [1,1] 242x+243x²-89304y-177876y²-118098y³-14885
[121+243x,203+243y]: unknown -> [150] [1,2] 242x+243x²-247254y-295974y²-118098y³-68791
endexp[50]
expanding queue[51]^17,meter=[3,3]: 80x+81x²-27744y-33048y²-13122y³-7744
[202+243x,68+243y]: unknown -> [151] [2,0] 404x+243x²-27744y-99144y²-118098y³-2420
[202+243x,149+243y]: unknown -> [152] [2,1] 404x+243x²-133206y-217242y²-118098y³-27058
[202+243x,230+243y]: unknown -> [153] [2,2] 404x+243x²-317400y-335340y²-118098y³-99972
endexp[51]
expanding queue[52]^18,meter=[3,3]: 134x+81x²-3174y-11178y²-13122y³-245
[148+243x,23+243y]: unknown -> [154] [1,0] 296x+243x²-3174y-33534y²-118098y³-10
[148+243x,104+243y]: unknown -> [155] [1,1] 296x+243x²-64896y-151632y²-118098y³-9168
[148+243x,185+243y]: unknown -> [156] [1,2] 296x+243x²-205350y-269730y²-118098y³-52022
endexp[52]
expanding queue[53]^18,meter=[3,3]: 134x+81x²-15000y-24300y²-13122y³-3031
[229+243x,50+243y]: unknown -> [157] [2,0] 458x+243x²-15000y-72900y²-118098y³-813
[229+243x,131+243y]: unknown -> [158] [2,1] 458x+243x²-102966y-190998y²-118098y³-18287
[229+243x,212+243y]: unknown -> [159] [2,2] 458x+243x²-269664y-309096y²-118098y³-78205
endexp[53]
expanding queue[54]^18,meter=[3,3]: 134x+81x²-35574y-37422y²-13122y³-11217
[67+243x,77+243y]: unknown -> [160] [0,0] 134x+243x²-35574y-112266y²-118098y³-3739
[67+243x,158+243y]: unknown -> [161] [0,1] 134x+243x²-149784y-230364y²-118098y³-32445
[67+243x,239+243y]: unknown -> [162] [0,2] 134x+243x²-342726y-348462y²-118098y³-112343
endexp[54]
expanding queue[55]^19,meter=[3,3]: 98x+81x²-384y-3888y²-13122y³+17
[211+243x,8+243y]: unknown -> [163] [2,0] 422x+243x²-384y-11664y²-118098y³+179
[211+243x,89+243y]: unknown -> [164] [2,1] 422x+243x²-47526y-129762y²-118098y³-5619
[211+243x,170+243y]: unknown -> [165] [2,2] 422x+243x²-173400y-247860y²-118098y³-40253
endexp[55]
expanding queue[56]^19,meter=[3,3]: 98x+81x²-7350y-17010y²-13122y³-1029
[49+243x,35+243y]: unknown -> [166] [0,0] 98x+243x²-7350y-51030y²-118098y³-343
[49+243x,116+243y]: unknown -> [167] [0,1] 98x+243x²-80736y-169128y²-118098y³-12837
[49+243x,197+243y]: unknown -> [168] [0,2] 98x+243x²-232854y-287226y²-118098y³-62915
endexp[56]
expanding queue[57]^19,meter=[3,3]: 98x+81x²-23064y-30132y²-13122y³-5855
[130+243x,62+243y]: unknown -> [169] [1,0] 260x+243x²-23064y-90396y²-118098y³-1892
[130+243x,143+243y]: unknown -> [170] [1,1] 260x+243x²-122694y-208494y²-118098y³-23998
[130+243x,224+243y]: unknown -> [171] [1,2] 260x+243x²-301056y-326592y²-118098y³-92436
endexp[57]
expanding queue[58]^20,meter=[3,3]: 152x+81x²-1734y-8262y²-13122y³-50
[157+243x,17+243y]: unknown -> [172] [1,0] 314x+243x²-1734y-24786y²-118098y³+61
[157+243x,98+243y]: unknown -> [173] [1,1] 314x+243x²-57624y-142884y²-118098y³-7645
[157+243x,179+243y]: unknown -> [174] [1,2] 314x+243x²-192246y-260982y²-118098y³-47103
endexp[58]
expanding queue[59]^20,meter=[3,3]: 152x+81x²-11616y-21384y²-13122y³-2032
[238+243x,44+243y]: unknown -> [175] [2,0] 476x+243x²-11616y-64152y²-118098y³-468
[238+243x,125+243y]: unknown -> [176] [2,1] 476x+243x²-93750y-182250y²-118098y³-15842
[238+243x,206+243y]: unknown -> [177] [2,2] 476x+243x²-254616y-300348y²-118098y³-71716
endexp[59]
expanding queue[60]^20,meter=[3,3]: 152x+81x²-30246y-34506y²-13122y³-8766
[76+243x,71+243y]: unknown -> [178] [0,0] 152x+243x²-30246y-103518y²-118098y³-2922
[76+243x,152+243y]: unknown -> [179] [0,1] 152x+243x²-138624y-221616y²-118098y³-28880
[76+243x,233+243y]: unknown -> [180] [0,2] 152x+243x²-325734y-339714y²-118098y³-104086
endexp[60]
expanding queue[61]^21,meter=[3,3]: 44x+81x²-4056y-12636y²-13122y³-428
[103+243x,26+243y]: unknown -> [181] [1,0] 206x+243x²-4056y-37908y²-118098y³-101
[103+243x,107+243y]: unknown -> [182] [1,1] 206x+243x²-68694y-156006y²-118098y³-10039
[103+243x,188+243y]: unknown -> [183] [1,2] 206x+243x²-212064y-274104y²-118098y³-54645
endexp[61]
expanding queue[62]^21,meter=[3,3]: 44x+81x²-16854y-25758y²-13122y³-3670
[184+243x,53+243y]: unknown -> [184] [2,0] 368x+243x²-16854y-77274y²-118098y³-1086
[184+243x,134+243y]: unknown -> [185] [2,1] 368x+243x²-107736y-195372y²-118098y³-19664
[184+243x,215+243y]: unknown -> [186] [2,2] 368x+243x²-277350y-313470y²-118098y³-81658
endexp[62]
expanding queue[63]^21,meter=[3,3]: 44x+81x²-38400y-38880y²-13122y³-12636
[22+243x,80+243y]: unknown -> [187] [0,0] 44x+243x²-38400y-116640y²-118098y³-4212
[22+243x,161+243y]: unknown -> [188] [0,1] 44x+243x²-155526y-234738y²-118098y³-34346
[22+243x,242+243y]: unknown -> [189] [0,2] 44x+243x²-351384y-352836y²-118098y³-116644
endexp[63]
expanding queue[64]^22,meter=[3,3]: 154x+81x²-24y-972y²-13122y³+73
[239+243x,2+243y]: unknown -> [190] [2,0] 478x+243x²-24y-2916y²-118098y³+235
[239+243x,83+243y]: unknown -> [191] [2,1] 478x+243x²-41334y-121014y²-118098y³-4471
[239+243x,164+243y]: unknown -> [192] [2,2] 478x+243x²-161376y-239112y²-118098y³-36069
endexp[64]
expanding queue[65]^22,meter=[3,3]: 154x+81x²-5046y-14094y²-13122y³-529
[158+243x,29+243y]: unknown -> [193] [1,0] 316x+243x²-5046y-42282y²-118098y³-98
[158+243x,110+243y]: unknown -> [194] [1,1] 316x+243x²-72600y-160380y²-118098y³-10852
[158+243x,191+243y]: unknown -> [195] [1,2] 316x+243x²-218886y-278478y²-118098y³-57246
endexp[65]
expanding queue[66]^22,meter=[3,3]: 154x+81x²-18816y-27216y²-13122y³-4263
[77+243x,56+243y]: unknown -> [196] [0,0] 154x+243x²-18816y-81648y²-118098y³-1421
[77+243x,137+243y]: unknown -> [197] [0,1] 154x+243x²-112614y-199746y²-118098y³-21139
[77+243x,218+243y]: unknown -> [198] [0,2] 154x+243x²-285144y-317844y²-118098y³-85245
endexp[66]
expanding queue[67]^23,meter=[3,3]: 100x+81x²-726y-5346y²-13122y³-2
[212+243x,11+243y]: unknown -> [199] [2,0] 424x+243x²-726y-16038y²-118098y³+174
[212+243x,92+243y]: unknown -> [200] [2,1] 424x+243x²-50784y-134136y²-118098y³-6224
[212+243x,173+243y]: unknown -> [201] [2,2] 424x+243x²-179574y-252234y²-118098y³-42430
endexp[67]
expanding queue[68]^23,meter=[3,3]: 100x+81x²-8664y-18468y²-13122y³-1324
[131+243x,38+243y]: unknown -> [202] [1,0] 262x+243x²-8664y-55404y²-118098y³-381
[131+243x,119+243y]: unknown -> [203] [1,1] 262x+243x²-84966y-173502y²-118098y³-13799
[131+243x,200+243y]: unknown -> [204] [1,2] 262x+243x²-240000y-291600y²-118098y³-65773
endexp[68]
expanding queue[69]^23,meter=[3,3]: 100x+81x²-25350y-31590y²-13122y³-6750
[50+243x,65+243y]: unknown -> [205] [0,0] 100x+243x²-25350y-94770y²-118098y³-2250
[50+243x,146+243y]: unknown -> [206] [0,1] 100x+243x²-127896y-212868y²-118098y³-25604
[50+243x,227+243y]: unknown -> [207] [0,2] 100x+243x²-309174y-330966y²-118098y³-96262
endexp[69]
expanding queue[70]^24,meter=[3,3]: 46x+81x²-2400y-9720y²-13122y³-191
[185+243x,20+243y]: unknown -> [208] [2,0] 370x+243x²-2400y-29160y²-118098y³+75
[185+243x,101+243y]: unknown -> [209] [2,1] 370x+243x²-61206y-147258y²-118098y³-8339
[185+243x,182+243y]: unknown -> [210] [2,2] 370x+243x²-198744y-265356y²-118098y³-49477
endexp[70]
expanding queue[71]^24,meter=[3,3]: 46x+81x²-13254y-22842y²-13122y³-2557
[104+243x,47+243y]: unknown -> [211] [1,0] 208x+243x²-13254y-68526y²-118098y³-810
[104+243x,128+243y]: unknown -> [212] [1,1] 208x+243x²-98304y-186624y²-118098y³-17216
[104+243x,209+243y]: unknown -> [213] [1,2] 208x+243x²-262086y-304722y²-118098y³-75094
endexp[71]
expanding queue[72]^24,meter=[3,3]: 46x+81x²-32856y-35964y²-13122y³-9999
[23+243x,74+243y]: unknown -> [214] [0,0] 46x+243x²-32856y-107892y²-118098y³-3333
[23+243x,155+243y]: unknown -> [215] [0,1] 46x+243x²-144150y-225990y²-118098y³-30647
[23+243x,236+243y]: unknown -> [216] [0,2] 46x+243x²-334176y-344088y²-118098y³-108181
endexp[72]
expanding queue[73]^25,meter=[3,3]: 136x+81x²-150y-2430y²-13122y³+54
[68+243x,5+243y]: unknown -> [217] [0,0] 136x+243x²-150y-7290y²-118098y³+18
[68+243x,86+243y]: unknown -> [218] [0,1] 136x+243x²-44376y-125388y²-118098y³-5216
[68+243x,167+243y]: unknown -> [219] [0,2] 136x+243x²-167334y-243486y²-118098y³-38314
endexp[73]
expanding queue[74]^25,meter=[3,3]: 136x+81x²-6144y-15552y²-13122y³-752
[230+243x,32+243y]: unknown -> [220] [2,0] 460x+243x²-6144y-46656y²-118098y³-52
[230+243x,113+243y]: unknown -> [221] [2,1] 460x+243x²-76614y-164754y²-118098y³-11658
[230+243x,194+243y]: unknown -> [222] [2,2] 460x+243x²-225816y-282852y²-118098y³-59876
endexp[74]
expanding queue[75]^25,meter=[3,3]: 136x+81x²-20886y-28674y²-13122y³-5014
[149+243x,59+243y]: unknown -> [223] [1,0] 298x+243x²-20886y-86022y²-118098y³-1599
[149+243x,140+243y]: unknown -> [224] [1,1] 298x+243x²-117600y-204120y²-118098y³-22493
[149+243x,221+243y]: unknown -> [225] [1,2] 298x+243x²-293046y-322218y²-118098y³-88747
endexp[75]
expanding queue[76]^26,meter=[3,3]: 82x+81x²-1176y-6804y²-13122y³-47
[203+243x,14+243y]: unknown -> [226] [2,0] 406x+243x²-1176y-20412y²-118098y³+147
[203+243x,95+243y]: unknown -> [227] [2,1] 406x+243x²-54150y-138510y²-118098y³-6887
[203+243x,176+243y]: unknown -> [228] [2,2] 406x+243x²-185856y-256608y²-118098y³-44701
endexp[76]
expanding queue[77]^26,meter=[3,3]: 82x+81x²-10086y-19926y²-13122y³-1681
[122+243x,41+243y]: unknown -> [229] [1,0] 244x+243x²-10086y-59778y²-118098y³-506
[122+243x,122+243y]: unknown -> [230] [1,1] 244x+243x²-89304y-177876y²-118098y³-14884
[122+243x,203+243y]: unknown -> [231] [1,2] 244x+243x²-247254y-295974y²-118098y³-68790
endexp[77]
expanding queue[78]^26,meter=[3,3]: 82x+81x²-27744y-33048y²-13122y³-7743
[41+243x,68+243y]: unknown -> [232] [0,0] 82x+243x²-27744y-99144y²-118098y³-2581
[41+243x,149+243y]: unknown -> [233] [0,1] 82x+243x²-133206y-217242y²-118098y³-27219
[41+243x,230+243y]: unknown -> [234] [0,2] 82x+243x²-317400y-335340y²-118098y³-100133
endexp[78]
expanding queue[79]^27,meter=[3,3]: 28x+81x²-3174y-11178y²-13122y³-298
[95+243x,23+243y]: unknown -> [235] [1,0] 190x+243x²-3174y-33534y²-118098y³-63
[95+243x,104+243y]: unknown -> [236] [1,1] 190x+243x²-64896y-151632y²-118098y³-9221
[95+243x,185+243y]: unknown -> [237] [1,2] 190x+243x²-205350y-269730y²-118098y³-52075
endexp[79]
expanding queue[80]^27,meter=[3,3]: 28x+81x²-15000y-24300y²-13122y³-3084
[14+243x,50+243y]: unknown -> [238] [0,0] 28x+243x²-15000y-72900y²-118098y³-1028
[14+243x,131+243y]: unknown -> [239] [0,1] 28x+243x²-102966y-190998y²-118098y³-18502
[14+243x,212+243y]: unknown -> [240] [0,2] 28x+243x²-269664y-309096y²-118098y³-78420
endexp[80]
expanding queue[81]^27,meter=[3,3]: 28x+81x²-35574y-37422y²-13122y³-11270
[176+243x,77+243y]: unknown -> [241] [2,0] 352x+243x²-35574y-112266y²-118098y³-3630
[176+243x,158+243y]: unknown -> [242] [2,1] 352x+243x²-149784y-230364y²-118098y³-32336
[176+243x,239+243y]: unknown -> [243] [2,2] 352x+243x²-342726y-348462y²-118098y³-112234
endexp[81]
expanding queue[82]^28,meter=[3,3]: 64x+81x²-384y-3888y²-13122y³
[32+243x,8+243y]: unknown -> [244] [0,0] 64x+243x²-384y-11664y²-118098y³
-> solution [32,8],NONTRIVIAL
[32+243x,89+243y]: unknown -> [245] [0,1] 64x+243x²-47526y-129762y²-118098y³-5798
[32+243x,170+243y]: unknown -> [246] [0,2] 64x+243x²-173400y-247860y²-118098y³-40432
endexp[82]
expanding queue[83]^28,meter=[3,3]: 64x+81x²-7350y-17010y²-13122y³-1046
[194+243x,35+243y]: unknown -> [247] [2,0] 388x+243x²-7350y-51030y²-118098y³-198
[194+243x,116+243y]: unknown -> [248] [2,1] 388x+243x²-80736y-169128y²-118098y³-12692
[194+243x,197+243y]: unknown -> [249] [2,2] 388x+243x²-232854y-287226y²-118098y³-62770
endexp[83]
expanding queue[84]^28,meter=[3,3]: 64x+81x²-23064y-30132y²-13122y³-5872
[113+243x,62+243y]: unknown -> [250] [1,0] 226x+243x²-23064y-90396y²-118098y³-1909
[113+243x,143+243y]: unknown -> [251] [1,1] 226x+243x²-122694y-208494y²-118098y³-24015
[113+243x,224+243y]: unknown -> [252] [1,2] 226x+243x²-301056y-326592y²-118098y³-92453
endexp[84]
expanding queue[85]^29,meter=[3,3]: 10x+81x²-1734y-8262y²-13122y³-121
[86+243x,17+243y]: unknown -> [253] [1,0] 172x+243x²-1734y-24786y²-118098y³-10
[86+243x,98+243y]: unknown -> [254] [1,1] 172x+243x²-57624y-142884y²-118098y³-7716
[86+243x,179+243y]: unknown -> [255] [1,2] 172x+243x²-192246y-260982y²-118098y³-47174
endexp[85]
expanding queue[86]^29,meter=[3,3]: 10x+81x²-11616y-21384y²-13122y³-2103
[5+243x,44+243y]: unknown -> [256] [0,0] 10x+243x²-11616y-64152y²-118098y³-701
[5+243x,125+243y]: unknown -> [257] [0,1] 10x+243x²-93750y-182250y²-118098y³-16075
[5+243x,206+243y]: unknown -> [258] [0,2] 10x+243x²-254616y-300348y²-118098y³-71949
endexp[86]
expanding queue[87]^29,meter=[3,3]: 10x+81x²-30246y-34506y²-13122y³-8837
[167+243x,71+243y]: unknown -> [259] [2,0] 334x+243x²-30246y-103518y²-118098y³-2831
[167+243x,152+243y]: unknown -> [260] [2,1] 334x+243x²-138624y-221616y²-118098y³-28789
[167+243x,233+243y]: unknown -> [261] [2,2] 334x+243x²-325734y-339714y²-118098y³-103995
endexp[87]
expanding queue[88]^30,meter=[3,3]: 118x+81x²-4056y-12636y²-13122y³-391
[140+243x,26+243y]: unknown -> [262] [1,0] 280x+243x²-4056y-37908y²-118098y³-64
[140+243x,107+243y]: unknown -> [263] [1,1] 280x+243x²-68694y-156006y²-118098y³-10002
[140+243x,188+243y]: unknown -> [264] [1,2] 280x+243x²-212064y-274104y²-118098y³-54608
endexp[88]
expanding queue[89]^30,meter=[3,3]: 118x+81x²-16854y-25758y²-13122y³-3633
[59+243x,53+243y]: unknown -> [265] [0,0] 118x+243x²-16854y-77274y²-118098y³-1211
[59+243x,134+243y]: unknown -> [266] [0,1] 118x+243x²-107736y-195372y²-118098y³-19789
[59+243x,215+243y]: unknown -> [267] [0,2] 118x+243x²-277350y-313470y²-118098y³-81783
endexp[89]
expanding queue[90]^30,meter=[3,3]: 118x+81x²-38400y-38880y²-13122y³-12599
[221+243x,80+243y]: unknown -> [268] [2,0] 442x+243x²-38400y-116640y²-118098y³-4013
[221+243x,161+243y]: unknown -> [269] [2,1] 442x+243x²-155526y-234738y²-118098y³-34147
[221+243x,242+243y]: unknown -> [270] [2,2] 442x+243x²-351384y-352836y²-118098y³-116445
endexp[90]
---------------- level 5
Maximum level 5 [271] mod 3: 2x²-4y³
|
b3a69e791a06621d4164fe1f77df197c56e0ba69 | 449d555969bfd7befe906877abab098c6e63a0e8 | /32/CH9/EX9.03/9_03.sce | 7ba4074dbfc22622a060cdbf36d8f02dd9707046 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,190 | sce | 9_03.sce | //pathname=get_absolute_file_path('9.03.sce')
//filename=pathname+filesep()+'9.03-data.sci'
//exec(filename)
//Total heat added(in kJ/kg):
Q=1700
//Maximum pressure(in kPa):
p3=5000
//Temperature at the beginning of compression(in K):
T1=100+273.15
//Pressureat beginning of compression(in kPa):
p1=103
//Value of Cp(in kJ/kg.K):
Cp=1.005
//Value of Cv(in kJ/kg.K):
Cv=0.71
//For Otto cycle:
//Adiabatic index of compression:
n=1.4
//Gas constant(in kJ/kg.K):
R=Cp-Cv
//Considernig 1 kg of air, volume at 1(in m^3):
m=1
V1=m*R*T1/p1
//By solving, volume at 2(in m^3):
V2=0.18
//Compression ratio:
r=V1/V2
//Otto cycle efficiency:
no=1-1/(r^(n-1))
//For mixed cycle:
//By calculating, volume at state 2':
V21=0.122
//Upon subtituting:
p21 = 2124.75 //kPa
T31 = 2082 //K
T21 = 884.8 //K
T41 = 2929.5 //K
V31=V21
//Volume at state 4(in m^3):
V41=V31*T41/T31
//Temperature at state 5(in K):
T5=T41*(V41/V1)^(n-1)
//Heat rejected in the process 5-1(in kJ):
Q51=Cv*(T5-T1)
//Efficiency of mixed cycle:
nm=(Q-Q51)/Q
printf("\nRESULT")
printf("\nEfficiency of Otto cycle = %f percent",no*100)
printf("\nEfficiency of mixed cycle = %f percent",nm*100) |
45647020b132d65c489f3cfc33db5678f5d1441c | 053e95038bb8d4b3c7d2cf5724f4cf38d3b97ce3 | /KS_Y_PLANTA__SS.sce | 6b251b502bd0a852ea74c02b39cf42a868664faf | [] | no_license | jorchmch/sca.lab3parte2 | cd20ae8cf767bde75930e77440958c9421f0fae8 | 109084e57d5056fe50a95f003e810fe64652418f | refs/heads/master | 2022-12-02T07:39:02.598536 | 2020-08-08T06:27:56 | 2020-08-08T06:27:56 | 285,984,698 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,014 | sce | KS_Y_PLANTA__SS.sce | clc,clear;
ap=[0 1 0 0;24.036 0 0 0;0 0 0 1;-0.239 0 0 0];
bp=[0;-4.789;0;1.437];
cp=[1 0 0 0;0 0 1 0 ];
dp=[0;0];
sys = syslin("c",ap,bp,cp,dp);
Q = cp'*cp;
R=1*eye(2,2);
//R=eye(4,4);
[H,kkkk] = lqe(sys,Q,R) //H ganancia de Observador
clear kkkk;
// controlador
R2=[1];
[G,kkkk]=lqr(sys,Q,R2) // G ganancia del controlador
clear kkkk;
// CONTROLADOR
A11=ap-bp*G;
A12=-bp*G;
A21=H*cp;
A22=ap-H*cp-bp*G;
Ak=[A11 A12;A21 A22]; // 8x8 Ak
Bk=[zeros(4,2);-H]; // 8x4 Bk
Ck=[cp zeros(2,4)]; // 4x8
Dk=zeros(2,2);
//Bk=[zeros(4,4);-H]; // 8x4 Bk
//Ck=[cp zeros(4,4)]; // 4x8
//Dk=zeros(4,4);
INIT=[0 ;0 ;0 ;0 ;0 ;0 ;0 ;0];
INIT1=[0 ;0 ;0 ;0 ];
sK=syslin("c",Ak,Bk,Ck,Dk,INIT); // controlador discretizado
dt=0.1;
sysKdis=cls2dls(sK,dt); // DISCRETO COMPENSADOR..en espacio de Estados
sysGdis=cls2dls(sys,dt); // DISCRETO PLANTA en espacio de Estados
SLLT=ss2tf(sysKdis); // en Funcion Transferencia
// conversion
// los coeficientes corresponden
// z^0 z^1 z^2...
num1_1=coeff((SLLT(1,1).num));
den1_1=coeff((SLLT(1,1).den));
num1_2=coeff((SLLT(1,2).num));
den1_2=coeff((SLLT(1,2).den));
num2_1=coeff((SLLT(2,1).num));
den2_1=coeff((SLLT(2,1).den));
num2_2=coeff((SLLT(2,2).num));
den2_2=coeff((SLLT(2,2).den));
// def de x
x=[1 zeros(1,50)]
y11=filter(num1_1,den1_1,x);
y12=filter(num1_2,den1_2,x);
y21=filter(num2_1,den2_1,x);
y22=filter(num2_2,den2_2,x);
// ploteo
T=0:50;
subplot(2,2,1); plot(T,y11); title('Ec.Dif IN1-OUT1');
subplot(2,2,2); plot(T,y12); title('Ec.Dif IN1-OUT2');
subplot(2,2,3); plot(T,y21); title('Ec.Dif IN2-OUT1');
subplot(2,2,4); plot(T,y22); title('Ec.Dif IN2-OUT2');
// SISTEMA EN LAZO CERRADO
LCA11=ap-bp*G;
LCA12=bp*G;
LCA21=zeros(4,4);
LCA22=ap-H*cp;
LCA=[LCA11 LCA12;LCA21 LCA22]; // 8x8 A
LCB=[zeros(4,2);H]; // 8x2 B
LCC=[cp zeros(2,4)];
LCD=zeros(2,2)
//LCB=[zeros(4,4);H]; // 8x2 B
//LCC=[cp zeros(4,4)];
//LCD=zeros(4,4)
LCINIT=[0 ;0 ;0 ;0 ;0 ;0 ;0 ;0];
LC=syslin("c",LCA,LCB,LCC,LCD,LCINIT);
LCdis=cls2dls(LC,dt);
|
16847d10b882390b5e473689cb14e6aee100446b | 449d555969bfd7befe906877abab098c6e63a0e8 | /116/CH12/EX12.3/exa12_3.sce | 2044e15e884fd91d273bf1d4fb5ad5e7be3a6784 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 310 | sce | exa12_3.sce |
//Example 12.3
//Page 527
disp('Assuming inpendenterror, we can obtain the probability of exactly 4 errors directly from the Poisson distribution. The average number of errors is,')
lamt=[(10^3)*(10^-5)]
disp('Thus,')
P4={[(0.01^4)/(1*2*3*4)]*%e^-0.01}
disp("Result")
disp("P(4) = 4.125*10^-10")
|
4038d4c6297840a433f21702c5ad0bc831648b72 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1061/CH4/EX4.2/Ex4_2.sce | 6248f3d3ce952f036ceb5bf742fb612ee0a3301f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 245 | sce | Ex4_2.sce | //Ex:4.2
clc;
clear;
close;
Pi=1.5*10^-3;// mean optical power in watt
Po=2*10^-6;// output mean power in watt
a=0.5;// dB/km
L=(10*log(Pi/Po)/log(10))/a;// max possible link Length in km
printf("The max possible link Length =%f km", L); |
e5f33b4211e3676817fdfe788e5130edc590e64d | 6e51f2fdd036612dc2b51c405904fed97d2ae8b0 | /src/test_server_1_b.tst | a38f19aff1789e5ed139ed36548c996dc1b07045 | [
"MIT",
"Zlib",
"BSD-3-Clause",
"OML"
] | permissive | joe-nano/ciyam | 92c6ccb58029a1b2a641a7e00417ab524cb9f957 | a92c296b911b29620a7bb3b758eb55339e040219 | refs/heads/master | 2022-04-16T14:39:55.822434 | 2020-03-27T06:39:13 | 2020-03-27T06:39:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 16,277 | tst | test_server_1_b.tst |
> file_raw -text blob "Hello World!"
2ccdb4c72e6c263e1dc3e5c6617bad479d267546ced55f88d6b6e4527d2e8da8
> file_raw -text blob "This is a test."
90a1a46903f42ddf0386a9c12fd67a6c109285bb8b3117ee83ed222fd0040ad3
> file_raw -text list "2ccdb4c72e6c263e1dc3e5c6617bad479d267546ced55f88d6b6e4527d2e8da8 hello\n90a1a46903f42ddf0386a9c12fd67a6c109285bb8b3117ee83ed222fd0040ad3 test" root
c158947de2088bcacd73ee2d6c5ca30200f1b4d47d409ea015c13777427a9eb1
> file_raw -text blob "at 0..."
fb9677b46fbcd4bb532d10d305a5d8ebe90c9f252d655747a406ba1e7a859e25
> file_raw -text blob "at 1..."
055ab3dc27be99b17779d4e5087c559f0f8743d5ac8575c5e340936b6d34ab08
> file_raw -text list "fb9677b46fbcd4bb532d10d305a5d8ebe90c9f252d655747a406ba1e7a859e25 0\n055ab3dc27be99b17779d4e5087c559f0f8743d5ac8575c5e340936b6d34ab08 1"
f0e0bbbf3321c7e483e3f7b4072e87791e1ec3cb74c3d4ac0db4faa765f12e32
> file_raw -text list "c158947de2088bcacd73ee2d6c5ca30200f1b4d47d409ea015c13777427a9eb1 first\nf0e0bbbf3321c7e483e3f7b4072e87791e1ec3cb74c3d4ac0db4faa765f12e32 second" root
35dddd1f6a57c18adddca0b99478114fdef5a97cf5b5d0c2474dc777fe029473
> file_hash root
35dddd1f6a57c18adddca0b99478114fdef5a97cf5b5d0c2474dc777fe029473
> file_info -content root
[list] 35dddd1f6a57c18adddca0b99478114fdef5a97cf5b5d0c2474dc777fe029473 (143 B)
c158947de2088bcacd73ee2d6c5ca30200f1b4d47d409ea015c13777427a9eb1 first
f0e0bbbf3321c7e483e3f7b4072e87791e1ec3cb74c3d4ac0db4faa765f12e32 second
> file_info -recurse -d=1 root
[list] 35dddd1f6a57c18adddca0b99478114fdef5a97cf5b5d0c2474dc777fe029473 (143 B)
first
[list] c158947de2088bcacd73ee2d6c5ca30200f1b4d47d409ea015c13777427a9eb1 (141 B)
...
second
[list] f0e0bbbf3321c7e483e3f7b4072e87791e1ec3cb74c3d4ac0db4faa765f12e32 (134 B)
...
> file_info -recurse -d=2 root
[list] 35dddd1f6a57c18adddca0b99478114fdef5a97cf5b5d0c2474dc777fe029473 (143 B)
first
[list] c158947de2088bcacd73ee2d6c5ca30200f1b4d47d409ea015c13777427a9eb1 (141 B)
hello
[blob] 2ccdb4c72e6c263e1dc3e5c6617bad479d267546ced55f88d6b6e4527d2e8da8 (13 B)
...
test
[blob] 90a1a46903f42ddf0386a9c12fd67a6c109285bb8b3117ee83ed222fd0040ad3 (16 B)
...
second
[list] f0e0bbbf3321c7e483e3f7b4072e87791e1ec3cb74c3d4ac0db4faa765f12e32 (134 B)
0
[blob] fb9677b46fbcd4bb532d10d305a5d8ebe90c9f252d655747a406ba1e7a859e25 (8 B)
...
1
[blob] 055ab3dc27be99b17779d4e5087c559f0f8743d5ac8575c5e340936b6d34ab08 (8 B)
...
> file_info -recurse -d=0 root
35dddd1f6a57c18adddca0b99478114fdef5a97cf5b5d0c2474dc777fe029473
c158947de2088bcacd73ee2d6c5ca30200f1b4d47d409ea015c13777427a9eb1
2ccdb4c72e6c263e1dc3e5c6617bad479d267546ced55f88d6b6e4527d2e8da8
90a1a46903f42ddf0386a9c12fd67a6c109285bb8b3117ee83ed222fd0040ad3
f0e0bbbf3321c7e483e3f7b4072e87791e1ec3cb74c3d4ac0db4faa765f12e32
fb9677b46fbcd4bb532d10d305a5d8ebe90c9f252d655747a406ba1e7a859e25
055ab3dc27be99b17779d4e5087c559f0f8743d5ac8575c5e340936b6d34ab08
> file_info -recurse -d=-1 root
[list] 35dddd1f6a57c18adddca0b99478114fdef5a97cf5b5d0c2474dc777fe029473 (143 B)
000000 c158947de2088bcacd73ee2d6c5ca30200f1b4d47d409ea015c13777427a9eb1 first (141 B)
000001 f0e0bbbf3321c7e483e3f7b4072e87791e1ec3cb74c3d4ac0db4faa765f12e32 second (134 B)
> file_info -recurse -d=-2 root
[list] c158947de2088bcacd73ee2d6c5ca30200f1b4d47d409ea015c13777427a9eb1 (141 B)
000000 2ccdb4c72e6c263e1dc3e5c6617bad479d267546ced55f88d6b6e4527d2e8da8 hello (13 B)
000001 90a1a46903f42ddf0386a9c12fd67a6c109285bb8b3117ee83ed222fd0040ad3 test (16 B)
[list] f0e0bbbf3321c7e483e3f7b4072e87791e1ec3cb74c3d4ac0db4faa765f12e32 (134 B)
000000 fb9677b46fbcd4bb532d10d305a5d8ebe90c9f252d655747a406ba1e7a859e25 0 (8 B)
000001 055ab3dc27be99b17779d4e5087c559f0f8743d5ac8575c5e340936b6d34ab08 1 (8 B)
> file_tag fb9677b46fbcd4bb532d10d305a5d8ebe90c9f252d655747a406ba1e7a859e25 test0
> file_tag 055ab3dc27be99b17779d4e5087c559f0f8743d5ac8575c5e340936b6d34ab08 test1
> file_raw list test0,test1 testx
167359887b16cabc3e8293fd11e2cb3a8a9f18145ef52847f5c704819f897033
> file_info -content testx
[list] 167359887b16cabc3e8293fd11e2cb3a8a9f18145ef52847f5c704819f897033 (106 B)
fb9677b46fbcd4bb532d10d305a5d8ebe90c9f252d655747a406ba1e7a859e25 test0
055ab3dc27be99b17779d4e5087c559f0f8743d5ac8575c5e340936b6d34ab08 test1
> file_tags test*
test0
test1
testx
> file_tags -i=te*0,te*1
test0
test1
> file_tags -i=test* -x=*x
test0
test1
> file_tags -i=test* -x=*0,*x
test1
> file_kill testx
> file_tags test*
test0
test1
> file_tag -remove test0,test1
> file_tags test*
> file_kill -recurse root
> ~mkdir test1
>
> file_put 1K*test.jpg test
> file_info -recurse -d=999 test
[list] 61d29770a12587190eeafc6bc9e04e64a58837296597c5f4c24b508b87991d5f (307 B)
test.jpg.00000
[blob] 8f23a8e586d7975095e740da1d43f95cfa057816e1cabddd9e627541a0b6b59d (1.0 kB)
test.jpg.00001
[blob] cd60cc9598f0831062978f58f3b2f04582c2a2b7efa7876dd03dcd058f2d8b74 (1.0 kB)
test.jpg.00002
[blob] e60982ce0b124d64f4f8c8cd2ab2b8fd9bd46c1f022aa43f4afd4618bdd056e7 (1.0 kB)
test.jpg.00003
[blob] 54749b4da930e6db6938a0f6393f5fa1c4dba0a148e9c23da10bed11c081b6f5 (1.0 kB)
test.jpg.00004
[blob] 579ad8961e4dc03ebf3965de840ff2eac2b500fde9a144d4f8d67c77ae01e686 (1.0 kB)
test.jpg.00005
[blob] 096b48069f1b3d0dc3a2b650661e6bbf94a5afe3a1c6694745c4505fcee8e1c2 (1.0 kB)
test.jpg.00006
[blob] 15515fff444eb94e0d3e0074f4c772a8bed8ec9a01bc40c691122e812adedea7 (715 B)
> file_get test *~test.jpg
> file_kill -p=test
> file_put 1K*~test.jpg test
>
> file_info -recurse -d=999 test
[list] f92865d966649c2a0ace9ec7250701511b88a62fa241e509e676414a7d49dfa4 (308 B)
~test.jpg.00000
[blob] 8f23a8e586d7975095e740da1d43f95cfa057816e1cabddd9e627541a0b6b59d (1.0 kB)
~test.jpg.00001
[blob] cd60cc9598f0831062978f58f3b2f04582c2a2b7efa7876dd03dcd058f2d8b74 (1.0 kB)
~test.jpg.00002
[blob] e60982ce0b124d64f4f8c8cd2ab2b8fd9bd46c1f022aa43f4afd4618bdd056e7 (1.0 kB)
~test.jpg.00003
[blob] 54749b4da930e6db6938a0f6393f5fa1c4dba0a148e9c23da10bed11c081b6f5 (1.0 kB)
~test.jpg.00004
[blob] 579ad8961e4dc03ebf3965de840ff2eac2b500fde9a144d4f8d67c77ae01e686 (1.0 kB)
~test.jpg.00005
[blob] 096b48069f1b3d0dc3a2b650661e6bbf94a5afe3a1c6694745c4505fcee8e1c2 (1.0 kB)
~test.jpg.00006
[blob] 15515fff444eb94e0d3e0074f4c772a8bed8ec9a01bc40c691122e812adedea7 (715 B)
> file_crypt 8f23a8e586d7975095e740da1d43f95cfa057816e1cabddd9e627541a0b6b59d abc
> file_crypt cd60cc9598f0831062978f58f3b2f04582c2a2b7efa7876dd03dcd058f2d8b74 abc
> file_crypt e60982ce0b124d64f4f8c8cd2ab2b8fd9bd46c1f022aa43f4afd4618bdd056e7 abc
> file_crypt 54749b4da930e6db6938a0f6393f5fa1c4dba0a148e9c23da10bed11c081b6f5 abc
> file_crypt 579ad8961e4dc03ebf3965de840ff2eac2b500fde9a144d4f8d67c77ae01e686 abc
> file_crypt 096b48069f1b3d0dc3a2b650661e6bbf94a5afe3a1c6694745c4505fcee8e1c2 abc
> file_crypt 15515fff444eb94e0d3e0074f4c772a8bed8ec9a01bc40c691122e812adedea7 abc
> file_crypt test abc
> file_info -recurse -d=999 test
[list] f92865d966649c2a0ace9ec7250701511b88a62fa241e509e676414a7d49dfa4 (308 B) [***]
> file_info -content 8f23a8e586d7975095e740da1d43f95cfa057816e1cabddd9e627541a0b6b59d
[blob] 8f23a8e586d7975095e740da1d43f95cfa057816e1cabddd9e627541a0b6b59d (1.0 kB) [***]
> file_info -content 54749b4da930e6db6938a0f6393f5fa1c4dba0a148e9c23da10bed11c081b6f5
[blob] 54749b4da930e6db6938a0f6393f5fa1c4dba0a148e9c23da10bed11c081b6f5 (1.0 kB) [***]
> file_info -content 15515fff444eb94e0d3e0074f4c772a8bed8ec9a01bc40c691122e812adedea7
[blob] 15515fff444eb94e0d3e0074f4c772a8bed8ec9a01bc40c691122e812adedea7 (715 B) [***]
> file_crypt -recurse test xxx
Error: invalid password to decrypt file 'test'
> file_crypt -recurse test abc
> file_get test *test1/
test1/~test.jpg
> file_kill -recurse test
> file_put 1K*test1/~test.jpg test
>
> session_variable @last_file_put
58b5d2342a3eb5b8750cd1447f00ed376610d7e36774cabd26d95b177833a660
> file_info -recurse -d=999 test
[list] 58b5d2342a3eb5b8750cd1447f00ed376610d7e36774cabd26d95b177833a660 (313 B)
test1/~test.jpg.00000
[blob] 8f23a8e586d7975095e740da1d43f95cfa057816e1cabddd9e627541a0b6b59d (1.0 kB)
test1/~test.jpg.00001
[blob] cd60cc9598f0831062978f58f3b2f04582c2a2b7efa7876dd03dcd058f2d8b74 (1.0 kB)
test1/~test.jpg.00002
[blob] e60982ce0b124d64f4f8c8cd2ab2b8fd9bd46c1f022aa43f4afd4618bdd056e7 (1.0 kB)
test1/~test.jpg.00003
[blob] 54749b4da930e6db6938a0f6393f5fa1c4dba0a148e9c23da10bed11c081b6f5 (1.0 kB)
test1/~test.jpg.00004
[blob] 579ad8961e4dc03ebf3965de840ff2eac2b500fde9a144d4f8d67c77ae01e686 (1.0 kB)
test1/~test.jpg.00005
[blob] 096b48069f1b3d0dc3a2b650661e6bbf94a5afe3a1c6694745c4505fcee8e1c2 (1.0 kB)
test1/~test.jpg.00006
[blob] 15515fff444eb94e0d3e0074f4c772a8bed8ec9a01bc40c691122e812adedea7 (715 B)
> file_info -recurse -d=999 test
[list] 58b5d2342a3eb5b8750cd1447f00ed376610d7e36774cabd26d95b177833a660 (313 B)
test1/~test.jpg.00000
[blob] 8f23a8e586d7975095e740da1d43f95cfa057816e1cabddd9e627541a0b6b59d (1.0 kB)
test1/~test.jpg.00001
[blob] cd60cc9598f0831062978f58f3b2f04582c2a2b7efa7876dd03dcd058f2d8b74 (1.0 kB)
test1/~test.jpg.00002
[blob] e60982ce0b124d64f4f8c8cd2ab2b8fd9bd46c1f022aa43f4afd4618bdd056e7 (1.0 kB)
test1/~test.jpg.00003
[blob] 54749b4da930e6db6938a0f6393f5fa1c4dba0a148e9c23da10bed11c081b6f5 (1.0 kB)
test1/~test.jpg.00004
[blob] 579ad8961e4dc03ebf3965de840ff2eac2b500fde9a144d4f8d67c77ae01e686 (1.0 kB)
test1/~test.jpg.00005
[blob] 096b48069f1b3d0dc3a2b650661e6bbf94a5afe3a1c6694745c4505fcee8e1c2 (1.0 kB)
test1/~test.jpg.00006
[blob] 15515fff444eb94e0d3e0074f4c772a8bed8ec9a01bc40c691122e812adedea7 (715 B)
> file_kill -recurse test
> ~mkdir test2
>
> file_archive -add test1 10MiB test1
> file_archive -add test2 10MiB test2
> file_archive -add test3 10MiB test3
> file_archives
test1 [okay ] (0 B/10.5 MB) test1
test2 [okay ] (0 B/10.5 MB) test2
test3 [bad access] (0 B/10.5 MB) test3
> ~mkdir test3
>
> file_archives -status_update
test1 [okay ] (0 B/10.5 MB) test1
test2 [okay ] (0 B/10.5 MB) test2
test3 [okay ] (0 B/10.5 MB) test3
> session_variable @dummy_timestamp 20170313080001
> file_put test1.jpg
> session_variable @dummy_timestamp 20170313080002
> session_variable @last_file_put
b789eb5b80f6a8fbe9659c8d6ed04222280aa790efb7fe9e972ef8f1ede08cc9
> file_put test2.jpg
> session_variable @dummy_timestamp 20170313080000
> session_variable @last_file_put
efeee26ad65084462385b362e873f64fa22cd11b7f1e3d21ba0c3b5e4db8d92f
> file_put test.jpg
> file_tags ts.*
ts.20170313080000
ts.20170313080001
ts.20170313080002
> file_relegate -n=1
a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753 test1
> file_tags ts.*
ts.20170313080001
ts.20170313080002
> file_archives
test1 [okay ] (6.5 kB/10.5 MB) test1
test2 [okay ] (0 B/10.5 MB) test2
test3 [okay ] (0 B/10.5 MB) test3
> file_archive -remove test1
(removing file archive)
> file_archives
test2 [okay ] (0 B/10.5 MB) test2
test3 [okay ] (0 B/10.5 MB) test3
> session_variable @dummy_timestamp 20170313080003
> file_retrieve a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753
Error: unable to retrieve file a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753 from archival
> file_archive -add test1 10MiB test1
> file_archives
test1 [okay ] (0 B/10.5 MB) test1
test2 [okay ] (0 B/10.5 MB) test2
test3 [okay ] (0 B/10.5 MB) test3
> file_archive -repair test1
(repairing file archive)
> file_archives
test1 [okay ] (6.5 kB/10.5 MB) test1
test2 [okay ] (0 B/10.5 MB) test2
test3 [okay ] (0 B/10.5 MB) test3
> session_variable @dummy_timestamp 20170313080003
> file_retrieve a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753
test1
> file_tags ts.*
ts.20170313080001
ts.20170313080002
ts.20170313080003
> file_info ts.*
[blob] b789eb5b80f6a8fbe9659c8d6ed04222280aa790efb7fe9e972ef8f1ede08cc9 (5.3 kB)
[blob] efeee26ad65084462385b362e873f64fa22cd11b7f1e3d21ba0c3b5e4db8d92f (2.8 kB)
[blob] a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753 (6.5 kB)
> file_relegate -s=9KiB test2
b789eb5b80f6a8fbe9659c8d6ed04222280aa790efb7fe9e972ef8f1ede08cc9 test2
efeee26ad65084462385b362e873f64fa22cd11b7f1e3d21ba0c3b5e4db8d92f test2
> file_tags ts.*
ts.20170313080003
> file_relegate -n=1 test3
a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753 test3
> file_tags ts.*
> file_archives
test1 [okay ] (6.5 kB/10.5 MB) test1
test2 [okay ] (8.1 kB/10.5 MB) test2
test3 [okay ] (6.5 kB/10.5 MB) test3
> session_variable @dummy_timestamp 20170313080000
> file_retrieve a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753
test1
> session_variable @dummy_timestamp 20170313080001
> file_retrieve b789eb5b80f6a8fbe9659c8d6ed04222280aa790efb7fe9e972ef8f1ede08cc9
test2
> file_get a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753 ~test.jpg
> file_put ~test.jpg
>
> file_tags ts.*
ts.20170313080000
ts.20170313080001
> file_kill -p=ts.*
> file_tags ts.*
> file_retrieve a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753 ts.20170313080001
test1
> file_retrieve b789eb5b80f6a8fbe9659c8d6ed04222280aa790efb7fe9e972ef8f1ede08cc9 ts.20170313080002
test2
> file_raw list ts.20170313080001,ts.20170313080002 tst
d9a6301b0a1bfe36b3898dd78697616db6207004ddcb5dca903fb5b25f158f0c
> file_relegate -n=2
a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753 test1
b789eb5b80f6a8fbe9659c8d6ed04222280aa790efb7fe9e972ef8f1ede08cc9 test1
> file_tags ts*
tst
> file_info -recurse -d=999 tst
[list] d9a6301b0a1bfe36b3898dd78697616db6207004ddcb5dca903fb5b25f158f0c (114 B)
ts.20170313080001
[blob] a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753 (6.5 kB)
ts.20170313080002
[blob] b789eb5b80f6a8fbe9659c8d6ed04222280aa790efb7fe9e972ef8f1ede08cc9 (5.3 kB)
> file_stats
[3/10000]12.0 kB/10.0 GB:3 tag(s)
> file_kill -p=ts*
> file_archive -destroy test1
(destroying file archive)
> file_archive -destroy test2
(destroying file archive)
> file_archive -destroy test3
(destroying file archive)
> file_archives
> ~rmdir test1
>
> ~rmdir test2
>
> ~rmdir test3
>
> file_put test1.jpg test1.jpg
> file_put test2.jpg test2.jpg
> file_raw list test1.jpg,test2.jpg test.1
048bf68a8b49e8679a54154986a9a98bcced3687dbda5ce565531b39b5c21b33
> file_info -content test.1
[list] 048bf68a8b49e8679a54154986a9a98bcced3687dbda5ce565531b39b5c21b33 (116 B)
b789eb5b80f6a8fbe9659c8d6ed04222280aa790efb7fe9e972ef8f1ede08cc9 test1.jpg
efeee26ad65084462385b362e873f64fa22cd11b7f1e3d21ba0c3b5e4db8d92f test2.jpg
> file_put test.jpg test.jpg
> file_list -a=test.jpg test.1 test.2
326c9c4eb765fbebe5ecc274e25089319a0eee03c4dae4047dc84e18da46347a
> file_info -content test.1
[list] 048bf68a8b49e8679a54154986a9a98bcced3687dbda5ce565531b39b5c21b33 (116 B)
b789eb5b80f6a8fbe9659c8d6ed04222280aa790efb7fe9e972ef8f1ede08cc9 test1.jpg
efeee26ad65084462385b362e873f64fa22cd11b7f1e3d21ba0c3b5e4db8d92f test2.jpg
> file_info -content test.2
[list] 326c9c4eb765fbebe5ecc274e25089319a0eee03c4dae4047dc84e18da46347a (153 B)
b789eb5b80f6a8fbe9659c8d6ed04222280aa790efb7fe9e972ef8f1ede08cc9 test1.jpg
efeee26ad65084462385b362e873f64fa22cd11b7f1e3d21ba0c3b5e4db8d92f test2.jpg
a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753 test.jpg
> file_list -sort test.2 test.3
e1d98de36694951cd4c6d12e94787f99487065ab5ab68a159450102c7a3995ce
> file_info -content test.1
[list] 048bf68a8b49e8679a54154986a9a98bcced3687dbda5ce565531b39b5c21b33 (116 B)
b789eb5b80f6a8fbe9659c8d6ed04222280aa790efb7fe9e972ef8f1ede08cc9 test1.jpg
efeee26ad65084462385b362e873f64fa22cd11b7f1e3d21ba0c3b5e4db8d92f test2.jpg
> file_info -content test.2
[list] 326c9c4eb765fbebe5ecc274e25089319a0eee03c4dae4047dc84e18da46347a (153 B)
b789eb5b80f6a8fbe9659c8d6ed04222280aa790efb7fe9e972ef8f1ede08cc9 test1.jpg
efeee26ad65084462385b362e873f64fa22cd11b7f1e3d21ba0c3b5e4db8d92f test2.jpg
a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753 test.jpg
> file_info -content test.3
[list] e1d98de36694951cd4c6d12e94787f99487065ab5ab68a159450102c7a3995ce (153 B)
a5ab1c26e5253fb7316b51e7f40687183714e0d683034954e1e8fc67bca42753 test.jpg
b789eb5b80f6a8fbe9659c8d6ed04222280aa790efb7fe9e972ef8f1ede08cc9 test1.jpg
efeee26ad65084462385b362e873f64fa22cd11b7f1e3d21ba0c3b5e4db8d92f test2.jpg
> file_kill -recurse test.3
> file_tag -unlink test.1,test.2
> file_tags
> |
65d77b72de04d182b507013416cceb7e1394a3fc | 449d555969bfd7befe906877abab098c6e63a0e8 | /2294/CH7/EX7.1.2/EX7_1_2.sce | 2badede11fc2283617a8fe3b4f3454de83bf7b90 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 551 | sce | EX7_1_2.sce | //Example 7_1_2
//Find the laplace transform and Roc of the following signal.
clc;
t=-10:.01:10;
a=4;
for i=1:length(t)
if t(i)>0 then
x(i)=0;
else
x(i)=-exp(-a*t(i));
end
end
s=%s;
numfs=1;
denfs=s+.04;
fs=syslin('c',numfs/denfs);
fs1=csim('impulse',t,fs);
f=scf(0);
subplot(2,1,1);
plot2d(t,x,2);
xtitle('Phrasing');
xgrid;
subplot(2,1,2);
plot2d(t,fs1,1);
xtitle('Solution');
xgrid;
disp(fs);
disp('As real(s)<-a,so the integral converges for real(s)<-a');
xs2jpg(0, 'EX7_1_2-plot-a.jpg');
|
599b0c868aca993a8d6dfe9129336b44e28fa614 | e0d0f91c5f4c3a7f3e8d1d5be59317de8305c081 | /dataset/presentation_program/rest_2015.sce | 069c46bad36f162460d80aaaee4a949ea60eb76d | [] | no_license | micchu/TwoChannelNIRS | 01687eb41ecac8bcca91dc27c293e02b55ebb89d | e8a291a8678e0006a5d4ab5fd74f518c333ac64c | refs/heads/master | 2021-01-10T06:28:57.272767 | 2016-03-09T10:39:54 | 2016-03-09T10:39:54 | 51,119,550 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 250 | sce | rest_2015.sce | scenario = "rest_2015";
no_logfile = false;
default_font_size = 120;
begin;
picture {} default;
trial {
trial_duration = 300000;
picture{
text { caption = "+"; };
x = 0; y = 0;
};
};
|
c2f2cf6dddca715c7dfb2bb01398cd658721293e | 05db16b4f57b0182fa452e2c11554c3de6fff271 | /branches/vac4.52mkg_24_06_2010/scilab/sci_askstr.sci | 49e3d05af380eb8f4a998e13315756e3234e3eda | [] | no_license | SpungMan/smaug-all | 09b4fcf6fcec2fc7be1fa85c5c7f2d68c79e504b | 01df12e98c734529ff984662badc26eaa3a9138b | refs/heads/master | 2021-11-29T14:09:47.094457 | 2018-06-08T09:48:05 | 2018-06-08T09:48:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 279 | sci | sci_askstr.sci | function [tree] = sci_askstr(tree)
// Copyright INRIA (Generated by M2SCI)
// Conversion function for Matlab askstr()
// Input: tree = Matlab funcall tree
// Ouput: tree = Scilab equivalent for tree
tree.lhs(1).dims=list(-1,-1)
tree.lhs(1).type=Type(Unknown,Unknown)
endfunction
|
cd74cb1cd58ed951c945ca34ee673f96ccf9e2be | 449d555969bfd7befe906877abab098c6e63a0e8 | /3432/CH6/EX6.3/Ex6_3.sce | bb49eb0661a50eb3b9401e54043537d3e7bb9db4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,319 | sce | Ex6_3.sce | //Example 6.3
//Bode Plot for Real Poles and Zeros.
xdel(winsid())//close all graphics Windows
clear;
clc;
//------------------------------------------------------------------
//System transfer function and its bode plot
K=2000;
s=poly(0,'s');
Gs=syslin('c',(K*(s+0.5))/(s*(s+10)*(s+50)));
//The bode plot of the system
wmin=0.1; // mininmum frq. in rad/sec for response
wmax=100; // maximum frq. in red/sec for response
fmin=wmin/2/%pi // mininmum frq. in Hz for response
fmax=wmax/2/%pi // maximum frq. in Hz for response
//------------------------------------------------------------------
//Bode plot for frequency in Hz (scilab ver. 5.4.1)
//bode(g,fmin,fmax)
//OR
//(Only for scilab ver. 5.5.1)
//Bode (frequency scale in rad/sec)
// or gainplot or phaseplot plot with asymptotes
figure(0)
gainplot(Gs,fmin,fmax);
bode_asymp(Gs,wmin,wmax);
xstring(0.03,22,"slope=-1(-20db/dec)",0,0);
xstring(0.2,9,"slope=0",0,0);
xstring(3,7,"slope=-1(-20db/dec)",0,0)
xstring(0.9,-8,"slope=-2(-40db/dec)",0,0)
title('Composit plots (a) magnitude plot','fontsize',3);
h=legend('');
exec .\fig_settings.sci; //custom script for setting figure properties
h.visible = "off"
//------------------------------------------------------------------
//phase plot for poles and zeros
zr=((s/0.5)+1)/s //infact this is zero and pole at origin.
zr=syslin('c', zr);
pl1=1/((s/10)+1)
pl1=syslin('c', pl1);
pl2=1/((s/50)+1)
pl2=syslin('c', pl2);
figure(1)
phaseplot([Gs;zr;pl1;pl2],fmin,fmax);
xstring(5.5,-14,"$\frac {1}{s/0.5+1}$",0,0);
xstring(2.8,-22,"$\frac{1}{s/50+1}$",0,0);
xstring(2.5,-60,"$\frac{1}{s/10+1}$",0,0);
xstring(1.2,-100,["Composite";"(Actual)"],0,0);
title('Composit plots (b) Phase','fontsize',3);
exec .\fig_settings.sci; //custom script for setting figure properties
//------------------------------------------------------------------
figure(2)
bode(Gs,fmin,fmax,"rad"); //frequency scale n radians
bode_asymp(Gs,wmin,wmax);
exec .\fig_settings.sci; //custom script for setting figure properties
title('(c) magnitude plot and phase plot approximate and actual...
','fontsize',3)
xstring(2.8,-22,"$\frac{1}{s/50+1}$",0,0);
h=legend('');
h.visible = "off"
//------------------------------------------------------------------
|
70ac6726b0a7f43eff6f8b35b86b2c219244bdb4 | 9545443abf3ba785ea80d459f01efa5be8df2087 | /cfs/apps/fm/test_and_ground/asist/image/FMDELETESTRESS.TST | 36d31601b0ae1ef59218bf88c9d174dc343dbc96 | [
"Apache-2.0",
"NASA-1.3"
] | permissive | anthonyneedles/WISE-HEADACHE-JASH | 9ab8f1bcd87a45ddc11fc115e512a5b4465e81e3 | 28199218a8855db88adc43c3daa4a5a832571012 | refs/heads/master | 2023-07-15T04:26:19.817108 | 2020-08-18T01:34:00 | 2020-08-18T01:34:00 | 272,212,651 | 2 | 1 | Apache-2.0 | 2021-09-02T03:58:33 | 2020-06-14T13:57:03 | C | UTF-8 | Scilab | false | false | 1,257 | tst | FMDELETESTRESS.TST | This is the test file for the fm_filedelete_stress test
Garbage to follow...
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
KHAKJFSHSH SAFKHASKJNJfnkjasf nahjlfsNJl Ffakfnanmalksfkla
|
a6870a3705f08601d40065ebd976f161e8d1b4f7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1964/CH1/EX1.9/ex1_9.sce | 5227bde86058d0d9455ffc45babe8d121897f248 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 981 | sce | ex1_9.sce | //Chapter-1, Example 1.9, Page 23
//=============================================================================
clc;
clear;
//INPUT DATA
t2=2750;//temperature in degree centigrade for tungsten lamp
P=150;//power in watts
V=230;//voltage in volts
t1=16;//temperature in degree centigrade
a0=0.0047;//temperature coefficient of tungsten in per degree centigrade
//CALCULATIONS
R2=(V*V)/P;
a1=1/((1/a0)+t1);//temperature coefficient of resistant at 16 degree centigrade
R2=(V*V)/P;//Resistance of the filament of the lamp under normal working condition
R1=R2/[1+(a1*(t2-t1))];//resistance of copper wire in ohm at 52 degree centigrade
I2=V/R2;//normal current taken by lamb
I1=V/R1;//current taken at the moment of switching on
//OUTPUT
mprintf("Thus the normal current taken by lamb and current taken at the moment of switching on are %1.4f A and %1.4f A respectively ",I2,I1);
//=================================END OF PROGRAM==============================
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.