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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e1fbdb4b6700e77ea942dbfe19343ac3116ab3f9 | 8bc3db23a5d529db4890d8519e83f3805d433d30 | /apps/institution-api-typewriter/typewriter/_ModelGenerator.tst | f2721e6757499919f4e07e96ac5007e2aa01eaa0 | [] | no_license | robgov/test123 | d92d94762f59677993944e2685168dd159e75f7c | 23ef659eed606a80ed8b763cbe0bfedb8b89f2eb | refs/heads/AEPMP-274 | 2023-06-18T21:54:22.085418 | 2021-06-25T21:34:32 | 2021-06-25T21:34:32 | 379,736,676 | 0 | 0 | null | 2021-06-29T15:29:45 | 2021-06-23T21:48:02 | TypeScript | UTF-8 | Scilab | false | false | 6,706 | tst | _ModelGenerator.tst | ${
// Enable extension methods by adding using Typewriter.Extensions.*
using Typewriter.Extensions.Types;
using System.Text.RegularExpressions;
using System.Text;
static string appPath = "../../../";
static string libsCommonPath = appPath + "libs/common/";
// Uncomment the constructor to change template settings.
Template(Settings settings)
{
settings.IncludeProject("institution-api");
settings.OutputExtension = ".ts";
settings.PartialRenderingMode = PartialRenderingMode.Partial;
settings.OutputFilenameFactory = file =>
{
var modelClass = file.Classes.First();
var fullFileName = file.FullName;
var tsName = $"{ToTsFileName(modelClass.name)}.ts";
//defaults to common, since most of the models belong to it (this may change in the future)
return $"{libsCommonPath}models/{tsName}";
};
}
static string[] ignoreModels = new string[]
{
"AEDMContext",
"AEDigital_SYSTContext",
"migration-log",
"migration-log-current",
"schema-snapshot"
};
string BaseClassExtends(Class c) => (c.BaseClass != null) ? string.Format(" extends {0}", c.BaseClass.Name) : null;
string SuperConstructor(Typewriter.CodeModel.Class c) => (c.BaseClass == null) ? null : "super();";
string ToTsFileName(string name)
{
var dashed = Regex.Replace(name, "([a-z])([A-Z])", "$1-$2");
var className = dashed.ToLowerInvariant().Replace("-model", ".model");
return className;
}
static string PropertyName(Property property)
{
if (property.Name.ToLower() == "this" ||
property.Name.ToLower() == "this[]" ||
property.Type.Name.ToLower().Contains("datatable") ||
property.Type.Name.ToLower().Contains("httppostedfilebase"))
{
return "";
}
else
{
string propertyDefault = "";
string propertyTypeName = property.Type.Name;
if (property.Type.IsNullable)
propertyDefault = "";
else if (property.Type.Name.ToLower() == "string")
propertyDefault = " = ''";
else if (property.Type.Name.ToLower() == "number")
propertyDefault = " = 0";
else if (property.Type.Name.ToLower() == "boolean")
propertyDefault = " = false";
else if (property.Type.Name.ToLower() == "date")
{
propertyDefault = " = ''";
propertyTypeName = "string";
}
else if (property.Type.Name.ToLower().Contains("[]"))
propertyDefault = " = []";
else if (property.Type.Name.ToLower().Contains("[key: string]"))
propertyDefault = " = {}";
else if (property.Type.Name.ToLower() == "iformfile")
{
propertyDefault = "";
propertyTypeName = "Blob";
}
else
propertyDefault = " = new " + property.Type.Name + "()";
return string.Format("public {0}: {1}{2};", property.name, propertyTypeName, propertyDefault);
}
}
string GetPackageName(string className, string fullClassName, string tsName)
{
if (ignoreModels.Contains(className))
{
return "@aed/libs/shared/models/" + tsName;
}
return "./" + tsName;
}
string Imports(Typewriter.CodeModel.Class c)
{
Dictionary<string, string> propertyDictionary = new Dictionary<string, string>();
StringBuilder importBuilder = new StringBuilder();
// base class
if (c.BaseClass != null)
{
// importBuilder.Append(string.Format("import {{ {0} }} from './{1}';", c.BaseClass.Name, ToTsFileName(c.BaseClass.Name)));
var packageName = GetPackageName(c.BaseClass.Name, c.BaseClass.FullName, ToTsFileName(c.BaseClass.Name));
importBuilder.Append(string.Format("import {{ {0} }} from '{1}';", c.BaseClass.Name, packageName));
importBuilder.AppendLine();
}
foreach (var property in c.Properties)
{
if (property.Type.Name == "IFormFile") continue;
if (property.Type.IsEnum || (!property.Type.IsPrimitive && property.Type.Name != "any"))
{
string typeName = property.Type.Name;
if (typeName.Contains("[]"))
{
typeName = typeName.Replace("[]", string.Empty);
}
if (!propertyDictionary.ContainsKey(typeName) && typeName != c.Name
&& typeName.ToLower() != "datatable" &&
typeName.ToLower() != "httppostedfilebase")
{
propertyDictionary[typeName] = typeName;
var packageName = GetPackageName(typeName, property.Type.FullName, ToTsFileName(typeName));
importBuilder.Append(string.Format("import {{ {0} }} from '{1}';", typeName, packageName));
importBuilder.AppendLine();
}
}
// dictionaries with non-primitive types
if (property.Type.IsGeneric && property.Type.TypeArguments.Any())
{
foreach(var typeArg in property.Type.TypeArguments.Where(a => !a.IsPrimitive))
{
string typeName = typeArg.ClassName();
//may need this later
//var packageName = GetPackageName(typeArg.FullName, ToTsFileName(typeName));
//importBuilder.Append(string.Format("import {{ {0} }} from '{1}';", typeName, packageName));
if (!propertyDictionary.ContainsKey(typeName) && !typeName.StartsWith("any"))
{
propertyDictionary[typeName] = typeName;
importBuilder.Append(string.Format("import {{ {0} }} from './{1}';", typeName, ToTsFileName(typeName)));
importBuilder.AppendLine();
}
}
}
}
return importBuilder.ToString();
}
}
$Classes(c => c.Namespace.StartsWith("ProviderApi.Models") && (!ignoreModels.Contains(c.Name)))[
$Imports
export class $Name$BaseClassExtends {$Properties[
$PropertyName]
constructor(init? : Partial<$Name>) {
$SuperConstructor
Object.assign(this, init);
}
}]
|
e86de46fa8eba0c4f4c21051d6842b766b88174d | 20479ef6060920bd3d37ae74ecd2129f8ba8f29e | /Questao11.sce | 7b49eba570d489d27a33217c4586944b26659671 | [] | no_license | andersonvalentim/Atividade-Denilson-Scilab-UFERSA- | db4b58fc082bd80f076e67908435674f49ce45e4 | 4d02ddd342681165028ea6b4ebc7ec6d8bb7d9a9 | refs/heads/master | 2021-09-12T15:30:30.076790 | 2018-04-18T01:58:47 | 2018-04-18T01:58:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 786 | sce | Questao11.sce | printf("Selecione Seu Cargo\n");
printf("1-Escriturário \n ");
printf("2-Secretário \n");
printf("3-Caixa \n");
printf("4- Gerente");
escolha= input("Digite a opcao correspondente");
salario = input("Digite seu salario");
select escolha
case 1 then
reumeracao=pagamento+ salario*0.50;
printf("aumento de 50 porcento para o escriturário: %g",remuneracao);
case 2 then
remuneracao=pagamento+ pagamento*0.35;
printf("aumento 35 porcento para o secretário : %g ",remuneracao);
case 3 then
adicional=pagamento+ pagamento*0.20;
printf(" aumento de 20 porcento para o caixa %g ",remuneracao);
case 4 then
adicional=pagamento+ pagamento*0.10;
printf("Aumento de 10 porcento para o gerente $g ",remuneracao);
else
printf("Opção invalida");
end
|
d11e0549e9e78aa2d10e48f3d1d3eb2098a633d3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /564/DEPENDENCIES/17_1data.sci | ac24239378d02111c26b43df72dda26c65c3b486 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 45 | sci | 17_1data.sci | h=100;//in mm
t=2;//in mm
Sy=200;//in N/mm^2
|
679b21adc1ce926ea8ad5b3ca479dc801aa24b21 | 4b23780b6d64c6c05ac10deda01521b98af8284f | /Item02/Item02.sci | afbeffd4c69ddf98b4b5a37b418e1e5d730497c9 | [] | no_license | SumrainChan/Numerical-Calculation-Collection | 7ab48f125e2b2a16906270f894adb0760d15b55f | d583df6ba68ba25962c7f08985c0f0c70e53b051 | refs/heads/master | 2020-07-10T13:07:07.093579 | 2019-08-25T09:11:48 | 2019-08-25T09:11:48 | 204,269,639 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,318 | sci | Item02.sci | function [F] = getNewtonF(x, y, n)
F = zeros(n, n)
for j=1:n
F(j, j) = y(j)
end
for i=2:n
for j=1:n+1-i
F(j, j+i-1) = (F(j+1, j+i-1) - F(j, j+i-2)) / (x(j+i-1) - x(j))
end
end
endfunction
function [result] = getNewtony(F, x, n, rx)
result = F(1, 1)
for i=2:n
tmp = 1
for j=1:i-1
tmp = tmp * (rx - x(j))
end
result = result + F(1, i) * tmp
end
endfunction
function [x] = getx_evenlyspace(n)
x = linspace(-1, 1, n)
endfunction
function [x] = getx_chebyshev(n)
odd = [1:2:2*n-1]
for i=1:n
x(i) = cos(odd(i) * %pi / (2 * n))
end
endfunction
function [y] = gety(x)
y = zeros(1, length(x))
for i=1:length(x)
y(i) = exp(-2 * x(i))
end
endfunction
// 计算误差
N = 40
x_es = getx_evenlyspace(N)
x_cbs = getx_chebyshev(N)
y_es_real = gety(x_es)
y_cbs_real = gety(x_cbs)
F_es = getNewtonF(x_es, y_es_real, N)
F_cbs = getNewtonF(x_cbs, y_cbs_real, N)
cnt = 1
for i=-1:0.05:1
y_es_et(cnt) = getNewtony(F_es, x_es, N, i)
y_cbs_et(cnt) = getNewtony(F_cbs, x_cbs, N, i)
y_real_et(cnt) = gety(i)
cnt = cnt + 1
end
y_es_error = abs(y_real_et - y_es_et)
y_cbs_error = abs(y_real_et - y_cbs_et)
|
20c2ce7b35953b7785c7f4559be0c465b14abe30 | 449d555969bfd7befe906877abab098c6e63a0e8 | /698/CH14/EX14.12/P12_Conditions_appropriate_for_uniform_pressure.sce | fc6092a0fd37ea73c2a13d5f1d1a3e51b20ca271 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 750 | sce | P12_Conditions_appropriate_for_uniform_pressure.sce | clc
//Example 14.12
//Conditions preferring uniform pressure
//------------------------------------------------------------------------------
//This example is derivation based, hence the code will comprise only of statements printed to text file
//Printing result file to .txt
res12=mopen(TMPDIR+'12_conditions_appropriate_for_uniform_pressure.txt','wt')
mfprintf(res12,"Uniform pressure assumption is more appropriate where the plates are\nflexible to permit deflection when wear occurs.\n")
mclose(res12)
editor(TMPDIR+'12_conditions_appropriate_for_uniform_pressure.txt')
//------------------------------------------------------------------------------
//-------------------------------End of program--------------------------------- |
e26a11bd5efe818cc81ff766332fce5bd253209f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1442/CH12/EX12.3/12_3.sce | 8c1ae21a9afb23c5c5a8c677ad57ea70430fa430 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 570 | sce | 12_3.sce | clc
//initialisation of variables
m1= 0.5 //kg
cv1= 0.6496 //kJ/kg K
T1= 80 //C
m2= 1 //kg
cv2= 0.6299 //kJ/kg K
T2= 150 //C
M= 32 //kg
M1= 44 //kg
V1= 0.11437 //m^3
V2= 0.1 //m^2
R= 8.314 //J/mol K
//CALCULATIONS
T= (m1*cv1*(273.15+T1)+m2*cv2*(273.15+T2))/(m1*cv1+m2*cv2)
p= ((m1/M)+(m2/M1))*R*T/(V1+V2)
S= m1*(cv1*log(T/(273.15+T1))+(R/M)*log((V1+V2)/V1))+m2*(cv2*log(T/(273.15+T2))+(R/M1)*log((V1+V2)/V2))
//RESULTS
printf (' final temperature= %.1f kPa',T)
printf (' \n final pressure= %.1f kPa',p)
printf (' \n change in entropy= %.4f kJ/K',S)
|
88032fc716f807da6820b96a987c2b8004940bbd | 376cc57931b03e132880ccde1bea275ddf5a546a | /Расчет рамы N133.sce | 143721466d8928bbcf5cb64b7978a92e57ce9fc4 | [] | no_license | andrew-timoschenko/Frame | ca94b201285ba2b0b0778795a3b14e7d9d28ed58 | d4ba345da12c5f79678ca0ba72d4147de3b39e57 | refs/heads/master | 2021-01-18T14:45:03.895854 | 2012-09-04T19:35:56 | 2012-09-04T19:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,603 | sce | Расчет рамы N133.sce | // Scilab ( http://www.scilab.org/ ) - This file is created for Scilab 5
// Copyright (C) 2011 - Andrew Timoschenko <andrew.timoschenko@yandex.ru>
// This file must be used under the terms of the (CC)BY-SA licence.
// Version 1.01 from 23/08/2012
// не проверен
// Определение усилий и моментов в раме по схеме 133 [Бычков Д.В. Формулы и графики для расчета рам. -М.: Госстройиздат, 1957]
// для стоек и распорки прямоугольного сечения.
clear;clc; m=1.0; Pa=1; N=1; mm=0.001; kN=1000; MN=1e6; kPa=1000; MPa=1e6; GPa=1e9; mm2=mm^2; kNm=1000; // Подготовка консоли и размерности
// Стойка рамы
b1=0.800*m; h1=1.200*m; l1=2.400*m; J1=0; // если стойка прямоугольная принять J1=0; иначе - ввести численное значение момента инерции площади поперечного сечения
// Ригель рамы
b2=0.800*m; h2=1.200*m; l2=4.000*m; J2=0; // если ригель прямоугольный принять J1=0; иначе - ввести численное значение момента инерции площади поперечного сечения
// Нагрузка
P=1545.0*kN; u=0.31;
// l схема 133, с.102
//
// /--u*l--/------v*l----/
//
// P |
// v
// c --------+-------------- d
// | |
// | | h
// | |
// a | b |
// ------- -------
// / / / / / / / /
//
// ==================== Calculation begin ====================================
v=1-u
//
if J1==0 then J1=b1*h1**3/12
end
if J2==0 then J2=b2*h2**3/12
end
//
h=l1; l=l2;
mu=J2/J1*h/l;
K=1/(2+mu);
L=1/(1+6*mu);
mu=round(mu*1000)/1000; K=round(K*1000)/1000; L=round(L*1000)/1000;
//
M_c=[0.5*(v-u)*L+K]*P*u*v*l;
M_d=[K-0.5*(v-u)*L]*P*u*v*l;
M_a=[K-(v-u)*L]*P*u*v*l/2;
M_b=[K+(v-u)*L]*P*u*v*l/2;
M_p=[1-K-0.5*(v-u)**2*L]*P*u*v*l;
M_c=round(M_c/100)*100; M_d=round(M_d/100)*100; M_a=round(M_a/100)*100; M_b=round(M_b/100)*100; M_p=round(M_p/100)*100;
//
H=1.5*K*P*u*v*l/h;
V_a=[1+u*(v-u)*L]*P*v;
V_b=[1-u*(v-u)*L]*P*u;
H=round(H/100)*100; V_a=round(V_a/100)*100; V_b=round(V_b/100)*100;
// ========================= Report ===================================
printf('\nJ1='+string(J1)+' м4.\n');
printf('J2='+string(J2)+' м4.\n\n');
printf('#mu='+string(mu)+'; ');
printf('K='+string(K)+'; ');
printf('L='+string(L)+'.\n\n');
printf('M_c='+string(M_c/kNm)+' кНм.\n');
printf('M_d='+string(M_d/kNm)+' кНм.\n\n');
printf('M_a='+string(M_a/kNm)+' кНм.\n');
printf('M_b='+string(M_b/kNm)+' кНм.\n\n');
printf('M_p='+string(M_p/kNm)+' кНм.\n\n');
printf('H='+string(H/kN)+' кН.\n');
printf('V_a='+string(V_a/kN)+' кН.\n');
printf('V_b='+string(V_b/kN)+' кН.\n');
// Changelog
// 1.00 25.04.2012
// 1.01 23.08.2012
// Добавлена возможность расчета для стержней произвольного сечения через использование численных характеристик J.
// Если J1,2=0 момент инерции площади сечения вычисляется как для прямоугольного сечения
|
d89147906ba2c72b5943300ebc8f6b667a045cb6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /40/CH9/EX9.7/Exa_9_7.sce | a5b0811a4323e6218cd451ec201e2182821214d6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 891 | sce | Exa_9_7.sce | //DTFT of numerical algorithms
//(a)For trapezoidal numerical integrator
ieee(2)
F=0:0.01:0.2;
HTF=1/(%i*2*tan(%pi*F'));
HIF=1/(%i*2*%pi*F');
Ha=1-((%pi*F')^2)/3-((%pi*F')^4/45);
//(b)For simphson's numerical integrator
Hb=((2*%pi*F')).*((2+cos(2*%pi*F'))./(3*sin(2*%pi*F')));
//For forward difference operator
HFF=(%e^(%i*2*%pi*F'))-1;
HDF=1/(%i*2*%pi*F');
Hc=1+(%i*2*%pi*F')/2-(2*%pi*F')^2/6;
Hc=abs(Hc);
//for central difference operator
HCF=sin(2*%pi*F')./(%i*4*%pi*%pi*F'^2);
Hd=abs(sin(2*%pi*F')./(2*%pi*F'));
length(F),length(Ha)
a=gca();
a.x_location="origin";
plot2d(F,Ha,rect=[0,0.8,0.2,1.1]);
plot2d(F,Hb);
xtitle("Magnitude spectrum of Integration algorithms","Digital Frequency F","Magnitude");
xset('window',1);
plot2d(F,Hc,rect=[0,0.8,0.2,1.1]);
plot2d(F,Hd);
xtitle("Magnitude spectrum of difference algorithms","Digital Frequency F","Magnitude");
|
8cd01787a40be2040ddac5d7cbeb394447e2cb15 | 449d555969bfd7befe906877abab098c6e63a0e8 | /165/CH11/EX11.12/ex11_12.sce | a7ba68c35c8e6ecc4861caf589a2396807260558 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 375 | sce | ex11_12.sce | //Example 11.12
clc;
//Wein's Bridge
//Given values of bridge elements
R1=3100;
C1=5.2*10^-6;
R2=25000;
R4=100000;
f=2.5*10^3; //frequency in Hz
w=2*%pi*f;
//R3 for Wein's bridge
R3=(R1+invr(R1*(w*C1)^2))*R4/R2;
//C3 for Wein's bridge
C3=(C1*invr((w*R1*C1)^2))*R2/R4;
printf('\nValue of resistence R3 is %.2f ohm\n',R3)
disp(C3,'Value of capacitance C3 is') |
0ddac4cc72c063f5c5084e69d227510fb366e721 | 4a1949be12fbe9a81d9308381b34c611e65877ca | /tests/syntaxicaux/erreur_syntaxe.tst | 4ca3ea8a43437a5135db19bc1e1383401ccd8445 | [] | no_license | ng88/trad | 26439d8fe2284ece19d6fbfaa397d3f6f0d13e78 | e4d3d4d56928539144d30c5c49e01e65c9b8729c | refs/heads/master | 2020-12-05T07:31:25.854231 | 2008-02-29T10:15:34 | 2008-02-29T10:15:34 | 67,351,952 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 109 | tst | erreur_syntaxe.tst | class MaClasse
public MaClasse() {}
public private string fonc()
{
}
end
|
27acbe598435b5675543bfc2910bf8e94173e1ae | 2eb5af42eb6d1b5d884fddf523feaaaa466d7907 | /knn.sce | 3c7b15e901fe62e444971a1edd4ad0b56c5c6e64 | [] | no_license | eddyrene/robust-knn-classifier- | 11532499d33df9e32efab04ab0c2652d93319eff | 7a35439a4d74618ca4ebed065acdcbe68bf4650a | refs/heads/master | 2020-03-20T08:11:42.680961 | 2018-06-14T03:36:42 | 2018-06-14T03:36:42 | 137,301,606 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,496 | sce | knn.sce | //Nome : Eddy Rene Caceres Huacarpuma
//funcion euclidiana
function output = euclidian(x1,x2,y1,y2)
output = sqrt((x1-x2)^2 + (y1-y2)^2);
endfunction
//le a data c
function output = readFile()
M=csvRead("data\data_total2.txt", ',');
output = M;
endfunction
//le as etiquetas da teste
function output = labelSet()
M=csvRead("data\label.txt", ',');
output = M;
endfunction
// normaliza a data inicial e separa para training e teste
function a = trainSet()
matrix=readFile();
maxCol1= max(matrix(:,1))
minCol1= min(matrix(:,1))
maxCol2= max(matrix(:,2))
minCol2= min(matrix(:,2))
newCol1 = (matrix(:,1) - minCol1)/(maxCol1-minCol1);
newCol2 = (matrix(:,2) - minCol2)/(maxCol2-minCol2);
//b = list (minCol1, maxCol1,minCol2,maxCol2);
//disp(newCol2);
matrix(:,1)=newCol1;
matrix(:,2)=newCol2;
train=matrix(1:40,:);
test =matrix(41:60,:);
a = list(train , test);
endfunction
//grafica o data inicial
function graficar_inicio()
data=trainSet();
x= data(1);
y= data(2);
a=[1:1:20];
scatter(x(a,1),x(a,2),'red',"fill");
b=[21:1:40];
scatter(x(b,1),x(b,2),'blue',"fill");
a=[1:1:10];
scatter(y(a,1),y(a,2),'darkred',"fill");
b=[11:1:20];
scatter(y(b,1),y(b,2),'darkcyan',"fill");
hl=legend(['train-lentilhas';'train-melancia';'test-lentilhas';'test-melancia'],2);
endfunction
//Grafica o resultado de teste
function graficar_resultado(x,y)
a=[1:1:20];
scatter(x(a,1),x(a,2),'red',"fill");
b=[21:1:40];
scatter(x(b,1),x(b,2),'blue',"fill");
a=[1:1:10];
scatter(y(a,1),y(a,2),'yellow',"fill");
b=[11:1:20];
scatter(y(b,1),y(b,2),'green',"fill");
hl=legend(['train-lentilhas';'train-melancia';'test-lentilhas';'test-melancia'],2);
endfunction
//Algoritmo de knn
function output = knn(k)
data=trainSet();
x= data(1);
t= data(2);
rpta = ones(20,1);
for i = 1:20;
vect = ones(40,2);
for j=1:40
vect(j,1) =euclidian(t(i,1),x(j,1),t(i,2),x(j,2));
vect(j,2) =x(j,3);
end
//disp(vect)
vect= gsort(vect,'lr','i'); //ordena tudo de menor a maior, de acordo a primer col
nn_vect = vect(1:k,:); // vizinho mais cercanos
//disp(nn_vect);
tmp= zeros(1,2);
for m=1:k
if(nn_vect(m,2) == 1) then
tmp(1,1)=tmp(1,1)+1;
else
tmp(1,2)=tmp(1,2)+1;
end
end
[val ind]=max(tmp);
rpta(i,1)=ind;
end
t(:,3)=rpta;
//graficar_resultado(x,t);
output = rpta;
endfunction
//Error meio quadratico
function salida = errorQuadratico(prediccao, label)
error= 1000;
error=sum((prediccao-label)^2)/20;
salida=error;
endfunction
//Emcontra o melhores valores k para o menor error.
function graphErros()
label=labelSet();
errVect=[];
for i=1:1:40
pred=knn(i);
errVect(i)=errorQuadratico(pred,label);
end
j =[1:1:40];
errVect=errVect';
disp(j)
disp(errVect)
plot(j, errVect, '-')
end
// *******************************************************//
figure(1)
graficar_inicio()
figure(2)
knn(8)
//execucao do erros, comentar linea 89 "graficar_resultado(x,t);" para nao mostrar todas as gráficas
graphErros();
|
8fc1d13b631cd999b7eec34d27c9c23c0619e4cd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2384/CH5/EX5.17/ex5_17.sce | 9754ebf2ee8a5956754f074423d3ac85bb5cc2ca | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 776 | sce | ex5_17.sce | // Exa 5.17
clc;
clear;
close;
format('v',7)
// Given data
V_L = 400;// in V
f = 50;// in Hz
W1 = 8000;// in W
W2 = 4000;// in W
W = W1+W2;// in W
phi =(atand( sqrt(3)*((W1-W2)/(W1+W2)) ));// in lag
P = W;// in W
//P = sqrt(3)*V_L*I_L*cosd(phi);
I_L = P/(sqrt(3)*V_L*cosd(phi));// in A
V_Ph = V_L/sqrt(3);// in V
I_Ph = I_L;// in A
Z_Ph = V_Ph/I_Ph;// in ohm
Z_Ph= Z_Ph*expm(phi*%i*%pi/180);// ohm
R_Ph= real(Z_Ph);// in ohm
XL_Ph= imag(Z_Ph);// in ohm
L_Ph= XL_Ph/(2*%pi*f);// in H
// power factor
pf= cosd(phi);
disp(pf,"The power factor is : ")
disp(I_L,"The line current in A is");
disp(Z_Ph,"The impedance of each phase in Ω is : ")
disp(R_Ph,"The resistance of each phase in Ω is : ")
disp(L_Ph,"The inductance of each phase in H is : ")
|
c15fd64368242993f78cf3859e51f8a2ee0edd20 | 449d555969bfd7befe906877abab098c6e63a0e8 | /243/CH15/EX15.6/15_06.sce | 69db894662fbd5ae211133897c73c98162a7376b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 480 | sce | 15_06.sce | //Example No. 15_06
//Crank-Nicholson Implicit Method
//Pg No. 497
clear ; close ; clc ;
h = 1 ;
k = 2 ;
tau = h^2/(2*k)
for i = 2:4
f(1,i) = 50*( 4 - (i-1) )
end
f(1:5,1) = 0 ;
f(1:5,5) = 0 ;
A = [4 -1 0 ; -1 4 -1 ; 0 -1 4]
for j = 1:4
for i = 2:4
B(i-1,1) = f(j,i-1) + f(j,i+1)
end
C = A\B
f(j+1,2) = C(1)
f(j+1,3) = C(2)
f(j+1,4) = C(3)
end
disp(f,'The final solution using crank nicholson implicit method is ') |
2627080bb7952d5e10b1e247809b3bd3982ae485 | 36d8657c2551e213b52d6d2a177e438bbb602241 | /nand2tetris/projects/04/tests/triangulo.tst | c22b8978e2bacb175163d786207f843aaf12a4a0 | [] | no_license | nukelet/mc404-2021-1 | ffe4b77e475e4643f64183d7c34386baf3a74c42 | c00a0b57b44051780fb87ccefe528aec64124a80 | refs/heads/main | 2023-06-12T21:01:58.435578 | 2021-07-06T14:43:29 | 2021-07-06T14:43:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 930 | tst | triangulo.tst | load triangulo.hack,
output-file triangulo.out,
compare-to triangulo.cmp,
output-list RAM[4]%D2.6.2;
set RAM[0] 5,
set RAM[1] 8,
set RAM[2] 10,
set RAM[4] 2;
repeat 200 {
ticktock;
}
output;
set PC 0,
set RAM[0] 50,
set RAM[1] 8,
set RAM[2] 10,
set RAM[4] 2;
repeat 200 {
ticktock;
}
output;
set PC 0,
set RAM[0] 3,
set RAM[1] 6,
set RAM[2] 5,
set RAM[4] 2;
repeat 200 {
ticktock;
}
output;
set PC 0,
set RAM[0] 5,
set RAM[1] 80,
set RAM[2] 10,
set RAM[4] 2;
repeat 200 {
ticktock;
}
output;
set PC 0,
set RAM[0] 3,
set RAM[1] 4,
set RAM[2] 6,
set RAM[4] 2;
repeat 200 {
ticktock;
}
output;
set PC 0,
set RAM[0] 5,
set RAM[1] 8,
set RAM[2] 100,
set RAM[4] 2;
repeat 200 {
ticktock;
}
output;
set PC 0,
set RAM[0] 3,
set RAM[1] 3,
set RAM[2] 6,
set RAM[4] 2;
repeat 200 {
ticktock;
}
output;
set PC 0,
set RAM[0] 3,
set RAM[1] 3,
set RAM[2] 5,
set RAM[4] 2;
repeat 200 {
ticktock;
}
output;
|
5349b198b609ddb7c5ba1e0fee28a2c1ba2d7748 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1049/CH4/EX4.17/ch4_17.sce | 928ca7af0dcb43e1c7d5aea585cc89f036b1ce4d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 657 | sce | ch4_17.sce | clear;
clc;
V_s=sqrt(2)*230; //V
L=15*10^-6; //H
I=V_s/L; //I=(di/dt)_max
printf("(di/dt)_max=%.3f A/usec",I/10^6);
R_s=10; //ohm
v=I*R_s; //v=(dv/dt)_max
printf("\n(dv/dt)_max=%.2f V/usec",v/10^6);
f=50; //Hz
X_L=L*2*%pi*f;
R=2;
I_max=V_s/(R+X_L); printf("\nI_rms=%.3f A",I_max);
disp("when conduction angle=90");
FF=%pi/sqrt(2);
I_TAV=I_max/FF; printf("I_TAV=%.3f A",I_TAV);
disp("when conduction angle=30");
FF=3.98184;
I_TAV=I_max/FF; printf("I_TAV=%.3f A",I_TAV);
printf("\nvoltage rating=%.3f V",2.75*V_s);//rating is taken 2.75 times of peak working voltage unlike 2.5 to 3 times as mentioned int book. |
e73c434e5297a5fe3d038c8b442bb2b4f0fcdd0f | 91da29a7783c3162b1b743ad75d48814bd1f556e | /3_año/MF/Entrega2/algoritmoTE.sce | 30fdb060b5fcca2e9a1dd80e1034290a6f90080f | [] | no_license | jfarizano/LCC | a149631059129b07a7c603bf16df0c1b25479edb | 70cb03b0ff0a788b1bbbf1a6bcd51beff48460fe | refs/heads/master | 2022-11-15T14:46:36.171561 | 2022-11-10T21:15:13 | 2022-11-10T21:15:13 | 246,933,544 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 424 | sce | algoritmoTE.sce | function v = algoritmo(m, xf)
x = 0
k = 0.046
v2 = 0
incx = xf / 10
R = 0
flag = 0
while (x <= xf)
if flag == 2
incx = incx * 2
end
var = 19.6 - (2000 / m) * R
v2 = v2 + incx * var
R = k * v2
flag = flag + 1
x = x + incx
printf("x = %f, R = %f, var = %f, v2 = %f \n", x, R, var, v2)
end
v = sqrt(v2)
endfunction
|
aad8d559ab1192b7f0e6fedab771b7dbe71b9345 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3012/CH4/EX4.12/Ex4_12.sce | 32de95a51b0abc50554921d5183a3a362ab0bd97 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 972 | sce | Ex4_12.sce | // Given:-
Pv = 15.0 // pressure in the vessel in bar
Tv = 320.0 // temperature in the vessel in degree celcius
Vt = 0.6 // volume of a tank in m^3
Tt = 400.0 // temperature in the tank in degree celcius when the tank is full
// Since the tank is initially empty:-
m1 = 0
u1 = 0
// From table A-4, at 15bar and 400 degree celcius:-
v2 = 0.203 // Volume in m^3/kg
m2 = Vt/v2 // mass within the tank at the end of the process in kg
hi = 3081.9 // in kj/kg
u2 = 2951.3 // in kj/kg
// Calculations:-
deltaUcv = m2*u2-m1*u1
Wcv = hi*(m2-m1)-deltaUcv
// Results:-
printf( ' The amount of work developed by the turbine is %.2f kJ.',Wcv)
|
86e55e34f820ff3f0eb096c534482092d2c63504 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3871/CH11/EX11.6/Ex11_6.sce | 6bd391a01d2e5cf53e4c236ab7c35c57c29fad56 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 815 | sce | Ex11_6.sce | //===========================================================================
//chapter 11 example 6
clc;
clear all;
//variable declaration
R = 1; //resistace in Ω
V2 = 0.238-%i*0.085; //voltage across standard resistor in V
P = 10; //multiplying ower of potential divider
V1 = 0.3375+%i*0.232; //voltage across potential divider in V
//calculations
I = V2/R; //current through coil in A
V2 = P*V1; //voltage acrossthe coil in V
Z = V2/I; //impedance of coil in Ω
R1 = real(Z); // resistance of coil in Ω
X1 =imag(Z); //reactance of coil in Ω
//result
mprintf("resistance = %3.2f Ω",R1);
mprintf("\nreactance = %3.3f Ω",X1);
|
0de3985276f7d910130ccf6c7665d210263cee1f | 449d555969bfd7befe906877abab098c6e63a0e8 | /623/CH20/EX4.3.5/U4_C3_5.sce | bb3e63d00292236021513f3c5f2f87de76ad4e98 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 461 | sce | U4_C3_5.sce | //variable initialization
R=109737 //(cm-1)
n=1.805 //effective quantum number for the ground state of rubidium
//calculation
T=R/(8065*n^2); //ionization potential of rubidium (eV)
printf("\nThe ionization potential of rubidium = %.3f eV",T);
|
79295b8a55c3f57d55368fef4ef0e98932a9f48e | 449d555969bfd7befe906877abab098c6e63a0e8 | /761/CH14/EX14.17/14_17.sce | 74c38d9da2af9e6b5373611127055b5bf2aecc9b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 267 | sce | 14_17.sce | clc;
//page no 497
//prob no. 14.17
Zo=72;//line impedance in ohm
ZL=120-%i*100;//load impedance
//The stub must be inserted at a point on the line where the real part of the load admittance is correct. This alue is
s=1/Zo;
disp('S',s,'The value of stude is'); |
0c4d2119a0e329869e11db87c29b8db24298a21d | 449d555969bfd7befe906877abab098c6e63a0e8 | /647/CH4/EX4.10/Example4_10.sce | d8d3ed8f54a572fb6f71231e36ca3e4e4150c17d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 633 | sce | Example4_10.sce | clear;
clc;
// Example: 4.10
// Page: 129
printf("Example: 4.10 - Page: 129\n\n");
// Solution
//*****Data*****//
T2 = 1273;// [K]
T1 = 300;// [K]
deltaH_300 = -11030;// [cal/mol]
//*************//
// The chemical reaction involved is:
// N2 + 3H2 = 2NH3
// (1/2)N2 + (3/2)H2 = NH3
// deltaH_1273 = deltaH_300 + integrate('Cp_NH3(T) - (1/2)*Cp_N2(T) - (1/2)*Cp_H2(T)','T',1273,300);
deltaH_1273 = deltaH_300 + integrate('(6.2 + 7.8*10^(-3)*T - 7.2*10^(-6)*T^2) - (1/2)*(6.45 + 1.4*10^(-3)*T) - (1/2)*(6.94 - 0.2*10^(-3)*T)','T',1273,300);// [cal]
printf("Heat of formation at 1273 K is %d cal",deltaH_1273); |
d0305de76fe4853a8327271582fff632f3c2001c | 66106821c3fd692db68c20ab2934f0ce400c0890 | /test/jintgen/unr_ot_03.tst | d56e833e316519c471f6a706ee4c0ac0c43ca5ed | [] | no_license | aurelf/avrora | 491023f63005b5b61e0a0d088b2f07e152f3a154 | c270f2598c4a340981ac4a53e7bd6813e6384546 | refs/heads/master | 2021-01-19T05:39:01.927906 | 2008-01-27T22:03:56 | 2008-01-27T22:03:56 | 4,779,104 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 177 | tst | unr_ot_03.tst | // @Harness: verifier
// @Purpose: "Test for unresolved operand types"
// @Result: "UnresolvedOperandType @ 6:23"
architecture unr_type_01 {
instruction "I" a: A {
}
}
|
e797331ab9411bf6179889790a7f34541910f3c8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1634/CH2/EX2.6/example2_6.sce | f1bc7a64fbc81f28fab418ef41d96e2273063955 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 400 | sce | example2_6.sce |
//exapple 2.6
clc; funcprot(0);
// Initialization of Variable
h=500;//elevaton of point
f=20/100;//focal length
v=8.65/100;//vertical distance of photograph
ho=2000;//horizontal distance of photograph
R=v/ho;//representative fraction
H=h+f/R;
disp(H,"height above sea level in (m):");
h=800;
S=(H-h)/f/100;//scale of photograph
disp(S,"1cm in photograph represents metres:")
clear
|
e6ca582932021bc44215163b9e8997bf8ca0e42f | 449d555969bfd7befe906877abab098c6e63a0e8 | /29/CH12/EX12.17/exa12_17.sce | 7e9cd520dc219d201bd590387ea785b1853d7bbc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 740 | sce | exa12_17.sce | //caption:stability_using_Routh-hurwitz_criterion
//example 12.17
//page 530
s=%s;
syms K
G=sym('K/((s^3+3*s+2)*(s^2+6*s+24))');
H=1;
CH=((s^3+3*s+2)*(s^2+6*s+24)+K)
disp('=0',CH,"characterstics_eq,CH=")
c0=coeffs(CH,'s',0);
c1=coeffs(CH,'s',1);
c2=coeffs(CH,'s',2);
c3=coeffs(CH,'s',3);
c4=coeffs(CH,'s',4);
b=[c0 c1 c2 c3 c4 ]
routh=[b([5,3,1]);b([4,2]),0]
routh=[routh;-det(routh(1:2,1:2))/routh(2,1),routh(1,3),0]
routh(3,1)=simple(routh(3,1))
t=routh(2:3,1:2)
l=simple(-det(t)/t(2,1))
routh=[routh;l,0,0]
//routh=[routh;K,0,0]
disp(routh,"routh=")
disp("for given system to be stable,following condition should be satisfied");
disp("78.84-0.259K>0")
disp("which gives limiting value of K")
disp("K<288.9");
|
8926f0e182ca75e074e8092a93898c685a01f277 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH1/EX1.17/example1_17.sce | 2f7671e973d7e7db58a0aa393d4de59e8ff00b51 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 450 | sce | example1_17.sce | clc
// Given That
D = 1.20 // distance between source and eye piece in meter
Xn = 1.9e-2 // distance move by eye piece for 20 fringe in meter
n = 20 // no. of fringes
d = 6e-4 // distance between slits in meter
// Sample Problem 17 on page no. 1.45
printf("\n # PROBLEM 17 # \n")
lambda = (Xn * d) / (D * n)// calculation for wavelength
printf("\n Standard formula used \n beta = lambda*D/d.")
printf("\n Wavelength of light = %f A.", lambda*1e10)
|
3c9de2ab2f4c342a3c6d7e339ea60c05522d1529 | b26239033e0d21476c77ff50326b32231c2a3b00 | /Scripts/Soustraction.sci | 595656c4957cf94878f6dc62dff60b1350a5827e | [] | no_license | SmartGuyy/Exolife | 1c9a5bfdb8b16523e9681170fe4cb2cb12613e3a | eb477766dffe7edd9022d0cf46028980489c6277 | refs/heads/master | 2021-06-17T03:56:00.785128 | 2017-03-17T09:39:04 | 2017-03-17T09:39:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 533 | sci | Soustraction.sci | // fonction qui soustrait 2 images
function render=soustraction(img_input1,img_input2)
//Largeur - hauteur
[wd,he]=size(img_input1);
// On créer une image vierge pour la remplir de la soustraction
render = zeros(wd,he);
// Pour chaque colonne
for i=1:he
// Pour chaque ligne
for j=1:wd
pixels1 = img_input1(j,i);
pixels2 = img_input2(j,i);
// on rentre la soustraction dans l'image vierge
render(j,i) = max(pix1 - pix2,0);
end
end
endfunction
|
cb0d5024cd511d9ce02fea14c4d8ed18e9eca227 | 7ecca865462298179084718381ff87a7f8f54420 | /keyboard_controller/src/test_inputs_1.tst | bd93879199fb67dc1988ed20e17d3980543f379f | [] | no_license | sharonfeldman/keyboard_controller | 2a3c796af5b31c49e894d5dbe46a219a9df9c313 | 1cd2f059760256e76af8cfe4b9eb617bf4b76b1f | refs/heads/master | 2021-09-01T20:22:02.409579 | 2017-12-28T15:37:14 | 2017-12-28T15:37:14 | 114,936,496 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 97 | tst | test_inputs_1.tst | 559+11
8388607-608
8*7
111/3
0.75+8.25
456-0.123
0.1*0.00005
5/0.5
100000000000000000+2
|
9890e2a4d0e26ba263cf808f01c8cd83011b05db | 449d555969bfd7befe906877abab098c6e63a0e8 | /3250/CH6/EX6.10/Ex6_10.sce | 7bef113d3359e54ed4b504181f97658a2cc07feb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 509 | sce | Ex6_10.sce | clc
// Given that
R = 50 // Resistance in relaxation circuit in ohm
C = 10 // Capacitance in relaxation circuit in micro F
V = 200 // Supply voltage in Volt
V_ = 150 // Minimum required voltage for discharge in Volt
// Sample Problem 10 on page no. 382
printf("\n # PROBLEM 6.10 # \n")
E = (1/2)*C*(10^-6)*(V_^2)
tc = R*C*(10^-6)*log(V/(V-V_))
W = (E/tc)*(10^-3)
Q = 27.4*(W^(1.54))
Hrms = 1.11*(Q^0.384)
printf("\n Surface roughness = %f micro meter",Hrms)
// Answer in the book is given as 5.16 micro meter
|
7f66ca2b6d548e52c9f6ee93679a3cb19dd0de38 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2201/CH9/EX9.5/ex9_5.sce | 0bfa8dae47f05ef2c5a27a44a92725a35c756679 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 812 | sce | ex9_5.sce | // Exa 9.5
clc;
clear;
close;
// Given data
I_D= '0.3*(V_GS-V_P)^2';// given expression
V_DD= 30;// in V
V_P= 4;// in V
R_GS = 1.2*10^6;// in Ω
R_G = 1.2*10^6;// in Ω
Req= R_GS/(R_GS+R_G);// in Ω
R_D= 15;// in Ω
// V_DS= V_DD-I_D*R_D (applying KVL to drain circuit)
// V_GS= Req*V_DS= (V_DD-I_D*R_D)*Req
// from given expression
//I_D^2*(R_D*Req)^2 - I_D*(2*R_D*Req*(V_DD*Req-V_P)+1/0.3 + (V_DD*Req-V_P)^2)
A= (R_D*Req)^2;// assumed
B= -(2*R_D*Req*(V_DD*Req-V_P)+1/0.3);// assumed
C= (V_DD*Req-V_P)^2;// assumed
I_D= [A B C]
I_D= roots(I_D);// in mA
I_D= I_D(2);// in mA
I_DSQ= I_D;// in mA
disp(I_DSQ,"The value of I_DSQ in mA is : ")
V_GS= (V_DD-I_D*R_D);// in V
disp(V_GS,"The value of V_GS in volts is : ")
V_DS= Req*V_GS;// in V
disp(V_DS,"The value of V_DS in volts is : ")
|
3c1fb2470f621af956c53a9dc1b6d0187f93a4f8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3526/CH3/EX3.12/EX3_12.sce | c32d221a1e6910e6423ce5a9622373272c5c1f2f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 597 | sce | EX3_12.sce | //page 72
clc;funcprot(0);//EXAMPLE 3.12
// Initialisation of Variables
r1=0.066;.......//Radius of Mg+2 from Appendix B in nm
r2=0.132;.......//Radius of O-2 from Appendix B in nm
Am1=24.312;.......//Atomic masses of Mg+2 in g/mol
Am2=16;.......//Atomic masses of O-2 in g/mol
Na=6.02*10^23;......//Avogadro’s number
//CALCULATIONS
a0=2*r1+2*r2;...........//Lattice constant for MgO in nm
rho=((4*Am1)+(4*16))/((a0*10^-8)*Na);.....//Density of MgO in g/cm^3
disp(a0*10^-8,"Lattice constant for MgO in cm:")
disp(rho,"Density of MgO in g/cm^3:")
//Answer given in the book is wrong |
c31ba32c6fd480b30acd45132c79adc796852caf | 449d555969bfd7befe906877abab098c6e63a0e8 | /2333/CH3/EX3.14/14.sce | b653a5608e3435d4a7ed26bc4e661dd72085ec8a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 562 | sce | 14.sce | clc
// Given that
N = 4000 // Grating lines per cm
theta = 90 // for maximum order
lambda_min = 4000 // minimum wavelength of light in angstrom
lambda_max = 7500 // maximum wavelength of light in angstrom
// Sample Problem 14 on page no. 157
printf("\n # PROBLEM 14 # \n")
printf(" Standard formula used \n")
printf(" lambda/d_lambda = n*N \n")
n_max= sin(theta*%pi/180)/(N*lambda_min*1e-8) // minimum order observed
n_min= sin(theta*%pi/180)/(N*lambda_max*1e-8) // maximum order observed
printf("Visible orders are form %d to %d.",n_min,n_max)
|
3192290ebf0582446fb696254f047d966d010eba | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH2/EX2.06/2_06.sce | 54213d54cc0a010129795494a8eaa0735456d06d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 565 | sce | 2_06.sce | //Problem 2.06: A 100 V battery is connected across a resistor and causes a current of 5 mA to flow. Determine the resistance of the resistor. If the voltage is now reduced to 25 V, what will be the new value of the current flowing?
//initializing the variables:
I = 0.005; // in Ampere
V1 = 100; // in Volts
V2 = 25; // in Volts
//calculation:
//resistance
R = V1/I
//Current when voltage is reduced to 25 V,
I = V2/R
printf("\n\nResult\n\n")
printf("\nResistance(R): %.0f Ohms",R)
printf("\n Current when voltage is reduced to 25 V is %.2E A",I) |
31fcc6a270dd63f9e7bbb6cd5fe87009dfe20ea4 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/HR3.prev.tst | eed4c52b82779f06c4a4f4115b3321e720b26b0c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 168 | tst | HR3.prev.tst | polys[0]=0
polys[1]=1
polys[2]=1
polys[3]=-1
order=2
initialize: mN=-1, mRElen=3, mNPlen=1, mOrder=2, mLinit=2
1,4,20,112,688,4544,31936,236800,1841408,14943232
|
627f0684fcc7d14a346ffeb5b4d059f0136a82ee | 449d555969bfd7befe906877abab098c6e63a0e8 | /2276/CH11/EX11.13/chapter11_ex13.sce | b9f24a342c66c39db4bf8de694100ac4ee6eccd7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 326 | sce | chapter11_ex13.sce | clc
clear
//input
b=50;//current gain
rl=10;//load resistance in kilo ohms
rint=6.5;//internal resistance of an alternating source in kilo ohms
rinp=1;//input resistance in kiloohms
//calculations
v=(rl*b)/(rint+rinp);//voltage gain
//output
mprintf('the voltage gain under given conditions will be %3.0f',v)
|
281cafd5616a0923377aa81c487fd4715f755095 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2048/CH14/EX14.1/pend.sce | d7a3531e1c67fd285a1196f76183d5f20e532653 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 557 | sce | pend.sce | // Pole placement controller for inverted pendulum, discussed in Example 14.1 on page 490. 2.1 should be executed before starting this code
// 14.1
exec('pol2cart.sci',-1);
C = eye(4,4);
D = zeros(4,1);
Ts = 0.01;
G = syslin('c',A,B,C,D);
H = dscr(G,Ts);
[a,b,c,d] = H(2:5);
rise = 5; epsilon = 0.1;
N = rise/Ts;
omega = %pi/2/N;
r = epsilon^(omega/%pi);
r1 = r; r2 = 0.9*r;
[x1,y1] = pol2cart(omega,r1);
[x2,y2] = pol2cart(omega,r2);
p1 = x1+%i*y1;
p2 = x1-%i*y1;
p3 = x2+%i*y2;
p4 = x2-%i*y2;
P = [p1;p2;p3;p4];
K = ppol(a,b,P)
|
f034d7b052c283b57b58c690f6af0e4d170fc866 | d1a2737ec744ffbba1165afa7b05f26a4076f513 | /Lab 8/Q1.sce | cec1d6bfa03ead13ca885b601bcb587606fe55d7 | [
"MIT"
] | permissive | ipsitmantri/EE-324-Control-Systems-Lab | 4e37a3de51f4114ba0ea281cbb1da78a6c4815bb | b34c45efc3539005603b2e76c1665d6636f80f88 | refs/heads/master | 2023-04-03T10:42:34.548542 | 2021-04-13T14:11:21 | 2021-04-13T14:11:21 | 357,540,595 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,021 | sce | Q1.sce | clc; clear;
s = poly(0, 's');
g = 1 / (s * (s^2 + 4*s + 8));
// ----------------------------
// Part a
K = 0:0.01:100;
k_req = 0;
gms = [];
pms = [];
for i=1:size(K, 2)
k = K(i);
tf = 1 + k * g;
T = syslin('c', tf);
gm = g_margin(T);
pm = p_margin(T);
gms = [gms, gm];
pms = [pms, pm];
if abs(gm - pm) <= 1e-8 then
k_req = k;
end
end
scf();
plot(K, gms, 'r-', 'LineWidth', 2);
plot(K(2:size(K, 2)), pms, 'b-', 'LineWidth', 2);
xgrid();
xlabel("$K$", 'fontsize', 3);
ylabel("Gain/Phase Margins", 'fontsize', 3);
title(["Variation of Gain and Phase Margin with", "$K$", "for",...
"$1 +\frac{K}{s(s^2 + 4s + 8)}$"], "fontsize", 3);
L = legend(["Gain Margin in dB", "Phase margin in degrees"]);
L.font_size = 3;
disp(sprintf("The value of K for which the gain and the phase margins become zero is %.4f",k_req));
// -----------------------------------
// Part c
tf = 1 + (k_req * g);
T = syslin('c', tf);
[z, p, g] = tf2zp(T);
disp("The closed loop poles at K = 64 are");
disp(z);
|
69c830a1b2cce0911760a1e550632243b59c379a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2223/CH18/EX18.13/Ex18_13.sce | 9169fc8bdee0d0b096887008ac185f272a29fd22 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,065 | sce | Ex18_13.sce | // scilab Code Exa 18.13 Turbojet Gas Turbine Engine
T1=223.15; // in Kelvin
n_C=0.75; // Compressor Efficiency
c1=85; // entry velocity in m/s
m=50; // mass flow rate of air in kg/s
R=287;
n_B=0.98; // Combustion chamber Efficiency
Qf=43*1e3; // Calorific Value of fuel in kJ/kg;
T03=1220; // Turbine inlet stagnation temp in Kelvin
n_T=0.8; // Turbine Efficiency
gamma=1.4; // Specific Heat Ratio
n_m=0.98; // Mechanical efficiency
sigma=0.5; // flight to jet speed ratio(u/ce)
n_N=0.98; // exhaust nozzle efficiency
cp=1.005; // Specific Heat at Constant Pressure in kJ/(kgK)
u=886/3.6; // flight speed of a turbo prop aircraft in m/s
delT=200; // temperature rise through the compressor(T02-T01) in K
pi=.701; // Initial Pressure in bar
n_D=0.88; // inlet diffuser efficiency
a1=sqrt(gamma*R*T1);
M1=u/a1; // Mach number at the compressor inlet
T1_01=0.881; // (T1/T01)from isentropic flow gas tables at M1 and gamma values
T01=T1/T1_01;
T1=T01-(0.5*(c1^2)/(cp*1e3));
// part(a) compressor pressure ratio
T02s=T01+(delT*n_C);
r_oc=(T02s/T01)^(gamma/(gamma-1)); //compressor pressure ratio(p02/p01)
disp(r_oc,"(a)compressor pressure ratio is")
// part(b)
T02=T01+delT;
f=((cp*T03)-(cp*T02))/((Qf*n_B)-(cp*T03)); // f=(ma/mf);energy balance in the combustion chamber
disp(1/f,"(b)Air-Fuel Ratio is")
// part(c) turbine pressure ratio
// turbine power input P_T=n_m*(ma+mf)*cp*(T03-T01)
// power input to the compressor P_C=ma*cp*(T02-T01)
T04s=T03-(delT/(n_m*n_T*(1+f))); // from energy balance P_T=P_C
r_ot=(T03/T04s)^(gamma/(gamma-1)); //turbine pressure ratio(p03/p04)
disp(r_ot,"(c)turbine pressure ratio is")
// part(d)exhaust nozzle pressure ratio
ce=u/sigma; // jet velocity at the exit of the exhaust nozzle
T04=T03-(delT/(n_m*(1+f)));
Te=T04-(0.5*(ce^2)/(cp*1e3));
Tes=T04-((T04-Te)/n_N);
r_N=(T04/Tes)^(gamma/(gamma-1)); //exhaust nozzle pressure ratio(p04/pe)
disp(r_N,"(d)exhaust nozzle pressure ratio is")
ae=sqrt(gamma*R*Te);
Me=ce/ae; // Mach number
disp(Me,"and the Mach Number is")
|
f789adcad3b7817d18585b710a0dedb719a32329 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1853/CH5/EX5.2/Ex5_2.sce | ac1cfb0777de922547bbf2b3427fb0bc9cc3a2a3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 325 | sce | Ex5_2.sce |
//P5.2 determine the induced emf in the armature
P=4;//poles
A=4;//wave wound
N=50;//number of slots
SperCondctr=24;//slots/conductor
Z=SperCondctr*N;//total conductor
N=600;//rpm....speed of armature
F=10e-3;//webers....flux/poles
E=F*Z*N*P/(60*A);//emf induced
disp('e.m.f induced is = '+string(E)+' volts');
|
ae7e29e0e910cf70b5e1c6123c82aebd13d3f398 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2342/CH4/EX4.13/EX4_13.sce | 5dc4b43d3f212ad7959b93632cb43b0a122b864b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | EX4_13.sce | // Exa 4.13
format('v',6)
clc;
clear;
close;
// Given data
I_o = 10;// in nA
// I = I_o * ((e^(v/(Eta * V_T))) - 1) as diode is reverse biased by large voltage
// e^(v/(Eta * V_T)<< 1, so neglecting it
I = I_o * (-1);// in nA
disp(I,"The Diode current in nA is ");
|
56eef3f06e2704787e57bd50c224edc327c19d9f | 449d555969bfd7befe906877abab098c6e63a0e8 | /257/CH13/EX13.10/Example_13_10.sce | db63a55b8ec6a5e66e4c1b8b3d56b5cc540d04e6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 139 | sce | Example_13_10.sce | syms s U1 U2
A=[0 3; -2 -5];
B=[1 1 ; 1 1];
C=[2 1; 1 0];
D=[0 0 ; 0 0];
U=[U1;U2]
TM= C*inv(s*eye(2,2)-A) *B + D;
disp(TM*U,"Y = ") |
cdfcf37a4bcf49f8554a4f1c83e455210554e8b6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /32/CH8/EX8.22/8_22.sce | 8b1b44d260357ab3bd87f8f6f03f88b8731f652f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,201 | sce | 8_22.sce | //pathname=get_absolute_file_path('8.22.sce')
//filename=pathname+filesep()+'8.22-data.sci'
//exec(filename)
//Total power required(in kW):
P=4500
//Heat load(in kW):
Q=15000
//Efficiency of turbines:
n=0.80
//Steam consumption rate(in kg/s):
m=10
//From steam tables:
h1=3137 //kJ/kg
s1=6.9563 //kJ/kg.K
T2=179.18 //C
h2=2813.41 //kJ/kg
hf=640.23 //kJ/kg
//For case 1:
T2a=213.34 //C
s2a=7.125 //kJ/kg.K
s3=s2a
x3=0.853
h3=2221.11 //kJ/kg
//For case 2:
h2a=2878.13 //kJ/kg
h3aa=h2a
T3aa=210.04 //C
s3aa=7.138 //kJ/kg.K
s4=s3aa
x4=0.855
h4=2225.92 //kJ/kg
//Enthalpy at state 2'(in kJ/kg):
h2a=h1-(h1-h2)*n
//Heat available for process heating(in kJ/kg):
q=h2a-hf
//Mass flow rate(in kg/s):
msh=Q/q
//Enthalpy at state 3'(in kJ/kg):
h3a=h2-(h2a-h3)*n
//Mass of steam produced:
mshp=(P+msh*(h2a-h3a))/((h1-h2a)+(h2a-h3a))
//For case 2:
mshpn=10
mshn=6.7
//Power produced by HP turbine(in kW):
Pn=mshpn*(h1-h2a)
M3aa=mshpn-mshn
//Enthalpy at state 4'(in kJ/kg):
h4a=h3aa-(h3aa-h4)*n
//Power produced by LP turbine(in kW):
Pn1=M3aa*(h3aa-h4a)
//Total power produced(in kW):
Pt=Pn+Pn1
printf("\n RESULT \n")
printf("\nTotal power produced = %f kW",Pt) |
9f18b07f48fb56aafce49c89443fb2cf6384955d | a8592d34f144b71794ebf30f1c2a1b5faf0b053c | /AkarPersamaan/scilab/test_polyroots_01.sce | 9718d1ecaac812e3932b27a89c8554241a8c87b7 | [] | no_license | f-fathurrahman/ffr-MetodeNumerik | ee9a6a7153b174b1ba3d714fe61ccbd1cb1dd327 | e3a9da224c0fd5b32e671708e890018a3c4104c4 | refs/heads/master | 2023-07-19T22:29:38.810143 | 2023-07-07T10:02:34 | 2023-07-07T10:02:34 | 107,272,110 | 2 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 375 | sce | test_polyroots_01.sce | exec("evalpoly.sce", 0)
exec("deflpoly.sce", 0)
exec("my_laguerre.sce", 0)
exec("polyroots.sce", 0)
a = [1, 3, 4, 5, 6, 7, 8];
r0 = polyroots(a)
r0_sci = roots(a)
n = length(r0)
printf("\nResult of built-in roots function of Scilab:\n")
for i = 1:n
printf("Root %d = %18.10f %18.10f\n", i, real(r0_sci(i)), imag(r0_sci(i)))
end
if getscilabmode() ~= "STD"
quit()
end
|
752d6dcfdd37a61c8d7c44d3d8eddff393d9bdb9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2102/CH2/EX2.25/exa_2_25.sce | fb21807bff60ca103ba5648ba3f299209ed262db | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 299 | sce | exa_2_25.sce | // Exa 2.25
clc;
clear;
close;
// Given data
q=1.6*10^-19;// in C
miu_n= 0.18;// in m^2/v-s
N_D= 10^21;// per m^3
N_A= 5*10^20;// per m^3
N_deshD= N_D-N_A;// per m^3
n=N_deshD;// per m^3
sigma= q*n*miu_n;// in (Ωm)^-1
disp(sigma,"Conductivity of the silicon sample in (Ωm)^-1 is : ")
|
93c53a3186387a61a3b26688b8d7cd9d6d1788fe | 1ebbdce5d3f3daa6d9e8b439410e447941bc49f5 | /résolution numérique/livrable/schéma implicite sans matrice/[IMPLICITE] fonctions.sci | 142fdb6ca086a721934a5ec33939e4bb52ad9971 | [] | no_license | sebastienbaur/legionella_proliferation_modeling | 2aff0e2499584e99c07116a700e43218976b9b12 | ae9b5d4dde1912a98584c6319eae41980355ef03 | refs/heads/master | 2020-03-07T15:25:49.881820 | 2018-03-31T17:27:52 | 2018-03-31T17:27:52 | 127,554,634 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 510 | sci | [IMPLICITE] fonctions.sci | function y = mu0L(N,a)
y = (k_1*N./(k_2*ones(size(N,1),1) + N)).*(1+k_3*a);
endfunction
function y = mu0A(N)
y = k_5*N./(k_6*ones(size(N,1),1)+N);
endfunction
function y = dudz(N,l,a)
y = (1/(1-epsilon))*((k_1/rho_L)*(ones(size(N,1),1)+k_3*a).*N.*l ./ (k_2*ones(size(N,1),1) + N) + (k_5/rho_A)*N.*a ./ (k_6*ones(size(N,1),1) + N));
endfunction
function y = r_N(N,l,a)
y = (- k_1*(N.*l) ./ (k_2 * ones(size(N,1),1) + N) - k_5*(N.*a) ./ (k_6 * ones(size(N,1),1) + N))*(1+k_3*a)
endfunction
|
ac9bd0d4a246fb3a27066e9e9f6f93fc376836df | 449d555969bfd7befe906877abab098c6e63a0e8 | /1946/CH6/EX6.13/Ex_6_13.sce | 9a6a4fb4d095b125a3907bab8a26a49e52f561bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 314 | sce | Ex_6_13.sce | // Example 6.13;//internal quantum efficiency
clc;
clear;
close;
n=3.6;//refractive index
nd=0.45;//differntilal quantum efficiency
alpha=20;// in per cm
L=500;//in micro meter
r1= ((n-1)/(n+1))^2;
r2=r1;
ni=(nd*(1+((2*alpha*L*10^-4)/(log(1/(r1*r2))))))*100;
disp(ni,"Internal quantum efficiency is")
|
af21a1bd6883e5c27e231a604badec2ed9445758 | 449d555969bfd7befe906877abab098c6e63a0e8 | /122/CH7/EX7.10/exa7_10.sce | b15aaffaa39dc45ce949e46b076aca101ab455ce | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 332 | sce | exa7_10.sce | // Example 7-10
// Nyquist Plot
clear; clc;
xdel(winsid()); //close all windows
s = %s;
num = 1;
den = s^2 + 0.8*s + 1;
G = syslin('c',num,den);
nyquist(G,-1000,1000);
xgrid(color('gray'));
xtitle('Nyquist plot of G(s) = 1 / (s^2 + 0.8*s + 1)');
// Note: nyquist function plots frequencies -1000 and 1000 in Hz and not in rad/s |
fc5aae42bca2839fac837abe489a7056b51de992 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3876/CH13/EX13.5/Ex13_5.sce | fad363737eaee9d865ca0435df4390f4da364f40 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 238 | sce | Ex13_5.sce | //Chapter 13 Thermodynamics Entropy and Free Energy
clc;
clear;
//Initialisation of Variables
Scl= 53.29 //E.U
Sag= 10.21 //E.U
Sagcl= 22.97 //E.U
//CALCULATIONS
dS= Sagcl-Sag-0.5*Scl
//RESULTS
mprintf("Entropy change = %.2f E.U",dS)
|
41b1f7c02aab738abaa957b558caeab6502abc0f | 449d555969bfd7befe906877abab098c6e63a0e8 | /773/CH6/EX6.03/6_03.sci | 6d8aa8b5ef9141ecf183ca47998bb26e2aea712e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 226 | sci | 6_03.sci | //syslin//
exec series.sce;
s=%s;
sys1=syslin('c',3/(s*(s+1)))
sys2=syslin('c',s^2/(3*(s+1)))
sys3=syslin('c',6/(s))
a=(-1)*sys3;
b=series(sys1,sys2);
y=b/.a // feedback operation
y=simp(y)
disp(y,"C(s)/R(s)=")
|
3e6917153b4e2404de6b4fe10b42ad2dfb505dd7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3888/CH14/EX14.4/Ex14_4.sce | b11406f6ab7f4f94ed753e447f03604a068d23d9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,430 | sce | Ex14_4.sce | //Electric Power Generation, Transmission and Distribution by S.N.Singh
//Publisher:PHI Learning Private Limited
//Year: 2012 ; Edition - 2
//Example 14.4
//Scilab Version : 6.0.0 ; OS : Windows
clc;
clear;
f=50; //Supply frequency in Hz
I=150; //Power line current in Amps
dac=1.8; //Spacing between conductors a and d in m
dab=2.5; //Spacing between conductors a and b in m
dcd=1; //Spacing between conductors c and d in m
Dad=sqrt((dac)^(2)+((dab/2)+(dcd/2))^(2)); //Distance between conductors a and d in m
Dac=sqrt((dac)^(2)+((dab/2)-(dcd/2))^(2)); //Distance between conductors a and c in m
M=4*10^(-4)*log(Dad/Dac); //Mutual inductance in H/km/ph
X=2*%pi*f*M; //Inductive reactance in per km
emf=I*X; //Emf induced in telephone line in V/km
printf("\nThe mutual inductance between the powerline and the telephone line %.1e H/km/ph",M);
printf("\nThe 50 Hz voltage per kilometre induced in the telephone line when the power line carries 150 A is %.2f V/km",emf);
|
949c017ff19002c5fc5f7ca2eb11d1d9f2966c2f | 449d555969bfd7befe906877abab098c6e63a0e8 | /965/CH2/EX2.8/8.sci | 77ba284bcd4aab58e1b65b4e8747be38c3420b6d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 816 | sci | 8.sci | clc;
clear all;
disp("temperature between layers")
La=0.22;//m
Lb=0.15;//m
Lc=0.05;//m
Ld=0.003;//m
kA=4;// kJ/(mh*C)
kB=2.8;// kJ/(mh*C)
kC=0.24;// kJ/(mh*C)
kD=240;// kJ/(mh*C)
t1= 1500;// degree C
t5=90;// degree C
RthA=La/kA;//(m^2)*h*C/kJ
RthB=Lb/kB;// (m^2)*h*C/kJ
RthC=Lc/kC;// (m^2)*h*C/kJ
RthD=Ld/kD;// (m^2)*h*C/kJ
Rtotal= RthA+RthB+RthC+RthD;// (m^2)*h*C/kJ
disp ("(m^2)*h*C/kJ",Rtotal,"total thermal resistance is = ")
q= (t1-t5)/Rtotal;// kJ/(h*m^2)
disp("kJ/(h*m^2)",q,"rate of heat loss per unit area of the wall is =")
// q= (t1-t2)/RthA= (t3-t4)/RthB
t4=t5+q*RthD;// degree C
disp ("degree C",t4,"the temperature t4 is = ")
t3=t4+q*RthC;// degree C
disp ("degree C",t3,"the temperature t3 is = ")
t2=t3+q*RthB;// degree C
disp ("degree C",t2,"the temperature t2 is = ")
|
f01a8c144b418a4e1d295edb73edd589f5d07eaf | 449d555969bfd7befe906877abab098c6e63a0e8 | /704/CH2/EX2.40/ex2_40.sce | 860df4e700fd7e5c8cfabbf29f9e48c425b14485 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 723 | sce | ex2_40.sce | //Caption:What resistance must be inserted in series with the armature to reduce the speed to 500 rpm
//Exam:2.40
clc;
clear;
close;
V=250;//applied voltage to a shunt motor(in V)
I_a=20;//armature current(in Amp)
R_a=0.5;//armature resistance(in Ohm)
N_1=1000;//speed of the motor due to these readings(in rpm)
E_1=V-I_a*R_a;//emf induced in machine(in V)
N_2=500;//desired speed of the motor(in rpm)
E_2=(N_2/N_1)*E_1;//emf in case of motor speed N_2
//R_1 additional resistance added to reduce the speed to 500 rpm
R_1=(V-E_2)/I_a-R_a;//resistance applied in series with armature to reduce the speed to 500 rpm
disp(R_1,'resistance applied in series with armature to reduce the speed to 500 rpm(in Ohm)='); |
61afb32a325accd2534e7bbd234ce30920d809b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1931/CH9/EX9.4/4.sce | c0e23f30f46fdd2d6ffab878f24bfc949b41b9f2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 466 | sce | 4.sce | clc
clear
//INPUT DATA
Vf=0.86*10^6//The femi energy of electons in the metal in m/sec
m=9.11*10^-31//mass of electon in Kg
KB=1.38*10^-23//Boltzmann's Constant in m^2 Kg s^-2 k^-1
//CALCULATION
Ef=((1/2)*m*Vf^2)/10^-19//The fermi energy in a metal in J*10^-19
Tf=(Ef*10^-19/KB)/10^3//The fermi temperature in a metal in K*10^3
//OUTPUT
printf('The fermi energy in a metal is %3.4f*10^-19 J \n The fermi temperature in a metal is %3.2f*10^3 K',Ef,Tf)
|
db308937d26cf844b23c97f6a99273d2a1483912 | 97135f725c599527ba0fd95a5289373c755daf3b | /Examples/test-suite/scilab/struct_rename_runme.sci | 9065e04bc92d48747d1ef9aea854c0d573063e80 | [] | no_license | maqalaqil/swag-c- | b8880cfc92424d5bbca1fe15ed98663a41063f27 | 6fd1ba2bf1d353f24c116a3c89a8540292b86a7d | refs/heads/master | 2020-07-06T21:02:08.949652 | 2019-09-01T07:56:55 | 2019-09-01T07:56:55 | 203,137,066 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 190 | sci | struct_rename_runme.sci | exec("alaqiltest.start", -1);
try
a = new_Bar();
Bar_x_set(a,100);
catch
alaqiltesterror();
end
if Bar_x_get(a) <> 100 then alaqiltesterror(); end
exec("alaqiltest.quit", -1);
|
c2136daafe2bbdb1b39614ce23e0c371caa5c563 | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/schurrc/schurrc6.sce | 18973df3141f236093246a7b4734a927f091583c | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 151 | sce | schurrc6.sce | //check o/p for a vector i/p
r=[1 2 3 4 5];
y=schurrc(r);
disp(y);
//output
//
// - 2.
// - 0.3333333
// - 0.25
// - 0.2
|
bdd1542214bbc3db7b477f75a8260992880b5f89 | 449d555969bfd7befe906877abab098c6e63a0e8 | /848/CH3/EX3.4/Example3_4.sce | 0813895d0ca9e5239488e45641dbfba7e5a49ae4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 655 | sce | Example3_4.sce | //clear//
//Caption:Program to calculate percent in decrease of number of modes
//Example 3.4
//page 99
clear;
clc;
alpha = 2; //graded index profile
n2 = 1.5; //cladding
Lamda = 1.3e-06; //wavelength
R = 0.01; //bend radius of curvature
a = 25e-06;// core radius
delta = 0.01; //core-cladding index profile
k = 4.83e06; //propagation constant
disp(k,'k = ')
part1 = (2*a/R)+floor((3/(2*n2*k*R))^(2/3));
part2 = (alpha+2)/(2*alpha*delta);
Neff_Ninf = 1-part1*part2;
disp('number of modes decreased by')
disp('Percent in graded-index fiber',Neff_Ninf*100)
//RESULTS
//number of modes decreased by 50 Percent in graded-index fiber
|
07c37033e9e8a639dc93daa8f6ba9f5d8d39ec45 | 185111a2cc05b48988df6de8df2cdf4ac07f94be | /Sims/SImulation_batch_fg.sce | 17b0c2c4713dc37be33796fa5dcb23135a1603b5 | [] | no_license | ssshah389/Class | 426fceec8f81ec1152ef266304883f9835bdb7ae | 3f519521cf1e7e7d652bdbe205b97761401bb5d2 | refs/heads/master | 2021-07-10T08:39:13.955398 | 2017-01-19T01:24:51 | 2017-01-19T01:24:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,167 | sce | SImulation_batch_fg.sce | //importXcosDiagram("./Peak_detect.xcos")
cd /home/ubuntu/RASP_Workspace/Class/Sims
importXcosDiagram("./FG_temp.xcos")
function btn = messagebox(msg, msgboxtitle, msgboxicon, buttons,ismodal)
btn = 0;
endfunction
temp=27;
K=1.38064852e-23;
q=1.60217662e-19;
Ithfgpmos_1=90e-9./(temp+273)^0.2
temp=25;
K=1.38064852e-23;
q=1.60217662e-19;
typeof(scs_m)
scs_m.props.context
Ut1=(K*(25+273)./q)
Ut2=(K*(30+273)./q)
Vt1=0.6482// 0.868 //0.6616
Vt2=0.64/// 0.860 //0.653
A2_fg= (Vt1 - Vt2)./(Ut1-Ut2)
A1_fg=Vt1 -(A2_fg*Ut1)
//Vtfgpmos_1=0.86574*(K*(temp+273)./q);
//Vtnmos_1=0.3127174*(K*(temp+273)./q);
//
alpha=1500/1e6
i_loop=1;
temp=-10;
while i_loop<14
Ut=K*(temp+273)./q;
Ithfgpmos=Ithfgpmos_1*(temp+273)^0.2
Vtfgpmos=A1_fg + A2_fg*Ut
importXcosDiagram("./FG_temp.xcos")
typeof(scs_m) //The diagram data structure
scs_m.props.context
INFO=xcos_simulate(scs_m, 4);
Bias_Vref(:,i_loop)=mean(Vref.values(100:$,1))
i_loop=i_loop+1;
temp=temp+5;
end
//myVariable=0.8:0.01:0.9;
temp=linspace(-10,50,13)
figure()
plot(temp,abs(Bias_Vref(1,:)),'-r')
current_bias=csvRead('Temperature_DAC_current.csv')
plot(temp,current_bias,'-x')
|
057e09efe9f582bb0f1b111939322b746ea12d8d | 449d555969bfd7befe906877abab098c6e63a0e8 | /416/CH13/EX13.2/example13_2.sce | 358cca267ebb71d4dc20ae64b5f8601ce276a0ab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,123 | sce | example13_2.sce | clc
clear
disp('example 13.2')
pa1=20000 ;pa2=30000 //kva in in 3 ph power
va1=11 ;va2=11 //voltage in kilo volts
pt1=20000 ;pt2=30000//kva of 3 ph transformer
vpt1=11 ;vpt2=11//voltage of primery of transformer
vst1=132 ;vst2=132//voltage of secondary of transformer
xg1=0.5 ;xg2=0.65 //reactance of generator
xt1=0.05 ;xt2=0.05 //reactance of transformer with their own kva
pb=pa2;vbg=va2;vbt=vpt2;//assumeing base quantoties
xtn1=xt1*pb/pa1 ;xtn2=xt2*pb/pa2 //transformer reactance with new base
xgn1=xg1*pb/pa1;xgn2=xg2*pb/pa2
xn1=xtn1+xgn1;xn2=xtn2+xgn2 //reactancee up to fault from each generator
xn=(xn1*xn2)/(xn1+xn2) //equalent reactance between generator and fault
sckva=pb/xn ; //short circuit KVA
disp('(a)')
printf(" equivalent reactance is %.4f p.u \n short circuit KVA %dKVA",xn,sckva)
disp('(b)')
sccb=sckva/(vst1*sqrt(3))
sccg1=sccb*(xn2/(xn1+xn2))*vst1/vpt1
sccg2=sccb*(xn1/(xn1+xn2))*vst2/vpt2
printf(" short circuit current on bus bar side %.1fA \n short circuit current of generator 1 is %.1fA \n short circuit current of generator 2 is %.1fA \n",sccb,sccg1,sccg2)
|
d96f467c8a982af63ffb8d73e9cc37072043cf4b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1826/CH10/EX10.2/ex10_2.sce | 0fb0415163a77c862333ac2e3312285523b3d7ae | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex10_2.sce | // Example 10.2, page no-268
clear
clc
ni=1.45*10^10//cm^-3
nd=10^16//cm^-3
k=1.38*10^-23
T=300
e=1.6*10^-19//C
Ef=k*T*log(nd/ni)
Ef=Ef/e
printf("The Fermi energyy with respect to Ef in intrinsic Si = %.3f eV",Ef)
|
8a4f67f1d0cf482b3d81d6f56b89e573701636b2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1994/CH8/EX8.8/Example8_8.sce | ca6e59bccf39e4388e5f980f815bfc36dcfc93a5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 195 | sce | Example8_8.sce | //Chapter-8,Example8_8,pg 8_39
L3=8*10^-3
R1=1*10^3
R2=25*10^3
R3=50*10^3
Rx=R2*R3/R1
Lx=R2*L3/R1
printf("equivalent series circuit\n")
printf("Rx=%.f ohm\n",Rx)
printf("Lx=%.5f H",Lx)
|
eb9e18913ece9d5c85b2d6f9db73f4663c17e221 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3834/CH10/EX10.2.1/Ex10_2_1.sce | c825a9574c8acd3b26af3f6d65ef1a7da9c96ecf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex10_2_1.sce | //Fiber-optics communication technology, by Djafer K. Mynbaev and Lowell L. Scheiner
//Example 10.2.1
//windows 7
//Scilab version-6.0.0
clc;
clear ;
//given
lambda=1300;//Operating wavelength in nm
ETAext=0.1;//External Quantum Efficiency
e=1.6E-19;//Electrons value in Coulomb
Ep=0.0153E-17;//photon's energy in J
SlopeE=(Ep/e)*ETAext;//Slope Efficiency
mprintf("Slope Efficiency = %.3f",SlopeE);
|
f7c221c976fe2f2b5b050f324531599d26322daa | 449d555969bfd7befe906877abab098c6e63a0e8 | /3648/CH5/EX5.14/Ex5_14.sce | c30c564e69736f7c37dba27cbebc498d96929218 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 366 | sce | Ex5_14.sce | //Example 5_14
clc();
clear;
//To find out how fast the pendulum is moving
//At point A
hb_ha=0.35 //units in Meters
g=9.8 //units in meters/sec^2
vb=sqrt((g*hb_ha)/0.5) //units in meters/sec
printf("The velocity of pendulum at point B is vb=%.2f meters/sec\n",vb)
printf("From A to C hc=ha and Vc=Va=0 so Frictional force is Negligible at point C")
|
3ad3a53b230641eaa560fbe31f9e043c33f080a6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /497/CH16/EX16.3/Chap16_Ex3.sce | 402fe40689dc71203cad273d1c45d1b3f021ee58 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,049 | sce | Chap16_Ex3.sce | //Kunii D., Levenspiel O., 1991. Fluidization Engineering(II Edition). Butterworth-Heinemann, MA, pp 491
//Chapter-16, Example 3, Page 413
//Title: Multistage Adsorber
//==========================================================================================================
clear
clc
//INPUT
T=20;//Temeprature in degree C
M=0.018;//Molecular weight of water in kg/mol
Q=10;//Flow rate of dry air in m^3/s
R=82.06E-6;//Universal gas constant
pi=0.0001;//Initial moisture content in atm
pj=0.01;//Final moisture content in atm
//CALCULATION
a=Q*(273+T)/273;//Term At*uo
b=a*M/(R*(T+273));//Term C*At*uo
//The value of slope can be found only by graphical mehtod. Hence it has been taken directly from the book(Page no.414,Fig.E3)
m=10.2;
Fo=b/m;//Flow rate of solids
Q3=(b/Fo)*(pj-pi);//Moisture content of leaving solids
//OUTPUT
printf('\nMoisture content of leaving solids:%f kg H2O/kg dry solids',Q3);
//====================================END OF PROGRAM ====================================================== |
7d80a44da34b8db7919bbeb9096379562d32c6c5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1445/CH1/EX1.37/ch1_ex_37.sce | 398178bc5e4a1cc7520d624eab012ed87f58189a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,239 | sce | ch1_ex_37.sce | //CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS
//Example 37
disp("CHAPTER 1");
disp("EXAMPLE 37");
//VARIABLE INITIALIZATION
v1=90; //voltage source in Volts
r1=8; //in Ohms
r2=6; //in Ohms
r3=5; //in Ohms
r4=4; //in Ohms
r5=8; //diagonal resistance in Ohms
r6=8; //in Ohms
//SOLUTION
//using Thevenin's Theorem
//(3)v1+(-2)v2=90...........eq (1)
//(-2)v1+(4)v2=-90..........eq (2)
A=[3 -2;-2 4];
b=[90;-90];
x=inv(A)*b;
v1=x(1,:);
v2=x(2,:);
vth=v1;
req1=(r1*r5)/(r1+r5);
req2=req1+r4;
req3=(req2*r6)/(req2+r6);
rth=req3+r2;
vab1=(vth*r3)/(rth+r3);
disp(sprintf("By Thevenin Theorem, the value of V_ab is %f V",vab1));
//using Norton's Theorem
//(13)v1+(-7)v2=270.........eq (1)
//(7)v1+(-13)v2=0...........eq (2)
A=[13 -7;7 -13];
b=[270;0];
x=inv(A)*b;
v1=x(1,:);
v2=x(2,:);
req1=(r1*r5)/(r1+r5);
req2=req1+r4;
req3=(req2*r6)/(req2+r6);
rn=req3+r2;
if(v1>v2) then
In=(v1-v2)/r2;
else
In=(v2-v1)/r2;
end;
vab2=(r3*In)*(rn/(rth+r3));
disp(sprintf("By Norton Theorem, the value of V_ab is %f V",vab2));
//END
|
703353fbf2d1dd477d5b7db24cfaa3df3a76925d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3718/CH14/EX14.4/Ex14_4.sce | 7337837da73fa81315012332e5b962cd6a3f4c95 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 850 | sce | Ex14_4.sce | //Chapter 14: Water Treatment
//Problem: 4
clc;
//Initialisation of Variables
i1 = 180 //in mg/L for CaCl2
i2 = 210 //in mg/L for Ca(NO3)2
i3 = 123 //in mg/L for MgSO4
i4 = 90 //in mg/L for Mg(HCO3)2
//Solution
i1_req = i1 * 100 / 111.
i2_req = i2 * 100 / 164.
i3_req = i3 * 100 / 120.
i4_req = i4 * 100 / 146.
lime_req = 74 / 100. * (2 * i4_req + i3_req) * 100 / 70. * 10000 //where lime_req is the required value
alime_req=lime_req / (10 ** 6) //where alime_req is the approximated value
soda_req = 106 / 100. * (i1_req + i3_req + i2_req) * 100 / 80. * 10000 //where soda_req is the required value
asoda_req=soda_req / (10 ** 6) //where asoda_req is the approximated value
mprintf("Lime Required : %.1e mg ~ %.1f Kg\n",lime_req,alime_req)
mprintf(" Soda Required : %.1e mg ~ %.1f Kg",soda_req,asoda_req)
|
4ed89d5be2ec5515c5e0659db7c5e66a28a9e8d6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2863/CH2/EX2.29/ex2_29.sce | 7de666ba3ca5d3b314fdec155c548c681361e06d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 448 | sce | ex2_29.sce | //chapter 2
//part a
printf("\n");
c=3*10^8;
f=10^9;
lamda=c/f;
printf("the wavelength is %gm",lamda);
//part b
dl=3*10^-2;
Rrad=80*(%pi)^2*(dl/lamda)^2;
printf("\nthe radiation resistance is %gohm",Rrad);
//part c
Gdmax=1.5//Gd=1.5sin^2(theta),where theta=90 for short dipole
n=0.6;
Gp=n*Gdmax;
printf("\nthe antenna gain is given by %g",Gp);
//part d
Ae=1.5*(lamda)^2/(4*(%pi));
printf("\nthe effective aperture is %gm^2",Ae);
|
e18d3fbfa3d1de94bcd23abf73fe5ae5344d9640 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1026/CH9/EX9.1/Example9_1.sce | 6bc3b2e8196427a8cb0cf705ac43b296b461b43f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 502 | sce | Example9_1.sce | //chapter9,Example9_1,pg 237
d=4.255*10^-10
lam=1.549*10^-10//wavelength of K-copper line
n=1//theta is smallest when n=1
theta=asin(lam/(2*d))//glancing angle
theta=theta*(180/%pi)
//max value of sin(theta)=1
//for highest order
nmax=((2*d)/lam)//highest bragg's order
printf("smallest glancing angle\n")
printf("theta=%.2f deg.",theta)
printf("\nmaximum order of reflection\n")
printf("nmax=%.2f",nmax)
printf("\nsince fraction is meaningless for order nmax=5") |
5b79cefaf905d1fc850311678c38dd913104a736 | 527c41bcbfe7e4743e0e8897b058eaaf206558c7 | /Positive_Negative_test/Netezza-Base-DateFunctions/FLDateConvert-NZ-01.tst | e62c04dc13854c44f6dc2b637141b1af487e140d | [] | 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 | 5,773 | tst | FLDateConvert-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: Date Functions
--
-- Test Unit Number: FLDateConvert-Netezza-01
--
-- Name(s): FLDateConvert
--
-- Description: Scalar function which converts a DATE variable into a specified format
--
-- Applications:
--
-- Signature: FLDateConvert(pDate DATE, pFormat INTEGER)
--
-- Parameters: See Documentation
--
-- Return value: VARCHAR
--
-- Last Updated: 11-24-2014
--
-- Author: Surya Deepak Garimella
--
-- BEGIN: TEST SCRIPT
--.run file=../PulsarLogOn.sql
--.set width 2500
--set session dateform = ANSIDATE;
--SELECT COUNT(*) AS CNT,
-- CASE WHEN CNT = 0 THEN ' Please Load Test Data!!! ' ELSE ' Test Data Loaded ' END AS TestOutcome
--FROM tblTestDate a;
-- BEGIN: POSITIVE TEST(s)
---- Positive Test 1: Comprehensive Test using tblTestDate
SELECT COUNT(*)
FROM (SELECT a.DateIN1,
FLDateConvert(a.DateIN1, 101) AS FLDateConvert101,
FLDateConvert(a.DateIN1, 102) AS FLDateConvert102,
FLDateConvert(a.DateIN1, 103) AS FLDateConvert103,
FLDateConvert(a.DateIN1, 104) AS FLDateConvert104,
FLDateConvert(a.DateIN1, 105) AS FLDateConvert105,
FLDateConvert(a.DateIN1, 106) AS FLDateConvert106,
FLDateConvert(a.DateIN1, 107) AS FLDateConvert107,
FLDateConvert(a.DateIN1, 110) AS FLDateConvert110,
FLDateConvert(a.DateIN1, 111) AS FLDateConvert111,
FLDateConvert(a.DateIN1, 112) AS FLDateConvert112
FROM tblTestDate a
) AS a;
---- Positive Test 1: Comprehensive Test using tblTestDate
SELECT COUNT(*)
FROM (SELECT a.DateIN1,
FLDateConvert(a.DateIN1, 101) AS FLDateConvert101,
FLDateConvert(a.DateIN1, 102) AS FLDateConvert102,
FLDateConvert(a.DateIN1, 103) AS FLDateConvert103,
FLDateConvert(a.DateIN1, 104) AS FLDateConvert104,
FLDateConvert(a.DateIN1, 105) AS FLDateConvert105,
FLDateConvert(a.DateIN1, 106) AS FLDateConvert106,
FLDateConvert(a.DateIN1, 107) AS FLDateConvert107,
FLDateConvert(a.DateIN1, 110) AS FLDateConvert110,
FLDateConvert(a.DateIN1, 111) AS FLDateConvert111,
FLDateConvert(a.DateIN1, 112) AS FLDateConvert112
FROM tblTestDate a
) AS a;
---- Positive Test 2: Manual Example
--- Same Output, Good
SELECT a.ObsID, a.DateIN1,
FLDateConvert(a.DateIN1, 101) AS FLDateConvert101,
FLDateConvert(a.DateIN1, 102) AS FLDateConvert102,
FLDateConvert(a.DateIN1, 103) AS FLDateConvert103,
FLDateConvert(a.DateIN1, 104) AS FLDateConvert104,
FLDateConvert(a.DateIN1, 105) AS FLDateConvert105,
FLDateConvert(a.DateIN1, 106) AS FLDateConvert106,
FLDateConvert(a.DateIN1, 107) AS FLDateConvert107,
FLDateConvert(a.DateIN1, 110) AS FLDateConvert110,
FLDateConvert(a.DateIN1, 111) AS FLDateConvert111,
FLDateConvert(a.DateIN1, 112) AS FLDateConvert112
FROM tblTestDate a
ORDER BY 1;
---- Positive Test 3: Test for lower bound of input date
SELECT DATE '0001-01-01' AS DateIN1,
FLDateConvert(DateIN1, 101) AS FLDateConvert101,
FLDateConvert(DateIN1, 102) AS FLDateConvert102,
FLDateConvert(DateIN1, 103) AS FLDateConvert103,
FLDateConvert(DateIN1, 104) AS FLDateConvert104,
FLDateConvert(DateIN1, 105) AS FLDateConvert105,
FLDateConvert(DateIN1, 106) AS FLDateConvert106,
FLDateConvert(DateIN1, 107) AS FLDateConvert107,
FLDateConvert(DateIN1, 110) AS FLDateConvert110,
FLDateConvert(DateIN1, 111) AS FLDateConvert111,
FLDateConvert(DateIN1, 112) AS FLDateConvert112;
---- Positive Test 4: Test for upper bound of input date
SELECT DATE '9999-12-31' AS DateIN1,
FLDateConvert(DateIN1, 101) AS FLDateConvert101,
FLDateConvert(DateIN1, 102) AS FLDateConvert102,
FLDateConvert(DateIN1, 103) AS FLDateConvert103,
FLDateConvert(DateIN1, 104) AS FLDateConvert104,
FLDateConvert(DateIN1, 105) AS FLDateConvert105,
FLDateConvert(DateIN1, 106) AS FLDateConvert106,
FLDateConvert(DateIN1, 107) AS FLDateConvert107,
FLDateConvert(DateIN1, 110) AS FLDateConvert110,
FLDateConvert(DateIN1, 111) AS FLDateConvert111,
FLDateConvert(DateIN1, 112) AS FLDateConvert112;
-- END: POSITIVE TEST(s)
-- BEGIN: NEGATIVE TEST(s)
---- Negative Test 1: Invalid Input For Format Indicator
--- Return expected error msg, Good
SELECT a.ObsID, a.DateIN1,
FLDateConvert(a.DateIN1, 200) AS FLDateConvert101
FROM tblTestDate a
ORDER BY 1;
SELECT a.ObsID, a.DateIN1,
FLDateConvert(a.DateIN1, 101.0) AS FLDateConvert101
FROM tblTestDate a
ORDER BY 1;
SELECT a.ObsID, a.DateIN1,
FLDateConvert(a.DateIN1, NULL) AS FLDateConvert101
FROM tblTestDate a
ORDER BY 1;
---- Negative Test 2: Invalid Date Input
--- Return expected error msg, Good
SELECT a.ObsID, a.DateIN1,
FLDateConvert(NULL, 101) AS FLDateConvert101
FROM tblTestDate a
ORDER BY 1;
SELECT FLDateConvert('2010', 101);
-- END: NEGATIVE TEST(s)
-- END: TEST SCRIPT
|
49326ea4bca40e613de011311cb102c8989f17e3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3685/CH18/EX18.2/Ex18_2.sce | 0a0ed6e495def500a2ce950a529b7bb1a0e5098d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 761 | sce | Ex18_2.sce | clc
r1 = 5 // Inner radius of steel pipe in cm
r2 = 10 // Extreme radius of inner insulation in cm
r3 = 13// Extreme radius of outer insulation in cm
K1 = 0.23 // Thermal conductivity of inner insulation in W/mK
K2 = 0.37 // Thermal conductivity of outer insulation in W/mK
hi = 58 // Inner heat transfer coefficient in W/m^2K
h0 = 12 // Inner heat transfer coefficient in W/m^2K
ti = 60 // Inner temperature in degree Celsius
to = 25 // Outer temperature in degree Celsius
L = 50 // Length of pipe in m
printf("\n Example 18.2\n")
Q =((2*%pi*L*(ti-to))/((1/(hi*r1*1e-2))+(log(r2/r1)/(K1))+(log(r3/r2)/(K2))+(1/(h0*r3*1e-2))))
// Rate of heat transfer
printf("\n Heat transfer rate is %f kW",Q/1e3)
//The answers vary due to round off error
|
2de65e6bc7c570a66bfda1eb7f656f1def917320 | 1b969fbb81566edd3ef2887c98b61d98b380afd4 | /Rez/bivariate-lcmsr-post_mi/bfi_a6_hrz_ind_d/~BivLCM-SR-bfi_a6_hrz_ind_d-PLin-VLin.tst | a62c4ff3c48d8e263f9ee43d8fc9dce4e36b33bf | [] | 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_hrz_ind_d-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.353477D+00
2 -0.284821D-02 0.306485D-02
3 -0.568816D-01 -0.122605D-02 0.271881D+00
4 -0.373302D-03 -0.479534D-03 -0.239897D-02 0.226929D-02
5 -0.129532D-03 0.163906D-03 0.146268D-02 -0.122841D-03 0.283836D-02
6 0.286359D-03 -0.667676D-04 0.366289D-03 -0.408045D-04 0.307155D-04
7 -0.432318D-03 -0.270981D-04 0.326962D-03 0.133345D-04 0.335958D-03
8 -0.164048D-02 0.105041D-03 -0.319799D-03 -0.517562D-04 0.750663D-04
9 -0.156389D+00 0.149648D-01 0.328942D+00 -0.396165D-01 0.116931D+00
10 -0.118694D+00 0.165461D-01 0.288248D+00 -0.120601D-01 0.200643D+00
11 0.166014D+00 -0.908855D-02 0.238976D+00 0.745253D-02 -0.842066D-02
12 0.142399D+00 -0.168949D-01 -0.814625D+00 0.736599D-01 -0.166729D-02
13 -0.849330D-01 0.433404D-02 0.124837D+00 0.877422D-03 0.131841D-01
14 -0.838195D-01 0.241032D-01 -0.705078D+00 -0.250109D-02 -0.180084D-03
15 -0.740293D+00 0.746215D-01 -0.221209D-01 0.186337D-01 -0.138511D+00
16 -0.400072D-01 -0.128625D-01 0.341978D-01 0.252204D-02 0.516078D-03
17 -0.130855D-01 -0.209021D-02 0.210504D-02 0.680727D-03 -0.667795D-03
18 0.151083D+00 0.718125D-02 0.593592D+00 0.440590D-01 0.180828D-02
19 0.534590D-01 0.320006D-02 0.462410D-01 -0.618540D-02 0.552684D-02
20 0.573508D+00 0.320348D-01 -0.125068D+01 -0.129529D-01 -0.132857D-01
21 0.246222D-01 0.156812D-02 -0.975138D-02 0.785886D-02 -0.551099D-02
22 0.207730D-02 0.764114D-03 -0.450863D-02 -0.295784D-03 0.146557D-03
23 0.155340D-01 0.828380D-03 0.924921D-02 -0.789867D-02 -0.846732D-03
24 -0.236117D-02 -0.235498D-03 -0.205045D-03 0.272812D-03 -0.538384D-04
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 0.772763D-03
7 0.516434D-03 0.218952D-02
8 -0.124893D-03 -0.162464D-03 0.219707D-02
9 0.243237D-01 0.700040D-01 0.836755D-02 0.815803D+02
10 -0.559285D-02 0.168467D-01 0.861733D-02 0.563913D+01 0.327102D+02
11 0.214458D-01 0.680635D-01 0.346724D-01 -0.570910D-01 -0.121855D+01
12 -0.429344D-01 0.241996D-01 0.807530D-01 0.653831D+01 0.355483D+01
13 0.494474D-01 0.885670D-01 -0.302990D-01 0.543806D+01 0.121976D+01
14 -0.187363D-01 -0.437433D-01 0.204974D+00 0.214653D+01 0.194154D+01
15 0.237930D-01 0.120031D-01 0.347187D-01 -0.126314D+02 -0.207959D+02
16 0.135480D-02 0.180023D-02 -0.490478D-03 0.583371D+00 -0.672857D-01
17 -0.331318D-04 -0.230990D-03 -0.407534D-03 -0.207190D+00 -0.295333D-01
18 -0.308482D-01 -0.607934D-01 -0.277010D-02 -0.521408D+01 0.207769D+01
19 -0.869055D-02 0.454454D-02 0.292833D-02 -0.118619D+01 0.137653D+01
20 0.177455D-01 0.282768D-01 -0.129351D+00 -0.755013D+01 0.100899D+01
21 0.809599D-02 -0.573203D-02 -0.232117D-02 0.712601D+00 -0.122245D+01
22 -0.246140D-03 -0.268136D-03 0.245109D-03 0.973777D-01 -0.247451D-02
23 0.856916D-03 0.488826D-03 0.187304D-02 -0.129772D+00 0.191539D-01
24 0.255295D-04 0.185771D-03 -0.523689D-03 0.573837D-02 -0.804795D-02
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 0.490126D+02
12 -0.894156D+01 0.215609D+03
13 0.734769D+00 0.755357D+00 0.161114D+02
14 0.122787D+01 0.188884D+02 -0.609178D+01 0.670615D+02
15 0.953194D+01 -0.252965D+01 -0.236424D+01 0.984216D+01 0.366758D+03
16 0.192962D+00 -0.152945D+00 0.177977D+00 -0.275544D+00 0.940155D+00
17 -0.768614D-02 -0.571787D-01 0.125450D-01 -0.725414D-01 -0.182876D+01
18 -0.873612D+01 0.459811D+00 -0.382403D+01 0.150267D+01 -0.757652D+02
19 0.202982D+01 -0.139492D+01 -0.946247D+00 -0.866447D+00 0.360241D+01
20 -0.510186D+01 -0.425251D+02 0.185302D+01 -0.272249D+02 0.188562D+02
21 -0.147157D+01 0.816721D+00 0.816503D+00 0.223339D+00 -0.324822D+01
22 -0.745245D-01 0.760433D-01 -0.308995D-01 0.821060D-01 0.475483D+00
23 -0.131312D+00 0.206419D+00 -0.557705D-02 0.298597D+00 -0.290865D+00
24 0.584132D-01 -0.381787D-01 0.231353D-01 -0.849499D-01 -0.115083D+00
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 0.531554D+00
17 -0.157533D-01 0.225430D-01
18 -0.929572D-01 0.501898D+00 0.162761D+03
19 -0.738349D-01 -0.337057D-01 0.246404D+00 0.443648D+01
20 -0.344277D+00 -0.123384D+00 -0.584652D+02 0.101827D+01 0.241288D+03
21 -0.186410D+00 0.295470D-01 0.132214D+01 -0.405156D+01 -0.318595D+01
22 -0.239466D-02 -0.744293D-02 -0.829637D+00 -0.142739D-01 0.407143D+00
23 0.252238D-01 -0.233858D-03 -0.121351D+01 -0.218004D-01 0.260829D+01
24 0.335138D-02 0.227017D-02 0.439264D+00 -0.532990D-02 -0.120502D+01
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 0.472517D+01
22 -0.207274D-01 0.104031D-01
23 -0.213508D+00 0.132110D-01 0.428328D+00
24 0.308448D-01 -0.596686D-02 -0.389140D-01 0.150753D-01
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 1.000
2 -0.087 1.000
3 -0.183 -0.042 1.000
4 -0.013 -0.182 -0.097 1.000
5 -0.004 0.056 0.053 -0.048 1.000
6 0.017 -0.043 0.025 -0.031 0.021
7 -0.016 -0.010 0.013 0.006 0.135
8 -0.059 0.040 -0.013 -0.023 0.030
9 -0.029 0.030 0.070 -0.092 0.243
10 -0.035 0.052 0.097 -0.044 0.658
11 0.040 -0.023 0.065 0.022 -0.023
12 0.016 -0.021 -0.106 0.105 -0.002
13 -0.036 0.020 0.060 0.005 0.062
14 -0.017 0.053 -0.165 -0.006 0.000
15 -0.065 0.070 -0.002 0.020 -0.136
16 -0.092 -0.319 0.090 0.073 0.013
17 -0.147 -0.251 0.027 0.095 -0.083
18 0.020 0.010 0.089 0.072 0.003
19 0.043 0.027 0.042 -0.062 0.049
20 0.062 0.037 -0.154 -0.018 -0.016
21 0.019 0.013 -0.009 0.076 -0.048
22 0.034 0.135 -0.085 -0.061 0.027
23 0.040 0.023 0.027 -0.253 -0.024
24 -0.032 -0.035 -0.003 0.047 -0.008
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 1.000
7 0.397 1.000
8 -0.096 -0.074 1.000
9 0.097 0.166 0.020 1.000
10 -0.035 0.063 0.032 0.109 1.000
11 0.110 0.208 0.106 -0.001 -0.030
12 -0.105 0.035 0.117 0.049 0.042
13 0.443 0.472 -0.161 0.150 0.053
14 -0.082 -0.114 0.534 0.029 0.041
15 0.045 0.013 0.039 -0.073 -0.190
16 0.067 0.053 -0.014 0.089 -0.016
17 -0.008 -0.033 -0.058 -0.153 -0.034
18 -0.087 -0.102 -0.005 -0.045 0.028
19 -0.148 0.046 0.030 -0.062 0.114
20 0.041 0.039 -0.178 -0.054 0.011
21 0.134 -0.056 -0.023 0.036 -0.098
22 -0.087 -0.056 0.051 0.106 -0.004
23 0.047 0.016 0.061 -0.022 0.005
24 0.007 0.032 -0.091 0.005 -0.011
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 1.000
12 -0.087 1.000
13 0.026 0.013 1.000
14 0.021 0.157 -0.185 1.000
15 0.071 -0.009 -0.031 0.063 1.000
16 0.038 -0.014 0.061 -0.046 0.067
17 -0.007 -0.026 0.021 -0.059 -0.636
18 -0.098 0.002 -0.075 0.014 -0.310
19 0.138 -0.045 -0.112 -0.050 0.089
20 -0.047 -0.186 0.030 -0.214 0.063
21 -0.097 0.026 0.094 0.013 -0.078
22 -0.104 0.051 -0.075 0.098 0.243
23 -0.029 0.021 -0.002 0.056 -0.023
24 0.068 -0.021 0.047 -0.084 -0.049
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 1.000
17 -0.144 1.000
18 -0.010 0.262 1.000
19 -0.048 -0.107 0.009 1.000
20 -0.030 -0.053 -0.295 0.031 1.000
21 -0.118 0.091 0.048 -0.885 -0.094
22 -0.032 -0.486 -0.638 -0.066 0.257
23 0.053 -0.002 -0.145 -0.016 0.257
24 0.037 0.123 0.280 -0.021 -0.632
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 1.000
22 -0.093 1.000
23 -0.150 0.198 1.000
24 0.116 -0.476 -0.484 1.000
|
20b01f248c6b896b4c5a0bd0c84ba067f09755bf | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/rooteig/rooteig10.sce | 524c3d74e7bd4dae6b4d07ee792dc1418fdec2c9 | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 230 | sce | rooteig10.sce | //no i/p args are passed to the function
clc;
clear;
exec('/home/debdeep/Desktop/TEST NOW!!/rooteig/rooteig.sci');
y=rooteig();
//output
// !--error 77
//rooteig
//at line 73 of function rooteig called by :
//y=rooteig();
|
4c7142576590bd86b20a08c086e9c4db23b48101 | 9b68b3d73b63ebcbfe18cc9a4aa8e91c84833a84 | /tests/libs/hdf5/test-h5-wrappers-new/FORTRAN/H5G/testfiles/18/h5ex_g_visit_F03.tst | 1a1e8257b068c5a1c8ad94b9f0b63a33759407af | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-llnl",
"LicenseRef-scancode-hdf4",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | openhpc/ohpc | 17515db5082429eb9f250f12bf242b994beb715f | 725a1f230434d0f08153ba1a5d0a7418574f8ae9 | refs/heads/3.x | 2023-08-19T02:15:14.682630 | 2023-08-18T19:33:51 | 2023-08-18T19:34:18 | 43,318,561 | 827 | 247 | Apache-2.0 | 2023-09-14T01:22:18 | 2015-09-28T18:20:29 | C | UTF-8 | Scilab | false | false | 205 | tst | h5ex_g_visit_F03.tst | Objects in the file:
/ (Group)
/group1 (Group)
/group1/dset1 (Dataset)
/group1/group3 (Group)
/group1/group3/group4 (Group)
/group1/group3/group4/group1 (Group)
/group1/group3/group4/group2 (Group)
|
a6cf24f9b8d140cfba2c3ca599f7c5c112ce4736 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2048/DEPENDENCIES/t1calc.sci | a9a265ba93f1db7b32637178a57b667f3bd5020f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,553 | sci | t1calc.sci | // function [T1,T1rows,sel,pr] = ...
// t1calc(S,Srows,T1,T1rows,sel,pr,Frows,Fbcols,abar,gap)
// calculates the coefficient matrix T1
// redundant row information is kept in sel: redundant rows are marked
// with zeros. The undeleted rows are marked with ones.
function [T1,T1rows,sel,pr] = t1calc(S,Srows,T1,T1rows,sel,pr,Frows,Fbcols,abar,gap)
b = 1; // vector of primary red.rows
while (T1rows < Frows - Fbcols) & or(sel==1) & ~isempty(b)
S = clean(S);
b = indep(S(mtlb_logical(sel),:),gap); // send selected rows of S
if ~isempty(b)
b = clean(b);
b = move_sci(b,find(sel),Srows);
j = length(b);
while ~(b(j) & or(abar==j)) // pick largest nonzero entry
j = j-1; // of coeff. belonging to abar
if ~j
fprintf('\nMessage from t1calc, called from left_prm\n\n')
error('Denominator is noninvertible')
end
end
if ~or(j<pr & pmodulo(pr,Frows) == pmodulo(j,Frows)) // pr(2),pr(1)
T1 = [T1; b]; // condition is not violated
T1rows = T1rows +1; // accept this vector
end // else don't accept
pr = [pr; j]; // update prime red row info
while j <= Srows
sel(j) = 0;
j = j + Frows;
end
end
end
endfunction
|
ba9a73976f0194cb706a43363d42f4f331db3627 | 328ba2fa7989deec370b6435b02922f89cd2161c | /Código/AutovaloresSpec.sce | 8a52f8a7aa9f0f67ad28af3b5524285cd1d8c052 | [
"MIT"
] | permissive | MarianaFRocha/Autovetor-e-Autovalor | 42003ce46078d284780fcd0bf701d9a19f46512e | 6a7a8234dedabaffd3f8e964d26ecb3b5071a8ce | refs/heads/master | 2020-05-21T21:49:01.714472 | 2019-05-11T17:25:04 | 2019-05-11T17:25:04 | 186,161,673 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 119 | sce | AutovaloresSpec.sce | A = [1 0 0;-2 3 -1;0 -4 3];
[Vetor,Valor] = spec(A)
disp(A)
disp(Valor)
disp(Vetor)
|
acecdaf28576e832b925c3e8beea9b108526d375 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2627/CH1/EX1.11/Ex1_11.sce | a920c1e1556aa3936e0fb08ced8ca38e4ecf3e3c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 303 | sce | Ex1_11.sce | //Ex 1.11
clc;clear;close;
format('v',6);
I1=3;//A
I3=1;//A
I6=1;//A
//I1-I2-I3=0//from KCL at point a
I2=I1-I3;//A
//I2+I4-I6=0//from KCL at point b
I4=I6-I2;//A
//I3-I4-I5=0//from KCL at point c
I5=I3-I4;//A
disp(I2,"Current I2(A)");
disp(I4,"Current I4(A)");
disp(I5,"Current I5(A)");
|
8e89a772f122e5240285c374208dcf0809201d31 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1514/CH17/EX17.2/17_2.sce | df97faa8ce351af5420fd406f71406a75f2bd418 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 423 | sce | 17_2.sce | //chapter 17
//example 17.2
//page 522
clear all;
clc ;
//given
eta=80;//Xformer efficiency
Vcc=13;//supply voltage
ICQ=5;
Pi=Vcc*ICQ;//ip power dissipation in mW
VCEQ=8;
Vp=VCEQ;
ICEQ=5;
Ip=ICEQ;
//power delivered to Xformer primary
Po1=(Vp*Ip)/2;
//Xformer op power
Po = eta * Po1 ;//mW
//ckt efficiency
efficiency=(Po/Pi);
printf("\nMaximum ckt efficiency of class A amplifier =%.1f%%",efficiency);
|
40a3181832bedd9515fa610f83ebcc270932f414 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2240/CH6/EX5.5/EX5_5.sce | 022fce85eb22dde4b62d13e8d04b47ed454c2327 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 431 | sce | EX5_5.sce | // Grob's Basic Electronics 11e
// Chapter No. 05
// Example No. 5_5
clc; clear;
// Two branches, each with a 5-A current, are connected across a 90-V source. How much is the equivalent resistance Req?
// Given data
I1 = 5; // Branch Current 1=5 Amps
I2 = 5; // Branch Current 2=5 Amps
Va = 90; // Applied Voltage=90 Volts
It = I1+I2;
Req = Va/It;
disp (Req,'The Equivalent Resistance Req in Ohms')
|
3b20d4582f7b7cc3c928bbafda762dcb79062f55 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1835/CH3/EX3.13/Ex3_13.sce | 2a3eefb8e52cf0687f9a1857769d752c3b1a4ca8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,079 | sce | Ex3_13.sce | //CHAPTER 3 ILLUSRTATION 13 PAGE NO 111
//TITLE:FRICTION
clc
clear
//===================================================================================
//INPUT DATA
PI=3.147
W=20000// LOAD IN NEWTONS
ALPHA=120/2// CONE ANGLE IN DEGREES
p=350000// INTENSITY OF PRESSURE
U=.06
N=120// SPEED OF THE SHAFT IN rpm
//d1=3d2
//r1=3r2
//===================================================================================
//CALCULATION
//LET K=d1/d2
k=3
Z=W/((k^2-1)*PI*p)
r2=Z^.5// INTERNAL RADIUS IN m
r1=3*r2
T=2*U*W*(r1^3-r2^3)/(3*sind(60)*(r1^2-r2^2))// total frictional torque in N
P=2*PI*N*T/60000// power absorbed in friction in kW
//================================================================================
printf('\nTHE INTERNAL DIAMETER OF SHAFT =%3.3f cm\nTHE EXTERNAL DIAMETER OF SHAFT =%3.3f cm\nPOWER ABSORBED IN FRICTION =%.3f kW',r2*100,r1*100,P)
|
0fa4205aed675b9da610f63ef8d1dff0fd3edc28 | 34636828482b476708c9d0dbd55f73bbc208a528 | /EE302/scilabfiles/Practice1.sce | 7b0142f922bb9084df9a8ba64988aed6ff69b25a | [] | no_license | Venovan/EE324-EE302-control | 5266ddadb5912968c93909046b0fd7ca4a1fb048 | 888b49e5caccc070006931bc1918d8f9859ae845 | refs/heads/master | 2023-03-22T06:25:11.456310 | 2017-04-28T17:27:03 | 2017-04-28T17:27:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 910 | sce | Practice1.sce | s=%s
K=1,T=1
OS = 0.30
tr = 0.08
SimpleSys =syslin('c',K/(1+T*s))
t =0:0.01:15;
y1=csim('step',t,SimpleSys);
//plot(t,y1)
zeta = - log(OS)/sqrt(%pi^2 + log(OS) ^2)
wn = (1/(tr*sqrt(1-zeta^2)))*(%pi - atan(sqrt(1-zeta^2))/zeta)
u2 = sin(t);
y2 = csim(u2,t,SimpleSys);
//plot (t, [u2;y2]')
//evans(SimpleSys)
p = s^2+9*s+9
root= roots(p)
fMin = 0.01
fMax = 10
//scf(0)
//bode(SimpleSys, fMin, fMax)
//xs2png(0, 'Bode.png')
//scf(1)
//evans(SimpleSys)
//xs2png(1, 'RL.png')
A = [0 , 1; -1 ,-0.5]
B = [ 0 ; 1]
C = [1 , 0]
D = [0]
x0 = [ 1 ; 0 ]
SSsys = syslin( 'c' , A , B , C , D , x0 )
t =0:0.1:50;
u = 0.5*ones(1,length(t))
[y,x] = csim(u,t,SSsys);
scf(1)
//plot (t,y)
scf(2)
//plot (t, x)
//evans (SSsys)
tf = ss2tf(SSsys)
poles = roots(denom(tf))
evalues = spec(A)
SubSys1 = syslin( 'c' ,1/s)
SubSys2 = 2
Series = SubSys1 * SubSys2
Parallel = SubSys1 + SubSys2
Feedback = SubSys1/.SubSys2
nyquist(SimpleSys)
|
f6e07793df87cfffd03c6b6eafa8a55a3cc7b748 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set14/s_Material_Science_V._Rajendran_1826.zip/Material_Science_V._Rajendran_1826/CH10/EX10.4/ex10_4.sce | b6c686d627c166c2439faa0195c990b013f3131a | [] | 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 | 232 | sce | ex10_4.sce | errcatch(-1,"stop");mode(2);// Example 10.4, page no-269
ni=1.5*10^16//m^-3
mue=0.13//m^2/V-s
muh=0.05
e=1.6*10^-19//C
sig=ni*e*(mue+muh)
printf("The conductivity of intrinsic Ge is %.2f *10^-4 /ohm-m",sig*10^4)
exit();
|
36a55026e5b76dc428d923a0728853091521d4e6 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/1.1/macros/algebre/penlaur.sci | 392364d99c87d6b2249ae98fa655c3f6bacbc476 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 748 | sci | penlaur.sci | function [Si,Pi,Di,order]=penlaur(E,A)
//[Si,Pi,Di,order]=penlaur(E,A)
// First Laurent coefficients of (s*E-A)^-1;
// (s*E-A)^-1 = ... + Si/s - (Pi + s*Di + ... +s^order Ni) at s = infinity
// order = order of the singularity
// The matrix s*E-A should be invertible.
// F.D. (1988,1990) (Experimental version: troubles when bad conditioning of
// (so*E-A)...)
//!
rand('normal')
tests=rand(1,10);
conditions=0*tests;k=1;
for s0=tests, conditions(k)=cond(s0*E-A);k=k+1;end
[w,k1]=mini(conditions);
if w>1.d+20 then error('Singular pencil!');return;end
s0=tests(k1);
J=inv(s0*E-A);
[Se,Pe,De,i1]=projspec(J*E);
[Sa,Pa,Da,i2]=projspec(J*A);
order=i1-1;
Si=Se*J;
Pi=Pe*Sa*J;
Di=Pi*E*Pi;
if order=0 then Di=0*Di;end
//[S,P,D,index]=projspec(Di*E);
|
532a3303d0bc6e309705ed16a78eb2b3e56d4bbd | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set9/s_Engineering_Mechancis-schaum_Series_Mclean_3137.zip/Engineering_Mechancis-schaum_Series_Mclean_3137/CH18/EX18.32/Ex18_32.sce | 1065d08b9d1476bba1390e7e4773ca2780d48a47 | [] | 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 | 282 | sce | Ex18_32.sce | errcatch(-1,"stop");mode(2);//Initilization of variables
mb=0.06 //kg
vb=500 //m/s
mblock=5 //kg
vblock=30 //m/s
//Calculations
//Applying conservation of momentum
v=(mb*vb+mblock*vblock)/(mb+mblock) //m/s
//Result
printf('The speed of the system is %f m/s',v)
exit();
|
ad7022fcf85a5f9fd153ac71125910aa5d39c224 | 449d555969bfd7befe906877abab098c6e63a0e8 | /62/CH7/EX7.30/ex_7_30.sce | 9a37de1c11138b62bd682f62433dbce2f400e4ec | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 566 | sce | ex_7_30.sce | clc;
A=[0 1;-1/8 3/4];
B=[0;1];
C=[-1/8 3/4];
D=[1];
Hz=ss2tf(syslin('d',A,B,C,D));
disp(Hz,"H(z)=");
z = %z;
syms n z1; //To f i n d out I n v e r s e z t r a n s f o rm z must
//be l i n e a r z = z1
X =z ^2 /((z -(1/2) )*(z -(1/4) ))
X1 = denom (X);
zp = roots (X1);
X1 = z1 ^2 /(( z1 -(1/4) )*(z1 -(1/2) ))
F1 = X1 *( z1 ^(n -1) )*(z1 -zp (1) );
F2 = X1 *( z1 ^(n -1) )*(z1 -zp (2) );
h1 = limit (F1 ,z1 ,zp (1) );
disp (h1 , ' h1 [ n]= ' )
h2 = limit (F2 ,z1 ,zp (2) );
disp (h2 , ' h2 [ n]= ' )
h = h1+h2;
disp ('for n>=0',h, ' h [ n]= ' ) |
7ef709145dbc3d99e30ea7dd381b30d0d0a4a6c4 | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/CONT/TD78LPW/ATWM1_Working_Memory_MEG_TD78LPW_Session2/ATWM1_Working_Memory_MEG_Salient_Cued_Run2.sce | d1bc1208c3303e0e42806c934732d1ba4b2e2f93 | [] | no_license | atwm1/Presentation | 65c674180f731f050aad33beefffb9ba0caa6688 | 9732a004ca091b184b670c56c55f538ff6600c08 | refs/heads/master | 2020-04-15T14:04:41.900640 | 2020-02-14T16:10:11 | 2020-02-14T16:10:11 | 56,771,016 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 49,386 | sce | ATWM1_Working_Memory_MEG_Salient_Cued_Run2.sce | # ATWM1 MEG Experiment
scenario = "ATWM1_Working_Memory_MEG_salient_cued_run2";
#scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
scenario_type = trials; # for MEG
#scan_period = 2000; # TR
#pulses_per_scan = 1;
#pulse_code = 1;
pulse_width=6;
default_monitor_sounds = false;
active_buttons = 2;
response_matching = simple_matching;
button_codes = 10, 20;
default_font_size = 28;
default_font = "Arial";
default_background_color = 0 ,0 ,0 ;
write_codes=true; # for MEG only
begin;
#Picture definitions
box { height = 300; width = 300; color = 0, 0, 0;} frame1;
box { height = 290; width = 290; color = 255, 255, 255;} frame2;
box { height = 30; width = 4; color = 0, 0, 0;} fix1;
box { height = 4; width = 30; color = 0, 0, 0;} fix2;
box { height = 30; width = 4; color = 255, 0, 0;} fix3;
box { height = 4; width = 30; color = 255, 0, 0;} fix4;
box { height = 290; width = 290; color = 128, 128, 128;} background;
TEMPLATE "StimuliDeclaration.tem" {};
trial {
sound sound_incorrect;
time = 0;
duration = 1;
} wrong;
trial {
sound sound_correct;
time = 0;
duration = 1;
} right;
trial {
sound sound_no_response;
time = 0;
duration = 1;
} miss;
# Start of experiment (MEG only) - sync with CTF software
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
} expStart;
time = 0;
duration = 1000;
code = "ExpStart";
port_code = 80;
};
# baselinePre (at the beginning of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
}default;
time = 0;
duration = 10000;
#mri_pulse = 1;
code = "BaselinePre";
port_code = 91;
};
TEMPLATE "ATWM1_Working_Memory_MEG.tem" {
trigger_encoding trigger_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4;
41 61 292 292 399 125 2042 2992 2392 fixation_cross gabor_035 gabor_170 gabor_003 gabor_124 gabor_035_alt gabor_170_alt gabor_003 gabor_124 "2_1_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2400_gabor_patch_orientation_035_170_003_124_target_position_1_2_retrieval_position_1" gabor_081_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_1_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_081_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2192 2992 2092 fixation_cross gabor_109 gabor_049 gabor_165 gabor_075 gabor_109_alt gabor_049_alt gabor_165 gabor_075 "2_2_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2100_gabor_patch_orientation_109_049_165_075_target_position_1_2_retrieval_position_2" gabor_circ gabor_049_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_2_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_049_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 2142 2992 1992 fixation_cross gabor_116 gabor_168 gabor_089 gabor_031 gabor_116_alt gabor_168 gabor_089_alt gabor_031 "2_3_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2000_gabor_patch_orientation_116_168_089_031_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_139_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_3_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_139_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 1792 2992 1942 fixation_cross gabor_107 gabor_090 gabor_140 gabor_059 gabor_107_alt gabor_090 gabor_140_alt gabor_059 "2_4_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_1950_gabor_patch_orientation_107_090_140_059_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_140_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_4_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_140_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 2092 2992 2092 fixation_cross gabor_175 gabor_108 gabor_042 gabor_086 gabor_175_alt gabor_108_alt gabor_042 gabor_086 "2_5_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2100_gabor_patch_orientation_175_108_042_086_target_position_1_2_retrieval_position_1" gabor_128_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_5_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_128_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2242 2992 2492 fixation_cross gabor_098 gabor_008 gabor_046 gabor_083 gabor_098_alt gabor_008 gabor_046 gabor_083_alt "2_6_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2500_gabor_patch_orientation_098_008_046_083_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_083_framed blank blank blank blank fixation_cross_target_position_1_4 "2_6_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_083_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1742 2992 1892 fixation_cross gabor_177 gabor_040 gabor_017 gabor_058 gabor_177_alt gabor_040 gabor_017 gabor_058_alt "2_7_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_1900_gabor_patch_orientation_177_040_017_058_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_103_framed blank blank blank blank fixation_cross_target_position_1_4 "2_7_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_103_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 63 292 292 399 125 1942 2992 1892 fixation_cross gabor_001 gabor_075 gabor_155 gabor_019 gabor_001 gabor_075_alt gabor_155 gabor_019_alt "2_8_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_300_300_399_1950_3000_1900_gabor_patch_orientation_001_075_155_019_target_position_2_4_retrieval_position_3" gabor_circ gabor_circ gabor_108_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_8_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_108_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1792 2992 1892 fixation_cross gabor_006 gabor_094 gabor_029 gabor_114 gabor_006 gabor_094 gabor_029_alt gabor_114_alt "2_9_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_1900_gabor_patch_orientation_006_094_029_114_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_165_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_9_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_165_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2142 2992 2092 fixation_cross gabor_128 gabor_148 gabor_038 gabor_164 gabor_128 gabor_148_alt gabor_038_alt gabor_164 "2_10_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2100_gabor_patch_orientation_128_148_038_164_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_038_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_10_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_038_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1742 2992 2092 fixation_cross gabor_084 gabor_057 gabor_017 gabor_169 gabor_084_alt gabor_057 gabor_017 gabor_169_alt "2_11_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2100_gabor_patch_orientation_084_057_017_169_target_position_1_4_retrieval_position_1" gabor_132_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_11_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_132_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1892 2992 2242 fixation_cross gabor_015 gabor_140 gabor_124 gabor_180 gabor_015_alt gabor_140 gabor_124_alt gabor_180 "2_12_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2250_gabor_patch_orientation_015_140_124_180_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_074_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_12_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_074_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 63 292 292 399 125 1942 2992 2092 fixation_cross gabor_071 gabor_043 gabor_013 gabor_160 gabor_071 gabor_043 gabor_013_alt gabor_160_alt "2_13_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_300_300_399_1950_3000_2100_gabor_patch_orientation_071_043_013_160_target_position_3_4_retrieval_position_1" gabor_119_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_13_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_119_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1842 2992 1942 fixation_cross gabor_004 gabor_157 gabor_081 gabor_028 gabor_004 gabor_157_alt gabor_081 gabor_028_alt "2_14_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_1950_gabor_patch_orientation_004_157_081_028_target_position_2_4_retrieval_position_2" gabor_circ gabor_112_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_14_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_112_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 1892 2992 2042 fixation_cross gabor_095 gabor_124 gabor_173 gabor_063 gabor_095 gabor_124 gabor_173_alt gabor_063_alt "2_15_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2050_gabor_patch_orientation_095_124_173_063_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_063_framed blank blank blank blank fixation_cross_target_position_3_4 "2_15_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_063_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 64 292 292 399 125 1792 2992 2442 fixation_cross gabor_097 gabor_063 gabor_146 gabor_117 gabor_097_alt gabor_063_alt gabor_146 gabor_117 "2_16_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_300_300_399_1800_3000_2450_gabor_patch_orientation_097_063_146_117_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_146_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_16_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_146_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 2092 2992 2592 fixation_cross gabor_104 gabor_036 gabor_073 gabor_153 gabor_104 gabor_036 gabor_073_alt gabor_153_alt "2_17_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2600_gabor_patch_orientation_104_036_073_153_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_017_framed blank blank blank blank fixation_cross_target_position_3_4 "2_17_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_017_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 2192 2992 2292 fixation_cross gabor_160 gabor_111 gabor_086 gabor_037 gabor_160_alt gabor_111 gabor_086_alt gabor_037 "2_18_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2200_3000_2300_gabor_patch_orientation_160_111_086_037_target_position_1_3_retrieval_position_1" gabor_021_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_18_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_021_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2242 2992 1942 fixation_cross gabor_090 gabor_123 gabor_008 gabor_035 gabor_090_alt gabor_123 gabor_008 gabor_035_alt "2_19_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_1950_gabor_patch_orientation_090_123_008_035_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_035_framed blank blank blank blank fixation_cross_target_position_1_4 "2_19_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_035_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 1892 2992 2192 fixation_cross gabor_033 gabor_172 gabor_090 gabor_015 gabor_033 gabor_172_alt gabor_090_alt gabor_015 "2_20_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2200_gabor_patch_orientation_033_172_090_015_target_position_2_3_retrieval_position_2" gabor_circ gabor_172_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_20_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_172_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1992 2992 2142 fixation_cross gabor_002 gabor_122 gabor_159 gabor_177 gabor_002_alt gabor_122 gabor_159 gabor_177_alt "2_21_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2150_gabor_patch_orientation_002_122_159_177_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_041_framed blank blank blank blank fixation_cross_target_position_1_4 "2_21_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_041_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 64 292 292 399 125 1892 2992 2192 fixation_cross gabor_180 gabor_045 gabor_100 gabor_027 gabor_180_alt gabor_045 gabor_100_alt gabor_027 "2_22_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_300_300_399_1900_3000_2200_gabor_patch_orientation_180_045_100_027_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_027_framed blank blank blank blank fixation_cross_target_position_1_3 "2_22_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_027_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 1942 2992 2542 fixation_cross gabor_163 gabor_024 gabor_047 gabor_137 gabor_163_alt gabor_024 gabor_047_alt gabor_137 "2_23_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2550_gabor_patch_orientation_163_024_047_137_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_047_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_23_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_047_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2242 2992 1892 fixation_cross gabor_133 gabor_018 gabor_151 gabor_065 gabor_133_alt gabor_018_alt gabor_151 gabor_065 "2_24_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_1900_gabor_patch_orientation_133_018_151_065_target_position_1_2_retrieval_position_1" gabor_133_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_24_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_133_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 2142 2992 2442 fixation_cross gabor_114 gabor_053 gabor_077 gabor_097 gabor_114_alt gabor_053 gabor_077_alt gabor_097 "2_25_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2450_gabor_patch_orientation_114_053_077_097_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_032_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_25_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_032_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 63 292 292 399 125 1792 2992 2242 fixation_cross gabor_091 gabor_148 gabor_128 gabor_064 gabor_091_alt gabor_148 gabor_128 gabor_064_alt "2_26_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_300_300_399_1800_3000_2250_gabor_patch_orientation_091_148_128_064_target_position_1_4_retrieval_position_2" gabor_circ gabor_008_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_26_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_008_retrieval_position_2" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2042 2992 2192 fixation_cross gabor_052 gabor_005 gabor_034 gabor_122 gabor_052 gabor_005 gabor_034_alt gabor_122_alt "2_27_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2200_gabor_patch_orientation_052_005_034_122_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_034_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_27_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_034_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2042 2992 2542 fixation_cross gabor_065 gabor_002 gabor_021 gabor_130 gabor_065_alt gabor_002 gabor_021 gabor_130_alt "2_28_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2550_gabor_patch_orientation_065_002_021_130_target_position_1_4_retrieval_position_1" gabor_065_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_28_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_065_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1842 2992 1992 fixation_cross gabor_164 gabor_051 gabor_012 gabor_087 gabor_164 gabor_051 gabor_012_alt gabor_087_alt "2_29_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2000_gabor_patch_orientation_164_051_012_087_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_137_framed blank blank blank blank fixation_cross_target_position_3_4 "2_29_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_137_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1742 2992 2392 fixation_cross gabor_038 gabor_021 gabor_063 gabor_002 gabor_038_alt gabor_021 gabor_063 gabor_002_alt "2_30_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2400_gabor_patch_orientation_038_021_063_002_target_position_1_4_retrieval_position_1" gabor_176_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_30_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_176_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 64 292 292 399 125 1992 2992 2342 fixation_cross gabor_111 gabor_033 gabor_048 gabor_088 gabor_111_alt gabor_033 gabor_048 gabor_088_alt "2_31_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_300_300_399_2000_3000_2350_gabor_patch_orientation_111_033_048_088_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_048_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_31_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_048_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 2192 2992 1942 fixation_cross gabor_033 gabor_104 gabor_149 gabor_123 gabor_033 gabor_104 gabor_149_alt gabor_123_alt "2_32_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2200_3000_1950_gabor_patch_orientation_033_104_149_123_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_014_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_32_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_014_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 1792 2992 2042 fixation_cross gabor_100 gabor_046 gabor_075 gabor_019 gabor_100 gabor_046 gabor_075_alt gabor_019_alt "2_33_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2050_gabor_patch_orientation_100_046_075_019_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_019_framed blank blank blank blank fixation_cross_target_position_3_4 "2_33_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_019_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2142 2992 2142 fixation_cross gabor_066 gabor_018 gabor_153 gabor_037 gabor_066 gabor_018_alt gabor_153_alt gabor_037 "2_34_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2150_gabor_patch_orientation_066_018_153_037_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_153_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_34_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_153_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1992 2992 2342 fixation_cross gabor_015 gabor_128 gabor_099 gabor_038 gabor_015 gabor_128_alt gabor_099_alt gabor_038 "2_35_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2350_gabor_patch_orientation_015_128_099_038_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_149_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_35_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_149_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 64 292 292 399 125 1992 2992 2342 fixation_cross gabor_067 gabor_014 gabor_172 gabor_034 gabor_067_alt gabor_014_alt gabor_172 gabor_034 "2_36_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_300_300_399_2000_3000_2350_gabor_patch_orientation_067_014_172_034_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_172_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_36_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_172_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 1742 2992 2192 fixation_cross gabor_064 gabor_012 gabor_032 gabor_176 gabor_064 gabor_012_alt gabor_032_alt gabor_176 "2_37_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2200_gabor_patch_orientation_064_012_032_176_target_position_2_3_retrieval_position_2" gabor_circ gabor_012_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_37_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_012_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2092 2992 2142 fixation_cross gabor_054 gabor_166 gabor_122 gabor_095 gabor_054 gabor_166_alt gabor_122 gabor_095_alt "2_38_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2150_gabor_patch_orientation_054_166_122_095_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_095_framed blank blank blank blank fixation_cross_target_position_2_4 "2_38_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_095_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2042 2992 2042 fixation_cross gabor_014 gabor_168 gabor_119 gabor_096 gabor_014_alt gabor_168 gabor_119_alt gabor_096 "2_39_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2050_gabor_patch_orientation_014_168_119_096_target_position_1_3_retrieval_position_1" gabor_014_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_39_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_014_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1942 2992 2592 fixation_cross gabor_094 gabor_005 gabor_167 gabor_115 gabor_094_alt gabor_005 gabor_167_alt gabor_115 "2_40_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2600_gabor_patch_orientation_094_005_167_115_target_position_1_3_retrieval_position_1" gabor_143_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_40_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_143_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 63 292 292 399 125 2042 2992 2592 fixation_cross gabor_040 gabor_176 gabor_069 gabor_100 gabor_040_alt gabor_176_alt gabor_069 gabor_100 "2_41_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_300_300_399_2050_3000_2600_gabor_patch_orientation_040_176_069_100_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_147_framed blank blank blank blank fixation_cross_target_position_1_2 "2_41_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_147_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 1842 2992 2242 fixation_cross gabor_111 gabor_022 gabor_180 gabor_135 gabor_111_alt gabor_022_alt gabor_180 gabor_135 "2_42_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2250_gabor_patch_orientation_111_022_180_135_target_position_1_2_retrieval_position_2" gabor_circ gabor_022_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_42_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_022_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2042 2992 1992 fixation_cross gabor_072 gabor_030 gabor_004 gabor_089 gabor_072_alt gabor_030_alt gabor_004 gabor_089 "2_43_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2000_gabor_patch_orientation_072_030_004_089_target_position_1_2_retrieval_position_1" gabor_072_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_43_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_072_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 64 292 292 399 125 1842 2992 2392 fixation_cross gabor_089 gabor_017 gabor_106 gabor_136 gabor_089_alt gabor_017 gabor_106 gabor_136_alt "2_44_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_300_300_399_1850_3000_2400_gabor_patch_orientation_089_017_106_136_target_position_1_4_retrieval_position_2" gabor_circ gabor_017_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_44_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_017_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 2242 2992 2542 fixation_cross gabor_060 gabor_039 gabor_146 gabor_078 gabor_060_alt gabor_039 gabor_146 gabor_078_alt "2_45_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2550_gabor_patch_orientation_060_039_146_078_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_128_framed blank blank blank blank fixation_cross_target_position_1_4 "2_45_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_128_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1992 2992 2342 fixation_cross gabor_149 gabor_022 gabor_066 gabor_171 gabor_149_alt gabor_022 gabor_066_alt gabor_171 "2_46_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2350_gabor_patch_orientation_149_022_066_171_target_position_1_3_retrieval_position_1" gabor_099_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_46_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_099_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1742 2992 2342 fixation_cross gabor_124 gabor_041 gabor_089 gabor_107 gabor_124 gabor_041_alt gabor_089 gabor_107_alt "2_47_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2350_gabor_patch_orientation_124_041_089_107_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_057_framed blank blank blank blank fixation_cross_target_position_2_4 "2_47_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_057_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1842 2992 2042 fixation_cross gabor_059 gabor_033 gabor_122 gabor_140 gabor_059_alt gabor_033 gabor_122 gabor_140_alt "2_48_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2050_gabor_patch_orientation_059_033_122_140_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_002_framed blank blank blank blank fixation_cross_target_position_1_4 "2_48_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_002_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1942 2992 2442 fixation_cross gabor_092 gabor_139 gabor_110 gabor_052 gabor_092_alt gabor_139 gabor_110 gabor_052_alt "2_49_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2450_gabor_patch_orientation_092_139_110_052_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_004_framed blank blank blank blank fixation_cross_target_position_1_4 "2_49_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_004_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 63 292 292 399 125 1792 2992 2042 fixation_cross gabor_113 gabor_049 gabor_136 gabor_172 gabor_113_alt gabor_049_alt gabor_136 gabor_172 "2_50_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_300_300_399_1800_3000_2050_gabor_patch_orientation_113_049_136_172_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_087_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_50_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_087_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 1842 2992 2292 fixation_cross gabor_046 gabor_074 gabor_025 gabor_089 gabor_046 gabor_074_alt gabor_025_alt gabor_089 "2_51_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2300_gabor_patch_orientation_046_074_025_089_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_025_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_51_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_025_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2192 2992 1942 fixation_cross gabor_130 gabor_160 gabor_101 gabor_048 gabor_130 gabor_160_alt gabor_101 gabor_048_alt "2_52_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_1950_gabor_patch_orientation_130_160_101_048_target_position_2_4_retrieval_position_2" gabor_circ gabor_160_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_52_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_160_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 1742 2992 2192 fixation_cross gabor_115 gabor_165 gabor_095 gabor_138 gabor_115 gabor_165_alt gabor_095 gabor_138_alt "2_53_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2200_gabor_patch_orientation_115_165_095_138_target_position_2_4_retrieval_position_2" gabor_circ gabor_165_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_53_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_165_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 2242 2992 2292 fixation_cross gabor_179 gabor_061 gabor_149 gabor_121 gabor_179_alt gabor_061 gabor_149_alt gabor_121 "2_54_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2300_gabor_patch_orientation_179_061_149_121_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_102_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_54_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_102_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 1942 2992 1992 fixation_cross gabor_127 gabor_041 gabor_002 gabor_089 gabor_127_alt gabor_041 gabor_002 gabor_089_alt "2_55_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2000_gabor_patch_orientation_127_041_002_089_target_position_1_4_retrieval_position_1" gabor_127_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_55_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_127_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1992 2992 2142 fixation_cross gabor_018 gabor_075 gabor_099 gabor_128 gabor_018_alt gabor_075 gabor_099_alt gabor_128 "2_56_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2150_gabor_patch_orientation_018_075_099_128_target_position_1_3_retrieval_position_1" gabor_153_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_56_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_153_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2092 2992 2492 fixation_cross gabor_177 gabor_094 gabor_113 gabor_006 gabor_177 gabor_094 gabor_113_alt gabor_006_alt "2_57_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2500_gabor_patch_orientation_177_094_113_006_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_006_framed blank blank blank blank fixation_cross_target_position_3_4 "2_57_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_006_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 64 292 292 399 125 2192 2992 2542 fixation_cross gabor_048 gabor_024 gabor_076 gabor_138 gabor_048 gabor_024_alt gabor_076_alt gabor_138 "2_58_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_300_300_399_2200_3000_2550_gabor_patch_orientation_048_024_076_138_target_position_2_3_retrieval_position_1" gabor_048_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_58_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_048_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 2092 2992 2492 fixation_cross gabor_075 gabor_018 gabor_090 gabor_123 gabor_075 gabor_018 gabor_090_alt gabor_123_alt "2_59_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_2500_gabor_patch_orientation_075_018_090_123_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_044_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_59_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_044_retrieval_position_3" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1892 2992 2492 fixation_cross gabor_161 gabor_056 gabor_030 gabor_008 gabor_161 gabor_056_alt gabor_030 gabor_008_alt "2_60_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2500_gabor_patch_orientation_161_056_030_008_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_145_framed blank blank blank blank fixation_cross_target_position_2_4 "2_60_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_145_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 1792 2992 2592 fixation_cross gabor_015 gabor_148 gabor_036 gabor_105 gabor_015_alt gabor_148 gabor_036_alt gabor_105 "2_61_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2600_gabor_patch_orientation_015_148_036_105_target_position_1_3_retrieval_position_1" gabor_015_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_61_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_015_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 63 292 292 399 125 2142 2992 2292 fixation_cross gabor_126 gabor_096 gabor_013 gabor_159 gabor_126 gabor_096 gabor_013_alt gabor_159_alt "2_62_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_300_300_399_2150_3000_2300_gabor_patch_orientation_126_096_013_159_target_position_3_4_retrieval_position_1" gabor_080_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_62_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_080_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1742 2992 2442 fixation_cross gabor_004 gabor_126 gabor_092 gabor_072 gabor_004_alt gabor_126_alt gabor_092 gabor_072 "2_63_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2450_gabor_patch_orientation_004_126_092_072_target_position_1_2_retrieval_position_1" gabor_052_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_63_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_052_retrieval_position_1" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2092 2992 2392 fixation_cross gabor_006 gabor_072 gabor_129 gabor_159 gabor_006 gabor_072 gabor_129_alt gabor_159_alt "2_64_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2400_gabor_patch_orientation_006_072_129_159_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_159_framed blank blank blank blank fixation_cross_target_position_3_4 "2_64_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_159_retrieval_position_4" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 1892 2992 2242 fixation_cross gabor_105 gabor_030 gabor_146 gabor_090 gabor_105 gabor_030_alt gabor_146_alt gabor_090 "2_65_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2250_gabor_patch_orientation_105_030_146_090_target_position_2_3_retrieval_position_2" gabor_circ gabor_030_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_65_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_030_retrieval_position_2" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 63 292 292 399 125 2142 2992 2142 fixation_cross gabor_142 gabor_009 gabor_177 gabor_070 gabor_142 gabor_009_alt gabor_177_alt gabor_070 "2_66_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_300_300_399_2150_3000_2150_gabor_patch_orientation_142_009_177_070_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_025_framed blank blank blank blank fixation_cross_target_position_2_3 "2_66_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_025_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 2242 2992 2292 fixation_cross gabor_161 gabor_096 gabor_127 gabor_055 gabor_161_alt gabor_096 gabor_127_alt gabor_055 "2_67_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2300_gabor_patch_orientation_161_096_127_055_target_position_1_3_retrieval_position_1" gabor_161_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_67_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_161_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 62 292 292 399 125 1892 2992 2242 fixation_cross gabor_041 gabor_013 gabor_102 gabor_160 gabor_041_alt gabor_013_alt gabor_102 gabor_160 "2_68_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_300_300_399_1900_3000_2250_gabor_patch_orientation_041_013_102_160_target_position_1_2_retrieval_position_1" gabor_041_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_68_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_041_retrieval_position_1" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 61 292 292 399 125 1842 2992 1892 fixation_cross gabor_180 gabor_163 gabor_039 gabor_010 gabor_180 gabor_163 gabor_039_alt gabor_010_alt "2_69_Encoding_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_1900_gabor_patch_orientation_180_163_039_010_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_145_framed blank blank blank blank fixation_cross_target_position_3_4 "2_69_Retrieval_Working_Memory_MEG_P4_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_145_retrieval_position_4" 2 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
41 64 292 292 399 125 2192 2992 1992 fixation_cross gabor_088 gabor_071 gabor_133 gabor_045 gabor_088_alt gabor_071_alt gabor_133 gabor_045 "2_70_Encoding_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_300_300_399_2200_3000_2000_gabor_patch_orientation_088_071_133_045_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_133_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_70_Retrieval_Working_Memory_MEG_P4_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_133_retrieval_position_3" 1 45.96 45.96 -45.96 45.96 -45.96 -45.96 45.96 -45.96;
};
# baselinePost (at the end of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
};
time = 0;
duration = 5000;
code = "BaselinePost";
port_code = 92;
}; |
261f308c5ce338c985ac5064e66ae7ad7477ebed | 449d555969bfd7befe906877abab098c6e63a0e8 | /2672/CH3/EX3.27/Ex3_27.sce | ec6da2fa22728187d0c02c13e79bf1980c99e49a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 838 | sce | Ex3_27.sce | //Example 3_27
clc;
clear;
close;
format('v',6);
//given data :
V=230;//V
f=50;//Hz
R1=12;//ohm
XL1=12;//ohm
R2=8;//ohm
XL2=16;//ohm
Z1=R1+%i*XL1;//ohm
Z2=R2+%i*XL2;//ohm
Y1=1/Z1;//mho
Y2=1/Z2;//mhob
I1=V*Y1;//A
I1mag=abs(I1);//A
I1ang=atand(imag(I1)/real(I1));//degree
disp(I1ang,I1mag,"current I1, magnitude(A) & Angle(degree) are");
I2=V*Y2;//A
I2mag=abs(I2);//A
I2ang=atand(imag(I2)/real(I2));//degree
disp(I2ang,I2mag,"Current I2, magnitude(A) & Angle(degree) are");
I=I1+I2;//A
Imag=abs(I);//A
Iang=atand(imag(I)/real(I));//degree
disp(Iang,Imag,"Total current, magnitude(A) & Angle(degree) are");
pf=cosd(Iang);//Power Factor(lagging)
fi=acosd(pf);//degree
disp(pf,"Power Factor(lagging)");
P=abs(V)*Imag*pf;//W
P=P/1000;//kW
disp(P,"Power Consumed(kW)");
//Answer is not accurate in the book.
|
8ec6d9ead0887442d060cd57e66c4db12a8f87d9 | b9602336613b26d0b9c22a09d219c0ed8e158b4e | /Examples/Examples_MatFunc/expmat.sce | c2856e9ceab757fcb49099ecd1bba178c179007b | [
"BSD-2-Clause"
] | permissive | CEG-MCA-Scilab-Hackathon/Scilab_Armadillo_Toolbox | d0a366f5f058ee45d3c4be7a41e08ed419d4b7cd | 70c97cda4e0dd54df0a638e9b99f380c09ffa37e | refs/heads/master | 2022-12-11T01:28:28.742041 | 2020-08-26T12:24:27 | 2020-08-26T12:24:27 | 290,481,428 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 207 | sce | expmat.sce | // Function Name: expmat
// Returns the Matrix exponential of the input matrix.
// Calculating the expmat.
inputMat = [-1.2, 1, 1.9; -4, 2.6, 5; -2.3, 8, -7];
result = armaMatFunc("expmat",inputMat)
|
9c46ae1336091123f91646f70ecbd93bc314f77e | d69ed580f23c687ea3ccf48bafbd561aac6931f4 | /LU-decomposition.sce | 4fae175a1422856ca76b0915446ab0fff69a8251 | [] | no_license | AshayGowda/Linear_Algebra | 0b03fbedc7182283d7cd608ff6779afeb52f9ac3 | b635496a8697f64fad67e82c0e0dfd59bb44bc64 | refs/heads/master | 2021-01-02T16:17:42.453704 | 2020-06-03T19:19:22 | 2020-06-03T19:19:22 | 239,699,840 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 531 | sce | LU-decomposition.sce | A = [3 , -0.1 , -0.2;0.1 ,7 , -0.3;0.3 , -0.2 ,10];
U = A ;
disp(A,'The-given-matrix-is-A=')
m = det (U (1 ,1) ) ;
n = det (U (2 ,1) ) ;
a = n / m ;
U (2 ,:) = U (2,:) - U (1 ,:) / ( m / n ) ;
n = det (U (3 ,1) ) ;
b = n / m ;
U (3 ,:) = U (3 ,:) - U (1 ,:) / ( m / n ) ;
m = det (U (2 ,2) ) ;
n = det (U (3 ,2) ) ;
c = n / m ;
U (3 ,:) = U (3 ,:) - U (2 ,:) / ( m / n ) ;
disp (U, 'The-upper-triangular-matrix-is-U-=')
L = [1 ,0 ,0; a ,1 ,0; b ,c ,1];
disp (L,'The-lower-triangular-matrix-is-L-=')
|
091b7d4648e8155229acdd9325d9a4cf5daa5474 | 6b85d1958ff11075634ed9e0f6dbef2de9548f1b | /ANN_Toolbox/macros/ann_sum_of_sqr.sci | af847a97b50bd233d290618d3efaa4cfb3fb558f | [
"Unlicense"
] | permissive | ademarazn/REDES_NEURAIS | 8a048c13aab33daa4068f52e18b263cc8325884f | a9a35744476d1f7e8405df04d5e4a9f8e4ed4595 | refs/heads/master | 2021-05-06T13:09:56.514632 | 2018-04-25T18:49:30 | 2018-04-25T18:49:30 | 113,248,743 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 342 | sci | ann_sum_of_sqr.sci | function E = ann_sum_of_sqr(y,t)
// This file is part of:
// ANN Toolbox for Scilab 5.x
// Copyright (C) Ryurick M. Hristev
// updated by Allan CORNET INRIA, May 2008
// released under GNU Public licence version 2
// calculates sum-of-squares error between "y" and "t" patterns
// see ANN_GEN (help)
E = sum((y-t) .^ 2) / 2;
endfunction
|
222f1b7d3d0779631a8f6e6ced83cd30d356ce29 | 87bc77e7099940c476a849ac22f0c25912ab345e | /LA/Assignment2/Class_5.sce | 9cae2a3904cf4ddc1c44bf3b0e2a996550eba780 | [] | no_license | Arindaam/Class-work | 8f4af9cc39301fe7231bfffe4b3e49842ddf3775 | c8ba9fa3981d8b352c227e2dede48e776c049d4c | refs/heads/master | 2021-06-26T09:55:33.884258 | 2021-06-22T15:51:51 | 2021-06-22T15:51:51 | 207,601,170 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 475 | sce | Class_5.sce | clear;close;
clc;
n=3
disp("Enter matrix A")
for i=1:n
for j=1:n
A(i,j)=input("Enter")
end
end
disp('matrix is ')
disp(A,'A is ');
[m,n]=size(A);
disp(m,'m is ');
disp(n,'n is ');
[v,pivot]=rref(A);
disp(rref(A));
disp(v);
r=length(pivot);
disp(r,'rank is ')
cs=A(:,pivot);
disp(cs,'Column Space is ');
ns=kernel(A);
disp(ns,'Null Space is ');
rs=v(1:r,:)';
disp(rs,'Row Space is ')
lns=kernel(A');
disp(lns,'Left Null Space is ');
|
51b12ce83aca2d75d7daf93413a23ce8e574f2e7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2840/CH9/EX9.13/ex9_13.sce | 74b8e0e7f3859f0d555e3aeaf590cd3ec4623ba4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 350 | sce | ex9_13.sce | clc;
clear all;
a = 0.2e-9 // Width of box in meter
m = 9.1e-31; // Mass of electron in kg
h = 6.62e-34; // Planck's constant in Js
c = 3e8; // Velocity of light in vaccum
E5 = 230*1.6e-19 // Energy of a particle in Volts in 5th antinode
n = 5;
E1 = E5/(n^2);
m = (h^2)/(8*E1*a^2);//Mass of electron
disp('kg',m,'Mass of electron is ');
|
a3146b7ef3dfad2effa9ab6dd01161df2cc36412 | b5c67ec6ca2b68ab137bf01b712c2296efa2276d | /code/tst/calculemus.tst | 7b0cff7abf4444e0b403402c3d937e296b2c6ea6 | [
"BSD-3-Clause"
] | permissive | mikekucera/MapleMIX | 32acb8ffa0af64efe9eb1367a40a099de18232f7 | 695307111fbeb360c30d8c3ef30cc182bc3678b4 | refs/heads/master | 2023-06-22T21:57:01.033953 | 2023-06-09T14:43:39 | 2023-06-09T14:43:39 | 27,238,914 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,274 | tst | calculemus.tst | #test
# TEST SUITE 1: BINARY POWERING #######################################
with(TestTools):
kernelopts(opaquemodules=false):
libname := libname, "../lib":
#######################################################################
coefflist := proc(p) local d, i;
d := degree(p,x);
return [seq(coeff(p, x, d-i), i=0..d)];
end proc:
mydegree := proc(p, v) local lst, i, s;
lst := coefflist(p, v);
s := nops(lst);
for i from 1 to s do
if lst[i] <> 0 then
return s-i
end if;
end do;
return -infinity;
end proc:
goal := proc(a, b, c) local p;
p := a*x^2+b*x+c;
mydegree(p, x)
end proc;
opts := PEOptions();
opts:-setPropagateDynamic(true);
res1 := OnPE(goal, opts):
got := ToInert(eval(res1:-ModuleApply));
expected := ToInert(
proc(a, b, c)
if a <> 0 then 2
elif b <> 0 then 1
elif c <> 0 then 0
else -infinity
end if
end proc
);
Try(101, got, expected);
goal2a := proc(a,b) local p;
p := a*x^17+b*x^12;
mydegree(p, x);
end proc;
res2 := OnPE(goal2a, opts):
got := ToInert(eval(res2:-ModuleApply));
expected := ToInert(
proc(a, b)
if a <> 0 then 17
elif b <> 0 then 12
else -infinity
end if
end proc
);
Try(102, got, expected);
goal2b := proc(a,b) local p;
p := a*x^17+b*x^12+3*x;
mydegree(p, x);
end proc;
res3 := OnPE(goal2b, opts):
got := ToInert(eval(res3:-ModuleApply));
expected := ToInert(
proc(a, b)
if a <> 0 then 17
elif b <> 0 then 12
else 1
end if
end proc
);
Try(103, got, expected);
goal2c := proc(a) local p;
p := (a-5)*x^17+(a^2-1)*x^12+3*x;
mydegree(p, x);
end proc;
res4 := OnPE(goal2c, opts):
got := ToInert(eval(res4:-ModuleApply));
expected := ToInert(
proc(a)
if a - 5 <> 0 then 17
elif a^2 - 1 <> 0 then 12
else 1
end if
end proc
);
Try(104, got, expected);
#######################################################################
GE := proc(AA, n, m) local B,i,j,k,r,d,s,t,rmar,pivot,ii;
B := table(); # make a copy
for ii to n do for j to m do B[ii,j] := AA[ii,j] end do end do;
rmar := min(n,m); s := 1; d := 1; r := 1;
for k to min(m,rmar) while r <= n do
# Search for a pivot element. Choose the first
pivot := -1;
for i from r to n do
if (pivot = -1) then
if (B[i,k] <> 0) then pivot := i; end if;
end if;
end do;
if pivot>-1 then # interchange row i with row r is necessary
if pivot <> r then
s := -s;
for j from k to m do
t := B[pivot,j]; B[pivot,j] := B[r,j]; B[r,j] := t
end do;
end if;
for i from r+1 to n do
for j from k+1 to m do
B[i,j] := (B[i,j]*B[r,k]- B[r,j]*B[i,k])/ d;
end do;
B[i,k] := 0;
end do;
d := B[r,k];
r := r + 1 # go to next row
end if;
end do; # go to next column
eval(B);
end proc:
goal1 := proc() local A;
A := table([(1,1)=1, (1,2)=2, (2,1)=-5, (2,2)=6]);
GE(A, 2, 2);
end proc:
goal1();
goal2 := proc(x) local A;
A := table([
(1,1) = 1, (1, 2)=-2, (1,3)=3, (1,4)=1,
(2,1) = 2, (2, 2)=x, (2,3)=6, (2,4)=6,
(3,1) =-1, (3, 2)=3, (3,3)=x-3, (3,4)=0]);
GE(A, 3, 4);
end proc:
opts := PEOptions();
opts:-setInlineAssigns();
res1 := OnPE(goal1, opts): # fully static, easy
got := res1:-ModuleApply();
Try(201, got[1,1], 1);
Try(202, got[1,2], 2);
Try(203, got[2,1], 0);
Try(204, got[2,2], 16);
res2 := OnPE(goal2, opts): # the one we really care about
got := ToInert(eval(res2:-ModuleApply));
expected := ToInert(
proc(x) local B1;
B1[2, 2] := x;
B1[3, 3] := x - 3;
B1[2, 2] := B1[2, 2] + 4;
B1[3, 3] := B1[3, 3] + 3;
if B1[2, 2] <> 0 then
B1[3, 3] := B1[3, 3] * B1[2, 2];
B1[3, 4] := B1[2, 2] - 4;
if B1[3, 3] <> 0 then
B1[1, 1] := 1;
B1[1, 2] := -2;
B1[1, 3] := 3;
B1[1, 4] := 1;
B1[2, 1] := 0;
B1[2, 3] := 0;
B1[2, 4] := 4;
B1[3, 1] := 0;
B1[3, 2] := 0;
eval(B1)
else
B1[1, 1] := 1;
B1[1, 2] := -2;
B1[1, 3] := 3;
B1[1, 4] := 1;
B1[2, 1] := 0;
B1[2, 3] := 0;
B1[2, 4] := 4;
B1[3, 1] := 0;
B1[3, 2] := 0;
B1[3, 3] := 0;
eval(B1)
end if
else
B1[2, 3] := B1[3, 3];
B1[1, 1] := 1;
B1[1, 2] := -2;
B1[1, 3] := 3;
B1[1, 4] := 1;
B1[2, 1] := 0;
B1[2, 2] := 1;
B1[2, 4] := 1;
B1[3, 1] := 0;
B1[3, 2] := 0;
B1[3, 3] := 0;
B1[3, 4] := 4;
eval(B1)
end if
end proc
);
Try(210, got, expected);
#######################################################################
res1 := 'res1':
int_pow := proc(i,var)
if op(1,i)=var then
if op(2,i)=-1 then
ln(var)
else
var^(op(2,i)+1)/(op(2,i)+1)
end if
else
int(i,var)
end if;
end proc:
int_sum := proc(l, var)
local res, x, i;
res := 0;
for i from 1 to nops(l) do
x := op(i, l);
res := res + x[1]*int_pow(x[2],var);
end do;
res;
end proc:
goal := proc(n) local x; int_sum([[5,x^2], [-7,x^n], [2,x^(-1)]], x); end proc:
opts := PEOptions();
opts:-setPropagateDynamic(true);
opts:-addFunction(PEOptions:-INTRINSIC, ln);
res3 := OnPE(goal, opts):
got := (eval(res3:-ModuleApply));
expected :=
proc(n) local m2, res1, x;
if n = -1 then
m2 := ln(x)
else
m2 := x^(n + 1)/(n + 1)
end if;
res1 := 5 * x^3/3 - 7 * m2;
res1 := res1 + 2 * ln(x);
res1
end proc;
# This is failing right now, but I will assume it is a trivial bug to fix
# (the issue is that x is supposed to be a local, and it's not)
Try(300, ToInert(eval(got)), ToInert(eval(expected)));
#######################################################################
#end test
|
a087b318db2a9cd766a388970b19ddb4c08e6ec1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3433/CH1/EX1.1/Ex1_1.sce | 13cf24b469cf025ed89cba3b0b7362be0c50756e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 521 | sce | Ex1_1.sce | clear all;
clc;
funcprot(0);
//given data
gamma = 1.4;
pi = 8;//pressure ratio
T01 = 300;//inlet temperature in K
T02 = 586.4;//outlet temperature in K
//Calculations
//Calculation of Overall Total to Total efficiency
Tot_eff = ((pi^((gamma-1)/gamma))-1)/((T02/T01)-1);
//Calculation of polytropic efficiency
Poly_eff = ((gamma-1)/gamma)*((log(pi))/log(T02/T01));
//Results
printf('The Overall total-to-total efficiency is %.2f.\n',Tot_eff);
printf('The polytropic efficiency is %.4f.',Poly_eff);
|
3789cfae01df83a7f9370ea67ad0353c734828b3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2969/CH5/EX5.2/Ex5_2.sce | c7009a9a705f0b7577b06b213bc395625af0b292 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,017 | sce | Ex5_2.sce | clc
clear
//DATA GIVEN
p1=15; //steam supply pressure in bar
x1=1; //quality of steam
p2=0.4; //condenser pressure
//At 0.15 bar, from steam tables
T1=198.3+273; //in K
hg1=2789.9; //in kJ/kg
sg1=6.4406; //in kJ/kgK
//At 0.4 bar, from steam tables
T2=75.9+273; //in K
hf2=317.7; //in kJ/kg
hfg2=2319.2; //in kJ/kg
sf2=1.0261; //in kJ/kgK
sfg2=6.6448; //in kJ/kgK
ETAcarnot=(T1-T2)/T1; //Carnot efficiency
//ETArankine=Adiabatic or isentropic heat drop/heat supplied
//ETArankine=(hg1-h2)/(hg1-hf2)
//as the steam expands isentropically, s1=s2
//sg1=sf2+x2*sfg2
x2=(sg1-sf2)/sfg2;
h2=hf2+x2*hfg2;
ETArankine=(hg1-h2)/(hg1-hf2); //Rankine efficiency
printf(' (i) The Carnot efficiency is: %1.4f or %2.2f percent. \n',ETAcarnot,(ETAcarnot*100));
printf(' (ii) The Rankine efficiency is: %1.4f or %2.2f percent. \n',ETArankine,(ETArankine*100));
|
e01f7c1c84e40e351211f185d0cd6506c79a1db2 | 45c7d9d2836acbb24e1448b0e4248091a5f4a361 | /gradient_pas_optimal.sci | 9113c7b20911f8823e531fc798201f14731c937a | [] | no_license | JingyiHU/Linear_Programming_Non_Linear_Programming_school_project | 2fd582b0aefb3bee067ac444b32e5f9149615c97 | 971eeb3614268dfc704751b1b48b31d0f9925a69 | refs/heads/master | 2023-03-08T00:42:30.607241 | 2021-02-22T19:09:11 | 2021-02-22T19:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 447 | sci | gradient_pas_optimal.sci | function [x,it]= Gradient_pas_optimal(A,b,rho,tol,itmax,x0)
// A CHANGER
it = 0;
x = x0;
d = b - A*x;
// while(it < itmax & norm(xn-x) > tol) do
while(it < itmax) do
xn = x + rho*d;
d = b - A*xn;
rho = (d'*d)/((A*d)'*d);
it = it + 1;
if norm(xn-x) < tol then return;end
x = xn;
end;
mprintf('Arret sur nombre maximum d''itérations %d',it)
endfunction
//norm(d)^2 = d'*d
|
f245b4cd75c4236befdf43756afface413654611 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/TM71.prev.tst | 1efc4544d0a9c81f01e3cca0a0c55f1e16503070 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,179 | tst | TM71.prev.tst | considerNonPrimitive
Expanding for base=2, level=4, reasons+features=base,primitive,same,similiar invall,norm,showfail
Refined variables=a,b,c
[0+1a,0+1b,0+1c]: unknown -> [1] [0,0,0] a³+2b³-6a*b*c+4c³
-> solution [0,0,0],trivial(3)
---------------- level 0
expanding queue[0]^-1,meter=[2,2,2]: a³+2b³-6a*b*c+4c³
[0+2a,0+2b,0+2c]: non-primitive
-> solution [0,0,0],trivial(3)
[1+2a,0+2b,0+2c]: failure constant=1, vgcd=2 [1,0,0] 6a+12a²+8a³+16b³-24b*c-48a*b*c+32c³+1
[0+2a,1+2b,0+2c]: failure constant=1, vgcd=2 [0,1,0] 4a³+6b+12b²+8b³-12a*c-24a*b*c+16c³+1
[1+2a,1+2b,0+2c]: failure constant=3, vgcd=2 [1,1,0] 6a+12a²+8a³+12b+24b²+16b³-12c-24a*c-24b*c-48a*b*c+32c³+3
[0+2a,0+2b,1+2c]: failure constant=1, vgcd=2 [0,0,1] 2a³-6a*b+4b³+6c-12a*b*c+12c²+8c³+1
[1+2a,0+2b,1+2c]: failure constant=5, vgcd=2 [1,0,1] 6a+12a²+8a³-12b-24a*b+16b³+24c-24b*c-48a*b*c+48c²+32c³+5
[0+2a,1+2b,1+2c]: failure constant=-3, vgcd=2 [0,1,1] 6a-4a³-6b+12a*b-12b²-8b³-12c+12a*c+24a*b*c-24c²-16c³-3
[1+2a,1+2b,1+2c]: failure constant=-1, vgcd=2 [1,1,1] 6a-12a²-8a³+24a*b-24b²-16b³-12c+24a*c+24b*c+48a*b*c-48c²-32c³-1
endexp[0]
Proof [1] mod 2: a³+2b³-6a*b*c+4c³
|
fb4ff8def333731870d4159cdf2aaa1c53534ee8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3864/CH9/EX9.4/Ex9_4.sce | ea72d26dd6de285064ba57d42dde13646ce8842c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 835 | sce | Ex9_4.sce | clear
//
//
//Initilization of Variables
D=400 //mm //Overall Depth
//Flanges
b=300 //mm //Width
t=50 //mm //Thickness
t2=30 //mm //Web Thickness
dell=10 //mm //Deflection
w=40 //N/mm //Load
FOS=1.75 //Factor of safety
E=2*10**5 //N/mm**2
//Calculations
//M.I at x-x axis
I_x=1*12**-1*(b*D**3-(b-t2)*b**3) //mm**4
//Central Deflection
//dell=5*w*L**4*(384*E*I)**-1
//After sub values in above equation and further simplifying we get
L=(dell*384*E*I_x*(5*w)**-1)**0.25
//M.I aty-y axis
I=1*12**-1*t*b**3+1*12**-1*b*t2**3+1*12**-1*t*b**3 //mm**4
I_y=1*12**-1*t*b**3+1*12**-1*b*t2**3+1*12**-1*t*b**3 //mm**4
//Both the Ends of column are hinged
//Crippling Load
P=%pi**2*E*I*(L**2)**-1 //N
//Safe Load
S=P*(FOS)**-1*10**-3 //N
//Result
printf("\n Safe Load if I-section is used as column with both Ends hhinged %0.2f KN",S)
|
d88e4b0f556ebae70091e1c7957490af2bbe737d | 449d555969bfd7befe906877abab098c6e63a0e8 | /405/CH4/EX4.10/4_10.sce | baacb8bb5bf7eceffd5b8ddb5ca6069cffb814eb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,641 | sce | 4_10.sce | clear;
clc;
printf("\t\t\tExample Number 4.10\n\n\n");
// heat loss for finite-length cylinder
// illustration4.10
// solution
d = 0.05;// [m] diameter of aluminium cylinder
l = 0.1;// [m] length of aluminium cylinder
Ti = 200;// [degree celsius] initial temperature of of cylinder
Te = 70;// [degree celsius] environment temperature
k = 215;// [W/m degree celsius] heat transfer coefficient of plate
h = 525;// [W/square meter degree celsius] convection heat transfer coefficient
alpha = 8.4*10^(-5);// [square meter/s] constant
x1 = 0.00625;// [m] distance at which temperature is calculated from end
t = 60;// [s] time after which temperature is measured
r = 0.0125;// [m] radius at which temperature is calculated
// we first calculate the dimensionless heat-loss ratio for the infinite plate and infinite cylinder which make up the multidimensional body
// for the plate we have
L = 0.05;// [m]
A = h*L/k;
B = h^(2)*alpha*t/k^(2);
// from figure (4-14), for the plate, we read
Q_by_Q_o_plate = 0.22;
// for the cylinder
r_o = 0.025;// [m]
// so we calculate
C = h*r_o/k;
// and from figure(4-15) we have
Q_by_Q_o_cyl = 0.55;
// the two heat ratios may be inserted in equation(4-22) to give
Q_by_Q_o_tot = Q_by_Q_o_plate+Q_by_Q_o_cyl*(1-Q_by_Q_o_plate);
c = 896;// [J/kg degree celsius] specific heat of aluminium
rho = 2707;// [kg/cubic meter] density of aluminium
V = %pi*r_o^(2)*l;// [cubic meter]
Qo = rho*c*V*(Ti-Te);// [J]
Q = Qo*Q_by_Q_o_tot;// [J] the actual heat loss in the 1-minute
printf(" the actual heat loss in the 1-minute is %f kJ",Q/1000);
|
e6cbe6f2a3aec81a25a9a188852d476b95890100 | 70882f8f71a98cdb0e190c773094ea9547a339e8 | /Codigo/Aproximacaolinear.sci | 5f4613c58d27e87a7e365d2f3fd1a3fd146fbf94 | [] | no_license | joycebrum/Calculo-numerico-projeto | 6e6efb9375bc5cfd45df2aedb35c59f4e431c6ee | 3402d8d1f79738400e57b2b93ec92214e7a3531e | refs/heads/master | 2021-08-19T14:55:33.670571 | 2017-11-26T19:31:59 | 2017-11-26T19:31:59 | 111,951,685 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,321 | sci | Aproximacaolinear.sci | function[ret, erro] = AproximacaoLinear()//relacao linear da nota com a taxa e o nivel usando minimos quadrados
//z = ax + by + c x=nivel y=taxa z=nota
T = Entrada();//recebe a matriz com todos os pontos
N = size(T)
n = N(1,1)//numero de linhas da matriz T
A = zeros(n,3)
//A = zeros(n,2)
b = zeros(n,1)
for i=1:1:n
A(i,1) = T(i,1)//nivel
A(i,2) = T(i,2)//taxa de aprovacao
A(i,3) = 1
b(i,1) = T(i,3)/10//nota de 0 a 100
end
At = A'*A
bt = A'*b
ret = At\bt//resolve o sistema linear
a = ret(1,1)//pega os valores dos coeficientes para montar a funcao
b = ret(2,1)
c = ret(3,1)
//desenhar a funcao
deff('z=f(x,y)','z=a*x+b*y+c')
x=0:0.2:100 ;y = x ;
clf() ;fplot3d(x,y,f,alpha=5,theta=31)
erro = Erro(A, ret, b);
endfunction
function[nota] = preveNotaLinear(ponto, y)//recebe um ponto do tipo (nivel socio-economico, taxa de aprovação) e o vetor retornado em Aproximacao Linear e retonar a Nota possivel
nota = y(1,1)*ponto(1,1) + y(2,1)*ponto(2,1) + y(3,1) //a*x + b*y + c
if nota>100 then
nota = 100
end
if nota < 0 then
nota = 0
end
endfunction
function[erro] = Erro(A,x ,b)
erro = norm((A*x) - b)//verificar
endfunction
|
856d394232885b0be92d3bac10821dd9f6f22014 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3856/CH9/EX9.2/Ex9_2.sce | 797b1395688a33462027f4d5d7a7e2ada8ce5d95 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 769 | sce | Ex9_2.sce | //Calculate the Standard Gibbs Energy change for the reaction (delrG) N2(g)+3H2(g)=2NH3(g)
//Example 9.2
clc;
clear;
Po=(760*10^5)/(1.01325*10^5); //Standard pressure of the gas in torr
PN2=190; //Partial pressure of the N2 gas in torr
PH2=418; //Partial pressure of the H2 gas in torr
PNH3=722; //Partial pressure of the NH3 gas in torr
Kp=((PNH3/Po)^2)/((PN2/Po)*(PH2/Po)^3); //Equilibrium constant for reaction
R=8.314; //Gas constant in J K^-1 mol^-1
T=298; //Temperature of the gas in K
delrGo=-33.2*10^3; //Standard Gibbs energy for the reaction J mol^-1
delrG=(delrGo+(R*T)*log(Kp))/1000; //Standard Gibbs Energy change for the reaction in kJ mol^-1
printf("Standard Gibbs Energy Change = %.1f kJ mol^-1",delrG);
|
014c798de5da74b0359ee73eccd8c10ac1ac3235 | 449d555969bfd7befe906877abab098c6e63a0e8 | /172/CH8/EX8.1/ex1.sce | b5c2504e12761f5a54a6915c35da0b430745ce97 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 795 | sce | ex1.sce | //example 1
//coefficient of performance of refrigerator
clear
clc
Th=60 //temperature at which heat is rejected from R-134a
Tl=0 //temperature at which heat is absorbed into the R-134a
s1=1.7262 //specific entropy at 0 Celsius
s2=s1 //process of state change from 1-2 is isentropic
s3=1.2857 //specific entropy at 60 celsius
s4=s3 //process of state change from 3-4 is isentropic
disp('if Pressure is 1400 kPa,then s=1.7360 kJ/kg-K and if P=1600 kPa,then s=1.7135 kJ/kg-K.Therefore')
P2=1400+(1600-1400)*(1.7262-1.736)/(1.7135-1.736) //pressure after compression in kPa
B=(Th+273)/(Th-Tl) //coefficient of performance of refrigerator
printf(" \n hence,pressure after compression is P2=%.3f kPa.\n",P2)
printf("\n and coefficient of performance of refrigerator is B=%.3f .\n",B) |
256b97cb6362dbab4f0e33c16e14c8fbf1b665b3 | 44a742973d9db97b35c88d4c28f538a48a3029c8 | /pl/math/test/testcases/directed/asinf.tst | 585381d8c4756d9c69f5eddd9ffbfa8bc9298c9f | [
"LLVM-exception",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ARM-software/optimized-routines | ac3349617ef6c7119050e1a26f33a040448a5c7b | 4bdee55e42855a884f9da47abfe8c612b8534294 | refs/heads/master | 2023-08-15T11:56:21.269079 | 2023-08-14T12:34:34 | 2023-08-14T12:34:50 | 45,979,634 | 478 | 85 | NOASSERTION | 2023-09-12T08:13:38 | 2015-11-11T12:12:32 | C | UTF-8 | Scilab | false | false | 1,124 | tst | asinf.tst | ; asinf.tst
;
; Copyright 2009-2023, Arm Limited.
; SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
func=asinf op1=7fc00001 result=7fc00001 errno=0
func=asinf op1=ffc00001 result=7fc00001 errno=0
func=asinf op1=7f800001 result=7fc00001 errno=0 status=i
func=asinf op1=ff800001 result=7fc00001 errno=0 status=i
func=asinf op1=7f800000 result=7fc00001 errno=EDOM status=i
func=asinf op1=ff800000 result=7fc00001 errno=EDOM status=i
func=asinf op1=00000000 result=00000000 errno=0
func=asinf op1=80000000 result=80000000 errno=0
; Inconsistent behavior was detected for the following 2 cases.
; No exception is raised with certain versions of glibc. Functions
; approximated by x near zero may not generate/implement flops and
; thus may not raise exceptions.
func=asinf op1=00000001 result=00000001 errno=0 maybestatus=ux
func=asinf op1=80000001 result=80000001 errno=0 maybestatus=ux
func=asinf op1=3f800000 result=3fc90fda.a22 errno=0
func=asinf op1=bf800000 result=bfc90fda.a22 errno=0
func=asinf op1=3f800001 result=7fc00001 errno=EDOM status=i
func=asinf op1=bf800001 result=7fc00001 errno=EDOM status=i
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.