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
d1d92f83deea013b2d8040776d84e82bc26683f1
449d555969bfd7befe906877abab098c6e63a0e8
/3392/CH8/EX8.1/Ex8_1.sce
f9b33bc9d9c2fad018067fdcf73f7e135e2eba05
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
475
sce
Ex8_1.sce
clc // initialization of variables clear t=4 //mm // calculations l1=100 //mm See figure l2=50 //mm See figure ybar=125 //mm t=t*10^-3 ybar=ybar*10^-3 l1=l1*10^-3 l2=l2*10^-3 Ix=2*t*(2*(l1+l2))^3/12-t*(2*l1)^3/12 qAk=l1*t*ybar // qA=qAk*V qBk=qAk+l1*t*l1/2 qave=qAk+2/3*(qBk-qAk) F2k=200*qave*10^-3 //F2=F2k*V DO=100/tan(30*%pi/180) // from figure // Now we need to solve the following equation // (DO-e)*V=DO*F2 e=DO*(1-F2k/Ix) printf('e = %.1f mm',e)
a53b21c1ce56911507bb2bf432096919a7a6bae0
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set7/s_Electronic_Measurements_And_Instrumentation_R._K._Rajput_2096.zip/Electronic_Measurements_And_Instrumentation_R._K._Rajput_2096/CH5/EX5.3/ex_5_3.sce
b245d422b0c64d1dcd4a742097561a25ebd19b87
[]
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
126
sce
ex_5_3.sce
errcatch(-1,"stop");mode(2);//Example 5.3 // resolution ; ; //given data : n=4; R=1/10^n; disp(R,"resolution,R = ") exit();
9bc828a21aa58090967f5cddc9ba50ab73994425
449d555969bfd7befe906877abab098c6e63a0e8
/2279/CH7/EX7.18/Ex7_18.sce
de4954a805bc872c440379e49cedf2b600cf1e71
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
669
sce
Ex7_18.sce
//Discrete Time Fourier Transform of //x[n]= (a^abs(n)) |a|<1 clear; clc; close; // DTS Signal a = 0.5; max_limit = 10; n = -max_limit+1:max_limit-1; x = a^abs(n); // Discrete-time Fourier Transform Wmax = 2*%pi; K = 4; k = 0:(K/1000):K; W = k*Wmax/K; XW = x* exp(-sqrt(-1)*n'*W); XW_Mag = real(XW); W = [-mtlb_fliplr(W), W(2:1001)]; // Omega from -Wmax to Wmax XW_Mag = [mtlb_fliplr(XW_Mag), XW_Mag(2:1001)]; //plot for abs(a)<1 figure subplot(2,1,1); plot2d3('gnn',n,x); xtitle('Discrete Time Sequence x[n] for a>0','n','x[n]') subplot(2,1,2); plot2d(W,XW_Mag); xtitle('Discrete Time Fourier Transform X(exp(jW))','w','|X(exp(jW))|')
5fd8e54b37fef40228b366f5750984079cae97b1
449d555969bfd7befe906877abab098c6e63a0e8
/1016/CH8/EX8.13/ex8_13.sce
951f4b516afc854ee3b4d24ba79309ba21655f4e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
222
sce
ex8_13.sce
clc;clear; //Example 8.13 //given data W=3*10^-10;//wavelength in m D=40;//angle in degree n=1; //calculation d=n*W/(2*sind(D)); disp((d/10^-10),'spacing in AU') a=2*d; v=a^3; disp(v,'the volumne in m^3 is')
6d9a89186279382aa835e557f85bdc3576d441c0
449d555969bfd7befe906877abab098c6e63a0e8
/1394/CH17/EX17.1.3/Ex17_1_3.sce
77ed1a484e61bbc6f693adcd9a61a7d833070442
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
213
sce
Ex17_1_3.sce
clc //initialization of variables k = 16*10^-3 // m.t.c in cm/sec D = 1.25*10^-5 // Diffusion co efficient in cm^2/sec //Calculations K1 = (k^2)/D //Results printf("The rate constant is %.f sec^-1",K1)
04ca101d9e583c4df47db36de2a77235de3d6465
449d555969bfd7befe906877abab098c6e63a0e8
/905/CH6/EX6.11/6_11.sce
f045cde12f576ecbeb497344a06af45f50e5c783
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
938
sce
6_11.sce
clear; clc; // Illustration 6.11 // Page: 376 printf('Illustration 6.11 - Page: 376\n\n'); // solution //*****Data*****// // 1-toluene 2-1,2,3--trimethylbenzene 3-benzene // Basis: 100 kmol/h of feed F = 100; // [kmole/h] // Since feed is saturated, therefore q = 0; // From example 6.10 x1d = 0.3; x2d = 0.3; x3d = 0.4; a12 = 3.91; a32 = 7.77; a22 = 1; // Equ 6.78 gives deff('[y] = f14(Q)','y = 1- a12*x1d/(a12-Q)-a22*x2d/(a22-Q)-a32*x3d/(a32-Q)'); Q = fsolve(2,f14); // From the problem statement // d1 = D*x1d d2 = D*x2d d1 = F*x1d*0.95; // [kmol/h] d2 = F*x2d*0.05; // [kmol/h] d3 = F*x3d*0.997; // [kmol/h] // Summing the three distillate, d1,d2 and d3 D = d1+d2+d3; // [kmole/h] Vmin = a12*d1/(a12-Q)+a22*d2/(a22-Q)+a32*d3/(a32-Q); // From the mass balance Lmin = Vmin-D; // [kmol/h] // Minimum reflux ratio Rmin = Lmin/D; printf("The minimum reflux ratio is %f\n\n",Rmin);
1050b211dad0746501b41aab5fe290a608f1418d
449d555969bfd7befe906877abab098c6e63a0e8
/377/CH12/EX12.3/12_3.sce
df87d2876fe9c66471257e0ca54a65961732cb77
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
306
sce
12_3.sce
Vbi=0.74; Vg=0.5; c=13.2*8.854*10^-14; //say c=Єs q=1.6*10^-19; Nd=5*10^16; b=(2*c*(Vbi-Vg)/(q*Nd))^(1/2); printf('\n The value of depletion width near drain is %f*10^-2 μm',b*10^6); d=0.8-(b*10^4); printf('\n The maximum undepleted channel width is near the drain end of the gate is %f μm',d);
92a5d092d42e1b247e57d744cdd51b4b0e341fc4
449d555969bfd7befe906877abab098c6e63a0e8
/2159/CH7/EX7.13/713.sce
243c4ae522deabdebd57a44f6f667498adad1bba
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
257
sce
713.sce
// problem 7.13 b=4 d=1.5 i=1/1000 C=55 A=b*d P=b+(2*d) m=A/P Q=A*C*((m*i)^0.5) d1=(A/2)^0.5 b1=d1*2 disp(d1,b1,"the new dimension of the channel") P1=b1+(2*d1) m1=A/P1 Q1=A*C*((m1*i)^0.5) Qf=Q1-Q disp(Qf,"increase in discharge in m3/sec")
27298e0c17a4e32c703d4c6babd142e6665251af
717ddeb7e700373742c617a95e25a2376565112c
/278/CH22/EX22.13/ex_22_13.sce
39f90f169f42ffdb85924f895432b99772061406
[]
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
1,060
sce
ex_22_13.sce
//find... clc //solution //given Do=1.8//m Di=1.35//m b=0.3//m N=250//rpm T=15000//N-m ftb=35//n/mm^2 ftl=40//n/mm^2 //w=1.25*h n=6 fta=15//N/mm^2 d1=150//mm rho=7200//kg/m^3 D=(Do+Di)/2//m t=(Do-Di)/2//m v=(%pi*D*N)/60//m/s ft=rho*v^2*10^6//N/mm^2 A=b*t//m^2 Ft=ft*A*10^6//N //let dc be core dia //Ft=(%pi/4)*dc^2*ftb*4=110*dc^2 //dc=sqrt(Ft/110)//mm printf("the core dia is,%f mm\n",sqrt(Ft/110)) printf("the standard core dia is 48.65mm\n") dc=48.65//mm //let h be depth of link and w be width of link //w=1.25*h //Al=w*h=1.25*h^2 //let Fmax be max tensile force Fmax=2*ft*A//N....eq1 //Fmax=4*ftl*Al=200*h^2...eq2 //from eq 1 and eq2 h=46//mm w=1.25*h//mm printf("the heigth and width of of link is,%f mm\n,%f mm\n",h,w) //let a1 be major and b1 be minor axis //a1=2*b1 n=6 d=2*d1//m M=T*(D*1000-d)/(D*n*1000)//N-mm printf("bending moment is,%f N-mm\n",M*1000) //Z=(%pi/32)*b1*a1^2=0.05*a1^3 //fb=M/Z a1=(M*1000/(fta*0.05))^(1/3)//mm b1=0.5*a1 tf=40 printf("major and minor axis is,%f mm\n,%f mm\n",a1,b1)
e4633136f10e8aadbe95034d58fde65233e2a081
12d519f18a15ef7423dffa1727cb877966fcf913
/scilab/AVEEL.sce
957dc2014559575137d2865b038b92b17cacd735
[]
no_license
gviolato/gviolato.github.io
e9b799bf61dd345fe06760ebc296f49f467347b7
190748c14c115f63e366d2244a572de08daa7e5e
refs/heads/master
2021-01-17T15:29:43.924914
2017-01-25T23:33:53
2017-01-25T23:33:53
22,399,267
0
0
null
null
null
null
UTF-8
Scilab
false
false
16,716
sce
AVEEL.sce
// ----------------------------------------------------------------------------- // AVEEL Software // Análise de Viabilidade de Empreendimentos Eólicos // // Autor: Júlio Xavier Vianna Neto // // Tarefas: // 1-Arrumar prazo de carência iniciando no primeiro aporte // 2-ICMS no sitema de compensação e autoprodução // 3-Inserir CCC e ESS // // ----------------------------------------------------------------------------- //Inicialização do ambiente: clc xdel(winsid()) //Equivalente de close all clear pathname = get_absolute_file_path('AVEEL.sce'); chdir(pathname); //Carregamento de funções externas: exec('get_custos_implantacao.sce',-1) exec('get_PAE.sci',-1) exec('payback.sci',-1) exec('tir.sci',-1) exec('xls_SelectWorksheet.sci',-1) atomsLoad("xls_link"); // --------------------- LEITURA DOS PARÂMETROS DO USUÁRIO --------------------- //Seleção do arquivo de parâmetros [arquivo,pasta] = uigetfile('*.sc*',pathname,'Selecione o arquivo de parâmetros'); if isempty(arquivo) then abort; end exec(strcat([pasta '\' arquivo]),-1); // --------------------- INICIALIZAÇÃO DO ARQUIVO DE SAÍDA --------------------- arquivo_xls = strcat([pasta '\Resultados ' part(arquivo, 1:length(arquivo)-3) 'xls']); if isfile(arquivo_xls) then deletefile(arquivo_xls); end if verbose then copyfile('Template.xls', arquivo_xls); end // ---------------------- FLUXO DE CAIXA DE INVESTIMENTOS ---------------------- //Numeração dos meses mes = [0:projeto.implantacao+projeto.vida_util-1]'; // - Investimento total do projeto (CAPEX) ................................ flag_operacao = mes >= projeto.implantacao; //Indica quando está em operação if projeto.modelo_CAPEX == 1 then custo_MW_instalado = get_custos_implantacao(turbina,verbose,arquivo_xls); //Custo do MW instalado (CAPEX/MW) else custo_MW_instalado = projeto.custo_MW; //Custo do MW instalado (CAPEX/MW) end investimento_total = -custo_MW_instalado*projeto.potencia/projeto.implantacao*~flag_operacao; // + Financiamento recebido ................................................ recurso_financiamento = -investimento_total*financiamento.percentual; //OBSERVAÇÕES: Como é feita na prática a disponibilização de recursos de //financiamento? Em parcelas fixas? O financiamento é sobre a turbina ou sobre //o investimento total? // = Fluxo de caixa dos investimentos ..................................... FC_investimentos = investimento_total + recurso_financiamento; // ------------------------ DEMONSTRATIVO DE RESULTADOS ------------------------ // + Receita bruta mensal ................................................. //Produção de energia mensal (MWh/mês) select projeto.modelo_PAE case 1 //Função get_PAE producao_bruta = get_PAE(turbina.modelo,projeto.vel_media)/12*projeto.potencia/(turbina.potencia_nominal*1e-3); case 2 //Produção anual de energia como parâmetro de entrada producao_bruta = projeto.PAE/12; case 3 //Fator de capacidade do parque como parâmetro de entrada producao_bruta = projeto.potencia*projeto.fator_capacidade*24*30; end //Perdas coeficiente_perdas = (1 - perdas.array)*(1 - perdas.soiling)*(1 - perdas.grid)*(1 - perdas.downtime)*(1 - perdas.other); producao = producao_bruta*coeficiente_perdas; if projeto.regime ~= 1 & projeto.consumidor then //Modelo de conta do consumidor (somente nos //casos de sistema de compensação e autoprodução) if producao > (conta.consumo_ponta + conta.consumo_f_ponta) then disp('Produção maior que consumo!'); end //Média ponderada das tarifas de ponta e fora de ponta tarifa = (conta.consumo_ponta*conta.tarifa_ponta + conta.consumo_f_ponta*conta.tarifa_f_ponta)/(conta.consumo_ponta + conta.consumo_f_ponta); //Alterações na conta devido à geração consumo = min(producao,conta.consumo_ponta + conta.consumo_f_ponta)*tarifa; if projeto.regime == 2 then //Se for sistema de compensação, a potência instalada é limitada à demanda contratada demanda = -max(projeto.potencia*1e3 - conta.demanda_contratada,0)*conta.tarifa_demanda; demanda_ultr = min(conta.demanda_ultr,max(projeto.potencia*1e3 - conta.demanda_contratada,0))*(conta.tarifa_demanda + conta.tarifa_demanda_ultr); else demanda = 0; demanda_ultr = 0; end //Economia gerada é considera como receita bruta receita_bruta = (consumo + demanda + demanda_ultr)*flag_operacao; else //Modelo de venda de energia receita_bruta = producao*projeto.preco_energia*flag_operacao; //Retirar fator 8640/8760 !!!!!!!!!!!! end // - Tributos sobre a receita ............................................. if projeto.regime == 1 then //Se for produção independente PIS_PASEP = -impostos.PIS_PASEP*receita_bruta; COFINS = -impostos.COFINS*receita_bruta; else PIS_PASEP = 0*flag_operacao; COFINS = 0*flag_operacao; end //OBSERVAÇÕES: Existe desconto de 10%? Qual é o crédito do PIS e COFINS //proveniente da implantação do parque eólico? // = Receita líquida mensal ............................................... receita_liquida = receita_bruta + PIS_PASEP + COFINS; // - Custos operacionais .................................................. if projeto.regime == 2 then //Se não for sistema de compensação de energia custos.seguro = 0; custos.TUST = 0; custos.conexao = 0; custos.TFSEE = 0; custos.terreno = 0; end custos_fixos = -custos.OeM*projeto.potencia*flag_operacao + custos.seguro*sum(investimento_total)*flag_operacao... - custos.TUST*projeto.potencia*flag_operacao - custos.conexao*projeto.potencia*flag_operacao... - custos.TFSEE*custos.BETU*projeto.potencia*flag_operacao; custos_variaveis = -custos.administrativos*receita_bruta - custos.terreno*receita_bruta; //OBSERVAÇÕES: // 1 - A TFSEE deve ser cobrada sobre o MW instalado. // 2 - A TUST é paga pelo produtor? // 3 - O que são esses custos de conexão? // = EBITDA - Lucros antes de juros, impostos, depreciação // e amortização .......................................................... EBITDA = receita_liquida + custos_fixos + custos_variaveis; // - Depreciação .......................................................... depreciacao = sum(investimento_total)/projeto.vida_util*flag_operacao; //OBSERVAÇÕES: A depreciação é considerada sobre todo o investimento inicial, //ou somente sobre a turbina (provavelmente sobre o valor total)? A depreciação //é linear? // - Juros ................................................................ //Amortização flag_amortizacao = (mes >= projeto.implantacao + financiamento.carencia) & ... (mes < projeto.implantacao + financiamento.carencia + financiamento.prazo); amortizacao = -sum(recurso_financiamento)/financiamento.prazo*flag_amortizacao; //Taxa de juros mensal taxa_juros = (1 + financiamento.TJLP + financiamento.spread_basico + financiamento.spread_risco)^(1/12) - 1; saldo_devedor = zeros(length(mes),1); juros = zeros(length(mes),1); for m = 2:length(mes) saldo_devedor(m) = saldo_devedor(m-1) - recurso_financiamento(m-1) - amortizacao(m-1); juros(m) = saldo_devedor(m)*taxa_juros; end //OBSERVAÇÕES: Como é feito o pagamento de juros no período de carência/implantação? // = LAIR (ou EBT) - Lucro antes do imposto de renda ...................... LAIR = EBITDA + depreciacao + juros; // - Tributos sobre o lucro, i.e., Imposto de Renda e CSLL ................ if projeto.regime == 1 then //Se for produção independente IR = -max(impostos.IR*LAIR,0) - max(LAIR - impostos.limite_IR_adicional,0)*impostos.IR_adicional; CSLL = -max(impostos.CSLL*LAIR,0); else IR = -max((impostos.IR + impostos.IR_adicional)*LAIR,0); CSLL = -max(impostos.CSLL*LAIR,0); end //OBSERVAÇÕES: No caso de autoprodução ou sistema de compensação de energia, os //tributos sobre o lucro devem ser considerados sobre o incremento de lucro na //atividade principal do consumidor, devido à redução das despesas com energia. // = Lucro líquido ........................................................ lucro_liquido = LAIR + IR + CSLL; // ----------------------- FLUXO DE CAIXA DO INVESTIDOR ------------------------ // + Lucro líquido ........................................................ // - Amortização .......................................................... // + Valores não desembolsados (depreciação) .............................. nao_desembolsados = -depreciacao; // - Investimento próprio ................................................. // = Fluxo de caixa nominal do investidor ................................. FC_investidor = lucro_liquido + amortizacao + nao_desembolsados + FC_investimentos; //TMA mensal TMA = (1 + projeto.TMA)^(1/12) - 1; //WACC - Weighted average cost of capital (a.m.) //WACC = (sum(-FC_investimentos)*projeto.TMA + sum(recurso_financiamento)*(financiamento.TJLP + ... // financiamento.spread_basico + financiamento.spread_risco))/sum(-investimento_total); //WACC = (1 + WACC)^(1/12) - 1; FC_investidor_descontado = FC_investidor./(1 + TMA).^mes; // --------------------------- FLUXO DE CAIXA LIVRE ---------------------------- // + Lucro líquido ........................................................ // + Valores não desembolsados (depreciação) .............................. // + Juros ................................................................ // - Investimento total (CAPEX) ........................................... // = Fluxo de caixa livre nominal ......................................... FC_livre = lucro_liquido + nao_desembolsados - juros + investimento_total; //Fluxo de caixa descontado FC_livre_descontado = FC_livre./(1 + TMA).^mes; // ------------------------- INDICADORES DE RESULTADO -------------------------- //Fator de capacidade fator_capacidade = producao/(projeto.potencia*24*30); mprintf('----- INDICADORES DE RESULTADO -----\n\n\n') mprintf('..... Viabilidade do investidor .....\n\n') //Taxa Interna de Retorno TIR_investidor = (1 + tir(FC_investidor))^12 - 1; mprintf('Taxa Interna de Retorno: %.2f%% a.a.\n\n',TIR_investidor*100) //Valor Presente Líquido VPL_investidor = sum(FC_investidor_descontado); mprintf('Valor Presente Líquido: R$ %.2f\n\n',VPL_investidor) //Payback simples PB_simples_investidor = payback(FC_investidor); mprintf('Payback simples: %i meses\n\n',PB_simples_investidor) //Payback descontado PB_descontado_investidor = payback(FC_investidor_descontado); mprintf('Payback descontado: %i meses\n\n\n',PB_descontado_investidor) mprintf('...... Viabilidade do projeto .......\n\n') //Taxa Interna de Retorno TIR_livre = (1 + tir(FC_livre))^12 - 1; mprintf('Taxa Interna de Retorno: %.2f%% a.a.\n\n',TIR_livre*100) //Valor Presente Líquido VPL_livre = sum(FC_livre_descontado); mprintf('Valor Presente Líquido: R$ %.2f\n\n',VPL_livre) //Payback simples PB_simples_livre = payback(FC_livre); mprintf('Payback simples: %i meses\n\n',PB_simples_livre) //Payback descontado PB_descontado_livre = payback(FC_livre_descontado); mprintf('Payback descontado: %i meses\n\n',PB_descontado_livre) // ----------------------------- ARQUIVO DE SAÍDA ------------------------------ if verbose then xls_NewExcel(); // set visible excel windows xls_SetVisible(%f); xls_Open(arquivo_xls); // disable some excel messagebox xls_DisplayAlerts(%f); //previous_mode = mode(); //mode(7); xls_SelectWorksheet('Configuração do Projeto'); xls_SetData("C2", projeto.implantacao); xls_SetData("C4", projeto.vida_util); xls_SetData("C6", projeto.potencia); xls_SetData("C7", turbina.potencia_nominal); select projeto.regime case 1 xls_SetData("C9", 'Produção independente'); case 2 xls_SetData("C9", 'Sistema de compensação de energia'); case 3 xls_SetData("C9", 'Autoprodução'); end xls_SetData("C10", projeto.TMA); xls_SetData("C12", custo_MW_instalado); if projeto.regime ~= 1 & projeto.consumidor then //Modelo de conta do consumidor (somente nos //casos de sistema de compensação e autoprodução) xls_SetData("C13", 'Ver planilha ''Conta do Consumidor'''); else xls_SetData("C13", projeto.preco_energia); end xls_SelectWorksheet('Análise de Viabilidade'); xls_SetData("C7", sum(investimento_total)); xls_SetData("C8", TIR_livre); xls_SetData("C10", VPL_livre); xls_SetData("C11", PB_simples_livre); xls_SetData("C13", PB_descontado_livre); xls_SetData("F7", sum(FC_investimentos)); xls_SetData("F8", TIR_investidor); xls_SetData("F10", VPL_investidor); xls_SetData("F11", PB_simples_investidor); xls_SetData("F13", PB_descontado_investidor); if projeto.modelo_CAPEX ~= 1 then xls_SelectWorksheet('Custos da Turbina (Modelo NREL)'); xls_DeleteWorksheet(); end xls_SelectWorksheet('Desempenho do Projeto'); if projeto.modelo_PAE == 1 then xls_SetData("C2", [projeto.vel_media turbina.altura_hub]); end xls_SetData("C5", producao_bruta); xls_SetData("C7", producao_bruta*(1 - coeficiente_perdas)); xls_SetData("C9", [producao fator_capacidade]); xls_SelectWorksheet('Perdas'); xls_SetData("C2", [perdas.array perdas.soiling perdas.grid perdas.downtime perdas.other coeficiente_perdas]); xls_SelectWorksheet('Custos Operacionais'); xls_SetData("C2", [custos.OeM; custos.OeM*projeto.potencia custos.terreno; custos.terreno*receita_bruta($) custos.seguro; -custos.seguro*sum(investimento_total) custos.TUST; custos.TUST*projeto.potencia custos.conexao; custos.conexao*projeto.potencia custos.TFSEE; custos.TFSEE*custos.BETU*projeto.potencia custos.BETU custos.administrativos; custos.administrativos*receita_bruta($)]); xls_SelectWorksheet('Financiamento'); xls_SetData("C2", [financiamento.percentual financiamento.prazo]); xls_SetData("C5", financiamento.carencia); xls_SetData("C7", financiamento.TJLP); xls_SetData("C9", financiamento.spread_basico); xls_SetData("C11", financiamento.spread_risco); xls_SelectWorksheet('Conta do Consumidor'); if projeto.regime ~= 1 & projeto.consumidor then xls_SetData("C2", [conta.tarifa_ponta conta.tarifa_f_ponta conta.tarifa_demanda conta.tarifa_demanda_ultr conta.consumo_ponta conta.consumo_f_ponta conta.demanda_contratada conta.demanda_ultr]); else xls_DeleteWorksheet(); end xls_SelectWorksheet('Fluxo de Caixa'); xls_SetData("I5", investimento_total'); xls_SetData("I7", recurso_financiamento'); xls_SetData("I10", FC_investimentos'); xls_SetData("I15", receita_bruta'); xls_SetData("I17", [(PIS_PASEP + COFINS)'; PIS_PASEP'; COFINS']); xls_SetData("I22", receita_liquida'); xls_SetData("I24", custos_fixos' + custos_variaveis'); xls_SetData("I27", EBITDA'); xls_SetData("I30", depreciacao'); xls_SetData("I32", juros'); xls_SetData("I35", LAIR'); xls_SetData("I38", IR'); xls_SetData("I40", CSLL'); xls_SetData("I43", LAIR'); xls_SetData("I51", amortizacao'); xls_SetData("I58", FC_investidor'); xls_SetData("I60", FC_investidor_descontado'); xls_SetData("I74", FC_livre'); xls_SetData("I76", FC_livre_descontado'); //mode(previous_mode); xls_SetWorksheet(1); xls_Save(); xls_Close(); xls_Quit(); winopen(arquivo_xls); end
4554951093587b916bcc13344115ff54d957a1e2
449d555969bfd7befe906877abab098c6e63a0e8
/2912/CH6/EX6.3/Ex6_3.sce
1d6db1895b5da2978f823090e9f325edf01b0940
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
416
sce
Ex6_3.sce
//chapter 6 //example 6.3 //Calculate relaxation time of conduction electrons //page 147 clear; clc; //given n=5.8E28; // in 1/m^3 (density of electron) m=9.1E-31; // in Kg (mass of electron) e=1.6E-19; // in C (charge of electron) p=1.54E-8; // in ohm-m (resistivity) //calculate t=m/(n*e^2*p); // calculation of relaxation time printf('\nThe relaxation time of conduction electrons is %1.2E sec',t);
c69852ac98bbe3c2a97814f1a70c4bfd8fd633cd
449d555969bfd7befe906877abab098c6e63a0e8
/689/CH16/EX16.2/2.sce
7a80b879207960a2f59e40e615aeea48e232463d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,175
sce
2.sce
clc; funcprot(0); //Example 16.2 Horsepower required at sea level // Initialisation of variables W = 4225; b1 = 38; b2 = 35; Gap = 5.35; S1 = 214; S2 = 150; Dp = 9.4; // Parasite drag equivalent // Calculations mu =b2/b1; Gab_MeanSpan = 2*Gap/(b1+b2); S = S1 + S2; sigma = 0.56; //From fig 10.10 r = S2/S1; K = mu*(1+r)/sqrt(mu^2 + 2*sigma*r*mu + r^2); EMAR = K^2*b1^2/S; Coeff_Cdi = 1/(%pi*EMAR); Cdp = 1.28*Dp/S; Coeff_Cl = W/(0.00256*S) Coeff_HPTot = 0.00256*S/375; V = [54 60 70 80 90 100 110 120 130 140 150]; Cl = Coeff_Cl*diag(inv(diag(V^2))); Cd0 = [0.043 0.019 0.013 0.011 0.010 0.010 0.010 0.009 0.009 0.009 0.009] Cdi = Cl^2*Coeff_Cdi; Cd = Cd0+Cdi'+Cdp; Hp = Coeff_HPTot*diag(diag(V^3)*diag(Cd)); Result = zeros(11,6); Result(:,1) = V'; Result(:,2) = Cl; Result(:,3) = Cd0'; Result(:,4) = Cdi; Result(:,5) = Cd'; Result(:,6) = Hp; disp(Result,"!! V Cl Cd0 Cdi Cd HP Req !!") ; clf(); plot2d(Result(:,1),Result(:,6)); xlabel("Miles Per Hour"); ylabel("HorsePower"); title("Horsepower required for various airspeeds "); set(gca(),"grid",[1 1])
20a7f302a1f2c62cc13fa45e6079fbb3358d3c25
449d555969bfd7befe906877abab098c6e63a0e8
/2915/CH2/EX2.17/Ex2_17.sce
bf2a15c0b72e76e4fa7ad931de7e9a10199adc84
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
455
sce
Ex2_17.sce
//Example 2.17 //To find radius of circumscribed circle for triangle ABC clc,clear c=5//side oposite to vertex C a=3//side opposite to vertex A b=4//side opposite to vertex B cos_A = (c^2+b^2-a^2)/(2*c*b) //from law of cosines A= acosd(cos_A) diameter=(a/sind(A)) radius = diameter/2 printf('Radius of circumscribed circle = %.1f units \n',radius) printf('\nNote :\n Diameter is same as AB i.e. c... So centre of circle is mipoint of AB')
b0e74537cf0fab5a3c653cac7b39e1e3f191bc67
449d555969bfd7befe906877abab098c6e63a0e8
/821/CH6/EX6.2/6_2.sce
834793843b5c90bdd0c4750458604418cb0b11e1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,440
sce
6_2.sce
v=180;//volume of conc. H2SO4 in ml// n=6.61;//Normality of the solution// N=1000*n/v; printf('The Noramality or Strength of the Conc. acid=N=%fN',N); printf('\n1 eq.per litre=0.5mol per litre in the case of H2SO4 since the eq.wt=0.5 the mol.wt.'); printf('\n 6.6N soln=6.61 eq per litre=3.305mol per litre.\n Strength of the diluted solution=3.305M'); SG=1.84;//super gravity of Conc. H2SO4// w=SG*v;//weight of 180ml of conc. H2SO4 in grams// printf('\nWt of 180ml of conc.H2SO4=w=%fgrams.',w); printf('\nThis actually contains 6.61*49grams of H2SO4.\n percentage of H2SO4 by weight=97.8'); sg=1.198;//specific gravity of the diluted solution// V=1000;//volume of the diluted solution in ml// W=sg*V;//weight of one litre of the diluted solution in grams// printf('\nWt of 1 litre of the diluted solution=W=%fgrams ',W); WH2O=w+W;//weight of water in grams// printf('\ntherefore Weight of water=WH2O=%fgrams.',WH2O); printf('\nIf the percent of H2SO4 by wt in the diluted solution is y.\nWt of H2SO4 in 1litre of the diluted solution=49*6.61grams.so y value comes as 27.04percent'); M=3.305*1000/WH2O;//molality of the solution// printf('\nMolality of the solution=M=%f',M); mf=0.064;//mole fraction of H2SO4// mfH2O=1-mf;//mole fraction of water// printf('\nMol of sulphuric acid is 329.9/98=3.305.\nMol of water=874.1/18=48.561.\nMol fraction of H2SO4=0.064.'); printf('\nMole fraction of water=mfH2O=%f',mfH2O);
2f9b855817599a0155b61467028556e8d0623455
449d555969bfd7befe906877abab098c6e63a0e8
/1964/CH1/EX1.16/ex1_16.sce
2e44ea6ce2ecca981fb406045378488f21dff43b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
848
sce
ex1_16.sce
//Chapter-1, Example 1.16, Page 27 //============================================================================= clc; clear; //INPUT DATA I=7.9;//current in A V=240;//supply voltage in V t=55;//temperature in degree centigrade a0=0.00029;//temperature coefficient in ohm/ohm/degree centigrade l=15.6;//length of wire in m a=12;//cross-sectional area in mm^2 //CALCULATIONS R=V/I;//resistance of wire in ohm p=R*a/l;//resistivity of wire in ohm metre Rt=R*(1+(a0*t));//resistance at 55 degree centigrade in ohm I1=V/Rt;//current through wire at temperature 55 degree centigrade in A //OUTPUT mprintf("Thus the resistivity and current through wire at temperature 55 degree centigrade are %2.2f micro ohm meter and %2.2f A respectively",p,I1); //=================================END OF PROGRAM==============================
612d4bef3ec1dd781fb47058760746f59ef4b20a
449d555969bfd7befe906877abab098c6e63a0e8
/761/CH19/EX19.3/19_3.sce
3394de223f4b5f7c73a8d529171c96c9a5120965
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
257
sce
19_3.sce
clc; // page no 707 // prob no 19.3 // A typical low-cost monochrome receiver has a video bandwidth of 3MHz B=3;// bandwidth in MHz // The horizontal resolution in lines is given as L_h=B*80; disp('lines',L_h,'The horizontal resolution in lines is');
46ed78affb273d6a5f7f80ebbc76a9ea89f6746f
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/gammaln.man.tst
3b30204c929f80c14c78530de18fee6579226232
[ "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
30
tst
gammaln.man.tst
clear;lines(0); gammaln(0.5)
af1a386785ca72b2865dedb5dab223a5b54f1353
e770dc26235168913bdcd5b2332f3a38a95a8bc7
/Toolbox Test/db/db10.sce
63cd74ad2ec65154bdf0a7edd1cce922a3ab6156
[]
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
278
sce
db10.sce
//check output when i/p is negative matrix u=[-0.1 -0.2 -20]; v=db(u); disp(v); //output // !--error 4 //Undefined variable: SignalType //at line 28 of function db called by : //v=db(u); //at line 3 of exec file called by : //x Test\db\db5.sce', -1
4d87cde055a87fd2e58d0d9f3e78a8419511f168
449d555969bfd7befe906877abab098c6e63a0e8
/608/CH2/EX2.03/2_03.sce
91c2f52550b0a2cbd3b84573f34465785829dc37
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
308
sce
2_03.sce
//Problem 2.03: The current flowing through a resistor is 0.8 A when a p.d. of 20 V is applied. Determine the value of the resistance. //initializing the variables: I = 0.8; // in Ampere V = 20; // in Volts //calculation: R = V/I printf("\n\nResult\n\n") printf("\nResistance(R): %.0f Ohms\n",R)
fd49db4742d3832c5f2bd7e8784b87bac9046d1a
8781912fe931b72e88f06cb03f2a6e1e617f37fe
/scilab/diffuse_rel/diffuse/diffuse_multi.sce
8040c6d00a2bdd2e7103102e7390646483de241a
[]
no_license
mikeg2105/matlab-old
fe216267968984e9fb0a0bdc4b9ab5a7dd6e306e
eac168097f9060b4787ee17e3a97f2099f8182c1
refs/heads/master
2021-05-01T07:58:19.274277
2018-02-11T22:09:18
2018-02-11T22:09:18
121,167,118
1
0
null
null
null
null
UTF-8
Scilab
false
false
8,205
sce
diffuse_multi.sce
//This requires //diffuse.m //nonlinearity term for multi-species diffusion function [compfunc]=compfunc(concm,specid,nspecies,inconsts, t) //simple linear multi species model with no time dependence total=0 for i=1:nspecies temptot=total+(inconsts(specid,i)*concm(i)); total=temptot end compfunc=total endfunction function [react]=react(concm,n1,n2,n3,nspecies,rconsts, t) //simple linear multi species model with no time dependence nconcm=concm; //for i=1:nspecies for i1=1:n1 for i2=1:n2 for i3=1:n3 if (concm(i1,i2,i3,1)>0.000001) if(concm(i1,i2,i3,2)>0.000001) nconcm(i1,i2,i3,3)=concm(i1,i2,i3,3)+0.5*concm(i1,i2,i3,1)+0.75*concm(i1,i2,i3,2); nconcm(i1,i2,i3,1)=0.5*concm(i1,i2,i3,1); nconcm(i1,i2,i3,2)=0.25*concm(i1,i2,i3,2); end end end end end //end react=nconcm endfunction //-->x=ode(x0,t0,t,list(sdotx,p,yold)) function [cmdott]=cmdott(t,c,lap3d,dif,sink,source,specid,nspecies,concm, inconsts) cmdott=dif*lap3d-sink+source+compfunc(concm,specid,nspecies,inconsts, t); endfunction function [mconcupdate]=mconcupdate(nspecies, concm, isp,i1,i2,i3,n1, n2, n3,t0,t,h,difv,sourcesm,sinksm,inconsts) concs=concm(1:n1 , 1:n2, 1:n3,isp) sources=sourcesm( 1:n1,1:n2,1:n3,isp); sinks=sinksm(1:n1,1:n2,1:n3,isp); //concs=zeros(n1,n2,n3); //sources=zeros(n1,n2,n3); //sinks=zeros(n1,n2,n3); //concm=ones(nspecies,n1,n2,n3); dif=difv(isp,1); newc=concm(i1,i2,i3,isp); if newc>=0 //get submatrix //concsub=zeros(3,3,3) //concs concsub=getconcsub(concs,i1,i2,i3,n1,n2,n3); //got sub matrix //calculate laplacian lap=lap3d(concsub,h) sink=sinks(i1,i2,i3) source=sources(i1,i2,i3) localconcm=zeros(nspecies); for sp1=1:nspecies //conctemp=concm(:,:,:,sp1); localconcm(sp1)=concm(i1,i2,i3,sp1); end //use laplacian to update newc=ode(concs(i1,i2,i3),t0,t,list(cmdott,lap,dif,sink,source,isp,nspecies,localconcm,inconsts)) //conc(i1,i2,i3)=newconcm(sp) if newc<0 newc=0; end end mconcupdate=newc; endfunction function [newtempmultireactconc]=newtempmultireactconc(nsubsteps, nspecies, concm, n1, n2, n3,t0,t,h,dif,sourcesm,sinksm,inconsts) //cycle over each element of the array //update concentration rconsts=0; nconcm=zeros(n1,n2,n3,nspecies); ddt=dt/nsubsteps; for kk=1:nsubsteps t=t0+ddt; //t0=t0+ddt; printf('efore concm1=%f\n',concm(5,5,1,1)); printf('concm2=%f\n',concm(15,15,1,2)); for isp=1:nspecies for i1=1:n1 for i2=1:n2 for i3=1:n3 //nconcm(isp,i1,i2,i3)=mconcupdate(concs, i1,i2,i3,n1,n2,n3,t0,t,h,dif,sources,sinks); nconcm(i1,i2,i3,isp)=mconcupdate(nspecies, concm, isp,i1,i2,i3,n1, n2, n3,t0,t,h,dif,sourcesm,sinksm,inconsts); if isp==3 if (nconcm(i1,i2,i3,1)>0.000001) if(nconcm(i1,i2,i3,2)>0.000001) nconcm(i1,i2,i3,3)=nconcm(i1,i2,i3,3)+0.49*nconcm(i1,i2,i3,1)+0.74*nconcm(i1,i2,i3,2); nconcm(i1,i2,i3,1)=0.5*nconcm(i1,i2,i3,1)+0.01*nconcm(i1,i2,i3,3); nconcm(i1,i2,i3,2)=0.25*nconcm(i1,i2,i3,2)+0.01*nconcm(i1,i2,i3,3); end end end end end end end printf('after concm1=%f\n',nconcm(5,5,1,1)); printf('concm2=%f\n',nconcm(15,15,1,2)); concs=nconcm; //concs=react(concs,n1,n2,n3,nspecies,rconsts, t); t0=t end newtempmultireactconc=nconcm; //newtempmulticonc=concm; endfunction function [newtempmulticonc]=newtempmulticonc(nsubsteps, nspecies, concm, n1, n2, n3,t0,t,h,dif,sourcesm,sinksm,inconsts) //cycle over each element of the array //update concentration rconsts=0; nconcm=zeros(n1,n2,n3,nspecies); ddt=dt/nsubsteps; for kk=1:nsubsteps t=t0+ddt; //t0=t0+ddt; for isp=1:nspecies for i1=1:n1 for i2=1:n2 for i3=1:n3 //nconcm(isp,i1,i2,i3)=mconcupdate(concs, i1,i2,i3,n1,n2,n3,t0,t,h,dif,sources,sinks); nconcm(i1,i2,i3,isp)=mconcupdate(nspecies, concm, isp,i1,i2,i3,n1, n2, n3,t0,t,h,dif,sourcesm,sinksm,inconsts); end end end end end concs=nconcm; //concs=react(concs,n1,n2,n3,nspecies,rconsts, t); t0=t //end newtempmulticonc=nconcm; //newtempmulticonc=concm; endfunction //function to update species for multi species diffusion function [newconcm]=newconcm(nspecies, concm, n1, n2, n3,t0,t,h,dif,sourcesm,sinksm,inconsts) //cycle over each element of the array //update concentration nconcm=zeros(n1,n2,n3,nspecies); for isp=1:nspecies for i2=1:n1 for i2=1:n2 for i3=1:n3 nconcm(i1,i2,i3,isp)=mconcupdate(nspecies, concm, isp,i1,i2,i3,n1, n2, n3,t0,t,h,dif,sourcesm,sinksm,inconsts); end end end end newconcm=nconcm; endfunction function [diffusem]=diffusem(nsteps, nsubsteps, dt, dif,in, concs, sources, sinks,inconsts) //diffusion system initial values //d=in(1) //d passed as a vector 1 diffusion constant for each species n1=in(1); n2=in(2); n3=in(3); h=in(4); nspecies=in(5); t0=0; //concs, sources and sinks are lists of 3d matrices //the list contains nspecies entries t=t0; ddt=dt/nsubsteps; for kk=1:nsubsteps t=t0+ddt; newc=newconcm(nspecies, concs, n1, n2, n3,t0,t,h,dif,sources,sinks,inconsts); t0=t; end diffusem=newc; endfunction function [mymultidiffuse]=mymultidiffuse(jobname,nsteps, nsubsteps, dt, dif, in, concs, sources, sinks,inconsts) //diffusion system initial values n1=in(1); n2=in(2); n3=in(3); h=in(4); nspecies=in(5); t0=0; t=t0; ddt=dt/nsubsteps printf('sub steps: %d \n', nsubsteps); //smat=zeros(4,nsteps) for ii=1:nsteps printf('step= %d \n', ii); printf('conc1=%f\n',concs(5,5,1,1)); printf('conc2=%f\n',concs(15,15,1,2)); concn=newtempmulticonc(nsubsteps, nspecies, concs, n1,n2,n3,t0,t,h,dif, sources, sinks,inconsts); //printf('conc1=%f\n',concn(5,5,1,1)); //printf('conc2=%f\n',concn(15,15,1,2)); t0=t; t=t0+dt; concs=concn; //printf() //save the matrix for this step //sfilename=sprintf('%s', jobname); //sx3dfilename=sprintf('diffuse_%d.x3d', ii); //save each species in a separate file savemconcs(jobname,ii,n1,n2,n3,nspecies, concs); //updatemfilelist(ii,'diffuse',n1,n2,n3,nspecies,concn,h); end mymultidiffuse=concs; endfunction function [mymultireactdiffuse]=mymultireactdiffuse(jobname,nsteps, nsubsteps, dt, dif, in, concs, sources, sinks,inconsts) //diffusion system initial values n1=in(1); n2=in(2); n3=in(3); h=in(4); nspecies=in(5); t0=0; t=t0; ddt=dt/nsubsteps printf('sub steps: %d \n', nsubsteps); //smat=zeros(4,nsteps) for ii=1:nsteps printf('step= %d \n', ii); printf('conc1=%f\n',concs(5,5,1,1)); printf('conc2=%f\n',concs(15,15,1,2)); concn=newtempmultireactconc(nsubsteps, nspecies, concs, n1,n2,n3,t0,t,h,dif, sources, sinks,inconsts); //printf('conc1=%f\n',concn(5,5,1,1)); //printf('conc2=%f\n',concn(15,15,1,2)); t0=t; t=t0+dt; concs=concn; //printf() //save the matrix for this step //sfilename=sprintf('%s', jobname); //sx3dfilename=sprintf('diffuse_%d.x3d', ii); //save each species in a separate file savemconcs(jobname,ii,n1,n2,n3,nspecies, concs); //updatemfilelist(ii,'diffuse',n1,n2,n3,nspecies,concn,h); end mymultireactdiffuse=concs; endfunction
2bf7ff7a576257a252f681294cbd6091d21d9830
262ac6443426f24d5d9b13945d080affb0bd6d9b
/opgaves/vpw-boarden/run-me-first.sce
1c32fab61f0a1ea7a9643cceb5ffae30885de132
[]
no_license
slegers/Scilab
9ebd1d486f28cf66e04b1552ad6e94ea4bc98a0b
1b5dc3434def66355dafeb97c01916736a936301
refs/heads/master
2021-01-12T01:42:01.493578
2017-01-09T10:54:09
2017-01-09T10:54:09
78,420,343
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,613
sce
run-me-first.sce
funcprot(0) test_cases = list() test_cases($+1) = struct('input', struct('ns', [1]), 'output', struct('n', 1)) test_cases($+1) = struct('input', struct('ns', [2,1]), 'output', struct('n', 1)) test_cases($+1) = struct('input', struct('ns', [1,2]), 'output', struct('n', 2)) test_cases($+1) = struct('input', struct('ns', [1,2,3]), 'output', struct('n', 3)) test_cases($+1) = struct('input', struct('ns', [3,2,1]), 'output', struct('n', 1)) test_cases($+1) = struct('input', struct('ns', [1,3,2]), 'output', struct('n', 2)) test_cases($+1) = struct('input', struct('ns', [4]), 'output', struct('n', 1)) test_cases($+1) = struct('input', struct('ns', [4,10]), 'output', struct('n', 2)) test_cases($+1) = struct('input', struct('ns', [10,4]), 'output', struct('n', 1)) test_cases($+1) = struct('input', struct('ns', [1,2,3,4,5,6,7,8,9,10]), 'output', struct('n', 10)) test_cases($+1) = struct('input', struct('ns', [10,9,8,7,6,5,4,3,2,1]), 'output', struct('n', 1)) test_cases($+1) = struct('input', struct('ns', [1,3,5,7,9,2,4,6,8,10]), 'output', struct('n', 9)) test_cases($+1) = struct('input', struct('ns', [1,9,2,8,3,7,4,6,5,10]), 'output', struct('n', 6)) test_cases($+1) = struct('input', struct('ns', [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]), 'output', struct('n', 100)) function Result = test_case(index) Result = test_cases(index) endfunction function Result = test_case_count() Result = size(test_cases) endfunction function show(index) tc = test_case(index) disp('Inputs') disp('ns') disp(tc.input.ns) disp('Outputs') disp('n') disp(tc.output.n) endfunction function Result = check(index) tc = test_case(index) [n] = solve(tc.input.ns) Result = %t Result = Result & isequal(n, tc.output.n) endfunction function Result = failures() n = test_case_count() failures = [] for index = 1:n if ~check(index) then failures = [ failures, index ] end end Result = failures endfunction function report() [temp, n] = size(failures()) disp( strcat( [ "Number of test cases: ", string(test_case_count()) ] ) ) disp( strcat( [ "Number of failures: ", string(n) ] ) ) disp( strcat( [ "Number of successes: ", string(test_case_count() - n) ] ) ) if n == 0 then disp("SUCCESS") else disp("FAIL") end endfunction
ed65895791ccdf6f0e1096ec48d5af435cfb8b81
449d555969bfd7befe906877abab098c6e63a0e8
/2453/CH3/EX3.9/3_9.sce
2218264a9d330816f753bccb2f6fbb8804783d59
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
338
sce
3_9.sce
//To calculate the minimum energy n = 1; //for minimum energy h = 6.626*10^-34; //planck's constant, J sec m = 9.1*10^-31; //mass of electron, kg L = 4*10^-10; //side of box, m E1 = h^2*n^2/(8*m*L^2); //lowest energy, J printf("energy of electron in J is"); disp(E1); //answer given in the book is wrong
564fd8450a05d0f11602d7bc45eec74154ab1794
449d555969bfd7befe906877abab098c6e63a0e8
/659/CH9/EX9.16/topic9_16.sci
080bd5be4bc2076cfd3d06e2e3b85dcf026a9481
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
616
sci
topic9_16.sci
// Topic 9.16 RECURSION // Page no. 288 //Write a program to calculate factorial of a number using recursion function[fact1]=factorial1(n) fact1=-1 if(n<0) then disp("Please enter positive value[i.e. 0 or greater than 0] "); return; //Quits the current function end if((n==0)|(n==1)) then fact1=1; else fact1=n*factorial1(n-1); //recursive call to factorial1() end endfunction n=input("Enter number:"); //calling factorial1() function inside printf() printf("Factorial of %d = %d",n,factorial1(n));
d5d8a12a9ce918becba97518c32e000d644595c4
449d555969bfd7befe906877abab098c6e63a0e8
/1151/CH1/EX1.45/example45.sce
ae68be815462ec3969499c0f1eea3620fc7427ae
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
402
sce
example45.sce
printf("//to find transfer function using mason gain formula\n syms G1 G2 G3 G4 H1 H2 \n //gains of forward paths\n P1=G1*G2*G3;//forward path1 gain\n P2=-G1*G4;//forward path2 gain\n //gain of individual loops\nL1=-G1*G2*H1;\nL2=-G2*G3*H2;\nL3=-G1*G2*G3;\nL4=G1*G4;\nL5=G4*H2;\n//NO TWO NON TOUCHING LOOPS ARE THERE\nd1=1;\nd2=1;\nd=1-(L1+L2+L3+L4+L5);\nG=(P1*d1+P2*d2)/d;\ntransfer function C/R=G")
b821e9c5e2b0c575c36e147ddff5f6c73697a243
449d555969bfd7befe906877abab098c6e63a0e8
/2495/CH1/EX1.5.13/Ex1_5_13.sce
b5a9566503a31cc2b36119e07bba1386a5ee016e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
234
sce
Ex1_5_13.sce
clear clc DelVm_tr=0.0126;//in cm^3/gm P=1;//in atm Ti=368.65;//in K DelTDelP=0.035;//in K/atm R1=8.314;//in J R2=0.082;//in dm^3atm DelHm_tr=Ti*(DelVm_tr*32/1000)*1/(DelTDelP)*(R1/R2) printf('DelHm_tr=%.1f J/mol',DelHm_tr)
5b8fc0553df141b1d869c7dd5e3b2946cf37f7ab
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set14/s_Linear_Integrated_Circuits_S._Salivahanan_And_V._S._K._Bhaaskaran_1106.zip/Linear_Integrated_Circuits_S._Salivahanan_And_V._S._K._Bhaaskaran_1106/CH4/EX4.2/ex4_2.sce
d20142f85c77915d6f8ae6a5d6270262f28dbab9
[]
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
183
sce
ex4_2.sce
errcatch(-1,"stop");mode(2);// Example 4.2, Page No-187 Vee=12 Vcc=5 Vdiff=Vee-Vcc RL=1000 IL=Vdiff/RL IL=IL*1000 printf("Current through RL is IL= %d mA", IL) exit();
e1d63faaa604215c41220b7e711bd2fed26cf748
089894a36ef33cb3d0f697541716c9b6cd8dcc43
/NLP_Project/test/tweet/bow/bow.15_5.tst
82fc564d4b96dfa5ffad111f3605d728fd79507a
[]
no_license
mandar15/NLP_Project
3142cda82d49ba0ea30b580c46bdd0e0348fe3ec
1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2
refs/heads/master
2020-05-20T13:36:05.842840
2013-07-31T06:53:59
2013-07-31T06:53:59
6,534,406
0
1
null
null
null
null
UTF-8
Scilab
false
false
25,455
tst
bow.15_5.tst
15 55:0.1 64:0.16666666666666666 1588:1.0 1811:1.0 2178:1.0 2968:1.0 3031:2.0 4265:1.0 4650:1.0 5808:1.0 5815:1.0 6895:1.0 15 6:0.2 8:0.1 12:0.2857142857142857 20:0.3333333333333333 42:1.0 48:1.0 55:0.1 67:0.3333333333333333 80:1.0 85:2.0 88:1.0 197:1.0 244:1.0 483:1.0 1250:1.0 3304:0.3333333333333333 3606:1.0 4608:1.0 4648:1.0 4890:1.0 15 8:0.1 12:0.14285714285714285 534:0.3333333333333333 2684:1.0 3293:1.0 3347:0.16666666666666666 3419:0.5 3420:1.0 3486:1.0 3556:2.0 3946:1.0 4161:1.0 4397:1.0 4593:1.0 5161:0.5 5427:0.5 15 11:0.3333333333333333 12:0.14285714285714285 20:0.6666666666666666 38:0.5 88:1.0 121:0.02564102564102564 134:0.3333333333333333 281:0.5 386:1.0 405:1.0 1084:1.0 3154:1.0 3847:1.0 7517:1.0 15 20:0.6666666666666666 21:0.14285714285714285 64:0.16666666666666666 75:0.5 80:1.0 88:1.0 203:0.3333333333333333 383:1.0 499:0.5 664:0.25 2184:0.75 2347:1.0 3248:1.0 3317:1.0 3320:0.3333333333333333 3325:1.0 3347:0.16666666666666666 3381:0.16666666666666666 3392:1.0 3489:1.0 3511:1.0 3730:1.0 5309:1.0 5647:1.0 15 41:1.0 58:0.25 210:1.0 1228:1.0 1937:1.0 3677:0.5 7252:1.0 15 8:0.1 12:0.14285714285714285 19:0.1 20:0.3333333333333333 43:0.3333333333333333 58:0.25 64:0.16666666666666666 93:0.09090909090909091 499:0.5 534:0.3333333333333333 1402:1.0 1421:1.0 3521:0.3333333333333333 4099:1.0 5693:1.0 6042:1.0 15 8:0.2 46:1.0 54:1.0 55:0.1 75:0.5 121:0.02564102564102564 137:0.09090909090909091 212:1.0 240:0.3333333333333333 241:2.0 264:1.0 375:1.0 875:2.0 1001:0.5 1346:1.0 1607:1.0 1828:1.0 2184:0.25 2378:0.5 3304:0.3333333333333333 3345:0.5 3468:1.0 3640:1.0 4280:1.0 4436:1.0 5534:1.0 6161:1.0 7622:1.0 7828:1.0 15 19:0.1 55:0.1 121:0.05128205128205128 136:1.0 181:1.0 188:1.0 618:0.5 875:1.0 877:1.0 1549:1.0 3304:0.3333333333333333 3306:0.3333333333333333 3336:0.25 4029:1.0 4127:1.0 4645:2.0 4646:2.0 4648:1.0 4736:1.0 5719:1.0 5959:1.0 7490:1.0 15 8:0.1 121:0.02564102564102564 136:1.0 3333:1.0 3420:1.0 3606:1.0 4029:1.0 4642:1.0 5179:1.0 6242:1.0 6244:1.0 8026:1.0 15 6:0.2 8:0.2 15:0.14285714285714285 21:0.14285714285714285 44:1.0 55:0.1 67:0.3333333333333333 98:0.14285714285714285 158:0.25 241:1.0 289:0.09090909090909091 652:1.0 908:0.3333333333333333 1228:1.0 1332:1.0 1448:1.0 1481:1.0 1738:1.0 2184:0.5 2268:1.0 3284:2.0 3304:0.3333333333333333 3306:0.3333333333333333 3320:0.3333333333333333 3347:0.16666666666666666 3414:1.0 3444:0.5 3543:0.3333333333333333 3609:0.5 4099:1.0 4100:1.0 4310:1.0 4511:1.0 4733:1.0 4823:1.0 4828:1.0 15 7:0.5 46:1.0 64:0.16666666666666666 88:1.0 112:1.0 281:0.25 1309:1.0 1985:0.5 3284:1.0 3347:0.16666666666666666 3391:1.0 3507:1.0 3547:1.0 4280:1.0 4509:1.0 4864:1.0 5098:1.0 5258:1.0 5815:1.0 6369:1.0 15 8:0.1 20:0.6666666666666666 55:0.3 98:0.14285714285714285 121:0.05128205128205128 124:0.5 136:1.0 315:1.0 387:1.0 397:1.0 442:1.0 548:0.5 682:1.0 744:1.0 1197:1.0 1415:1.0 4032:1.0 4033:1.0 4268:1.0 5098:1.0 5649:1.0 6767:1.0 15 7:0.5 8:0.2 58:0.25 80:1.0 240:0.3333333333333333 298:0.5 534:0.6666666666666666 648:1.0 828:0.5 892:1.0 1183:1.0 1522:1.0 1950:1.0 2390:1.0 3325:1.0 3345:1.0 3413:1.0 3478:1.0 3516:1.0 3622:0.25 3718:1.0 4349:1.0 5179:1.0 5557:1.0 5682:1.0 6036:1.0 6384:1.0 6587:1.0 7762:1.0 8025:1.0 15 7:0.5 12:0.2857142857142857 20:0.3333333333333333 21:0.14285714285714285 24:0.6666666666666666 26:0.05714285714285714 38:1.0 55:0.1 73:0.3333333333333333 80:1.0 121:0.05128205128205128 134:0.3333333333333333 136:1.0 212:1.0 695:0.5 877:1.0 1011:1.0 1048:1.0 1340:1.0 2258:1.0 2690:1.0 3394:0.25 3418:1.0 3445:1.0 3501:1.0 6692:1.0 15 8:0.2 12:0.2857142857142857 13:1.0 15:0.14285714285714285 20:0.6666666666666666 62:0.2 98:0.14285714285714285 121:0.05128205128205128 134:0.6666666666666666 188:1.0 351:1.0 621:1.0 1061:1.0 1069:0.5 1481:1.0 1588:2.0 1887:1.0 2695:1.0 2942:1.0 3296:1.0 3345:0.5 3413:1.0 4172:1.0 4218:1.0 5161:0.5 15 38:1.0 46:1.0 48:1.0 73:0.3333333333333333 97:0.3333333333333333 210:1.0 251:1.0 383:1.0 3284:2.0 3304:0.3333333333333333 3306:0.3333333333333333 3336:0.25 3345:0.5 3405:1.0 3512:0.3333333333333333 3556:1.0 3592:1.0 4730:1.0 4926:1.0 5227:1.0 5392:1.0 5637:1.0 7422:1.0 15 20:0.3333333333333333 21:0.2857142857142857 73:0.3333333333333333 241:1.0 255:0.5 265:1.0 443:0.5 524:0.5 1738:1.0 2216:1.0 3478:1.0 4822:0.5 4823:1.0 6443:1.0 15 12:0.14285714285714285 48:1.0 78:1.0 93:0.09090909090909091 289:0.18181818181818182 548:0.5 6479:1.0 15 98:0.14285714285714285 289:0.18181818181818182 3345:0.5 3359:0.3333333333333333 3393:1.0 3512:0.6666666666666666 4446:1.0 4674:1.0 4758:0.5 5881:1.0 7755:1.0 15 46:1.0 2184:0.25 2942:0.5 3342:0.25 3348:1.0 3359:0.6666666666666666 3381:0.16666666666666666 3556:1.0 3579:1.0 3629:1.0 3707:1.0 3851:1.0 3986:0.5 4239:1.0 4349:1.0 4449:1.0 4493:1.0 4659:1.0 5144:1.0 15 8:0.1 12:0.14285714285714285 24:0.3333333333333333 26:0.02857142857142857 55:0.1 58:0.25 64:0.16666666666666666 117:0.5 188:1.0 197:1.0 215:1.0 298:0.5 507:1.0 652:1.0 1713:0.5 1985:0.5 2641:1.0 3347:0.16666666666666666 3394:0.25 3570:1.0 4079:1.0 4214:1.0 4717:1.0 5161:0.5 6235:1.0 6360:1.0 6739:1.0 7652:1.0 15 12:0.14285714285714285 156:1.0 159:1.0 210:1.0 218:1.0 289:0.09090909090909091 1565:1.0 1985:0.5 3320:0.6666666666666666 3381:0.16666666666666666 3393:1.0 3609:0.5 3739:0.2 4603:0.5 4604:1.0 6521:1.0 15 7:0.5 8:0.1 12:0.14285714285714285 21:0.14285714285714285 38:0.5 64:0.16666666666666666 281:0.25 387:1.0 499:0.5 614:1.0 1001:0.25 1517:1.0 1708:1.0 2184:0.25 2255:1.0 2268:1.0 3304:0.3333333333333333 3306:0.3333333333333333 3320:0.3333333333333333 3340:1.0 3359:0.3333333333333333 3381:0.16666666666666666 3386:1.0 3435:1.0 3579:2.0 3606:1.0 3703:1.0 3718:1.0 3732:1.0 3849:0.5 4030:1.0 4439:1.0 4494:1.0 4750:1.0 5463:1.0 5478:1.0 5549:1.0 5653:1.0 6739:1.0 7153:1.0 7750:1.0 15 20:0.3333333333333333 21:0.2857142857142857 68:1.0 126:0.3333333333333333 133:0.5 241:1.0 260:1.0 281:0.25 286:1.0 307:1.0 424:1.0 621:1.0 877:1.0 1251:1.0 1410:1.0 2177:0.5 2238:1.0 4263:1.0 5770:1.0 15 12:0.14285714285714285 19:0.1 46:1.0 93:0.09090909090909091 121:0.02564102564102564 158:0.25 281:0.25 335:1.0 446:0.5 537:1.0 538:1.0 548:0.5 2254:1.0 3320:0.3333333333333333 3386:1.0 3556:2.0 3914:1.0 4050:1.0 4257:1.0 5258:1.0 5980:1.0 15 12:0.2857142857142857 48:1.0 134:0.3333333333333333 1118:1.0 1250:1.0 3304:0.3333333333333333 3348:1.0 3515:0.5 3585:1.0 3609:0.5 4214:0.5 4219:1.0 4486:1.0 4608:1.0 5323:1.0 15 8:0.2 12:0.14285714285714285 20:0.3333333333333333 25:1.0 64:0.16666666666666666 73:0.3333333333333333 101:1.0 133:0.5 292:0.125 410:1.0 814:0.5 2356:1.0 3326:1.0 3626:1.0 4511:1.0 15 7:0.5 8:0.1 9:0.3333333333333333 12:0.14285714285714285 20:0.3333333333333333 64:0.16666666666666666 133:0.5 139:1.0 236:0.3333333333333333 292:0.125 488:1.0 499:0.5 615:1.0 1245:1.0 1402:1.0 1935:1.0 3284:1.0 3304:1.3333333333333333 3345:0.5 3347:0.3333333333333333 3359:0.6666666666666666 3379:1.0 3509:1.0 3849:0.5 4070:1.0 4180:1.0 4428:1.0 4597:1.0 4733:1.0 5196:1.0 5427:0.5 5554:1.0 6318:1.0 6984:1.0 7692:1.0 15 7:2.0 8:0.4 15:0.14285714285714285 48:1.0 64:0.16666666666666666 98:0.14285714285714285 621:1.0 1131:1.0 2690:1.0 2714:1.0 3074:1.0 3320:0.3333333333333333 3336:0.5 3381:0.16666666666666666 3386:1.0 3405:1.0 3420:1.0 3424:1.0 3489:0.3333333333333333 3499:1.0 3626:1.0 3790:1.0 3986:0.5 4083:1.0 4407:1.0 5203:1.0 5996:1.0 6265:2.0 7116:1.0 15 8:0.1 12:0.2857142857142857 15:0.14285714285714285 20:0.3333333333333333 58:0.25 64:0.5 85:1.0 98:0.14285714285714285 101:1.0 248:1.0 289:0.09090909090909091 292:0.125 293:0.5 534:0.3333333333333333 626:1.0 2184:0.25 2942:0.5 3304:1.0 3320:0.3333333333333333 3325:3.0 3381:0.3333333333333333 3392:1.0 3720:1.5 3790:1.0 4070:1.0 4071:1.0 4903:1.0 5196:2.0 7228:1.0 7243:1.0 7713:1.0 15 12:0.14285714285714285 19:0.1 38:0.5 73:0.3333333333333333 93:0.09090909090909091 94:1.0 121:0.02564102564102564 134:0.3333333333333333 176:1.0 197:1.0 284:0.5 292:0.125 647:1.0 2260:1.0 3336:0.25 3412:1.0 3427:1.0 3752:1.0 3939:1.0 4963:1.0 5161:0.5 5427:0.5 7089:1.0 15 8:0.1 11:0.3333333333333333 15:0.14285714285714285 21:0.14285714285714285 55:0.1 82:1.0 196:1.0 296:1.0 298:0.5 1001:0.25 1332:1.0 1588:1.0 2185:1.0 2268:1.0 3320:0.3333333333333333 3333:1.0 3345:0.5 3359:0.3333333333333333 3381:0.16666666666666666 3394:0.25 3489:0.3333333333333333 3506:1.0 3520:1.0 3587:1.0 3622:0.25 3989:1.0 4009:1.0 4179:1.0 4219:1.0 4221:1.0 4349:1.0 4469:1.0 5211:1.0 6523:1.0 7632:1.0 15 8:0.1 21:0.42857142857142855 58:0.25 64:0.16666666666666666 93:0.09090909090909091 121:0.02564102564102564 134:0.3333333333333333 141:0.14285714285714285 197:1.0 279:0.5 907:0.5 1001:0.25 1350:1.0 1361:2.0 1421:1.0 1713:0.5 3284:1.0 3412:1.0 3446:1.0 3501:1.0 4099:1.0 5069:1.0 5213:1.0 6588:1.0 15 11:0.3333333333333333 15:0.14285714285714285 21:0.14285714285714285 154:0.6666666666666666 196:1.0 296:1.0 1001:0.25 2811:1.0 3333:1.0 3520:1.0 3852:1.0 4642:1.0 5211:1.0 5688:1.0 15 8:0.1 58:0.25 534:0.3333333333333333 575:1.0 2029:1.0 3311:1.0 3458:1.0 3597:1.0 4449:1.0 4608:1.0 6248:0.5 6423:1.0 15 20:0.3333333333333333 75:0.5 80:1.0 88:1.0 158:0.25 3299:0.2 3325:1.0 3328:0.3333333333333333 3391:1.0 4115:1.0 15 12:0.2857142857142857 15:0.14285714285714285 19:0.1 20:0.6666666666666666 21:0.14285714285714285 43:0.3333333333333333 64:0.16666666666666666 84:1.0 88:1.0 96:0.16666666666666666 134:0.3333333333333333 137:0.09090909090909091 231:1.0 279:0.5 431:1.0 632:1.0 662:1.0 679:0.3333333333333333 1402:1.0 2204:1.0 2983:1.0 3675:1.0 4195:1.0 4767:1.0 6588:1.0 15 8:0.2 9:0.3333333333333333 12:0.14285714285714285 17:0.2 21:0.14285714285714285 48:1.0 158:0.25 292:0.125 296:1.0 607:1.0 664:0.25 695:0.5 767:1.0 1010:1.0 1179:1.0 1198:1.0 1315:1.0 1767:1.0 2307:1.0 3287:1.0 3499:1.0 3565:0.5 3579:1.0 3609:0.5 3730:1.0 3843:1.0 4161:1.0 4285:1.0 4332:1.0 4436:1.0 4576:1.0 4642:1.0 4645:1.0 4650:1.0 4651:1.0 5814:1.0 5815:1.0 6470:1.0 8026:1.0 15 46:1.0 64:0.16666666666666666 188:1.0 279:0.5 397:1.0 548:0.5 1365:1.0 3284:1.0 3304:0.6666666666666666 3320:0.3333333333333333 3325:1.0 3336:0.25 3345:0.5 3394:0.25 3499:1.0 3507:1.0 3511:1.0 3736:1.0 4218:1.0 4221:1.0 4352:1.0 6215:1.0 6588:1.0 6976:1.0 8032:1.0 15 8:0.1 20:0.3333333333333333 24:0.3333333333333333 55:0.1 88:1.0 129:0.5 281:0.25 296:1.0 507:1.0 999:1.0 1011:1.0 1128:1.0 1198:1.0 1415:1.0 2695:1.0 2814:0.3333333333333333 2843:1.0 3294:1.0 3393:1.0 4831:1.0 15 93:0.09090909090909091 260:0.5 278:1.0 472:1.0 3074:1.0 3304:0.3333333333333333 3377:1.0 3408:1.0 3487:1.0 4519:1.0 4750:1.0 5699:1.0 15 8:0.2 3300:0.5 3301:1.0 3302:1.0 3303:1.0 3304:0.3333333333333333 3305:1.0 3306:0.3333333333333333 3307:1.0 3308:1.0 3336:0.25 3345:0.5 3348:1.0 3362:1.0 3471:1.0 3587:1.0 4608:1.0 4638:1.0 4639:1.0 4864:1.0 5024:0.3333333333333333 5026:1.0 5143:1.0 5451:1.0 6390:1.0 7001:1.0 7259:1.0 7628:1.0 15 7:0.5 64:0.16666666666666666 137:0.09090909090909091 1415:1.0 1887:1.0 2377:1.0 3304:0.6666666666666666 3306:0.3333333333333333 3333:1.0 3419:0.5 3609:0.5 4175:1.0 6221:1.0 6233:1.0 6534:1.0 15 24:0.3333333333333333 45:1.0 80:1.0 223:1.0 251:1.0 289:0.18181818181818182 292:0.125 410:1.0 534:0.3333333333333333 550:0.5 1251:1.0 1950:1.0 2403:1.0 3304:0.3333333333333333 3325:1.0 3360:0.25 3361:1.0 3394:0.25 3489:0.3333333333333333 3579:1.0 3703:1.0 3752:1.0 4030:1.0 4143:1.0 4221:1.0 4352:1.0 4861:1.0 5262:1.0 6505:1.0 6506:1.0 6741:1.0 7507:1.0 7534:1.0 15 7:0.5 13:1.0 20:0.6666666666666666 55:0.1 62:0.4 68:1.0 80:3.0 137:0.09090909090909091 154:0.6666666666666666 227:1.0 241:1.0 250:1.0 314:1.0 386:1.0 429:1.0 652:1.0 1114:1.0 1332:1.0 1950:1.0 2184:0.25 2792:1.0 3284:1.0 4826:1.0 6149:1.0 15 8:0.1 12:0.14285714285714285 20:0.3333333333333333 21:0.14285714285714285 24:0.3333333333333333 43:0.3333333333333333 64:0.16666666666666666 98:0.14285714285714285 205:1.0 215:1.0 310:1.0 437:1.0 550:0.5 1950:3.0 2553:1.0 3347:0.16666666666666666 3359:0.3333333333333333 3362:1.0 3381:0.16666666666666666 3394:0.25 3414:1.0 3587:1.0 3986:0.5 4281:1.0 5470:1.0 5680:1.0 7368:1.0 7507:1.0 15 8:0.1 12:0.2857142857142857 20:0.3333333333333333 24:0.3333333333333333 26:0.02857142857142857 38:0.5 55:0.1 100:0.25 178:1.0 314:1.0 1198:1.0 1742:1.0 2268:1.0 2847:1.0 3248:1.0 3304:0.6666666666666666 3342:0.25 3345:0.5 3393:1.0 3394:0.25 3547:1.0 3676:1.0 3788:1.0 4030:1.0 5059:1.0 5143:1.0 5262:1.0 5470:1.0 5501:1.0 7632:1.0 15 24:0.3333333333333333 26:0.02857142857142857 46:1.0 148:0.16666666666666666 205:1.0 269:0.3333333333333333 281:0.25 307:1.0 2184:0.5 2268:1.0 3284:1.0 3304:0.3333333333333333 3306:0.3333333333333333 3309:1.0 3320:0.3333333333333333 3345:0.5 3381:0.16666666666666666 3622:0.25 4030:1.0 4218:1.0 4514:1.0 5059:1.0 5680:1.0 6032:1.0 15 7:0.5 8:0.2 15:0.14285714285714285 20:0.3333333333333333 26:0.02857142857142857 55:0.1 88:1.0 100:0.25 118:1.0 205:1.0 250:1.0 264:1.0 534:0.3333333333333333 550:0.5 797:1.0 1935:1.0 2345:1.0 3304:0.6666666666666666 3320:0.3333333333333333 3345:0.5 3413:1.0 3435:1.0 4079:1.0 4638:1.0 5881:1.0 6405:1.0 15 7:0.5 20:0.3333333333333333 38:0.5 63:1.0 73:0.3333333333333333 366:0.5 727:1.0 1235:1.0 1946:1.0 2238:1.0 3347:0.16666666666666666 3606:1.0 4070:1.0 4511:1.0 5226:1.0 5884:1.0 6200:1.0 6468:1.0 6865:1.0 6866:1.0 6867:1.0 6868:1.0 6869:1.0 7003:1.0 15 6:0.6 7:1.0 8:0.1 9:0.3333333333333333 55:0.1 73:0.3333333333333333 94:0.3333333333333333 121:0.02564102564102564 196:1.0 199:1.0 289:0.09090909090909091 446:0.5 457:1.0 1332:1.0 1365:1.0 2184:0.25 2292:1.0 2959:1.0 3074:1.0 3284:1.0 3342:0.25 3345:0.5 3347:0.16666666666666666 3507:1.0 3570:1.0 3917:1.0 4050:1.0 4051:1.0 4289:1.0 5090:1.0 7692:2.0 15 7:0.5 21:0.14285714285714285 24:0.3333333333333333 26:0.02857142857142857 38:0.5 48:1.0 73:0.3333333333333333 134:0.3333333333333333 240:0.3333333333333333 281:0.25 483:1.0 892:2.0 1106:1.0 2184:0.75 2290:1.0 3362:1.0 3371:1.0 3377:1.0 3485:1.0 3486:1.0 3487:1.0 4553:1.0 4705:1.0 6380:1.0 15 12:0.2857142857142857 15:0.14285714285714285 48:1.0 98:0.14285714285714285 188:1.0 197:1.0 285:1.0 292:0.125 664:0.25 859:0.5 3074:1.0 5022:3.0 5823:1.0 6024:1.0 6087:1.0 7518:1.0 15 269:0.3333333333333333 289:0.09090909090909091 293:0.5 1332:1.0 2184:0.5 3304:0.3333333333333333 3320:0.3333333333333333 3325:1.0 3336:0.25 3348:1.0 3365:1.0 3378:2.0 3386:1.0 3405:1.0 3556:1.0 3739:0.2 3859:1.0 3905:2.0 4384:0.5 4449:1.0 5064:1.0 5065:1.0 5066:1.0 5067:1.0 5068:1.0 5668:1.0 6042:1.0 7171:1.0 15 8:0.1 12:0.2857142857142857 19:0.1 44:1.0 55:0.3 289:0.09090909090909091 621:1.0 2184:0.25 2942:0.5 3306:0.3333333333333333 3320:0.3333333333333333 3325:1.0 3334:0.3333333333333333 3359:0.3333333333333333 3362:1.0 3381:0.16666666666666666 3396:1.0 3443:0.5 3512:0.3333333333333333 3552:0.5 3720:0.5 3940:1.0 4351:1.0 4493:1.0 4659:1.0 4968:1.0 5074:1.0 5075:2.0 5456:1.0 5898:1.0 7146:1.0 7366:1.0 15 8:0.1 38:0.5 46:1.0 64:0.16666666666666666 109:1.0 2030:1.0 3304:0.3333333333333333 3347:0.16666666666666666 3348:1.0 3726:1.0 4418:0.5 4617:1.0 4787:1.0 6635:1.0 6912:1.0 6993:1.0 15 8:0.1 3304:0.3333333333333333 3320:0.3333333333333333 3345:0.5 3360:0.25 3396:1.0 3419:0.5 3579:1.0 3627:1.0 4105:1.0 4501:1.0 5258:1.0 5725:1.0 6627:1.0 6775:1.0 7538:3.0 15 7:0.5 8:0.1 12:0.2857142857142857 20:0.3333333333333333 26:0.02857142857142857 38:0.5 44:1.0 48:2.0 54:1.0 55:0.1 62:0.2 94:0.3333333333333333 101:1.0 121:0.02564102564102564 182:0.5 205:1.0 333:1.0 383:1.0 437:1.0 483:1.0 484:1.0 1117:1.0 1198:1.0 1228:1.0 2184:0.25 2307:1.0 2535:1.0 2641:2.0 3284:1.0 3299:0.2 3304:0.3333333333333333 3306:0.3333333333333333 3325:1.0 3336:0.25 3419:0.5 3489:0.3333333333333333 4260:1.0 4620:1.0 5676:1.0 6587:1.0 7397:1.0 15 8:0.1 48:1.0 161:1.0 289:0.09090909090909091 446:0.5 1208:1.0 3074:1.0 3284:1.0 3304:0.6666666666666666 3320:0.3333333333333333 3325:1.0 3340:1.0 3347:0.3333333333333333 3348:1.0 3406:1.0 3556:2.0 3587:1.0 3594:0.5 3622:0.25 3626:1.0 3788:1.0 3856:1.0 3895:1.0 4172:1.0 4184:1.0 4218:1.0 4221:1.0 4291:1.0 4449:1.0 5035:1.0 5143:1.0 5318:1.0 5494:1.0 6042:1.0 6221:1.0 6286:1.0 6539:1.0 6741:1.0 6912:1.0 6913:1.0 6950:1.0 6993:1.0 15 7:1.0 8:0.1 20:0.3333333333333333 21:0.14285714285714285 38:1.0 48:1.0 55:0.1 80:1.0 176:1.0 183:2.0 185:1.0 197:1.0 199:1.0 210:1.0 289:0.18181818181818182 366:0.5 379:2.0 392:1.0 558:2.0 664:0.25 675:1.0 1626:1.0 3304:0.3333333333333333 4608:1.0 5035:1.0 6754:1.0 7756:1.0 15 8:0.1 289:0.18181818181818182 1950:1.0 2268:1.0 3304:1.0 3325:1.0 3347:0.16666666666666666 3362:1.0 3383:1.0 3512:0.6666666666666666 3739:0.2 4219:1.0 5262:1.0 5353:1.0 7756:1.0 7998:1.0 15 8:0.3 11:0.3333333333333333 12:0.14285714285714285 24:0.3333333333333333 100:0.25 159:1.0 182:0.5 651:1.0 1065:0.5 1198:1.0 1494:1.0 2184:0.25 3309:1.0 3320:0.3333333333333333 3334:0.3333333333333333 3353:1.0 3414:1.0 4172:1.0 4195:1.0 4830:1.0 5843:1.0 15 137:0.09090909090909091 892:1.0 2184:0.25 2268:1.0 2838:1.0 3304:0.6666666666666666 3348:1.0 3381:0.16666666666666666 3478:1.0 3823:0.5 3875:1.0 3939:1.0 4088:1.0 4864:1.0 6391:1.0 7630:1.0 7968:1.0 7969:1.0 15 8:0.1 38:0.5 289:0.09090909090909091 2184:0.25 3304:0.6666666666666666 3394:0.25 3468:1.0 4207:1.0 4214:0.5 4221:1.0 4436:1.0 4648:1.0 4659:1.0 4926:1.0 5270:1.0 5815:1.0 6235:1.0 15 20:0.3333333333333333 21:0.14285714285714285 55:0.1 88:1.0 98:0.14285714285714285 118:1.0 126:0.3333333333333333 141:0.14285714285714285 158:0.25 218:1.0 219:1.0 284:0.5 310:1.0 389:1.0 453:1.0 550:0.5 664:0.25 2422:0.5 3360:0.25 3361:1.0 5287:1.0 5288:1.0 6788:1.0 15 8:0.1 58:0.25 148:0.16666666666666666 389:1.0 534:0.3333333333333333 648:1.0 2184:0.75 3306:0.6666666666666666 3347:0.16666666666666666 3359:0.3333333333333333 3406:1.0 3412:1.0 3489:0.6666666666666666 3509:1.0 3529:1.0 3718:1.0 3739:0.2 4349:1.0 5032:1.0 5305:1.0 5306:1.0 5307:1.0 5308:1.0 5659:1.0 6539:1.0 15 8:0.1 9:0.3333333333333333 19:0.1 55:0.1 93:0.09090909090909091 197:1.0 397:1.0 999:1.0 1549:1.0 2268:1.0 3359:0.6666666666666666 3419:0.5 3424:1.0 3499:1.0 3509:1.0 3515:0.5 3849:0.5 3996:1.0 4228:1.0 4240:1.0 4741:1.0 4767:1.0 5045:1.0 5427:0.5 5465:1.0 5478:1.0 6037:1.0 6196:1.0 6390:1.0 6999:1.0 15 126:0.3333333333333333 507:1.0 1228:1.0 3284:1.0 3360:0.25 3374:1.0 3547:1.0 3579:1.0 3609:0.5 4049:1.0 5655:1.0 15 7:0.5 8:0.1 17:0.2 20:0.3333333333333333 38:1.0 68:1.0 115:0.1 199:1.0 483:1.0 507:1.0 1421:1.0 2651:1.0 3031:1.0 3393:1.0 3520:1.0 3609:0.5 3752:1.0 3802:1.0 7297:1.0 15 8:0.1 12:0.5714285714285714 21:0.14285714285714285 38:0.5 179:1.0 197:2.0 641:1.0 1410:1.0 2184:0.25 2403:1.0 2816:1.0 3306:0.3333333333333333 3320:1.0 3340:1.0 3347:0.5 3359:0.6666666666666666 3381:0.16666666666666666 3509:1.0 3587:1.0 3726:0.5 3851:1.0 3856:1.0 4139:1.0 4214:0.5 4479:1.0 4831:1.0 5202:1.0 6235:1.0 6349:1.0 7673:1.0 15 8:0.1 12:0.14285714285714285 20:0.6666666666666666 21:0.14285714285714285 43:0.3333333333333333 55:0.1 62:0.2 67:0.3333333333333333 80:1.0 199:1.0 203:0.3333333333333333 387:1.0 436:0.5 457:1.0 476:1.0 483:1.0 543:1.0 621:1.0 1164:1.0 1365:1.0 1415:1.0 1421:1.0 1626:1.0 1947:1.0 2024:1.0 2133:1.0 2983:1.0 3074:1.0 3414:1.0 3460:1.0 3788:1.0 4099:1.0 4139:1.0 4143:1.0 4172:1.0 4791:1.0 5363:1.0 5683:1.0 5706:1.0 15 8:0.1 2184:0.25 2942:1.0 3342:0.25 3347:0.16666666666666666 3587:1.0 3629:1.0 3805:1.0 4538:1.0 4620:1.0 4757:1.0 5026:1.0 5680:1.0 6034:1.0 15 8:0.1 20:0.3333333333333333 46:1.0 55:0.1 121:0.02564102564102564 134:0.3333333333333333 240:0.3333333333333333 387:1.0 2751:1.0 3320:0.3333333333333333 3333:1.0 3347:0.16666666666666666 3359:0.3333333333333333 3381:0.16666666666666666 3622:0.25 4166:1.0 5082:1.0 5216:1.0 15 7:0.5 19:0.1 20:0.3333333333333333 21:0.14285714285714285 98:0.42857142857142855 134:0.3333333333333333 201:0.5 387:1.0 803:1.0 1936:1.0 6264:1.0 6393:1.0 15 2184:0.5 3299:0.2 3333:1.0 3489:0.3333333333333333 3720:0.5 5010:1.0 15 8:0.1 12:0.14285714285714285 73:0.3333333333333333 88:1.0 141:0.14285714285714285 315:1.0 675:1.0 3388:1.0 15 8:0.2 73:0.6666666666666666 87:0.5 100:0.25 424:1.0 443:0.5 819:2.0 1253:1.0 2125:1.0 2282:1.0 3036:1.0 3284:1.0 3304:0.3333333333333333 3320:0.3333333333333333 3333:1.0 3438:1.0 3462:1.0 3464:1.0 3566:1.0 3752:2.0 4125:1.0 4306:1.0 4387:1.0 4926:1.0 4963:1.0 6219:1.0 7930:1.0 15 8:0.1 64:0.16666666666666666 121:0.02564102564102564 126:0.3333333333333333 183:1.0 218:1.0 442:1.0 446:0.5 462:1.0 529:1.0 638:1.0 1195:1.0 1197:1.0 1580:1.0 2225:1.0 3074:1.0 3284:2.0 3304:0.3333333333333333 3317:1.0 3360:0.25 3362:1.0 3381:0.16666666666666666 3393:1.0 3407:0.5 3428:1.0 3489:0.3333333333333333 3556:1.0 3592:1.0 3609:0.5 3640:1.0 4077:1.0 4125:1.0 4766:1.0 4848:1.0 5262:1.0 5409:1.0 15 8:0.2 21:0.14285714285714285 26:0.02857142857142857 46:1.0 48:1.0 158:0.25 194:1.0 215:1.0 281:0.25 550:1.0 580:1.0 647:1.0 727:1.0 814:0.5 1001:0.25 1509:1.0 1521:1.0 1956:1.0 2287:1.0 3161:1.0 3304:0.3333333333333333 3320:0.6666666666666666 3347:0.16666666666666666 3360:0.25 3561:1.0 3606:1.0 4077:1.0 4553:1.0 4682:1.0 5397:1.0 5899:1.0 6193:1.0 7445:1.0 15 40:0.5 121:0.05128205128205128 183:1.0 240:0.3333333333333333 827:1.0 2184:0.25 3334:0.3333333333333333 3336:0.25 3343:1.0 3347:0.16666666666666666 3381:0.16666666666666666 3444:0.5 3594:0.5 3895:1.0 4431:1.0 6042:1.0 15 12:0.14285714285714285 24:0.3333333333333333 48:1.0 64:0.16666666666666666 127:1.0 292:0.125 442:1.0 745:1.0 1011:1.0 1097:1.0 2673:1.0 2909:1.0 3074:1.0 3284:1.0 3414:1.0 3444:0.5 3460:1.0 3622:0.25 3626:1.0 3833:1.0 4201:1.0 7834:1.0 7976:1.0 15 6:0.2 8:0.1 11:0.3333333333333333 20:0.3333333333333333 21:0.42857142857142855 48:1.0 55:0.1 64:0.16666666666666666 73:0.3333333333333333 75:1.0 80:1.0 117:0.5 201:0.5 218:1.0 219:1.0 241:1.0 281:0.25 289:0.09090909090909091 387:1.0 479:1.0 534:0.3333333333333333 621:2.0 1001:0.25 1448:1.0 1485:1.0 1738:1.0 2211:1.0 2238:1.0 3395:1.0 4163:1.0 4517:1.0 4553:1.0 4750:1.0 4823:1.0 6363:1.0 7516:1.0 15 41:1.0 46:2.0 210:1.0 1228:1.0 1332:1.0 1346:1.0 1448:1.0 2184:0.25 2942:0.5 3304:1.0 3320:0.3333333333333333 3340:1.0 3359:0.6666666666666666 3543:0.3333333333333333 4432:1.0 4892:1.0 5111:1.0 5216:1.0 5262:1.0 15 20:0.3333333333333333 38:0.5 55:0.1 62:0.2 73:0.3333333333333333 383:1.0 1421:1.0 1636:1.0 3299:0.4 3336:0.25 3359:0.3333333333333333 3419:0.5 3499:1.0 3570:1.0 3823:0.5 4180:1.0 4259:1.0 7976:1.0 15 19:0.1 20:0.3333333333333333 80:1.0 98:0.14285714285714285 198:0.5 248:1.0 250:1.0 333:1.0 424:1.0 664:0.25 999:1.0 1345:1.0 1350:1.0 2122:1.0 3677:0.5 3752:1.0 5147:1.0 5224:1.0 15 1332:2.0 2184:0.25 3362:1.0 6613:1.0 15 7:0.5 80:1.0 255:0.5 289:0.09090909090909091 431:1.0 892:1.0 2184:0.25 3326:1.0 3360:0.25 3362:2.0 3469:1.0 3739:0.4 3802:1.0 4021:1.0 4105:1.0 4864:1.0 5032:1.0 15 8:0.1 38:0.5 55:0.1 58:0.25 196:1.0 218:1.0 938:1.0 1208:1.0 1251:1.0 1636:1.0 2184:0.25 3293:1.0 3320:0.3333333333333333 3362:1.0 4026:1.0 4659:1.0 15 12:0.14285714285714285 17:0.2 20:0.6666666666666666 21:0.2857142857142857 38:0.5 48:1.0 64:0.3333333333333333 98:0.14285714285714285 100:0.25 118:1.0 201:0.5 210:1.0 285:1.0 310:1.0 312:1.0 387:1.0 975:1.0 999:1.0 1549:1.0 1824:1.0 2310:1.0 2422:0.5 2768:1.0 3677:0.5 4491:1.0 5843:1.0 7134:1.0 15 20:0.3333333333333333 93:0.09090909090909091 126:0.3333333333333333 3304:0.3333333333333333 3306:0.6666666666666666 3336:0.25 3374:1.0 3419:0.5 3685:1.0 4375:1.0 4864:1.0 5470:1.0 5599:1.0 5848:1.0 5849:1.0 6056:1.0 6384:1.0 6921:1.0 6923:1.0 15 8:0.1 727:2.0 1070:1.0 1588:1.0 1837:1.0 2858:1.0 3306:0.3333333333333333 3320:0.3333333333333333 3336:0.25 3347:0.16666666666666666 3362:1.0 3414:1.0 3419:0.5 3555:1.0 3707:1.0 4351:1.0 4449:1.0 4684:1.0 7038:1.0 15 7:0.5 8:0.1 12:0.14285714285714285 15:0.14285714285714285 55:0.1 115:0.1 133:0.5 281:0.25 534:0.3333333333333333 550:0.5 697:1.0 746:1.0 925:1.0 1198:1.0 1332:1.0 1490:1.0 2792:1.0 2942:0.5 3347:0.16666666666666666 3360:0.25 3681:1.0 3875:1.0 4049:1.0 4642:1.0 5032:1.0 5606:1.0 7057:1.0 15 8:0.1 12:0.14285714285714285 46:1.0 133:0.5 281:0.25 289:0.09090909090909091 387:1.0 727:1.0 746:1.0 925:1.0 1332:1.0 2184:0.25 3325:1.0 3347:0.16666666666666666 3365:1.0 3371:1.0 3381:0.16666666666666666 3489:0.3333333333333333 3640:3.0 3681:1.0 3739:0.2 3875:1.0 3895:1.0 4009:1.0 4221:1.0 4502:1.0 4659:1.0 5032:1.0 5231:1.0 5606:1.0 7057:1.0 15 8:0.1 289:0.09090909090909091 534:0.3333333333333333 2184:0.25 2268:1.0 3320:0.3333333333333333 3340:1.0 3347:0.16666666666666666 3587:1.0 3591:1.0 3629:1.0 3752:1.0 4409:1.0 6576:1.0 7828:1.0 7830:1.0 15 7:0.5 12:0.14285714285714285 40:0.5 55:0.1 281:0.25 755:1.0 1906:1.0 2184:0.25 3320:0.3333333333333333 3325:1.0 3712:1.0 3752:1.0 4127:2.0 4659:1.0 4831:1.0 4840:1.0 4963:1.0 7514:1.0 15 8:0.1 21:0.2857142857142857 68:1.0 80:1.0 139:1.0 154:0.3333333333333333 159:1.0 442:1.0 502:1.0 996:0.3333333333333333 999:1.0 1372:1.0 1975:1.0 3304:0.3333333333333333 3320:0.3333333333333333 3347:0.16666666666666666 3661:0.3333333333333333 3809:1.0 4356:1.0 4530:1.0 5015:1.0 5202:1.0 5881:1.0 6001:1.0 6683:1.0 7308:1.0 15 12:0.14285714285714285 38:0.5 98:0.14285714285714285 506:1.0 958:1.0 3304:0.3333333333333333 3320:0.3333333333333333 3486:1.0 3543:0.3333333333333333 4005:2.0 5827:0.5 6193:1.0 15 8:0.1 21:0.14285714285714285 46:1.0 57:1.0 68:1.0 105:1.0 118:1.0 121:0.05128205128205128 188:1.0 241:1.0 457:1.0 815:1.0 1228:1.0 1476:1.0 2100:1.0 2655:1.0 3345:0.5 3983:1.0 4582:1.0 5828:1.0 6059:1.0 7397:1.0 15 8:0.2 46:2.0 64:0.16666666666666666 387:1.0 1239:1.0 1950:1.0 2942:0.5 3304:0.3333333333333333 3336:0.25 3347:0.16666666666666666 3359:0.3333333333333333 3407:0.5 3579:1.0 3616:1.0 3851:1.0 4009:1.0 4033:1.0 4219:1.0 4349:1.0 4832:1.0 5188:1.0 5231:1.0 5462:1.0 5489:1.0 6094:1.0 7246:1.0
22ba2a0adef7f4a37ab45a363cd0f2ffc4046ec7
449d555969bfd7befe906877abab098c6e63a0e8
/830/CH2/EX2.1.24/even.sce
081bb15332836fc8cde86a6082919f8dcee39e38
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
365
sce
even.sce
//Graphical// //Implementation of Equation 2.1.24 in Chapter 2 //Digital Signal Processing by Proakis, Third Edition, PHI //Page 51 clear; clc; close; n = -7:7; x1 = [0 0 0 1 2 3 4]; x = [x1,5,x1(length(x1):-1:1)]; a=gca(); a.thickness = 2; a.y_location = "middle"; plot2d3('gnn',n,x) xtitle('Graphical Representation of Even Signal','n','x[n]');
16a3aacbc87fc63fe71c868d6c64f0e8aa3308f6
de14a6897d4397228a52bacb8905b8807370ef4b
/cinematique_bis.sce
e30cf4977ebd2b8f749ee0dccd2a7fe6d33d6fc5
[]
no_license
JustineMarlow/MT94-RapportLaTeX
20b670965a47ce85beecc15865d14ec9cc4d305b
3dfaa665b5691621410f8eafdf76ecaf081b92d1
refs/heads/master
2021-09-06T17:54:58.174773
2018-02-09T09:57:52
2018-02-09T09:57:52
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
728
sce
cinematique_bis.sce
function out=f(theta) M=[l1*cos(theta(1))+l2*cos(sum(theta)) l1*sin(theta(1))+l2*sin(sum(theta))]; out=M-[xA;yA]; endfunction function out=Jf(theta) out=[-l1*sin(theta(1))-l2*sin(sum(theta)) -l2*sin(sum(theta)) l1*cos(theta(1))+l2*cos(sum(theta)) l2*cos(sum(theta))]; endfunction l1=1; l2=1; ITMAX=1000; precision=1e-10; theta=[0,%pi/2]'; //choix arbitraire d'une position initiale for t=linspace(0,2*%pi,100) //on choisit de tracer 100 bras xA = 1 + (1/2)*cos(t); yA = 1 + (1/2)*sin(t); for k=1:ITMAX if abs(norm(f(theta)))<precision break; end theta = theta-Jf(theta)\f(theta); end dessine_bras(theta) end
594476d88d5ddcc6f45d56abc04a8af99133a183
b9e7c5871c45a54c8166c2f6d6a9ac906193c2ee
/day-9/test_input.txt
f59cdfe6e8713c79916fa18e16aa9e3124b6deeb
[]
no_license
c-h-russell-walker/advent-of-code-2016
fcf56ee6d17bcdddd57b034aa1e5ef17ac982b8d
873dfe380feeaf65bc7bbbc379cf15b66789bf6e
refs/heads/master
2021-01-12T08:57:49.669915
2016-12-22T02:55:30
2016-12-22T02:55:30
76,738,096
1
0
null
null
null
null
UTF-8
Scilab
false
false
65
txt
test_input.txt
ADVENTA(1x5)BC(3x3)XYZA(2x2)BCD(2x2)EFG(6x1)(1x3)AX(8x2)(3x3)ABCY
4169b9ca07bfcdd9f81150da80cbc1e5a87f4c8a
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.5/Unix-Windows/scilab-2.5/macros/scicos/update_scicos_pal.sci
8f0da07b688a89fe2705c8302016fdc5c253695b
[ "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
877
sci
update_scicos_pal.sci
function scicos_pal=update_scicos_pal(path,name,fname) // Copyright INRIA scicos_pal; inde=find(scicos_pal(:,1)==name); if size(inde,'*')>=2 then message(['More than one palette named '+name; 'This is not allowed, do an Pal Editor to correct']) return end if inde<>[] then javab=message(['The palette '+name+' already exists'; 'Do you want to replace it?'],['Yes','No']) if javab==2 then return; else scicos_pal(inde,2)=fname errcatch(-1,'continue') if MSDOS then unix_s('del '+TMPDIR+'\'+name+'.pal') else unix_s('\rm -f '+TMPDIR+'/'+name+'.pal') end errcatch(-1) if iserror(-1)==1 then errclear(-1) x_message(['I was not able to delete '+name+'.pal'; 'in '+TMPDIR+'. You must do it now!']) end end else scicos_pal=[scicos_pal;[name,fname]] end save('.scicos_pal',scicos_pal)
00cbd25b2aae77aab92c55319f3d95168ccb1932
449d555969bfd7befe906877abab098c6e63a0e8
/1271/CH2/EX2.8/example2_8.sce
9af0ace9154a27d2d1944af9fe47e39fc8909945
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
691
sce
example2_8.sce
clc // Given that lambda = 5.89e-7 // wavelength of light in meter d1 = 1 // distance of wavefront recieved on the screen from the opening in first side in meter d2 = 2 // distance of wavefront recieved on the screen from the opening in other side in meter // Sample Problem 8 on page no. 2.40 printf("\n # PROBLEM 8 # \n") f = (d1 * d2) / (d1 + d2) p = 1 / f // beacause zone plate act as a convex lens n = 1 // for first zone Rn = sqrt(n * lambda * f) // calculation for radius of first zone Dn = 2 * Rn // calculation for diameter of first zone printf("\n Standard formula used \n ") printf("\n Focal length = %f meter. \n Power = %f D. \n Diameter of first zone = %f mm. ",f,p,Dn*1000)
90ae1c85259fbed1f67e9d280eed172f869dd8a6
aca04316c7c96dcc66a208d620f3bf5d6b0e45e9
/Gradient_Conjuge.sci
7f0678bc81325072a676dd1022d734bbe6797819
[]
no_license
yamiir/projet_Optimisation
7979cc942549c745c88c822ec9ccac88094bbc56
d51aac92f4cbd37013ea2f5f3137b8fb3958f648
refs/heads/master
2021-01-21T12:59:11.019376
2016-04-29T00:33:29
2016-04-29T00:33:29
52,592,455
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,171
sci
Gradient_Conjuge.sci
function [fopt,xopt,gopt]=Gradient_Conjuge(OraclePG,xini) alphai=0.99 x0=xini [F0,G0]=OraclePG(x0,3) d0=-G0 alpha=Wolfe(alphai,x0,d0,OraclePG) x1=x0+alpha*d0 dk0=d0 tol=0.00001 iter=5000 logG=[] logP=[] Cout=[] for k=1:iter [F1,G1]=OraclePG(x1,3) Beta=(G1-G0)'*G1/(norm(G0)^2) dk1=-G1+Beta*dk0 //disp("G1=",G1) if norm(G1) <= tol then break end alpha=Wolfe(alphai,x1,dk1,OraclePG) //disp('alpha=',alpha) x2=x1+alpha*dk1 x1=x2 x0=x1 dk0=dk1 F0=F1 G0=G1 //disp('G1=',G1) logG = [ logG ; log10(norm(G1)) ]; logP = [ logP ; log10(alpha) ]; Cout = [ Cout ; F1 ]; end fopt=F1 xopt=x2 gopt=G1 tcpu = timer(); cvge = ['Iteration : ' string(k);... 'Temps CPU : ' string(tcpu);... 'Critere optimal : ' string(fopt);... 'Norme du gradient : ' string(norm(gopt))]; disp('Fin de la methode de gradient a pas fixe') disp(cvge) // - visualisation de la convergence Visualg(logG,logP,Cout); endfunction
3c2611fae60b9bbd354ef5745638971cd503bb84
449d555969bfd7befe906877abab098c6e63a0e8
/26/CH3/EX3.1.1/3_1_1.sce
8d6475612df7d711474f58f44e0fa60815b6b457
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
202
sce
3_1_1.sce
disp('the given matrix is:') A=[3 0 4;2 3 2;0 5 -1] disp(A) disp('calculating det(A) using cofactor expression along first row') disp('det(A)=3 X (-1 X 3-5 X 2)+4 X (2 X 5-3 X 0)') disp(det(A),'=')
e2a22cc65070210facd44a7c2e0a667aa7e22fc7
b24d354cfcd174c92760535d8b71e22ced005d81
/DSP functions/allpasslp2xn/test_4.sce
779532c031836da52a5f5eeb2d952be9e9e60614
[]
no_license
shreniknambiar/FOSSEE-Signal-Processing-Toolbox
57ad8e2a71d64f95c4ccfd131e00095cf2b9c6f8
143cf61eff31240870dc0c4f61e32818a4482365
refs/heads/master
2021-01-01T18:25:34.435606
2017-07-25T18:23:47
2017-07-25T18:23:47
98,334,322
0
0
null
2017-07-25T17:48:00
2017-07-25T17:47:59
null
UTF-8
Scilab
false
false
274
sce
test_4.sce
// Test #4 : Input Argument #1 or #2 is of complex type exec('./allpasslp2xn.sci',-1); [n,d]=allpasslp2xn([0.33 0.4],[%i,0.5]); //!--error 10000 //Wt must be vector and real //at line 29 of function allpasslp2xn called by : //[n,d]=allpasslp2xn([0.33 0.4],[%i,0.5]);
d007aaadcd116b903fbd2d9166aae9be047f38c3
449d555969bfd7befe906877abab098c6e63a0e8
/2081/CH8/EX8.1/Ex8_1.sce
95b6ded13db4f8736defe5674ace1a936d0aad81
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
435
sce
Ex8_1.sce
Y=2//prpogation path-loss exponent r2=10^3 r1=10 delPr=20*log10(r2/r1)^2//log(r2/r1)*20dB/decade disp(delPr,'difference between the recieved signal strength (in dB)') imp=delPr+20//impact disp(imp,'effect of shadow fading causes difference between the recieved signal strength to exceed to (in dB)') outrad=40//out of bound radiations disp(imp-outrad,'IMPACT is out-of-bound radiations exceeds the desired signal strength by (in dB)')
bef10f160cd4e7e0393480fe5c087b198c1d3560
1b969fbb81566edd3ef2887c98b61d98b380afd4
/Rez/bivariate-lcmsr-post_mi/bfi_a6_aspfin/~BivLCM-SR-bfi_a6_aspfin-PLin-VLin.tst
3940e0afcb150b3bd1b46fd1dc023bbfb2e08d25
[]
no_license
psdlab/life-in-time-values-and-personality
35fbf5bbe4edd54b429a934caf289fbb0edfefee
7f6f8e9a6c24f29faa02ee9baffbe8ae556e227e
refs/heads/master
2020-03-24T22:08:27.964205
2019-03-04T17:03:26
2019-03-04T17:03:26
143,070,821
1
0
null
null
null
null
UTF-8
Scilab
false
false
11,974
tst
~BivLCM-SR-bfi_a6_aspfin-PLin-VLin.tst
THE OPTIMIZATION ALGORITHM HAS CHANGED TO THE EM ALGORITHM. ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 1 2 3 4 5 ________ ________ ________ ________ ________ 1 0.355023D+00 2 -0.293622D-02 0.305850D-02 3 -0.800915D-01 0.232895D-02 0.531082D+00 4 0.330344D-02 -0.430494D-03 -0.857382D-02 0.395887D-02 5 0.108481D-05 0.154733D-03 0.107285D-02 0.101849D-03 0.273524D-02 6 -0.565899D-03 0.258707D-04 0.815913D-03 0.340959D-04 -0.331955D-03 7 -0.501795D-03 0.683395D-04 -0.595991D-04 0.132621D-03 -0.614722D-03 8 0.900020D-03 0.103009D-03 -0.193137D-02 0.303450D-05 0.876304D-04 9 -0.116280D+00 0.141530D-01 0.446016D+00 -0.140183D-01 0.110440D+00 10 -0.101418D+00 0.164699D-01 0.473786D+00 0.755035D-02 0.191919D+00 11 -0.478668D-01 0.700809D-02 -0.167696D+00 0.894403D-02 0.141681D-02 12 0.437074D-01 -0.185316D-01 0.756306D+00 0.217123D-01 0.468572D-01 13 -0.373134D-01 0.102765D-01 0.203592D+00 0.354129D-02 -0.355627D-01 14 0.717907D-01 0.149494D-01 0.914365D-01 -0.257709D-01 0.186844D-01 15 -0.713290D+00 0.891081D-01 -0.303620D+00 -0.570720D-01 -0.127036D+00 16 -0.339136D-01 -0.129971D-01 0.136522D-01 0.172867D-03 0.558492D-03 17 -0.138595D-01 -0.210360D-02 0.157378D-02 0.799315D-03 -0.689892D-03 18 0.148348D+00 -0.510379D-01 0.617311D+00 -0.271627D-01 0.661767D-01 19 0.659985D-02 0.856403D-02 0.274441D-01 -0.726519D-02 -0.108812D-01 20 0.105324D+00 -0.366705D-01 0.360259D+01 -0.669857D-02 -0.948474D-02 21 0.297356D-01 -0.920355D-02 -0.243076D-01 0.310332D-02 0.650734D-02 22 -0.402203D-03 0.788374D-03 -0.616847D-02 0.715139D-04 0.130954D-03 23 -0.401638D-02 -0.955088D-03 0.606158D-01 0.719977D-02 0.358301D-02 24 -0.130778D-02 0.214930D-03 -0.114742D-01 0.571429D-03 -0.388061D-03 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 6 7 8 9 10 ________ ________ ________ ________ ________ 6 0.121990D-02 7 0.955677D-03 0.273518D-02 8 -0.214851D-03 -0.143879D-04 0.313668D-02 9 0.131332D-01 0.500628D-01 -0.444407D-01 0.816162D+02 10 -0.405825D-01 -0.649566D-01 0.500477D-02 0.504057D+01 0.321647D+02 11 0.298195D-01 0.173940D-01 0.866718D-02 -0.882469D+01 -0.673712D+00 12 -0.246967D-01 -0.343436D-01 -0.544977D-01 0.555054D+01 0.934266D+01 13 0.909075D-01 0.130919D+00 -0.361301D-01 0.241325D+01 -0.559420D+01 14 -0.611597D-01 -0.819101D-02 0.264844D+00 -0.145490D+01 0.491074D+01 15 0.377509D-01 0.837694D-01 -0.323419D-01 -0.961608D+01 -0.206010D+02 16 0.491815D-03 0.689354D-04 0.172744D-04 0.624895D+00 -0.569454D-01 17 -0.166816D-03 -0.419894D-03 0.138781D-03 -0.225485D+00 -0.234277D-01 18 -0.818385D-01 -0.111807D+00 0.300500D-01 -0.271359D+01 0.129395D+02 19 -0.189539D-01 0.689840D-02 -0.328453D-02 -0.688551D+00 0.700033D-01 20 0.174591D-01 0.162218D-01 -0.333895D+00 0.121310D+02 0.113536D+02 21 0.181910D-01 -0.625858D-02 0.731240D-02 0.135437D+00 -0.273616D+00 22 -0.165721D-03 -0.458676D-03 -0.253738D-03 0.395684D-01 -0.170636D-01 23 0.116609D-02 -0.109575D-02 -0.313995D-02 0.565880D+00 0.485501D+00 24 0.157753D-03 0.290056D-04 0.304434D-03 -0.122177D+00 -0.981462D-01 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 11 12 13 14 15 ________ ________ ________ ________ ________ 11 0.457448D+02 12 -0.751282D+01 0.121118D+03 13 0.871470D+00 -0.381008D+01 0.195695D+02 14 0.415355D+01 -0.180703D+02 -0.754909D+01 0.855527D+02 15 0.145661D+02 -0.112121D+02 0.376704D+01 0.746002D+01 0.389928D+03 16 -0.135481D+00 0.336482D+00 0.585902D-01 0.272729D-01 0.123113D+01 17 -0.552270D-01 0.154622D-01 -0.253933D-01 -0.836129D-01 -0.200086D+01 18 0.428551D+01 0.137305D+02 -0.754845D+01 0.843700D+01 -0.665048D+02 19 -0.177339D-01 -0.205071D+01 -0.664271D+00 0.269005D+00 0.153784D+01 20 -0.122057D+02 0.126822D+02 0.737806D+01 -0.665106D+02 0.235974D+02 21 0.926860D+00 0.165741D+01 0.721472D+00 0.534556D+00 -0.989858D+00 22 -0.120360D+00 -0.268062D-01 -0.354535D-01 -0.419662D-01 0.359437D+00 23 -0.161094D+00 0.173802D+01 0.300863D-01 -0.250627D+00 0.618756D+00 24 0.241055D-01 -0.275337D+00 0.832195D-02 -0.151632D-01 -0.240700D+00 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 16 17 18 19 20 ________ ________ ________ ________ ________ 16 0.518674D+00 17 -0.209999D-01 0.232729D-01 18 0.431380D+00 0.387655D+00 0.293143D+03 19 -0.148927D+00 0.229264D-01 0.146652D+01 0.722440D+01 20 -0.419746D+00 -0.214392D+00 -0.762579D+02 0.369701D+01 0.583871D+03 21 -0.138703D-01 -0.114040D-01 0.237311D+01 -0.600768D+01 -0.528472D+01 22 0.167238D-02 -0.484399D-02 -0.147732D+01 -0.593950D-01 0.253757D+00 23 0.111627D+00 -0.190941D-01 -0.478144D+00 -0.318754D+00 0.546189D+01 24 -0.707876D-02 0.485767D-02 0.230220D+00 -0.389263D-02 -0.242262D+01 ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES 21 22 23 24 ________ ________ ________ ________ 21 0.702625D+01 22 -0.346917D-01 0.188205D-01 23 -0.141714D+00 0.229163D-01 0.121695D+01 24 0.513405D-01 -0.347220D-02 -0.100228D+00 0.301961D-01 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 1 2 3 4 5 ________ ________ ________ ________ ________ 1 1.000 2 -0.089 1.000 3 -0.184 0.058 1.000 4 0.088 -0.124 -0.187 1.000 5 0.000 0.053 0.028 0.031 1.000 6 -0.027 0.013 0.032 0.016 -0.182 7 -0.016 0.024 -0.002 0.040 -0.225 8 0.027 0.033 -0.047 0.001 0.030 9 -0.022 0.028 0.068 -0.025 0.234 10 -0.030 0.053 0.115 0.021 0.647 11 -0.012 0.019 -0.034 0.021 0.004 12 0.007 -0.030 0.094 0.031 0.081 13 -0.014 0.042 0.063 0.013 -0.154 14 0.013 0.029 0.014 -0.044 0.039 15 -0.061 0.082 -0.021 -0.046 -0.123 16 -0.079 -0.326 0.026 0.004 0.015 17 -0.152 -0.249 0.014 0.083 -0.086 18 0.015 -0.054 0.049 -0.025 0.074 19 0.004 0.058 0.014 -0.043 -0.077 20 0.007 -0.027 0.205 -0.004 -0.008 21 0.019 -0.063 -0.013 0.019 0.047 22 -0.005 0.104 -0.062 0.008 0.018 23 -0.006 -0.016 0.075 0.104 0.062 24 -0.013 0.022 -0.091 0.052 -0.043 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 6 7 8 9 10 ________ ________ ________ ________ ________ 6 1.000 7 0.523 1.000 8 -0.110 -0.005 1.000 9 0.042 0.106 -0.088 1.000 10 -0.205 -0.219 0.016 0.098 1.000 11 0.126 0.049 0.023 -0.144 -0.018 12 -0.064 -0.060 -0.088 0.056 0.150 13 0.588 0.566 -0.146 0.060 -0.223 14 -0.189 -0.017 0.511 -0.017 0.094 15 0.055 0.081 -0.029 -0.054 -0.184 16 0.020 0.002 0.000 0.096 -0.014 17 -0.031 -0.053 0.016 -0.164 -0.027 18 -0.137 -0.125 0.031 -0.018 0.133 19 -0.202 0.049 -0.022 -0.028 0.005 20 0.021 0.013 -0.247 0.056 0.083 21 0.196 -0.045 0.049 0.006 -0.018 22 -0.035 -0.064 -0.033 0.032 -0.022 23 0.030 -0.019 -0.051 0.057 0.078 24 0.026 0.003 0.031 -0.078 -0.100 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 11 12 13 14 15 ________ ________ ________ ________ ________ 11 1.000 12 -0.101 1.000 13 0.029 -0.078 1.000 14 0.066 -0.178 -0.184 1.000 15 0.109 -0.052 0.043 0.041 1.000 16 -0.028 0.042 0.018 0.004 0.087 17 -0.054 0.009 -0.038 -0.059 -0.664 18 0.037 0.073 -0.100 0.053 -0.197 19 -0.001 -0.069 -0.056 0.011 0.029 20 -0.075 0.048 0.069 -0.298 0.049 21 0.052 0.057 0.062 0.022 -0.019 22 -0.130 -0.018 -0.058 -0.033 0.133 23 -0.022 0.143 0.006 -0.025 0.028 24 0.021 -0.144 0.011 -0.009 -0.070 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 16 17 18 19 20 ________ ________ ________ ________ ________ 16 1.000 17 -0.191 1.000 18 0.035 0.148 1.000 19 -0.077 0.056 0.032 1.000 20 -0.024 -0.058 -0.184 0.057 1.000 21 -0.007 -0.028 0.052 -0.843 -0.083 22 0.017 -0.231 -0.629 -0.161 0.077 23 0.141 -0.113 -0.025 -0.108 0.205 24 -0.057 0.183 0.077 -0.008 -0.577 ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES 21 22 23 24 ________ ________ ________ ________ 21 1.000 22 -0.095 1.000 23 -0.048 0.151 1.000 24 0.111 -0.146 -0.523 1.000
a30530bcaadb977d29364138da34696dbddc00a1
449d555969bfd7befe906877abab098c6e63a0e8
/1847/CH2/EX2.67/Ch02Ex67.sce
04546946b29beb21ecca4e28ac38599764933672
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
344
sce
Ch02Ex67.sce
// Scilab Code Ex2.67:: Page-2.50(2009) clc; clear; Dn = 1.8; // Diameter of 15th dark ring, cm Dn_prime = 1.67; // Diameter of 15th dark ring with liquid, cm mu = (Dn/Dn_prime)^2; // Refractive index of the liquid printf("\nThe refractive index of the liquid = %4.2f", mu); // Result // The refractive index of the liquid = 1.16
4156f9cd78a91e58b625a98637965df477a543b5
449d555969bfd7befe906877abab098c6e63a0e8
/1938/CH6/EX6.29/6_29.sce
3a8d4283bfeb59c96188b0504e334be07dd15899
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
653
sce
6_29.sce
clc,clear printf('Example 6.29\n\n') V_L=6.6*10^3 V_ph=V_L/sqrt(3) V_t=V_ph X_d=9.6,X_q=6,R_a=0 //armature resistance and synchronous reactance of direct,quadrature axis VA=3.5*10^6 I_L=VA/(sqrt(3)*V_L) P=2.5*10^6,phi=acos(0.8) I_a=P/(sqrt(3)*V_L*cos(phi)) psi=atan( (V_t*sin(phi)+ I_a*X_q)/(V_t*cos(phi)+ I_a*R_a) ) delta=psi-phi I_d=I_a*sin(psi) I_q=I_a*cos(phi) E_f=V_t*cos(delta)+I_d*X_d+I_q*R_a regulation=100*(E_f-V_t)/V_t P_max=(V_ph^2/2)*((X_d-X_q)/(X_d*X_q))*(sin(2*delta)) printf('percentage voltage regulation is %.2f percent',regulation) printf('\nPower under open circuit is %.1f kW per phase',P_max/1000)
a1c4ef23bd54e103e6b5406999275a80f6cd2291
449d555969bfd7befe906877abab098c6e63a0e8
/1628/CH11/EX11.6/Ex11_6.sce
44caf4e3b8aca52f94b99e1fc130ceeb24d8c5e1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
616
sce
Ex11_6.sce
// Example 11.6 f=150*10^3; // Frequency Bw=75*10^3; // Band width Q=f/Bw; // Q-Factor disp(' Q-Factor is = '+string(Q)); // since Q < 10 there for we need to solve by Equation // 75= f2-f1 & 150= root(f1*f2) // will get Eq ( f1^2+ 75f1- 22500= 0 ) by Eliminating f2 // by factorization we have f1=( 117.1kHz or -192.1kHz ) f1=117.1; f2=75+f1; disp(' The half Power Frequencies are f1= '+string(f1)+' kHz & f2= '+string(f2)+' kHz'); // p 382 11.6
67fafcb003d7a84d9f6c566bef308b39726846fa
449d555969bfd7befe906877abab098c6e63a0e8
/605/CH9/EX9.7/9_7.sce
7b455df66cd7dbd9b6192ed1256bc95f4fe87b4b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
568
sce
9_7.sce
clc clear L = 5; W =400; Wc = 100; Gr=0.01 m=acosh(sqrt(10^(0.1*L)-1)/sqrt(10^(0.1*Gr-1)))/acosh(W/Wc) printf("\nm=%.0f\n",m) m=3 E=log(coth(Gr/17.37)) X=sinh(E/2/m) n=3 gp=1 for p=1:1:n ap=sin((2*p-1)*%pi/2/m) bp=X^2+sin(p*%pi/m)^2 printf("\nap=%.4f\nbp=%.4f\n",ap,bp) end gp=0.62425 printf("\ng0=g4=1") printf("\np=1\tgp=0.62425") for p=2:1:n gp=4*sin((2*(p-1)-1)*%pi/2/m)*sin((2*p-1)*%pi/2/m)/(X^2+sin((p-1)*%pi/m)^2)/gp printf("\np=%.0f\tgp=%.5f",p,gp) end printf("\nL1=L3=%.4e H\nC1=%.4e F",75*0.62425/(2*%pi*10^8),0.9662/(75*2*%pi*10^8))
f63b76b816aa18f466a95c8466592d7733756365
449d555969bfd7befe906877abab098c6e63a0e8
/3862/CH6/EX6.8/Ex6_8.sce
b60127654dd545bf06fc1b86087ea37bc7158db0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
373
sce
Ex6_8.sce
clear // W = 12000.0 //Load N1=2.0 //number of movable pulleys in system 1 N2=2.0 //number of movable puleys in system 2 VR=2*N1+2*N2 //Velocity Ratio L=0.05 //Efficiency loss in each pulley Efficiency=0.78 MA=Efficiency*VR //Mechanical advantage P = W/MA //Effort printf("\n Effort is %0.3f N",P)
34c45e2e376f4789f8dd6c56171c7e7c3c494174
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.2/Unix/scilab-2.2/macros/scicos/TANBLK_f.sci
5f8f2779b763f99329eb5fe987cb26b20300a831
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931111
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
1,064
sci
TANBLK_f.sci
function [x,y,typ]=TANBLK_f(job,arg1,arg2) x=[];y=[];typ=[]; select job case 'plot' then standard_draw(arg1) [graphics,model]=arg1(2:3); [orig,sz,orient,label]=graphics(1:4) // dly=model(8) xstringb(orig(1),orig(2),['tan'],sz(1),sz(2),'fill') case 'getinputs' then [x,y,typ]=standard_inputs(arg1) case 'getoutputs' then [x,y,typ]=standard_outputs(arg1) case 'getorigin' then [x,y]=standard_origin(arg1) case 'set' then x=arg1; graphics=arg1(2);label=graphics(4) model=arg1(3); nin=model(2) [ok,label,nin1]=getvalue('Set tan block parameters',.. ['Block label';'Number of inputs (outputs)'],list('str',1,'vec',1),.. [label;sci2exp(nin)]) if ok then if nin1 > 0 then nin=nin1 [model,graphics,ok]=check_io(model,graphics,nin,nin,0,0) graphics(4)=label model(2)=nin;model(3)=nin; x(2)=graphics;x(3)=model else x_message('Number of inputs must be positive') end end case 'define' then model=list('tanblk',1,1,0,0,[],[],[],[],'c',%f,[%t %f]) x=standard_define([2 2],model) end
04c29effce4f87ca307e9a0254204a92b6402794
b023c1d17c4427bfec3c235afdcf1d96a97a85e0
/common/templates/test.tst
065398216b897dd887c9790704fb238ae79ae5af
[]
no_license
GamescaleMD/BrandManager
a7870930541502ae2d1d898ed9a06600f3060cf2
791b88249d95d8ed02c5d7d3efc73b4f2dba7fbb
refs/heads/master
2021-01-06T20:41:25.367634
2013-05-22T14:00:18
2013-05-22T14:00:18
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
80
tst
test.tst
This is a test var1 There are var2 and var3 var4v a r 5 and this one again var1
7f06384e3e163960a0c10d49207610b9bd1c59d3
449d555969bfd7befe906877abab098c6e63a0e8
/1943/CH10/EX10.13/Ex10_13.sce
68eabc0cfceef1d5a7f74312c812d5da113d9003
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
535
sce
Ex10_13.sce
clc clear //Input data Q=175//Discharge in m^3/s h=18//Head in meter N=150//Speed in rpm oe=82//Overall efficiency in percent Ns1=460//Maximum specific speed Ns2=350//Maximum specific speed d=1000//Density in kg/m^3 //Calculations P=(d*Q*9.81*h*(oe/100)*10^-3)//power in kW P1=((Ns1*h^(5/4))/N)^2//Power in kW n1=P/P1//No.of turbains P2=((Ns2*h^(5/4))/N)^2//Power in kW n2=ceil(P/P2)//No.of turbains //Output printf('The number of turbines in \n (a) Francis turbine are%3.0f \n (b) Kaplan turbine are %i',n1,n2)
8fdda2b8174dc056a82a5f5a5b861941f8102913
2a39d29b2cb27e98632f6810ed3c2a22a56fa8eb
/Materias/LabCalcNum/Rafael/simpson38simples.sci
4748767429e35459fea79c18f2397db1cf94fe7f
[]
no_license
rafael747/my-stuff
74358384bc1a5b381d1951dfaef87efdf4cb53c2
8614aefdc3ca9afdc1534557f73719af8494f7fa
refs/heads/master
2021-01-17T12:47:48.206860
2020-06-04T15:10:20
2020-06-04T15:10:20
57,989,835
2
0
null
null
null
null
UTF-8
Scilab
false
false
201
sci
simpson38simples.sci
function [I] = simpson38simples(func, a, b) h = (b-a)/3 x=a soma=func(a)+func(b) for i=1:2 x=x+h soma=soma+3*func(x) end I=(3*h/8)*soma endfunction
e3beb5931f8abe22c9aa59a2f940a87b7e86a589
d4433dc5a6e90f6a26a4c5d9dee686eade240b25
/MOUSE.TST
efc4ede6051ac2d2d3cff2942d5e0806b107615f
[]
no_license
qb40/all
6e2149ef3c6151717e468ca236840de622cf7d2a
e168acb64fbde09277b04515574507dcbe35161c
refs/heads/master
2022-02-05T17:58:39.207269
2014-01-19T13:28:41
2014-01-19T13:28:41
106,962,623
5
0
null
2017-10-14T21:02:04
2017-10-14T21:02:03
null
UTF-8
Scilab
false
false
3,229
tst
MOUSE.TST
'successful test DECLARE SUB mouse.loadprog () DECLARE FUNCTION mouse.init% () DECLARE SUB mouse.show () DECLARE SUB mouse.hide () DECLARE SUB mouse.setrange (x1%, y1%, x2%, y2%) DECLARE SUB mouse.put (x%, y%) DECLARE SUB mouse.status () DECLARE SUB mouse.relativestatus () TYPE mouse left AS INTEGER right AS INTEGER xpos AS LONG ypos AS LONG END TYPE DIM Jerry AS mouse mouse$ = "" 'main 'set screen mode SCREEN 13 'load ASSEMBLY PROGRAM mouse.loadprog 'find if mouse is present a1% = mouse.init% IF (a1% <> 1) THEN PRINT "Mouse not installed." SYSTEM END IF 'show mouse mouse.show 'set mouse range(defect) 'mouse.setrange 0, 0, 319, 199 'put mouse mouse.put 0, 0 'loop clr% = 0 c% = 0 'DO 'mouse.status 'PRINT Jerry.left; Jerry.right; Jerry.xpos; Jerry.ypos 'LOOP DO mouse.status IF (Jerry.left = 1) THEN LINE (0, 0)-(Jerry.xpos, Jerry.ypos), clr% clr% = (clr% + 1) MOD 256 END IF IF (Jerry.right = 1) THEN LINE (319, 0)-(Jerry.xpos, Jerry.ypos), clr% clr% = (clr% + 1) MOD 256 END IF IF (Jerry.left = 1 AND Jerry.right = 1) THEN CLS PALETTE 7, c% * 65536 + c% * 256 + c% c% = (c% + 1) MOD 64 LOOP SUB mouse.hide SHARED mouse$ DEF SEG = VARSEG(mouse$) mem1& = SADD(mouse$) + 22 CALL absolute(mem1&) DEF SEG END SUB FUNCTION mouse.init% SHARED mouse$ DEF SEG = VARSEG(mouse$) mem1& = SADD(mouse$) CALL absolute(mem1&) DEF SEG = &H100 IF (PEEK(0) = 255 AND PEEK(1) = 255) THEN a1% = 1 DEF SEG mouse.init% = a1% END FUNCTION SUB mouse.loadprog SHARED mouse$ CLS 'Load ASM Program to mouse$ OPEN "B", #1, "mouse.dll" FOR i = 1 TO LOF(1) SEEK #1, i k$ = INPUT$(1, #1) mouse$ = mouse$ + k$ NEXT CLOSE #1 END SUB SUB mouse.put (x%, y%) SHARED mouse$ DEF SEG = &H101 POKE 0, x% MOD 256 POKE 1, x% \ 256 POKE 2, y% MOD 256 POKE 3, y% \ 256 DEF SEG = VARSEG(mouse$) mem1& = SADD(mouse$) + 66 CALL absolute(mem1&) DEF SEG END SUB SUB mouse.relativestatus SHARED Jerry AS mouse SHARED mouse$ DEF SEG = VARSEG(mouse$) mem1& = SADD(mouse$) + 117 CALL absolute(mem1&) DEF SEG = &H100 a1% = PEEK(0) Jerry.left = a1% AND 1 Jerry.right = (a1% AND 2) \ 2 a1& = PEEK(2) a2& = PEEK(3) Jerry.xpos = a2& * 256 + a1& IF (Jerry.xpos AND &H8000 = &H8000) THEN Jerry.xpos = -1 * (NOT (Jerry.xpos) + 1) Jerry.xpos = Jerry.xpos \ 2 a1& = PEEK(4) a2& = PEEK(5) Jerry.ypos = a2& * 256 + a1& IF (Jerry.ypos AND &H8000 = &H8000) THEN Jerry.ypos = -1 * (NOT (Jerry.ypos) + 1) DEF SEG END SUB SUB mouse.setrange (x1%, y1%, x2%, y2%) SHARED mouse$ DEF SEG = &H101 POKE 1, 0'x1% MOD 256 POKE 0, 0' x1% \ 256 POKE 3, 200'x2% MOD 256 POKE 2, 0'x2% \ 256 POKE 5, 0'y1% MOD 256 POKE 4, 0'y1% \ 256 POKE 7, 100'y2% MOD 256 POKE 6, 0'y2% \ 256 DEF SEG = VARSEG(mouse$) mem1& = SADD(mouse$) + 28 CALL absolute(mem1&) DEF SEG END SUB SUB mouse.show SHARED mouse$ DEF SEG = VARSEG(mouse$) mem1& = SADD(mouse$) + 16 CALL absolute(mem1&) DEF SEG END SUB SUB mouse.status SHARED Jerry AS mouse SHARED mouse$ DEF SEG = VARSEG(mouse$) mem1& = SADD(mouse$) + 89 CALL absolute(mem1&) DEF SEG = &H100 a1% = PEEK(0) Jerry.left = a1% AND 1 Jerry.right = (a1% AND 2) \ 2 a1& = PEEK(2) a2& = PEEK(3) Jerry.xpos = (a2& * 256 + a1&) \ 2 a1& = PEEK(4) a2& = PEEK(5) Jerry.ypos = a2& * 256 + a1& DEF SEG END SUB
1310da07a35c33310af5e14c4d729778de09a0eb
5565424cd712fe856334cee55c5f86c2fa58aa74
/bissecao.sce
7a70171ffd99a179362d72d987db1fd5ef5f1a92
[]
no_license
DericsonPablo/CalculoNumerico
2402d6408704267f889eb999d49a0acbfa27500a
8b2ea2bc9a98257c87046d80162a9dc2c4adf22a
refs/heads/master
2020-07-31T05:16:48.105210
2019-09-24T02:46:12
2019-09-24T02:46:12
210,496,853
1
0
null
null
null
null
UTF-8
Scilab
false
false
471
sce
bissecao.sce
function [y] = bissec(a,b,e) Fc = (a + b)/ 2; // poderia ser qualquer valor acima de e (epsolon) while(abs(Fc)>e) Fa = avaliaf(a); Fb = avaliaf(b); c = (a + b)/ 2; Fc = avaliaf(c); if (Fc==0) then break; end if (Fa*Fc)<0 then b = c; else a = c; end end y = c; endfunction function [z] = avaliaf(x) z = x^2 - 4; endfunction
cddb556531334e34813b7d404b92db50565a62fe
449d555969bfd7befe906877abab098c6e63a0e8
/1442/CH8/EX8.2/8_2.sce
ad3b5ca428203ccd7aa49ae5046d6445a87dba9f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
384
sce
8_2.sce
clc //initialisation of variables Q= 666.78 //kJ T= 0 //C Th= 20 //C //CALCULATIONS Ssys= Q/(273.15+T) Qh= Q*((273.15+Th)/(273.15+T)) Senvir= -Qh/(273.15+Th) Stotal= Ssys+Senvir //RESULTS printf (' change in entropy in sysytem = %.4f kJ/K',Ssys) printf (' \n change in entropy in environment = %.4f kJ/K',Senvir) printf (' \n total change in entropy = %.f kJ/K',Stotal)
864d8b5a2629d826d182de069332659bc8655ecd
449d555969bfd7befe906877abab098c6e63a0e8
/2444/CH1/EX1.8/ex1_8.sce
e9ac7f5bb23d5cbcaaeaa46fb126e6af71d36413
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
413
sce
ex1_8.sce
// Exa 1.8 clc; clear; close; format('v',8) // Given data rho = 0.5;// in ohm-m J = 100;// in A/m^2 miu_e = 0.4;// in m^2/V-s e = 1.6*10^-19;// in C sigma = 1/rho; E = J/sigma; v = miu_e*E;// in m/s disp(v,"The drift velocity in m/s is"); D = 10;// distance of travel in µm D = D * 10^-6;// in m // Time taken by electron t= D/v;// time taken in second disp(t,"The time taken in second is");
f9fa0a14d0710572cd1c99a9c9e068e2bffc8633
717ddeb7e700373742c617a95e25a2376565112c
/1340/CH6/EX6.1/6_1.sce
a430983d7f037104bb85a628418c03b885082586
[]
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
740
sce
6_1.sce
//routh hurwitz criterion for system transfer function given by: // g(s)=1000/(s^3+10*s^2+31*s+1030) s = poly(0,'s'); po = syslin('c',1000/(s^3+10*s^2+31*s+1030));//creates LTI system m = denom(po);//extracts the denominator of the transfer function co = coeff(m);//extracts the coefficients of the denominator routh=[co([4,2]); co([3,1])] ; D = det(routh)/routh(2,1); routh =[routh ;-D 0]; t=routh (2:3 ,1:2) ; M = det(t)/t(2,1); routh =[routh ;-M 0]; c=0; disp(routh); n = length(co); for i =1:n if(routh(i,1)<0) then c= c+1; end end if (c>=1) then printf("system is unstable because there is sign change in the 1st row"); else printf("system is stable"); end
b3cf792cc9cea5cbb182ec3d64d694ffcbd2d626
449d555969bfd7befe906877abab098c6e63a0e8
/3864/CH2/EX2.45/Ex2_45.sce
bcb78b03e815cd19be05210bfb5fc5fa7768d396
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,481
sce
Ex2_45.sce
clear // // //Initilization of Variables //Bar-A d1=30 //mm //Diameter of bar1 L=600 //mm //length of bar1 //Bar-B d2=30 //mm //Diameter of bar2 d3=20 //mm //Diameter of bar2 L2=600 //mm //length of bar2 //Calculations //Area of bar-A A1=%pi*4**-1*d1**2 //Area of bar-B A2=%pi*4**-1*d2**2 A3=%pi*4**-1*d3**2 //let SE be the Strain Energy //Strain Energy stored in Bar-A //SE=p**2*(2*E)**-1*V //After substituting values and simolifying further we get //SE=P**2*E**-1*0.4244 //Strain Energy stored in Bar-B //SE2=p1**2*V1*(2*E)**-1+p2**2*V2*(2*E)**-1 //After substituting values and simolifying further we get //SE2=0.6897*P**2*E**-1 //Let X be the ratio of SE in Bar-B and SE in Bar-A X=0.6897*0.4244**-1 //Part-2 //When Max stress is produced is same:Let p be the max stress produced //Stress in bar A is p throughout //In bar B:stress in 20mm dia.portion=p2=p //Stress in 30 mm dia.portion //p1=P*A2*A3**-1 //After substituting values and simolifying further we get //p1=4*9**-1*p //Strain Energy in bar A //SE_1=p**2*(2*E)**-1*A1*L1 //After substituting values and simolifying further we get //SE_1=67500*p**2*%pi*E**-1 //Strain Energy in bar B //SE_2=p1**2*V1*(2*E)**-1+p2**2*V2*(2*E)**-1 //After substituting values and simolifying further we get //SE_2=21666.67*%pi*p**2*E**-1 //Let Y be the Ratio of SE in bar B and SE in bar A Y=21666.67*67500**-1 //result printf("\n Gradually applied Load is %0.2f ",X) printf("\n Gradually applied Load is %0.2f ",Y)
ea9d38ecb568387a1548139fc52d7a4e6e1d38d4
a550430672dfb5984bd8561b894897323028b7f5
/tests/results/adj01.tst
7c077e25beab5fcf56d5941fbc60fe5850c64043
[]
no_license
carlosmata/LabelPropagation
c91f68489a941e6f8cfb15de478d2fe28eadbcad
2f169cc4ece49a0d0f868fee15e5eefe02bbc6df
refs/heads/master
2020-12-18T17:46:23.501020
2020-05-09T06:13:16
2020-05-09T06:13:16
235,474,033
0
0
null
null
null
null
UTF-8
Scilab
false
false
167
tst
adj01.tst
argc:7 Dataset: ../datasets/converted/4adjnoun.net Nodes Edges Com Mod NMI Time seq async 112 850 1 0.016205 -1 0.000211478 par async 112 850 1 0.016205 -1 0.085943
0e145aa794a19aa4fe20e585bcb6e5307b21d625
9cb37875b74a713c93c09fa50ccc70ac0f71ecdb
/CostHriFunction/PR2/SCENARIOS/Pr2BigEmptyStraightLine.sce
bef21e07054fad0676c93f1759031d2f5be2de7c
[]
no_license
jmainpri/move3d-assets
a5b621daaedaaf8784fed0da1e80d029c83f3983
939db49d17a14e052bb58324b70e6112803d3105
refs/heads/master
2021-01-16T17:48:56.669119
2016-02-16T14:04:09
2016-02-16T14:04:09
20,237,987
1
0
null
null
null
null
UTF-8
Scilab
false
false
3,532
sce
Pr2BigEmptyStraightLine.sce
#************************************************************ # Scenario of Ikea # # date : Thu Dec 15 14:49:39 2011 #************************************************************ p3d_sel_desc_name P3D_ENV Ikea p3d_sel_desc_name P3D_ROBOT HERAKLES_HUMAN1 p3d_set_robot_steering_method Linear p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 2.278000 -1.352000 1.004000 0.000000 0.000000 -75.384000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 75.384000 0.000000 0.000000 0.000000 0.000000 0.000000 -16.650000 0.000000 0.000000 -71.316000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_sel_desc_name P3D_ROBOT PR2_ROBOT p3d_set_robot_steering_method Multi-Localpath p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -2.554000 -5.324000 0.000000 -0.000000 0.000000 22.915454 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 5.758000 1.428000 0.000000 0.000000 0.000000 -21.204000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 p3d_constraint p3d_lin_rel_dofs 1 15 1 14 2 1.000000 0.000000 0 p3d_constraint p3d_lin_rel_dofs 1 25 1 24 2 1.000000 0.000000 0 p3d_constraint p3d_pr2_arm_ik 7 6 7 9 10 11 12 13 1 32 0 1 8 p3d_set_cntrt_Tatt 2 1.000000 0.000000 0.000000 -0.180000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 p3d_set_cntrt_Tatt2 2 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 1.000000 0.000000 0.000000 -0.180000 p3d_constraint p3d_pr2_arm_ik 7 16 17 19 20 21 22 23 1 33 0 1 18 p3d_set_cntrt_Tatt 3 1.000000 0.000000 0.000000 -0.180000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 p3d_set_cntrt_Tatt2 3 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 1.000000 0.000000 0.000000 -0.180000 p3d_set_object_base_and_arm_constraints 32 1 0 2 2 3 p3d_set_arm_data 2 3 32 p3d_set_arm_data 3 3 33 p3d_set_camera_pos 0.226013 -0.702874 1.004938 14.112581 5.677500 0.719375 0.000000 0.000000 1.000000 0.000000
09576f4291295614adb3d535049240a39e1e3872
449d555969bfd7befe906877abab098c6e63a0e8
/2123/CH5/EX5.20/Exa_5_20.sce
a48f18551bf9ec3d8b871edc5cebfec88aa58278
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
233
sce
Exa_5_20.sce
//Example No. 5.20 clc; clear; close; format('v',7); //Given Data : V=240;//V alfa=100;//degree Ra=6//ohm Ia=1.8;//A Vm=V*sqrt(2);//V Vdc=Vm/%pi*(1+cosd(alfa));//Volt Eb=Vdc-Ia*Ra;//V disp(Eb,"Back emf in volt : ");
ef038904ce5064fa2647893286c40eecf54fbb40
449d555969bfd7befe906877abab098c6e63a0e8
/2840/CH7/EX7.7/ex7_7.sce
d24987ce8d7c33952c9e073240c3348cb5de24db
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
598
sce
ex7_7.sce
clc; clear all; n1 = 1.50; // Refreactive index of forst medium delta = 0.003; // Index difference lambda = 1.6*1e-6; // Operating wavelength of fober in meter x=2*delta*n1*n1 n2 = sqrt(n1^2-x);//refractive index of cladding disp(n2,'refractive index of cladding'); rc = (3*n1^2*lambda)/(4*%pi*sqrt(n1^2 - n2^2)^3);//The critical radius of curvature for which bending losses occur disp('meter',rc,'The critical radius of curvature for which bending losses occur is '); //there is variation in answer than book .. book's answer is wright but in scilab it is not coming..(scilab mistake)
8a3e76a17480d4b1ab5b0061bf05540a53796555
449d555969bfd7befe906877abab098c6e63a0e8
/1919/CH3/EX3.6/Ex3_6.sce
8af4f72b19d293a7b91caa4956497e50d7814d74
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
225
sce
Ex3_6.sce
// Theory and Problems of Thermodynamics // Chapter 3 // Thermodynamic Properties of Fluids // Example 6 clear ;clc; //Given data //the given problem is theoritical and does not involve any numerical computation
f363263bd43b63249b6df5a4b3a35180ce5eb2de
449d555969bfd7befe906877abab098c6e63a0e8
/1092/CH14/EX14.33/Example14_33.sce
dad16e2390c2875076824d1bff80b312a01f36e4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,169
sce
Example14_33.sce
// Electric Machinery and Transformers // Irving L kosow // Prentice Hall of India // 2nd editiom // Chapter 14: TRANSFORMERS // Example 14-33 clear; clc; close; // Clear the work space and console. // Given data S = 20 ; // kVA rating of transformer N_1 = 230 ; // Number of primary turns N_2 = 20 ; // Number of secondary turns V_1 = 230 ; // Primary voltage in volt V_2 = 20 ; // Secondary voltage in volt // from Fig.14-31a // HV side SC test data V_sc = 4.5 ; // short circuit voltage in volt I_sc = 87 ; // short circuit current in A P_sc = 250 ; // Power measured in W // Calculations // case a V_h = V_sc ;// short circuit voltage in volt on HV side I_h = I_sc ;// short circuit current in A on HV side Z_eh = V_h /I_h ; // Equivalent immpedance reffered to the high side when coils are series connected // case b Z_el = Z_eh * (N_2/N_1)^2 ; //Equivalent immpedance reffered to the low side // when coils are series connected // case c I_2_rated = (S*1000)/V_2 ; // Rated secondary current when coils are series connected // case d I_2_sc = S / Z_el ; // Secondary current when the coils in Fig.14-31a are // short-circuited with rated voltage applied to the HV side percent_overload = (I_2_sc/I_2_rated)*100 ; // percent overload // Display the results disp("Example 14-33 Solution : "); printf(" \n Slight variations in answers are due to non-approximated calculations"); printf(" \n in scilab\n\n"); printf(" \n a: Equivalent immpedance reffered to the high side when coils are series connected :"); printf(" \n Z_eh = %f ohm \n ",Z_eh); printf(" \n b: Equivalent immpedance reffered to the low side when coils are series connected :"); printf(" \n Z_el = %f ohm \n ",Z_el); printf(" \n c: Rated secondary current when coils are series connected :"); printf(" \n I_2(rated) = %d A \n",I_2_rated); printf(" \n d: Secondary current when the coils in Fig.14-31a are short-circuited :"); printf(" \n with rated voltage applied to the HV side :"); printf(" \n I_2(sc) = %d A \n",I_2_sc); printf(" \n The percent overload is = %d percent",percent_overload);
4da56ad8f368742cae7f7f4266cddae14e8897a2
1573c4954e822b3538692bce853eb35e55f1bb3b
/DSP Functions/zpklp2bpc/test_9.sce
4a39c5d2984d24fb6ec3522fa4996e011d1f445b
[]
no_license
shreniknambiar/FOSSEE-DSP-Toolbox
1f498499c1bb18b626b77ff037905e51eee9b601
aec8e1cea8d49e75686743bb5b7d814d3ca38801
refs/heads/master
2020-12-10T03:28:37.484363
2017-06-27T17:47:15
2017-06-27T17:47:15
95,582,974
1
0
null
null
null
null
UTF-8
Scilab
false
false
607
sce
test_9.sce
// Test #9 : For valid input #1 exec('./zpklp2bpc.sci',-1); [z,p,k,n,d]=zpklp2bpc([2.4*%i,1.8*%i],2*%i,1.2*%i,0.3,[0.2,0.4]); disp(d); disp(n); disp(k); disp(p); disp(z); // //Scilab Output //d=1. -0.3090170 - 0.4253254i //n=-0.5257311 0.5877853 + 0.8090170i //k=2.5951024 - 0.6426794i //p=0.6350925 + 0.2983767i //z=0.5788124 + 0.3072064i // 0.6722714 + 0.2951302i // //Matlab Output //z=0.5788 + 0.3072i // 0.6723 + 0.2951i //p= 0.6351 + 0.2984i //k= 2.5951 - 0.6427i //n= -0.5257 + 0.0000i 0.5878 + 0.8090i //d= 1.0000 + 0.0000i -0.3090 - 0.4253i
b18dfc5f4bb2ca460bf80c3eff679353c30b35bf
449d555969bfd7befe906877abab098c6e63a0e8
/2015/CH7/EX7.5/7_5.sce
bb634f317a512b880f198bdd4a421c67002357c6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
610
sce
7_5.sce
clc //initialisation of variables p=1.01325 //pressure in bar pv=0.020 //pressure in bar at 21 degrees temp ws=0.0154 //kg/kg of da w=0.0123 //kg/kg of da vs=0.86 //under 21 degrees temp m*m*m/kg w1=0.0074 //CALCULATIONS pa=p-pv sr=w/ws rho=1/vs avc=0.0163-w1 //RESULTS printf('partial pressure of vapour and dry air are %2fbar and %2fbar',pv,pa) disp('dew point temp is 17.4 degrees') disp('specific humidity is 0.0123 kg/kg of da') printf('\nsaturation ratio is %2f',sr) printf('\ndensity of misture is %2fkg/m*m*m',rho) printf('\namount of water vapour condensed is %2fkg/kg of da',avc)
79c203bbc21ca5ae58a7d45843da88affecfc25d
449d555969bfd7befe906877abab098c6e63a0e8
/2744/CH9/EX9.6/Ex9_6.sce
d56986a36d7832eb077578ee56b249767256d2f3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
612
sce
Ex9_6.sce
clear; clc; b1 = 10;// inches d1 = 7/2;// inches r = 9/2;// inches b2 = 12;// inches d2 = 1/2;// inches l = 20;// feet n = 4;// factor of safety A_s = 7.19;// in^2 I_xx1 = 109.42;// in^4 I_yy1 = 7.42;// in^4 d = 0.97;// inches f_c = 21;// lb/in^2 a = 1/7500; A = 2*A_s + 4*b2*d2;// in^2 I_xx = 2*I_xx1 + 2*((1/12)*b2*(2*d2)^3 + b2*(r+2*d2)^2);// in^4 I_yy = 2*(1/12)*(2*d2)*b2^3 + 2*(I_yy1 + A_s*(0.5*r+d)^2);// in^4 k = sqrt(min(I_xx,I_yy)/A);// minimum radius of gyration P = f_c*A/(1+ a*((l*12)^2/k^2));// tons P_safe = P/n;// tons printf('The safe axial load = %d tons',round(P_safe));
7365e831a7e0d29089fca0095ed517feac79d34a
449d555969bfd7befe906877abab098c6e63a0e8
/572/CH5/EX5.3/c5_3.sce
c9bf4c61ef976caadb5a5004f7d0cdb49446a8d8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
568
sce
c5_3.sce
//(5.3) A dwelling requires 5 * 10^5 kJ per day to maintain its temperature at 22C when the outside temperature is 10C. (a) If an electric heat pump is used to supply this energy, determine the minimum theoretical work input for one day of operation, in kJ. //solution //variable initialization Tc = 283 //in kelvin TH = 295 //in kelvin QH = 5*10^5 //in kj per day Wcyclemin = (1-Tc/TH)*QH printf('minimum theoretical work input for one day of operation in kj is:\n\tWmin = %e',Wcyclemin)
7c907ea119208b6bff3148fc6d1644d434e4554a
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/xgetfile.man.tst
a565dec2480a32827f6700e1430d8725f10aaff4
[ "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
102
tst
xgetfile.man.tst
clear;lines(0); xgetfile() xgetfile('*.sci','SCI/macros/xdess') xgetfile(title='Choose a file name ')
7c4e428afe33f3ea48fafed907dceb4825852523
449d555969bfd7befe906877abab098c6e63a0e8
/572/CH12/EX12.7/c12_7.sce
a3beb9d4bba0f3eccfca280e55c8746d443c64fb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,354
sce
c12_7.sce
//(12.7) A 1 kg sample of moist air initially at 21C, 1 bar, and 70% relative humidity is cooled to 5C while keeping the pressure constant. Determine (a) the initial humidity ratio, (b) the dew point temperature, in C, and (c) the amount of water vapor that condenses, in kg. //solution //variable initialization m =1 //mass of sample in kg T1 = 21 //initial temperature in degree celcius psi1 = .7 //initial relative humidity T2 = 5 //final temperature in degree celcius //part(a) //from table A-2 pg = .02487 //in bar pv1 = psi1*pg //partial pressure of water vapor in bar omega1 = .622*(.2542)/(14.7-.2542) printf('the initial humidity ratio is: %f',omega1) //part(b) //The dew point temperature is the saturation temperature corresponding to the partial pressure, pv1. Interpolation in Table A-2 gives T = 15.3 //the dew point temperature in degree celcius printf('\n\nthe dew point temperature in degree celcius is: %f',T) //part(c) mv1 = 1/[(1/omega1)+1] //initial amount of water vapor in the sample in kg ma = m-mv1 //mass of dry air present in kg //the partial pressure of the water vapor remaining in the system at the final state is the saturation pressure corresponding to 5C: pg = .00872 //in bar omega2 = .622*(pg)/(1.01325-pg) //humidity ratio after cooling mv2 = omega2*ma //The mass of the water vapor present at the final state mw = mv1-mv2 printf('\n\n the amount of water vapor that condenses, in kg. is: %f',mw)
16439677eb38a180ee2d38a6552d809ba8b8e468
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set7/s_Electronics_Engineering_P._Raja_2150.zip/Electronics_Engineering_P._Raja_2150/CH3/EX3.1/ex3_1.sce
da296eab46268a87a7f5af9abeb725d3abdcae2b
[]
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
307
sce
ex3_1.sce
errcatch(-1,"stop");mode(2);// Exa 3.1 ; ; // given data V1 = 18;// in V V2 = 10;// in V R = 270;// in ohm I_S = (V1-V2)/R;// in A V_L = 10;// in V R_L = 1;// in K ohm R_L = R_L*1000;// in ohm I_L = V_L/R_L;// in A I_Z = I_S-I_L;// in A disp(I_Z*10^3,"The zener current in mA is"); exit();
00749bec4feb3e056e8b81102f653c658454e9ff
449d555969bfd7befe906877abab098c6e63a0e8
/98/CH13/EX13.21/example13_21.sce
043e586df17f3bdb4629469759d937641cff7a22
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
386
sce
example13_21.sce
//Chapter 13 //Example 13_21 //Page 332 clear;clc; l=500; v=240; r=0.001; x=50; printf("(i) Point of minimum potential = %d A \n\n", x); tc=160+200; Ia=100+x; Ib=360-150; vd=v-150*(100*r)-x*(150*r); printf("(ii)Total current = %d A \n", tc); printf("Current supplied by A = %d A \n", Ia); printf("Current supplied by B = %d A \n", Ib); printf("Minimum potential = %.2f V \n", vd);
11d9e43aa57fa7ab0ba13f53b8069dbf0797f607
449d555969bfd7befe906877abab098c6e63a0e8
/3446/CH3/EX3.4/Ex3_4.sce
a7b3787ddcef67fbe035ec38c3d8668d4ca340f1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
315
sce
Ex3_4.sce
//Exa 3.4 //To determine distance between transmitter and receiver. clc; clear all; shadow=10; //in dB Lp=150; //in dB //solution disp(" Using equation given in Problem i.e Lp=133.2+40*log(d) we get,"); d=10^((Lp-10-133.2)/40); printf(" Separation between transmitter and receiver as %.2f km',d);
133ac8e79adca0a556356ddc4ab5200a13036183
449d555969bfd7befe906877abab098c6e63a0e8
/2090/CH9/EX9.7/Chapter9_example7.sce
a8eba59a2ecf49258cc37e973fdd26691dba6553
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
623
sce
Chapter9_example7.sce
clc clear //Input data h=4000;//The altitude of the airplane engine carburettor in m A=14.7;//The air fuel ratio at sea level ts=22;//The temperature at sea level in degree centigrade R=287;//Real gas constant in J/kgK //Calculations ta=ts-(0.0065*h);//The temperature at the altitude in degree centigrade p=1.013/10^0.2083;//The pressure at the altitude in bar da=(p*10^5)/(R*(ta+273));//The density at altitude in kg/m^3 ds=(1.013*10^5)/(R*(ts+273));//The density at sea level in kg/m^3 Aa=A*(da/ds)^(1/2);//The air fuel ratio at altitude //Output printf('The air fuel ratio at altitude = %3.2f ',Aa)
fde59b4acacc0ca193233689656afc6da1882983
449d555969bfd7befe906877abab098c6e63a0e8
/98/CH13/EX13.22/example13_22.sce
aaf7db6c4146e64605423fbf22d9333a462f20fb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
608
sce
example13_22.sce
//Chapter 13 //Example 13_22 //Page 334 clear;clc; l=300; va=240; lab=150; ib=120; lbc=50; ic=80; lca=100; r=0.03; rd=2*r; rab=rd*lab/100; rbc=rd*lbc/100; rca=rd*lca/100; Ia=86.67; Iab=Ia; Ibc=Ia-ib; Ica=Ia-(ib+ic); Vb=va-Iab*rab; Vc=Vb+Ibc*rbc; printf("Resistance per 100m = %.2f ohms \n", rd); printf("Rab = %.2f ohms \n", rab); printf("Rbc = %.2f ohms \n", rbc); printf("Rca = %.2f ohms \n\n", rca); printf("(i) Ia = %.2f A \n", Ia); printf("Iab = %.2f \n", Iab); printf("Ibc = %.2f \n", Ibc); printf("Ica = %.2f \n\n", Ica); printf("(ii) Vb = %.2f V \n", Vb); printf(" Vc = %.2f V \n", Vc)
6cb7526c036f6abe82ab7643fe4122292aa83420
449d555969bfd7befe906877abab098c6e63a0e8
/331/CH6/EX6.9/Example_6_9.sce
0c708db7a9996cc99fcb27a6bb5bee9fe4ee9ca3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,725
sce
Example_6_9.sce
//Caption: Normal Distribution //Example6.9 //Page185 clear; clc; //Example6.9(a):Probability that the monthly income < Rs.11,000 X = 11000; Mean = 10000; Std = 2000; n = 200; //sample number of respondents [P,Q]=cdfnor("PQ",X,Mean,Std)//Cumulative normal distribution disp(P,'The probability that the monthly income is < Rs.11,000 is =') disp(n*P,'The number of respondents having income is less than Rs.11,000 =') //Example6.9(b): Probability that the monthly income > Rs.12,000 X = 12000; [P,Q]=cdfnor("PQ",X,Mean,Std)//Cumulative normal distribution disp(Q,'The probability that the monthly income is > Rs12,000 is =') disp(n*Q,'The number of respondents having income is greater than Rs.12,000 =') //Example6.9(c): Probability that the monthly income is in between Rs.7,000 and //Rs.11,200 X1 = 11200; X2 = 7000; [P1,Q1]=cdfnor("PQ",X1,Mean,Std); [P2,Q2]=cdfnor("PQ",X2,Mean,Std); disp(P1-P2,'The probability that the monthly income in between Rs.7,000 & Rs.11,200 is ='); disp(n*(P1-P2),'The number of respondents having income in between Rs.7,000 & Rs.11,200 is =') //Result //The probability that the monthly income is < Rs.11,000 is = // // 0.6914625 // // The number of respondents having income is less than Rs.11,000 = // // 138.29249 // // The probability that the monthly income is > Rs12,000 is = // // 0.1586553 // // The number of respondents having income is greater than Rs.12,000 = // // 31.731051 // // The probability that the monthly income in between Rs.7,000 & Rs.11,200 is = // // 0.6589397 // // The number of respondents having income in between Rs.7,000 & Rs.11,200 is = // // 131.78794
20b4cfddc39b200452e2408056a16fed932a8374
61129043aed87983b640a33b1c260316043fa570
/tests/test_ui_callbacks.tst
946de2802c01370139ee3a79d264e492329755b5
[]
no_license
dgerod/gfx4scilab
7643dbb42fcbea772af12017dccf484544da6f79
4aafc59f241a9383de65e4fb25eefef80660bf64
refs/heads/master
2021-01-19T03:35:08.368764
2017-04-08T06:05:33
2017-04-08T06:05:33
61,438,380
0
0
null
null
null
null
UTF-8
Scilab
false
false
175
tst
test_ui_callbacks.tst
expected_str = "[Handles, AppData] = dummyCallback(Handles, AppData)"; callback_str = ui_prepareAppCallback("dummyCallback"); assert_checktrue(callback_str == expected_str);
cf86bb180f2f661d167bb443134e22776ecce1b9
449d555969bfd7befe906877abab098c6e63a0e8
/162/CH4/EX4.3/example43.sce
7d8e89252de6811cccecdad8d0c259804e49535c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
112
sce
example43.sce
//Example 4.3 //Laplace transform of f(t)=3-2%e^(-4t) clc; syms t; f=3-2*%e^(-4*t); F=laplace(f); disp(F);
e05641cb507808e10e9093b931c21db443d9461e
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.4/macros/elem/isinf.sci
f3ab84f98eb8efe34244409c30666bcf0397009b
[ "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
87
sci
isinf.sci
function r=isinf(x) // Copyright INRIA if x==[] then r=[] else r=abs(x)==%inf end
bc19e31cd38dc6d818624f3aa01adeadafe6fcf0
449d555969bfd7befe906877abab098c6e63a0e8
/3392/CH14/EX14.3/Ex14_3.sce
b50d91813eafae335d3276eb0fecc3c6c8e634a5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
398
sce
Ex14_3.sce
clc // initialization of variables clear //part(a) H=200 //mm h=100 //mm rho=10 //mm Sigma_u=250 //MPa P=1.5 //kN L=1.4 //m b=40 //mm P=P*10^3 L=L*10^3 Hr=H/h rh=rho/h S_cc=1.77 c=h/2 I=b*h^3/12 S_max=S_cc*P*L*c/I printf('part (a)') printf('\n Flexural design stress = %.1f MPa',S_max) //part (b) SF=Sigma_u*I/(S_cc*P*L*c) printf('\n part (b)') printf('\n SF =%.2f ',SF)
f1a3fae9ce50b67f285ba2450a6d21d414bc4857
449d555969bfd7befe906877abab098c6e63a0e8
/3836/CH11/EX11.6/Ex11_6.sce
eb20db0b80783c1ea8bc7d774bbe07eb52fa374f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
417
sce
Ex11_6.sce
clear //Initialisation fsd1=50 //full scale deflection of voltmeter in Volts fsd2=1*10**-3 //full scale deflection of moving coil meter in Ampere Rm=25 //resistance of moving coil meter in Ohms //Calculation Rsm=fsd1*fsd2**-1 Rse=Rsm-Rm //Result printf("\n Rse = %.3f KOhm\n",Rse*10**-3) printf("\n Therefore, Resistor ~ %d KOhm\n",round(Rse*10**-3))
0504717a0a0f9b1f516f4a4a5ea31e51f841ae8d
449d555969bfd7befe906877abab098c6e63a0e8
/1943/CH7/EX7.9/Ex7_9.sce
a0f05fba1cf8c0f8a60291db1b5553b01a9cd3ae
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,084
sce
Ex7_9.sce
clc clear //Input data V1=1000//Speed in m/s Vb=400//Peripheral velocity in m/s a=20//Nozzle angle in degree m=0.75//Mass flow in kg/s f=80//Percentage reduction of relative velocity //Calculations b1=atand((V1*sind(a))/((V1*cosd(a))-Vb))//Blade angle in degree V=342//Velocity from E7.9 in m/s Vr1=V/sind(b1)//Velocity in m/s dVw=(2*Vr1*cosd(b1))//Velocity in m/s Pt=(m*dVw)//Tangential thrust in N WD=(Pt*Vb)/1000//Diagram power in kW nD=(WD/(0.5*m*V1^2*10^-3))*100//Diagram efficiency in percent Pa=0//Axial thrust in N Vr2=(f/100)*Vr1//Velocity in m/s Pa2=m*sind(b1)*(Vr1-Vr2)//Axial thrust in N WD2=(m*(Vr1+Vr2)*cosd(b1)*Vb)/1000//Diagram power in kW nD2=(WD2/(0.5*m*V1^2*10^-3))*100//Diagram efficiency in percent //Output printf('Blade Angle is %3.2f degrees \n\n Neglecting the friction effects \n Tangential force is %3.2f N \n Axial thrust is %i N \n Diagram efficiency is %3.1f percent \n\n Considering the friction effects \n Axial thrust is %3.1f N \n Diagram Power is %3.2f kW \n Diagram efficiency is %3.2f percent',b1,Pt,Pa,nD,Pa2,WD2,nD2)
c3fdd3ff3cad8486e08862bc85a5c378dfbef47c
449d555969bfd7befe906877abab098c6e63a0e8
/1931/CH7/EX7.16/16.sce
edc670a5b8cd043f2dc6cdd727e0ee348386a823
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
311
sce
16.sce
clc clear //INPUT DATA x=5.87*10^7//electrical conductivity in ohm^-1 m^-1 k=380//thermal conductivity of copper in W m-1 K^-1 t=293//temperature of copper in k //CALCULATION L=(k/(x*t))/10^-8//Lorentz number in W ohm K^-2 *10^-8 //OUTPUT printf('Lorentz number is %3.4f *10^-8 W.ohm.K^-2',L)
276b1467d073ca574a868f6e7fb59b89aea36b3b
449d555969bfd7befe906877abab098c6e63a0e8
/2699/CH13/EX13.5/Ex13_5.sce
6fec18396a9ba1bf4a601550f9541c28d059ac5a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
170
sce
Ex13_5.sce
//EX13_5 PG-13.5 clc clear printf('The Decimal equivalent of the number 231.23 with base 4 is: '); x=(2*4^2)+(3*4^1)+(1*4^0)+(2*4^(-1))+(3*4^(-2)) printf("%.4f",x)
d4d88f6914774168cebbf57465985eea4dc2ab0f
72342bddb396436379ab8d246883ac0f21562530
/SCILAB_4.sce
0372820116750e47312e716a355a46214074dcfa
[]
no_license
Ajain-19/Signals-And-Systems
1322a94f58f60d22aeab637c7bc427982da3e35b
d45cd46067f29d3ec86b133a61772c1218143144
refs/heads/main
2023-01-21T08:05:20.659619
2020-11-25T17:56:42
2020-11-25T17:56:42
316,013,959
1
0
null
null
null
null
UTF-8
Scilab
false
false
106
sce
SCILAB_4.sce
z=%z; num=3+2*(1/Z)+; den=(z-1)*(z-2)^2; h=ldiv(den,num,16); disp(h,"First six terms of the series")
c4bf72bc1b98cb2f582873bc308dbba7eae3f4a4
449d555969bfd7befe906877abab098c6e63a0e8
/914/CH10/EX10.3/ex10_3.sce
19ee26b6cd21c9781b306301c571b72bbc5f28d5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
471
sce
ex10_3.sce
clc; warning("off"); printf("\n\n example10.3 - pg414"); // given u=1/60; //[m/sec] - velocity p=1000; //[kg/m^3] - density mu=1*10^-3; //[kg/m*sec] - viscosity d=6*10^-2; //[m] - inside diameter of tube L=300; //[m] - length of the tube Nre=(d*u*p)/(mu); disp("therefore the flow is laminar",Nre,"Nre="); f=16/Nre; disp(f); deltap=(4*f)*(L/d)*((p*(u^2))/2); printf("\n\n -deltap=%f N/m^2 = %f kPa = %e psi",deltap,deltap*10^-3,deltap*1.453*10^-4);
922d0b2aa8f4277a3b1eddb39aea175f653abd5d
449d555969bfd7befe906877abab098c6e63a0e8
/72/CH9/EX9.2.1/9_2_1.sce
7c03b6ef2d1e5b8fefa146c8f7c38a65018afe5d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,791
sce
9_2_1.sce
// CAPTION:Klystron_Amplifier //chapter_no.-9, page_no.-377 //Example_no.9-2-1 clc; //(a) Calculate_the_input_gap_voltage_to_give_maximum_voltage_V2 disp('For_maximum_V2,_J1(X)_must_be_maximum.This_means_J1(X)=.582_at_X=1.841.The_electron_velocity_just_leaving_the_cathode_is'); X=1.841; J1(X)=.582; V0=10^3; v0=.593*(10^6)*sqrt(V0); disp(v0,''); f=(3*(10^9)); d=1*(10^-3);//Gap_spacing_in_either_cavity w=(2*%pi*f); Og=(w*d)/v0; disp(Og,'The_gap_transit_angle_(in radian)is ='); disp('The_beam-coupling_coefficient_is'); Bi=sin(Og/2)/(Og/2); Bo=Bi; disp(Bi,''); disp('The_dc_transit_angle_(in radian)_between_the_cavities_is ='); L=4*(10^-2);//Spacing_between_the_two_cavities O0=(w*L)/v0; disp(O0,''); disp('The_maximum_input_voltage_V1_(in Volts)_is_then_given_by ='); V1max=(2*V0*X)/(Bi*O0); disp(V1max,''); //(b) Calculate_the_voltage_gain R0=40*(10^3); Rsh=30*(10^3);//Effective_shunt_impedance_excluding_beam_loading Av=((Bo^2)*O0*J1(X)*Rsh)/(R0*X); disp(Av,'The_voltage_gain_is_found ,neglecting_the_beam_loading_in_the_output_cavity ='); //(c)Calculate_the_efficiency_of the _amplifier I0=25*(10^-3); I2=2*I0*J1(X); V2=Bo*I2*Rsh; efficiency=(Bo*I2*V2)/(2*I0*V0); efficiency=100*efficiency; disp(efficiency,'the_efficiency_of the _amplifier,neglecting_beam_loading ='); //(d)Calculate_the_beam_loading_conductance G0=25*(10^-6); Og=(Og*180)/%pi; GB=(G0/2)*((Bo^2)-(Bo*cos((28.6*%pi)/180))); disp(GB,'the_beam_loading_conductance GB (mho)is ='); RB=1/GB; disp(RB,'then_the_beam_loading_resistance_RB (rho)is ='); disp('In_comparasion_with_RL_and_Rsho_or_the_effective_shunt_resistance_Rsh,the_beam_loading_resistance_is_like_an_open_circuit_and_thus_can_be neglected_in_the_preceding_calculations');
0a6192c6760120bb0a7407063ed20d48abe3a171
717ddeb7e700373742c617a95e25a2376565112c
/3424/CH3/EX3.10/Ex3_10.sce
a524c72af380da477d5841f55aee29166c70a353
[]
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
263
sce
Ex3_10.sce
clc //Initialization of variables g = 32.2 //ft/s^2 z1 = 15 //ft z3 = -5 //ft p2 = -14.4 // psi // Calculations V3 = (2*g*(z1 - z3))^0.5 H =(((-p2 * 144) - 0.5*(1.94)*(V3)^2)/62.4) + 15 // Results printf("the maximum height of the hill is %.1f ft",H)
a6f098877357d9e839b71db873e1953585221eae
449d555969bfd7befe906877abab098c6e63a0e8
/3557/CH3/EX3.4/Ex3_4.sce
2b6a439df1a1a55338b02b6e2f3c85aad3b719bb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
277
sce
Ex3_4.sce
//Example 3.4// a=24.31;//gram //atomic mass of magnesium b=16.00;//gram // atomic mass of oxygen c=0.6023*10^24;//Avogardo's number v=0.0741;//nm^3 //unit cell volume d=10^7;//nm/cm e=4;//Number of electrons p=((((e*a)+(e*b))/(c))/(v))*d^3 mprintf("p = %f g/cm^3",p)
569bae4ae3e2e28a0cf7942de142d45d7dd5c702
527c41bcbfe7e4743e0e8897b058eaaf206558c7
/Positive_Negative_test/Netezza-Base-MachineLearning/FLLinRegrUdt-NZ-01.tst
e1e425c5b595817f3cf231a2b21011a49e99418a
[]
no_license
kamleshm/intern_fuzzy
c2dd079bf08bede6bca79af898036d7a538ab4e2
aaef3c9dc9edf3759ef0b981597746d411d05d34
refs/heads/master
2021-01-23T06:25:46.162332
2017-07-12T07:12:25
2017-07-12T07:12:25
93,021,923
0
0
null
null
null
null
UTF-8
Scilab
false
false
12,560
tst
FLLinRegrUdt-NZ-01.tst
-- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Netezza -- -- Copyright (c): 2014 Fuzzy Logix, LLC -- -- NOTICE: All information contained herein is, and remains the property of Fuzzy Logix, LLC. -- The intellectual and technical concepts contained herein are proprietary to Fuzzy Logix, LLC. -- and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade -- secret or copyright law. Dissemination of this information or reproduction of this material is -- strictly forbidden unless prior written permission is obtained from Fuzzy Logix, LLC. -- -- -- Functional Test Specifications: -- -- Test Category: Data Mining Functions -- -- Test Unit Number: FLLinRegrUdt-NZ-01 -- -- Name(s): FLLinRegrUdt -- -- Description: Stored Procedure which performs Linear Regression and stores the results in predefined tables. -- -- Applications: Linear regressions can be used in business to evaluate trends and make estimates or forecasts. -- -- Signature: FLLinRegrUdt(pGroupID INTEGER, -- pObsID INTEGER, -- pVarID INTEGER, -- pValue DOUBLE PRECISION, -- pReduceVars BYTEINT, -- pThresholdStdDev DOUBLE PRECISION, -- pThresholdCorrel DOUBLE PRECISION, -- pBeginFlag INTEGER, -- pEndFlag INTEGER) -- -- Parameters: See Documentation -- -- Return value: VARCHAR(64) -- -- Last Updated: 07-10-2017 -- -- Author: <kamlesh.meena@fuzzylogix.com> -- BEGIN: TEST SCRIPT \time DROP TABLE tbllinregrdatadeepTest IF EXISTS; CREATE TABLE tbllinregrdatadeepTest ( GroupID BIGINT, ObsID BIGINT, VarID INTEGER, Num_Val DOUBLE PRECISION) DISTRIBUTE ON(ObsID); ---- BEGIN: NEGATIVE TEST(s) ---- Incorrect table name -- Case 1a: --Not applicable for Netezza ---- Populate data in table INSERT INTO tbllinregrdatadeepTest SELECT a.* FROM tbllinregrdatadeep a; ---- Incorrect column names -- Case 2a: SELECT f.* FROM( SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.Obs,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: Fuzzy Logix specific error message -- Case 2b: SELECT f.* FROM( SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.Var,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: Fuzzy Logix specific error message -- Case 2c: SELECT f.* FROM( SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: Fuzzy Logix specific error message ---- No data in table -- Case 3a: DELETE FROM tbllinregrdatadeepTest; SELECT f.* FROM( SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: Fuzzy Logix specific error message ---- Insert data without the intercept and dependent variable -- Case 4a: INSERT INTO tbllinregrdatadeepTest SELECT a.* FROM tbllinregrdatadeep a WHERE a.VarID > 0; ---- No dependent variable in table -- Case 4b: SELECT f.* FROM( SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: Fuzzy Logix specific error message ---- Insert dependent variable only for some obs -- Case 5a: INSERT INTO tbllinregrdatadeepTest SELECT a.* FROM tbllinregrdatadeep a WHERE a.VarID = -1 AND a.ObsID <= 10000; ---- No dependent variable for all observations -- Case 5b: SELECT f.* FROM( SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: Fuzzy Logix specific error message ---- Insert intercept variable only for some obs -- Case 6a: DELETE FROM tblLinRegrTest; INSERT INTO tblLinRegrTest SELECT a.* FROM tblLinRegr a WHERE a.VarID <> 0; INSERT INTO tblLinRegrTest SELECT a.ObsID, a.VarID, CASE WHEN a.ObsID <= 500 THEN 0 ELSE 1 END FROM tblLinRegr a WHERE a.VarID = 0 AND a.ObsID <= 10000; ---- No intercept variable for all observations -- Case 6b: SELECT f.* FROM( SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: Fuzzy Logix specific error message ---- Cleanup the intercept and insert the value 2 for intercept -- Case 6a: DELETE FROM tbllinregrdatadeepTest WHERE VarID = 0; INSERT INTO tbllinregrdatadeepTest SELECT a.GroupID, a.ObsID, a.VarID, 2 FROM tbllinregrdatadeep a WHERE a.VarID = 0; ---- Intercept not 0 or 1 -- Case 6b: SELECT f.* FROM( SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: Fuzzy Logix specific error message ---- Cleanup the table -- Case 7a: DELETE FROM tbllinregrdatadeepTest; ---- Populate less rows than variables -- Case 7b: INSERT INTO tbllinregrdatadeepTest SELECT a.* FROM tbllinregrdatadeep a WHERE a.ObsID <= 100; ---- Number of observations <= number of variables -- Case 7c: SELECT f.* FROM( SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: Fuzzy Logix specific error message ---- Cleanup the table and populate the data -- Case 8a: DELETE FROM tbllinregrdatadeepTest; INSERT INTO tbllinregrdatadeepTest SELECT a.* FROM tbllinregrdatadeep a; --- Repeat a row in the table -- Case 8b: INSERT INTO tbllinregrdatadeep SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val FROM tbllinregrdatadeep a WHERE a.VarID = 10 AND a.ObsID = 26; ---- Repeated data in table -- Case 8b: SELECT f.* FROM( SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: Fuzzy Logix specific error message ---- Cleanup the table and populate -- Case 9a: DELETE FROM tbllinregrdatadeepTest; INSERT INTO tbllinregrdatadeepTest SELECT a.GroupID, a.ObsID, a.VarID * 2, a.Num_Val FROM tbllinregrdatadeep a WHERE a.VarID > 0 UNION ALL SELECT a.* FROM tbllinregrdatadeep a WHERE a.VarID IN (-1, 0); ---- Non consecutive variable IDs -- Case 9b: SELECT f.* FROM( SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: Fuzzy Logix specific error message -- END: NEGATIVE TEST(s) --BEGIN: POSITIVE TEST(s) ---- Cleanup the data and populate again -- Case 1a: DELETE FROM tblLinRegrTest; INSERT INTO tbllinregrdatadeepTest SELECT a.* FROM tbllinregrdatadeep a; ---- Perform regression with non-sparse data -- Case 1b: SELECT f.* FROM( SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: standard outputs ---- Cleanup the data and populate again, make the data sparse i.e., non-zero values ---- for all variables except dependent and intercept -- Case 2a: DELETE FROM tbllinregrdatadeepTest; INSERT INTO tbllinregrdatadeepTest SELECT a.* FROM tbllinregrdatadeep a WHERE a.VarID > 0 AND a.Num_Val <> 0 UNION ALL SELECT a.* FROM tbllinregrdatadeep a WHERE a.VarID IN (-1, 0); ---- Perform regression with sparse data -- Case 2b: SELECT f.* FROM( SELECT a.GroupID, a.ObsID, a.VarID, a.Num_Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsID), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.ObsID,z.VarID,z.Num_Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: standard outputs ------ Drop and recreate the test table with column names different than that of usual FL deep table naming conventions -- Case 3a: DROP TABLE tbllinregrdatadeepTest; CREATE TABLE tbllinregrdatadeepTest ( GroupID BIGINT, ObsCol BIGINT, VarCol INTEGER, Val DOUBLE PRECISION) DISTRIBUTE ON(ObsCol); INSERT INTO tbllinregrdatadeepTest SELECT a.* FROM tbllinregrdatadeep a WHERE a.VarID > 0 AND a.Num_Val <> 0 UNION ALL SELECT a.* FROM tbllinregrdatadeep a WHERE a.VarID IN (-1, 0); ---- Perform regression with sparse data -- Case 3b: SELECT f.* FROM( SELECT a.GroupID, a.ObsCol, a.VarCol, a.Val, NVL(LAG(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsCol), 1) AS begin_flag, NVL(LEAD(0) OVER (PARTITION BY a.GroupID ORDER BY a.ObsCol), 1) AS end_flag FROM tbllinregrdatadeepTest a ) AS z, TABLE(FLLinRegrUDT(z.GroupID,z.ObsCol,z.VarCol,z.Val,1,0.05,0.95,z.begin_flag,z.end_flag)) AS f ORDER BY 1 ASC, 2 DESC, 5 ASC LIMIT 20; -- Result: standard outputs ---DROP the test table DROP TABLE tbllinregrdatadeepTest; -- END: POSITIVE TEST(s) \time -- END: TEST SCRIPT
038d344187e258df5ee9b2d6b31396a40f34c94d
449d555969bfd7befe906877abab098c6e63a0e8
/1730/CH2/EX2.32/Exa2_32.sce
f5d88e8e165eea48223f1905da924d9710334198
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
763
sce
Exa2_32.sce
//Exa2.32 clc; clear; close; //given data T_lower=10;// in degree C T_upper=150;// in degree C // Thermo-electric power for iron at any temperature T degree C w.r.t. lead is given by (17.34-0.0487 T)*10^-6 and that for copper by (1.36-.0095 T)*10^-6 // Thermo-electric power, P=dE/dT // or dE=P*dT // Thermo-emf for copper between temperature 10 degree C and 150 degree C, E_c= integrate('(1.36-0.0095*T)*10^-6','T',T_lower,T_upper); // Thermo-emf for iron between temperature 10 degree C and 150 degree C, E_i= integrate('(17.34-0.0487*T)*10^-6','T',T_lower,T_upper); // Thermo-emp for copper-iron thermo-couple E=E_i-E_c; disp("Thermo-emf for iron between temperature 10 degree C and 150 degree C is : "+string(E*10^6)+" micro V");
baf4bd93f19678f8b8ca32bc195a38ff0fbb1b71
45634d4068081e62e99868950493f68e28f32094
/export_db/Multicycle-IITB-RISC.cmp.sci
78461c084ab3783834a63e41b65c3b6c0e07cd00
[]
no_license
ydidwania/IITB-RISC
121d7b41e202b9c91e0c45a08c6c8f09d3d29fe6
5755351fc00e68f63556ebd5d5dff5dffff74033
refs/heads/master
2020-04-02T14:46:09.309363
2018-11-10T14:13:36
2018-11-10T14:13:36
154,538,331
0
0
null
null
null
null
UTF-8
Scilab
false
false
28,107
sci
Multicycle-IITB-RISC.cmp.sci
<session design_hash="00000000000000000000" m_completed_compilation="false"> <stp_instance is_hdl_type="false" m4k_usage="0" m512_usage="0" mram_usage="0"> <sci_design_instance entity_name="" instance_hpath="" instance_name="auto_signaltap_0" ir_bits="0" is_auto_index="false" is_imported_from_partition="false" is_incremental="false" node_info="0x30006E00" source_file=""> <parameters/> <inputs/> <outputs/> </sci_design_instance> <stp_signal_set clock="clk_50" data_input_width="133" dpo_name_vec_size="0" is_dpo_vec_size="0" is_global_temp="true" name="signal_set: 2018/11/05 14:08:32 #0" ordered_data_ports_vec_size="133" ordered_trigger_ports_vec_size="133" ram_type="" sample_depth="128" storage_qualifier_input_width="133" trigger_in_connected="false" trigger_in_source="" trigger_input_width="133" trigger_out_connected="false" trigger_out_source="" wire_vec_size="0"> <stp_trigger advanced_trigger_string="b" crc_value="0xCE4EE2FC" custom_flow_control="false" event_levels="1" name="trigger: 2018/11/05 14:08:32 #1" power_up_trigger="false" segment_size="128" storage_qualifier_mode="off" uses_advanced_trigger="false"> <advanced_trigger_crc_vec> <advanced_trigger_crc value="empty"/> </advanced_trigger_crc_vec> <advanced_trigger_condition_vec> <advanced_trigger_condition value=""/> </advanced_trigger_condition_vec> </stp_trigger> <wire_vec/> <ordered_data_ports_vec> <sci_design_wire is_dpo="false" name="clk"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|alu_zero"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|carry"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[0]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[10]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[11]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[12]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[13]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[14]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[15]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[1]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[2]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[3]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[4]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[5]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[6]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[7]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[8]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[9]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[0]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[10]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[11]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[12]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[13]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[14]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[15]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[1]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[2]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[3]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[4]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[5]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[6]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[7]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[8]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[9]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[0]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[10]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[11]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[12]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[13]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[14]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[15]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[1]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[2]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[3]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[4]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[5]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[6]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[7]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[8]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[9]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[0]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[10]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[11]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[12]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[13]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[14]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[15]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[1]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[2]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[3]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[4]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[5]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[6]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[7]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[8]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[9]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[0]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[10]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[11]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[12]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[13]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[14]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[15]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[1]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[2]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[3]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[4]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[5]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[6]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[7]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[8]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[9]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[0]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[10]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[11]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[12]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[13]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[14]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[15]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[1]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[2]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[3]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[4]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[5]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[6]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[7]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[8]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[9]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|zero"/> <sci_design_wire is_dpo="false" name="reset"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[0]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[10]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[11]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[12]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[13]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[14]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[15]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[1]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[2]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[3]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[4]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[5]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[6]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[7]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[8]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[9]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[0]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[10]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[11]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[12]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[13]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[14]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[15]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[1]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[2]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[3]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[4]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[5]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[6]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[7]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[8]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[9]"/> </ordered_data_ports_vec> <ordered_trigger_ports_vec> <sci_design_wire is_dpo="false" name="clk"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|alu_zero"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|carry"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[0]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[10]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[11]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[12]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[13]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[14]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[15]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[1]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[2]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[3]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[4]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[5]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[6]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[7]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[8]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r0|q[9]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[0]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[10]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[11]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[12]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[13]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[14]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[15]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[1]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[2]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[3]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[4]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[5]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[6]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[7]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[8]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r1|q[9]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[0]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[10]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[11]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[12]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[13]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[14]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[15]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[1]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[2]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[3]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[4]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[5]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[6]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[7]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[8]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r2|q[9]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[0]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[10]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[11]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[12]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[13]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[14]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[15]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[1]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[2]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[3]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[4]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[5]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[6]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[7]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[8]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r3|q[9]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[0]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[10]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[11]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[12]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[13]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[14]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[15]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[1]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[2]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[3]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[4]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[5]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[6]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[7]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[8]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r4|q[9]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[0]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[10]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[11]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[12]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[13]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[14]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[15]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[1]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[2]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[3]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[4]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[5]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[6]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[7]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[8]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:r5|q[9]~reg0"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|zero"/> <sci_design_wire is_dpo="false" name="reset"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[0]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[10]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[11]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[12]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[13]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[14]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[15]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[1]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[2]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[3]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[4]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[5]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[6]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[7]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[8]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_16bit:IntsR|q[9]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[0]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[10]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[11]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[12]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[13]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[14]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[15]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[1]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[2]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[3]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[4]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[5]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[6]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[7]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[8]"/> <sci_design_wire is_dpo="false" name="datapath:dat_path|reg_file:RF|reg_16bit:reg7|q[9]"/> </ordered_trigger_ports_vec> <ordered_storage_qualifier_ports_vec/> <is_dpo_vec/> <dpo_name_vec/> </stp_signal_set> </stp_instance> <hierarchy_index_offset_map/> <opencore_plus_spec/> </session>
965962a8d87d9dab1e53205687041ec8b3398f4e
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.3/Unix-Windows/scilab-2.3/demos/scicos/scicos_learn.sci
3029b5737dfc66791c95c13c014f32361b5d0091
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931111
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
2,904
sci
scicos_learn.sci
function scicos_learn(fil) funcprot(0); comm='/'+'/' x_mdia=funptr('x_mdialog') c_cho=funptr('x_choose') xcli=funptr('xclick') xgetm=funptr('xgetmouse') clearfun('xclick');newfun('xclick1',xcli); deff('[c_i,c_x,c_y,c_w]=xclick()',[ '[lhs,rhs]=argn(0)' 'if lhs==3 then ' ' [c_i,c_x,c_y]=xclick1()' ' write(uapp,strcat(string([c_i,c_x,c_y]),'','')+comm+''xclick'')' 'else' ' [c_i,c_x,c_y,c_w]=xclick1()' ' write(uapp,strcat(string([c_i,c_x,c_y,c_w]),'','')+comm+''xclick'')' 'end']); clearfun('xgetmouse');newfun('xgetmouse1',xgetm) deff('rep=xgetmouse()',[ 'rep=xgetmouse1()' 'write(uapp,strcat(string(rep),'','')+comm+''xgemouse'')']); deff('result=dialog(labels,valueini)',[ 'result=x_dialog(labels,valueini)' 'res=result' 'res(1)=res(1)+comm+''x_dialog''' 'write(uapp,res)']) deff('num=message(strings ,buttons)',[ '[lhs,rhs]=argn(0)' 'if rhs==2 then' ' num=x_message(strings ,buttons)' ' write(uapp,buttons(num)+comm+ ''message'')' 'else' ' num=1' ' x_message(strings)' 'end']) clearfun('x_mdialog');newfun('x_mdialog1',x_mdia); deff('result=x_mdialog(title,labels,default_inputs_vector)',[ 'result=x_mdialog1(title,labels,default_inputs_vector)' 'if result<>[] then' ' res=result' ' res(1)=res(1)+comm+''x_mdialog''' ' write(uapp,res)' ' write(uapp,''o'')' 'else' ' write(uapp,default_inputs_vector)' ' write(uapp,''c'')' 'end']) clearfun('x_choose');newfun('x_choose1',c_cho); deff('num=x_choose(items,title,button)',[ '[lhs,rhs]=argn(0)' 'if rhs==3 then ' ' num=x_choose1(items,title,button)' 'else' ' num=x_choose1(items,title)' 'end' 'write(uapp,string(num)+comm+''x_choose'')']) getf('SCI/macros/util/getvalue.sci'); getf('SCI/macros/xdess/getmenu.sci'); deff('[m,pt,btn]=getmenu(datas,pt)',[ '[lhs,rhs]=argn(0)' 'n=size(datas,1)-3' 'if rhs<2 then' ' [btn,xc,yc]=xclick()' ' pt=[xc,yc] ' 'else' ' xc=pt(1);yc=pt(2)' 'end' 'test1=datas(1:n,:)-ones(n,1)*[xc xc yc yc]' 'm=find(test1(:,1).*test1(:,2)<0&test1(:,3).*test1(:,4)<0 )' 'if m==[],m=0,end'; 'write(uapp,string(m)+comm+''getmenu'')']) names=['choosefile'; 'do_addnew'; 'do_block'; 'do_color'; 'do_copy'; 'do_copy_region'; 'do_delete'; 'do_delete_region'; 'do_help'; 'do_move'; 'do_palettes'; 'do_replace'; 'do_run'; 'do_tild'; 'do_view'; 'getlink'; 'move'; 'prt_align'; 'scicos'] for k=1:size(names,'r') getf('SCI/macros/scicos/'+names(k)+'.sci'); end deff('c=getcolor(title,cini)',[ 'colors=string(1:xget(""lastpattern""))' 'm=prod(size(cini))' 'll=list()' 'm=prod(size(cini))' 'for k=1:m' ' ll(k)=list(''colors'',cini(k),colors);' 'end' 'c=x_choices(title,ll);' 'write(uapp,string(c)+comm+''getcolor'')']) uapp=file('open',fil,'unknown'); lines(0); scicos(); file('close',uapp); newfun('x_mdialog',x_mdia) newfun('x_choose',c_cho) newfun('xclick',xcli) newfun('xgetmouse',xgetm)
64b8bc68dd92e39b87d1f8adb803f2cd9ed22005
449d555969bfd7befe906877abab098c6e63a0e8
/1964/CH13/EX13.21/ex13_21.sce
0bad2ee19145bef4426ba302ea38b13e6415b047
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
667
sce
ex13_21.sce
//Chapter-13, Example 13.21, Page 394 //============================================================================= clc clear //INPUT DATA Icbo=0.2*10^-6;//current in A Iceo=18*10^-6;//current in A Ib=30*10^-6;//current in A //CALCULATIONS a=1-(Icbo/Iceo);//common-base DC current gain b=(Iceo/Icbo)-1;//common-emitter DC current gain Ic=(b*Ib)+((1+b)*(Icbo));//collector current in A mprintf("Thus common-base DC current gain and common-emitter DC current gain are %1.3f and %d respectively",a,b) //=================================END OF PROGRAM=======================================================================================================
f68e30fea300147285329e77ce0fef4c5b5d72e5
449d555969bfd7befe906877abab098c6e63a0e8
/3137/CH5/EX5.1/Ex5_1.sce
7e0efd68e26074d17535287b20962475642d085e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
229
sce
Ex5_1.sce
//Initilization of variables D=[6/sqrt(40) -4/sqrt(20);2/sqrt(40) 2/sqrt(20)] B=[0;25] //lb //Calculations X=inv(D)*B //Result clc printf('The tension in cable AB is %flb and the tension in cable AC is %f lb',X(2),X(1))
969b33de0c14161a9a9ea45dfab627fba2d71943
9545443abf3ba785ea80d459f01efa5be8df2087
/cfs/apps/fm/test_and_ground/asist/image/FMCAT2.TST
dad5da043071e86f70ec01cec896d6ca12deb6b9
[ "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,255
tst
FMCAT2.TST
This is the test file 2 for the fm_filecat_basic 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
86d4ca3933ac31c32f903bfb91254f92d165ffdc
382f1dd66c084cf9a1f9ff595be26967356245a1
/scilab/p.sce
e9b6b9f544701c24dd87727e90c420f7fb50caa3
[]
no_license
osho-agyeya/Implementation-of-Graph-Theory-in-Computer-Networking
262ac759658444fddee02906506a20590b5d2b92
4c7edc99da2304e2ceb3a422508bd29660b60870
refs/heads/master
2022-03-25T08:02:39.169796
2020-01-11T12:30:43
2020-01-11T12:30:43
107,777,536
3
1
null
null
null
null
UTF-8
Scilab
false
false
1,157
sce
p.sce
clc; l=input("Enter the no. of vertices in the matrix. The adjacency matrix shall be read from the text file:"); h=fscanfMat("testfile1.txt"); a=h'; fid = mopen('Result.txt','w'); // Output file mfprintf(fid,'Original matrix\n\n'); // Printing the original matrix in the output file for i=1:l for k=1:l mfprintf(fid,'%6d',a(i,k)); end mfprintf(fid,' \n'); end k=1:l ; listV(k)=0 ; listV(1)=1 ; //list of visited vertices e=1; while (e<l) mini=%inf; for i=1:l if listV(i)==1 for j=1:l if listV(j)==0 if mini>a(i,j) & i~=j & a(i,j)~=0 mini=a(i,j); b=a(i,j); s=i; d=j; end end end end end listV(d)=1; distance(e)=b; source(e)=s; destination(e)=d; e=e+1; end mfprintf(fid,'\nThe nodes and shortest distances are \n'); mfprintf(fid,'\nFORMAT: Distance(Source, destination) \n'); for g=1:e-1 mfprintf(fid,'%d(%d,%d)\n',distance(g),source(g),destination(g)); end status = mclose(fid); clear;
b3ee01d6d193377e8e8cbece9ff45b863b498c08
449d555969bfd7befe906877abab098c6e63a0e8
/2780/CH2/EX2.10/Ex2_10.sce
5e1c4a42fa3728beecc52739b5b33baa58ba4553
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
204
sce
Ex2_10.sce
clc //to calculate thickness of glass plate n=3 mu=1.5 //refractive index (unitless) lambda=5450*10^-10 //wavelength in m t=n*lambda/(mu-1) disp("the thickness of glass plate is t="+string(t)+"m")
cb74711ac7fc554dbc5e8f2a95214dcf0e0a1eb0
676ffceabdfe022b6381807def2ea401302430ac
/solvers/IncNavierStokesSolver/Tests/Channel_Flow_3modes_rad.tst
67cda35c01e41d5208c95cc81fa0c82e1d36c9c4
[ "MIT" ]
permissive
mathLab/ITHACA-SEM
3adf7a49567040398d758f4ee258276fee80065e
065a269e3f18f2fc9d9f4abd9d47abba14d0933b
refs/heads/master
2022-07-06T23:42:51.869689
2022-06-21T13:27:18
2022-06-21T13:27:18
136,485,665
10
5
MIT
2019-05-15T08:31:40
2018-06-07T14:01:54
Makefile
UTF-8
Scilab
false
false
843
tst
Channel_Flow_3modes_rad.tst
<?xml version="1.0" encoding="utf-8"?> <test> <description>Channel Flow 2D with Radiation outflow </description> <executable>IncNavierStokesSolver</executable> <parameters>ChanFlow_m8.xml</parameters> <files> <file description="Session File">ChanFlow_m8.xml</file> </files> <metrics> <metric type="L2" id="1"> <value variable="u" tolerance="1e-12">1.18976e-16</value> <value variable="v" tolerance="1e-12">0</value> <value variable="p" tolerance="1e-12">3.23754e-15</value> </metric> <metric type="Linf" id="2"> <value variable="u" tolerance="1e-12">1.02696e-15</value> <value variable="v" tolerance="1e-12">5.72397e-17</value> <value variable="p" tolerance="1e-12">4.21885e-15</value> </metric> </metrics> </test>
7599b4114da43077dbfa22fc748387bf43868f15
b784b8fa78daac389ae5c7edeadc00786135b8f1
/archive/engine-20180721.sci
114f59ca048215808af5ac601a343f3541676cb6
[]
no_license
TheMagicNacho/artemis-engine-design
70b0bc798a8509fdad304916063d469acdad8347
10b427e732ae7f6571725034a4d746c68c3cbb4b
refs/heads/master
2020-03-20T06:58:58.972222
2019-01-20T12:22:16
2019-01-20T12:22:16
137,267,385
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,137
sci
engine-20180721.sci
//---NOTES--- // Dt = Density of Gas at Throat // Acof = Area of Exhaust / Area of Throat // Reff. Development of Hydrogen Peroxide Monopropellant Rocket by Cervone et al // Reff. https://www.grc.nasa.gov/www/K-12/airplane/isentrop.html // assumes an hydrogen peroxide & heximine combustion //---VARIABLES--- h = 4093.638; //Specific Heat (Kj/Mol) AKA Enthalpy tc = 3182.027; //Combustion Chamber Temp (K) - derived from abdatic pc = 25; //Combustion Chamber Presure (bar) - based on research from S. Krishnan1*, Ahn Sang-Hee2, Lee Choong-Won2 vcc = 2; //Combustion Chamber Volume (L) f = 2; //thrust required (N) pa = 10; //ambiant presure n = 230; //Number of moles from combustion product //---CALCULATIONS--- cstar = 903.5; pe = (n * 0.08205 / vcc) * tc; //exhaust presure - assumes ideal gas constant r = h / (tc+258); //specific heat ratio //throat tt = tc * (2/h+1); //throat temp (K) pt = pc * (2/h+1) ** (h/(h-1)); //presure (bar) dt = pt / (r*tt); //density vt = sqrt(r*0.08205*tt); //Velocity at throat - assumes ideal gas constant mt = vt / 295.26992; // throat mach number - assumes speed of sound is 295.26992 at stratosphere at = f / (mt * dt); //coefficents aco = ((1 + mt^2 * (r-1)/2)^((r+1)/(r-1)/2))*(((r+1)/2)**-((r+1)/(r-1)/2)) / mt; cf = h * sqrt(((2/h+1)^((h+1)/(h-1))) * (2/(h-1)) * (1-(pe /pc)^((h-1)/h))) + ((pe-pa)/pc) * aco; // thrust coifficent //t = vt * mdot; //exhaust ae = at * sqrt(aco); // area of exhaust diameter (MM) te = tc / (1+((h-1)/2)*vt^2); //Temp de = pe / (r*te); //desnsity //finals ve = sqrt(cf * cstar); mdot = (pc * at) / cstar; me = ve / 295.26992; // exhaust mach number - assumes speed of sound is 295.26992 at stratosphere isp = ve / 9.80665; // specific impulse - asume gravity 9.8 m/s tsum = tt + tc; // find average tempurature tavg = tsum / 2; //print disp("AREA THROAT {in mm}") disp(at) disp("AREA EXHAUST {in mm}") disp(ae) disp("MACH SPEED THROAT {calculated}") disp(mt) disp("MACH SPEED EXHAUST") disp(me) disp("MASS FLOW RATE {kg/s}") disp(mdot) disp("ESTIMATED SPECIFIC IMPULSE {s/kg}") disp(isp) disp("ESTIMATED OPERATING TEMPS {K}") disp(tavg)
49dbba57d144fc18987c29d2b77e30541e7a2a78
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set4/s_Digital_Communication_S._Haykin_851.zip/Digital_Communication_S._Haykin_851/CH2/EX2.5/Example2_5.sce
fab2b9ab4ee2013e8c120c2036b266f25b9631a6
[]
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
458
sce
Example2_5.sce
errcatch(-1,"stop");mode(2);//// //Caption:Binary Symmetric Channel //Example2.5: Binary Symmetric Channel ; ; p = 0.4; //probability of correct reception pe = 1-p;//probility of error reception (i.e)transition probility disp(p,'probility of 0 receiving if a 0 is sent = probility of 1 receiving if a 1 is sent=') disp('Transition probility') disp(pe,'probility of 0 receiving if a 1 is sent = probility of 1 receiving if a 0 is sent=') exit();
bca5b8ef68f193fd2571115a3a5f8a551e0d60a0
449d555969bfd7befe906877abab098c6e63a0e8
/3014/CH8/EX8.7/Ex8_7.sce
7160962a5a588e61b086690480700795dfc61556
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
345
sce
Ex8_7.sce
clc // Given that H_c_0= 8e5// Critical field in A/m H_c= 4e4 // Magnetic field in A/m T_c = 7.26 // Critical temperature in kelvin printf("Example 8.7\n") printf("Standard formula used \tH_c = H_c_0*(1-(T/T_c)^2) \n") T = T_c*sqrt(1- (H_c/H_c_0)) // Calculation of Temperature printf("Required temperature is %f K.\n\n\n",T)
4481d6fc897c0dfebb75b6a9cd707332ece4ec1e
449d555969bfd7befe906877abab098c6e63a0e8
/680/CH9/EX9.01/9_01.sce
5079dd5f41666ec185f3f585b7aaf50118995d78
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
477
sce
9_01.sce
//Problem 9.01: //initializing the variables: w = 50; // in lb Ws = 200; // in lb a = 0.5; Ts = 25;// in deg C //calculation: WH2SO4 = w + Ws*a WH2O = Ws*a perH2SO4 = (WH2SO4/(WH2SO4 + WH2O))*100 //Referring to Fig. 9.3, construct a straight line between the 50% solution and pure H2SO4 at 25 deg C (77 deg F). Estimate the final temperature in deg F: T = 140;// in deg F printf("\n\nResult\n\n") printf("\n the adiabatic temperature change is %.0f deg F",T)
843a985ce98bb6b3551278a762f1e4ae8236e7c5
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.4.1/Unix-Windows/scilab-2.4.1/demos/bike/macros/velo1.sci
e7c888a54c8ebc9e361cefce589722ce98ef4f84
[ "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
1,410
sci
velo1.sci
function []=velo1() // "full wheel" version // Copyright INRIA ct=-cos(t);cp=cos(p);st=-sin(t);sp=sin(p); xe=[xmin;xmax;xmax;xmin;xmin] ye=[ymin;ymin;ymax;ymax;ymin] ze=[zmin;zmin;zmin;zmin;zmin]; xer=ct*xe-st*ye; yer=cp*(st*xe+ct*ye)+sp*ze; [n1,n2]=size(xfrontar); deff('[]=velod(i)',['xnr=ct*xfrontar(:,i)-st*yfrontar(:,i);'; 'ynr=cp*(st*xfrontar(:,i)+ct*yfrontar(:,i))+sp*zfrontar(:,i);'; 'xnt=ct*xf(:,i)-st*yf(:,i);'; 'ynt=cp*(st*xf(:,i)+ct*yf(:,i))+sp*zf(:,i);'; 'xnf=ct*xrearar(:,i)-st*yrearar(:,i),'; 'ynf=cp*(st*xrearar(:,i)+ct*yrearar(:,i))+sp*zrearar(:,i);'; 'xpoly(xnt,ynt,''lines'')'; 'xfpoly(xnr,ynr)'; 'xfpoly(xnf,ynf)']); xset('thickness',2); if driver()<>'Pos' then isoview(mini(xer),maxi(xer),mini(yer),maxi(yer)); xset("alufunction",6) xpoly(xer,yer,'lines') for i=1:n2-1, velod(i); ww=i:i+1; plot2d((ct*xprear(1,ww)-st*xprear(2,ww))',... (cp*(st*xprear(1,ww)+ct*xprear(2,ww))+sp*xprear(3,ww))',... [1,-1],"000"); velod(i); end velod(n2-1); xset("alufunction",3); xset('thickness',1); else pix=xget('pixmap') xset('pixmap',1) for i=1:4:n2-1, xset('wwpc') ww=1:i+1; xpoly(xer,yer,'lines') plot2d((ct*xprear(1,ww)-st*xprear(2,ww))',... (cp*(st*xprear(1,ww)+ct*xprear(2,ww))+sp*xprear(3,ww))',... [1,-1],"000"); velod(i); xset('wshow') end xset('pixmap',pix) end
9e19df0f655abe4057694dd79611a315cf12fb53
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.4.1/macros/auto/calfrq.sci
7db4f6f947c6704c41d678783867ac5076012659
[ "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
6,416
sci
calfrq.sci
function [frq,bnds,splitf]=calfrq(h,fmin,fmax) //! // Copyright INRIA eps=1.d-14 //minimum absolute lower frequency k=0.001; // Minimum relative prediction error in the nyquist plan epss=0.002 // minimum frequency distance with a singularity nptmax=5000 //maximum number of discretisation points tol=0.01 // Tolerance for testing pure imaginary numbers // Check inputs // ------------ if type(h)<>15&type(h)<>16 then error('first arg. to calfrq : waiting for syslin list'), end flag=h(1); if flag(1)<>'lss'&h(1)<>'r' then error('first arg. to calfrq : waiting for syslin list'), end if flag(1)=='lss' then h=ss2tf(h) end [m,n]=size(h(2)) if n<>1 then error('SIMO system only!') end dom=h(4) select dom case 'd' then dom=1 case [] then error(96,1) case 0 then error(96,1) end; if type(dom)==1 then nyq_frq=1/2/dom; if fmax>nyq_frq then warning('frequencies beyond Nyquist f are ignored!'); fmax=min(fmax,nyq_frq) end if fmin<-nyq_frq then warning('negative frequencies below Nyquist f are ignored!'); fmin=max(fmin,-nyq_frq) end end // Use symmetry to reduce the range // -------------------------------- if fmin<0&fmax>=0 then [frq,bnds,splitf]=calfrq(h,eps,-fmin) ns1=size(splitf,'*')-1; nsp=size(frq,'*'); bnds=[bnds(1),bnds(2),-bnds(4),-bnds(3)]; if fmax>eps then if fmax==-fmin then splitf=[1, (nsp+2)*ones(1,ns1)-splitf($:-1:2),nsp*ones(ns1)+splitf(2:$)]; bnds=[bnds(1),bnds(2),min(bnds(3),-bnds(3)),max(bnds(4),-bnds(4))]; frq=[-frq($:-1:1),frq] else [frq2,bnds2,splitf2]=calfrq(h,eps,fmax); ns2=size(splitf2,'*')-1 splitf=[1, (nsp+2)*ones(1,ns1)-splitf($:-1:2),nsp*ones(ns2)+splitf2(2:$)]; bnds=[min(bnds(1),bnds2(1)),max(bnds(2),bnds2(2)),... min(bnds(3),bnds2(3)),max(bnds(4),bnds2(4))]; frq=[-frq($:-1:1),frq2] end return else frq=-frq($:-1:1); nsp=size(frq,'*'); splitf=[1, (nsp+2)*ones(1,ns1)-splitf($:-1:2)] bnds=bnds; return; end elseif fmin<0&fmax<=0 then [frq,bnds,splitf]=calfrq(h,-fmax,-fmin) ns1=size(splitf,'*')-1; frq=-frq($:-1:1); nsp=size(frq,'*'); splitf=[1, (nsp+2)*ones(1,ns1)-splitf($:-1:2)] bnds=[bnds(1),bnds(2),-bnds(4),-bnds(3)]; return; elseif fmin >= fmax then error('calfrq: fmin must be < fmax'); end // Compute dicretisation over a given range // ---------------------------------------- splitf=[] if fmin==0 then fmin=min(1d-14,fmax/10);end // denh=h(3);numh=h(2) l10=log(10) // Locate singularities to avoid them // ---------------------------------- if dom=='c' then c=2*%pi //selection function for singularities in the frequency range deff('f=%sel(r,fmin,fmax,tol)',['f=[],'; 'if prod(size(r))==0 then return,end'; 'f=imag(r(find((abs(real(r))<=tol*abs(r))&(imag(r)>=0))))'; 'if f<>[] then f=f(find((f>fmin-tol)&(f<fmax+tol)));end']); else c=2*%pi*dom //selection function for singularities in the frequency range deff('[f]=%sel(r,fmin,fmax,dom,tol)',['f=[],'; 'if prod(size(r))==0 then return,end'; 'f=r(find( ((abs(abs(r)-ones(r)))<=tol)&(imag(r)>=0)))'; 'if f<>[] then '; ' f=atan(imag(f),real(f));nf=prod(size(f))'; ' for k=1:nf ,'; ' kk=int((fmax-f(k))/(2*%pi))+1;'; ' f=[f;f(1:nf)+2*%pi*kk*ones(nf,1)];'; ' end;' ' f=f(find((f>fmin-tol)&(f<fmax+tol)))'; 'end']); end sing=[];zers=[] fmin=c*fmin,fmax=c*fmax; for i=1:m sing=[sing;%sel(roots(denh(i)),fmin,fmax,tol)] end pp=sort(sing');npp=size(pp,'*');//' // singularities just on the left of the range kinf=find(pp<fmin) if kinf<>[] then fmin=fmin+tol pp(kinf)=[] end // singularities just on the right of the range ksup=find(pp>=fmax) if ksup<>[] then fmax=fmax-tol pp(ksup)=[] end //check for nearly multiple singularities if pp<>[] then dpp=pp(2:$)-pp(1:$-1) keq=find(abs(dpp)<2*epss) if keq<>[] then pp(keq)=[],end end if pp<>[] then frqs=[fmin real(matrix([(1-epss)*pp;(1+epss)*pp],2*size(pp,'*'),1)') fmax] //' else frqs=[fmin fmax] end nfrq=size(frqs,'*'); // Evaluate bounds of nyquist plot //------------------------------- xt=[]; for i=1:2:nfrq-1 xt=[xt,logspace(log(frqs(i))/log(10),log(frqs(i+1))/log(10),100)] end if dom=='c' then rf=freq(h(2),h(3),%i*xt); else rf=freq(h(2),h(3),exp(%i*xt)); end // xmin=mini(real(rf));xmax=maxi(real(rf)) ymin=mini(imag(rf));ymax=maxi(imag(rf)) bnds=[xmin xmax ymin ymax] dx=max([xmax-xmin,1]);dy=max([ymax-ymin,1]) // Compute discretization with a step adaptation method // ---------------------------------------------------- frq=[] i=1, nptr=nptmax // number of unused discretization points l10last=log10(frqs($)) while i<nfrq f0=frqs(i);fmax=frqs(i+1); while f0==fmax do i=i+2 f=frqs(i);fmax=frqs(i+1) end frq=[frq,f0] pas=(fmax-f0)/100 splitf=[splitf size(frq,'*')] f=mini(f0+pas,fmax), if dom=='c' then //cas continu while f0<fmax rf0=freq(h(2),h(3),(%i*f0)) rfc=freq(h(2),h(3),%i*f); // compute prediction error epsd=pas/100;//epsd=1.d-8 rfd=(freq(h(2),h(3),%i*(f0+epsd))-rf0)/(epsd); rfp=rf0+pas*rfd e=maxi([abs(imag(rfp-rfc))/dy;abs(real(rfp-rfc))/dx]) if (e>k) then // compute minimum frequency logarithmic step to ensure a maximum //of nptmax points to discretize pasmin=f0*(10^((l10last-log10(f0))/(nptr+1))-1) pas=pas/2 if pas<pasmin then pas=pasmin frq=[frq,f];nptr=max([1,nptr-1]) f0=f;f=mini(f0+pas,fmax) else f=mini(f0+pas,fmax) end elseif e<k/2 then pas=2*pas frq=[frq,f];nptr=max([1,nptr-1]) f0=f;f=mini(f0+pas,fmax), else frq=[frq,f];nptr=max([1,nptr-1]) f0=f;f=mini(f0+pas,fmax), end end else //cas discret pas=pas/dom while f0<fmax rf0=freq(h(2),h(3),exp(%i*f0)) rfd=dom*(freq(h(2),h(3),exp(%i*(f0+pas/100)))-rf0)/(pas/100); rfp=rf0+pas*rfd rfc=freq(h(2),h(3),exp(%i*f)); e=maxi([abs(imag(rfp-rfc))/dy;abs(real(rfp-rfc))/dx]) if (e>k) then pasmin=f0*(10^((l10last-log10(f0))/(nptr+1))-1) pas=pas/2 if pas<pasmin then pas=pasmin frq=[frq,f];nptr=max([1,nptr-1]) f0=f;f=mini(f0+pas,fmax) else f=mini(f0+pas,fmax) end elseif e<k/2 then pas=2*pas frq=[frq,f];nptr=max([1,nptr-1]) f0=f;f=mini(f0+pas,fmax), else frq=[frq,f];nptr=max([1,nptr-1]) f0=f;f=mini(f0+pas,fmax), end end end i=i+2 end frq( size(frq,'*') )=fmax frq=frq/c;
40361ec65f3a093ab155c0bb72711274e4d99749
c1c5a8dc79cacf3b419bad77881213c5db2f80c3
/AdventOfCode2018/10.tst
dc0fea0146f54d1fd121c2d59366f7aac36995c8
[]
no_license
EoinDavey/Competitive
7ff8b6b6225814ac60c3ace659bb63190eb52420
b2b6909b93f5c073b684477f8a4b06dac22ec678
refs/heads/master
2023-01-08T00:06:19.076941
2022-12-26T14:00:31
2022-12-26T14:00:31
67,259,478
17
1
null
2022-01-19T18:17:59
2016-09-02T22:46:26
C++
UTF-8
Scilab
false
false
1,178
tst
10.tst
position=< 9, 1> velocity=< 0, 2> position=< 7, 0> velocity=< -1, 0> position=< 3, -2> velocity=< -1, 1> position=< 6, 10> velocity=< -2, -1> position=< 2, -4> velocity=< 2, 2> position=< -6, 10> velocity=< 2, -2> position=< 1, 8> velocity=< 1, -1> position=< 1, 7> velocity=< 1, 0> position=< -3, 11> velocity=< 1, -2> position=< 7, 6> velocity=< -1, -1> position=< -2, 3> velocity=< 1, 0> position=< -4, 3> velocity=< 2, 0> position=< 10, -3> velocity=< -1, 1> position=< 5, 11> velocity=< 1, -2> position=< 4, 7> velocity=< 0, -1> position=< 8, -2> velocity=< 0, 1> position=< 15, 0> velocity=< -2, 0> position=< 1, 6> velocity=< 1, 0> position=< 8, 9> velocity=< 0, -1> position=< 3, 3> velocity=< -1, 1> position=< 0, 5> velocity=< 0, -1> position=< -2, 2> velocity=< 2, 0> position=< 5, -2> velocity=< 1, 2> position=< 1, 4> velocity=< 2, 1> position=< -2, 7> velocity=< 2, -2> position=< 3, 6> velocity=< -1, -1> position=< 5, 0> velocity=< 1, 0> position=< -6, 0> velocity=< 2, 0> position=< 5, 9> velocity=< 1, -2> position=< 14, 7> velocity=< -2, 0> position=< -3, 6> velocity=< 2, -1>