blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2
values | repo_name stringlengths 6 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 21
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 141k 586M ⌀ | star_events_count int64 0 30.4k | fork_events_count int64 0 9.67k | gha_license_id stringclasses 8
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 50
values | src_encoding stringclasses 23
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 5 10.4M | extension stringclasses 29
values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f82a86cddff0f08a47ebe18b9fb8a036b7453cc | 449d555969bfd7befe906877abab098c6e63a0e8 | /62/CH2/EX2.6/ex_2_6.sce | 9ff4644cdbb6206c981a603479c98deeafc93d20 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 856 | sce | ex_2_6.sce | //Example 2.6:Convolution Integral
clear;
close;
clc;
t =-5:1/100:5;
for i=1:length(t)
if t(i)<0 then
h(i)=0;
x(i)=0;
elseif t(i)<=2
h(i)=1;
x(i)=1;
elseif t(i)<=3
h(i)=0;
x(i)=1;
else
h(i)=0;
x(i)=0;
end
end
y = convol(x,h)./100;
figure
a=gca();
a.x_location="origin";
plot2d(t,h)
xtitle('Impulse Response','t','h(t)');
a.children.children.thickness = 3;
a.children.children.foreground= 2;
figure
a=gca();
plot2d(t,x)
xtitle('Input Response','t','x(t)');
a.children.children.thickness = 3;
a.children.children.foreground= 2;
figure
a=gca();
t1=-10:1/100:10;
a.y_location="origin";
a.x_location="origin";
plot2d(t1,y)
xtitle('Output Response','t','y(t)');
a.children.children.thickness = 3;
a.children.children.foreground= 2; |
49c053b4ac689161f30afa0db44387200835574b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3204/CH7/EX7.11/Ex7_11.sce | c2b601aec3ea86036d6fedb197ba0222af6c2e0c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 330 | sce | Ex7_11.sce | // Initilization of variabes
P=20000 //N //Weight of the shaft
D=0.30 //m //diameter of the shaft
R=0.15 //m //radius of the shaft
mu=0.12 // coefficient of friction
// Calculations
// Friction torque T is given by formulae,
T=(2/3)*P*R*mu //N-m
M=T //N-m
// Results
clc
printf('The frictional torque is %f N-m \n',M)
|
617dbe4a20085df5e36b7bb14c44325d0e0b198d | 5a05d7e1b331922620afe242e4393f426335f2e3 | /macros/oct_interp.sci | d4fc6e65d1b43334552d2951ff1629c519c13946 | [] | no_license | sauravdekhtawala/FOSSEE-Signal-Processing-Toolbox | 2728cf855f58886c7c4a9317cc00784ba8cd8a5b | 91f8045f58b6b96dbaaf2d4400586660b92d461c | refs/heads/master | 2022-04-19T17:33:22.731810 | 2020-04-22T12:17:41 | 2020-04-22T12:17:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,303 | sci | oct_interp.sci | //.............................................................................................................
// ................................Using "callOctave" method..............................
//.............................................................................................................
//function already exists in scilab -- doesnt work like this one (I guess)
//function y = interp(x, q, n, Wc)
//This function upsamples the signal x by a factor of q, using an order 2*q*n+1 FIR filter.
//Calling Sequence
//y = interp(x, q)
//y = interp(x, q, n)
//y = interp(x, q, n, Wc)
//Parameters
//x: scalar or vector of complex or real numbers
//q: positive integer value, or logical
//n: positive integer, default value 4
//Wc: non decreasing vector or scalar, starting from 0 uptill 1, default value 0.5
//Description
//This is an Octave function.
//This function upsamples the signal x by a factor of q, using an order 2*q*n+1 FIR filter.
//The second argument q must be an integer. The default values of the third and fourth arguments (n, Wc) are 4 and 0.5 respectively.
//Examples
//interp(1,2)
//ans =
// 0.4792743 0.3626016
//funcprot(0);
//rhs = argn(2)
//if(rhs<2 | rhs>4) source code says rhs<1 -- but crashes for just one arg
//error("Wrong number of input arguments.")
//end
//
//
//
//
// select(rhs)
// case 2 then
// y = callOctave("interp",x,q)
// case 3 then
// y = callOctave("interp",x,q,n)
// case 4 then
// y = callOctave("interp",x,q,n,Wc)
// end
//endfunction
//........................................................................................................
// .............................Using pure "Scilab"..........................................
//.........................................................................................................
//This function is built with the referrence of interp function (taken from interp.m file).
//Octave license:
// Copyright (C) 2000 Paul Kienzle <pkienzle@users.sf.net>
//
// This program is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software
// Foundation; either version 3 of the License, or (at your option) any later
// version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
// this program; if not, see <http://www.gnu.org/licenses/>.
function y = oct_interp(x, q, varargin)
funcprot(0);
[nargout,nargin]=argn();
if nargin < 1 | nargin > 4,
error("Wrong Number of input arguments");
end
if q ~= fix(q), error("decimate only works with integer q."); end
if(nargin>2)
if(nargin==3)
n=varargin(1);
Wc=0.5;
else
n=varargin(1);
Wc=varargin(2);
end
else
n=4;Wc=0.5;
end
if size(x,1)>1
y = zeros(length(x)*q+q*n+1,1);
else
y = zeros(1,length(x)*q+q*n+1);
end
y(1:q:length(x)*q) = x;
b = fir1(2*q*n+1, Wc/q);
y=q*fftfilt(b, y);
y(1:q*n+1) = []; // adjust for zero filter delay
endfunction
|
065db74beb2299a4b2edc4409876aa74604dc4be | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.1.1/macros/percent/%r2for.sci | bdbe2cdfb32a041c882f531a68104b04277de1dd | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 2,006 | sci | %r2for.sci | //[stk,nwrk,txt,top]=%r2for(nwrk)
// genere le code Fortran relatif a la division a droite
//!
s2=stk(top);s1=stk(top-1);top=top-1;
if s1(4)=='1'&s1(5)=='1'&s2(4)=='1'&s2(5)=='1' then
if s2(2)='2'|s2(2)='1' then s2(1)='('+s2(1)+')',end
if s1(2)='2' then s1(1)='('+s1(1)+')',end
stk=list(s1(1)+'/'+s2(1),'1',s1(3),s1(4),s1(5))
elseif s1(4)=='1'&s1(5)=='1' then
[out,nwrk,txt]=outname(nwrk,s2(3),s2(5),s2(4))
if out<>s2(1) then
txt=gencall(['dcopy',mulf(s2(4),s2(5)),s2(1),'1',out,'1'])
end
[wrk,nwrk,t1]=getwrk(nwrk,'1',s2(4),'1')
[ipvt,nwrk,t2]=getwrk(nwrk,'0',s2(4),'1')
[errn,nwrk]=adderr(nwrk,'singular '+s2(1)+' matrix')
txt=[txt;t1;t2;
gencall(['dgefa',out,s2(4),s2(5),ipvt,'ierr']);
genif('ierr.ne.0',[' ierr='+string(errn);' return']);
gencall(['dgedi',out,s2(4),s2(5),ipvt,'w',wrk,'1'])]
if op(2)=s1(1) then
txt=[txt;gencall([' dcopy',mulf(s2(4),s2(5)),out,'1',s1(1),'1'])]
out=s1(1)
end
stk=list(out,'-1',s2(3),s2(4),s2(5))
elseif s2(4)=='1'&s2(5)=='1' then
[out,nwrk,txt]=outname(nwrk,s2(3),s1(4),s1(5))
if out<>s1(1) then
txt=gencall(['dcopy',mulf(s1(4),s1(5)),s1(1),'1',out,'1'])
end
if s2(2)='2'|s2(2)='1' then s2(1)='('+s2(1)+')',end
txt=[txt;gencall(['dscal',mulf(s1(4),s1(5)),'1.0d0/'+s2(1),out,'1'])]
if op(2)=s2(1) then
txt=[txt;gencall(['dcopy',mulf(s1(4),s1(5)),out,'1',s2(1),'1'])]
out=s2(1)
end
stk=list(out,'-1',s1(3),s1(4),s1(5))
else
[res,nwrk,t1]=outname(nwrk,s2(3),s2(4),s2(5),[s1(1),s2(1)])
[mat,nwrk,t2]=getwrk(nwrk,'1',s2(4),s2(4))
[wrk,nwrk,t3]=getwrk(nwrk,'1',s2(4),'1')
[ipvt,nwrk,t4]=getwrk(nwrk,'0',s2(4),'1')
[errn,nwrk]=adderr(nwrk,'singular '+s2(1)+' matrix')
txt=[t1;t2;t3;
gencall(['dcopy',mulf(s2(4),s2(5)),s2(1),'1',mat,'1']);
gencall(['dgefa',mat,s2(4),s2(5),ipvt,'ierr']);
genif('ierr.ne.0',[' ierr='+string(errn);' return']);
gencall(['dgesl',mat,s2(4),s2(5),ipvt,res,'0'])]
stk=list(res,'-1',s1(3),s1(4),s1(5))
end
//end
|
f8e45a2e114bde3ef3e4faa1bda60e80c7aac6c3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1736/CH4/EX4.5/Ch04Ex5.sce | 0b3396b4d13a08667e90a0a2c6fd165c49c899c3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,050 | sce | Ch04Ex5.sce | // Scilab Code Ex4.5: Page-119 (2006)
clc; clear;
T = 300; // Room temperature of tungsten, K
k = 1.38e-023; // Boltzmann constant, J/mol/K
e = 1.6e-019; // Energy equivalent of 1 eV, J/eV
E_F = 4.5*e; // Fermi energy of tungsten, J
E = E_F-0.1*E_F; // 10% energy below Fermi energy, J
f_T = 1/(1+exp((E-E_F)/(k*T))); // Probability of the electron in tungsten at room temperature at an nergy 10% below the Fermi energy
printf("\nThe probability of the electron at an energy 10 percent below the Fermi energy in tungsten at 300 K = %4.2f", f_T);
E = 2*k*T+E_F; // For energy equal to 2kT + E_F
f_T = 1/(1+exp((E-E_F)/(k*T))); // Probability of the electron in tungsten at an energy 2kT above the Fermi energy
printf("\nThe probability of the electron at an energy 2kT above the Fermi energy = %6.4f", f_T);
// Result
// The probability of the electron at an energy 10 percent below the Fermi energy in tungsten at 300 K = 1.00
// The probability of the electron at an energy 2kT above the Fermi energy = 0.1192
|
ab0469fab70b22976262cac4a34f7f5254b21209 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1163/CH3/EX3.27/example_3_27.sce | 00e69b14d776ae2ebc2bf0e341a92c90ebe85d46 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 287 | sce | example_3_27.sce | clear;
clc;
disp("--------------Example 3.27---------------")
ratio=10; // power of signal after amplification/initial power of signal = p2/p1
amp=10*log10(ratio); // formula to calculate amplification or gain of power
printf("The amplification is %d dB.",amp); // display result
|
e3127ffa8d8e975d98a55f88ba11f9912aa3c33d | 0e5a67d0e8ecb5cefda5fbad81450df1ba99b829 | /lab_08_6_1/tests/FuncTests/0.2.tst | e49e2c718176032bc30fd87e574f77b185d47577 | [] | no_license | Dimkashow/BMSTU-C | 62266f002534826d7978dd32ae82ec163313e391 | f4dd614b3d7fb1e9c28ffe4ee0c8e45171dafe7b | refs/heads/master | 2023-05-01T20:00:27.402085 | 2021-05-15T17:16:25 | 2021-05-15T17:16:25 | 367,689,033 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 19 | tst | 0.2.tst | IN="1 1 1"
STATUS=0 |
a967e5d9e1a731b7664900a653353dc1e18f61b5 | 1573c4954e822b3538692bce853eb35e55f1bb3b | /DSP Functions/zpklp2bpc/test_3.sce | 7fd0440a74928c30bbb25a33ea907090157e6369 | [] | no_license | shreniknambiar/FOSSEE-DSP-Toolbox | 1f498499c1bb18b626b77ff037905e51eee9b601 | aec8e1cea8d49e75686743bb5b7d814d3ca38801 | refs/heads/master | 2020-12-10T03:28:37.484363 | 2017-06-27T17:47:15 | 2017-06-27T17:47:15 | 95,582,974 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 286 | sce | test_3.sce | // Test # 3 : Checking the type for Input Argument #3
exec('./zpklp2bpc.sci',-1);
[z,p,k,n,d]=zpklp2bpc(0.3,0.2,[0.5,0.6],0.4,[0.1,0.4]);
// !--error 10000
//K must be a scalar
//at line 57 of function zpklp2bp called by :
//[z,p,k,n,d]=zpklp2bp(0.3,0.2,[0.5.6],0.4,[0.1,0.4])
|
a1c4ef23bd54e103e6b5406999275a80f6cd2291 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1628/CH11/EX11.6/Ex11_6.sce | 44caf4e3b8aca52f94b99e1fc130ceeb24d8c5e1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 616 | sce | Ex11_6.sce |
// Example 11.6
f=150*10^3; // Frequency
Bw=75*10^3; // Band width
Q=f/Bw; // Q-Factor
disp(' Q-Factor is = '+string(Q));
// since Q < 10 there for we need to solve by Equation
// 75= f2-f1 & 150= root(f1*f2)
// will get Eq ( f1^2+ 75f1- 22500= 0 ) by Eliminating f2
// by factorization we have f1=( 117.1kHz or -192.1kHz )
f1=117.1;
f2=75+f1;
disp(' The half Power Frequencies are f1= '+string(f1)+' kHz & f2= '+string(f2)+' kHz');
// p 382 11.6
|
fcd346059ee7f4a6dcd37293a2ae9607f1dd453c | 0a1c3ed3b471bd0805778ea1f03dc265bd5ea963 | /test/add.tst | 011daf23167a4ab6d1a305a86e81f5f12992c966 | [] | no_license | goldenpartner/Assignment1 | 32aeb4bc435c840e930189fd62533b3710cbe490 | c13e732c338d1ca04abc2b355d8a48bd76907bcc | refs/heads/master | 2021-01-12T11:54:30.972457 | 2016-10-18T03:33:30 | 2016-10-18T03:33:30 | 69,310,866 | 0 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 125 | tst | add.tst | LOAD s0, 01
LOAD s1, 01
LOAD s2, 01
loop: ADD s0, 01
ADDCY s1, 00
ADDCY s2, 00
JUMP NC, loop
OUTPUT s0, 00
death: JUMP death
|
3572e69c7ca6eb18481c184d341125680941acf3 | 6bd47868c9c7b3e9469b27f60a4757816a62060b | /Penyelesaian Persamaan Tak Linear/Metode Tertutup/Bisection/bisection.sce | 5c6a172dbb65fc244a639518f94c386f850ed2e4 | [] | no_license | fahrioghanial/Program-Metode-Numerik | 555401132e47516ff38ab7d38e1056c16e45ab1a | 83cfe9144c72a3adbabbe71923f32ab6209b02e8 | refs/heads/master | 2023-02-28T16:14:24.353765 | 2021-02-04T08:04:46 | 2021-02-04T08:04:46 | 335,882,015 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,400 | sce | bisection.sce | function[x,y]=bisection()
clc
a=input('masukkan nilai batas bawah = ');
b=input('masukkan nilai batas atas = ');
tol=input('masukkan nilai toleransi = ');
printf('\nfungsi Bisection Scilab');
c=a;
d=b;
if(f(a)*f(b)>0)
printf('\nfunsi f(a)*f(b), tidak ada akar pada >> >> [%d.%d]',a,b);
else e=abs(a-b);
i=1;
while(e>tol)
kiri=a;
kanan=b;
tengah=(kiri+kanan)/2;
fkiri=f(kiri); ftengah=f(tengah);
if(fkiri*ftengah>0)
a=tengah;
b=tengah;
end
printf('\niterasi %d -> \t a=%.5f \t b=%.5f \t tengah=%.5f \t ftengah==%.5f',i,kiri,kanan,tengah,ftengah);
e=abs(a-b);
i=i+1;
end
x=zeros(i-1,1);
y=zeros(i-1,1);
e=abs(c-d);
i=1;
while(e>tol)
kiri=c;
kanan=d;
tengah=(kiri+kanan)/2;
fkiri=f(kiri);
fkanan=f(kanan);
ftengah=f(tengah);
if(fkiri*ftengah>0)
c=tengah;
else
d=tengah;
end
x(i)=tengah;
y(i)=tengah;
e=abs(c-d);
i=i+1;
end
printf('\n\nJadi hampiran akarnya adalah %.5f', tengah);
end
endfunction
|
51ed43a9d0f6ff13671aed29ba9e0a24f32f1355 | 92c72d913b48bf15a54e01ea53cc0e6e79ebc723 | /Software/Script/Scilab/ADCAsgard/CSVLoader.sce | 7617c1320ebde6f147fc601c28bec4917cef2c05 | [
"CC-BY-4.0"
] | permissive | harrysteem/AirDataComputer | 426d2e240fe4de15038a5847c360aee32cf68f0a | de2a9173c35f690cf805c47386a25ba3b834ebd5 | refs/heads/master | 2021-04-28T18:03:37.303621 | 2018-02-16T06:58:27 | 2018-02-16T06:58:27 | 121,865,356 | 1 | 0 | null | 2018-02-17T15:17:10 | 2018-02-17T15:17:09 | null | UTF-8 | Scilab | false | false | 7,812 | sce | CSVLoader.sce | //ADC Asgard CSV Loader. JLJ. Basicairdata Team.
writetoQGISfile=1; //If 1 write output to CSV file for QGIS
debug=1;//1 debug mode
exec('rhoair.sci')
exec('viscosityair.sci')
exec('ISAaltitude.sci')
clc
//Q = csvRead("LG3-50HZ.CSV") //Field data <- Buono
Q = csvRead("PIPPO01.CSV") //Air Data
GPS = csvRead("PIPPO01GPS.CSV") //GPS data
[r c]=size(Q);
ngroups=20;//Number of data sets
fsample=0; //Averaged value of fsample
basetime=Q(1,17); //Starting mills
RH=0; //Relative humidity
//Define columns -> data correspondence
//Raw sensor data
deltapcol=3; //Deltap column is #3;
abscol=4; //Abspressure column is #4;
exttempcol=5; //External temp is #5;
tempdeltapcol=6; //Temp from deltap sensor #6;
tempabscol=7; //Temp from Abs pressure sensor #7;
//Measurements
absmcol=9;
IASmcol=13;
TASmcol=14;
ExtTempmcol=10;
tempdeltapmcol=11;
tempabsmcol=12;
altitude=15;
OAT=16;
rhoairmcol=22;
vair=23;
Re=24;
cfactor=25;
//Define GPS data columns
lat=3
lon=4
GPSaltitude=6
geoidaltitude=7
GPSspeed=8
bearing=9; //Deg
//Define tollerance band
//Define tollerance band
airdensityeband=0.5; //Air Density Percent of rho
viscosityeband=3;//Viscosity %
altitudeeband=0.5;//Altitude %
fsamplev=zeros(1,ngroups);
//Calculate the average sample frequency from the samples
//Divide the data in ngroups
[pippo maxcount]=size(1:r/ngroups:r)
for ng=1:ngroups
for i=1: maxcount
fsamplev(ng)=fsamplev(ng) + 1000/((Q(3+ng*maxcount+i,17)-Q(2+ng*maxcount+i,17)))
end
fsamplev(ng)= fsamplev(ng)/ngroups;
end
fsample=mean(fsamplev)
//FFT Plot
N=r; //Number of ADC Samples
sample_rate=fsample;
f=sample_rate*(0:(N/2))/N; //associated frequency vector
n=size(f,'*')
fig=scf(1);
clf(1);
fig.figure_name='Fast Fourier Transform of ADC Samples';
//Abs pressure
subplot(3,2,1)
xtitle('Absolute Pressure Sensor, Frequency [Hz] vs FFT')
y=fft(Q(:,abscol)-mean(Q(:,abscol)));
plot(f',abs(y(1:n)))
//Deltap
subplot(3,2,2)
xtitle('Deltape Sensor, Frequency [Hz] vs FFT')
y=fft(Q(:,deltapcol)-mean(Q(:,deltapcol)));
plot(f',abs(y(1:n)))
//External Temperature
subplot(3,2,3)
xtitle('External Temp Sensor, Frequency [Hz] vs FFT')
y=fft(Q(:,exttempcol)-mean(Q(:,exttempcol)));
plot(f',abs(y(1:n)))
//Temperature from deltap sensor
subplot(3,2,4)
xtitle('Temp from Deltap Sensor ,Frequency [Hz] vs FFT')
y=fft(Q(:,tempdeltapcol)-mean(Q(:,tempdeltapcol)));
plot(f',abs(y(1:n)))
//Temperature from absolute pressure sensor
subplot(3,2,5)
xtitle('Temp from Abs Pressure Sensor ,Frequency [Hz] vs FFT')
y=fft(Q(:,tempabscol)-mean(Q(:,tempabscol)));
plot(f',abs(y(1:n)))
//Average of sample frequency
subplot(3,2,6)
xtitle('Average value of sample frequency vs #different data sets')
[r c]=size(fsamplev)
cla=1:c
plot(cla,fsamplev,'-')
//Time plot
//Need time
figtime=scf(2);
clf(2);
timetic=Q(:,17)-basetime
figtime.figure_name='Measurements and Calculations';
//Abs pressure [Pa]
subplot(4,3,1)
xtitle('Absolute Pressure Sensor [Pa] vs Time [ms]')
plot(timetic,Q(:,absmcol),2)
//IAS [m/s]
subplot(4,3,2)
xtitle('Indicated Air Speed [m/s] vs Time [ms]')
plot(timetic,Q(:,IASmcol),2)
//TAS [m/s]
subplot(4,3,3)
xtitle('True Air Speed [m/s] vs Time [ms]')
plot(timetic,Q(:,TASmcol),2)
//External temperature [°K]
subplot(4,3,4)
xtitle('External Temperature [°K] vs Time [ms]')
plot(timetic,Q(:,ExtTempmcol),2)
//Temperature deltapsensor [°K]
subplot(4,3,5)
xtitle('Temperature from deltap pressure sensor [°K] vs Time [ms]')
plot(timetic,Q(:,tempdeltapmcol),2)
//Temperature abspressure sensor [°K]
subplot(4,3,6)
xtitle('Temperature from absolute pressure sensor [°K] vs Time [ms]')
plot(timetic,Q(:,tempabsmcol),2)
//Altitude [m]
subplot(4,3,7)
xtitle('Altitude [m] vs Time [ms]')
plot(timetic,Q(:,altitude),2)
//Outside Air Temperature [°K]
subplot(4,3,8)
xtitle('Outside Air Temperature [°K] vs Time [ms]')
plot(timetic,Q(:,OAT),2)
//Air Density [kg/m^3]
subplot(4,3,9)
xtitle('Air Density [kg/m^3] vs Time [ms]')
plot(timetic,Q(:,rhoairmcol),2)
//Air Viscosity [mPas]
subplot(4,3,10)
xtitle('Air Viscosity [mPas] vs Time [ms]')
plot(timetic,Q(:,vair),2)
//Re
subplot(4,3,11)
xtitle('Reynolds vs Time [ms]')
plot(timetic,Q(:,Re),2)
//C factot
subplot(4,3,12)
xtitle('c factor vs Time [ms]')
plot(timetic,Q(:,cfactor),2)
//Compares ADC logged values with offline calculated ones
if debug==1 then
//Calulates rhoair and add a one new colums to Q, contains (ADCrho-calculatedrho)
[r c]=size(Q);
for ri=1:r
Q(ri,c+1)=(Q(ri,rhoairmcol)-rhoair(Q(ri,ExtTempmcol), Q(ri,absmcol),0))/rhoair(Q(ri,ExtTempmcol), Q(ri,absmcol)*100)
end
//Plot calculated data
figerrori=scf(3);
clf(3);
figerrori.figure_name='Absoulte differences betweeen logged ADC output and library calculated values';
//Rhoair
subplot(2,2,1)
xtitle('Density of Air Difference % vs Time [ms]')
plot(timetic,Q(:,c+1),2)
if ((abs(min(Q(:,c+1)))<airdensityeband)&(abs(max(Q(:,c+1)))<airdensityeband)) then
mprintf('\nADC calculated Air Density value is within the tollerance band of %f %% of density',airdensityeband)
else
mprintf('\nWarning: ADC calculated Air Density value is outside the tollerance band of %f %% of density',airdensityeband)
end
//Air viscosity check
subplot(2,2,2)
xtitle('Viscosity of Air Difference % vs Time [ms]')
for ri=1:r
Q(ri,c+2)=(Q(ri,vair)-viscosityair(Q(ri,ExtTempmcol)))/viscosityair(Q(ri,ExtTempmcol))*100
end
plot(timetic,Q(:,c+2),2)
if ((abs(min(Q(:,c+2)))<viscosityeband)&(abs(max(Q(:,c+2)))<viscosityeband)) then
mprintf('\nADC calculated Viscosity value is within the tollerance band of %f %% of viscosity',viscosityeband)
else
mprintf('\nWarning: ADC calculated Viscosity value is outside the tollerance band of %f %% of viscosity',viscosityeband)
end
//Altitude check
subplot(2,2,3)
xtitle('Altitude Difference % vs Time [ms]')
for ri=1:r
Q(ri,c+3)=(Q(ri,altitude)-ISAaltitude(Q(ri,absmcol)))/ISAaltitude(Q(ri,absmcol))*100
end
plot(timetic,Q(:,c+3),2)
if ((abs(min(Q(:,c+3)))<altitudeeband)&(abs(max(Q(:,c+3)))<altitudeeband)) then
mprintf('\nADC calculated altitude value is within the tollerance band of %f %% of viscosity',altitudeeband)
else
mprintf('\nWarning: ADC calculated altitude value is outside the tollerance band of %f %% of viscosity',altitudeeband)
end
end
figGPS=scf(4);
clf(4);
//GPS track
//scatter3(GPS(:,lat),GPS(:,lon),GPS(:,GPSaltitude),"*")
scatter3(GPS(:,lat),GPS(:,lon),GPS(:,GPSspeed),"red","*")
//scatter3(GPS(:,lat),GPS(:,lon),Q(:,TASmcol),"blue","x")
//Get the total air data log time in seconds
//fsample is the calcualted real sample rate
[r1 c1]=size(GPS);
[r c]=size(Q);
timereal=min([r/fsample r1])
//Append a column with the airdata to the GPS data
//PIPPO2GPS 25 offset
[r1 c1]=size(GPS);
for mm=1:timereal
GPS(mm,c1+1)=Q(floor(50*0+ mm*fsample),TASmcol)
end
//TAS Airspeed at the sampled instants
scatter3(GPS(:,lat),GPS(:,lon),GPS(:,c1+1),"blue","x")
//Difference
scatter3(GPS(:,lat),GPS(:,lon),(GPS(:,GPSspeed)-GPS(:,c1+1)))
azz=gca()
// [xmin,ymin,zmin; xmax,ymax,zmax]
xmin=min(GPS(:,lat))
ymin=min(GPS(:,lon))
zmin=-2
xmax=max(GPS(:,lat))
ymax=min(GPS(:,lon))
zmax=25
azz.data_bounds=[xmin,ymin,zmin; xmax,ymax,zmax];
xlabel('Latitude')
ylabel('Longitude')
zlabel('Airspeed m/s')
xtitle('GPS Speed vs Pitot Speed')
legend(['GPS Ground Speed[m/s]';'True Airspeed [m/s]';'Speed difference']);
//lat lon bearing TAS
//x component of TAS
if writetoQGISfile==1
uTAS=cos(GPS(:,bearing)/360*6.28).*GPS(:,c1+1)
vTAS=sin(GPS(:,bearing)/360*6.28).*GPS(:,c1+1)
QGIS=[GPS(:,lat) GPS(:,lon) GPS(:,bearing) GPS(:,c1+1) uTAS vTAS]
QGIS(1,1)=0
QGIS(1,2)=0
QGIS(1,3)=0
QGIS(1,4)=0
QGIS(1,5)=0
QGIS(1,6)=0
filename=fullfile("FORQGIS.csv");
csvWrite ( QGIS , filename );
end
|
974f10e322f4e0f3bb60ba2cc13d0de3c4eaa12e | bae098aa91588d492ec8bb4c76c274001c27cfe7 | /simple6.tst | 4e56e39741c0a6bd3c92c0d1f0b458f6dbaa5555 | [] | no_license | i5-2/pentium-dual-core | 1e7abb217972ec468b54eee6fa077dc6eec1875d | e56c0a450666ddd15e99a351d9335952b29431e6 | refs/heads/master | 2020-04-20T21:55:34.594056 | 2019-02-26T16:52:19 | 2019-02-26T16:52:19 | 169,122,993 | 0 | 0 | null | 2019-02-25T18:36:58 | 2019-02-04T18:01:59 | Python | UTF-8 | Scilab | false | false | 395 | tst | simple6.tst | timelimit 5
boardsize 10
play w C3
play w D3
play w F3
play b A2
play w B2
play w C2
play w D2
play w E2
gogui-rules_board
genmove b
# b's move can be any (random because loss)
gogui-rules_board
genmove w
#?[F2|E3]
gogui-rules_board
genmove b
# b's move can be any (random because loss)
gogui-rules_board
# Should complete their 2-move threat or win
genmove w
#?[F2|E3|B3|G3]
gogui-rules_board |
f9ebb8ba815011ef544e39c44c9b065e78a81b79 | 449d555969bfd7befe906877abab098c6e63a0e8 | /401/CH7/EX7.2/Example7_2.sce | 2eaa9cfd9fe31a1609a83077be3a01e2d7ef3964 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 738 | sce | Example7_2.sce | //Example 7.2
//Program to :
//(a)Calculate the optical power emitted into air as a percentage of
//internal optical power
//(b)Determine the external power efficiency
clear;
clc ;
close ;
//Given data
F=0.68; //TRANSMISSION FACTOR
n=1;
nx=3.6; //REFRACTIVE INDEX OF GaAs
Pint_by_P=0.5; //*100 percent - Pe/P
//Percentage optical power emitted
Pe_by_Pint=F*n^2/(4*nx^2);
//External power efficiency
eeta_ep=Pe_by_Pint*Pint_by_P;
//Displaying the Results in Command Window
printf("\n\n\t (a)Percentage optical power emitted is %0.1f percent of generated optical power.",Pe_by_Pint*100);
printf("\n\n\t (b)External power efficiency is %0.2f percent.",eeta_ep*100); |
263168f2a8affda05f20d3b4966b267496d4fd94 | ea619b33cae5a486fb22da8bdcfe0bc7d81c3032 | /test/testcases/directed/rred4.tst | 1b84f45c5f4fa688d940bc3d1e0bbe8f8d351354 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alexvonduar/optimized-routines | 714ab0a7b8d7d28fc689b0bae1e7a885fd461a69 | f59c54e97e2023a5981679b14637d8ee2abe2d2d | refs/heads/master | 2020-03-08T14:07:45.302916 | 2018-11-27T09:34:42 | 2018-11-27T09:34:42 | 128,176,402 | 0 | 0 | Apache-2.0 | 2018-11-27T09:34:43 | 2018-04-05T08:05:10 | C | UTF-8 | Scilab | false | false | 41,503 | tst | rred4.tst | ; rred4.tst
;
; Copyright (c) 1999-2018, Arm Limited.
; SPDX-License-Identifier: MIT
func=rred op1=5ee8da6e.555f15d0 result=3ccad12f.2b4c25d3.eaa res2=00000001 errno=0
func=rred op1=5ef7833f.a59d0dfd result=3c919ca2.3f5c493c.c76 res2=00000003 errno=0
func=rred op1=5efb3542.79418f04 result=bca803d2.ba28019c.b3f res2=00000001 errno=0
func=rred op1=5f014ca4.10454889 result=bcc66a06.9b751384.b8d res2=00000001 errno=0
func=rred op1=5f0db9db.3af4d371 result=3ccf3857.bb233823.1c8 res2=00000003 errno=0
func=rred op1=5f1467f1.daf12b43 result=bcc202de.0b9e0135.86f res2=00000003 errno=0
func=rred op1=5f1e5090.43ed71be result=3c966ae3.892121b9.b5c res2=00000001 errno=0
func=rred op1=5f25f598.c0471ca0 result=bcb26919.d7dfb92e.468 res2=00000003 errno=0
func=rred op1=5f2fde37.2943631b result=3cd035f4.06ca3721.2c0 res2=00000003 errno=0
func=rred op1=5f3355c3.e3c9e36e result=3cc469fe.b0806d73.fe2 res2=00000001 errno=0
func=rred op1=5f3a2314.821a472f result=bc9ccea0.4d3ca145.ae7 res2=00000001 errno=0
func=rred op1=5f44a5ae.52088007 result=3c900726.c505a22d.bd1 res2=00000003 errno=0
func=rred op1=5f4fa07a.b22c0e57 result=bcc06834.ff3f04e8.8ee res2=00000001 errno=0
func=rred op1=5f51e6fb.39ff9c73 result=3cba6cad.3a628a45.250 res2=00000003 errno=0
func=rred op1=5f576461.6a11639b result=bca4cb0c.eab9d02e.cff res2=00000001 errno=0
func=rred op1=5f634654.c6040e3d result=3cc13820.4e72adae.01c res2=00000001 errno=0
func=rred op1=5f660507.de0cf1d1 result=bc830f98.96d0b804.4b7 res2=00000003 errno=0
func=rred op1=5f75555b.180ab8ec result=3cab4a67.6457165a.674 res2=00000003 errno=0
func=rred op1=5f76b4b4.a40f2ab6 result=bcb72cff.fd93e72f.596 res2=00000001 errno=0
func=rred op1=5f802813.bc17239e result=bcf18ec6.9cbd007b.734 res2=00000003 errno=0
func=rred op1=5f8f505b.de0ddc7d result=3cd37073.b19084f9.09f res2=00000003 errno=0
func=rred op1=5f900004.52080ab1 result=3cc477cd.8b4150c3.cd7 res2=00000001 errno=0
func=rred op1=5f9b5a5e.a40fa00c result=bc95a993.9294b35c.5f4 res2=00000003 errno=0
func=rred op1=5fa30286.180a7e41 result=3cb5e002.7fb1e983.4f7 res2=00000001 errno=0
func=rred op1=5fae5ce0.6a12139c result=bcd1b4ff.5da76cce.858 res2=00000001 errno=0
func=rred op1=5fb483c6.fb0bb809 result=bcb03f2e.adef8685.477 res2=00000001 errno=0
func=rred op1=5fb9d91d.c10e6644 result=3cc32ad0.0d5f5317.c39 res2=00000001 errno=0
func=rred op1=5fc54467.6c8c54ed result=bcd71f64.424c99a5.9d5 res2=00000001 errno=0
func=rred op1=5fca99be.328f0328 result=3cb0ac0c.8829f2d3.27e res2=00000001 errno=0
func=rred op1=5fd42376.c24b6997 result=bc93f61c.29ab0224.dd4 res2=00000001 errno=0
func=rred op1=5fda396d.f9ceb4b6 result=3cd755d3.2f69cfcc.8d8 res2=00000003 errno=0
func=rred op1=5fe4539e.deab90d0 result=bcd17e90.708a36a7.954 res2=00000001 errno=0
func=rred op1=5feac9e6.4eef2a61 result=3c9ac3f9.cd51c702.e52 res2=00000003 errno=0
func=rred op1=5ff776ae.889d49fc result=bc8a507d.0c087a8d.aab res2=00000001 errno=0
func=rred op1=5ffe1d1e.15410ac6 result=3cbe0e09.6ed2d654.9a8 res2=00000003 errno=0
func=rred op1=600261c6.d0f265c8 result=3ccfb311.3f935dfd.752 res2=00000001 errno=0
func=rred op1=600fdece.069a0e95 result=bcc59b23.fa6b89cd.b7f res2=00000001 errno=0
func=rred op1=60119902.e675f77d result=bca3bc5d.c9065bea.401 res2=00000003 errno=0
func=rred op1=6014ec3a.acc7d7e2 result=3ccc6901.9e124eab.bfd res2=00000003 errno=0
func=rred op1=6022de3c.d460b08a result=bcd66da7.e2cbcda2.254 res2=00000003 errno=0
func=rred op1=602c0f20.3cd9e36e result=3cc28ad2.b98f20b6.9fc res2=00000001 errno=0
func=rred op1=6039c2e7.62bb96b5 result=3ca58a50.ce2b8dbf.29c res2=00000001 errno=0
func=rred op1=603fa093.04e2e934 result=bc8318b0.f773b33a.03e res2=00000001 errno=0
func=rred op1=6045adf5.2498c719 result=bcbcb393.2af6f0f4.eb3 res2=00000001 errno=0
func=rred op1=604dd7d9.a0de6651 result=3cd1f20d.31d3831c.cfa res2=00000003 errno=0
func=rred op1=6051dac2.a182dc68 result=3cc6bbdb.dda2c8f2.ca0 res2=00000003 errno=0
func=rred op1=6057b86e.43aa2ee7 result=bc9ca509.732d8cd7.05d res2=00000003 errno=0
func=rred op1=6066b331.b4217b00 result=bcd0241a.2cae5147.e5f res2=00000001 errno=0
func=rred op1=6068bdaa.d332e2ce result=3cc1f5af.9fc5dc24.490 res2=00000003 errno=0
func=rred op1=607341bd.9b4977cd result=bcd28730.4b9cc7af.267 res2=00000001 errno=0
func=rred op1=607c2f1e.ec0ae601 result=3cb0d2ae.4818050e.8e2 res2=00000003 errno=0
func=rred op1=60820ba1.d6a1d027 result=3c9d1957.3178adc6.30f res2=00000003 errno=0
func=rred op1=6089f3c6.97da8a74 result=bca7a4b6.562b0f90.ef4 res2=00000003 errno=0
func=rred op1=6094e208.0d25ff87 result=bcc901de.8cfe771e.3fb res2=00000003 errno=0
func=rred op1=609f0585.228f1561 result=3c85d283.6d3678d5.06c res2=00000001 errno=0
func=rred op1=60a376d4.f1e3e7d7 result=bcc1bb88.c0a04bac.b37 res2=00000001 errno=0
func=rred op1=60a88893.7c9872c4 result=3cb146fc.066325fd.b95 res2=00000003 errno=0
func=rred op1=60b2c13b.6442dbff result=bc9976e9.3f1fa64c.d7c res2=00000001 errno=0
func=rred op1=60be4feb.94ee0989 result=3cd2de6a.9a552062.86d res2=00000003 errno=0
func=rred op1=60c8e360.4368f8b0 result=3c922e1d.9b4d4b5d.35e res2=00000001 errno=0
func=rred op1=60cf6051.e95f9b4d result=bcc55ef2.a2c16625.488 res2=00000001 errno=0
func=rred op1=60d293d5.00da9909 result=3cc38cbf.b9cccf69.601 res2=00000003 errno=0
func=rred op1=60df32eb.85f75857 result=bcb4eb61.d84c5375.8a4 res2=00000001 errno=0
func=rred op1=60e2aa88.328eba84 result=3cab452c.68f3f10b.d0d res2=00000003 errno=0
func=rred op1=60e8fa13.751d1a2b result=bcc73125.8bb5fce1.310 res2=00000001 errno=0
func=rred op1=60f5c6f4.3afbd99a result=3cbfd0b3.cfc743e3.1e4 res2=00000003 errno=0
func=rred op1=60fc167f.7d8a3941 result=bcd60e43.b201282b.5da res2=00000003 errno=0
func=rred op1=61011c52.2e582af9 result=3cc8ff68.b58a47a0.2a1 res2=00000003 errno=0
func=rred op1=610da4b5.81c0c8cc result=bce57cd2.c526bdd0.73f res2=00000003 errno=0
func=rred op1=611049dd.9362d276 result=3cf61b3b.e3a3ae02.7ba res2=00000001 errno=0
func=rred op1=611feeac.ef388f5f result=bcd1fa3c.d4c33400.bdd res2=00000001 errno=0
func=rred op1=61256913.865b3e16 result=bca08f17.66fc9079.756 res2=00000003 errno=0
func=rred op1=6126f749.8a91cda1 result=3ca3cd23.cf9e0640.f65 res2=00000003 errno=0
func=rred op1=6130ed61.d407dd37 result=3ce1252c.24dd8255.9e8 res2=00000003 errno=0
func=rred op1=613e8f67.45524d96 result=bcce996f.288ab7b8.4df res2=00000001 errno=0
func=rred op1=6140d5e9.a6dfb656 result=3ca70b30.383f7c08.774 res2=00000001 errno=0
func=rred op1=614b8a73.6a0d5561 result=bc9425fd.2b7349d4.e73 res2=00000003 errno=0
func=rred op1=61531f7e.969d7a36 result=bcb59896.b1d962ee.af3 res2=00000001 errno=0
func=rred op1=615940de.7a4f9181 result=3cc14864.2a2f9d06.597 res2=00000003 errno=0
func=rred op1=6161fab4.1ebe9846 result=3c772998.6661919c.80a res2=00000003 errno=0
func=rred op1=616caf3d.e1ec3751 result=bcd03271.05630a33.036 res2=00000003 errno=0
func=rred op1=61728d19.5aae093e result=bcc4df49.eea65661.cb3 res2=00000001 errno=0
func=rred op1=617af80e.2e1de469 result=3c915f32.4cc92d35.607 res2=00000001 errno=0
func=rred op1=6181b181.80c6dfca result=3cc93716.81d8a1af.235 res2=00000001 errno=0
func=rred op1=618b4140.cc159ce5 result=bcc1fa16.e1da242e.3b2 res2=00000001 errno=0
func=rred op1=6191d61a.cfc2bc08 result=3ccc1c49.8ea4d3e2.b36 res2=00000001 errno=0
func=rred op1=619b1ca7.7d19c0a7 result=bcbb4494.9d4fb1c1.c60 res2=00000003 errno=0
func=rred op1=61a1e867.7740aa27 result=3cd0f357.d41e9c24.e9c res2=00000001 errno=0
func=rred op1=61ab0a5a.d59bd288 result=bca3cac4.a10d0918.cb0 res2=00000003 errno=0
func=rred op1=61b68287.7a2d3567 result=3caa886c.2bb61a20.363 res2=00000003 errno=0
func=rred op1=61bf922e.310a6fa9 result=bcca6cdf.abfa8fa0.d89 res2=00000001 errno=0
func=rred op1=61c447c4.2034dde6 result=bcbdb026.f1938da5.309 res2=00000001 errno=0
func=rred op1=61cd451e.2f942a09 result=3cb0a309.db2f9593.d0b res2=00000001 errno=0
func=rred op1=61d0e678.c5816395 result=bcc8bd75.c9504b5e.fdd res2=00000003 errno=0
func=rred op1=61d9e3d2.d4e0afb8 result=3cc595bb.0372d7da.037 res2=00000003 errno=0
func=rred op1=61e3b480.1fd74c7e result=3c8caf66.265cec13.86e res2=00000003 errno=0
func=rred op1=61e715cb.7a8ac6cf result=bcb034d7.dc416b96.5a3 res2=00000001 errno=0
func=rred op1=61f09cd6.c5529ae1 result=bcd2e549.6fda21b8.2ed res2=00000003 errno=0
func=rred op1=61fd8ec0.2fc2f2bd result=3ca5838c.9cc5b10e.a52 res2=00000001 errno=0
func=rred op1=6206f0fa.7a736275 result=3cccc194.8d0a12de.e53 res2=00000003 errno=0
func=rred op1=620a5245.d526dcc6 result=bcb5a7e9.6a1ffea5.61c res2=00000003 errno=0
func=rred op1=6210659d.452f845a result=3cd02bc0.a8ead830.ab0 res2=00000001 errno=0
func=rred op1=62170362.fa7f14a2 result=bc9d40d9.5bc6226e.793 res2=00000003 errno=0
func=rred op1=62255bf1.8d2b3090 result=3cb55f2f.cf6b6377.e89 res2=00000003 errno=0
func=rred op1=6228aad4.67d2f8b4 result=bcc95004.9598c2f3.30e res2=00000001 errno=0
func=rred op1=62362faa.43d52299 result=3c9afb0c.86214902.b01 res2=00000001 errno=0
func=rred op1=6237d71b.b12906ab result=bcd0501d.764525c7.679 res2=00000003 errno=0
func=rred op1=6240d8ad.e08a5675 result=bc9f86a6.316afbda.424 res2=00000003 errno=0
func=rred op1=624b86a6.a71feebd result=3cc16e5b.093e03fc.a05 res2=00000001 errno=0
func=rred op1=6253842c.122fbc87 result=3c966f72.dad7962b.1de res2=00000001 errno=0
func=rred op1=625f05dd.8f6f46d8 result=bcca72eb.006b2fa9.157 res2=00000001 errno=0
func=rred op1=62622e6c.f95d097e result=bca44eec.c3ff30c4.b35 res2=00000003 errno=0
func=rred op1=6264d9eb.2b026f90 result=3cc04b74.9e6b9746.bbc res2=00000001 errno=0
func=rred op1=627b45a3.760b8e3d result=bcbe7663.25fec927.0cf res2=00000001 errno=0
func=rred op1=627c9b62.8ede4146 result=3ca88ff8.f1affb91.888 res2=00000003 errno=0
func=rred op1=628764e7.c41da562 result=bca00de0.964e65f7.de1 res2=00000001 errno=0
func=rred op1=6288baa6.dcf0586b result=3cd35d73.bca196b8.ecd res2=00000001 errno=0
func=rred op1=6294c9aa.5ebd5770 result=bcc85264.e992ca42.aad res2=00000001 errno=0
func=rred op1=629a0025.297df354 result=3cb08908.a688c895.997 res2=00000003 errno=0
func=rred op1=62a61749.116d7e69 result=bcd02caa.9a5cfe9f.4cf res2=00000003 errno=0
func=rred op1=62a8b286.76cdcc5b result=3c5eca04.0e98a76e.d7b res2=00000001 errno=0
func=rred op1=62b2327d.2c6e4f86 result=bcaf2571.0c2806b4.457 res2=00000003 errno=0
func=rred op1=62bf328f.c12d4930 result=3cb17f58.c6fd8dd1.103 res2=00000001 errno=0
func=rred op1=62c61951.2af6216d result=3cc948b5.0a078f7e.219 res2=00000003 errno=0
func=rred op1=62cb4bbb.c2a57749 result=bcc75c14.c91e0507.341 res2=00000001 errno=0
func=rred op1=62d0e5e2.86827a0f result=bcab4c30.8a54f1c6.6a8 res2=00000003 errno=0
func=rred op1=62d765eb.d0e1f6e4 result=3cca3f05.2a7c54b9.985 res2=00000003 errno=0
func=rred op1=62e4cc34.7ea82335 result=bca399af.86aec7ea.b49 res2=00000003 errno=0
func=rred op1=62ec98d8.6ef37581 result=3cb931d9.caa3b7ac.c62 res2=00000001 errno=0
func=rred op1=62f6bf5d.7abaf7c8 result=bc80d2b5.fd89d0cd.22e res2=00000003 errno=0
func=rred op1=62faa5af.72e0a0ee result=3cc0722d.6724f0c4.3e0 res2=00000001 errno=0
func=rred op1=63013929.b195f99d result=3cd9b86f.7a900633.2f3 res2=00000001 errno=0
func=rred op1=630e38ba.3ff2ca86 result=bcd31319.d6c27964.4b8 res2=00000001 errno=0
func=rred op1=63110f86.1c0c39d6 result=bc993c10.fc4eb933.b45 res2=00000001 errno=0
func=rred op1=631e625d.d57c8a4d result=3ccdbcd8.aec00a62.058 res2=00000003 errno=0
func=rred op1=6323e771.cb6398cf result=bcad70be.7bb12d66.fd1 res2=00000001 errno=0
func=rred op1=632b8a72.26252b54 result=3cde436e.5eac58e8.6e9 res2=00000003 errno=0
func=rred op1=633181e7.75ae7f09 result=bce4ea25.be7d8c3a.bb5 res2=00000003 errno=0
func=rred op1=633ed4bf.2f1ecf80 result=3cd7f46a.1f98aa9b.818 res2=00000003 errno=0
func=rred op1=6342b4ac.a0890bec result=bce8983d.8df3b1e7.9af res2=00000001 errno=0
func=rred op1=634da1fa.0444429d result=3ccae170.c2451036.977 res2=00000003 errno=0
func=rred op1=6355ecca.387c8ebd result=3ca76835.15632cd8.af6 res2=00000003 errno=0
func=rred op1=6358c4b5.e7d3edb6 result=bc947a6d.cb60e983.2cc res2=00000003 errno=0
func=rred op1=63621232.5298b4cd result=bcd21a5c.da3fdf65.55b res2=00000003 errno=0
func=rred op1=636f7739.7d0f269f result=3cc9f782.cecf4a09.14f res2=00000001 errno=0
func=rred op1=6373ff7e.458aa1c5 result=bcc8809f.29ce285e.53b res2=00000001 errno=0
func=rred op1=637d89ed.8a1d39a7 result=3ca018c5.79b4fb6c.9ba res2=00000003 errno=0
func=rred op1=6384f624.3f039841 result=bc8186a1.46afb85a.446 res2=00000001 errno=0
func=rred op1=6389bb5b.e14ce432 result=3ccb6e66.73d06bb3.d64 res2=00000003 errno=0
func=rred op1=6390ac3f.9976c78e result=bcb6ab41.f436e08e.755 res2=00000001 errno=0
func=rred op1=63994008.e49068f4 result=3cabcfe2.a1be08c2.a63 res2=00000003 errno=0
func=rred op1=63a0e9e9.17d5052d result=3cc93d92.4afa74a8.8dc res2=00000001 errno=0
func=rred op1=63ad4c44.0bbefc08 result=bcbf6e92.978ebcbb.978 res2=00000001 errno=0
func=rred op1=63b2f006.ab6c4eb7 result=3cc4dbe9.f94e8691.fca res2=00000001 errno=0
func=rred op1=63bb4626.7827b27e result=bc8cf57f.ae859fc7.8a7 res2=00000003 errno=0
func=rred op1=63c3f315.7537f37c result=3cb83132.abed54c9.b4e res2=00000001 errno=0
func=rred op1=63cc4935.41f35743 result=bcd09ef5.493b8b5c.081 res2=00000001 errno=0
func=rred op1=63d14c9b.bd8bb8c0 result=bcc355f9.41981256.bd1 res2=00000003 errno=0
func=rred op1=63d79c9d.f6afd2fd result=3cb0f3d2.c04becd7.d24 res2=00000003 errno=0
func=rred op1=63e29fd8.9961d61e result=3ca36ce5.a95509cb.df5 res2=00000001 errno=0
func=rred op1=63e64961.1ad9b59f result=bcca9359.2d397a48.9fb res2=00000003 errno=0
func=rred op1=63f6f2ff.88c4c44e result=bcb33f0c.d9db1ae1.9ac res2=00000001 errno=0
func=rred op1=63fbefc4.e612c12d result=3cbd2358.7dff8eb1.cf0 res2=00000003 errno=0
func=rred op1=6404c96c.11134d36 result=3c46ec67.bcf77522.4bc res2=00000003 errno=0
func=rred op1=64091c93.00763b66 result=bcd34a83.0db9969c.2be res2=00000001 errno=0
func=rred op1=6415de35.ccec08c2 result=bcc32820.721e236c.787 res2=00000001 errno=0
func=rred op1=641f2e22.199cf3d1 result=3c61314d.cdb997d9.b8d res2=00000001 errno=0
func=rred op1=64243f07.3326ef70 result=3cc3b1aa.e08bf02b.463 res2=00000001 errno=0
func=rred op1=642fb886.f7895197 result=bcc2cc6e.d32a4597.ef4 res2=00000001 errno=0
func=rred op1=64348439.a21d1e53 result=3cc40d5c.7f7fcdff.cf6 res2=00000001 errno=0
func=rred op1=643f7354.889322b4 result=bcc242e4.64bc78d9.218 res2=00000003 errno=0
func=rred op1=6449d92d.dddd0912 result=3cc52071.5c5b677d.6af res2=00000001 errno=0
func=rred op1=644a1e60.4cd337f5 result=bcc18b81.26d4bd30.0f2 res2=00000003 errno=0
func=rred op1=6457514c.f7782b24 result=3cc68f37.d82adecf.8fb res2=00000001 errno=0
func=rred op1=645ca641.333815e3 result=bcbecaae.da3b1469.b01 res2=00000003 errno=0
func=rred op1=64660d5c.8445bc2d result=3cc96cc4.cfc9cd73.d93 res2=00000001 errno=0
func=rred op1=646dea31.a66a84da result=bcb63207.f35e487c.d3a res2=00000003 errno=0
func=rred op1=64703909.4667b164 result=3ccc4a51.c768bc18.22a res2=00000001 errno=0
func=rred op1=647959ce.dbbee908 result=bca577a8.29c51bd7.5b8 res2=00000003 errno=0
func=rred op1=6487119d.76691b1f result=3ca86127.5029ce6d.3c1 res2=00000003 errno=0
func=rred op1=648ba200.4114b6f1 result=bccb8ff1.fdcf8f72.aa8 res2=00000001 errno=0
func=rred op1=6493035b.24cf2ec6 result=bcc019be.1f53d4e1.84a res2=00000001 errno=0
func=rred op1=649d6811.2d58d561 result=3cab4aa6.768e8103.1ca res2=00000001 errno=0
func=rred op1=64a62e95.00470be7 result=bcd2c8b3.248c785c.701 res2=00000001 errno=0
func=rred op1=64aa3cd7.51e0f840 result=3cc3033d.45b88777.653 res2=00000003 errno=0
func=rred op1=64b049a5.84685941 result=3cb08ed2.61abf317.6ee res2=00000001 errno=0
func=rred op1=64b374df.5fe03662 result=bc93a357.2064a2ff.b28 res2=00000003 errno=0
func=rred op1=64ca0415.34587472 result=3cbc34ce.fb3ebd6e.f11 res2=00000001 errno=0
func=rred op1=64cd2f4f.0fd05193 result=bcad7502.b096f47f.8bd res2=00000001 errno=0
func=rred op1=64d02d44.75a4175a result=bcccd4e8.d5ead8f7.3e7 res2=00000001 errno=0
func=rred op1=64d6bc7a.4a1c556a result=3cb26323.6b0c6bef.17d res2=00000003 errno=0
func=rred op1=64e518ac.d4fe45e6 result=bc74033b.55837109.aae res2=00000003 errno=0
func=rred op1=64e86047.bf3a64ee result=3cd2b330.586279b3.3e8 res2=00000001 errno=0
func=rred op1=64f5ea93.8f8d4da8 result=3cc1c309.90605066.ca8 res2=00000001 errno=0
func=rred op1=64ffa503.3f7d68d9 result=bc8e04d9.0045298e.805 res2=00000001 errno=0
func=rred op1=6504afb9.77b6c205 result=bcc583a4.b068f598.9a9 res2=00000001 errno=0
func=rred op1=650581a0.3245c9c7 result=3cc082d5.db081956.2fd res2=00000003 errno=0
func=rred op1=651a2a5e.5b9a156f result=bcc9443f.d0719aca.6a9 res2=00000003 errno=0
func=rred op1=651a9351.b8e19950 result=3cb98475.75fee848.bf9 res2=00000001 errno=0
func=rred op1=65225b5a.630c9c31 result=bccbc4a7.3b2208eb.9ff res2=00000003 errno=0
func=rred op1=6527d5ff.46efef9b result=3caf05af.967a5f87.d43 res2=00000001 errno=0
func=rred op1=6531312a.d8b78947 result=3c9604e8.81eddcfc.52b res2=00000001 errno=0
func=rred op1=653bbd81.4336ac3a result=bcad0402.6a0ff395.2c7 res2=00000001 errno=0
func=rred op1=65448395.0fd3bc71 result=3cc24374.db7aeb63.747 res2=00000003 errno=0
func=rred op1=654f0feb.7a52df64 result=bc8bfc67.a0885a63.671 res2=00000003 errno=0
func=rred op1=6552da5f.f445a2dc result=3cc7c4ae.fbf662a2.892 res2=00000001 errno=0
func=rred op1=655d66b6.5ec4c5cf result=bcc041c7.af107f70.cca res2=00000001 errno=0
func=rred op1=65674bf0.9bbe278b result=bca4fd4d.b86643ca.8d5 res2=00000001 errno=0
func=rred op1=6568f525.b74c4120 result=3cc44522.07e55756.1c4 res2=00000003 errno=0
func=rred op1=65729558.9eacbed4 result=bcd121aa.ec14c243.e7e res2=00000001 errno=0
func=rred op1=657c0288.98cf9042 result=3cba8c10.3f86817a.84f res2=00000003 errno=0
func=rred op1=6585c53f.2afc7ffa result=3ca91bb8.de84a891.a2d res2=00000003 errno=0
func=rred op1=658d893a.099137d3 result=bc770576.101d8e8e.218 res2=00000003 errno=0
func=rred op1=6592a69a.7412f7d6 result=bcaedd16.628c0c35.2b4 res2=00000003 errno=0
func=rred op1=6598e3e3.e1e6081e result=3cd0697f.3b93d5cf.76d res2=00000001 errno=0
func=rred op1=65a435ec.cf87bbe8 result=3ca35a5b.5a7d44ee.1a7 res2=00000001 errno=0
func=rred op1=65abf9e7.ae1c73c1 result=bcc725d0.c9e90927.e07 res2=00000001 errno=0
func=rred op1=65b36e43.a1cd59df result=bcb52fe8.b54d69be.1e0 res2=00000003 errno=0
func=rred op1=65be50e3.374b99dc result=3cbd0789.07bbe765.27b res2=00000003 errno=0
func=rred op1=65c87bbe.d5af48d9 result=bcc05951.deae1882.976 res2=00000003 errno=0
func=rred op1=65c94368.0369aae2 result=3cc830f2.311c9629.a11 res2=00000001 errno=0
func=rred op1=65d1af2f.3596c46b result=3cd0ef0f.ef2d9c50.572 res2=00000003 errno=0
func=rred op1=65db027c.6fa04056 result=bccbdc0c.e6bcdfc9.a82 res2=00000003 errno=0
func=rred op1=65e28eb9.6bb20f25 result=bcb10363.187f35b7.1b5 res2=00000003 errno=0
func=rred op1=65e51577.05a306a2 result=3c82b7c2.0ff079b7.f95 res2=00000001 errno=0
func=rred op1=65fd1974.ee839276 result=bcbfafcd.ef005c37.377 res2=00000003 errno=0
func=rred op1=65ffa032.887489f3 result=3c9c13a3.17e8b693.f5f res2=00000003 errno=0
func=rred op1=66011378.1132c0b8 result=3cc6dccf.bd7a5bc0.993 res2=00000003 errno=0
func=rred op1=66091775.fa134c8c result=bcbb01dd.6b043dc9.392 res2=00000001 errno=0
func=rred op1=66131477.8b6ae3ad result=3ccb8ac0.41767a2e.979 res2=00000003 errno=0
func=rred op1=66171676.7fdb2997 result=bcb1a5fc.630c00ed.3c7 res2=00000001 errno=0
func=rred op1=6620d099.01565674 result=bca09436.b6278822.7fa res2=00000001 errno=0
func=rred op1=662b5b54.8427d9c5 result=3ca4db4d.69b96b4d.730 res2=00000001 errno=0
func=rred op1=6632f308.037cae8b result=3cbd2568.c4cd2f5e.b2d res2=00000001 errno=0
func=rred op1=663938e5.820181ae result=bcb8de52.113b4c33.bf7 res2=00000003 errno=0
func=rred op1=664504bf.41abec11 result=bcc4b944.63b16a2b.1f8 res2=00000001 errno=0
func=rred op1=664f8f7a.c47d6f62 result=3cc0b63f.bc2f8944.d32 res2=00000001 errno=0
func=rred op1=66583009.e2e9e2eb result=3c510483.04009129.bf8 res2=00000001 errno=0
func=rred op1=665c6430.233f7888 result=bcb05024.aa1785dd.d8a res2=00000003 errno=0
func=rred op1=6662663e.51f551e1 result=bcc8bc49.0b334b11.6bf res2=00000003 errno=0
func=rred op1=666df9d5.73de73f5 result=3cc9446d.23534f9a.b9e res2=00000001 errno=0
func=rred op1=667116fd.da1a04c9 result=3cb1606c.da578ef0.749 res2=00000001 errno=0
func=rred op1=667f4915.ebb9c10d result=bcae7fb8.f3aef996.795 res2=00000003 errno=0
func=rred op1=6684a383.de81f3da result=3cb270b5.0a979803.109 res2=00000001 errno=0
func=rred op1=668bbc8f.e751d1fc result=bcac5f28.932ee771.416 res2=00000003 errno=0
func=rred op1=66916acd.f810d80f result=bcc767ee.cee33fba.290 res2=00000001 errno=0
func=rred op1=669ef545.cdc2edc7 result=3ccba90f.8fe36404.98d res2=00000003 errno=0
func=rred op1=66a140e5.e9156e6c result=3cb6b1d5.cb97bc4d.807 res2=00000001 errno=0
func=rred op1=66af1f2d.dcbe576a result=bc96b54b.1e5cac8f.03d res2=00000003 errno=0
func=rred op1=66b67eba.e833a034 result=bcc1063d.ad63094a.813 res2=00000001 errno=0
func=rred op1=66b9e158.dda025a2 result=3cd10560.58b1cd3a.205 res2=00000003 errno=0
func=rred op1=66c3dfd0.68a48750 result=3ca6ae60.78d2cc0b.fd1 res2=00000003 errno=0
func=rred op1=66cacef4.6278fbcf result=bcc6b390.74fa346e.422 res2=00000003 errno=0
func=rred op1=66d97f7f.22b16f5d result=bca6bc35.c3e68d12.0a8 res2=00000003 errno=0
func=rred op1=66ddcfb8.9cf6caf8 result=3cc102c8.5a9e1908.fdd res2=00000001 errno=0
func=rred op1=66e8d7c4.82cda924 result=3ccc59f8.97077f0e.fc6 res2=00000003 errno=0
func=rred op1=66ee7773.3cda9131 result=bca6ca0b.0efa4e18.17e res2=00000001 errno=0
func=rred op1=66f163d6.5b8ff666 result=3cd3d894.69b8728a.7d7 res2=00000001 errno=0
func=rred op1=66fbfb79.2fc60047 result=bcc1109d.a5b1da0f.0b3 res2=00000003 errno=0
func=rred op1=670025d9.5505adf1 result=3ce26dae.622b45c9.bda res2=00000003 errno=0
func=rred op1=670fb570.4364d9a6 result=bcc11e72.f0c59b15.18a res2=00000003 errno=0
func=rred op1=671118b5.283cb548 result=bca71d0a.d170d43c.684 res2=00000001 errno=0
func=rred op1=671256b2.2ec6fdbd result=3ca63fb6.2034c3db.91f res2=00000003 errno=0
func=rred op1=6729a50f.bc5b0fec result=bcc155c8.1d149f2d.4e3 res2=00000003 errno=0
func=rred op1=672ae30c.c2e55861 result=3ca56261.6ef8b37a.bba res2=00000003 errno=0
func=rred op1=67355ee2.724be29a result=bccce44d.85cd094b.825 res2=00000001 errno=0
func=rred op1=673f293a.0cf485b3 result=3ca3a7b8.0c8092b9.0f1 res2=00000003 errno=0
func=rred op1=67433bcb.cd444bf1 result=bcda00ac.2b9eeec3.f54 res2=00000001 errno=0
func=rred op1=674d0623.67ecef0a result=3cbf363d.7538fcd7.433 res2=00000001 errno=0
func=rred op1=6750a628.58fe0e2e result=3ca03265.47905135.b5e res2=00000003 errno=0
func=rred op1=6752c93e.fe05a4d7 result=bcae07b0.5b515743.1a9 res2=00000001 errno=0
func=rred op1=6768f93c.857d1545 result=3cb84b97.eb5879d0.90d res2=00000001 errno=0
func=rred op1=676b1c53.2a84abee result=bcb5ee7d.b7892ea8.3fa res2=00000001 errno=0
func=rred op1=6775e13d.c1c15d0e result=bc96f061.bfe375ca.26e res2=00000003 errno=0
func=rred op1=677e3451.ee406425 result=3ca4ec99.af2ee786.586 res2=00000001 errno=0
func=rred op1=678343b3.0d5fb59e result=3cbaa8b2.1f27c4f8.e21 res2=00000003 errno=0
func=rred op1=67887ec8.7623047e result=bcc8cc89.ef859d61.848 res2=00000001 errno=0
func=rred op1=67973003.1bf230c6 result=bcce88a2.5f7e7ad4.0e3 res2=00000003 errno=0
func=rred op1=679f8317.487137dd result=3c8dc282.fa227975.d9e res2=00000003 errno=0
func=rred op1=67a539db.14a8f332 result=bc9eff82.02b5aed9.60c res2=00000001 errno=0
func=rred op1=67aedbb4.9b58ce01 result=3cc6c8c1.ded10f1d.b60 res2=00000003 errno=0
func=rred op1=67b4e629.be1cbe44 result=3cb6a121.fdbea871.452 res2=00000003 errno=0
func=rred op1=67bfd6c8.9efd6ccb result=bcb73fa1.82084323.089 res2=00000003 errno=0
func=rred op1=67c51002.6962d8bb result=3c9c8583.f18f4412.530 res2=00000001 errno=0
func=rred op1=67cfacef.f3b75254 result=bca0bcc0.09ee0cd0.374 res2=00000003 errno=0
func=rred op1=67da498c.d8ea084c result=3cc271f1.fb43253d.375 res2=00000001 errno=0
func=rred op1=67da7365.843022c3 result=bcc3aef1.03d65aa0.be3 res2=00000003 errno=0
func=rred op1=67e7c1b3.f6c97dbf result=bcb91b20.0ee51338.52e res2=00000001 errno=0
func=rred op1=67ecfb3e.6650ad50 result=3cb42723.ec983daa.376 res2=00000003 errno=0
func=rred op1=67f668db.30162b3d result=3c8b531f.155186d0.018 res2=00000001 errno=0
func=rred op1=67fe5417.2d03ffd2 result=bcaaa4b8.4e87b7ec.6e2 res2=00000003 errno=0
func=rred op1=68071547.936fd47e result=bcc765ee.1d8ffacb.52c res2=00000003 errno=0
func=rred op1=680da7aa.c9aa5691 result=3cbafbeb.b1ec9f5e.37d res2=00000001 errno=0
func=rred op1=6812c973.634c1593 result=bc99f651.87bde908.dab res2=00000001 errno=0
func=rred op1=681a0842.fce040e7 result=3cc0e859.bba08089.1c1 res2=00000003 errno=0
func=rred op1=6820f9bf.7ce70abe result=bcc09126.583b9917.526 res2=00000003 errno=0
func=rred op1=68249927.49b12068 result=3c9cafec.a2e52497.284 res2=00000001 errno=0
func=rred op1=683d1607.0824a5c7 result=bcb2ca56.5f049fe3.10a res2=00000001 errno=0
func=rred op1=683ee5ba.ee89b09c result=3cb583f1.7a2bdb71.5e3 res2=00000003 errno=0
func=rred op1=6847efbd.35b85dad result=bcc66053.f3614475.f5b res2=00000001 errno=0
func=rred op1=6849bf71.1c1d6882 result=3cc1edf3.e5cf36de.792 res2=00000001 errno=0
func=rred op1=68520602.607afc5b result=3cc919ef.0e888004.434 res2=00000003 errno=0
func=rred op1=685fa92b.f15ac9d4 result=bcd0ff57.94d64d99.9e2 res2=00000001 errno=0
func=rred op1=686a2129.9d85f51e result=bca53b0a.1b1dda70.4ff res2=00000001 errno=0
func=rred op1=686cb44e.86bc192b result=3c8dd38a.1f1d289b.617 res2=00000003 errno=0
func=rred op1=687236de.a12f42a9 result=3cc7612a.1c1dadfb.144 res2=00000001 errno=0
func=rred op1=687f784f.b0a68386 result=bcdd7a15.44570d5b.7c3 res2=00000003 errno=0
func=rred op1=6884e271.aabf89dd result=bc894514.2e3d188a.7cd res2=00000003 errno=0
func=rred op1=68877596.93f5adea result=3ccb1b9b.6001530e.807 res2=00000003 errno=0
func=rred op1=6890f983.3cc14236 result=bcb863ac.a0e57d81.9f8 res2=00000001 errno=0
func=rred op1=6898cb60.18bdd184 result=3ca78245.138de278.c23 res2=00000003 errno=0
func=rred op1=68a04e9e.7a5d3069 result=3cc7f2f8.da39affd.30e res2=00000001 errno=0
func=rred op1=68ad5f33.49202af8 result=bcc2831b.5c0204e3.6ef res2=00000001 errno=0
func=rred op1=68b29888.128e5d23 result=3cc1a1b3.ceaa69da.91a res2=00000001 errno=0
func=rred op1=68bb1549.b0eefe3e result=bcab07e3.48ec4e9c.376 res2=00000003 errno=0
func=rred op1=68c3bd7c.dea6f380 result=3ca3fca6.de2f7655.4d1 res2=00000001 errno=0
func=rred op1=68cc3a3e.7d07949b result=bcd5e417.c51f8eb6.f5e res2=00000001 errno=0
func=rred op1=68d76963.47caf8df result=bcb1098f.d9d49371.90d res2=00000003 errno=0
func=rred op1=68dd9c3b.4dfa6d40 result=3cbdfafa.4d47317f.f3a res2=00000003 errno=0
func=rred op1=68e8acdc.1650b060 result=3cc8fbd0.95bb53ea.a06 res2=00000001 errno=0
func=rred op1=68ec58c2.7f74b5bf result=bcb814cc.44916bb8.7b2 res2=00000003 errno=0
func=rred op1=68f145cd.42d21510 result=3cd17d12.0269878a.a37 res2=00000003 errno=0
func=rred op1=68fed072.1b49942f result=bcc315a2.8d058e23.27d res2=00000003 errno=0
func=rred op1=690009f5.74e7a5d8 result=3ce03d47.94869025.4ea res2=00000001 errno=0
func=rred op1=690d949a.4d5f24f7 result=bcd59537.68cb7ced.d17 res2=00000001 errno=0
func=rred op1=6910a7e1.5bdcdd74 result=3cf0dd2c.cb780bd7.f90 res2=00000003 errno=0
func=rred op1=691f6e5e.023ecbcb result=bce1d5d8.1f2296bd.d30 res2=00000001 errno=0
func=rred op1=692058eb.686241a6 result=3d008d3a.2fff4dfe.a3d res2=00000001 errno=0
func=rred op1=692fbd53.f5b96799 result=bcf135f2.e8311b0b.28a res2=00000003 errno=0
func=rred op1=69303170.6ea4f3bf result=3d106540.e242ef11.f93 res2=00000001 errno=0
func=rred op1=693fe4ce.ef76b580 result=bd00e600.4cb85d31.d36 res2=00000003 errno=0
func=rred op1=69441c5f.ceb2921d result=bc71a702.80a2b3b4.b70 res2=00000001 errno=0
func=rred op1=694443da.c86fe004 result=3cb2e236.b6254b1a.01a res2=00000003 errno=0
func=rred op1=695e16d2.392d3438 result=bcb74bf7.564df807.2f6 res2=00000001 errno=0
func=rred op1=695e3e4d.32ea821f result=3cb0ad56.6610f4a3.6ac res2=00000001 errno=0
func=rred op1=696905db.87113c37 result=bcd05e89.58b04eca.182 res2=00000003 errno=0
func=rred op1=69692d56.80ce8a1e result=3cacf0ec.2bf93c59.a7c res2=00000003 errno=0
func=rred op1=6971a7a1.f2833d10 result=3cca1e71.c1239a30.6b9 res2=00000001 errno=0
func=rred op1=697ba214.5cfddf2b result=bcc00fbc.4b4fa8f0.c57 res2=00000001 errno=0
func=rred op1=69805985.878ceb96 result=3c9693d3.56ad1149.e18 res2=00000003 errno=0
func=rred op1=6987df3a.15d838a4 result=bcc4797c.eb7855dd.f33 res2=00000001 errno=0
func=rred op1=69988648.4b536161 result=3cb0eede.8101ccf7.692 res2=00000001 errno=0
func=rred op1=699c4922.927907e8 result=bcbda910.2b9a2316.f5b res2=00000003 errno=0
func=rred op1=69a28e79.c5dd5338 result=3cd2b42d.b63d116a.ae3 res2=00000001 errno=0
func=rred op1=69ae7e16.d0c96f8a result=bc9c54f3.53b44734.508 res2=00000003 errno=0
func=rred op1=69b76bce.2c2b2d90 result=3caefd2d.037ffef9.9ad res2=00000003 errno=0
func=rred op1=69bd639c.b1a13bb9 result=bcd099d7.4b0855fe.bfe res2=00000001 errno=0
func=rred op1=69c2c82f.bab3d8c2 result=bcc5e9c4.eaba2358.8ef res2=00000001 errno=0
func=rred op1=69caf4f2.7e7a4e8d result=3c7541cd.7e5dbe2a.523 res2=00000001 errno=0
func=rred op1=69d190da.a120622c result=3cc73de1.c29fff3b.341 res2=00000001 errno=0
func=rred op1=69d519fe.f36f8329 result=bca9acb9.a3e88f6f.064 res2=00000003 errno=0
func=rred op1=69e80778.b8f4e8db result=bca45c46.44511fe4.71b res2=00000001 errno=0
func=rred op1=69ede26c.43ffb43f result=3cb4cf09.e1576f07.61f res2=00000003 errno=0
func=rred op1=69f97e35.9bb79bb4 result=bc9376bf.0a44819e.913 res2=00000001 errno=0
func=rred op1=69fc6baf.613d0166 result=3cba1f7d.40eede91.f68 res2=00000003 errno=0
func=rred op1=6a012351.7623e665 result=3cd60675.d1fbb721.4b0 res2=00000003 errno=0
func=rred op1=6a0eeb9f.fbc5eb51 result=bce5315e.0b266b82.de6 res2=00000001 errno=0
func=rred op1=6a131ea8.34c9b4c7 result=bcad321e.8f66c26d.d9d res2=00000003 errno=0
func=rred op1=6a149565.178c67a0 result=3cc7b0a5.5fa64e5e.245 res2=00000003 errno=0
func=rred op1=6a259310.76df4ed1 result=bcd8028a.163df832.2cf res2=00000003 errno=0
func=rred op1=6a2d695a.c08fe897 result=3cb22f2c.2fe5da4e.6ee res2=00000001 errno=0
func=rred op1=6a31e474.13bee7c2 result=3ca0e799.558732fe.4ca res2=00000003 errno=0
func=rred op1=6a384401.7aacceaf result=bca605e4.bf01d03e.d5c res2=00000003 errno=0
func=rred op1=6a45b154.d7bb41bb result=bcd159cb.df939b3e.c7a res2=00000003 errno=0
func=rred op1=6a4ad6ae.1d9e5ba3 result=3cb95b66.004acc7d.730 res2=00000001 errno=0
func=rred op1=6a509b1d.c2462148 result=bcab2430.287c6d7f.5ed res2=00000001 errno=0
func=rred op1=6a598d57.cc259529 result=3c8aac0a.0a47e1f4.ea2 res2=00000003 errno=0
func=rred op1=6a613fc8.eb028485 result=3cb43d1a.96d02f3c.e9f res2=00000001 errno=0
func=rred op1=6a68e8ac.a36931ec result=bcc45b24.1e5d521f.871 res2=00000003 errno=0
func=rred op1=6a756690.5b940cd7 result=3cbae81d.196227ba.247 res2=00000003 errno=0
func=rred op1=6a7db41f.3cb71d7b result=bc4e0987.8d22e29d.291 res2=00000001 errno=0
func=rred op1=6a8ba0bb.846e5952 result=3caa33e3.ec13566a.758 res2=00000001 errno=0
func=rred op1=6a8fc782.f4ffe1a4 result=bcac147c.64e58494.481 res2=00000003 errno=0
func=rred op1=6a91f725.32c8b4fb result=bcc49737.2d7797e4.c16 res2=00000001 errno=0
func=rred op1=6a9f1026.ad39b12e result=3ce5e058.d59164a3.914 res2=00000001 errno=0
func=rred op1=6aa5c23e.7f772512 result=3ca8534b.73412840.a2f res2=00000001 errno=0
func=rred op1=6aa7d5a2.37bfe93b result=bcc50f5d.4bac236f.361 res2=00000001 errno=0
func=rred op1=6ab2d2ff.fcfb8af2 result=bcafd5ad.5689e0e7.ed3 res2=00000003 errno=0
func=rred op1=6ab8b17d.01f2bf32 result=3cd0245b.6471d03d.4f2 res2=00000001 errno=0
func=rred op1=6ac44a9f.3e395802 result=3ca0d0e9.8ff86f99.58a res2=00000001 errno=0
func=rred op1=6acc3c7f.fb79506b result=bcc7e042.00e768ad.f1e res2=00000001 errno=0
func=rred op1=6ad38ecf.9d9a717a result=bcb76d38.8e8da91b.40e res2=00000003 errno=0
func=rred op1=6ade6fee.dd560403 result=3cb9395e.57f4a766.050 res2=00000003 errno=0
func=rred op1=6ae3ecb7.6de9e4be result=bc9a713b.fa54e607.a0c res2=00000001 errno=0
func=rred op1=6aee1207.0d0690bf result=3ca46935.22c66c2e.e0f res2=00000003 errno=0
func=rred op1=6af41bab.56119e60 result=3cbb0584.215ba5b0.c92 res2=00000001 errno=0
func=rred op1=6afde313.24ded71d result=bcb3d4ec.fbbfac85.b89 res2=00000003 errno=0
func=rred op1=6b03d53d.79d607ed result=bcd0abd7.8636bfaf.0e9 res2=00000001 errno=0
func=rred op1=6b0dfa8d.18f2b3ee result=3c628904.e0d7f525.0be res2=00000001 errno=0
func=rred op1=6b18f3a2.436e4c56 result=bcb9dcf3.d34e265e.786 res2=00000001 errno=0
func=rred op1=6b190b1c.37822927 result=3ccb4fa8.34df0585.5d5 res2=00000003 errno=0
func=rred op1=6b2180bb.f73b8dc3 result=3cbc2e14.6f692503.19e res2=00000003 errno=0
func=rred op1=6b2b7717.ae308022 result=bcb8b463.8540a70c.27b res2=00000003 errno=0
func=rred op1=6b303f01.41da73dd result=3cbd56a4.bd76a455.6aa res2=00000001 errno=0
func=rred op1=6b3cb8d2.63919a08 result=bcb66342.e925a867.863 res2=00000003 errno=0
func=rred op1=6b4d59af.be4226fb result=bcb1c101.b0efab1e.433 res2=00000003 errno=0
func=rred op1=6b4e9b6a.73a340e1 result=3cc22503.48e3d021.a79 res2=00000001 errno=0
func=rred op1=6b562b7b.255dc079 result=bcaa3d80.f1735baa.007 res2=00000003 errno=0
func=rred op1=6b56cc58.800e4d6c result=3cc47623.e4fecec6.490 res2=00000001 errno=0
func=rred op1=6b629460.d8eb8d38 result=bc8ed1f0.426d9a13.d1f res2=00000003 errno=0
func=rred op1=6b6a6372.cc8080ad result=3ccdbaa6.556ac958.cf0 res2=00000001 errno=0
func=rred op1=6b784776.f8ef2093 result=3cc09be5.dcb11b83.cec res2=00000003 errno=0
func=rred op1=6b7bde91.456153d4 result=bca71d74.31d2338e.dd8 res2=00000001 errno=0
func=rred op1=6b873979.0f267086 result=bcb34336.2984804c.634 res2=00000003 errno=0
func=rred op1=6b8cec8f.2f2a03e1 result=3ccf4aac.b53b5d66.607 res2=00000001 errno=0
func=rred op1=6b9041d4.bdce1b91 result=bcbaf7b2.3a1fe6d1.57b res2=00000001 errno=0
func=rred op1=6b9f3f1b.4a477588 result=3cde541d.3327f095.c1e res2=00000001 errno=0
func=rred op1=6ba0e41b.d6787c5e result=bceca5e7.b6a3ebb3.8cd res2=00000003 errno=0
func=rred op1=6bafe162.62f1d655 result=3cd0d844.1617fd2d.161 res2=00000003 errno=0
func=rred op1=6bb8119b.905ff8f3 result=3caae357.c8404e23.519 res2=00000001 errno=0
func=rred op1=6bba6427.ab7d6a9a result=bc7f74c3.d16a5f84.030 res2=00000001 errno=0
func=rred op1=6bc1d72c.0bf9989b result=bccfcd96.60f8ed0f.f21 res2=00000001 errno=0
func=rred op1=6bce4c0b.14c6594b result=3cdd5877.149c9d99.a1d res2=00000003 errno=0
func=rred op1=6bd4f463.ce2cc8c7 result=bcc25bea.7cd8c5fe.494 res2=00000003 errno=0
func=rred op1=6bdfd3eb.88ce0c6d result=3cb4fd73.10fc5c3a.910 res2=00000001 errno=0
func=rred op1=6be1133b.d1f5bf0a result=bcc45336.b9ef6bf6.897 res2=00000001 errno=0
func=rred op1=6be682ff.af4660dd result=3cb10eda.96cf104a.10a res2=00000003 errno=0
func=rred op1=6bf1da89.c2828b15 result=3ca26353.44e8f0d2.1fd res2=00000003 errno=0
func=rred op1=6bff0c9d.98414062 result=bc9a22e1.1902dd63.c65 res2=00000003 errno=0
func=rred op1=6c042ec4.b8e475f9 result=3cc5a7af.68094c7e.98a res2=00000001 errno=0
func=rred op1=6c0cb862.a1df557e result=bcc2febe.0bd58b6e.7a4 res2=00000003 errno=0
func=rred op1=6c10b06c.475195a3 result=3ca7b535.fd5072f2.5c7 res2=00000001 errno=0
func=rred op1=6c1de280.1d104af0 result=bcc98776.521642c7.6be res2=00000001 errno=0
func=rred op1=6c201b5d.89b91aea result=bc736d58.dd93538b.4ec res2=00000003 errno=0
func=rred op1=6c21457b.04ea105c result=3cc850a0.c43d0d8e.b6f res2=00000001 errno=0
func=rred op1=6c38290c.4e95a85f result=bc8d2405.4c5cfd50.f62 res2=00000001 errno=0
func=rred op1=6c38be1b.0c2e2318 result=3cc719cb.3663d856.020 res2=00000003 errno=0
func=rred op1=6c43d7ad.8d5b2448 result=bccbf521.6dc8ad38.d5b res2=00000001 errno=0
func=rred op1=6c4c7a6b.0fd02c76 result=3cc4ac20.1ab16de4.983 res2=00000003 errno=0
func=rred op1=6c51f985.8b8a1f99 result=bcce62cc.897b17aa.3f9 res2=00000001 errno=0
func=rred op1=6c5e5893.11a13125 result=3cbfa193.c6993203.890 res2=00000003 errno=0
func=rred op1=6c651148.ed0fe3fc result=bcd2d5e6.ee492b7f.3e9 res2=00000001 errno=0
func=rred op1=6c6b40cf.b01b6cc2 result=3cb10f91.206ab35b.0df res2=00000003 errno=0
func=rred op1=6c75ae16.9cea43d6 result=bc82ee3d.e9450182.066 res2=00000003 errno=0
func=rred op1=6c78c5d9.fe700839 result=3cd68259.4719b049.f1d res2=00000001 errno=0
func=rred op1=6c82e4ba.1351af60 result=bcc49c3c.bc27a3a3.6f2 res2=00000003 errno=0
func=rred op1=6c887773.2682d84c result=3cbfc15a.83acc685.db1 res2=00000001 errno=0
func=rred op1=6c944968.581df99b result=bcc6fa04.795043d3.aff res2=00000001 errno=0
func=rred op1=6c9712c4.e1b68e11 result=3cbb05cb.095b8625.598 res2=00000003 errno=0
func=rred op1=6caa6745.21beafae result=bcce135b.b0ca2464.725 res2=00000003 errno=0
func=rred op1=6cabcbf3.668af9e9 result=3ca9a639.34cf8a07.a97 res2=00000001 errno=0
func=rred op1=6cb3517f.5a800dea result=3c8adfed.2e2a2216.8c7 res2=00000001 errno=0
func=rred op1=6cbe288a.a8f52fd5 result=bcaf2480.86ff7a7e.69a res2=00000001 errno=0
func=rred op1=6cc47fca.fbb528e0 result=bcc1403f.16625f60.9d9 res2=00000001 errno=0
func=rred op1=6cccfa3f.07c014df result=3ca427f1.e29f9990.e95 res2=00000003 errno=0
func=rred op1=6cd2ba59.89e5806f result=3ccb5438.07b22c29.124 res2=00000001 errno=0
func=rred op1=6cdd9164.d85aa25a result=bcb51087.95afadb5.f4f res2=00000001 errno=0
func=rred op1=6ce7da4c.48d2caa7 result=3cd2b418.7c80fc78.c37 res2=00000003 errno=0
func=rred op1=6ce87172.196d5822 result=bc9e8243.fa6a72aa.bac res2=00000001 errno=0
func=rred op1=6cf5e178.b9f6b306 result=3cb33f5c.2f8f856b.ddc res2=00000001 errno=0
func=rred op1=6cfb016b.78e3fd3e result=bcc8e0d0.14fcfc0b.4c4 res2=00000003 errno=0
func=rred op1=6d072975.69b20594 result=3c8ff1d1.92d260b4.032 res2=00000003 errno=0
func=rred op1=6d09b96e.c928aab0 result=bcd040b0.89cbcc5a.fd8 res2=00000001 errno=0
func=rred op1=6d168577.11d45c4d result=3cc53e79.48bcab77.1df res2=00000001 errno=0
func=rred op1=6d17cd73.c18faedb result=bcba8409.c8102694.3a6 res2=00000003 errno=0
func=rred op1=6d215f18.0f45842f result=3ca7f55d.2e1dc887.026 res2=00000001 errno=0
func=rred op1=6d2d97d1.1bfc3040 result=bcc884ec.aee30088.fa3 res2=00000001 errno=0
func=rred op1=6d33f247.908cf03e result=3cd83d24.ee806487.fe4 res2=00000003 errno=0
func=rred op1=6d3a60a3.42d71aea result=bcc08878.4a2e685b.f96 res2=00000001 errno=0
func=rred op1=6d48c50c.5644903f result=bc71f1f0.18a7003e.f92 res2=00000001 errno=0
func=rred op1=6d4e8f69.b0b111a4 result=3cadb393.8fbd80ac.240 res2=00000001 errno=0
func=rred op1=6d551212.32c50a37 result=3cc765cd.ad589085.0a9 res2=00000001 errno=0
func=rred op1=6d5c7806.79c41647 result=bcc9a40b.b06d708c.e9c res2=00000003 errno=0
func=rred op1=6d612131.ea184bd6 result=bcb35645.ce088065.d05 res2=00000003 errno=0
func=rred op1=6d66eb8f.4484cd3b result=3cc646ae.abce2081.1b0 res2=00000003 errno=0
func=rred op1=6d703473.61386a54 result=3ca4ba9b.836a008c.a77 res2=00000001 errno=0
func=rred op1=6d79b1ca.df2471c1 result=bccd0168.b50cc098.b87 res2=00000001 errno=0
func=rred op1=6d80aad2.a5a85b15 result=bcbc4f3d.da5c0085.4ce res2=00000003 errno=0
func=rred op1=6d884ead.11d49f7e result=3cbf17e9.451f00d2.fb3 res2=00000003 errno=0
func=rred op1=6d944190.398684e9 result=3cc9e942.644480af.d15 res2=00000001 errno=0
func=rred op1=6d9cd229.2e92aad4 result=bcb98692.6f990037.9e9 res2=00000001 errno=0
func=rred op1=6da27631.6f976fff result=bc932fdb.b0bbfeab.dc6 res2=00000003 errno=0
func=rred op1=6da6834e.47e58a94 result=3cafdd49.2e7601c3.60b res2=00000001 errno=0
func=rred op1=6db9aabb.bb3c1ab4 result=bcc18f40.23fb7fc6.c66 res2=00000003 errno=0
func=rred op1=6dbdb7d8.938a3549 result=3c995ada.fb74062f.08b res2=00000003 errno=0
func=rred op1=6dc0e27a.b5ec27ef result=3cc7e5f6.e2d88152.888 res2=00000003 errno=0
func=rred op1=6dc81705.0190d2a4 result=bc8a09b8.cc07ee51.601 res2=00000001 errno=0
func=rred op1=6dd1ac56.12c1cbf7 result=3cbc9c12.14f503f9.34b res2=00000003 errno=0
func=rred op1=6dde81b3.f05fd951 result=bcc4d077.3d7c7d90.f26 res2=00000001 errno=0
func=rred op1=6de21143.c12c9dfb result=bca3874a.9905f2bd.081 res2=00000003 errno=0
func=rred op1=6de7b217.532600a0 result=3ccafb76.88348514.1eb res2=00000003 errno=0
func=rred op1=6df243ba.986206fd result=bcd5a0c5.03dcbd03.7d6 res2=00000003 errno=0
func=rred op1=6dfdea4f.6abf9e4b result=3cc137d1.3bb18bb5.9aa res2=00000001 errno=0
func=rred op1=6e022a7f.2cc7527c result=bcda8297.aa1e39b2.bf6 res2=00000001 errno=0
func=rred op1=6e0e038a.d65a52cc result=3c7e37b7.8592d857.d3b res2=00000003 errno=0
func=rred op1=6e150786.ab915e0f result=bcb8263d.53aec0cb.e2e res2=00000003 errno=0
func=rred op1=6e1af40c.805ade37 result=3cd4f1e7.3348d4e1.260 res2=00000001 errno=0
func=rred op1=6e2682a8.20c3be19 result=3c96a9c9.a42e2241.dec res2=00000001 errno=0
func=rred op1=6e2c8869.6127f2c2 result=bcc7347f.97822a09.244 res2=00000001 errno=0
func=rred op1=6e374038.db5cee1e result=3cd052f4.78a006d2.4b3 res2=00000001 errno=0
func=rred op1=6e3d45fa.1bc122c7 result=bcc36d88.a6cfcefe.29c res2=00000001 errno=0
func=rred op1=6e4320ff.23450bc2 result=3cd2366f.f0f93457.c87 res2=00000001 errno=0
func=rred op1=6e49e451.1e427070 result=bcbb862c.7b888cdb.643 res2=00000003 errno=0
func=rred op1=6e54730b.44b7cceb result=bca8d4a1.717e415e.f49 res2=00000003 errno=0
func=rred op1=6e5bf3ed.fa4e619e result=3c858c58.50525be3.7c8 res2=00000003 errno=0
func=rred op1=6e657ad9.b2bdc582 result=3cc074a1.47ce91ea.21a res2=00000003 errno=0
func=rred op1=6e6aec1f.8c486907 result=bcca2d66.f683671d.2c6 res2=00000001 errno=0
func=rred op1=6e78b763.d6861390 result=3cc3262c.51d8dd66.913 res2=00000001 errno=0
func=rred op1=6e7f3078.1e16afac result=bcb0c000.535f5ee9.a5e res2=00000003 errno=0
|
322398d41d1c99ef089c62025b7b357d80a2a266 | 8a3446e086bbb6afa038ee746f941996286b32c6 | /Tests/LFRT_LF1.tst | c2596715585463e85f3564aee57f285bd740d119 | [] | no_license | FREA-ENT/svp_UL1741SA | ec5c7fa9a8a2f27b72ba6cea2960699613e10743 | 5d22145fcae26c33fcd62218ff185f6ed0a1bc34 | refs/heads/master | 2020-03-27T21:36:40.461101 | 2018-09-05T07:58:29 | 2018-09-05T07:58:29 | 147,161,108 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,759 | tst | LFRT_LF1.tst | <scriptConfig name="LFRT_LF1" script="SA10_freq_ride_through">
<params>
<param name="gridsim.frea.phases" type="int">1</param>
<param name="eut.t_msa" type="float">1.0</param>
<param name="eut.freq_msa" type="float">2.0</param>
<param name="frt.n_r" type="int">5</param>
<param name="eut.frt_t_dwell" type="int">5</param>
<param name="frt.freq_test" type="float">57.0</param>
<param name="eut.freq_nom" type="float">60.0</param>
<param name="frt.freq_grid_max" type="float">60.0</param>
<param name="frt.freq_grid_min" type="float">60.0</param>
<param name="eut.v_nom" type="int">190</param>
<param name="frt.t_hold" type="float">299.0</param>
<param name="gridsim.frea.ip_port" type="int">2001</param>
<param name="eut.p_rated" type="int">40000</param>
<param name="gridsim.frea.ip_addr" type="string">127.0.0.1</param>
<param name="aist.script_version" type="string">2.0.0</param>
<param name="aist.library_version" type="string">2.1.0</param>
<param name="der.mode" type="string">Disabled</param>
<param name="hil.mode" type="string">Disabled</param>
<param name="loadsim.mode" type="string">Disabled</param>
<param name="frt.p_100" type="string">Enabled</param>
<param name="frt.p_20" type="string">Enabled</param>
<param name="gridsim.auto_config" type="string">Enabled</param>
<param name="gridsim.mode" type="string">FREA_AC_Simulator</param>
<param name="das_das_wf.mode" type="string">Manual</param>
<param name="das_das_rms.mode" type="string">Manual</param>
<param name="gridsim.frea.comm" type="string">TCP/IP</param>
<param name="frt.test_label" type="string">lfrt_lf1</param>
</params>
</scriptConfig>
|
9317ca4be8de6c30ac70f86888e83c0be19fd249 | b9c6de66a61d6f9a57edaa44baf92266ccbab3db | /macros/distfun_trnd.sci | 529873be88e014f73a50b62a7e25239865f7f83d | [] | no_license | papriwalprateek/distfun-scilab | 81b3edef0af1d1908e05472dfb15b0a55f61571d | 82fd34521d1e6ebb6513773264b54a0d48f5f3f9 | refs/heads/master | 2016-09-03T07:08:47.605240 | 2013-10-13T05:53:43 | 2013-10-13T05:53:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,342 | sci | distfun_trnd.sci | // Copyright (C) 2012 - Prateek Papriwal
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
function R = distfun_trnd(varargin)
path = distfun_getpath()
internallib = lib(fullfile(path,"macros","internals"))
[lhs,rhs] = argn()
apifun_checkrhs("distfun_trnd",rhs,1:3)
apifun_checklhs("distfun_trnd",lhs,0:1)
v = varargin(1)
//
// Check type
apifun_checktype("distfun_trnd",v,"v",1,"constant")
// Check content
apifun_checkgreq("distfun_trnd",v,"v",1,1)
apifun_checkflint("distfun_trnd",v,"v",1)
if ( rhs == 2 ) then
v = varargin(2)
end
if ( rhs == 3 ) then
m = varargin(2)
n = varargin(3)
end
//
// Check v,m,n
distfun_checkvmn ( "distfun_trnd" , 2 , varargin(2:$) )
[v] = apifun_expandfromsize ( 1 , varargin(1:$) )
if(v == []) then
R = []
return
end
m = size(v,"r")
n = size(v,"c")
u = distfun_unifrnd(0,1,m,n)
R = distfun_tinv(u,v)
endfunction |
672a7c345ffa97c79f375c4c51fa905816efbe72 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3828/CH5/EX5.1/Ex5_1.sce | fce2789f8d218572eb63dacca4b88fde0a2d406a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 399 | sce | Ex5_1.sce | //Chapter 5 : Fibre Optics
clear;
//Variable declaration
n1=1.5 //core refractive index
n2=1.47 //clad refractive index
//Calculations
thetac=asin(n2/n1)
NA=(n1**2-n2**2)**0.5
im=asin(NA)
im=im*180/%pi
thetac=thetac*180/%pi
//Result
mprintf("Critical angle= %f degrees",thetac)
mprintf("\nNumerical aperture= %f",NA)
mprintf("\nAcceptance angle= %f degrees",im)
|
6ec94a0a3e3c24ecd69d3a7518fe0b4e20571fc1 | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/poly2ac/poly2ac7.sce | 0ac1ed7eeebaea7030245d4ffdace116de97786a | [] | 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 | 247 | sce | poly2ac7.sce | //no i/p args are passed to the function
r=poly2ac();
disp(r);
//output
// !--error 10000
//Input arguments must be numeric.
//at line 31 of function rlevinson called by :
//at line 41 of function poly2ac called by :
//r=poly2ac();
|
897212fe38e9b73bb29f388d3bf8c41bff19c668 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH11/EX11.5/example11_5.sce | 0e6e98c672f3c0b57e1589238f5060c7e46ec8aa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 695 | sce | example11_5.sce | clc
// Given that
x = 100 // in meter
y = 10 // in meter
z = 5 // in meter
t = 1e-4 // in sec
// coordinates of point in frame F
v = 2.7e8 // velocity of frame F_ w.r.t. frame F in m/sed
c=3e8 // speed of light in m/sec
// Sample Problem 5 on page no. 11.19
printf("\n # PROBLEM 5 # \n")
// according to Galilean transformation
x__ = x-v*t
y__=y
z__=z
t__=t
// according to Lorentz transformation
x_ = (x-v*t)/sqrt(1-(v/c)^2)
y_=y
z_=z
t_=(t-(v*x/c^2))/sqrt(1-(v/c)^2)
printf("\n Coordinate of the event in reference frame F_ using (a)Galilean transformation-x=%f m, y=%f m, z = %f m, t = %e sec. \n (b)Lorentz transformation-x=%f m,y =%f m, z = %f m, t=%e sec. ",x__,y__,z__,t__,x_,y_,z_,t_)
|
3e19044e6118af2153b6a94029432046d1b8a094 | e0124ace5e8cdd9581e74c4e29f58b56f7f97611 | /3913/CH8/EX8.3/Ex8_3.sce | 750f2c6ada61e4519e31330ac7a0305a46e960db | [] | no_license | psinalkar1988/Scilab-TBC-Uploads-1 | 159b750ddf97aad1119598b124c8ea6508966e40 | ae4c2ff8cbc3acc5033a9904425bc362472e09a3 | refs/heads/master | 2021-09-25T22:44:08.781062 | 2018-10-26T06:57:45 | 2018-10-26T06:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 573 | sce | Ex8_3.sce | //Chapter 8 : Determinants
//Example 8.7
//Scilab 6.0.1
//Windows 10
clear;
clc;
A=[1 1 -1;2 1 3;1 -5 1];
disp(A,'A=')
detA=det(A)
disp(detA,'det A=')
detA=1*det([1 3;-5 1])-1*det([2 3;1 1])-1*det([2 1;1 -5])
mprintf('\nUsing a Laplace expansion along first row, det A=')
disp(detA,'det A=')
detA=-2*det([1 -1;-5 1])+1*det([1 -1;1 1])-3*det([1 1;1 -5])
mprintf('\nexpanding along second row, det A=')
disp(detA,'det A=')
detA=1*det([1 -1;1 3])-(-5)*det([1 -1;2 3])+1*det([1 1;2 1])
mprintf('\nexpanding along second row, det A=')
disp(detA,'det A=')
|
7ba57fbcd841cdec498117e914b2f22a85ed17d1 | 66106821c3fd692db68c20ab2934f0ce400c0890 | /test/disassembler/brge.instr.tst | 8ef2d73b073afe83f6c73ae0b65af1d0fe933829 | [] | no_license | aurelf/avrora | 491023f63005b5b61e0a0d088b2f07e152f3a154 | c270f2598c4a340981ac4a53e7bd6813e6384546 | refs/heads/master | 2021-01-19T05:39:01.927906 | 2008-01-27T22:03:56 | 2008-01-27T22:03:56 | 4,779,104 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,670 | tst | brge.instr.tst | ; @Harness: disassembler
; @Result: PASS
section .text size=0x00000100 vma=0x00000000 lma=0x00000000 offset=0x00000034 ;2**0
section .data size=0x00000000 vma=0x00000000 lma=0x00000000 offset=0x00000134 ;2**0
start .text:
label 0x00000000 ".text":
0x0: 0xfc 0xf5 brge .+126 ; 0x80
0x2: 0xf4 0xf5 brge .+124 ; 0x80
0x4: 0xec 0xf5 brge .+122 ; 0x80
0x6: 0xe4 0xf5 brge .+120 ; 0x80
0x8: 0xdc 0xf5 brge .+118 ; 0x80
0xa: 0xd4 0xf5 brge .+116 ; 0x80
0xc: 0xcc 0xf5 brge .+114 ; 0x80
0xe: 0xc4 0xf5 brge .+112 ; 0x80
0x10: 0xbc 0xf5 brge .+110 ; 0x80
0x12: 0xb4 0xf5 brge .+108 ; 0x80
0x14: 0xac 0xf5 brge .+106 ; 0x80
0x16: 0xa4 0xf5 brge .+104 ; 0x80
0x18: 0x9c 0xf5 brge .+102 ; 0x80
0x1a: 0x94 0xf5 brge .+100 ; 0x80
0x1c: 0x8c 0xf5 brge .+98 ; 0x80
0x1e: 0x84 0xf5 brge .+96 ; 0x80
0x20: 0x7c 0xf5 brge .+94 ; 0x80
0x22: 0x74 0xf5 brge .+92 ; 0x80
0x24: 0x6c 0xf5 brge .+90 ; 0x80
0x26: 0x64 0xf5 brge .+88 ; 0x80
0x28: 0x5c 0xf5 brge .+86 ; 0x80
0x2a: 0x54 0xf5 brge .+84 ; 0x80
0x2c: 0x4c 0xf5 brge .+82 ; 0x80
0x2e: 0x44 0xf5 brge .+80 ; 0x80
0x30: 0x3c 0xf5 brge .+78 ; 0x80
0x32: 0x34 0xf5 brge .+76 ; 0x80
0x34: 0x2c 0xf5 brge .+74 ; 0x80
0x36: 0x24 0xf5 brge .+72 ; 0x80
0x38: 0x1c 0xf5 brge .+70 ; 0x80
0x3a: 0x14 0xf5 brge .+68 ; 0x80
0x3c: 0x0c 0xf5 brge .+66 ; 0x80
0x3e: 0x04 0xf5 brge .+64 ; 0x80
0x40: 0xfc 0xf4 brge .+62 ; 0x80
0x42: 0xf4 0xf4 brge .+60 ; 0x80
0x44: 0xec 0xf4 brge .+58 ; 0x80
0x46: 0xe4 0xf4 brge .+56 ; 0x80
0x48: 0xdc 0xf4 brge .+54 ; 0x80
0x4a: 0xd4 0xf4 brge .+52 ; 0x80
0x4c: 0xcc 0xf4 brge .+50 ; 0x80
0x4e: 0xc4 0xf4 brge .+48 ; 0x80
0x50: 0xbc 0xf4 brge .+46 ; 0x80
0x52: 0xb4 0xf4 brge .+44 ; 0x80
0x54: 0xac 0xf4 brge .+42 ; 0x80
0x56: 0xa4 0xf4 brge .+40 ; 0x80
0x58: 0x9c 0xf4 brge .+38 ; 0x80
0x5a: 0x94 0xf4 brge .+36 ; 0x80
0x5c: 0x8c 0xf4 brge .+34 ; 0x80
0x5e: 0x84 0xf4 brge .+32 ; 0x80
0x60: 0x7c 0xf4 brge .+30 ; 0x80
0x62: 0x74 0xf4 brge .+28 ; 0x80
0x64: 0x6c 0xf4 brge .+26 ; 0x80
0x66: 0x64 0xf4 brge .+24 ; 0x80
0x68: 0x5c 0xf4 brge .+22 ; 0x80
0x6a: 0x54 0xf4 brge .+20 ; 0x80
0x6c: 0x4c 0xf4 brge .+18 ; 0x80
0x6e: 0x44 0xf4 brge .+16 ; 0x80
0x70: 0x3c 0xf4 brge .+14 ; 0x80
0x72: 0x34 0xf4 brge .+12 ; 0x80
0x74: 0x2c 0xf4 brge .+10 ; 0x80
0x76: 0x24 0xf4 brge .+8 ; 0x80
0x78: 0x1c 0xf4 brge .+6 ; 0x80
0x7a: 0x14 0xf4 brge .+4 ; 0x80
0x7c: 0x0c 0xf4 brge .+2 ; 0x80
0x7e: 0x04 0xf4 brge .+0 ; 0x80
0x80: 0xfc 0xf7 brge .-2 ; 0x80
0x82: 0xf4 0xf7 brge .-4 ; 0x80
0x84: 0xec 0xf7 brge .-6 ; 0x80
0x86: 0xe4 0xf7 brge .-8 ; 0x80
0x88: 0xdc 0xf7 brge .-10 ; 0x80
0x8a: 0xd4 0xf7 brge .-12 ; 0x80
0x8c: 0xcc 0xf7 brge .-14 ; 0x80
0x8e: 0xc4 0xf7 brge .-16 ; 0x80
0x90: 0xbc 0xf7 brge .-18 ; 0x80
0x92: 0xb4 0xf7 brge .-20 ; 0x80
0x94: 0xac 0xf7 brge .-22 ; 0x80
0x96: 0xa4 0xf7 brge .-24 ; 0x80
0x98: 0x9c 0xf7 brge .-26 ; 0x80
0x9a: 0x94 0xf7 brge .-28 ; 0x80
0x9c: 0x8c 0xf7 brge .-30 ; 0x80
0x9e: 0x84 0xf7 brge .-32 ; 0x80
0xa0: 0x7c 0xf7 brge .-34 ; 0x80
0xa2: 0x74 0xf7 brge .-36 ; 0x80
0xa4: 0x6c 0xf7 brge .-38 ; 0x80
0xa6: 0x64 0xf7 brge .-40 ; 0x80
0xa8: 0x5c 0xf7 brge .-42 ; 0x80
0xaa: 0x54 0xf7 brge .-44 ; 0x80
0xac: 0x4c 0xf7 brge .-46 ; 0x80
0xae: 0x44 0xf7 brge .-48 ; 0x80
0xb0: 0x3c 0xf7 brge .-50 ; 0x80
0xb2: 0x34 0xf7 brge .-52 ; 0x80
0xb4: 0x2c 0xf7 brge .-54 ; 0x80
0xb6: 0x24 0xf7 brge .-56 ; 0x80
0xb8: 0x1c 0xf7 brge .-58 ; 0x80
0xba: 0x14 0xf7 brge .-60 ; 0x80
0xbc: 0x0c 0xf7 brge .-62 ; 0x80
0xbe: 0x04 0xf7 brge .-64 ; 0x80
0xc0: 0xfc 0xf6 brge .-66 ; 0x80
0xc2: 0xf4 0xf6 brge .-68 ; 0x80
0xc4: 0xec 0xf6 brge .-70 ; 0x80
0xc6: 0xe4 0xf6 brge .-72 ; 0x80
0xc8: 0xdc 0xf6 brge .-74 ; 0x80
0xca: 0xd4 0xf6 brge .-76 ; 0x80
0xcc: 0xcc 0xf6 brge .-78 ; 0x80
0xce: 0xc4 0xf6 brge .-80 ; 0x80
0xd0: 0xbc 0xf6 brge .-82 ; 0x80
0xd2: 0xb4 0xf6 brge .-84 ; 0x80
0xd4: 0xac 0xf6 brge .-86 ; 0x80
0xd6: 0xa4 0xf6 brge .-88 ; 0x80
0xd8: 0x9c 0xf6 brge .-90 ; 0x80
0xda: 0x94 0xf6 brge .-92 ; 0x80
0xdc: 0x8c 0xf6 brge .-94 ; 0x80
0xde: 0x84 0xf6 brge .-96 ; 0x80
0xe0: 0x7c 0xf6 brge .-98 ; 0x80
0xe2: 0x74 0xf6 brge .-100 ; 0x80
0xe4: 0x6c 0xf6 brge .-102 ; 0x80
0xe6: 0x64 0xf6 brge .-104 ; 0x80
0xe8: 0x5c 0xf6 brge .-106 ; 0x80
0xea: 0x54 0xf6 brge .-108 ; 0x80
0xec: 0x4c 0xf6 brge .-110 ; 0x80
0xee: 0x44 0xf6 brge .-112 ; 0x80
0xf0: 0x3c 0xf6 brge .-114 ; 0x80
0xf2: 0x34 0xf6 brge .-116 ; 0x80
0xf4: 0x2c 0xf6 brge .-118 ; 0x80
0xf6: 0x24 0xf6 brge .-120 ; 0x80
0xf8: 0x1c 0xf6 brge .-122 ; 0x80
0xfa: 0x14 0xf6 brge .-124 ; 0x80
0xfc: 0x0c 0xf6 brge .-126 ; 0x80
0xfe: 0x04 0xf6 brge .-128 ; 0x80
start .data:
|
d593d06af86867b38c90aef164c57c3a1111b6e8 | 0a4a624c2aa1241962ca0adf212284d4fbf653ec | /1st/1-1.sce | a190ad5068647237189424503dc8740cac38823e | [] | no_license | zy414563492/Advanced-Course-in-Computational-Algorithms | 719a469c4b4f0aede9d89378408672d9ac712df5 | d6f5a089883b415ecd93b18bee81aac9bec69577 | refs/heads/master | 2020-08-29T07:13:39.251114 | 2019-12-17T16:11:40 | 2019-12-17T16:11:40 | 217,963,283 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 459 | sce | 1-1.sce | clear
nrows = 1000
ncols = 1000
density = 0.005
A =sprand(nrows, ncols, density)
nnzs = nnz(A)
[ij,val]=spget(A)
col_ind = ij(:, 2)
row_ind = ij(:, 1)
row_ptr = []
cur_ind = 0
for k = 1:nnzs
if cur_ind <> row_ind(k) then
for i = 1:row_ind(k)-cur_ind
row_ptr = [row_ptr k]
end
cur_ind = row_ind(k)
end
end
for i = 1:nrows-nnz(row_ptr)+1
row_ptr($+1) = nnzs+1
end
//disp(val)
//disp(col_ind)
//disp(row_ptr)
|
519237b409dce2ef481eba11f9f155c7efb8020c | 449d555969bfd7befe906877abab098c6e63a0e8 | /281/CH2/EX2.5/example2_5.sce | 2f4d5bc109572fefee71f14bba5fd3b99014fc76 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 243 | sce | example2_5.sce | disp('chapter 2 ex2.5')
disp('given')
disp("from 741 datasheet")
disp("Zo=75ohm")
disp("Mmax=200000")
Zo=75
Mmax=200000
disp("For an voltage follower beta=1")
b=1
Zout=Zo/(1+Mmax*b)
disp("Typical output impedence")
disp('ohms',Zout) |
789bdf795c5a556413b1437780dcf7e593ba93e4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1752/CH3/EX3.10/exa3_10.sce | 814df94bab8c8a0fef7235af10153d3a19bec07b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 585 | sce | exa3_10.sce | //Exa 3.10
clc;
clear;
close;
//given data
L=0.12;// in meter
t=.15*10^-2;// thickness in m
K=55.5;// in W/mK
h=23.5;// in W/mK
T_L=357;// in K
T_0=313;// in K
// Formula m=sqrt(h*rho/(K*A)) and rho=%pi*d and A=%pi*d*t, putting value of rho and A
m=sqrt(h/(K*t));
mL=m*L;
mL=floor(mL);
// Formula (T_L-T_infinite)/(T_0-T_infinite)= 1/cosh(m*L)
T_infinite=(T_L-T_0/cosh(mL))/(1-1/cosh(mL));
T_infinite=ceil(T_infinite);
measurement_error=T_infinite-T_L;
disp("Measurement Error is : "+string(measurement_error)+" K")
// Note: In the book, Unit of answer is wrong |
1c8d37c6ee5f26504842107608e0fbfcea12a87b | 9cb37875b74a713c93c09fa50ccc70ac0f71ecdb | /GS/SCENARIO/uncover_toy.sce | 61db6c09b580eca75aa513676917ba70c3518033 | [] | no_license | jmainpri/move3d-assets | a5b621daaedaaf8784fed0da1e80d029c83f3983 | 939db49d17a14e052bb58324b70e6112803d3105 | refs/heads/master | 2021-01-16T17:48:56.669119 | 2016-02-16T14:04:09 | 2016-02-16T14:04:09 | 20,237,987 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 12,294 | sce | uncover_toy.sce | #************************************************************
# Scenario of grande_salle
#
# date : Tue Jan 31 11:33:27 2012
#************************************************************
p3d_sel_desc_name P3D_ENV grande_salle
p3d_sel_desc_name P3D_ROBOT LOTR_TAPE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT WALLE_TAPE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT GREY_K7
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT GREY_TAPE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT ACHILE_HUMAN1
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.580000 -3.700000 1.006034 0.000000 0.000000 180.000000 0.000000 0.000000 0.000000 0.000000 -30.000000 0.000000 80.000000 0.000000 -20.000000 45.000000 0.000000 0.000000 0.000000 -80.000000 0.000000 20.000000 -45.000000 0.000000 0.000000 0.000000 0.000000 -13.299123 0.000000 29.404361 0.000000 -16.105237 0.000000 0.000000 -13.299123 0.000000 29.404361 0.000000 -16.105237 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT LOWTABLE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT CHAIR1
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT CHAIR2
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT TRASHBIN
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT SHELF
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT HRP2TABLE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.000000 -3.800000 0.100000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT SIMPLECHAIR
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT IKEA_SHELF
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT SURPRISE_BOX
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 3.790000 -4.100000 0.850000 0.000000 0.000000 90.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT TOYCUBE_WOOD
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 3.990000 -4.100000 0.850000 0.000000 0.000000 90.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT PLACEMAT_RED
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 3.800000 -3.750000 0.850000 0.000000 0.000000 1.550000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT PLACEMAT_BLUE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 3.900000 -4.100000 0.850000 0.000000 0.000000 1.550000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT PLACEMAT_GREEN
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.200000 -3.750000 0.850000 0.000000 0.000000 1.550000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT PLACEMAT_PURPLE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.100000 -3.900000 4.850000 0.000000 0.000000 1.550000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT SPACENAVBOX
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT PINK_TRASHBIN
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT PAPERDOG
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT VISBALL_INTERNAL
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT JIDO_GRIPPER
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_constraint p3d_lin_rel_dofs 1 3 1 2 2 1.000000 0.000000 0
p3d_sel_desc_name P3D_ROBOT VISBALL_MIGHTABILITY
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT SAHandRight2
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_constraint p3d_lin_rel_dofs 1 6 1 5 2 1.000000 0.000000 0
p3d_constraint p3d_lin_rel_dofs 1 10 1 9 2 1.000000 0.000000 0
p3d_constraint p3d_lin_rel_dofs 1 14 1 13 2 1.000000 0.000000 0
p3d_constraint p3d_lin_rel_dofs 1 18 1 17 2 1.000000 0.000000 0
p3d_sel_desc_name P3D_ROBOT DAGGER
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT JIDOKUKA_ROBOT
p3d_set_robot_steering_method Multi-Localpath
p3d_set_robot_radius 1.000000
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 3.000000 -3.700000 0.000000 0.000000 0.000000 0.000000 -30.000000 -30.000000 103.132400 20.345732 -1.100079 86.751537 5.397262 -35.683811 -11.791471 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_constraint p3d_lin_rel_dofs 1 14 1 13 2 1.000000 0.000000 0
p3d_constraint p3d_lwr_arm_ik 6 5 6 8 9 10 11 1 19 0 2 7 2
p3d_set_cntrt_Tatt 1 -0.438683 0.100912 0.892958 -0.246214 0.897586 0.001049 0.440839 -0.172975 0.043549 0.994895 -0.091037 0.029823
p3d_set_cntrt_Tatt2 1 -0.382683 -0.923879 0.000000 0.000000 0.923879 -0.382683 0.000000 0.000000 0.000000 0.000000 1.000000 -0.270000
p3d_set_object_base_and_arm_constraints 19 1 0 1 1
p3d_set_arm_data 1 0 19
p3d_set_camera_pos 3.000000 -3.500000 1.000000 4.000000 -0.700000 0.700000 0.000000 0.000000 1.000000 0.000000
|
1f1b61db302ad25ad40bc7a74f73ab49ec902137 | d963a50c09b7380dd7b1b97cd9997e9bd17ea8f3 | /r35/xmpl/roots.tst | 8d80d368a056927ee74e1ec38d63daaa81b4fd32 | [
"BSD-3-Clause"
] | permissive | reduce-algebra/reduce-historical | 8220e211b116e0e01ff1a38f51917cac9db6069f | e014152729c4d62bb1ce4f5c311a027042a5495a | refs/heads/master | 2023-04-10T22:54:00.796596 | 2021-04-16T08:52:19 | 2021-04-16T08:52:19 | 343,245,204 | 7 | 1 | NOASSERTION | 2021-04-16T08:53:31 | 2021-03-01T00:15:22 | TeX | UTF-8 | Scilab | false | false | 36,172 | tst | roots.tst | % Tests of the root finding package.
% Author: Stanley L. Kameny (stan%valley.uucp@rand.org)
comment This test file works only with Reduce version 3.5 and later
and contains examples all of which are solved by roots mod 1.94.
Answers are rounded to the value given by rootacc (default = 6)
unless higher accuracy is needed to separate roots. Format may differ
from that given here, but root order and values should agree exactly.
(Although the function ROOTS may obtain the roots in a diffferent
order, they are sorted into a standard order in mod 1.94.)
In the following, problems 20) and 82) are time consuming and
have been commented out to speed up the test.
The hard examples 111) through 115) almost double the test time
but are necessary to test some logical paths.
A new "hardest" example has been added as example 116). It is
commented out, since it is time consuming, but it is solved by roots
mod 1.94. The time needed to run the three commented-out examples is
almost exactly equal to the time for the rest of the test. Users of
fast computers can uncomment the lines marked with %**%. The three
examples by themselves are contained in the test file rootsxtr.tst.
When answers are produced which require precision increase for
printing out or input of roots, roots functions cause precision
increase to occur. If the precision is already higher than the
default value, a message is printed out warning of the the precision
normally needed for input of those values.$
roots x; % To load roots package.
write "This is Roots Package test ", symbolic roots!-mod$
% Simple root finding.
showtime;
% 1) multiple real and imaginary roots plus two real roots.
zz:= (x-3)**2*(100x**2+113)**2*(1000000x-10000111)*(x-1); roots zz;
%{x=1.06301*i,x=1.06301*i,x=-1.06301*i,x=-1.06301*i,
%x=3.0,x=3.0,x=1,x=10.0001} (rootacc caused rounding to 6 places)
% Accuracy is increased whenever necessary to separate distinct roots.
% 2) accuracy increase to 7 required for two roots.
zz:=(x**2+1)*(x-2)*(1000000x-2000001); roots zz;
%{x=i,x= -i,x=2.0,x=2.000001}
% 3) accuracy increase to 8 required.
zz:= (x-3)*(10000000x-30000001); roots zz;
%{x=3.0,x=3.0000001}
% 4) accuracy increase required here to separate repeated root from
% simple root.
zz := (x-3)*(1000000x-3000001)*(x-3)*(1000000x-3241234); roots zz;
%{x=3.0,x=3.0,x=3.000001,x=3.24123}
% other simple examples
% 5) five real roots with widely different spacing.
zz:= (x-1)*(10x-11)*(x-1000)*(x-1001)*(x-100000); roots zz;
%{x=1,x=1.1,x=1000.0,x=1001.0,x=1.0E+5}
% 6) a cluster of 5 roots in complex plane in vicinity of x=1.
zz:= (x-1)*(10000x**2-20000x+10001)*(10000x**2-20000x+9999); roots zz;
%{x=0.99,x=1,x=1 + 0.01*i,x=1 - 0.01*i,x=1.01}
% 7) four closely spaced real roots.
zz := (x-1)*(100x-101)*(100x-102)*(100x-103); roots zz;
%{x=1,x=1.01,x=1.02,x=1.03}
% 8) five closely spaced roots, 3 real + 1 complex pair.
zz := (x-1)*(100x-101)*(100x-102)*(100x**2-200x+101); roots zz;
%{x=1,x=1 + 0.1*i,x=1 - 0.1*i,x=1.01,x=1.02}
% 9) symmetric cluster of 5 roots, 3 real + 1 complex pair.
zz := (x-2)*(10000x**2-40000x+40001)*(10000x**2-40000x+39999); roots zz;
%{x=1.99,x=2.0,x=2.0 + 0.01*i,x=2.0 - 0.01*i,x=2.01}
% 10) closely spaced real and complex pair.
ss:= (x-2)*(100000000x**2-400000000x+400000001); roots ss;
%{x=2.0,x=2.0 + 0.0001*i,x=2.0 - 0.0001*i}
% 11) Zero roots and multiple roots cause no problem.
% Multiple roots are shown when the switch multiroot is on
%(normally on.)
zz:= x*(x-1)**2*(x-4)**3*(x**2+1); roots zz;
%{x=0,x=4.0,x=4.0,x=4.0,x=1,x=1,x=i,x= - i}
% 12) nearestroot will find a single root "near" a value, real or
% complex.
nearestroot(zz,2i);
%{x=i}
% More difficult examples.
% Three examples in which root scaling is needed in the complex
% iteration process.
% 13) nine roots, 3 real and 3 complex pairs.
zz:= x**9-45x-2; roots zz;
%{x= - 1.60371,x=-1.13237 + 1.13805*i,x=-1.13237 - 1.13805*i,
% x= - 0.0444444,x=0.00555357 + 1.60944*i,x=0.00555357 - 1.60944*i,
% x=1.14348 + 1.13804*i,x=1.14348 - 1.13804*i,x=1.61483}
comment In the next two examples, there are complex roots with
extremely small real parts (new capability in Mod 1.91.);
% 14) nine roots, 1 real and 4 complex pairs.
zz:= x**9-9999x**2-0.01; roots zz;
%{x=-3.3584 + 1.61732*i,x=-3.3584 - 1.61732*i,
% x=-0.829456 + 3.63408*i,x=-0.829456 - 3.63408*i,
% x=5.0025E-29 + 0.00100005*i,x=5.0025E-29 - 0.00100005*i,
% x=2.32408 + 2.91431*i,x=2.32408 - 2.91431*i,x=3.72754}
comment Rootacc 7 produces 7 place accuracy. Answers will print in
bigfloat format if floating point print >6 digits is not implemented.;
% 15) nine roots, 1 real and 4 complex pairs.
rootacc 7; zz:= x**9-500x**2-0.001; roots zz;
%{x=-2.189157 + 1.054242*i,x=-2.189157 - 1.054242*i,
% x=-0.5406772 + 2.368861*i,x=-0.5406772 - 2.368861*i,
% x=1.6E-26 + 0.001414214*i,x=1.6E-26 - 0.001414214*i,
% x=1.514944 + 1.899679*i,x=1.514944 - 1.899679*i,x=2.429781}
% the famous Wilkinson "ill-conditioned" polynomial and its family.
% 16) W(6) four real roots plus one complex pair.
zz:= 10000*(for j:=1:6 product(x+j))+27x**5; roots zz;
%{x= - 6.143833,x=-4.452438 + 0.02123455*i,x=-4.452438 - 0.02123455*i,
% x= - 2.950367,x= - 2.003647,x= - 0.9999775}
% 17) W(8) 4 real roots plus 2 complex pairs.
zz:= 1000*(for j:=1:8 product(x+j))+2x**7; roots zz;
%{x= - 8.437546,x=-6.494828 + 1.015417*i,x=-6.494828 - 1.015417*i,
% x=-4.295858 + 0.2815097*i,x=-4.295858 - 0.2815097*i,
% x= - 2.982725,x= - 2.000356,x= - 0.9999996}
% 18) W(10) 6 real roots plus 2 complex pairs.
zz:=1000*(for j:= 1:10 product (x+j))+x**9; roots zz;
%{x= - 10.80988,x=-8.70405 + 1.691061*i,x=-8.70405 - 1.691061*i,
% x=-6.046279 + 1.134321*i,x=-6.046279 - 1.134321*i,x= - 4.616444,
% x= - 4.075943,x= - 2.998063,x= - 2.000013,x= - 1}
% 19) W(12) 6 real roots plus 3 complex pairs.
zz:= 10000*(for j:=1:12 product(x+j))+4x**11; roots zz;
%{x= - 13.1895,x=-11.02192 + 2.23956*i,x=-11.02192 - 2.23956*i,
% x=-7.953917 + 1.948001*i,x=-7.953917 - 1.948001*i,
% x=-5.985629 + 0.8094247*i,x=-5.985629 - 0.8094247*i,
% x= - 4.880956,x= - 4.007117,x= - 2.999902,x= - 2.0,x= - 1}
% 20) W(20) 10 real roots plus 5 complex pairs. (The original problem)
% This example is commented out, since it takes significant time without
% being particularly difficult or checking out new paths:
%**% zz:= x**19+10**7*for j:=1:20 product (x+j); roots zz;
%{x= - 20.78881,x=-19.45964 + 1.874357*i,x=-19.45964 - 1.874357*i,
% x=-16.72504 + 2.731577*i,x=-16.72504 - 2.731577*i,
% x=-14.01105 + 2.449466*i,x=-14.01105 - 2.449466*i,
% x=-11.82101 + 1.598621*i,x=-11.82101 - 1.598621*i,
% x=-10.12155 + 0.6012977*i,x=-10.12155 - 0.6012977*i,
% x= - 8.928803,x= - 8.006075,x= - 6.999746,x= - 6.000006,
% x= - 5.0,x= - 4.0,x= - 3.0,x= - 2.0,x= - 1}
rootacc 6;
% 21) Finding one of a cluster of 8 roots.
zz:= (10**16*(x-1)**8-1); nearestroot(zz,2);
%{x=1.01}
% 22) Six real roots spaced 0.01 apart.
c := 100; zz:= (x-1)*for i:=1:5 product (c*x-(c+i)); roots zz;
%{x=1,x=1.01,x=1.02,x=1.03,x=1.04,x=1.05}
% 23) Six real roots spaced 0.001 apart.
c := 1000; zz:= (x-1)*for i:=1:5 product (c*x-(c+i)); roots zz;
%{x=1,x=1.001,x=1.002,x=1.003,x=1.004,x=1.005}
% 24) Five real roots spaced 0.0001 apart.
c := 10000; zz:= (x-1)*for i:=1:4 product (c*x-(c+i)); roots zz;
%{x=1,x=1.0001,x=1.0002,x=1.0003,x=1.0004}
% 25) A cluster of 9 roots, 5 real, 2 complex pairs; spacing 0.1.
zz:= (x-1)*(10**8*(x-1)**8-1); roots zz;
%{x=0.9,x=0.929289 + 0.0707107*i,x=0.929289 - 0.0707107*i,
% x=1,x=1 + 0.1*i,x=1 - 0.1*i,
% x=1.07071 + 0.0707107*i,x=1.07071 - 0.0707107*i,x=1.1}
% 26) Same, but with spacing 0.01.
zz:= (x-1)*(10**16*(x-1)**8-1); roots zz;
%{x=0.99,x=0.992929 + 0.00707107*i,x=0.992929 - 0.00707107*i,
% x=1,x=1 + 0.01*i,x=1 - 0.01*i,
% x=1.00707 + 0.00707107*i,x=1.00707 - 0.00707107*i,x=1.01}
% 27) Spacing reduced to 0.001.
zz:= (x-1)*(10**24*(x-1)**8-1); roots zz;
%{x=0.999,x=0.999293 + 0.000707107*i,x=0.999293 - 0.000707107*i,
% x=1,x=1 + 0.001*i,x=1 - 0.001*i,
% x=1.00071 + 0.000707107*i,x=1.00071 - 0.000707107*i,x=1.001}
% 28) Eight roots divided into two clusters.
zz:= (10**8*(x-1)**4-1)*(10**8*(x+1)**4-1); roots zz;
%{x= - 0.99,x=0.99, x=-1 - 0.01*i,x=1 + 0.01*i,
% x=-1 + 0.01*i,x=1 - 0.01*i,x= - 1.01,x=1.01}
% 29) A cluster of 8 roots in a different configuration.
zz:= (10**8*(x-1)**4-1)*(10**8*(100x-102)**4-1); roots zz;
%{x=0.99,x=1 + 0.01*i,x=1 - 0.01*i,x=1.01,
% x=1.0199,x=1.02 + 0.0001*i,x=1.02 - 0.0001*i,x=1.0201}
% 30) A cluster of 8 complex roots.
zz:= ((10x-1)**4+1)*((10x+1)**4+1); roots zz;
%{x=-0.0292893 - 0.0707107*i,x=0.0292893 + 0.0707107*i,
% x=-0.0292893 + 0.0707107*i,x=0.0292893 - 0.0707107*i,
% x=-0.170711 - 0.0707107*i,x=0.170711 + 0.0707107*i,
% x=-0.170711 + 0.0707107*i,x=0.170711 - 0.0707107*i}
comment In these examples, accuracy increase is required to separate a
repeated root from a simple root.;
% 31) Using allroots;
zz:= (x-4)*(x-3)**2*(1000000x-3000001); roots zz;
%{x=3.0,x=3.0,x=3.000001,x=4.0}
% 32) Using realroots;
realroots zz;
%{x=3.0,x=3.0,x=3.000001,x=4.0}
comment Tests of new capabilities in mod 1.87 for handling complex
polynomials and polynomials with very small imaginary parts or very
small real roots. A few real examples are shown, just to demonstrate
that these still work.;
% 33) A trivial complex case (but degrees 1 and 2 are special cases);
zz:= x-i; roots zz;
%{x=i}
% 34) Real case.
zz:= y-7; roots zz;
%{y=7.0}
% 35) Roots with small imaginary parts (new capability);
zz := 10**16*(x**2-2x+1)+1; roots zz;
%{x=1 + 0.00000001*i,x=1 - 0.00000001*i}
% 36) One real, one complex root.
zz:=(x-9)*(x-5i-7); roots zz;
%{x=9.0,x=7.0 + 5.0*i}
% 37) Three real roots.
zz:= (x-1)*(x-2)*(x-3); roots zz;
%{x=1,x=2.0,x=3.0}
% 38) 2 real + 1 imaginary root.
zz:=(x**2-8)*(x-5i); roots zz;
%{x= - 2.82843,x=2.82843,x=5.0*i}
% 39) 2 complex roots.
zz:= (x-1-2i)*(x+2+3i); roots zz;
%{x=-2.0 - 3.0*i,x=1 + 2.0*i}
% 40) 2 irrational complex roots.
zz:= x**2+(3+2i)*x+7i; roots zz;
%{x=-3.14936 + 0.21259*i,x=0.149358 - 2.21259*i}
% 41) 2 complex roots of very different magnitudes with small imaginary
% parts.
zz:= x**2+(1000000000+12i)*x-1000000000; roots zz;
%{x=-1.0E+9 - 12.0*i,x=1 - 0.000000012*i}
% 42) Multiple real and complex roots cause no difficulty, provided
% that input is given in integer or rational form, (or if in decimal
% fraction format, with switch rounded off or adjprec on and
% coefficients input explicitly,) so that polynomial is stored exactly.
zz :=(x**2-2i*x+5)**3*(x-2i)*(x-11/10)**2; roots zz;
%{x=-1.44949*i, x=-1.44949*i, x=-1.44949*i,
% x=3.44949*i, x=3.44949*i, x=3.44949*i, x=1.1, x=1.1, x=2.0*i}
% 42a) would have failed in roots Mod 1.93 and previously (bug)
realroots zz;
%{x=1.1,x=1.1}
% 43) 2 real, 2 complex roots.
zz:= (x**2-4)*(x**2+3i*x+5i); roots zz;
%{x= - 2.0,x=2.0,x=-1.2714 + 0.466333*i,x=1.2714 - 3.46633*i}
% 44) 4 complex roots.
zz:= x**4+(0.000001i)*x-16; roots zz;
%{x=-2.0 - 0.0000000625*i,x=-2.0*i,x=2.0*i,x=2.0 - 0.0000000625*i}
% 45) 2 real, 2 complex roots.
zz:= (x**2-4)*(x**2+2i*x+8); roots zz;
%{x= - 2.0,x=2.0,x=-4.0*i,x=2.0*i}
% 46) Using realroots to find only real roots.
realroots zz;
%{x= - 2.0,x=2.0}
% 47) Same example, applying nearestroot to find a single root.
zz:= (x**2-4)*(x**2+2i*x+8); nearestroot(zz,1);
%{x=2.0}
% 48) Same example, but focusing on imaginary point.
nearestroot(zz,i);
%{x=2.0*i}
% 49) The seed parameter can be complex also.
nearestroot(zz,1+i);
%{x=2.0*i}
% 50) One more nearestroot example. Nearest root to real point may be
% complex.
zz:= (x**2-4)*(x**2-i); roots zz;
%{x= - 2.0,x=2.0,x=-0.707107 - 0.707107*i,x=0.707107 + 0.707107*i}
nearestroot (zz,1);
%{X=0.707107 + 0.707107*i}
% 51) 1 real root plus 5 complex roots.
zz:=(x**3-3i*x**2-5x+9)*(x**3-8); roots zz;
%{x=-1 + 1.73205*i,x=-1 - 1.73205*i,x=2.0,
% x=-2.41613 + 1.19385*i,x=0.981383 - 0.646597*i,x=1.43475 + 2.45274*i}
nearestroot(zz,1);
%{x=0.981383 - 0.646597*i}
% 52) roots can be computed to any accuracy desired, eg. (note that the
% imaginary part of the second root is truncated because of its size,
% and that the imaginary part of a complex root is never polished away,
% even if it is smaller than the accuracy would require.)
zz := x**3+10**(-20)*i*x**2+8; rootacc 12; roots zz; rootacc 6;
%{x=-2.0 - 3.33333333333E-21*i,x=1 - 1.73205080757*i,
% x=1 + 1.73205080757*i}
% 53) Precision of 12 required to find small imaginary root,
% but standard accuracy can be used.
zz := x**2+123456789i*x+1; roots zz;
%{x=-1.23457E+8*i,x=0.0000000081*i}
% 54) Small real root is found with root 10*18 times larger(new).
zz := (x+1)*(x**2+123456789*x+1); roots zz;
%{x= - 1.23457E+8,x= - 1,x= - 0.0000000081}
% 55) 2 complex, 3 real irrational roots.
ss := (45*x**2+(-10i+12)*x-10i)*(x**3-5x**2+1); roots ss;
%{x= - 0.429174,x=0.469832,x=4.95934,
% x=-0.448056 - 0.19486*i,x=0.18139 + 0.417083*i}
% 56) Complex polynomial with floating coefficients.
zz := x**2+1.2i*x+2.3i+6.7; roots zz;
%{x=-0.427317 + 2.09121*i,x=0.427317 - 3.29121*i}
% 56a) multiple roots will be found if coefficients read in exactly.
% Exact read-in will occur unless dmode is rounded or complex-rounded.
zz := x**3 + (1.09 - 2.4*i)*x**2 + (-1.44 - 2.616*i)*x + -1.5696;
roots zz;
%{x=1.2*i,x=1.2*i,x= - 1.09}
% 57) Realroots, isolater and rlrootno accept 1, 2 or 3 arguments: (new)
zz:= for j:=-1:3 product (x-j); rlrootno zz;
% 5
realroots zz;
%{x=0,x= -1,x=1,x=2.0,x=3.0}
rlrootno(zz,positive); %positive selects positive, excluding 0.
% 3
rlrootno(zz,negative); %negative selects negative, excluding 0.
% 1
realroots(zz,positive);
%{x=1,x=2.0,x=3.0}
rlrootno(zz,-1.5,2); %the format with 3 arguments selects a range.
% 4
realroots(zz,-1.5,2); %the range is inclusive, except that:
%{x=0,x= - 1,x=1,x=2.0}
% A specific limit b may be excluded by using exclude b. Also, the
% limits infinity and -infinity can be specified.
realroots(zz,exclude 0,infinity);
% equivalent to realroots(zz,positive).
%{x=1,x=2.0,x=3.0}
rlrootno(zz,-infinity,exclude 0); % equivalent to rlrootno(zz,negative).
% 1
rlrootno(zz,-infinity,0);
% 2
rlrootno(zz,infinity,-infinity);
%equivalent to rlrootno zz; (order of limits does not matter.)
% 5
realroots(zz,1,infinity); % finds all real roots >= 1.
%{x=1,x=2.0,x=3.0}
realroots(zz,1,positive); % finds all real roots > 1.
%{x=2.0,x=3.0}
% 57a) Bug corrected in mod 1.94. (handling of rational limits)
zz := (x-1/3)*(x-1/5)*(x-1/7)*(x-1/11);
realroots(zz,1/11,exclude(1/3));
%{x=0.0909091,x=0.142857,x=0.2}
realroots(zz,exclude(1/11),1/3);
%{x=0.142857,x=0.2,x=0.333333}
% New capabilities added in mod 1.88.
% 58) 3 complex roots, with two separated by very small real difference.
zz :=(x+i)*(x+10**8i)*(x+10**8i+1); roots zz;
%{x=-1 - 1.0E+8*i,x=-1.0E+8*i,x= - i}
% 59) Real polynomial with two complex roots separated by very small
% imaginary part.
zz:= (10**14x+123456789000000+i)*(10**14x+123456789000000-i); roots zz;
%{x=-1.23457 + 1.0E-14*i,x=-1.23457 - 1.0E-14*i}
% 60) Real polynomial with two roots extremely close together.
zz:= (x+2)*(10**10x+12345678901)*(10**10x+12345678900); roots zz;
%{x= - 2.0,x= - 1.2345678901,x= - 1.23456789}
% 61) Real polynomial with multiple root extremely close to simple root.
zz:= (x-12345678/10000000)*(x-12345679/10000000)**2; roots zz;
%{x=1.2345679,x=1.2345679,x=1.2345678}
% 62) Similar problem using realroots.
zz:=(x-2**30/10**8)**2*(x-(2**30+1)/10**8); realroots zz;
%{x=10.73741824,x=10.73741824,x=10.73741825}
% 63) Three complex roots with small real separation between two.
zz:= (x-i)*(x-1-10**8i)*(x-2-10**8i); roots zz;
%{x=i,x=1 + 1.0E+8*i,x=2.0 + 1.0E+8*i}
% 64) Use of nearestroot to isolate one of the close roots.
nearestroot(zz,10**8i+99/100);
%{x=1 + 1.0E+8*i}
% 65) Slightly more complicated example with close complex roots.
zz:= (x-i)*(10**8x-1234-10**12i)*(10**8x-1233-10**12i); roots zz;
%{x=i,x=0.00001233 + 10000.0*i,x=0.00001234 + 10000.0*i}
% 66) Four closely spaced real roots with varying spacings.
zz:= (x-1+1/10**7)*(x-1+1/10**8)*(x-1)*(x-1-1/10**7); roots zz;
%{x=0.9999999,x=0.99999999,x=1,x=1.0000001}
% 67) Complex pair plus two close real roots.
zz:= (x**2+1)*(x-12345678/10000000)*(x-12345679/10000000); roots zz;
%{x=i,x= - i,x=1.2345678,x=1.2345679}
% 68) Same problem using realroots to find only real roots.
realroots zz;
%{x=1.2345678,x=1.2345679}
% The switch ratroot causes output to be given in rational form.
% 69) Two complex roots with output in rational form.
on ratroot,complex; zz:=x**2-(5i+1)*x+1; sss:= roots zz;
% 346859 - 1863580*i 482657 + 2593180*i
%sss := {x=--------------------,x=--------------------}
% 10000000 500000
% With roots in rational form, mkpoly can be used to reconstruct a
% polynomial.
zz1 := mkpoly sss;
% 2
%zz1 := 5000000000000*x - (4999999500000 + 25000010000000*i)*x
%
% + 5000012308763 - 2110440*i
% Finding the roots of the new polynomial zz1.
rr:= roots zz1;
% 346859 - 1863580*i 482657 + 2593180*i
%rr := {x=--------------------,x=--------------------}
% 10000000 500000
% The roots are stable to the extent that rr=ss, although zz1 and
% zz may differ.
zz1 - zz;
% 2
%4999999999999*x - (4999999499999 + 25000009999995*i)*x
%
% + 5000012308762 - 2110440*i
% 70) Same type of problem in which roots are found exactly.
zz:=(x-10**8+i)*(x-10**8-i)*(x-10**8+3i/2)*(x-i); rr := roots zz;
% 4 3 2
%zz := (2*x - (600000000 - i)*x + 60000000000000005*x
%
% - (2000000000000000800000000 + 29999999999999999*i)*x
%
% + (30000000000000003 + 2000000000000000200000000*i))/2
%rr := {x=100000000 + i,x=100000000 - i,x=i,
%
% 200000000 - 3*i
% x=-----------------}
% 2
% Reconstructing a polynomial from the roots.
ss := mkpoly rr;
% 4 3 2
%ss := 2*x - (600000000 - i)*x + 60000000000000005*x
%
% - (2000000000000000800000000 + 29999999999999999*i)*x
%
% + (30000000000000003 + 2000000000000000200000000*i)
% In this case, the same polynomial is obtained.
ss - num zz;
% 0
% 71) Finding one of the complex roots using nearestroot.
nearestroot(zz,10**8-2i);
% 200000000 - 3*I
%{x=-----------------}
% 2
% Finding the other complex root using nearestroot.
nearestroot(zz,10**8+2i);
%{x=100000000 + I}
% 72) A realroots problem which requires accuracy increase to avoid
% confusion of two roots.
zz:=(x+1)*(10000000x-19999999)*(1000000x-2000001)*(x-2);
realroots zz;
% 19999999 2000001
% {x=-1,x=----------,x=2,x=---------}
% 10000000 1000000
% 73) Without the accuracy increase, this example would produce the
% obviously incorrect answer 2.
realroots(zz,3/2,exclude 2);
% 19999999
% {x=----------}
% 10000000
% Rlrootno also gives the correct answer in this case.
rlrootno(zz,3/2,exclude 2);
% 1
% 74) Roots works equally well in this problem.
rr := roots zz;
% 19999999 2000001
%rr := {x= - 1,x=----------,x=2,x=---------}
% 10000000 1000000
% 75) The function getroot is convenient for obtaining the value of a
% root.
rr1 := getroot(1,rr);
% 19999999
% rr1 := ----------
% 10000000
% 76) For example, the value can be used as an argument to nearestroot.
nearestroot(zz,rr1);
% 19999999
% {x=----------}
% 10000000
comment New capabilities added to Mod 1.90 for avoiding floating point
exceptions and exceeding iteration limits.;
% 77) This and the next example would previously have aborted because
%of exceeding iteration limits:
off ratroot; zz := x**16 - 900x**15 -2; roots zz;
%{x= - 0.665423,x=-0.607902 + 0.270641*i,x=-0.607902 - 0.270641*i,
% x=-0.44528 + 0.494497*i, x=-0.44528 - 0.494497*i,
% x=-0.205664 + 0.632867*i,x=-0.205664 - 0.632867*i,
% x=0.069527 + 0.661817*i,x=0.069527 - 0.661817*i,
% x=0.332711 + 0.57633*i,x=0.332711 - 0.57633*i,
% x=0.538375 + 0.391176*i,x=0.538375 - 0.391176*i,
% x=0.650944 + 0.138369*i,x=0.650944 - 0.138369*i,x=900.0}
% 78) a still harder example.
zz := x**30 - 900x**29 - 2; roots zz;
%{x= - 0.810021,x=-0.791085 + 0.174125*i,x=-0.791085 - 0.174125*i,
% x=-0.735162 + 0.340111*i,x=-0.735162 - 0.340111*i,
% x=-0.644866 + 0.490195*i,x=-0.644866 - 0.490195*i,
% x=-0.524417 + 0.617362*i,x=-0.524417 - 0.617362*i,
% x=-0.379447 + 0.715665*i,x=-0.379447 - 0.715665*i,
% x=-0.216732 + 0.780507*i,x=-0.216732 - 0.780507*i,
% x=-0.04388 + 0.808856*i,x=-0.04388 - 0.808856*i,
% x=0.131027 + 0.799383*i,x=0.131027 - 0.799383*i,
% x=0.299811 + 0.752532*i,x=0.299811 - 0.752532*i,
% x=0.454578 + 0.67049*i,x=0.454578 - 0.67049*i,
% x=0.588091 + 0.557094*i,x=0.588091 - 0.557094*i,
% x=0.694106 + 0.417645*i,x=0.694106 - 0.417645*i,
% x=0.767663 + 0.258664*i,x=0.767663 - 0.258664*i,
% x=0.805322 + 0.0875868*i,x=0.805322 - 0.0875868*i,x=900.0}
% 79) this deceptively simple example previously caused floating point
% overflows on some systems:
aa := x**6 - 4*x**3 + 2; realroots aa;
%{x=0.836719,x=1.50579}
% 80) a harder problem, which would have failed on almost all systems:
rr := x**16 - 90000x**15 - x**2 -2; realroots rr;
%{x= - 0.493299,x=90000.0}
% 81) this example would have failed because of floating point
% exceptions on almost all computer systems.
rr := x**30 - 9*10**10*x**29 - 2; realroots rr;
%{x= - 0.429188,x=9.0E+10}
% 82) a test of allroot on this example.
% This example is commented out because it takes significant time
% without breaking new ground.
%**% roots rr;
%{x= - 0.429188,
% x=-0.419154 + 0.092263*i,x=-0.419154 - 0.092263*i,
% x=-0.389521 + 0.180211*i,x=-0.389521 - 0.180211*i,
% x=-0.341674 + 0.259734*i,x=-0.341674 - 0.259734*i,
% x=-0.277851 + 0.327111*i,x=-0.277851 - 0.327111*i,
% x=-0.201035 + 0.379193*i,x=-0.201035 - 0.379193*i,
% x=-0.11482 + 0.413544*i,x=-0.11482 - 0.413544*i,
% x=-0.0232358 + 0.428559*i,x=-0.0232358 - 0.428559*i,
% x=0.0694349 + 0.423534*i,x=0.0694349 - 0.423534*i,
% x=0.158859 + 0.398706*i,x=0.158859 - 0.398706*i,
% x=0.240855 + 0.355234*i,x=0.240855 - 0.355234*i,
% x=0.311589 + 0.295153*i,x=0.311589 - 0.295153*i,
% x=0.367753 + 0.22127*i,x=0.367753 - 0.22127*i,
% x=0.406722 + 0.13704*i,x=0.406722 - 0.13704*i,
% x=0.426672 + 0.0464034*i,x=0.426672 - 0.0464034*i,x=9.0E+10}
% 83) test of starting point for iteration: no convergence if good
% real starting point is not found.
zz := x**30 -9*10**12x**29 -2; firstroot zz;
%{x= - 0.36617}
% 84) a case in which there are no real roots and good imaginary
% starting point must be used or roots cannot be found.
zz:= 9x**16 - x**5 +1; roots zz;
%{x=-0.866594 + 0.193562*i,x=-0.866594 - 0.193562*i,
% x=-0.697397 + 0.473355*i,x=-0.697397 - 0.473355*i,
% x=-0.510014 + 0.716449*i,x=-0.510014 - 0.716449*i,
% x=-0.161318 + 0.87905*i,x=-0.161318 - 0.87905*i,
% x=0.182294 + 0.828368*i,x=0.182294 - 0.828368*i,
% x=0.459373 + 0.737443*i,x=0.459373 - 0.737443*i,
% x=0.748039 + 0.494348*i,x=0.748039 - 0.494348*i,
% x=0.845617 + 0.142879*i,x=0.845617 - 0.142879*i}
% 85) five complex roots.
zz := x**5 - x**3 + i; roots zz;
%{x=-1.16695 - 0.217853*i,x=-0.664702 + 0.636663*i,x=-0.83762*i,
% x=0.664702 + 0.636663*i,x=1.16695 - 0.217853*i}
% Additional capabilities in Mod 1.91.
% 86) handling of polynomial with huge or infinitesimal coefficients.
precision reset;
on rounded; precision reset;
% so that the system will start this example in floating point. Rounded
% is on so that the polynomial won't fill the page!
zz:= 1.0e-500x**3+x**2+x;
roots zz; off rounded; % rounded not normally needed for roots.
%{x=0,x= - 1.0E+500,x= - 1}
off roundbf;
comment Switch roundbf will have been turned on in the last example in
most computer systems. This will inhibit the use of hardware floating
point unless roundbf is turned off.
Polynomials which make use of powergcd substitution and cascaded
solutions.
Uncomplicated cases.;
switch powergcd; % introduced here to verify that same answers are
% obtained with and without employing powergcd strategy. Roots are
% found faster for applicable cases when !*powergcd=t (default state.)
% 87) powergcd done at the top level.
zz := x**12-5x**9+1; roots zz;
%{x=-0.783212 + 0.276071*i,x=0.152522 - 0.816316*i,
% x=0.63069 + 0.540246*i,x=-0.783212 - 0.276071*i,
% x=0.152522 + 0.816316*i,x=0.63069 - 0.540246*i,
% x=-0.424222 + 0.734774*i,x=-0.424222 - 0.734774*i,x=0.848444,
% x=-0.85453 + 1.48009*i,x=-0.85453 - 1.48009*i,x=1.70906}
off powergcd; roots zz; on powergcd;
%{x=-0.85453 + 1.48009*i,x=-0.85453 - 1.48009*i,
% x=-0.783212 + 0.276071*i,x=-0.783212 - 0.276071*i,
% x=-0.424222 + 0.734774*i,x=-0.424222 - 0.734774*i,
% x=0.152522 + 0.816316*i,x=0.152522 - 0.816316*i,
% x=0.63069 + 0.540246*i,x=0.63069 - 0.540246*i,x=0.848444,x=1.70906}
% 88) powergcd done after square free factoring.
zz := (x-1)**2*zz; roots zz;
%{x=1,x=1,
% x=-0.783212 + 0.276071*i,x=0.152522 - 0.816316*i,
% x=0.63069 + 0.540246*i,x=-0.783212 - 0.276071*i,
% x=0.152522 + 0.816316*i,x=0.63069 - 0.540246*i,
% x=-0.424222 + 0.734774*i,x=-0.424222 - 0.734774*i,x=0.848444,
% x=-0.85453 + 1.48009*i,x=-0.85453 - 1.48009*i,x=1.70906}
off powergcd; roots zz; on powergcd;
%{x=1,x=1,
% x=-0.85453 + 1.48009*i,x=-0.85453 - 1.48009*i,
% x=-0.783212 + 0.276071*i,x=-0.783212 - 0.276071*i,
% x=-0.424222 + 0.734774*i,x=-0.424222 - 0.734774*i,
% x=0.152522 + 0.816316*i,x=0.152522 - 0.816316*i,
% x=0.63069 + 0.540246*i,x=0.63069 - 0.540246*i,
% x=0.848444,x=1.70906}
% 89) powergcd done after separation into real and complex polynomial.
zz := x**5-i*x**4+x**3-i*x**2+x-i; roots zz;
%{x=-0.5 - 0.866025*i,x=0.5 + 0.866025*i,
% x=-0.5 + 0.866025*i,x=0.5 - 0.866025*i,x=i}
off powergcd; roots zz; on powergcd;
%{x=-0.5 + 0.866025*i,x=-0.5 - 0.866025*i,
% x=0.5 + 0.866025*i,x=0.5 - 0.866025*i,x=i}
% Cases where root separation requires accuracy and/or precision
% increase. In some examples we get excess accuracy, but it is hard
% avoid this and still get all roots separated.
% 90) accuracy increase required to separate close roots;
let x=y**2;
zz:= (x-3)*(100000000x-300000001); roots zz;
%{y= - 1.732050808,y=1.732050808,y= - 1.73205081,y=1.73205081}
off powergcd; roots zz; on powergcd;
%{y= - 1.73205081,y= - 1.732050808,y=1.732050808,y=1.73205081}
% 91) roots to be separated are on different square free factors.
zz:= (x-3)**2*(10000000x-30000001); roots zz;
%{y= - 1.73205081,y= - 1.73205081,y=1.73205081,y=1.73205081,
% y= - 1.73205084,y=1.73205084}
off powergcd; roots zz; on powergcd;
%{y= - 1.73205081,y= - 1.73205081,y=1.73205081,y=1.73205081,
% y= - 1.73205084,y=1.73205084}
% 91a) A new capability for nearestroot:
nearestroot(zz,1.800000000001); % should find the root to 13 places.
%{y=1.732050836436}
% 92) roots must be separated in the complex polynomial factor only.
zz :=(y+1)*(x+10**8i)*(x+10**8i+1); roots zz;
%{y= - 1,
% y=-7071.067777 + 7071.067847*i,y=7071.067777 - 7071.067847*i,
% y=-7071.067812 + 7071.067812*i,y=7071.067812 - 7071.067812*i}
% 93)
zz := (x-2)**2*(1000000x-2000001)*(y-1); roots zz;
%{y= - 1.4142136,y= - 1.4142136,y=1.4142136,y=1.4142136,
% y= - 1.4142139,y=1,y=1.4142139}
% 94)
zz := (x-2)*(10000000x-20000001); roots zz;
%{y= - 1.41421356 ,y=1.41421356 ,y= - 1.4142136,y=1.4142136}
% 95)
zz := (x-3)*(10000000x-30000001); roots zz;
%{y= - 1.73205081 ,y=1.73205081 ,y= - 1.73205084 ,y=1.73205084}
% 96)
zz := (x-9)**2*(1000000x-9000001); roots zz;
%{y= - 3.0,y= - 3.0,y=3.0,y=3.0,y= - 3.00000017,y=3.00000017}
% 97)
zz := (x-3)**2*(1000000x-3000001); roots zz;
%{y= - 1.7320508,y= - 1.7320508,y=1.7320508,y=1.7320508,
% y= - 1.7320511,y=1.7320511}
% 98) the accuracy of the root sqrt 5 depends upon another close root.
% Although one of the factors is given in decimal notation, it is not
% necessary to turn rounded on.
rootacc 10; % using rootacc to specify the minumum desired accuracy.
zz := (y^2-5)*(y-2.2360679775);
% in this case, adding one place to the root near sqrt 5 causes a
% required increase of 4 places in accuracy of the root at sqrt 5.
roots zz;
%{y= - 2.236067977,y=2.2360679774998,y=2.2360679775}
realroots zz; % should get the same answer from realroots.
%{y= - 2.2360679775,y=2.2360679774998,y=2.2360679775}
% 99) The same thing also happens when the root near sqrt 5 is on a
% different square-free factor.
zz := (y^2-5)^2*(y-2.2360679775);
roots zz;
%{y= - 2.236067977,y= - 2.236067977,y=2.2360679774998,
% y=2.2360679774998,y=2.2360679775}
realroots zz; % realroots handles this case also.
%{y= - 2.236067977,y= - 2.236067977,y=2.2360679774998,y=2.2360679774998,
% y=2.2360679775}
% 100)
rootacc 6;
zz := (y-i)*(x-2)*(1000000x-2000001); roots zz;
%{y= - 1.4142136,y=1.4142136,y= - 1.4142139,y=1.4142139,y=i}
% 101) this example requires accuracy 15.
zz:= (y-2)*(100000000000000y-200000000000001);
roots zz;
%{y=2.0,y=2.00000000000001}
% 102) still higher precision needed.
zz:= (y-2)*(10000000000000000000y-20000000000000000001); roots zz;
%{y=2.0,y=2.0000000000000000001}
% 103) increase in precision required for substituted polynomial.
zz:= (x-2)*(10000000000x-20000000001); roots zz;
%{y= - 1.41421356237,y=1.41421356237,y= - 1.41421356241,y=1.41421356241}
% 104) still higher precision required for substituted polynomial.
zz:= (x-2)*(100000000000000x-200000000000001); roots zz;
%{y= - 1.414213562373095,y=1.414213562373095,
% y= - 1.414213562373099,y=1.414213562373099}
% 105) accuracy must be increased to separate root of complex factor
% from root of real factor.
zz:=(9y-10)*(y-2)*(9y-10-9i/100000000); roots zz;
%{y=1.111111111,y=2.0,y=1.111111111 + 0.00000001*i}
% 106) realroots does the same accuracy increase for real root based
% upon the presence of a close complex root in the same polynomial.
% The reason for this might not be obvious unless roots is called.
realroots zz;
%{y=1.111111111,y=2.0}
% 107) realroots now uses powergcd logic whenever it is applicable.
zz := (x-1)*(x-2)*(x-3); realroots zz;
%{y= - 1,y=1,y= - 1.41421,y=1.41421,y= - 1.73205,y=1.73205}
realroots(zz,exclude 1,2);
%{y=1.41421,y=1.73205}
% 108) root of degree 1 polynomial factor must be evaluated at
% precision 18 and accuracy 10 in order to separate it from a root of
% another real factor.
clear x; zz:=(9x-10)**2*(9x-10-9/100000000)*(x-2); roots zz;
%{x=1.111111111,x=1.111111111,x=1.111111121,x=2.0}
nearestroot(zz,1);
%{x=1.111111111}
nearestroot(zz,1.5);
%{x=1.111111121}
nearestroot(zz,1.65);
%{x=2.0}
% 108a) new cability in mod 1.94.
realroots zz;
%{x=1.111111111,x=1.111111111,x=1.111111121,x=2.0}
% 109) in this example, precision >=40 is used and two roots need to be
% found to accuracy 16 and two to accuracy 14.
zz := (9x-10)*(7x-8)*(9x-10-9/10**12)*(7x-8-7/10**14); roots zz;
%{x=1.1111111111111,x=1.1111111111121,
% x=1.142857142857143,x=1.142857142857153}
% 110) very small real or imaginary parts of roots require high
% precision or exact computations, or they will be lost or incorrectly
% found.
zz := 1000000*r**18 + 250000000000*r**4 - 1000000*r**2 + 1; roots zz;
%{r=2.42978*i,r=-2.42978*i,
% r=-1.05424 - 2.18916*i,r=1.05424 + 2.18916*i,
% r=-1.05424 + 2.18916*i,r=1.05424 - 2.18916*i,
% r=-0.00141421 - 1.6E-26*i,r=0.00141421 + 1.6E-26*i,
% r=-0.00141421 + 1.6E-26*i,r=0.00141421 - 1.6E-26*i,
% r=-1.89968 - 1.51494*i,r=1.89968 + 1.51494*i,
% r=-1.89968 + 1.51494*i,r=1.89968 - 1.51494*i,
% r=-2.36886 - 0.540677*i,r=2.36886 + 0.540677*i,
% r=-2.36886 + 0.540677*i,r=2.36886 - 0.540677*i}
comment These five examples are very difficult root finding problems
for automatic root finding (not employing problem-specific
procedures.) They require extremely high precision and high accuracy
to separate almost multiple roots (multiplicity broken by a small high
order perturbation.) The examples are roughly in ascending order of
difficulty.;
% 111) Two simple complex roots with extremely small real separation.
c := 10^-6;
zz:=(x-3c^2)^2+i*c*x^7; roots zz;
%{x=-15.0732 + 4.89759*i,x=-9.31577 - 12.8221*i,x=-1.2E-12 + 15.8489*i,
% x=2.99999999999999999999999999999997E-12
% + 3.3068111527572904325663335008527E-44*i,
% x=3.00000000000000000000000000000003E-12
% - 3.30681115275729043256633350085321E-44*i,
% x=9.31577 - 12.8221*i,x=15.0732 + 4.89759*i}
% 112) Four simple complex roots in two close sets.
c := 10^-4;
zz:=(x^2-3c^2)^2+i*c^2*x^9; roots zz;
%{x=-37.8622 + 12.3022*i,x=-23.4002 - 32.2075*i,
% x=-0.00017320508075689 - 2.41778234660324E-18*i,
% x=-0.000173205080756885 + 2.4177823466027E-18*i,
% x=39.8107*i,
% x=0.000173205080756885 + 2.4177823466027E-18*i,
% x=0.00017320508075689 - 2.41778234660324E-18*i,
% x=23.4002 - 32.2075*i,x=37.8622 + 12.3022*i}
% 113) Same example, but with higher minimum root accuracy specified.
rootacc 20;
roots zz;
%{x=-37.862241873586290526 + 12.302188128448775345*i,
% x=-23.400152368145827118 - 32.207546656274351069*i,
% x=-0.00017320508075689014714 - 2.417782346603239319E-18*i,
% x=-0.00017320508075688531157 + 2.417782346602699319E-18*i,
% x=39.810717055651151449*i,
% x=0.00017320508075688531157 + 2.417782346602699319E-18*i,
% x=0.00017320508075689014714 - 2.417782346603239319E-18*i,
% x=23.400152368145827118 - 32.207546656274351069*i,
% x=37.862241873586290526 + 12.302188128448775345*i}
precision reset;
% This resets precision and rootacc to nominal.
% 114) Two extremely close real roots plus a complex pair with extremely
% small imaginary part.
c := 10^6;
zz:=(c^2*x^2-3)^2+c^2*x^9; roots zz;
%{x= - 251.189,x=-77.6216 + 238.895*i,x=-77.6216 - 238.895*i,
% x= - 0.000001732050807568877293531,
% x= - 0.000001732050807568877293524,
% x=0.00000173205 + 3.41926E-27*i,x=0.00000173205 - 3.41926E-27*i,
% x=203.216 + 147.645*i,x=203.216 - 147.645*i}
% 114a) this example is a critical test for realroots as well.
realroots zz;
%{x= - 251.189,x= - 0.000001732050807568877293531,
% x= - 0.000001732050807568877293524}
% 115) Four simple complex roots in two extremely close sets.
c := 10^6;
zz:=(c^2*x^2-3)^2+i*c^2*x^9; roots zz;
%{x=-238.895 + 77.6216*i,x=-147.645 - 203.216*i,
% x=-0.00000173205080756887729353 - 2.417782346602969319022E-27*i,
% x=-0.000001732050807568877293525 + 2.417782346602969318968E-27*i,
% x=251.189*i,
% x=0.000001732050807568877293525 + 2.417782346602969318968E-27*i,
% x=0.00000173205080756887729353 - 2.417782346602969319022E-27*i,
% x=147.645 - 203.216*i,x=238.895 + 77.6216*i}
% 116) A new "hardest example" type. This polynomial has two sets of
% extremely close real roots and two sets of extremely close conjugate
% complex roots, both large and small, with the maximum accuracy and
% precision required for the largest roots. Three restarts are
% required, at progressively higher precision, to find all roots.
% (to run this example, uncomment the following two lines.)
%**% zz1:= (10^12x^2-sqrt 2)^2+x^7$ zz2:= (10^12x^2+sqrt 2)^2+x^7$
%**% zzzz := zz1*zz2$ roots zzzz;
%{x= - 1.00000000000000000000000000009E+8,
% x= - 9.99999999999999999999999999906E+7,
% x= - 0.0000011892071150027210667183,
% x= - 0.0000011892071150027210667167,
% x=-5.4525386633262882960501E-28 + 0.000001189207115002721066718*i,
% x=-5.4525386633262882960501E-28 - 0.000001189207115002721066718*i,
% x=5.4525386633262882960201E-28 + 0.000001189207115002721066717*i,
% x=5.4525386633262882960201E-28 - 0.000001189207115002721066717*i,
% x=0.00000118921 + 7.71105E-28*i,
% x=0.00000118921 - 7.71105E-28*i,
% x=4.99999999999999999999999999953E+7
% + 8.66025403784438646763723170835E+7*i,
% x=4.99999999999999999999999999953E+7
% - 8.66025403784438646763723170835E+7*i,
% x=5.00000000000000000000000000047E+7
% + 8.66025403784438646763723170671E+7*i,
% x=5.00000000000000000000000000047E+7
% - 8.66025403784438646763723170671E+7*i}
% Realroots strategy on this example is different, but determining the
% necessary precision and accuracy is tricky.
%**% realroots zzzz;
%{x= - 1.00000000000000000000000000009E+8,
% x= - 9.9999999999999999999999999991E+7,
% x= - 0.0000011892071150027210667183,
% x= - 0.0000011892071150027210667167}
showtime;
end;
|
0b98e57e6f02a41279b399a23e520887da4cc86b | 891e9f4e3fce67f553f07f24cef2e802423770b9 | /fgoalattain/fgoalattainTests/demo9.sce | 56499de33526fc5c87b8a7806b82dfff42b6c9a5 | [] | no_license | animeshbaranawal/FOSSEE | ae6b6c1a39803ad0fb26780b7f960a62431c71d2 | 75b1b18dcfd935f7ebbe89b44573c8076dae4267 | refs/heads/master | 2022-06-24T14:20:49.508846 | 2022-05-30T17:13:09 | 2022-05-30T17:13:09 | 50,281,099 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 639 | sce | demo9.sce | function f1 = objfun(x)
f1(1)=2*x(1)*x(1)+x(2)*x(2)-48*x(1)-40*x(2)+304
f1(2)=-x(1)*x(1)-3*x(2)*x(2)
f1(3)=x(1)+3*x(2)-18
f1(4)=-x(1)-x(2)-1
f1(5)=x(1)+x(2)-8
f1(6)=100*(x(2)-x(1)^2)^2 + (1-x(1))^2;
f1(7)=x(2)-x(1)*5+x(2)*x(2)
f1(8)=x(2)-4*x(1)+3
f1(9)=x(2)^3-x(1)^2+4
endfunction
goal=[5.0,-6.3,7.4,2.1,4,6,5.2,8,-1.4]
weight=[8,2,3,4,4,5,3,7,6]
x0=[-1,2]
A=[1,2]
b=[3]
Aeq=[-1,4]
beq=[5]
lb=[-1,-1]
ub=[10,10]
function [p,q]=nonlinfun(x)
p=[3*x(2)^2-2*x(1)];
q=[4*x(2)-7*x(1)];
endfunction
[z,gval,attainfactor,exitflag,output,lambda]=fgoalattain(objfun,x0,goal,weight,A,b,Aeq,beq,lb,ub,nonlinfun)
|
cb75dde766ca9086560cdffbc2fef435ecca92d2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1847/CH2/EX2.73/Ch02Ex73.sce | 5a4a6554da1931cc50b5a7d574bb1043974d9fbe | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 527 | sce | Ch02Ex73.sce | // Scilab Code Ex2.73:: Page-2.58(2009)
clc; clear;
N = 550; // Number of fringes crossing the field of view
lambda = 5500e-008; // Wavelength of light used, cm
mu = 1.5; // Refractive index of the glass slab
// As 2*(mu-1)*t = N*lambda, solving for t
t = N*lambda/(2*(mu-1)); // Thickness of the transparent glass film
printf("\nThe distance between two successive positions of movable mirror = %3.1e cm", t);
// Result
// The distance between two successive positions of movable mirror = 3.0e-002 cm
|
433910d517739ae4a9dc675b7f517639a3359059 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2699/CH12/EX12.3/Ex12_3.sce | f9c89843216972fa8cd10f7d871c974eeabef324 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,558 | sce | Ex12_3.sce | //EX12_3 Pg-12.17
clc
clear
fm=5e3;//assume modulation frequency f=5kHz
fc=1080e3;//assume carrier frequency f=1080kHz
time=0:2.3148e-7:8e-4;
//Waveform of modulated signal for m=0.75
m1=0.75;//modulation index
VmbyVc=m1
Vm=1;//we assume modulation voltage=1V
Vc=Vm/m1;//carrier voltage
k=VmbyVc;//modulation index = Vm/Vc
printf("\n for modulation index m=0.75 Vc=%.2f V",Vc)
xset('window',1)
mt=k*sin(2*%pi*fm*time);
sam=Vc*(1+mt).*sin(2*%pi*fc*time);
plot(time(1:1500),sam(1:1500));
title(' Waveform of modulated signal m=0.75');
xlabel('Time (sec)');
ylabel('Amplitude (Vc=1.33V)');
xgrid(color("gray"));
//Waveform of modulated signal for m=1
m1=1;
VmbyVc=m1
Vm=1;//we assume modulation voltage=1V
Vc=Vm/m1;//carrier voltage
k=VmbyVc;//modulation index = Vm/Vc
printf("\n for modulation index m=1 Vc=%.2f V",Vc)
xset('window',2)
mt=k*sin(2*%pi*fm*time);
sam=Vc*(1+mt).*sin(2*%pi*fc*time);
plot(time(1:1500),sam(1:1500));
title(' Waveform of modulated signal m=1');
xlabel('Time (sec)');
ylabel('Amplitude (Vc=1V)');
xgrid(color("gray"));
//Waveform for modulated signal for m=1.25
m1=1.25;
VmbyVc=m1
Vm=1;//we assume modulation voltage=1V
Vc=Vm/m1;//carrier voltage
k=VmbyVc;//modulation index = Vm/Vc
printf("\n for modulation index m=1.25 Vc=%.2f V",Vc)
xset('window',3)
mt=k*sin(2*%pi*fm*time);
sam=Vc*(1+mt).*sin(2*%pi*fc*time);
plot(time(1:1500),sam(1:1500));
title(' Waveform of modulated signal m=1.25');
xlabel('Time (sec)');
ylabel('Amplitude (Vc=0.8V)');
xgrid(color("gray"));
|
782a9d88331c217be05d99f75e93cc49d2bc8c67 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3808/CH6/EX6.12/Ex6_12.sce | 72830762d176fd52508b0ae5d6c9b444f69ca287 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 503 | sce | Ex6_12.sce | //Chapter 06: Counting
clc;
clear;
function result=combination(n,r) //function definition
i=n
num=1
denominator=1
l=(n-r)+1
u=n
for i=l:u //to compute the value of the numerator
num=num*i
end
for j=1:r //to compute the value of the denominator
denominator=denominator*j
end
result=num/denominator
return result
endfunction
num=input("Enter the total number of members in a team:")
com=input("Enter the number of players:")
res=combination(num,com)
mprintf("The number of combinations are %d ",res)
|
4e8b6494f82a5b4b1de4b955fabbca3a9a6804d9 | e7055fdf94e8a24293cab7ccbeac12039d6fe512 | /macros/detectSURFFeatures.sci | f2d6b492067789990b917b034469b00a6a5c6ded | [] | no_license | sidn77/FOSSEE-Image-Processing-Toolbox | 6c6b8b860f637362a73d28dcfe13e87d18af3e2c | 8dfbdbdfd38c73dc8a02d1a25678c4a6a724fe18 | refs/heads/master | 2020-12-02T16:26:06.431376 | 2017-11-08T17:54:03 | 2017-11-08T17:54:03 | 96,552,565 | 0 | 0 | null | 2017-07-07T15:37:18 | 2017-07-07T15:37:18 | null | UTF-8 | Scilab | false | false | 4,179 | sci | detectSURFFeatures.sci | // Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
// Author: Shashank Shekhar & Siddhant Narang
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
function [varargout] = detectSURFFeatures(image, varargin)
// This function is used to detect SURF(Speeded Up Robust Features) Features in a grayscale Image.
//
// Calling Sequence
// result = detectSURFFeatures(Image);
// result = detectSURFFeatures(Image, Name, Value, ...)
//
// Parameters
// result: SURFPoints struct which contains Location of KeyPoints, Orientation, Metric, SignOfLaplacian, Scale and Count of the features.
// Image : Input image, specified as a A-by-N 2D grayscale.
// MetricThreshold : (Optional) With default value equal to 1000, it is to be specified as a scalar. Every interest point detected has a strength associated with it. In case, only the stronget ones are needed, this parameter has to be given a larger value. To get more no of interest points/blobs, it is to be reduced.
// NumOctaves : (Optional)With default value equal to 3, it is to be specified as a scalar. Larger the number of octaves, larger is the size of blobs detected. This is because higher octave use large sized filters. Value must be an integer scalar in between 1 and 4.
// NumScaleLevels : (Optional)With default value equal to 4, it is to be specified as a scalar. It denotes the number of scale level for each octave. The Value must be an integer scalar greater than or equal to 3.
// ROI : (Optional) Region Of Interest. This is taken as a vector [u v width height]. When specified, the function detects the key points within region of area width*height with u and v being the top left corner coordinates.
//
// Description
// This function return the SURF(Speeded Up Robust Features) Interest Points for a 2D Grayscale image. It is scale- and rotation- invariant point detector and descriptor and its application include Camera Calibration, 3D Reconstruction, Object Recognition to name a few.
//
// Examples
//stacksize("max");
// img_1 = imread("images/table.jpg", 0);
// img_2 = imread("images/table1.jpg", 0);
// lis1 = detectSURFFeatures(img_1);
// lis2 = detectSURFFeatures(img_2);
// dimage = drawKeypoints(img_2, lis2.KeyPoints);
// features_1 = extractFeatures(img_1, lis1.KeyPoints, "SURFPoints", "Metric", lis1.Metric, "Orientation", lis1.Orientation, "Scale", lis1.Scale, "SignOfLaplacian", lis1.SignOfLaplacian);
// features_2 = extractFeatures(img_2, lis2.KeyPoints, "SURFPoints", "Metric", lis2.Metric, "Orientation", lis2.Orientation, "Scale", lis2.Scale, "SignOfLaplacian", lis2.SignOfLaplacian);
// [matches, distance] = matchFeatures(features_1.Features, features_2.Features, "Method", "Approximate");
// matchedImage = drawMatch(img_1, img_2, lis1.KeyPoints, lis2.KeyPoints, matches, distance);
//
// See also
// imread
// drawMatch
// drawKeypoints
// matchFeatures
// extractFeatures
//
// Authors
// Shashank Shekhar
// Siddhant Narang
image_list = mattolist(image);
[ lhs, rhs ] = argn(0)
if rhs > 9 then
error(msprintf("Too many input arguments"))
end
if lhs > 1 then
error(msprintf("Not enough input arguments"))
end
select rhs
case 1 then
[a b c d e f] = ocv_detectSURFFeatures(image_list)
case 3 then
[a b c d e f] = ocv_detectSURFFeatures(image_list, varargin(1), varargin(2))
case 5 then
[a b c d e f] = ocv_detectSURFFeatures(image_list, varargin(1), varargin(2), varargin(3), varargin(4))
case 7 then
[a b c d e f] = ocv_detectSURFFeatures(image_list, varargin(1), varargin(2), varargin(3), varargin(4), varargin(5), varargin(6))
case 9 then
[a b c d e f] = ocv_detectSURFFeatures(image_list, varargin(1), varargin(2), varargin(3), varargin(4), varargin(5), varargin(6), varargin(7), varargin(8))
end
varargout(1) = struct('KeyPoints', a, 'Orientation', b, 'Metric', c ,'SignOfLaplacian', d,'Scale', e, 'Count', f );
endfunction
|
5210f6854552eaf8939d0f9ea5d878f299cf7e6c | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH11/EX11.12/12.sce | 0bab443082cb651cfa4b151cb014ea8cd866aa13 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 340 | sce | 12.sce | clc
w_O2=3*32/46*100/23; //For complete combustion of 1 kg of C2H6O, oxygen required
ratio=w_O2;
disp("A:F ratio=")
disp(ratio)
w1=88; //kg
w2=54; //kg
w=w1+w2; //kg
W=46; //kg
w_CO2=w1/W*100;
disp("CO2 produced by fuel")
disp(w_CO2)
disp("%")
w_H2O=w2/W*100;
disp("H2O produced by fuel")
disp(w_H2O)
disp("%")
|
2d3b6dd59616b29bae74379f5c4f5df66dbbb5c7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2096/CH1/EX1.19/ex_1_19.sce | 66d19053a0879dd899b06dfa5efd34ab13a8aee3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 257 | sce | ex_1_19.sce | //Example 1.19.// calculate the temperature indicated
clc;
clear;
close;
//given data :
Iin=160; // in celcius
t1=10; // in seconds
t2=5;// in seconds
I=30; // in celcius
Io=Iin+(I-Iin)*exp(-t1/t2);
disp(Io,"thermometer reading,Io(celcius) = ")
|
89bdc0698407d75e3b1fc4007d6ba65a0c3eb931 | 449d555969bfd7befe906877abab098c6e63a0e8 | /122/CH7/EX7.a.3/exaA_7_3.sce | 2b39e02e20b745d7dd4cbc7270c45653df1bbc1a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 434 | sce | exaA_7_3.sce | // Example A-7-3
// Bode plot for system in state space
clear; clc;
xdel(winsid()); //close all windows
// please edit the path
// cd "/<your code directory>/";
// exec("transferf.sci");
A = [0 1; -25 -4];
B = [1 1; 0 1];
C = [1 0; 0 1];
D = zeros(2,2);
G = transferf(A,B,C,D);disp(G,"transfer function = ");
subplot(2,2,1);
bode(G(1,1));
subplot(2,2,2);
bode(G(1,2));
subplot(2,2,3);
bode(G(2,1));
subplot(2,2,4);
bode(G(2,2));
|
10aea73c69f19078d466f29f2c6d2ffe37e3d05e | bf22bf34daeceb2106b5e2af1c24e480f628960c | /singlelayer-perceptron/perceptron-hebbian/scilab/perceptron_operation.sci | bec852bc0d905ad74c80fa564f74b0408f8726bd | [] | no_license | edielsonpf/neural-networks-examples | e3a045bf37e4b2ea681f05512ac71fdbb0cb4992 | 9fabec297b07987f3506401751719c56055d0f5f | refs/heads/master | 2020-12-24T08:46:39.412676 | 2017-09-23T11:22:11 | 2017-09-23T11:22:11 | 32,630,396 | 1 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 742 | sci | perceptron_operation.sci | // Classifica a doença de acordo com as caracteristicas colhidas no exame de
// sangue
// Parâmetros de entrada:
// entradas: Entradas do conjunto de treinamento
// pesos: Pesos iniciais da rede
// Parâmetros de saída:
// classes: Classificação das amostras passadas como entrada
function classes = perceptron_operation(pesos, entradas)
// Número de amostras
[input_size,num_amostras] = size(entradas);
// Inicializa o vetor de classes (tipos classificados)
classes = zeros(num_amostras, 1);
for k = 1 : num_amostras
u = pesos'*entradas(:,k);
y = sign(u);
if (y == -1)
classes(k) = -1;
else
classes(k) = 1;
end
end
disp(classes);
endfunction
|
e36179a6cecf6488086ef0640a9f8211732fe323 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1067/CH35/EX35.03/35_03.sce | 229974283a43b8ea02f2f723f1f6c5372cedb6f4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 217 | sce | 35_03.sce | clear;
clc;
ct=2000/5;
i=40e3;
r1=.31;
a=28.45e-4;
r2=2;
is=i/ct;
e=is*(r1+r2);
f=50;
B=e/(4.4*f*ct*a);
C=B/sqrt(2);
C=round(C*10)/10;
mprintf("saturation magnetic field max=%fWb\t rms value=%fWb",B,C);
|
3a1158aebc6989019b31af31d2241424cf47aa34 | 07ab1b51dc9ecf7c9119f1285dbca193e04a174b | /WCST - This is the first version I made.sce | 1c9ebe1dcddc742f088692fab403f2b0c59c1d62 | [
"MIT"
] | permissive | GiovanniGiaquinto/WCSTinStimulusPresentation | f7f1f35e9ff2b8d04100da7898b0909d8608b343 | a926a4a36b1b29b7df25b4d6261638e837281c89 | refs/heads/master | 2020-12-30T16:15:37.508944 | 2017-06-02T13:43:04 | 2017-06-02T13:43:04 | 90,973,095 | 0 | 0 | null | 2017-06-01T09:27:17 | 2017-05-11T11:45:32 | Scilab | UTF-8 | Scilab | false | false | 17,859 | sce | WCST - This is the first version I made.sce | #headers
default_background_color = 255, 255, 255;
default_text_color = 0, 0, 0;
default_font = "cambria";
default_font_size = 28;
active_buttons = 4;
response_matching = simple_matching;
default_trial_type = first_response;
default_picture_duration = response;
#SDL
begin;
# The next section will be the coding of all stimuli in picture objects. This includes the welcome and instruction pages
# This makes the scenario clearer. Each subsection will have a comment header to indicate what part is being coded
# Welcome Page
text{caption = "Welcome to this experiment, and thank you for your participation!
Press the W-button to go to the instruction screen";} welc_text;
picture{text welc_text; x = 0; y = 0;} welc_pic;
#Instruction pages
text{caption = "In this task, you need to match a card to one of four cards presented at the top of the screen.
Press one of the four buttons corresponding to the letter next to the cards to select to
which card you want to match the card at the bottom to. Following your selection, you will
get feedback. If your match was not correct, you need to try a different rule
Press the W-button to go to the next screen";} inst1_text;
text{ caption = "The three possible rules of matching are that the cards have the same backgroundcolor,
the cards have the same number of objects on the card, or the object on the cards is the same.
Look at the example below:
If you match according to backgroundcolor, you would choose card 3 corresponding to the letter U
If you match according to object, you would choose card 4 corresponding to the letter P
If you match according to number of objects, you would choose card 1 corresponding to the letter W
Press the W-button to go to the next screen";} inst2_text;
text{ caption = "
You will need to find out whether to match according to color,
object, or number of object. Once you have figure out what rule to use,
you can relax for a while. But that is not all. The matching rules changes now and then!
You therefore need to carefully monitor the feedback. Mistakes are inevitable,
but try to make as few mistakes as possible. That is all! Good luck!
Press the W-button to start the experiment
";} inst3_text;
picture{ text inst1_text; x = 0; y = 0;} inst1_pic;
picture{ text inst3_text; x = 0; y = 0;} inst3_pic;
#instruction page example of experiment
bitmap{ filename = "options.bmp";} qoptions;
bitmap{ filename = "b1g.bmp"; } qb1g;
picture{ text inst2_text ; x = 0; y = 350; bitmap qoptions; x = 0; y = 0; bitmap qb1g; x = 0; y = -300; } inst2_pic;
# Coding of all stimuli
bitmap{ filename = "b1y.bmp";} bb1g;
bitmap{ filename = "b1g.bmp";} bb1gr;
bitmap{ filename = "b2y.bmp";} bb2g;
bitmap{ filename = "b2r.bmp";} bb2r;
bitmap{ filename = "b3g.bmp";} bb3gr;
bitmap{ filename = "b3r.bmp";} bb3r;
bitmap{ filename = "j1b.bmp";} bj1b;
bitmap{ filename = "j1y.bmp";} bj1g;
bitmap{ filename = "j3r.bmp";} bj3r;
bitmap{ filename = "j3b.bmp";} bj3b;
bitmap{ filename = "j4y.bmp";} bj4g;
bitmap{ filename = "j4r.bmp";} bj4r;
bitmap{ filename = "s1b.bmp";} bs1b;
bitmap{ filename = "s1g.bmp";} bs1gr;
bitmap{ filename = "s2b.bmp";} bs2b;
bitmap{ filename = "s2r.bmp";} bs2r;
bitmap{ filename = "s4g.bmp";} bs4gr;
bitmap{ filename = "s4r.bmp";} bs4r;
bitmap{ filename = "sch2b.bmp";} bsch2b;
bitmap{ filename = "sch2y.bmp";} bsch2g;
bitmap{ filename = "sch3b.bmp";} bsch3b;
bitmap{ filename = "sch3g.bmp";} bsch3gr;
bitmap{ filename = "sch4y.bmp";} bsch4g;
bitmap{ filename = "sch4g.bmp";} bsch4gr;
bitmap{ filename = "options.bmp";} boptions;
# Every picture consists of the 4 options the participants can select and the stimulus they have to sort.
picture{ bitmap boptions; x = 0; y = 300; bitmap bb1g; x = 0; y = -300;} b1g;
picture{ bitmap boptions; x = 0; y = 300; bitmap bb1gr; x = 0; y = -300;} b1gr;
picture{ bitmap boptions; x = 0; y = 300; bitmap bb2g; x = 0; y = -300;} b2g;
picture{ bitmap boptions; x = 0; y = 300; bitmap bb2r; x = 0; y = -300;} b2r;
picture{ bitmap boptions; x = 0; y = 300; bitmap bb3gr; x = 0; y = -300;} b3gr;
picture{ bitmap boptions; x = 0; y = 300; bitmap bb3r; x = 0; y = -300;} b3r;
picture{ bitmap boptions; x = 0; y = 300; bitmap bj1b; x = 0; y = -300;} j1b;
picture{ bitmap boptions; x = 0; y = 300; bitmap bj1g; x = 0; y = -300;} j1g;
picture{ bitmap boptions; x = 0; y = 300; bitmap bj3r; x = 0; y = -300;} j3r;
picture{ bitmap boptions; x = 0; y = 300; bitmap bj3b; x = 0; y = -300;} j3b;
picture{ bitmap boptions; x = 0; y = 300; bitmap bj4g; x = 0; y = -300;} j4g;
picture{ bitmap boptions; x = 0; y = 300; bitmap bj4r; x = 0; y = -300;} j4r;
picture{ bitmap boptions; x = 0; y = 300; bitmap bs1b; x = 0; y = -300;} s1b;
picture{ bitmap boptions; x = 0; y = 300; bitmap bs1gr; x = 0; y = -300;} s1gr;
picture{ bitmap boptions; x = 0; y = 300; bitmap bs2b; x = 0; y = -300;} s2b;
picture{ bitmap boptions; x = 0; y = 300; bitmap bs2r; x = 0; y = -300;} s2r;
picture{ bitmap boptions; x = 0; y = 300; bitmap bs4gr; x = 0; y = -300;} s4gr;
picture{ bitmap boptions; x = 0; y = 300; bitmap bs4r; x = 0; y = -300;} s4r;
picture{ bitmap boptions; x = 0; y = 300; bitmap bsch2b; x = 0; y = -300;} sch2b;
picture{ bitmap boptions; x = 0; y = 300; bitmap bsch2g; x = 0; y = -300;} sch2g;
picture{ bitmap boptions; x = 0; y = 300; bitmap bsch3b; x = 0; y = -300;} sch3b;
picture{ bitmap boptions; x = 0; y = 300; bitmap bsch3gr; x = 0; y = -300;} sch3gr;
picture{ bitmap boptions; x = 0; y = 300; bitmap bsch4g; x = 0; y = -300;} sch4g;
picture{ bitmap boptions; x = 0; y = 300; bitmap bsch4gr; x = 0; y = -300;} sch4gr;
# Now that all stimuli have been put in a picture element next the feedback will be coded
# I decided to go with only auditory feedback. The feedback that a participant hears after giving a wrong answer is a buzzer
# When a correct answer is given the line 'You got it' will be played.
#Wrong Answer Feedback
sound{ wavefile { filename = "wrong_sound.wav" ;}; } wrong;
#Right Answer Feedback
sound{ wavefile {filename = "correct_sound.wav"; }; } correct;
# Now that all stimuli are ready to be used the beginning of the experiment will be coded in the following section.
# All trials will be named, so that we can control the flow of the experiment using pcl.
#Welcome page & Instruction Page trials
#Delta_time is set to 0 because the screen only has to change when the participant presses a button
trial{
trial_type = fixed;
trial_duration = stimuli_length;
stimulus_event{
picture welc_pic;
time = 0;
} welcome_page;
stimulus_event{
picture inst1_pic;
delta_time = 0;
} instruction_page1;
stimulus_event{
picture inst2_pic;
delta_time = 0;
} instruction_page2;
stimulus_event{
picture inst3_pic;
delta_time = 0;
} instruction_page3;
}start_screen;
#Correct and wrong sound trial. This needs to be made so we can call this trial everytime a correct or wrong answer is given
# and the auditory feedback can be given.
trial{
sound correct;
duration = 300;
time = 0;
} correct_t;
trial{
sound wrong;
duration = 300;
time = 0;
} wrong_t;
# In the following section three arrays are made. Each array contains 24 trials (one for each stimulus) for each rule.
# The trials are put in an array so that we can randomize the order the trials are presented in.
# Trials where the rule is match on background color
array{
#Ball pictures
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b1g;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b1gr;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b2g;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b2r;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b3gr;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b3r;
target_button = 1;
};
#Joint pictures
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j1b;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j1g;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j3b;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j3r;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j4g;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j4r;
target_button = 1;
};
# Screw pictures
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s1b;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s1gr;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s2b;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s2r;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s4gr;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s4r;
target_button = 1;
};
#Shoe pictures
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch2b;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch2g;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch3b;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch3gr;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch4g;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch4gr;
target_button = 4;
};
}color;
# Rule is shape
array{
#Ball pictures
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b1g;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b1gr;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b2g;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b2r;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b3gr;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b3r;
target_button = 4;
};
#Joint pictures
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j1b;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j1g;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j3b;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j3r;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j4g;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j4r;
target_button = 2;
};
# Screw pictures
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s1b;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s1gr;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s2b;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s2r;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s4gr;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s4r;
target_button = 3;
};
#Shoe pictures
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch2b;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch2g;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch3b;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch3gr;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch4g;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch4gr;
target_button = 1;
};
}shape;
#Rule is number of objects
array{
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b1g;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b1gr;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b2g;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b2r;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b3gr;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture b3r;
target_button = 3;
};
#Joint pictures
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j1b;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j1g;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j3b;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j3r;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j4g;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture j4r;
target_button = 4;
};
# Screw pictures
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s1b;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s1gr;
target_button = 1;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s2b;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s2r;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s4gr;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture s4r;
target_button = 4;
};
#Shoe pictures
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch2b;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch2g;
target_button = 2;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch3b;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch3gr;
target_button = 3;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch4g;
target_button = 4;
};
trial {
correct_feedback = correct_t;
incorrect_feedback = wrong_t;
picture sch4gr;
target_button = 4;
};
}number;
#Begin PCL to control flow of experiment
begin_pcl;
# These two objects are created in order to get a more informative output file
int lastresponse;
stimulus_data last;
double percentagemistakes;
#This creates a custom output file
output_file wcst = new output_file;
wcst.open (logfile.subject() + "wcst_data.txt");
wcst.print("trialnr\tresponse\ttotalcorrect\treactiontime\tpercentagemistakes\n");
#To begin the instruction screens need to be presented
start_screen.present();
# Using a loop we will present 4 stimuli for a rule until moving on to the next rule
# I use until i > 24 because there are a total of 24 stimuli in each rule array. Going further than that would
# result in an error.
# This loop is repeated three times using the loop that contains all code underneath in order to present a total of 72 trials
loop int j = 1 until j > 3
begin
#Next for each rule trials have been made for all stimuli. To minimize noise the trials within each rule are
#randomized using the .shuffle function before going through the next loop
color.shuffle();
shape.shuffle();
number.shuffle();
loop int i=1 until i > 24
begin
if i < 5 then
color[i].present();
elseif i >4 && i < 9 then
shape[i].present();
elseif i > 8 && i < 13 then
number[i].present();
elseif i > 12 && i < 17 then
shape[i].present();
elseif i > 16 && i < 21 then
color[i].present();
elseif i > 20 then
number[i].present();
end;
# The following lines of code are used to put results in the custom output file
last = stimulus_manager.last_stimulus_data();
lastresponse = last.button();
percentagemistakes = (response_manager.total_hits()/72.0)*100.0;
wcst.print(i); wcst.print("\t");
wcst.print(lastresponse); wcst.print("\t");
wcst.print(response_manager.total_hits());wcst.print("\t");
wcst.print(last.reaction_time());wcst.print("\t");;
wcst.print(percentagemistakes);wcst.print("\n");
i = i + 1
end;
j = j + 1;
end;
|
f041753de7663bd4978640241569b9ae9dcaed40 | 1489f5f3f467ff75c3223c5c1defb60ccb55df3d | /tests/test_cache_1_b.tst | e03fa114fc538f3fb2ed7d19b7da7ab78308c5ff | [
"MIT"
] | permissive | ciyam/ciyam | 8e078673340b43f04e7b0d6ac81740b6cf3d78d0 | 935df95387fb140487d2e0053fabf612b0d3f9e2 | refs/heads/master | 2023-08-31T11:03:25.835641 | 2023-08-31T04:31:22 | 2023-08-31T04:31:22 | 3,124,021 | 18 | 16 | null | 2017-01-28T16:22:57 | 2012-01-07T10:55:14 | C++ | UTF-8 | Scilab | false | false | 890 | tst | test_cache_1_b.tst | item #0
item #1
item #2
item #3
item #4
item #5
item #6
item #7
item #8
item #9
item #10
item #11
item #12
item #13
item #14
item #15
item #16
item #17
item #18
item #19
item #20
item #21
item #22
item #23
item #24
item #25
item #26
item #27
item #28
item #29
item #30
item #31
item #32
item #33
item #34
item #35
item #36
item #37
item #38
item #39
item #40
item #41
item #42
item #43
item #44
item #45
item #46
item #47
item #48
item #49
item #50
item #51
item #52
item #53
item #54
item #55
item #56
item #57
item #58
item #59
item #60
item #61
item #62
item #63
item #64
item #65
item #66
item #67
item #68
item #69
item #70
item #71
item #72
item #73
item #74
item #75
item #76
item #77
item #78
item #79
item #80
item #81
item #82
item #83
item #84
item #85
item #86
item #87
item #88
item #89
item #90
item #91
item #92
item #93
item #94
item #95
item #96
item #97
item #98
item #99
|
a024b58527005c695d494674a40203852679f9eb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1529/CH21/EX21.18/21_18.sce | db8ed5185ab541bd0d87806a675f91d4dbfde1c7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 494 | sce | 21_18.sce | //Chapter 21, Problem 18
clc;
vi=200e3; //rated transformer
pf=0.85; //power factor
lcu=(1/2)^2*1.5e3; //copper loss
lfe=1e3; //iron loss
p0=(1/2)*vi*pf; //full-load output power
lt=lcu+lfe; //total losses
pi=p0+lt; //input power
Ef=(1-(lt/pi)); //efficiency
printf("Transformer efficiency at half load = %.3f percent",Ef*100);
|
4681e3afba0088c66b1f62cdefcb0f66dc87e6c2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH24/EX24.18/24Ex18.sce | feeac1bfc41daf4296a3b1032873966d109fb3c3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 249 | sce | 24Ex18.sce | //chapter 24 Ex 18
clc;
clear;
close;
altitude=8; perimeter=32;
//from given the equation formed is x^2=(8^2)+(16-x)^2
side=320/32;
base=perimeter-2*side;
area=(1/2)*base*side;
mprintf("The area of the triangle is %.0f square cm",area);
|
4477c3115b1d68aacb7504461c9421dd8ac4833c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3630/CH9/EX9.3/Ex9_3.sce | 8aa0fa7c1fa67c478945e4b685455b1c32acca93 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 118 | sce | Ex9_3.sce | clc;
Vout=12; //Volt
Vin=0.06; //Volt
Av=Vout/Vin;
disp('',Av,"Av=");//The answers vary due to round off error
|
a2536e71775b867b95f7ed589cfe8af20ff9f0c0 | d0eae76ce5fad31d0a6e879e2fe2c51079c1ec35 | /correlacao.sce | 8df63fc772008db927495f67e2d988b6e7ef0a0d | [] | no_license | matheuslopesz/mathCode | b13ed33aa1e6884c172012abf2d2cdba8240f7a3 | 5cf7a2c81b995c9123bd5caefa869b8a77205490 | refs/heads/master | 2022-03-14T23:12:08.881066 | 2019-12-14T00:40:51 | 2019-12-14T00:40:51 | 103,522,973 | 0 | 0 | null | 2019-12-14T00:40:52 | 2017-09-14T11:13:15 | Scilab | UTF-8 | Scilab | false | false | 185 | sce | correlacao.sce | close;
N =100;
b = rand(1,N,'n'); // criando vetor de número aleatórios
b = sign(b); // transforma em -1 e 1
b = 0.5 * (b +1); // transformar em 0 e 1
disp(b)
r = xcorr(b)
disp(r)
|
5a65d9190a2f1beee0499b658f5ed455d4796c0c | 449d555969bfd7befe906877abab098c6e63a0e8 | /446/CH9/EX9.2/9_2.sce | e7115ceb8b675821c7dfc7bdd178d72b2722ddab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 519 | sce | 9_2.sce | clear
clc
disp('Exa-9.2(a)');
K=1.44; Req=0.236; // K=e^2/(4*pi*e0)=1.44 eV.nm
Uc=-K/(Req); //coulomb energy
printf('The coulomb energy at an equilirium separation distance is %.2f eV\n',Uc);
E=-4.26; delE=1.53; //various standars values of NaCl
Ur=E-Uc-delE;
printf('The pauli''s repulsion energy is %.2f eV\n',Ur);
disp('Exa-9.2(b)');
Req=0.1; //pauli repulsion energy
Uc=-K/(Req);
E=4; delE=1.53;
Ur=E-Uc-delE;
printf('The pauli''s repulsion energy respectively is is %.2f eV\n',Ur); |
999d0fb0d32b05fc73a28c766f27b7735caf106d | 449d555969bfd7befe906877abab098c6e63a0e8 | /896/CH6/EX6.9/9.sce | bcf6b7a3cbd7a881f9390e1625822a6d80616b1d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 266 | sce | 9.sce | clc
//Example 6.9
//Calculate the drop in pressure per unit length in a pipe
dp=0.1//psi
dx=800//ft
//let D represent d/dx
//1 psi = 6895 Pa
//1 m = 3.28 ft
Dp=(dp/dx)*6895*3.28//Pa/m
printf("The drop in pressure per unit length in the pipe is %f Pa/m",Dp); |
b6b52e499eac16c76afdb6c05118e1f904b0de1c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2318/CH3/EX3.20/ex_3_20.sce | c3104278ac77576a4e0f694fcc8bd3c212c9a1c2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 169 | sce | ex_3_20.sce | //Example 3.20:Resistance
clc;
clear;
close;
//given data :
R2=600;// in ohm
R3=400;// in ohm
R4=1000;// in ohm
R1=(R2*R3/R4);
disp(R1,"Unknown resistance,R1(ohm) = ")
|
a2402d45957ea03a40084b410f1043095257526e | 3389c1cdaf3066846fbbac0bc8c2a1fdb8fe0fca | /Metodo_newton_2_unknows_jonatas_bazzoli/Metodo_newton_2_unknow_jonatas_bazzoli.sce | df81d5dc713df5c06438f3c14c78210d296be2a9 | [] | no_license | jbazzoli/AgoritmosNumericos | bc7936d6a2db10a34a2c2f1a3033dc44f6f66d24 | 169f816992a5c0ddb5bfa54d1efb34c384e9201f | refs/heads/master | 2020-07-15T16:19:11.756569 | 2019-08-31T23:24:04 | 2019-08-31T23:24:04 | 205,606,105 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 752 | sce | Metodo_newton_2_unknow_jonatas_bazzoli.sce | //função são f(x)=x*x+y*y-2 e g(x)=x*x-y*y-1
x1=6;
x0=2.0;
y1=6;
y0=0.2;
f=0;
fx=0;
g=0;
gy=0;
gx=0;
fy=0;
eps=0.001;
cont=0;
cont2=0;
r1=0.7070;
y2=0;
erroant=0;
erroprox=0;
erro=0;
p=0;
while (sqrt(((x0-x1)/x0)^2)>eps) & (sqrt(((y0-y1)/y0)^2)>eps)
if cont2>2
y2=y1;
erroant=sqrt((y2-r1)^2)
cont2=0;
end
x1=x0;
y1=y0;
f=x0^2+y0^2-2;
g=x0^2-y0^2-1;
fx=2*x0;
gx=2*x0;
fy=2*y0;
gy=-2*y0;
x0=x0-((f*gy-g*fy)/(fx*gy-fy*gx));
y0=y0-((g*fx-f*gx)/(fx*gy-fy*gx));
cont=cont+1;
erro=sqrt((y1-r1)^2)
erroprox=sqrt((y0-r1)^2)
cont2=cont2+1;
end
p=(log(sqrt((erroprox/erro)^2))/log(sqrt((erro/erroant)^2)));
disp(x0,y0,"valor x e valor y");
disp(cont,"iteration:");
disp(p,"covergencia");
|
67df25ae4c3be6808ff4e42f06f1489014be79df | 449d555969bfd7befe906877abab098c6e63a0e8 | /2471/CH11/EX11.9/Ex11_9.sce | 070fdb24a061b35f2b48263411036fd8b1eb78a3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,617 | sce | Ex11_9.sce | clear ;
clc;
// Example 11.9
printf('Example 11.9\n\n');
printf('Page No. 324\n\n');
//given
T1 = 273;// Measured temperature In degree celcius
P = 1;// Measured pressure in bar
T2 = 290;// initial temperature In degree celcius
T3 = 1000;// Final temperature In degree celcius
T4 = 1150;// Entering tempearture In degree celcius
v1 = 7;// in m^3/s
v2 = 8;// in m^s
M = 22.7;// in kmol/m^3
d = 0.1;// Diameter in m
A = 0.01;// Surface area per regenerator channel in m^2
u = 1;// maximum velocity in m/s
Cp_1 = 34*10^3;// Heat capacity at T4 temperature in J/kmol-K
Cp_2 = 32*10^3;// Heat capacity at outlet temperature in J/kmol-K
Cp_m = 30*10^3;// Heat capacity at mean temperature in J/kmol-K
m_c = v1/M;// Molal air flow rate in kmol/s
H_c1 = Cp_m*(T3 - T1);// Enthalpy of air at 1000K in J/mol
H_c2 = Cp_m*(T2 - T1);// Enthalpy of air at 290 in J/mol
Q = (m_c*(H_c1 - H_c2))/10^6;// in 10^6 W
printf('The heat transfer, Q is %.1f *10^6 W \n',Q)
m_F = v2/M;// Molal flow rate of flue gas in kmol/s
dH = (Q/m_F)*10^6;// enthaply chnage of the flue gas in J/kmol
H_F1 = Cp_1*(T4 - T1);// Enthalpy of the flue gas at 1150 K in J/kmol
H_F2 =H_F1 - dH;// Enthalpy at the exit temperature in J/kmol
T_F2 = (H_F2/Cp_2) + T1;// in K
printf('The exit tempearture of the flue gas is %.0f K \n',T_F2)
S_R = v2/u;//cross sectional area of the regenerator in m^2
N = S_R/A;
printf('The number of channels required is %.0f \n',N)
printf('Consequently for this regenerator a square layout could be achieved with 40 channels arranged horizontally and 20 channels vertically.')
|
1294cef2735001f375384f765bdf00b70d041cc1 | ab5ea127e50a95f36b0e30edcbc79a2952c91858 | /Igor_Yoshimitsu_trabalho7_ex2.sce | de53e5948fb150f825d3ff2097181f59a74cab02 | [] | no_license | igoride/Calculo_Numerico | 165580305214ac34f3fe1e00eb53eca1a6588afa | 9d43be899d7ae44adc08f48dbfc76fed10e09e93 | refs/heads/main | 2023-06-02T05:30:04.542633 | 2021-06-21T16:18:57 | 2021-06-21T16:18:57 | 378,991,891 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 581 | sce | Igor_Yoshimitsu_trabalho7_ex2.sce | function [I] = simpson13 (F, a, b, ns)
if modulo(ns, 2) == 0 then
h = (b-a)/ns;
else
ns = ns+1;
h = (b-a)/ns;
end
x = a;
soma = F(a)+F(b);
for i =1:ns-1
x = x+h;
if modulo(i, 2) == 0 then
soma = soma+4*F(x);
else
soma = soma+2*F(x);
end
end
I = (h/3)*soma;
endfunction
Z = [0, 4, 8, 12, 16];
A = [9.8175, 5.1051, 1.9635, 0.3927, 0.000];
c = [10.2, 8.5, 7.4, 5.2, 4.1];
ns = 5;
ce = simpson13(c, 1, 5, ns);
disp(ce);
|
e147a8f0ce83b46625202385b61d7de5aabf975f | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpic2escifiles6/Phcutoffdata.sci | 879067ced247799ecff821a974be4224da0c508e | [] | no_license | ketpic/ketcindy-scilab-support | e1646488aa840f86c198818ea518c24a66b71f81 | 3df21192d25809ce980cd036a5ef9f97b53aa918 | refs/heads/master | 2021-05-11T11:40:49.725978 | 2018-01-16T14:02:21 | 2018-01-16T14:02:21 | 117,643,554 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,682 | sci | Phcutoffdata.sci | // 08.08.17
// 10.08.15 near line 25 or so
// 13.10.21 ( __ added to varibles )
function Out2__=Phcutoffdata(varargin)
global PHCUTPOINTL PHVERTEXL PHFACEL;
Eps__=10^(-4);
Out2__=[];
VL__=varargin(1);
FaceL__=varargin(2);
PlaneD__=varargin(3);
Sgnstr__=varargin(4);
Fugou__=1;
if Sgnstr__=='-' | Sgnstr__=='n' Fugou__=-1; end;
Out0__=Phcutdata(VL__,FaceL__,PlaneD__);
PtL__=PHCUTPOINTL;
PHVERTEXL=VL__;
PHFACEL=FaceL__;
if PtL__==[]
Out2__=Out0__;
return;
end;
N1__=Mixlength(VL__);
Face__=[];
for I__=1:Mixlength(PtL__);
Tmp__=Mixop(I__,PtL__);
Tmp3__=Mixop(1,Tmp__); // 2010.08.15
Tmp1__=Tmp3__(1); Tmp2__=Tmp3__(2); // 2010.08.15
if Tmp1__~=Tmp2__
VL__=Mixadd(VL__,Mixop(2,Tmp__));
N1__=N1__+1;
Tmp1__=N1__;
end;
Face__=[Face__,Tmp1__];
PtL__(I__)=list(Mixop(1,Tmp__),Tmp1__); // 2010.08.15
// Tmp2__=Mixsub(1:I__-1,PtL__);
// Tmp2__=Mixadd(Tmp2__,Mix(Mixop(1,Tmp__),Tmp1__));
// Tmp3__=Mixsub(I__+1:Mixlength(PtL__),PtL__);
// PtL__=Mixjoin(Tmp2__,Tmp3__);
end;
OutfL__=MixS(Face__);
if Mixtype(PlaneD__)~=1
V1__=Mixop(1,PlaneD__);
Tmp__=Mixop(2,PlaneD__);
if length(Tmp__)>1
d__=V1__(1)*Tmp__(1)+V1__(2)*Tmp__(2)+V1__(3)*Tmp__(3);
else
d__=Tmp__;
end;
elseif type(PlaneD__)==1
V1__=PlaneD__(1:3);
d__=PlaneD__(4);
else
K__=mtlb_findstr(PlaneD__,'=');
if K__>0
Tmp1__=part(PlaneD__,1:K__-1);
Tmp2__=part(PlaneD__,K__+1:length(PlaneD__));
PlaneD__=Tmp1__+'-('+Tmp2__+')';
end;
x=0; y=0; z=0;
d__=-evstr(PlaneD__);
x=1; y=0; z=0;
Tmp1__=evstr(PlaneD__)+d__;
x=0; y=1; z=0;
Tmp2__=evstr(PlaneD__)+d__;
x=0; y=0; z=1;
Tmp3__=evstr(PlaneD__)+d__;
V1__=[Tmp1__,Tmp2__,Tmp3__];
end;
for I__=1:Mixlength(FaceL__)
Face__=Mixop(I__,FaceL__);
TmpL__=[];
for J__=1:length(Face__)
N1__=Face__(J__);
if J__==length(Face__)
N2__=Face__(1);
else
N2__=Face__(J__+1);
end;
for K__=1:Mixlength(PtL__)
Pd__=Mixop(K__,PtL__);
Tmp__=Mixop(1,Pd__);
if Tmp__(1)==Tmp__(2)
if Tmp__(1)==N1__
TmpL__=Mixadd(TmpL__,Mix(J__,[N1__,N2__],Mixop(2,Pd__)));
end
else
if Tmp__==[N1__,N2__] | Tmp__==[N2__,N1__]
TmpL__=Mixadd(TmpL__,Mix(J__,[N1__,N2__],Mixop(2,Pd__)));
end;
end;
end;
end;
if Mixlength(TmpL__)<2
Flg__=0;
for J__=1:length(Face__)
Tmp__=Mixop(Face__(J__),VL__);
Tmp1__=Fugou__*(Naiseki(V1__,Tmp__)-d__);
if Tmp1__<-Eps__
Flg__=1;
break;
end;
end;
if Flg__==0
OutfL__=Mixadd(OutfL__,Face__);
end;
continue;
end;
Pd__=Mixop(1,TmpL__);
Qd__=Mixop(2,TmpL__);
Outf1__=[Mixop(3,Pd__)];
Nf__=Mixop(1,Pd__)+1;
Tmp__=Mixop(2,Pd__);
JJ__=0;
while Tmp__~=Mixop(2,Qd__)
JJ__=JJ__+1;
if JJ__>20
disp('bug');
return;
end;
Tmp1__=Tmp__(2);
if Outf1__(length(Outf1__))~=Tmp1__
Outf1__=[Outf1__,Tmp1__];
end;
Tmp__=[Face__(Nf__)];
Nf__=Nf__+1;
if Nf__>length(Face__) Nf__=1; end;
Tmp__=[Tmp__,Face__(Nf__)];
end;
Tmp1__=Mixop(3,Qd__);
if Outf1__(length(Outf1__))~=Tmp1__
Outf1__=[Outf1__,Tmp1__];
end;
Outf2__=[Mixop(3,Pd__)];
Nf__=Mixop(1,Pd__);
Tmp__=Mixop(2,Pd__);
JJ__=0;
while Tmp__~=Mixop(2,Qd__)
JJ__=JJ__+1;
if JJ__>20
disp('bug');
return;
end;
Tmp1__=Tmp__(1);
if Outf2__(length(Outf2__))~=Tmp1__
Outf2__=[Outf2__,Tmp1__]
end;
Tmp__=[Face__(Nf__)];
Nf__=Nf__-1;
if Nf__<1 Nf__=length(Face__); end;
Tmp__=[Face__(Nf__),Tmp__];
end;
Tmp1__=Mixop(3,Qd__);
if Outf2__(length(Outf2__))~=Tmp1__
Outf2__=[Outf2__,Tmp1__]
end;
if length(Outf1__)<3 | length(Outf2__)<3
Face__=Outf1__;
if length(Outf1__)<length(Outf2__) Face__=Outf2__; end;
Flg__=0;
for J__=1:length(Face__)
Tmp__=Mixop(Face__(J__),VL__);
Tmp1__=Fugou__*(Naiseki(V1__,Tmp__)-d__);
if Tmp1__<-Eps__
Flg__=1;
break;
end;
end;
if Flg__==0
OutfL__=Mixadd(OutfL__,Face__);
end;
else
Tmp__=Mixop(Outf1__(2),VL__);
Tmp1__=Outf1__;
Tmp2__=Fugou__*(Naiseki(V1__,Tmp__)-d__);
if Tmp2__<0 Tmp1__=Outf2__; end;
OutfL__=Mixadd(OutfL__,Tmp1__);
end;
end;
PHVERTEXL=VL__;
PHFACEL=OutfL__;
Out2__=Phcutdata(VL__,OutfL__,[0,0,0,0]);
endfunction
|
5784219a09253cc6355b43324cc7b6970fa030a9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1658/CH24/EX24.1/Ex24_1.sce | 63dc02d45b67801474b3ad2b08e8035060ded20c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 66 | sce | Ex24_1.sce |
clc;
Pi=5;
Po=100;
G=10*log10(Po/Pi);
disp('dB',G*1,"G=");
|
77b5158f8990401da5e4a98e941f87b6d8906c0c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3845/CH8/EX8.6/Ex8_6.sce | 59aafc402bee1dc476ee4734f26c619df7e3f644 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 764 | sce | Ex8_6.sce | //Example 8.6
m1=0.350;//Mass of cart 1 and spring (kg)
m2=0.500;//Mass of cart 2 (kg)
v1=2.00;//Initial velocity of cart 1 (m/s)
v2=-0.500;//Initial velocity of cart 2 (m/s)
v1_final=-4.00;//Final velocity of cart 1 (m/s)
v2_final=(m1*v1+m2*v2-m1*v1_final)/m2;//Final velocity of cart 2 (m/s)
printf('a.Final velocity of cart 2 = %0.2f m/s',v2_final)
KE_int1=(1/2*m1*v1^2)+(1/2*m2*v2^2);//Internal kinetic energy before collision (J)
KE_int2=(1/2*m1*v1_final^2)+(1/2*m2*v2_final^2);//Internal kinetic energy after collision (J)
delta_KE=KE_int2-KE_int1;//Change in internal kinetic energy (J)
printf('\nb.Energy released by the spring = %0.2f J',delta_KE)
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|
ef4ecfbfaf6e391920d5f170698da947b4397fe4 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.3.1/Unix-Windows/scilab-2.3/macros/sci2for/f_svd.sci | 3e4cba0167430618559bbdcadaa33a575ce0d53c | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 4,826 | sci | f_svd.sci | function [stk,nwrk,txt,top]=f_svd(nwrk)
//!purpose
// Scilab svd function translation
//!parameters
// - stk :
// On entry stk is a global variable of type list
// entries indexed from top-1+rhs:top give the definition of the rhs
// function input variables
//
// After execution stk(1:lhs) must contain the definition of the
// lhs returned variables
//
// stk entries have the following structure:
// stk(k)=list(definition,type_expr,type_var,nb_lig,nb_col)
//
// *definition may be:
// - a character string containing a Fortran expression with
// a scalar value ex:'a+2*b-3*c(1);
// - a character string containing a reference to the first
// entry of a Fortran array
// 'a' if a is a defined matrix
// 'work(iwn)' if variable is stored in the double
// precision working array work
// 'iwork(iiwn)' if variable is stored in the integer
// working array iwork
// remark: complex array are defined by a definition part
// with 2 elements (real and imaginary parts definition)
// *type_expr a character string: the expression type code (used
// to indicate need of parenthesis )
// '2' : the expression is a sum of terms
// '1' : the expression is a product of factors
// '0' : the expression is an atome
// '-1': the value is stored in a Fortran array
// *type_var a character string: codes the variable fortran type:
// '1' : double precision
// '0' : integer
// '10': character
//
// *nb_lig (, nb_col) : character strings:number of rows
// (columns) of the matrix
// des chaines de caracteres
//
// nwrk : this variable contain information on working arrays, error
// indicators. It only may be modified by call to scilab functions
// outname adderr getwrk
//
// txt : is a column vector of character string which contain the
// fortran code associated to the function translation if
// necessary.
// top : an integer
// global variable on entry
// after execution top must be equal to top-rhs+lhs
//!
txt=[]
nam='svd'
s2=stk(top-rhs+1)
v=s2(1)
it2=prod(size(v))-1
if it2<>0 then error(nam+' complex --> not implemented'),end
[s2,nwrk,t0]=typconv(s2,nwrk,'1')
n=s2(4);m=s2(5)
if n==m then
n1=n
n2=n
else
n1='min('+addf(n,'1')+','+m+')'
n2='min('+n+','+m+')'
end
if lhs==1 then
[errn,nwrk]=adderr(nwrk,'SVD computation fails')
[out,nwrk,t1]=outname(nwrk,'1','1',n1)
[e,nwrk,t2]=getwrk(nwrk,'1','1',m)
[wrk,nwrk,t3]=getwrk(nwrk,'1','1',n)
txt=[t0;t1;t2;t3;
gencall(['dsvdc',s2(1),n,n,m,out,e,'work',n,'work',m,wrk,'00','ierr']);
genif('ierr.ne.0',[' ierr='+string(errn);' return'])]
stk=list(out,'-1','1','1',n1)
[nwrk]=freewrk(nwrk,wrk)
[nwrk]=freewrk(nwrk,e)
elseif lhs==3 then
[errn,nwrk]=adderr(nwrk,'SVD computation fails')
[o,nwrk,t1]=outname(nwrk,['1','1','1'],[n,n,m],[n,m,m])
[d,nwrk,t2]=getwrk(nwrk,'1','1',n1)
[e,nwrk,t3]=getwrk(nwrk,'1','1',m)
txt=[t0;t1;t2;t3;
gencall(['dsvdc',s2(1),n,n,m,d,e,o(3),n,o(1),m,o(2),'11','ierr']);
genif('ierr.ne.0',[' ierr='+string(errn);' return']);
gencall(['dset',mulf(m,n),'0.0d0',o(2),'1']);
gencall(['dcopy',n1,d,'1',o(2),addf(n,'1')])];
[nwrk]=freewrk(nwrk,d)
[nwrk]=freewrk(nwrk,e)
stk=list(list(o(1),'-1','1',m,m),list(o(2),'-1','1',n,m),..
list(o(3),'-1','1',n,n))
else
[errn,nwrk]=adderr(nwrk,'SVD fails')
[o,nwrk,t1]=outname(nwrk,['0','1','1','1'],['1',n,n,m],['1',n,m,m])
[d,nwrk,t2]=getwrk(nwrk,'1','1',n1)
[e,nwrk,t3]=getwrk(nwrk,'1','1',m)
txt=[t0;t1;t2;t3;
gencall(['dsvdc',s2(1),n,n,m,d,e,o(4),n,o(2),m,o(3),'11','ierr']);
genif('ierr.ne.0',[' ierr='+string(errn);' return']);
gencall(['dset',mulf(m,n),'0.0d0',o(3),'1']);
gencall(['dcopy',n1,d,'1',o(3),addf(n,'1')])];
tol=e
if rhs==1 then
nwrk=dclfun(nwrk,'d1mach','1')
t0=' '+tol+'='+mulf(mulf(mulf('d1mach(4)',m),n),d)
else
tol1=stk(top)
t0=' '+tol+'='+mulf(mulf(mulf(tol1(1),m),n),d)
end
[lbl,nwrk]=newlab(nwrk)
tl1=string(10*lbl);
var='ilb'+tl1;
[lbl,nwrk]=newlab(nwrk)
tl2=string(10*lbl);
t1=[' '+o(1)+'='+var;
genif(part(d,1:length(d)-1)+'+'+var+'-1).le.'+tol,' goto '+tl2)]
txt=[txt;t0;
' do '+tl1+' '+var+' = 0'+','+subf(n2,'1');
indentfor(t1);part(tl1+' ',1:6)+' continue';
' '+o(1)+'='+n2;
part(tl2+' ',1:6)+' continue']
[nwrk]=freewrk(nwrk,d)
[nwrk]=freewrk(nwrk,e)
stk=list(list(o(1),'-1','0','1','1'),list(o(2),'-1','1',m,m),..
list(o(3),'-1','1',n,m),list(o(4),'-1','1',n,n))
end
top=top-rhs+1
|
37f3860dfb1a6286edde075eb01837bd5842f679 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1634/CH1/EX1.25/example1_25.sce | 163cc97a355adc3ab7361e75bfce73d5788f4377 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 415 | sce | example1_25.sce |
//exapple 1.25
clc; funcprot(0);
// Initialization of Variable
time=4+20/60+30/3600;
accn=time*9.8565/3600;//acceleration
stime=time+accn;//sideral time
disp("local mean time in past midnight observed:");
a=modulo(stime*3600,60);
printf("seconds %.3f",a);
b=modulo(stime*3600-a,3600)/60;
printf(" minutes %i",b);
c=(stime*3600-b*60-a)/3600;
if c>24 then
c=c-24;
end
printf(" hours %i",c);
|
f1918e4569c92de4c27c4a81097b5dbd5831c1aa | 449d555969bfd7befe906877abab098c6e63a0e8 | /1898/CH5/EX5.9/Ex5_9.sce | 359afd06150177fa6e3adba05414f9610a27e693 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 784 | sce | Ex5_9.sce | clear all; clc;
disp("Scilab Code Ex 5.9 : ")
//Given:
d = 50; //mm
r = d/2;
c = d/2;
l_buried = 600; //mm
G = 40*10^3; //MPa
F = 100; //N
l_handle= 150; //mm
l_ab = 900; //mm
//Internal Torque:
T_ab = F*2*l_handle;
t = T_ab/l_buried;
//Maximum Shear Stress:
J = (%pi/2)*(r^4);
tou_max = (T_ab*c)/(J);
//Angle of Twist:
x0=0;
x1=l_buried;
X=integrate('x','x',x0,x1);
phi_a = ((T_ab*l_ab)+(50*X))/(J*G);
//Display:
printf('\n\nThe maximum shear stress in the post = %1.2f N/mm^2',tou_max);
printf('\nThe angle of twist at the top of the post = %1.5f rad',phi_a);
//---------------------------------------------------------------------------END----------------------------------------------------------------------------
|
0afc4544858ce2b9fe9fc9cdf00bf82a712cf27b | 6aa7e38b0ca90fe7359bd05dbdeba87474bfbdfa | /MIT2.sce | 0489da84bdc869c6458b1dcbd30c0ae048479ffe | [] | no_license | abhinavraj12345/Scilab | 499afc50bd193fe0bda82ed298d3e8078a547941 | 9530d862984d58ca91bf7d55298381e268141e54 | refs/heads/master | 2020-04-15T16:07:57.545456 | 2019-06-13T06:56:25 | 2019-06-13T06:56:25 | 164,821,631 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 126 | sce | MIT2.sce | clc
clear
[y,Fs]=wavread("C:\Users\Abhinav Raj\Downloads\OnceUponaMidnightDreary.wav");
Fs_new=Fs/0.8
sound(10*y,Fs_new)
|
c9c70a345fd20c07f9515977479f2a3c92cb9e11 | 449d555969bfd7befe906877abab098c6e63a0e8 | /98/CH11/EX11.4/example11_4.sce | b58d2650a3a5da9fffb4601c759869bae0495483 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 185 | sce | example11_4.sce | //Chapter 11
//Example 11_4
//Page 275
clear;clc;
er=4;
l=1000;
d_out=1.8;
d_in=1;
c=er*l*1e-9/41.4/log10(d_out/d_in)/10;
printf("Capacitance of the cable = %.3f uF \n\n", c*10e6);
|
fa711f5e1c937f8360f18797fb7dd36612a1c9b2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2384/CH9/EX9.9/ex9_9.sce | dad32b421dbf25a31833b9994274b960f5208261 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 651 | sce | ex9_9.sce | // Exa 9.9
clc;
clear;
close;
format('v',7)
// Given data
Rating = 250*10^3;// in VA
Pi = 1.8;// in kW
Pi = Pi * 10^3;// in W
Pcu_f1 = 2000;// in W
phi= acosd(0.8);// in °
Eta = ((Rating*cosd(phi))/((Rating*cosd(phi))+Pi+Pcu_f1))*100;// %Eta in %
disp(Eta,"The efficiency at full load in % is");
// The maximum efficiency
Eta_max = Rating * sqrt(Pi/Pcu_f1 );// in VA
Eta_max = Eta_max *10^-3;// in kVA
disp(Eta_max,"The maximum efficiency in kVA is");
Eta_max = Eta_max *10^3;// in VA
Pcu = Pi;// in W
Eta_max1 = ((Eta_max*cosd(phi))/((Eta_max*cosd(phi)) + Pi+Pcu ))*100;// in %
disp(Eta_max1,"The maximum efficiency in % is");
|
8f32433beaca547dbe68abd728371911d3021b6e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1853/CH4/EX4.42/Ex4_42.sce | 0042887435d01d56af9b521bee89574915bb969a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 278 | sce | Ex4_42.sce |
//calculate resistance nd reactance of circuit
P=15000; //power
Vl=400;//line voltage
V=Vl/1.732
I=35;//line current equal to phase current
Z=V/I
coso=15e3/(1.732*400*35)
R=Z*coso
X=sqrt(Z^2-R^2)
disp('reactance='+string(X)+'ohms' ,'resistance='+string(R)+'ohms')
|
f57658756b3cda57da69d9c52909d46ae7358df7 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/tests/examples/besseli.man.tst | 6ec0e7754fa44f6731d17aeb39e5216436852c96 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 56 | tst | besseli.man.tst | clear;lines(0);
besseli(0.5:3,1:4)
besseli(0.5:3,1:4,2)
|
c98d0fed60e27133dba298f7d08eb08a162a4c23 | d7087cf730b37f76170323e080c090f8094979ac | /test/parser/t6.tst | 0610be08853fd5bd7638d947bf3c9b9e02f37a08 | [] | no_license | VladimirMeshcheriakov/42sh | 025dffe358b86f48eaf7751a5cb08d4d5d5366c4 | 52d782255592526d0838bc40269f6e71f6a51017 | refs/heads/master | 2023-03-15T17:26:20.575439 | 2015-06-26T12:44:05 | 2015-06-26T12:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 244 | tst | t6.tst | <cmd>
../build/42sh</cmd>
<ref>
bash</ref>
<stdin>
for une_tres_longue_variable_une_tres_longue_variable_une_tres_longue_variable_une_tres_longue_variable_une_tres_longue_variable_une_tres_longue_variable in 0 1 2 3
do
echo ok
done
</stdin>
|
55d9f1e7def3da16c5797754fe51934a97098c81 | 669f52463d792f1d4933d95acd31792e2e47b056 | /extracases.sce | 198735d23fb44bf37ed66065b0f5d7f4a21882e1 | [] | no_license | larrybolt/wisk2hitori | ce39473d7a49fa32bdfea46f0fc8c8a8acc71163 | 5f01b9c13fa50cf7d4d865c5a34c95b20d195d4c | refs/heads/master | 2021-01-22T15:01:16.856691 | 2016-05-17T10:28:17 | 2016-05-17T10:28:17 | 33,406,015 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,719 | sce | extracases.sce | mode(-1);
warning('off');
// source: Real Hitori App
// Easy 10
N13=[7 1 4 2 6 1 8 3 3
3 4 9 2 6 7 3 1 6
1 3 8 2 4 6 5 7 5
8 1 1 3 5 4 7 2 7
4 2 3 7 1 5 7 5 1
7 6 8 8 3 5 4 9 4
1 3 5 6 2 1 4 8 5
5 8 6 3 9 2 7 3 1
4 5 7 9 7 1 3 4 5]
C13=[w z w z w w w z w
w w w w z w z w w
z w w z w w w w z
w z w w w w z w w
w w w z w z w w z
z w z w w w z w w
w z w w w z w w z
w w w z w w z w w
z w z w w z w w z]
// Easy 11
N14=[5 1 6 4 9 8 2 4 3
7 6 4 3 4 8 2 9 3
3 8 1 2 6 3 7 5 4
6 2 4 8 1 1 3 7 3
2 6 7 8 8 5 9 4 6
1 9 5 7 8 6 3 1 2
9 7 7 1 5 4 8 2 7
7 1 9 3 2 7 5 6 8
6 4 3 9 7 2 1 7 5]
C14=[w w w z w z w w w
z w z w w w z w z
w w w w w z w w w
w w w w z w w w z
w z w z w w w z w
z w w w z w z w w
w w z w w w w w z
w z w z w z w w w
z w w w w w w z w]
// Medium 10
N15=[5 1 1 9 6 3 1 7 4
4 3 7 3 8 5 2 2 1
3 6 8 4 4 2 7 5 7
6 5 4 3 2 7 8 1 8
1 5 9 5 3 4 5 2 8
8 4 8 3 5 6 3 6 3
4 8 6 1 9 6 4 3 2
2 3 6 7 4 3 1 8 1
5 2 3 2 7 1 6 4 6]
C15=[w w z w w w z w w
z w w z w w w z w
w w z w z w z w w
w w w w w w w w z
w z w w w w z w w
z w w z w z w w z
w w z w w w z w w
w z w w w z w w z
z w w z w w z w w]
// Medium 11
N16=[1 9 1 3 8 1 5 8 6
2 1 3 2 7 4 6 6 9
6 4 4 9 3 2 1 7 2
8 2 3 5 6 5 9 4 7
5 7 9 1 7 6 7 5 3
8 6 2 8 5 9 8 3 2
9 3 1 7 1 2 6 8 5
1 6 8 2 4 3 3 9 3
2 7 6 5 9 3 3 1 8]
C16=[z w z w w w w z w
w w w z w w z w w
w z w w w w w w z
w w z w w z w w w
w z w w z w w z w
z w w z w w w w z
w w z w w z w w w
w z w w w w z w z
z w w z w z w w w]
// Hard 10
N17=[5 2 8 4 4 6 4 9 3
4 2 2 9 8 7 6 3 7
4 5 3 6 6 7 4 2 4
2 8 1 6 4 9 7 4 5
8 1 6 7 9 6 2 1 4
7 1 9 3 3 8 6 6 4
1 6 7 5 2 4 9 4 6
3 6 1 8 1 4 5 8 3
6 9 2 3 7 3 8 5 4]
C17=[w w w z w w z w z
w z w w w z w w w
z w w z w w w w z
w w z w z w w z w
w z w w w z w w w
w w w z w w z w z
w z w w w z w w w
z w w w z w w z w
w w z w w z w w z]
// Hard 11
N18=[9 5 8 7 3 1 2 1 3
7 2 4 8 3 9 3 1 6
9 4 7 5 9 6 7 2 1
5 2 3 9 4 2 1 4 8
4 1 7 2 6 3 8 8 5
8 3 1 6 4 6 5 9 5
9 5 4 4 3 1 1 8 7
2 7 5 1 8 6 4 2 9
1 7 7 3 3 5 9 6 7]
C18=[w z w w w z w w z
w w w w z w w z w
z w z w w z w w w
w z w w z w w w w
w w z w w w w z w
w w w w w z w w z
z w z w z w z w w
w w w w w w w z w
w z w w z w w w z]
// Challanging 10
// Vanaf Challanging begint backtracking meer een rol te spelen
N19=[2 5 7 9 3 3 4 6 1
4 5 2 6 3 1 9 7 5
3 6 7 2 4 5 9 4 3
3 1 6 1 8 3 5 2 4
1 9 5 1 4 4 5 6 3
6 2 3 5 1 7 8 3 9
5 1 8 1 9 3 2 3 7
9 7 3 8 1 2 1 4 6
1 2 9 3 7 7 6 1 2]
C19=[w w w w z w w z w
w z w w w w z w w
z w z w w w w z w
w w w z w z w w w
z w w w z w z w z
w w z w w w w w w
w z w z w z w z w
w w w w z w w w w
w z w w w z w z w]
// Challanging 11
N20=[7 1 3 1 5 9 2 8 5
3 5 1 1 9 4 7 1 2
2 1 6 4 3 2 1 3 7
6 1 8 1 2 5 4 5 1
2 6 7 3 8 4 2 1 5
1 9 4 7 4 2 6 3 8
9 3 9 2 2 8 1 7 4
9 2 4 5 7 1 8 6 3
4 8 4 4 1 7 4 2 4]
C20=[w z w w w w w w z
w w w z w z w z w
z w w w z w z w w
w z w z w w w z w
w w w w w w z w w
w w z w w z w z w
z w w w z w w w w
w w z w w w w w w
z w w z w w z w z]
// Extreme 10
// in Extreme is backtracking haast onvermijdelijk
N21=[9 7 3 3 8 2 6 5 6
7 8 2 5 1 4 9 8 3
1 3 8 9 4 1 7 1 9
2 8 9 6 5 8 4 7 2
5 2 9 9 1 2 6 7 8
2 5 1 8 9 7 3 6 3
4 8 3 7 3 5 5 2 1
7 4 7 1 6 3 2 9 2
1 9 5 8 3 6 8 4 5]
C21=[w w w z w w z w w
w z w w z w w w z
z w w z w z w w w
w z w w w w w w z
w w z w w z w z w
z w w z w w z w w
w w z w w z w w w
z w w w w w w w z
w w z w z w z w w]
// Extreme 11
N22=[4 6 7 8 1 6 5 1 3
3 4 3 1 9 3 7 5 6
1 2 9 1 5 3 1 2 8
9 6 3 2 1 5 8 3 4
1 7 1 5 2 4 2 9 2
5 3 4 5 8 1 9 2 6
8 8 1 4 7 3 6 3 9
2 8 5 9 4 7 4 6 1
8 1 1 3 4 1 2 1 5]
C22=[w z w w z w w w w
w w z w w z w w z
w z w z w w z w w
w w w w w w w z w
z w z w z w z w w
w w w z w w w z w
w z w w w z w w w
w w w w z w w w w
z w z w w z w z w]
|
0ea65e23f21dbfd060c1fd6fd2e8ce5f2dda4e85 | 6bd47868c9c7b3e9469b27f60a4757816a62060b | /Interpolasi/lagrange.sci | b885e433233a7b568d1331d68ecda901e2178081 | [] | no_license | fahrioghanial/Program-Metode-Numerik | 555401132e47516ff38ab7d38e1056c16e45ab1a | 83cfe9144c72a3adbabbe71923f32ab6209b02e8 | refs/heads/master | 2023-02-28T16:14:24.353765 | 2021-02-04T08:04:46 | 2021-02-04T08:04:46 | 335,882,015 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 684 | sci | lagrange.sci | /*
Nama : Mohamad Fahrio Ghanial Fatihah
NPM : 140810190005
Deskripsi : Program Metode Lagrange
*/
clear;
clc;
printf('\nProgram Metode Interpolasi Lagrange\n');
X = [0.10 0.12 0.14 0.16 0.18 0.20];
Y = [0.004 0.006 0.008 0.011 0.015 0.018];
printf('Diketahui Data Berikut:\n');
printf('x\tf(x)\n');
for i=1:6
printf('%.2f\t%.3f\n', X(i),Y(i));
end
x=input('Masukkan nilai x yang akan dicari f(x)nya = ');
;
L = 0;
for i = 1:6
pr = 1;
for j = 1:6
if j ~= i
pr = pr * (x-X(j))/(X(i)-X(j));
end
end
L = L + Y(i)*pr;
end
hasil = L;
printf('Orde yang digunakan adalah orde terbesar yaitu orde 5\nJadi nilai f(%.2f) adalah : %.6f', x, L);
|
56f1cedbd688e2804ca91646b75eb23fb7483841 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3685/CH21/EX21.8/Ex21_8.sce | 20a017993c0bb83578af3f62e7228c1182ffb590 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 921 | sce | Ex21_8.sce |
clc
// Given that
Pc = 2.4 // Pressure in combustion chamber in MPa
Tc = 3170 // Temperature in combustion chamber in K
Pj = 55 // Atmospheric pressure in kPa
Pe = 85 // Pressure at the exit of nozzle in kPa
At = 0.06 // Area at the nozzle throat in m^2
n_n = 0.91 // Nozzle efficiency
Cd = 0.98 // Coefficient of discharge
gama = 1.25 // Heat capacities ratio for gases
R = 0.693 // Value of gas constant in kJ/kgK
theta = 12 // Half angle of divergence in degree
printf("\n Example 21.8\n")
Vj = sqrt((2*gama*R*1000*Tc/(gama-1))*(1-(Pj/(Pc*1000))^((gama-1)/gama)))
Vj_act = ((1+cosd(12))/2)*Vj*sqrt(n_n)
m = At*Pc*(10^6)*((gama/(R*1000*Tc))*(2/(gama+1))^((gama+1)/(gama-1)))^(1/2)
m_act = Cd*m
Ae = m/(Pe*Vj)
Ft = m*Vj+Ae*(Pe-Pj)*1000
SIm = Ft/m_act
printf("\n Thrust produced = %f kN,\n Specific impulse = %f Ns/kg",Ft*0.001,SIm)
// The answers are given in the book contain calculation error.
|
9178e96b6b6128477f601283e002ff9dda449238 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/1.1/Unix/scilab-1.1/demos/bike/c.sci | 0e4f0259edd1ac449921101f7dfdc911955df248 | [
"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 | 114 | sci | c.sci | //[var]=c(q,qd,u,paramopt)
var=fort('c',...
q,1,'d',qd,2,'d',u,3,'d',paramopt,4,'d',...
'sort',[1,1],5,'d')
//end
|
4d13bc65bd612f65c4e7d41bade9d76a8c52fc4b | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/gr_harm/condor/test1/out/spheretocart.sce | cbef9c5e6fe4c5c7f66ab116300dbc82f0477b97 | [] | no_license | mikeg2105/matlab-old | fe216267968984e9fb0a0bdc4b9ab5a7dd6e306e | eac168097f9060b4787ee17e3a97f2099f8182c1 | refs/heads/master | 2021-05-01T07:58:19.274277 | 2018-02-11T22:09:18 | 2018-02-11T22:09:18 | 121,167,118 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,148 | sce | spheretocart.sce | function [gxx,gxy,gxz,gyy,gyz,gzz] = spheretocart(nx,ny,nz,x,y,z,r,grr,grt,grp,gtt,gtp,gpp)
// [gxx,gxy,gxz,gyy,gyz,gzz] = spheretocart(nx,ny,nz,x,y,z,r,grr,grt,grp,gtt,gtp,gpp)
// [PURPOSE] Convert spherical metric components to cartesian
//
// [ARGUMENTS]
// [INPUT]
// nx,ny,nz : grid sizes of the 3d cube.
// x,y,z,r : grid vectors
// grr,grt,...: Metric tensor in spherical coordinates
// [OUTPUT]
// gxx,gxy,...: Metric tensor in cartesian coordinates
//
// [VARIABLES] 3d arrays for coordinate derivative terms
//
// [CALLED BY] analywave.m
// real x(nx,ny,nz),y(nx,ny,nz),z(nx,ny,nz),r(nx,ny,nz)
// real grr(nx,ny,nz),grt(nx,ny,nz),grp(nx,ny,nz),
// & gtt(nx,ny,nz),gtp(nx,ny,nz),gpp(nx,ny,nz)
// real gxx(nx,ny,nz),gxy(nx,ny,nz),gxz(nx,ny,nz),
// & gyy(nx,ny,nz),gyz(nx,ny,nz),gzz(nx,ny,nz)
// define derivatives drx = (dr/dx)
// real drx(nx,ny,nz),dry(nx,ny,nz),drz(nx,ny,nz)
// real dtx(nx,ny,nz),dty(nx,ny,nz),dtz(nx,ny,nz)
// real dpx(nx,ny,nz),dpy(nx,ny,nz),dpz(nx,ny,nz)
drx = x./r;
dry = y./r;
drz = z./r;
dtx = x.*z./((r.^2).*sqrt(x.^2+y.^2));
dty = y.*z./((r.^2).*sqrt(x.^2+y.^2));
dtz = ((z.^2)./(r.^2)-1)./sqrt(x.^2+y.^2);
dpx = -y./(x.^2+y.^2);
dpy = x./(x.^2+y.^2);
dpz = 0.;
gxx = (drx.^2).*grr+2.*drx.*dtx.*grt+2.*drx.*dpx.*grp+(dtx.^2).*gtt+2.*dtx.*dpx.*gtp+(dpx.^2).*gpp;
gyy = (dry.^2).*grr+2*dry.*dty.*grt+2*dry.*dpy.*grp+(dty.^2).*gtt+2*dty.*dpy.*gtp+(dpy.^2).*gpp;
gzz = (drz.^2).*grr+2*drz.*dtz.*grt+2*drz.*dpz.*grp+(dtz.^2).*gtt+2*dtz.*dpz.*gtp+(dpz.^2).*gpp;
gxy = drx.*dry.*grr+(drx.*dty+dtx.*dry).*grt+(drx.*dpy+dpx.*dry).*grp+dtx.*dty.*gtt+(dtx.*dpy+dpx.*dty).*gtp+dpx.*dpy.*gpp;
gxz = drx.*drz.*grr+(drx.*dtz+dtx.*drz).*grt+(drx.*dpz+dpx.*drz).*grp+dtx.*dtz.*gtt+(dtx.*dpz+dpx.*dtz).*gtp+dpx.*dpz.*gpp;
gyz = dry.*drz.*grr+(dry.*dtz+dty.*drz).*grt+(dry.*dpz+dpy.*drz).*grp+dty.*dtz.*gtt+(dty.*dpz+dpy.*dtz).*gtp+dpy.*dpz.*gpp;
endfunction
|
1bfe50a319d0783b2e9eb85876e565dbdbebfa77 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1619/CH1/EX1.7.5/Example1_7_5.sce | 1d39380814607d99a24f843dccf2936e63bdf6b1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 600 | sce | Example1_7_5.sce | // Example 1.7.5 page 1.16
// Will total internal reflection take place?
clc;
clear;
n1 = 3.6; // RI of GaAs..
n2 = 3.4; // RI of AlGaAs..
phi1 = 80; // Angle of Incidence..
// According to Snell's law...
// n1*sin(phi1)= n2*sin(phi2);
//At critical angle phi2 = 90...
phiC = asind((n2/n1)*sind(90));
printf('The Critical angel is %.2f degrees',phiC);
printf('\n\nFor total internal reflection to take place angle\n of incidence should be greater than the critical angle. \nFrom the calculations, we can thus conclude that Total internal reflection will take place');
|
73d096c8a94d36a4bcc2921e24e7ea0442dbd73d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3825/CH5/EX5.7/Ex5_7.sce | 3f01fd7d52fe20c4280a58e42a2f66e5bff2269f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 415 | sce | Ex5_7.sce | clc
T1=300 //temperature in kelvin
P1=100 //pressure in kPa
P2=2 //pressure in MPa
gama=1.4 //Cp/Cv ratio
T2=T1*(((P2*10^6)/(P1*10^3))^((gama-1)/gama))
mprintf("T2=%fK\n",T2)//ans vary due to roundoff error
Cr=(T1*P2*10^6)/(P1*10^3*T2)
mprintf("Compression ratio=%f\n",Cr)//ans vary due to roundoff error
R=8.314
W=R*(T1-T2)/(gama-1)
mprintf("W=%fkJ/mol",W/1000)//ans vary due to roundoff error
|
c80971393a55fa38568475036fccb6d49deff625 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set6/s_Electric_Machines_-_I_M._Verma_And_V._Ahuja_695.zip/Electric_Machines_-_I_M._Verma_And_V._Ahuja_695/CH2/EX2.40/Ex2_40.sce | 0a1c46f8064c65d958a64b01c43bac8fc8e74cbc | [] | 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 | 639 | sce | Ex2_40.sce | errcatch(-1,"stop");mode(2);//Caption:Calculate the (a)Speed at full load and developed torque (b)Shaft power (c)Efficiency
//Exa:2.40
;
;
V=230;//in volts
R_a=0.4;//in ohms
I_a1=3.4;//in amperes
R_f=170;//in ohms
E_b1=V-I_a1*R_a;
I_f=V/R_f;
I_L=41;//in amperes
I_a2=I_L-I_f;
E_b2=214.142;//in volts
N_1=1000;//in rpm
N_2=N_1*E_b2/(E_b1*0.96);//in rpm
disp(N_2,'(a)Speed at full load (in rpm)=')
T_a=9.55*E_b2*I_a2/N_2;
disp(T_a,'Torque Developed (in N-m)=')
P_r=E_b1*I_a1;
P_m=E_b2*I_a2;
P_f=P_m-P_r;
disp(P_f,'(b)Shaft Power (in watts)=')
P_in=V*I_L;
Eff=P_f/P_in;
disp(Eff*100,'(c)Efficiency (in %)=')
exit();
|
51cb6dbd39d4c36d29ee160cb8bdd4496f7e54ea | 3c47dba28e5d43bda9b77dca3b741855c25d4802 | /microdaq/macros/mdaq_error.sci | 0e6793e3892d406daef2454ed509d1a48d59a4da | [
"BSD-3-Clause"
] | permissive | microdaq/Scilab | 78dd3b4a891e39ec20ebc4e9b77572fd12c90947 | ce0baa6e6a1b56347c2fda5583fb1ccdb120afaf | refs/heads/master | 2021-09-29T11:55:21.963637 | 2019-10-18T09:47:29 | 2019-10-18T09:47:29 | 35,049,912 | 6 | 3 | BSD-3-Clause | 2019-10-18T09:47:30 | 2015-05-04T17:48:48 | Scilab | UTF-8 | Scilab | false | false | 204 | sci | mdaq_error.sci | function error_desc = mdaq_error(error_id)
[error_desc] = mdaq_error2(error_id);
if error_id == -1 then
error(error_desc);
else
disp(error_desc);
end
endfunction
|
1b222f497e5077c148aaba5e5332e8ce0461aa48 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1631/CH4/EX4.8/Ex4_8.sce | 882035f145827a771455458f85dced4cf46a90ff | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 338 | sce | Ex4_8.sce | //Caption:signal to noise ratio
//Example 4.8
//page no 171
//find signal to noise ratio
clc;
clear;
//Given data
fm=3.5*10^3;
r=50*10^3;
fs=2*fm;
rms=0.2;
xmax=2;
v=r/fs;//signaling rate r=v*fs
v=ceil(v);
P=(rms^2)/1;
SNR=((3*P*2^(2*v))/(xmax^2));
SN=10*log10(SNR);
disp(ceil(SN),"signal to niose ratio");
disp("dB");
|
b226a4219752da8e668347382a39a9e456cd045a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1938/CH2/EX2.14/2_14.sce | cf610f216d46aec0cc84557dbdefff495533c564 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 559 | sce | 2_14.sce | clc,clear
printf('Example 2.14\n\n')
R_a=0.08, E_b1=242 , V=250
//part(i)
I_a1= (V-E_b1)/R_a
printf('(i)Armature current = %.0f A',I_a1)
//part(ii)
N=0
E_b=0 //because N=0
I_a_start=V/R_a
printf('\n(ii)Starting armature current = %.0f A',I_a_start)
//part(iii)
I_a2=120
E_b2=V-I_a2*R_a
printf('\n(iii)Back emf if armature current is changed to 120 A= %.1f V',E_b2)
//part(iv)
I_a=87,N_m=1500
E_g=V + I_a*R_a //induced emf
N_g=N_m*(E_g/E_b1)//as E (prop.) N
printf('\n(iv)Generator speed to deliver 87 A at 250 V = %.1f rpm',N_g)
|
3415a766064286f22e4b65c7e0fa69eda5b19ad3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1544/CH4/EX4.4/Ch04Ex4.sce | 354134ca6e8a068f35cc5ce1ff264c837e8497c6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 393 | sce | Ch04Ex4.sce | // Scilab code Ex4.4:Pg 117 (2008)
clc; clear;
N = 600; // Number of turns in a coil
F = 1500; // Magnetomotive force, At
// Since magnetomotive force,F = N*I, solving for I
I = F/N; // Excitation-current, A
printf("\nThe excitation current required = %3.1f A", I);
// Result
// The excitation current required = 2.5 A
|
ba9af41f565e3515797a233384ee5a914241419e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2777/CH4/EX4.5/Ex4_5.sce | 2a41ee2b75f1240227dcbadf0e02a5317fe722cf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,327 | sce | Ex4_5.sce |
// ELECTRICAL MACHINES
// R.K.Srivastava
// First Impression 2011
// CENGAGE LEARNING INDIA PVT. LTD
// CHAPTER : 4 : DIRECT CURRENT MACHINES
// EXAMPLE : 4.5
clear ; clc ; close ; // Clear the work space and console
// GIVEN DATA
p = 4; // Number of the Poles in the DC machine
Nt = 100; // Number of the turns in the Dc machine
N = 600; // Rotation speed of the DC machine in RPM
E = 220; // EMF generated in open circuit in Volts
Z = 200; // Total number of the Conductor in armature
// CALCUALTIONS
// For case (a) Lap Connected
a = 4; // Number of the Poles in the DC machine
n = N/60; // Revolution per second
phi_a = (E*a)/(p*Z*n); // Useful flux per pole when Armature is Lap connected in Weber
// For case (b) Wave Connected
a = 2; // Number of the Poles in the DC machine
phi_b = (E*a)/(p*Z*n); // Useful flux per pole when Armature is Wave connected in Weber
// DISPLAY RESULTS
disp("EXAMPLE : 4.5 : SOLUTION :-") ;
printf("\n (a) Useful flux per pole when Armature is Lap connected , phi = %.1f Wb \n ",phi_a);
printf("\n (B) Useful flux per pole when Armature is Lap connected , phi = %.3f Wb \n ",phi_b);
|
7c7ef52c170f356b3edb0fa855a9d01e1e0511a9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3885/CH5/EX5.5/Ex5_5.sci | 78c85847fce852f278e1354dc74c72ac913cdebd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 563 | sci | Ex5_5.sci | //control systems by Nagoor Kani A
//Edition 3
//Year of publication 2015
//Scilab version 6.0.0
//operating systems windows 10
// Example 5.5
clc;
clear;
s=poly(0,'s')
a=(s^7)+(9*s^6)+(24*s^5)+(24*s^4)+(24*s^3)+(24*s^2)+(23*s)+15
b=coeff(a)
n=length(b)
R=routh_t(a)
disp(R,'the routh array is;')
disp('there is sign change in first column of routh array so ths system is unstable;')
ae=s^4+s^2+1
r=roots(ae)
disp(r,'the roots of auxilary equation are')
disp('two roots lie on right half of splane five roots lie on left half of s plane')
|
c2190ee368e5396aec83b6f856eb5ac7529b1125 | 6b85d1958ff11075634ed9e0f6dbef2de9548f1b | /ANN_Toolbox/demos/enc858_ssab_nb.sce | 34bd55a06ed547e554cab5398c66375c30bd006d | [
"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 | 542 | sce | enc858_ssab_nb.sce | // ==================================================
// Loose 8-5-8 encoder
// on a backpropagation network without biases, with SuperSAB
// (Note that the tight 8-3-8 encoder will not work without biases)
// (The 8-4-8 encoder have proven very difficult to train on SuperSAB)
// ==================================================
FILENAMEDEM = "enc858_ssab_nb";
scepath = get_absolute_file_path(FILENAMEDEM+".sce");
exec(scepath+FILENAMEDEM+".sci",1);
clear scepath;
clear FILENAMEDEM;
// ==================================================
|
013636e71b019c6095f51ac140a785edade7bf42 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1322/CH8/EX8.6/65ex2.sce | 6c0c82b71992d4ee63832ae5a37255dbb760ffe9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 328 | sce | 65ex2.sce |
//y=mx+b
//given x=4,y=6 and x=2.4,y=4.5
clear;
clc;
close;
m=poly(0,'m');
b=6-4*m; //(equation 1) when x=4,y=6
B=4.5-2.4*m;//(equation 2) when x=2.4,y=4.5
P=b-B;
disp("the solution is :");
m=roots(P)
//substitute this value
b=6-4*m
//"substitute these values in the equation y=mx+b"
x=poly(0,'x');
y=m*x+b
|
22b1c5ef7c1218fb469f2fd785a5fd277194d947 | 717ddeb7e700373742c617a95e25a2376565112c | /3165/CH2/EX2.4/Ex2_4.sce | 5e055b75a55756c9d2fe36d547c987d9027a21e3 | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 187 | sce | Ex2_4.sce | //unit impulse//
clc;
f=-2:1:2;//input//
y=[zeros(1,2),ones(1,1),zeros(1,2)];//output//
subplot(2,2,1);
plot2d3(f,y);
xlabel('a(n)');
ylabel('amplitude');
title('unit impulse');
|
1ba4dee5616ffd15fa15f7b52a17ec11f934ac5f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1571/CH11/EX11.2/Chapter11_Example2.sce | a4fd0675e593a30c2798bf2c256083792abd642b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 410 | sce | Chapter11_Example2.sce | clc
clear
//INPUT
k=0.9;//thermal conductivity in cgs unit
a=10;//area of the copper bar in sq.cm
t1=100;//hot side temperature in deg.C
t2=20;//cool side temperature in deg.C
d=25;//thickness of the bar in cm
t3=14;//temperature of water when entering in deg.C
//CALCULATIONS
m=k*a*(t1-t2)/(d*(t2-t3));//rate flow of water in gm/sec
//OUTPUT
mprintf('rate flow of water is %3.2f gm/sec',m)
|
6e3f1605c914be709cd4b04d8f90899bcebc5dfb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH4/EX4.7/example4_7.sce | fb0725079eaf7fedf9eed1ec6416e02dfc09d7aa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | example4_7.sce | clc
// Given that
tou = 1e-10 // coherence time in sec
lambda = 5.4e-7 // wavelength of light in meter
// Sample Problem 7 on page no. 4.28
printf("\n # PROBLEM 7 # \n")
delta_v = 1 / tou
v_ = (3e+8) / lambda // calculation for frequency
d = delta_v / v_ // calculation for degree of non-monochromaticity
printf("\n Standard formula used \n delta_v = 1 / tou. \n v_ = (3e+8) / lambda. \n d = delta_v / v_. \n ")
printf("\n Degree of non-monochromaticity = %f ",d)
|
759940b9f367977c15e040f663fb340417dd442d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3792/CH6/EX6.2/Ex6_2.sce | 8c7597c4d1089544b53202c67f010917f8c9f140 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 642 | sce | Ex6_2.sce | // SAMPLE PROBLEM 6/2
clc;clear;funcprot(0);
// Given data
m=150;// kg
M=5;// kN
theta=30;// degree
ACbar=1.5;// m
BDbar=1.5;// m
ABbar=1.8;// m
g=9.81;// The acceleration due to gravity in m/s^2
// Calculation
// SigmaM_C=0
A_t=M/ACbar;// kN
// SigmaF_t=m*abar_t
// alpha=14.81-6.54*cos(theta);
wsquare_30=(29.6*theta*%pi/180)-(13.08*sind(theta));// (rad/s)^2
alpha_30=14.81-(6.54*cosd(theta));// rad/s^2
A_n=(m/1000)*ACbar*wsquare_30;// kN
A_t=(m/1000)*BDbar*alpha_30;// kN
// SigmaM_A=m*abar*d
B=((A_n*(ABbar-0.6)*cosd(theta))+(A_t*0.6))/(ABbar*cosd(theta));// kN
printf("\nThe force in the link DB,B=%1.2f kN",B);
|
6000df0d4bcc136a1a10d755a9fd9b21e55f4f29 | 449d555969bfd7befe906877abab098c6e63a0e8 | /446/CH4/EX4.3/4_3.sce | 5cab28f1889da7a3f54ebcf9405f2b9f53cf5567 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 458 | sce | 4_3.sce | clear
clc
disp('Ex-4.3')
delt=1; //consider time interval of 1 sec
delw=1/delt; // since delw*delt =1 from equation 4.4
delf=0.01 //calculated accuracy is 0.01Hz
delwc =2*%pi*delf // delwc-claimed accuracy from w=2*pi*f
printf('The minimum uncertainity calculated is 1rad/sec. The claimed accuracy is %.3f rad/sec\n',delwc);
if delw==delwc then disp('Valid claim');
end
if delw~=delwc then disp('Invalid claim');
end
|
c0c93c97059c905a96ca42621f4a97339bd8c5dc | f1555901bc9c49dcedf3e236c95a697804953b9b | /testinpoly.sce | a52fa15e944190e1be47af61578eb31457b8b8b6 | [] | no_license | JimSenee/Recherche | fcb6cab0f811d26acca52bf2d9c08231064b41aa | 47999b8169879267268dab2f73f89e7443d21810 | refs/heads/master | 2021-01-20T09:44:50.297701 | 2017-03-18T14:36:43 | 2017-03-18T14:36:43 | 90,280,476 | 0 | 0 | null | 2017-05-04T15:37:37 | 2017-05-04T15:37:37 | null | UTF-8 | Scilab | false | false | 515 | sce | testinpoly.sce |
xpol = [5 5 40 40];
ypol = [5 40 40 5];
xpoly(xpol, ypol)
jim = jimread(jimlabPath + '\tests\images\noError\rgba.png')
im = jim.image;
//gray et rgb
for i = 1:50
for j = 1:50
in(i,j) = point_in_polygon(ypol, xpol, i,j);
end
end
out = in .* im;
mat = uint8(~isinf(out)) .* out
//rgba
for i = 1:50
for j = 1:50
in(i,j) = point_in_polygon(ypol, xpol, i,j);
end
end
out = in .* im(:,:,[1:3]);
out(:,:,4)=im(:,:,4);
mat = uint8(~isinf(out)) .* out;
|
d940f8240528429f4b5204f56a4319fe81e538af | 449d555969bfd7befe906877abab098c6e63a0e8 | /1634/CH1/EX1.52/example1_52.sce | 6c23daacc128831b52b6bb04c17049a87c136d33 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 980 | sce | example1_52.sce |
//exapple 1.52
clc; funcprot(0);
// Initialization of Variable
//part1
GAT=5+17/60+6/60;//GAT of observation
delta=17+46/60+52/3600;//declination
i=37/3600*GAT;
delta=delta-i;
disp("declination of GAT is:");
a=modulo(delta*3600,60);
printf("seconds %.2f",a);
b=modulo(delta*3600-a,3600)/60;
printf(" minutes %i",b);
c=(delta*3600-b*60-a)/3600;
printf(" degrees %i",c);
//part2
pi=3.14159;
p=90-delta;//co-declination
altitude=23+15/60+20/3600;//altitude of sun
i2=2/60+12/3600;//error due to refraction
i3=8/3600;//error due to parallax
altitude=altitude-i2+i3;
c=90-55-46/60-12/3600;//colatitude
z=90-altitude;//co altitude
s=(p+z+c)/2;
s1=s-c;
s2=s-p;
s3=s-z;
A=2*atan(sqrt(sin(s3*pi/180)*sin(s1*pi/180)/sin(s*pi/180)/sin(s2*pi/180)));
A=A*180/pi;
disp("azimuth of star is:");
a=modulo(A*3600,60);
printf("seconds %.2f",a);
b=modulo(A*3600-a,3600)/60;
printf(" minutes %i",b);
c=(A*3600-b*60-a)/3600;
printf(" degrees %i",c);
clear
|
d801267eeb1cb70642a1ce3792efcc5e51cc14d6 | 42fdf741bf64ea2e63d1546bb08356286f994505 | /test_20160517_xor_with_mismatchmap/mismatchmap_summation.sce | 3d2f6012f0f9c55151ec986efd15dece4c5aedf5 | [] | no_license | skim819/RASP_Workspace_sihwan | 7e3cd403dc3965b8306ec203007490e3ea911e3b | 0799e146586595577c8efa05c647b8cb92b962f4 | refs/heads/master | 2020-12-24T05:22:25.775823 | 2017-04-01T22:15:18 | 2017-04-01T22:15:18 | 41,511,563 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 380 | sce | mismatchmap_summation.sce | aaaaa=csvRead('/home/ubuntu/rasp30/prog_assembly/libs/chip_parameters/mismatch_map/mismatch_map_chip21');
bbbbb=csvRead('/home/ubuntu/rasp30/prog_assembly/work/calibration_step4/mmap_data_files/Vto_mismatch_data');
aaaaa(1:36,3)=aaaaa(1:36,3)+bbbbb(1:36,3);
aaaaa(1:36,:)
csvWrite(aaaaa,'/home/ubuntu/rasp30/prog_assembly/libs/chip_parameters/mismatch_map/mismatch_map_chip21');
|
37edbd8a54078dbf367699f9d288a56d98e727a3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /331/DEPENDENCIES/F_test.sci | 3fdeaccbb0dea3cc0177c63edc26d35788048798 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 254 | sci | F_test.sci | function [F]=F_test(Alpha,Test)
if Alpha ==0.05 then
if (Test==1 |Test==2) then
F = 2.65
else
F = [0.403,2.62]
end
elseif Alpha ==0.01
F = 0.176;
end
endfunction |
abc07d78032236c26a6e85232231ba428bdd454e | 449d555969bfd7befe906877abab098c6e63a0e8 | /788/CH9/EX9.1.b/9_1_soln.sce | db94780e1842664e99e5742e650dc93315b43d75 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,170 | sce | 9_1_soln.sce | clc;
pathname=get_absolute_file_path('9_1_soln.sce')
filename=pathname+filesep()+'9_1_data.sci'
exec(filename)
// Solution:
// cylinder speed during extending stroke,
vp_ext=(Qp*231)/(Ar*60); //in/s
// load carrying capacity during extending stroke,
Fload_ext=p*Ar; //lb
// power delivered to load during extending stroke,
Power_ext=(Fload_ext*vp_ext)/(550*12); //HP
// cylinder speed during retracting stroke,
vp_ret=(Qp*231)/((Ap-Ar)*60); //in/s
// load carrying capacity during retracting stroke,
Fload_ret=p*(Ap-Ar); //lb
// power delivered to load during retracting stroke,
Power_ret=(Fload_ext*vp_ext)/(550*12); //HP
// Results:
printf("\n Results: ")
printf("\n The cylinder speed during extending stroke is %.1f in/s.",vp_ext)
printf("\n The load carrying capacity during extending stroke is %.0f lb.",Fload_ext)
printf("\n The power delivered to load during extending stroke is %.1f HP.",Power_ext)
printf("\n The cylinder speed during retracting stroke is %.2f in/s.",vp_ret)
printf("\n The load carrying capacity during retracting stroke is %.0f lb.",Fload_ret)
printf("\n The power delivered to load during retracting stroke is %.1f HP.",Power_ret)
|
7ef02711b9d6843e241049cd9847156950a0e30b | 449d555969bfd7befe906877abab098c6e63a0e8 | /575/DEPENDENCIES/5_2_2.sci | 0ce83261b42e36725ccc722982d10c20e091a804 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 56 | sci | 5_2_2.sci | T=360+273 //Kelvin
P=3 //atm
Vdot=1100 //kg/h
M=58.1 |
d3b3bfab48e57ec4ba111642a833f32c558b9da7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /83/CH11/EX11.5/example_11_5.sce | 05f6869dd5de53245497803f1f70ee40b9f32beb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 805 | sce | example_11_5.sce | //Chapter 11
//Example 11.5
//page 413
//To find Double line to ground fault current and voltage of healthy phase
clc;clear;
Z1eq=0.09*%i;
Z2eq=0.075*%i;
Z0=(%i*0.1);
Ea=1;
a=(-0.5+%i*sqrt(3)/2);
//to find the sequence components of healthy phase
Ia1=Ea/(Z1eq+(Z2eq*Z0/(Z2eq+Z0)));
Va1=Ea-(Ia1*Z1eq);
Va2=Va1;
Va0=Va1;
Ia2=-(Va2/Z2eq);
Ia0=-(Va0/Z0);
I=[1 1 1;a^2 a 1;a a^2 1]*[Ia1; Ia2; Ia0];
//voltage of the healthy phase
Va=3*Va1;
//displaying the results
printf('Ia1=-j%0.3f\n',abs(Ia1));
printf(' Ia2=j%0.3f\n',abs(Ia2));
printf(' Ia0=j%0.3f\n\n',abs(Ia0));
printf(' Ia=%0.3f + j%0.3f\n',real(I(1,1)),imag(I(1,1)));
printf(' Ib=%0.3f + j%0.3f\n',real(I(2,1)),imag(I(2,1)));
printf(' Ic=%0.3f + j%0.3f\n\n',real(I(3,1)),imag(I(3,1)));
printf(' Voltage of the healthy phase Va=3Va1=%0.3f',Va); |
cf8d846bde601553ebff9702303e94a61d984de5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1826/CH18/EX18.8/ex18_8.sce | 4e78b292dfbb56f8b05f55091cf60251ef12da01 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 217 | sce | ex18_8.sce | // Example 18.8, page no-464
clear
clc
N=5*10^28 //m^-3
alfe=2*10^-40 //F m^2
eps=8.854*10^-12
P=N*alfe
E_ratio=1/(1-(P/(3*eps)))
printf("The ratio of the internal field to the applied field = %.4f",E_ratio)
|
b07b4b53ec444eb8b59695699d090a951f27eb2b | 449d555969bfd7befe906877abab098c6e63a0e8 | /991/CH9/EX9.12/Example9_12.sce | d73590dee4bf204c237d4c39c1e0341af4ecb676 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 735 | sce | Example9_12.sce | //Example 9.12. refer fig 9.56
clc
RS=50
RE=2*10^3
Ro=1*10^3
RL=4*10^3
VEE=6
VBE=0.7
RC=1000
VS=10*10^-3
format(5)
IE=(VEE-VBE)/RE
x1=IE*10^3
disp("We know that, IE = VEE-VBE / RE")
disp(x1,"Therefore, IE(mA) =")
re=0.026/IE
disp(re," Zb(ohm) = re(ohm) =")
Zi=(re*RE)/(re+RE)
disp(Zi," Zi(ohm) = re || RE =")
format(6)
Av=RC/re
disp(Av," Av = RC / re =")
x=Av*(re/(re+RS))*(RL/(RL+RC))
disp(x," VL / VS = Av*(re/re+RS)*(RL/RL+RS) =")
VL=x*VS
x2=VL*10^3
disp(x2," VL(in mV (rms)) = Av*VS =")
iL=VL/RL
format(5)
x3=iL*10^6
disp(x3," iL( in uA (rms)) = VL / RL =")
alpha=1
format(6)
y=alpha*(RS/(RS+re))*(RC/(RC+RL))
disp(y," iL / iS = alpha*(RS/RS+re)*(RC/RC+RL) =") |
7abfb2b35e867b14be80e31e713b15ddf3e32eee | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.3.1/Unix-Windows/scilab-2.3/macros/xdess/milk_drop.sci | 35691ee0e044283c962377dc858e51be578013c2 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 150 | sci | milk_drop.sci | function [z]=milk_drop(x,y)
// chute d'une goutte de lait.
//!
sq=x**2+y**2;
z= exp( exp(-sq).*(exp(cos(sq)**20)+8*sin(sq)**20+2*sin(2*(sq))**8) );
|
46096312150309f7f0e7142776df42caa9606ca2 | 717ddeb7e700373742c617a95e25a2376565112c | /1766/CH9/EX9.20/EX9_20.sce | 4c82fce49c69cd109b7daba118014ea063367e6f | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 1,440 | sce | EX9_20.sce | clc;funcprot(0);//Example 9.20
//Initilisation of Variables
r1=0.3;...//Radius of spherical tank in m
T1=100;...//Temparature of fluid in spherical tank in K
r2=0.5;...//Radius of spherical tank inside in m
T2=300;...//Temparature of fluid in spherical tank inside in K
e1=0.15;...//Emissivity of inner tank
e2=0.25;...//Emissivity of outer tank
rs=0.4;...//Radius of spherical shield in m
es=0.4;...//Emissivity of spherical plate
F12=1;....//shape factor of the spherical tank
R=5.67*10^-8;.....//Stefens boltsman constant
//calculations
A1=4*%pi*r1^2;...//Area of inside of spherical tank in m
A2=4*%pi*r2^2;...//Area of outside of spherical tank in m
As=4*%pi*rs^2;...//Area of outside of spherical tank in m
R1=(1-e1)/(A1*e1);.....//Resistance of Sperical tank inside in sq m
R12=1/(A1*F12);....//Resistance of both inner and outside of spherical tank in sq m
R12s=1/(As*F12);....//Resistance of both inner and outside of spherical t
R2=(1-e2)/(A2*e2);.....//Resistance of spherical tank outside in sq m
Rtoti=R1+R12+R2;....//Total Resistancein sq m
Rs=(1-es)/(As*es);.....//Resistance of spherical plate in sq m
Q12i=(R*(T1^4-T2^4))/Rtoti;.....//Rate of heat loss without sheild in W
Q12ii=(A1*R*(T1^4-T2^4))/((1/e1)+((r1/r2)*((1/e2)-1))+((r1/rs)*((2/es)-1)));....//Rate of heat loss with sheild in W
disp(Q12i,"Rate of heat loss without sheild in W:")
disp(Q12ii/100,"Rate of heat loss with sheild in W:")
|
957dad1c7cea9b7e54cc8a80929d9dad668a5262 | 449d555969bfd7befe906877abab098c6e63a0e8 | /680/CH10/EX10.17/10_17.sce | c6e04dd7421bb2aff9cdd76200a134ea55900c38 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 10_17.sce | //Problem 10.17:
//initializing the variables:
T = 1900;// in deg F
ea0 = 0
ea100 = 1
//calculation:
NHV0 = 0.3*(T-60)/(1 - (1+ ea0)*7.5E-4*0.3*(T-60))
NHV100 = 0.3*(T-60)/(1 - (1+ea100)*7.5E-4*0.3*(T-60))
printf("\n\nResult\n\n")
printf("\n NHV for 0 percent Excess air is %.0f Btu/lb and for 100 percent is %.0f Btu/lb",NHV0, NHV100) |
a6a1f15738f175778b32dc28bbb582c8d1a63cb6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1388/CH3/EX3.15/3_15.sce | 5ad9c1b99b4abd3402db6e5b353646d2324dea5a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 149 | sce | 3_15.sce | clc
//initialisation of variables
Hf= -196.5 //kcal
H= -399.14 //kcal
//CALCULATIONS
H1= H-Hf
//RESULTS
printf (' Enthalpy = %.1f kcal ',H1)
|
a3e837fb39ba9674db74ebfb97277a633a369bce | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/tweet/bow/bow.18_5.tst | 4818e0d9b1622285dd883586d943a8f0c58c2c74 | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 28,117 | tst | bow.18_5.tst | 18 7:3.0 8:0.25 12:1.0 15:0.16666666666666666 24:0.5 25:1.0 38:1.0 43:0.3333333333333333 64:1.0 67:0.3333333333333333 88:1.0 121:0.034482758620689655 241:2.0 269:1.0 285:1.0 292:0.5 296:2.0 740:1.0 746:1.0 1000:1.5 1375:1.0 1415:1.0 1448:2.0 1471:1.0 1773:1.0 2292:1.0 2347:1.0 2684:1.0 3296:1.0 3299:5.0 3302:0.047619047619047616 3503:1.0 3572:1.0 3730:1.0 4190:1.0 4191:1.0 4192:1.0 5018:1.0 5646:1.0 6087:1.0 6643:1.0
18 7:2.0 12:1.0 21:0.16666666666666666 43:0.3333333333333333 54:2.0 64:0.6666666666666666 67:0.3333333333333333 68:1.0 127:1.0 199:1.0 203:0.3333333333333333 241:2.0 285:1.0 292:0.25 296:1.0 483:1.0 523:1.0 740:1.0 778:1.0 1000:1.0 1228:1.0 1243:0.5 1375:1.0 1415:1.0 1448:1.0 1457:1.0 1595:1.0 1773:1.0 2347:1.0 3289:0.02857142857142857 3296:2.0 3299:5.0 3503:1.0 4190:1.0 4191:1.0 4192:1.0 6643:1.0 6690:1.0
18 236:0.5 727:1.0 1448:1.0 2655:1.0 3289:0.014285714285714285 3296:1.0 3302:0.047619047619047616 3321:0.5 3409:0.02631578947368421 3473:1.0 3476:1.0 3541:2.0 3568:0.5 3572:1.0 3583:1.0 3602:1.0 3689:1.0 3730:1.0 3801:1.0 3828:1.0 3915:1.0 4169:1.0 6367:1.0
18 7:1.0 134:0.5 197:1.0 298:0.5 452:1.0 762:1.0 1071:1.0 1448:1.0 1457:1.0 1985:1.0 3296:1.0 3302:0.047619047619047616 3382:1.0 3473:1.0 3541:1.0 3542:1.0 3907:1.0 4081:2.0 4301:0.5 4365:1.0 5473:1.0 5739:1.0
18 12:1.0 19:0.07142857142857142 20:0.5 21:0.16666666666666666 42:1.0 46:1.0 75:0.5 80:1.0 104:1.0 121:0.034482758620689655 134:0.25 198:1.0 250:1.0 281:1.0 366:1.0 641:1.0 727:1.0 890:1.0 1198:1.0 1389:0.5 1448:2.0 1646:1.0 3289:0.014285714285714285 3296:2.0 3302:0.09523809523809523 3344:1.0 3365:1.0 3828:1.0 5047:1.0 5164:1.0 6516:1.0 6585:1.0
18 8:0.25 12:1.0 20:0.5 21:0.3333333333333333 25:1.0 42:1.0 48:1.0 88:1.0 97:0.5 98:0.16666666666666666 188:1.0 292:0.25 296:1.0 534:1.0 1071:1.0 1346:1.0 1361:1.0 2463:1.0 3296:2.0 3334:0.04 3365:1.0 3409:0.02631578947368421 3451:1.0 3476:1.0 3537:1.0 3541:1.0 3590:1.0 3644:1.0 3791:1.0 4253:1.0 4315:1.0 5861:1.0 5933:1.0 6256:1.0 6369:1.0 6548:1.0
18 12:1.0 17:0.16666666666666666 19:0.07142857142857142 21:0.16666666666666666 38:3.0 55:0.14285714285714285 62:0.25 64:0.3333333333333333 68:1.0 121:0.034482758620689655 132:1.0 141:0.3333333333333333 173:0.5 365:1.0 451:1.0 534:1.0 906:1.0 1001:1.0 1341:1.0 1448:1.0 1457:1.0 1858:1.0 2490:1.0 3289:0.014285714285714285 3299:1.0 3378:1.0 3572:1.0 3590:1.0 3667:0.5 4055:1.0 4164:1.0 4166:1.0 4262:1.0 4325:1.0 4442:1.0 5495:1.0 5715:1.0
18 26:0.02127659574468085 55:0.14285714285714285 58:0.25 100:0.3333333333333333 121:0.034482758620689655 201:1.0 398:1.0 548:1.0 669:1.0 715:1.0 814:1.0 1067:1.0 1372:0.5 1448:1.0 2292:1.0 3289:0.014285714285714285 3296:1.0 3299:2.0 3321:0.5 3378:1.0 3460:1.0 3541:1.0 3583:1.0 3585:1.0 3689:1.0 3730:1.0 3827:0.5 4325:1.0 4497:0.5 5316:1.0 5330:1.0
18 8:0.25 12:3.0 20:0.5 38:1.0 48:1.0 51:0.5 55:0.14285714285714285 198:1.0 264:1.0 273:1.0 1226:1.0 1985:1.0 3289:0.014285714285714285 3296:1.0 3340:2.0 3378:1.0 3406:2.0 3537:1.0 3572:1.0 3582:1.0 3667:0.5 3689:1.0 3813:0.5 4059:1.0 4071:1.0 4503:1.0 5446:1.0 6358:1.0
18 12:1.0 64:0.3333333333333333 298:0.5 679:0.3333333333333333 1577:0.1 1985:1.0 3537:1.0 3572:1.0 3583:1.0 3590:1.0 3667:0.5 3827:0.5 3839:1.0 4059:1.0 4368:1.0 4398:1.0 4416:1.0 4427:1.0 5243:1.0 5715:2.0 6358:1.0 6373:1.0 6593:1.0
18 38:1.0 51:0.5 55:0.14285714285714285 75:0.5 116:0.07692307692307693 137:0.5 246:1.0 296:1.0 424:1.0 1198:1.0 1208:1.0 1285:1.0 1448:1.0 2463:1.0 2792:1.0 3296:1.0 3302:0.047619047619047616 3305:1.0 3334:0.04 3365:1.0 3378:2.0 3409:0.02631578947368421 3473:1.0 3537:1.0 3558:1.0 3595:2.0 3797:1.0 3798:1.0 3839:1.0 3865:1.0 5685:1.0
18 12:1.0 17:0.16666666666666666 38:1.0 199:1.0 275:1.0 281:1.0 908:0.3333333333333333 1448:1.0 1536:1.0 2670:1.0 3296:2.0 3302:0.047619047619047616 3334:0.04 3340:1.0 3344:1.0 3378:1.0 3409:0.02631578947368421 3420:1.0 3537:2.0 3541:1.0 3572:1.0 3583:1.0 3585:1.0 3879:1.0 4218:1.0 4651:1.0 4719:1.0 4846:1.0 6196:1.0
18 12:2.0 24:0.5 38:2.0 46:1.0 67:0.3333333333333333 116:0.07692307692307693 202:0.25 236:0.5 281:1.0 499:1.0 669:1.0 818:1.0 991:1.0 1448:1.0 3289:0.02857142857142857 3296:1.0 3365:1.0 3404:1.0 3409:0.02631578947368421 3441:1.0 3515:1.0 3585:1.0 3667:0.5 3689:2.0 3801:1.0 3802:1.0 3922:0.5 4218:1.0 4354:1.0
18 8:0.25 18:0.3333333333333333 19:0.07142857142857142 21:0.16666666666666666 64:0.3333333333333333 121:0.034482758620689655 126:0.5 134:0.25 269:1.0 278:0.5 292:0.5 653:0.5 877:1.0 1369:1.0 1448:1.0 3289:0.02857142857142857 3296:1.0 3644:1.0 3667:0.5 3730:1.0 3827:0.5 5077:1.0 5343:1.0 5417:1.0
18 26:0.02127659574468085 94:1.0 727:1.0 862:1.0 1208:1.0 1448:1.0 1457:2.0 1536:1.0 3289:0.02857142857142857 3296:1.0 3299:1.0 3378:1.0 3387:1.0 3389:0.25 3441:1.0 3685:1.0 3802:1.0 3997:1.0 4059:1.0 4590:1.0 4975:1.0 5286:1.0 5417:1.0 5732:1.0 6202:1.0
18 7:1.0 12:1.0 55:0.14285714285714285 100:0.3333333333333333 116:0.07692307692307693 121:0.034482758620689655 141:0.3333333333333333 727:1.0 1202:1.0 1448:1.0 3289:0.014285714285714285 3296:1.0 3334:0.04 3360:1.0 3450:0.058823529411764705 3488:1.0 3874:1.0 3876:1.0 4189:1.0 4320:1.0 5511:1.0 6691:1.0
18 7:1.0 12:1.0 116:0.07692307692307693 1448:1.0 1588:1.0 3296:1.0 3301:0.14285714285714285 3359:1.0 4321:1.0 4700:1.0
18 8:0.25 12:2.0 19:0.07142857142857142 21:0.16666666666666666 38:1.0 48:1.0 64:0.3333333333333333 68:1.0 112:1.0 121:0.06896551724137931 126:0.5 154:0.3333333333333333 269:1.0 292:0.5 388:1.0 877:2.0 1037:1.0 1471:1.0 1577:0.1 2283:1.0 3296:1.0 3301:0.14285714285714285 3334:0.04 3450:0.058823529411764705 3483:1.0 3579:1.0 3876:1.0 4677:1.0 4817:1.0 4861:1.0 4904:1.0 5077:1.0
18 12:1.0 19:0.07142857142857142 48:1.0 64:0.3333333333333333 88:1.0 95:1.0 97:0.5 121:0.034482758620689655 315:2.0 388:1.0 429:1.0 1453:1.0 2390:1.0 3289:0.04285714285714286 3296:2.0 3409:0.02631578947368421 3643:1.0 4904:1.0 5674:1.0 5861:1.0
18 7:1.0 19:0.14285714285714285 21:0.3333333333333333 26:0.02127659574468085 38:2.0 55:0.2857142857142857 64:0.3333333333333333 80:1.0 116:0.07692307692307693 121:0.06896551724137931 154:0.3333333333333333 231:1.0 251:0.5 292:0.25 593:1.0 1115:0.5 1198:1.0 1228:1.0 1457:1.0 3186:1.0 3289:0.02857142857142857 3296:1.0 3334:0.04 3390:1.0 3487:1.0 3660:1.0 3876:1.0 4018:1.0 4404:1.0 4650:1.0 4825:1.0 4886:1.0 5129:1.0 5708:1.0
18 7:1.0 9:0.3333333333333333 12:1.0 19:0.14285714285714285 21:0.16666666666666666 38:1.0 43:0.3333333333333333 55:0.14285714285714285 64:0.3333333333333333 137:0.5 215:1.0 2063:1.0 2967:1.0 3289:0.014285714285714285 3296:2.0 3409:0.05263157894736842 3473:1.0 3742:0.3333333333333333 3834:1.0 3865:2.0 3874:1.0 4305:1.0 5003:1.0
18 21:0.16666666666666666 26:0.02127659574468085 68:1.0 116:0.07692307692307693 727:1.0 1198:3.0 1457:1.0 2347:1.0 3289:0.02857142857142857 3296:2.0 3306:1.0 3448:0.2 3450:0.058823529411764705 3504:1.0 3602:1.0 3634:1.0 3793:1.0 3871:1.0 3876:1.0 4266:0.3333333333333333 4353:1.0 4826:1.0
18 12:1.0 19:0.07142857142857142 38:1.0 121:0.034482758620689655 424:1.0 715:1.0 1448:1.0 1494:1.0 1539:1.0 1709:0.5 2390:1.0 3289:0.014285714285714285 3296:1.0 3299:1.0 3302:0.047619047619047616 3317:1.0 3409:0.02631578947368421 3661:0.5 3742:0.3333333333333333 3865:1.0 3899:1.0 4224:1.0 4301:0.5 4305:1.0 6261:1.0
18 7:1.0 26:0.02127659574468085 48:1.0 55:0.2857142857142857 67:0.6666666666666666 68:1.0 87:0.3333333333333333 116:0.07692307692307693 121:0.06896551724137931 134:0.5 136:1.0 147:1.0 181:1.0 296:1.0 483:1.0 1000:0.5 1198:1.0 1370:1.0 1448:2.0 2177:1.0 3013:1.0 3209:1.0 3289:0.02857142857142857 3296:2.0 3299:1.0 3627:1.0 3660:1.0
18 1448:1.0 3289:0.014285714285714285 3296:1.0 3334:0.04 3365:1.0 3504:1.0 3537:2.0 3538:1.0 3582:1.0 3644:1.0 3672:1.0 4188:1.0 5308:1.0
18 8:0.25 19:0.07142857142857142 23:1.0 26:0.02127659574468085 44:1.0 75:0.5 121:0.034482758620689655 210:1.0 1457:1.0 3232:1.0 3289:0.02857142857142857 3299:1.0 3348:1.0 3352:1.0 3483:1.0 3572:1.0 3583:2.0 3606:1.0 3644:1.0 3682:1.0 3683:1.0 3700:0.5 3730:1.0 3915:1.0 3963:0.5 4047:1.0 4677:1.0 4776:1.0 5308:1.0 5857:1.0 6006:1.0 6591:1.0 6628:1.0
18 7:1.0 11:0.5 12:1.0 15:0.16666666666666666 20:0.5 21:0.16666666666666666 55:0.14285714285714285 64:0.3333333333333333 68:2.0 116:0.07692307692307693 121:0.034482758620689655 126:0.5 134:0.25 147:1.0 292:0.25 354:1.0 740:1.0 1000:0.5 1457:1.0 1490:1.0 1773:0.5 3208:1.0 3289:0.02857142857142857 3296:1.0 3595:1.0 3730:1.0 3801:1.0 3802:1.0 3813:0.5 3817:1.0 4027:1.0 4690:1.0 4751:1.0 5410:1.0 5611:1.0
18 7:1.0 20:0.5 22:1.0 26:0.02127659574468085 44:1.0 45:0.5 48:1.0 64:0.3333333333333333 100:0.3333333333333333 134:0.75 1000:0.5 1375:1.0 1637:1.0 1773:0.5 3209:1.0 3289:0.04285714285714286 3299:1.0 3352:1.0 3365:1.0 3378:1.0 3686:1.0 3700:0.5 3893:1.0 4199:1.0 4595:0.5 6255:1.0
18 12:1.0 26:0.02127659574468085 64:1.0 97:0.5 178:0.5 561:1.0 999:1.0 1588:1.0 2257:1.0 2942:1.0 3289:0.07142857142857142 3296:2.0 3427:1.0 3865:1.0 5806:1.0
18 7:2.0 9:0.3333333333333333 12:1.0 18:0.3333333333333333 21:0.3333333333333333 26:0.02127659574468085 55:0.14285714285714285 62:0.25 64:0.3333333333333333 68:2.0 98:0.16666666666666666 112:1.0 116:0.07692307692307693 279:0.3333333333333333 827:1.0 885:1.0 1087:1.0 1198:1.0 1370:1.0 1405:1.0 2177:1.0 3289:0.014285714285714285 3299:1.0 3305:1.0 3473:1.0 3726:1.0 4022:1.0 5183:1.0 5184:1.0 6262:1.0
18 26:0.02127659574468085 178:0.5 778:1.0 1457:1.0 1629:1.0 2238:1.0 3289:0.02857142857142857 3299:1.0 3321:0.5 3521:1.0 3700:0.5 4398:1.0 5412:1.0 5493:1.0 5806:1.0
18 7:2.0 8:0.25 18:0.3333333333333333 20:0.5 54:1.0 55:0.14285714285714285 62:0.25 64:0.3333333333333333 75:0.5 117:0.5 121:0.034482758620689655 127:1.0 176:1.0 203:0.3333333333333333 205:2.0 446:0.5 1228:1.0 1421:0.5 1636:1.0 3289:0.014285714285714285 3296:3.0 3299:1.0 3302:0.047619047619047616 3305:1.0 3317:1.0 3340:1.0 3409:0.05263157894736842 3473:1.0 4224:1.0 4928:1.0 5183:1.0
18 9:0.3333333333333333 26:0.02127659574468085 46:1.0 97:0.5 98:0.16666666666666666 117:0.5 134:0.5 199:1.0 201:1.0 285:1.0 292:0.25 370:1.0 387:1.0 484:1.0 641:1.0 664:0.5 1049:1.0 1246:1.0 2063:1.0 2250:1.0 3289:0.02857142857142857 3296:2.0 3299:2.0 3350:1.0 3742:0.3333333333333333 3801:1.0 4928:1.0 4986:1.0 5340:1.0 5739:1.0
18 12:2.0 24:0.5 48:1.0 134:0.25 1267:1.0 2134:1.0 3289:0.04285714285714286 3296:2.0 3305:1.0 3394:0.25 3409:0.02631578947368421 3473:1.0 3582:1.0 3742:0.3333333333333333 3979:1.0 4046:1.0 4051:1.0 4431:1.0 4506:1.0 5165:1.0 5184:1.0 5260:1.0
18 7:1.0 8:0.25 21:0.16666666666666666 38:1.0 48:1.0 64:0.3333333333333333 94:1.0 121:0.034482758620689655 202:0.25 548:1.0 596:0.3333333333333333 1000:0.5 1208:1.0 1448:2.0 1471:1.0 3289:0.02857142857142857 3296:3.0 3302:0.047619047619047616 3409:0.02631578947368421 4278:1.0 6010:1.0 6087:1.0 6643:1.0
18 17:0.16666666666666666 21:0.16666666666666666 24:0.5 38:1.0 55:0.14285714285714285 80:1.0 98:0.16666666666666666 205:1.0 495:1.0 1448:1.0 1629:1.0 2177:1.0 3289:0.014285714285714285 3296:1.0 3360:1.0 3367:1.0 3389:0.25 3394:0.25 3521:1.0 3568:0.5 3572:1.0 3583:1.0 3606:1.0 3706:1.0 3725:1.0 3730:1.0 3828:1.0 3901:1.0 4398:1.0 4558:1.0 4691:0.5 5473:1.0
18 20:0.5 38:1.0 55:0.2857142857142857 64:0.3333333333333333 134:0.25 205:1.0 279:0.3333333333333333 310:1.0 333:1.0 537:1.0 827:1.0 1457:2.0 1471:1.0 3289:0.02857142857142857 3296:1.0 3360:1.0 3409:0.02631578947368421 3555:1.0 3644:1.0 5340:1.0 6087:1.0 6643:1.0
18 24:0.5 548:1.0 1037:1.0 1448:1.0 1577:0.1 3209:1.0 3284:0.14285714285714285 3289:0.05714285714285714 3296:2.0 3739:1.0 4278:1.0
18 20:0.5 42:1.0 55:0.14285714285714285 100:0.3333333333333333 116:0.07692307692307693 279:0.3333333333333333 310:1.0 827:1.0 1228:1.0 1372:0.5 3289:0.014285714285714285 3296:1.0 3299:1.0 3302:0.047619047619047616 3726:1.0 4126:1.0 4512:1.0 4677:1.0 5094:1.0 5674:1.0 6634:1.0
18 23:1.0 38:1.0 67:0.3333333333333333 134:0.25 147:1.0 181:1.0 298:0.5 1448:2.0 2484:1.0 3284:0.14285714285714285 3286:1.0 3289:0.014285714285714285 3296:2.0 3299:2.0 3321:0.5 3409:0.02631578947368421 3521:1.0 3742:0.3333333333333333 3914:1.0 4152:1.0 4545:1.0 4591:1.0
18 12:1.0 24:0.5 1457:1.0 1577:0.1 1831:2.0 3289:0.02857142857142857 3296:2.0 3359:1.0 3394:0.25 3460:1.0 3580:1.0 3581:0.3333333333333333 3627:1.0 3857:1.0 3868:1.0 3875:1.0 3999:1.0 4259:1.0 4320:1.0 4379:1.0 4528:1.0 4753:1.0 5010:1.0 5038:1.0 5183:1.0 5184:1.0 5868:1.0 6001:1.0 6628:1.0
18 19:0.07142857142857142 20:0.5 26:0.02127659574468085 46:1.0 80:1.0 121:0.06896551724137931 126:1.0 134:0.25 135:1.0 141:0.3333333333333333 254:1.0 885:1.0 906:1.0 1825:1.0 1987:1.0 3302:0.047619047619047616 3394:0.25 4126:1.0 4343:1.0 5015:1.0
18 11:0.5 18:0.3333333333333333 19:0.07142857142857142 20:0.5 38:1.0 80:1.0 88:1.0 105:1.0 121:0.13793103448275862 134:0.25 135:1.0 199:2.0 253:1.0 279:0.3333333333333333 484:1.0 746:1.0 827:1.0 870:1.0 892:2.0 1115:0.5 1126:0.5 1339:1.0 1372:0.5 3289:0.02857142857142857 3299:3.0 3303:1.0 3352:1.0 3450:0.058823529411764705 3618:2.0 4321:1.0 4622:1.0 4634:0.5 4745:1.0 5602:1.0
18 7:1.0 80:1.0 97:0.5 112:1.0 133:0.3333333333333333 892:1.0 3289:0.02857142857142857 3334:0.04 3348:1.0 3378:1.0 3409:0.02631578947368421 3450:0.058823529411764705 3473:1.0 3581:0.3333333333333333 3618:1.0 3711:1.0 3712:1.0 3713:1.0 3876:1.0 4055:1.0 4277:1.0 4414:1.0 4735:1.0 5516:1.0 6340:1.0 6749:1.0
18 11:0.5 44:1.0 45:0.5 48:1.0 55:0.14285714285714285 178:0.5 298:0.5 424:1.0 537:1.0 727:2.0 1457:1.0 2655:1.0 3289:0.02857142857142857 3296:1.0 3306:1.0 3358:1.0 3419:1.0 3450:0.058823529411764705 3473:1.0 3801:1.0 3871:1.0 3876:1.0 3895:1.0 3963:0.5 4056:1.0 4057:1.0 4266:0.3333333333333333 4318:1.0 4506:2.0 4826:1.0 5398:1.0 5806:1.0
18 4:0.5 7:1.0 12:1.0 19:0.07142857142857142 20:0.5 22:1.0 38:3.0 51:0.5 62:0.25 121:0.06896551724137931 134:0.25 136:1.0 141:0.3333333333333333 173:0.5 246:2.0 281:1.0 529:1.0 885:1.0 892:3.0 2490:1.0 2571:1.0 3296:1.0 3299:1.0 3480:1.0 3548:1.0 3618:2.0 3626:1.0 3630:1.0 3631:1.0 3633:1.0 3634:1.0 3691:1.0 3693:1.0 3694:1.0 3695:1.0 4155:1.0 4179:1.0 5485:1.0 5634:1.0
18 51:0.5 136:1.0 141:0.3333333333333333 176:1.0 219:1.0 3299:1.0 3380:1.0 3429:1.0 3581:0.3333333333333333 3644:1.0 3730:1.0 3820:1.0 3931:1.0 3937:1.0 5020:1.0 6017:1.0 6023:1.0 6265:1.0 6471:1.0 6473:1.0
18 18:0.3333333333333333 21:0.16666666666666666 42:2.0 116:0.07692307692307693 121:0.034482758620689655 279:0.3333333333333333 292:0.25 827:1.0 1208:1.0 1448:1.0 3165:1.0 3289:0.014285714285714285 3296:1.0 3299:2.0 3626:1.0 3793:1.0 3805:1.0 4524:1.0 5268:1.0 5732:1.0 5759:1.0
18 6:0.25 8:0.25 12:1.0 20:1.0 48:1.0 62:0.25 68:1.0 98:0.16666666666666666 100:0.3333333333333333 117:0.5 121:0.034482758620689655 134:0.25 251:0.5 638:1.0 907:2.0 1001:1.0 1030:1.0 1087:1.0 2238:1.0 3289:0.014285714285714285 3296:2.0 3299:2.0 3348:1.0 3350:1.0 3482:1.0 3520:1.0 3527:1.0 3783:1.0 3982:1.0 5505:1.0 5847:1.0
18 8:0.25 21:0.16666666666666666 98:0.16666666666666666 100:0.3333333333333333 188:1.0 215:1.0 281:1.0 303:1.0 727:1.0 907:1.0 1208:1.0 1234:1.0 1448:1.0 2238:1.0 3289:0.014285714285714285 3296:1.0 3299:1.0 3409:0.02631578947368421 3462:1.0 3463:1.0 3982:1.0 4338:1.0 4837:1.0 5516:2.0 6374:1.0
18 8:0.25 12:1.0 38:1.0 100:0.3333333333333333 137:0.5 281:1.0 727:1.0 907:1.0 1030:1.0 1042:1.0 2238:1.0 2655:1.0 3289:0.02857142857142857 3296:1.0 3299:1.0 3394:0.25 3801:1.0 4318:1.0 4664:1.0 5166:1.0
18 12:1.0 38:1.0 68:1.0 137:0.5 236:0.5 292:0.5 862:1.0 1208:1.0 1634:1.0 1637:1.0 1721:2.0 2655:1.0 3289:0.02857142857142857 3296:2.0 3305:1.0 3340:1.0 3377:1.0 3473:1.0 3771:1.0 3801:1.0 3909:1.0 4128:1.0 4318:1.0 4503:1.0 4962:1.0 6054:1.0
18 4:0.5 7:1.0 12:1.0 20:0.5 41:1.0 43:0.3333333333333333 46:1.0 48:1.0 64:0.3333333333333333 88:1.0 98:0.16666666666666666 118:0.3333333333333333 121:0.034482758620689655 122:1.0 134:0.25 141:0.3333333333333333 173:0.5 201:2.0 231:1.0 289:0.16666666666666666 740:2.0 874:1.0 1228:1.0 1261:1.0 1457:1.0 2143:1.0 3289:0.014285714285714285 3296:1.0 3302:0.047619047619047616 3365:1.0 3476:1.0 3548:1.0 4027:1.0 4266:0.3333333333333333 4344:1.0 4372:1.0 5711:1.0 5736:1.0
18 4:0.5 12:2.0 236:0.5 484:1.0 1448:1.0 2380:1.0 3296:3.0 3305:1.0 3334:0.04 3382:1.0 3473:1.0 5216:1.0 6087:1.0
18 6:0.25 12:1.0 19:0.07142857142857142 21:0.16666666666666666 38:2.0 55:0.42857142857142855 67:0.3333333333333333 87:0.3333333333333333 176:1.0 241:1.0 250:1.0 315:1.0 767:2.0 3248:2.0 3289:0.014285714285714285 3299:1.0 3521:1.0 3700:0.5 3783:1.0 3901:1.0 4223:1.0
18 1208:1.0 3317:1.0 3365:1.0 3543:1.0 3568:0.5 3827:0.5 3996:1.0 4024:1.0 4042:1.0 4303:1.0 4673:1.0 4677:1.0 5520:1.0 5715:1.0
18 1208:1.0 1448:1.0 3394:0.25 3476:1.0 3584:1.0 3592:1.0 3602:1.0 3667:0.5 3700:0.5 4690:1.0 4975:1.0 5056:0.5 5822:1.0
18 236:0.5 1214:1.0 1448:1.0 1634:1.0 3289:0.02857142857142857 3296:3.0 3299:1.0 3365:1.0 3376:1.0 3409:0.02631578947368421
18 4:0.5 116:0.07692307692307693 1208:1.0 1457:1.0 3289:0.014285714285714285 3296:2.0 3520:1.0 3521:1.0 3537:1.0 3541:1.0 3865:1.0 3901:1.0 4142:1.0 4422:1.0 4527:1.0 6369:1.0 6529:1.0 6640:1.0
18 6:0.25 7:1.0 12:1.0 17:0.16666666666666666 24:1.0 43:0.3333333333333333 87:0.3333333333333333 98:0.16666666666666666 104:1.0 137:0.5 218:2.0 219:1.0 1161:1.0 1752:1.0 3289:0.04285714285714286 3296:1.0 3299:1.0 3303:1.0 3409:0.02631578947368421 3431:1.0 4554:1.0 4731:1.0 5183:1.0
18 9:0.3333333333333333 12:2.0 24:0.5 48:2.0 87:0.3333333333333333 88:1.0 121:0.034482758620689655 198:1.0 201:1.0 203:0.3333333333333333 236:0.5 289:0.16666666666666666 296:1.0 379:1.0 410:1.0 647:1.0 1059:1.0 1261:1.0 1468:1.0 2772:1.0 3359:1.0 3801:1.0 6592:1.0
18 17:0.16666666666666666 20:0.5 88:1.0 1030:1.0 1042:1.0 1448:1.0 3296:2.0 3409:0.05263157894736842 3783:1.0 3865:1.0 4008:1.0 6202:1.0
18 12:2.0 38:2.0 62:0.25 462:1.0 3289:0.014285714285714285 3296:1.0 3409:0.02631578947368421 3801:1.0 3802:1.0 5920:1.0 6153:1.0
18 8:0.25 9:0.3333333333333333 55:0.14285714285714285 64:0.3333333333333333 112:1.0 198:1.0 534:1.0 3289:0.014285714285714285 3296:2.0 3365:1.0 3409:0.02631578947368421 3462:1.0 3463:1.0 3476:1.0 3865:1.0 5052:1.0
18 12:1.0 20:0.5 21:0.3333333333333333 24:0.5 48:1.0 95:1.0 181:1.0 236:0.5 596:0.3333333333333333 781:1.0 1001:1.0 1030:1.0 3289:0.014285714285714285 3296:1.0 3783:1.0 4527:1.0
18 38:1.0 40:0.5 198:1.0 289:0.16666666666666666 781:1.0 1208:1.0 1448:1.0 1637:1.0 1713:1.0 3289:0.014285714285714285 3296:2.0 3299:1.0 3394:0.25 3504:1.0 3765:1.0 3805:1.0 3865:1.0 3899:1.0 4046:1.0 4062:1.0 4310:1.0 5038:1.0 5085:1.0 5754:1.0 5891:1.0 6346:1.0 6682:1.0
18 4:0.5 20:1.0 38:1.0 46:1.0 116:0.07692307692307693 122:1.0 126:0.5 154:0.3333333333333333 173:0.5 201:2.0 3080:1.0 3289:0.014285714285714285 3296:2.0 3299:1.0 3623:1.0 3774:1.0 3915:1.0 5732:1.0
18 17:0.16666666666666666 20:1.0 64:0.3333333333333333 121:0.034482758620689655 134:0.25 181:1.0 210:1.0 534:1.0 1001:1.0 1361:1.0 1457:1.0 3289:0.014285714285714285 3290:0.5 3296:1.0 3394:0.25 3626:1.0 3983:1.0 5461:1.0 5520:1.0
18 6:0.25 8:0.25 17:0.16666666666666666 24:0.5 64:0.3333333333333333 198:1.0 307:1.0 366:1.0 370:1.0 506:1.0 1001:1.0 1208:1.0 1251:1.0 1372:0.5 1457:1.0 2134:1.0 3289:0.014285714285714285 3296:2.0 3302:0.047619047619047616 3334:0.04 3395:1.0 3789:1.0 3812:1.0 4527:1.0 4654:1.0 4724:1.0 5048:1.0 5518:1.0
18 7:2.0 19:0.07142857142857142 24:1.0 26:0.0425531914893617 44:1.0 55:0.14285714285714285 62:0.25 64:0.3333333333333333 80:1.0 116:0.07692307692307693 121:0.06896551724137931 158:0.3333333333333333 281:2.0 292:0.25 296:1.0 315:1.0 537:1.0 1065:0.5 1208:1.0 1228:1.0 1235:1.0 1448:1.0 2292:1.0 2858:1.0 3296:1.0 3302:0.047619047619047616 3394:0.5 3409:0.02631578947368421 3660:1.0 5868:2.0
18 6:0.25 12:2.0 21:0.3333333333333333 26:0.02127659574468085 38:1.0 40:0.5 63:1.0 116:0.07692307692307693 121:0.034482758620689655 126:0.5 296:1.0 596:0.3333333333333333 653:0.5 814:2.0 1235:1.0 1370:1.0 1405:1.0 1634:1.0 2279:1.0 3289:0.02857142857142857 3296:1.0 3302:0.047619047619047616 3317:1.0 3350:1.0 3389:0.25 3436:1.0 4414:1.0
18 8:0.25 12:1.0 21:0.16666666666666666 26:0.0425531914893617 38:1.0 40:0.5 67:0.3333333333333333 80:1.0 88:1.0 121:0.13793103448275862 203:0.3333333333333333 236:0.5 285:1.0 296:1.0 534:1.0 885:1.0 1000:0.5 1405:1.0 3289:0.014285714285714285 3296:1.0 3302:0.047619047619047616 3352:1.0 3409:0.05263157894736842 3520:1.0 3627:1.0 4505:1.0 5268:1.0 6262:1.0
18 20:0.5 26:0.02127659574468085 310:1.0 387:1.0 1372:0.5 2106:1.0 3289:0.04285714285714286 3296:4.0 3299:1.0 3730:1.0 3785:1.0 4055:1.0 5354:1.0 6363:1.0
18 12:1.0 19:0.07142857142857142 21:0.16666666666666666 98:0.16666666666666666 154:0.3333333333333333 292:0.25 502:1.0 1267:1.0 1448:1.0 1985:1.0 3285:0.5 3289:0.014285714285714285 3290:0.5 3296:2.0 3302:0.047619047619047616 3334:0.04 3380:1.0 3537:1.0 3568:0.5 3885:1.0 3938:1.0 4094:1.0 4528:1.0 4539:1.0 5183:1.0 5184:1.0 6162:1.0
18 8:0.25 20:0.5 46:1.0 98:0.16666666666666666 154:0.3333333333333333 1448:2.0 2307:1.0 3289:0.02857142857142857 3296:2.0 3302:0.047619047619047616 3571:1.0 3582:1.0 3899:1.0 3953:1.0 4046:1.0 4324:1.0 4589:1.0 5099:1.0 5766:1.0 5767:1.0
18 46:1.0 55:0.14285714285714285 100:0.3333333333333333 183:1.0 269:1.0 285:1.0 293:0.5 296:1.0 641:1.0 664:0.5 1048:1.0 1049:1.0 1228:4.0 1344:1.0 1448:1.0 2250:1.0 3289:0.02857142857142857 3296:1.0 3299:3.0 3345:1.0 3468:0.5 3730:1.0 3801:2.0 3802:1.0 4055:1.0 5048:1.0 5077:1.0 6256:1.0
18 73:1.0 116:0.07692307692307693 1208:1.0 2441:1.0 3289:0.02857142857142857 3296:1.0 3365:1.0 3415:2.0 3458:1.0 3518:1.0 3537:1.0 3542:1.0 3583:2.0 3877:0.3333333333333333 4591:1.0 4732:1.0 5336:1.0 5337:1.0 5417:1.0 6273:1.0 6521:1.0 6604:1.0
18 6:0.25 20:0.5 116:0.07692307692307693 1421:0.5 1448:1.0 1577:0.1 1588:1.0 1752:1.0 2283:1.0 3074:1.0 3296:2.0 3321:0.5 3334:0.04 3359:1.0 3365:1.0 3394:0.25 3414:1.0 3416:1.0 3476:1.0 4041:1.0 4281:1.0 4700:1.0 5004:1.0 6144:1.0
18 17:0.16666666666666666 21:0.3333333333333333 24:0.5 48:1.0 109:1.0 116:0.07692307692307693 134:0.25 137:0.5 205:1.0 564:1.0 596:0.3333333333333333 1344:1.0 1375:1.0 1405:1.0 1457:1.0 3289:0.014285714285714285 3296:2.0 3302:0.09523809523809523 3317:2.0 3334:0.04 3394:0.25 3409:0.02631578947368421 3604:1.0 3865:1.0 3915:1.0 4046:1.0 4673:1.0 6370:1.0 6691:1.0
18 5:0.125 19:0.07142857142857142 20:0.5 38:1.0 55:0.14285714285714285 58:0.25 121:0.034482758620689655 356:0.5 859:0.5 862:2.0 1016:1.0 1344:1.0 1448:1.0 1865:1.0 3289:0.02857142857142857 3296:2.0 3345:1.0 3394:0.5 3409:0.02631578947368421 3507:1.0 3537:1.0 3583:1.0 3592:1.0 3839:1.0 3865:1.0 3907:1.0 3914:1.0 3916:0.5 4094:1.0 5686:1.0 5687:1.0 5715:1.0 6254:1.0
18 12:1.0 40:0.5 46:1.0 449:1.0 1448:2.0 1577:0.1 1595:1.0 2063:1.0 3288:1.0 3296:3.0 3299:1.0 3334:0.04 3409:0.02631578947368421 3602:1.0 3627:1.0 4521:1.0 5165:1.0
18 24:0.5 26:0.02127659574468085 98:0.16666666666666666 1087:1.0 3285:0.5 3289:0.014285714285714285 3296:1.0 3299:1.0 3302:0.047619047619047616 3458:1.0 3583:2.0 3614:1.0 4385:1.0 5183:1.0 5184:1.0
18 4:0.5 8:0.25 38:1.0 116:0.07692307692307693 215:3.0 310:1.0 580:1.0 1001:1.0 1113:1.0 1352:1.0 1448:2.0 1457:1.0 2655:1.0 3289:0.02857142857142857 3296:6.0 3334:0.08 3344:1.0 3378:1.0 3403:1.0 3580:1.0 3595:1.0 3644:1.0 4189:1.0 4414:1.0 4569:1.0 5887:1.0
18 4:0.5 8:0.5 121:0.034482758620689655 133:0.3333333333333333 215:2.0 285:1.0 385:1.0 558:1.0 1208:1.0 1405:1.0 3296:5.0 3302:0.047619047619047616 3334:0.04 3344:1.0 3378:1.0 3394:0.5 3415:1.0 3450:0.058823529411764705 3604:1.0 3644:1.0 3673:1.0 3748:1.0 3852:0.5 3865:1.0 4414:1.0 4569:1.0 5445:1.0 6293:1.0 6481:1.0
18 4:0.5 7:1.0 11:0.5 12:1.0 24:0.5 121:0.034482758620689655 203:0.3333333333333333 524:0.5 1208:1.0 1415:1.0 1448:1.0 1985:1.0 3289:0.02857142857142857 3296:3.0 3541:1.0 3595:1.0 3597:1.0 3644:1.0 3667:0.5 3689:1.0 3777:1.0 4031:1.0 4094:1.0 4591:1.0 5099:1.0 5269:1.0
18 4:0.5 71:1.0 310:1.0 1016:1.0 1372:0.5 3285:0.5 3289:0.014285714285714285 3296:2.0 3334:0.04 3378:1.0 3404:1.0 3450:0.058823529411764705 3583:1.0 3595:1.0 3598:1.0 3693:1.0 4094:1.0 4590:1.0 5175:1.0 5477:1.0 6406:1.0 6521:1.0
18 12:1.0 20:0.5 48:1.0 88:1.0 98:0.16666666666666666 181:1.0 203:0.3333333333333333 231:1.0 279:0.3333333333333333 310:1.0 529:1.0 580:1.0 1213:1.0 1372:1.0 1448:1.0 3285:0.5 3289:0.014285714285714285 3296:3.0 3299:1.0 3302:0.047619047619047616 3346:1.0 3394:0.25 3462:1.0 3463:1.0 3473:1.0 3479:1.0 3743:1.0 3865:1.0 5092:1.0 5538:1.0 5811:1.0 6069:1.0
18 21:0.3333333333333333 62:0.25 121:0.034482758620689655 137:0.5 289:0.16666666666666666 1369:1.0 1448:1.0 1636:1.0 2283:1.0 3286:1.0 3289:0.05714285714285714 3296:5.0 3359:1.0 3904:1.0 4675:1.0 4732:1.0
18 20:0.5 281:1.0 356:0.5 462:1.0 1416:1.0 1448:1.0 3285:0.5 3289:0.02857142857142857 3296:2.0 3352:1.0 3394:0.25 3801:1.0
18 7:2.0 8:0.25 15:0.16666666666666666 20:1.0 21:0.3333333333333333 26:0.02127659574468085 38:1.0 55:0.14285714285714285 95:1.0 98:0.3333333333333333 116:0.07692307692307693 141:0.6666666666666666 250:1.0 356:0.5 502:1.0 1161:2.0 1483:1.0 1752:1.0 3289:0.014285714285714285 3296:2.0 3299:1.0 3700:0.5 3865:1.0 3901:1.0 4354:1.0 4913:1.0
18 17:0.16666666666666666 19:0.07142857142857142 23:1.0 26:0.02127659574468085 55:0.14285714285714285 73:1.0 80:1.0 112:1.0 231:1.0 827:1.0 1208:1.0 1457:1.0 2655:1.0 3285:0.5 3289:0.02857142857142857 3295:1.0 3296:2.0 3299:1.0 3302:0.047619047619047616 3394:0.25 3580:1.0 3673:1.0 3747:1.0 3774:1.0 3781:1.0 3865:1.0 4808:1.0 5300:1.0
18 4:0.5 8:0.25 12:1.0 20:1.5 26:0.02127659574468085 48:1.0 51:0.5 67:0.3333333333333333 75:0.5 133:0.3333333333333333 236:1.0 279:0.3333333333333333 281:1.0 356:0.5 387:1.0 393:1.0 432:1.0 443:1.0 524:0.5 580:1.0 596:0.3333333333333333 641:1.0 746:1.0 1985:1.0 2695:1.0 3289:0.02857142857142857 3296:2.0 3299:2.0 3302:0.047619047619047616 3337:1.0 3448:0.2 3723:1.0 4354:1.0 4913:1.0
18 62:0.25 71:1.0 87:0.3333333333333333 203:0.3333333333333333 215:1.0 236:0.5 240:1.0 292:0.25 449:1.0 875:1.0 1208:1.0 1457:1.0 2063:1.0 3289:0.02857142857142857 3296:2.0 3299:2.0 3334:0.08 3355:0.5 3394:0.25 3409:0.02631578947368421 3673:1.0 3771:1.0 4219:1.0 4303:1.0 4591:1.0 5168:1.0
18 20:1.0 26:0.02127659574468085 46:1.0 55:0.14285714285714285 64:0.3333333333333333 100:0.3333333333333333 121:0.034482758620689655 281:1.0 285:1.0 310:1.0 312:1.0 356:0.5 405:1.0 1346:1.0 1372:0.5 1448:2.0 1985:1.0 3285:0.5 3289:0.02857142857142857 3296:4.0 3394:0.25 3450:0.058823529411764705 3507:1.0 3584:1.0 3746:1.0 4380:1.0 4885:1.0 4913:1.0 6526:1.0
18 6:0.25 7:1.0 12:6.0 20:1.0 26:0.02127659574468085 38:1.0 55:0.14285714285714285 67:0.3333333333333333 75:0.5 98:0.16666666666666666 134:0.25 295:1.0 356:0.5 383:1.0 432:2.0 442:1.0 487:1.0 506:1.0 625:1.0 728:1.0 772:1.0 1346:1.0 1448:2.0 2257:1.0 2792:1.0 3289:0.014285714285714285 3296:2.0 3346:1.0 3638:1.0 3747:1.0 3922:0.5 5152:1.0 6676:1.0
18 12:1.0 20:0.5 73:1.0 263:1.0 529:1.0 814:1.0 913:1.0 1228:1.0 1448:1.0 1457:1.0 1701:1.0 2553:1.0 3289:0.014285714285714285 3296:1.0 3376:1.0 3868:1.0 4094:1.0 5056:0.5 5284:1.0
18 6:0.25 17:0.16666666666666666 20:0.5 38:1.0 46:1.0 51:2.5 64:0.3333333333333333 73:1.0 123:1.0 255:1.0 265:1.0 287:1.0 991:1.0 1448:1.0 2283:1.0 2811:1.0 3132:1.0 3289:0.02857142857142857 3296:2.0 3299:1.0 3945:3.0 4181:1.0 4346:1.0 4525:1.0 4640:1.0 4739:1.0 4880:1.0 4895:2.0 4975:1.0 5214:1.0
18 17:0.16666666666666666 20:0.5 62:0.25 64:0.6666666666666666 127:1.0 216:1.0 231:1.0 292:0.25 446:0.5 506:1.0 862:1.0 1030:1.0 1344:1.0 1457:1.0 1665:1.0 1887:1.0 3288:1.0 3289:0.05714285714285714 3296:3.0 3334:0.04 3345:1.0 3391:1.0 3417:1.0 3673:1.0 3783:1.0 3924:1.0 4379:1.0 5038:1.0 5119:1.0 6001:1.0
18 20:0.5 24:0.5 55:0.14285714285714285 58:0.25 64:0.3333333333333333 134:0.25 154:0.3333333333333333 196:1.0 205:1.0 210:1.0 292:0.25 360:1.0 452:1.0 484:1.0 647:1.0 1344:1.0 1448:1.0 1831:1.0 2063:1.0 3285:0.5 3289:0.014285714285714285 3296:2.0 3299:2.0 3334:0.04 3345:1.0 3346:1.0 3377:1.0 3391:1.0 3997:1.0 4320:1.0 4741:1.0 4764:1.0 4975:1.0 5093:1.0 5368:1.0 5891:1.0 6224:1.0 6509:1.0
18 7:1.0 12:1.0 46:1.0 55:0.14285714285714285 73:1.0 125:0.3333333333333333 231:1.0 292:0.25 442:1.0 529:2.0 1448:1.0 1457:1.0 3289:0.014285714285714285 3296:2.0 3302:0.047619047619047616 3320:1.0 3348:1.0 3394:0.25 3409:0.02631578947368421 3682:1.0 4277:1.0 4697:1.0 4825:1.0 5060:1.0 5185:1.0 6273:1.0 6421:1.0
|
f0946aa463ce1d7f0e10f58993158061c0a3e76a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2384/CH2/EX2.5/ex2_5.sce | cf5dc9c3429e3792807221997c9b716ed1bf8194 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex2_5.sce | // Exa 2.5
clc;
clear;
close;
format('v',5)
// Given data
V1 = 12;// in V
V2 = 10;// in V
R1 = 6;// in ohm
R2 = 7;// in ohm
R3 = 4;// in ohm
R_T = R1 + ( (R2*R3)/(R2+R3) );// in ohm
I_T = V1/R_T;// in A
I1 = (R2/(R2+R3))*I_T;// in A
R_T = R2 + ( (R1*R3)/(R1+R3) );// in ohm
I_T = V2/R_T;// in A
I2 = (R1*I_T)/(R1+R3);// in A
// current across 4 ohm resistor
I = I1+I2;// in A
disp(I,"The current across 4 ohm resistor in A is");
|
abf13091e3a9c2fa3ae38e323430cfebfcc9b709 | b4bbf9b2a475b5cf299b30bf5e0c621e32f6c832 | /test/assign1/ring.tst | cbcc813206153632cdbcf3f134fb24485d94bace | [] | no_license | apetresc/castro | 1ec1ac1307542487aa1be14c335170f7a1347bf2 | 843165af7c946188a2dd772384cd2d579723c99d | refs/heads/master | 2022-02-20T14:28:41.962893 | 2019-10-07T08:41:59 | 2019-10-07T08:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 179 | tst | ring.tst | boardsize 4
play w a1
play b g1
play w a2
play b f3
play w b3
play b e5
play w c3
play b d7
play w c2
play b d5
1 havannah_winner
#? [none]
play w b1
2 havannah_winner
#? [white]
|
09a07a8d7308e23eae41df4b7e525467aa4ce4ba | 449d555969bfd7befe906877abab098c6e63a0e8 | /1026/CH9/EX9.7/Example9_7.sce | 225e00fb8f6a2155bf7f2960ca5473e46f45975d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 395 | sce | Example9_7.sce | //chapter9,Example9_7,pg 239
V=50*10^3
lam=(12400/V)*10^-10
n=4//FCC crystal
m=74.6
N=6.022*10^26
rho=1.99*10^3
a=(((n*m)/(N*rho))^(1/3))
//for kcl ionic crystal
d=a/2
theta=asin(lam/(2*d))
theta=theta*(180/%pi)
printf("min. wavelength of spectrum from tube\n")
disp(lam)
printf("glancing angle for that wavelength\n")
printf("theta=%.2f deg.",theta) |
c71b3da4c22db37402c85c2cb3e425bd2edd2a4c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1376/CH6/EX6.4/6_4.sci | 4fd3a7a1d23919095c6c0c9db2d01b1d07eed4ab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 118 | sci | 6_4.sci | //6.4
clc;
R1=45;
R2=100-R1;
l=500;
x=2*l*R1/(R1+R2);
printf("Position of the fault from the test end=%.1f m",x) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.