blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 6 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 6 87 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 15 values | visit_date timestamp[us]date 2016-08-04 09:00:04 2023-09-05 17:18:33 | revision_date timestamp[us]date 1998-12-11 00:15:10 2023-09-02 05:42:40 | committer_date timestamp[us]date 2005-04-26 09:58:02 2023-09-02 05:42:40 | github_id int64 436k 586M ⌀ | star_events_count int64 0 12.3k | fork_events_count int64 0 6.3k | gha_license_id stringclasses 7 values | gha_event_created_at timestamp[us]date 2012-11-16 11:45:07 2023-09-14 20:45:37 ⌀ | gha_created_at timestamp[us]date 2010-03-22 23:34:58 2023-01-07 03:47:44 ⌀ | gha_language stringclasses 36 values | src_encoding stringclasses 17 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 1 class | length_bytes int64 5 10.4M | extension stringclasses 15 values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8ba0926a51ae8168027a903bcb369c7a26885ee8 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set13/s_Introductory_Fluid_Mechanics_J._Katz_2783.zip/Introductory_Fluid_Mechanics_J._Katz_2783/CH8/EX8.8/Ex8_8.sce | 3b19a8360710a8eaae8b31060ab7ef106e7c6322 | [] | 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 | 269 | sce | Ex8_8.sce | errcatch(-1,"stop");mode(2);
//initialization of new variables
D=0.5 //cm
rAl=2700 //kg/m^3
mu=0.29
rOil=919 //kg/m^3
g=9.8 //m/s^2
//calculations
D=D*10^-2
R=D/2
U=2/(9*mu)*(rAl-rOil)*g*R^2
//result
printf('The ball will sink with %.3f m/s',U)
exit();
|
96661b5359c1bd4819cb4b5d6c3f951639e280e1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1529/CH20/EX20.17/20_17.sce | 8f28a464676cc1a37a454bdcfe9d51d4a11abc09 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 473 | sce | 20_17.sce | //Chapter 20, Problem 17
clc;
P1=10; //power 1 in watt
P2=-3; //power 2 in watt
P=P1+P2; //total input power
phi=atan(sqrt(3)*((P1-P2)/(P1+P2)));
pf=cos(phi); //load power factor
disp("Since the reversing switch on the wattmeter had to be operated the 3kW reading is taken as −3 kW");
printf("(a) Total input power = %f kW\n\n",P);
printf("(b) Power factor = %f ",pf);
|
7a522ed32e3eb8394650d141e4f15b086414547e | 449d555969bfd7befe906877abab098c6e63a0e8 | /611/CH5/EX5.15/Chap5_Ex15.sce | 44fd21bf6634f34d26575abbf5824f096c9e6219 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,418 | sce | Chap5_Ex15.sce | // Y.V.C.Rao ,1997.Chemical Engineering Thermodynamics.Universities Press,Hyderabad,India.
//Chapter-5,Example 15,Page 183
//Title: Exit velocity of steam
//================================================================================================================
clear
clc
//INPUT
Pi=3;//pressure of dry saturated steam when it enters the nozzle in bar
Pe=2;//pressure of dry saturated steam at the exit in bar
//CALCULATION
//From steam tables corresponding to Pi
si=6.9909;//entropy of steam at the entrance in kJ/kgK
hi=2724.7;//entahlpy of steam at the entrance in kJ/kg
//From steam tables corresponding to Pe
sf=1.5301;//entropy of saturated liquid in kJ/kgK
hf=504.70;//enthalpy of saturated liquid in kJ/kg
sg=7.1268;//entropy of saturated vapour in kJ/kgK
hg=2706.3;//entahlpy of saturayed vapour in kJ/kg
se=6.9909;//From Eq.(5.67), se=si (i.e. entropy of the fluid remains constant), where se is in kJ/kgK
Xe=(se-sf)/(sg-sf);//calculation of the quality of steam at the exit (no unit)
he=((1-Xe)*hf)+(Xe*hg);//calculation of enthalpy of steam at the exit in kJ/kg
Ve=sqrt (2*(hi-he)*10^3);//calculation of exit velocity of steam in m/s by applying the first law of thermodynamics
//OUTPUT
mprintf("\n The exit velocity of steam=%f m/s\n",Ve);
//===============================================END OF PROGRAM===================================================
|
6ae313a2de88b41fbf0022dde7758b98031d24c2 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/1.1/Unix/scilab-1.1/macros/signal/hank.sci | fe75811a3fc0671f186d5b3c2454a9168a78f88e | [
"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 | 455 | sci | hank.sci | //<hk>=hank(m,n,cov)
//<hk>=hank(m,n,cov)
//this macro builds the hankel matrix of size (m*d,n*d)
//from the covariance sequence of a vector process
// m : number of bloc-rows
// n : number of bloc-columns
// cov: sequence of covariances; it must be given as :[R0 R1 R2...Rk]
// hk : computed hankel matrix
//!
//author: G. Le Vey Date: 16 Febr. 1989
hk=[];
d=mini(size(cov));
for k=0:m-1,hk=[hk;cov(:,(k*d+1):(k+n)*d)];end;
//end
|
fe2ceaeca366f3e26802148971fb83922ff9fc0d | 449d555969bfd7befe906877abab098c6e63a0e8 | /405/CH7/EX7.6/7_6.sce | 7bade4d650aa5cb5b5043813416fc90648b5beb4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,205 | sce | 7_6.sce | clear;
clc;
printf("\t\t\tExample Number 7.6\n\n\n");
// cube cooling in air
// Example 7.6 (page no.-336)
// solution
L = 0.2;// [m] side length of cube
Ts = 60;// [degree celsius] surface temperature of cube
Ta = 10;// [degree celsius] air temperature
// this is an irregular solid so we use the information in the last entry of table 7-1(page no.-328) in the absence of a specific correlation for this geometry.
// the properties were evaluated as
v = 17.47*10^(-6);// [square meter/s]
k = 0.02685;// [W/m degree celsius]
Pr = 0.70;// prandtl number
Beta = 3.25*10^(-3);// [K^(-1)]
g = 9.8;// [square meter/s] acceleration due to gravity
// the characteristic length is the distance a particle travels in the boundary layer, which is L/2 along the bottom plus L along the side plus L/2 on the top or
Gr_into_Pr = (g*Beta*(Ts-Ta)*(2*L)^(3)*Pr)/(v^(2));
// from the last entry in table 7-1 we find
C = 0.52;
n = 1/4;
// so that
Nu = C*(Gr_into_Pr)^(n);
h_bar = Nu*k/(2*L);// [W/square meter degree celsius]
// the cube has six sides so the area is
A = 6*L^(2);// [square meter]
// the heat required is
q = h_bar*A*(Ts-Ta);// [W]
printf("heat transfer is %f W",q);
|
c557e5b70d01b008896f788c2d2e4f32dd05c6f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /431/CH5/EX5.3/EX5_3.sce | a7711e11da4a8a718ea3850d52fc2893d63dfae1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 470 | sce | EX5_3.sce | //chapter 5
//example 5.3
//page 426
clear;
clc;
disp("example 5.3");
printf("\n");
slots=48; //number of slots
poles=4; //4-pole machine
ph=3; //3-phase machine
SA=360/slots; //slot angle
printf("total number of slots= %d\n",slots);
printf("slot angle= %f degree mechanical\n",SA);
//coil span is 11 slot pitches
//12 slots subtend 180degress, short pitched by 1 slot
Bta=1*180/12;
k_p=cosd(Bta/2);
printf("pitch factor=%f",k_p)
|
00fe7d917570f5be325524905e6e124fbaeedddd | 449d555969bfd7befe906877abab098c6e63a0e8 | /40/CH4/EX4.8/Exa_4_8.sce | b897889c03ffa5db8e125583cfd22b9552544dc5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 320 | sce | Exa_4_8.sce | //stability of recursive filter
//for roc:/z/>/a/
a=input('enter the value of alpha')
z=%z;
H=z/(z-a);
if (abs(a)<1)
disp("system is stable")
else
disp("system is not stable")
end
//for roc:/z/</a/
if (abs(a)>1)
disp("system is stable")
else
disp("system is not stable")
end
|
4038b4db8bef03dc2199af84a5777bab512d3b83 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/tests/examples/karmarkar.man.tst | 2c7df7d339d997c28c84cf7135d5fec8b7dae9f1 | [
"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 | 106 | tst | karmarkar.man.tst | clear;lines(0);
// n=10;p=20;
// a=rand(n,p);c=rand(p,1);x0=abs(rand(p,1));b=a*x0;x1=karmarkar(a,b,c,x0);
|
e1db42684876cbff56e11a5b1e9d9e0ec4205430 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3020/CH17/EX17.5/ex17_5.sce | 8e01955fa172c6fce49ef797f30aa9be39339019 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 310 | sce | ex17_5.sce | clc;
clear all;
Ed=0.01;//difference between energy level to fermi level
Ed1=Ed*1.6e-19;//convertion from eV to J
T=200;//temperature in kelvin
k=1.38e-23;//boltzmann constant
x=Ed1/(k*T);//temporary variable
F=1/(1+exp(x));//fermi distribution function
disp('',F,'fermi distribution function is:')
|
b3778e90777c6128a1119e58b51f0d4385851b31 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1994/CH9/EX9.4/Example9_4.sce | b245260e4b0817ca218b987b08e29fa802cd2e5b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 233 | sce | Example9_4.sce | //Chapter-9,Example9_4,pg 9_21
P=4
A=P
V=230
Ra=0.6
Z=250
phi=30*10^-3//flux(in Wb)
Ia=40
Eb=V-Ia*Ra
N=Eb*60*A/(phi*P*Z)
printf("back e.m.f\n")
printf("Eb=%.f V\n",Eb)
printf("speed of motor\n")
printf("N=%.f r.p.m",N)
|
2dbe62349d0e2a7400cb8b0078f321a1d204068c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1088/CH14/EX14.4/Example4.sce | 8584a61854cff5a39288e538eb591b8c3415615f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 2,689 | sce | Example4.sce | clear
flag=1
mode(-1)
clc
printf("Example 4 : Show the method of using if else construct in shell progamming \n")
disp("****************************************************************")
disp("Answer : ")
disp("INSTRUCTIONS : ")
printf("\n1. Here all instructions are preloaded in the form of a demo\n\nInitially the whole perl script is displaying and then \n the result of the same can be seen in the command line interpreter.\n\n2. PLEASE MAKE SURE THAT THE PERLSCRIPT INTERPRETER\nEXISTS IN THE SYSTEM\nOR THE COMMAND WOULD NOT WORK \n\n3. PRESS ENTER AFTER EACH COMMAND to see its RESULT\n\n5. PRESS ENTER AFTER EACH RESULT TO GO TO THE NEXT COMMAND\n")
halt('.............Press [ENTER] to continue.....')
halt("")
clc
printf("\tUNIX SHELL SIMULATOR(DEMO VERSION WITH PRELOADED COMMANDS)\n\n\n")
halt('')
clc
li(1)='#!/bin/sh'
li(2)='# emp3.sh : Using if and else'
li(3)='#'
li(4)='if grep '+ascii(34)+'^$1'+ascii(34)+' /etc/passwd 2> /dev/null # Search username at beginning of line'
li(5)='then'
li(6)=' echo '+ascii(34)+' Pattern found - Job Over '+ascii(34)
li(7)='else'
li(8)=' echo '+ascii(34)+' Pattern not found '+ascii(34)
li(9)='fi'
printf("\n# Enter the name of the shellscript file whichever you desire \n\n")
nam=input('$ cat ','s')
halt(' ')
for i=1:9
printf("%s\n",li(i))
end
halt(' ')
clc
lst(1)='@echo off&&cls'
lst(2)='dir /b \Users>passwd'
lst(3)='findstr /b '+ascii(34)+'%1'+ascii(34)+' passwd > tmpfil '
lst(4)='set a=tmpfil '
lst(5)='for /F '+ascii(34)+'usebackq '+ascii(34)+' %%A in ( '+ascii(39)+'%a% '+ascii(39)+') do set y=%%~zA'
lst(6)='if %y% neq 0 (echo Pattern Found - Job Over) else (echo Pattern not found )'
lst(7)='pause>nul'
lst(8)='del tmpfil '
lst(9)='del passwd'
if getos()=='Linux' then
printf("\n\nPlease Switch to windows and then execute\n\nThank You \n\n")
halt(' ')
exit
end
v=mopen(nam+'.sh.bat','wt')
for i=1:9
mfprintf(v,"%s\n",lst(i))
end
mclose(v)
printf("\n# type the following command in the command line interpreter as soon as it appears")
printf(" \n %c %s.sh %c [COMMANDLINE ARGUMENTS][ENTER]\n\n",ascii(34),nam,ascii(34))
printf("\n$ %s.sh [COMMANDLINE ARGUMENTS] #to execute the perlscript",nam)
halt(' ')
dos('start')
printf("\n\n\n")
halt(' ---------------->Executing ShellScript in Command Line Prompt<-------------- ')
printf("\n\n\n$ exit #To exit the current simulation terminal and return to Scilab console\n\n")
halt("........# (hit [ENTER] for result)")
//clc()
printf("\n\n\t\t\tBACK TO SCILAB CONSOLE...\nLoading initial environment')
sleep(1000)
mdelete(nam+'.sh.bat')
mdelete('emp.lst')
|
1578f5550b056b2c47a377c02b6b20d78a41c8c7 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4/Unix-Windows/scilab-2.4/macros/m2sci/killfuns.sci | f3d46bc119686baf77f0f113e475d0c169db00dc | [
"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 | 424 | sci | killfuns.sci | function fptr=killfuns()
// Copyright INRIA
funs=['list','tlist','exp','cond','xgrid','type','format',..
'qr','lu','maxi','mini','max','min','size','degree']
fptr=[]
kfuns=[]
for f=funs
fp=funptr(f)
if fp<>0 then
fptr=[fptr,funptr(f)]
clearfun(f)
kfuns=[kfuns,f]
end
end
fptr=list(kfuns,fptr)
function restorefuns(fptr)
[funs,fptr]=fptr(1:2)
for k=1:size(funs,'*')
newfun(funs(k),fptr(k))
end
|
f75d7c746bd8291c7d49f8d1ce7735365d6af31a | 449d555969bfd7befe906877abab098c6e63a0e8 | /83/CH12/EX12.9/example_12_9.sce | 8fe19762c46e5b07c8c2b2eeacf1a237ba463790 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 626 | sce | example_12_9.sce | //Chapter 12
//Example 12.9
//page 479
//To calculate critcal clearing angle
clear;clc;
Pmax1=2; // prefault(2 lines)
Pmax2=0.5; //deuring fault
Pmax3=1.5; //post fault(1 line)
Pm=1; //initial loading
delta0=asin(Pm/Pmax1);
delta_max=%pi-asin(Pm/Pmax3);
//to find critical angle,using eq.12.67
delta_cr=acos((Pm*(delta_max-delta0)-Pmax2*cos(delta0)+Pmax3*cos(delta_max))/(Pmax3-Pmax2));
printf('Pmax1=%0.1f PU\t Pmax2=%0.2f PU\t Pmax3=%0.2f PU\n\n',Pmax1,Pmax2,Pmax3);
printf('Delta0=%0.3f rad\n\n',delta0);
printf('Delta_max=%0.3f rad\n\n',delta_max);
printf('Delta_cr=%0.3f rad =%0.2f deg\n\n',delta_cr,delta_cr*180/%pi);
|
be8fdc34098a37b2c62beb6f84fa7cddf8f4b99c | 449d555969bfd7befe906877abab098c6e63a0e8 | /572/CH4/EX4.2/c4_2.sce | 0c079adbafe32fd63aa799929bb39a6a146e6770 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 859 | sce | c4_2.sce | // (4.2) Water flows into the top of an open barrel at a constant mass flow rate of 7 kg/s. Water exits through a pipe near the base with a mass flow rate proportional to the height of liquid inside:medot = 1.4L, where L is the instantaneous liquid height, in m. The area of the base is 0.2 m2, and the density of water is 1000 kg/m3. If the barrel is initially empty, plot the variation of liquid height with time and comment on the result.
//solution
//variable initialization
midot = 7 //inlet mass flow rate in kg/s
A = .2 //area of base in m^2
d = 1000 //density of water in kg/m^3
function Ldot = f(t,L)
Ldot = (midot/(d*A))-((1.4*L)/(d*A))
endfunction
t=0:.01:1000
L = ode(0,0,t,f)
plot2d(t,L)
xtitle("","time","height") |
9b58396e94487218f0497a10d790ddf523c813c7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1628/CH8/EX8.6/Ex8_6.sce | a0a9d66dee2a22ab4b7996a1ef4b36e87d60c4c6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex8_6.sce |
// Examle 8.6
Vo=3; // Supply voltage
vo=0; // Voltage at V(o+) {Because instantly capacitor can't charge }
disp(' Voltage across capacitor at V(o+) = '+string(vo)+' Volt');
R=1500; // Resistance
Io=Vo/R; // Current of capacitor
io=Io; // Current of capacitor at i(o+)
disp(' Current across capacitor at i(o+) = '+string(io)+' Amp');
C=5*10^-6; // Capacitor
t=R*C; // Time constant
disp(' Time constant = '+string(t)+' Second');
t1=15*10^-3; // Time instant ==> { v=Vo*(1-e-(t1/t)) }
v=Vo*(1-0.135); // Voltage at Time t1 { e-(t1/t)=0.135 }
disp(' Voltage across capacitor at ( t=15 mS ) = '+string(v)+' Volt');
i=Io*0.135; // Current at Time t1 ==> { i=Io*e-(t1/t) }
disp(' Current of capacitor at ( t=15 mS ) = '+string(i)+' Amp');
// p 284 8.6
|
a650bd9e523c52ae38ffbd70ad8519c610727abc | 449d555969bfd7befe906877abab098c6e63a0e8 | /1541/CH1/EX1.27/Chapter1_Example27.sce | e64dbf367229c38cfb97574e8add1ae15b17c505 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 896 | sce | Chapter1_Example27.sce | //Chapter-1, Example 1.21, Page 1.49
//=============================================================================
clc
clear
//INPUT DATA
V=250;//Terminal voltage in V
IL=50;//Load current in A
N=1000;//Speed in rpm
Wi=1200;//Iron and friction losses in W
Ra=0.05;//Armature resistance in ohm
Rsh=125;//Field resistance in ohm
//CALCULATIONS
Ish=(V/Rsh);//Field current in A
Ia=(IL-Ish);//Armature current in A
Eb=(V-(Ia*Ra));//Back emf in V
Cu=((V*IL)-(Eb*Ia));//Copper losses in W
Ta=(9.55*Eb*Ia)/N;//Armature torque in N.m
Ts=(9.55*((Eb*Ia)-Wi))/N;//Shaft torque in N.m
n=(((Eb*Ia)-Wi)/(V*IL))*100;//Efficiency of the motor
//OPUTPUT
mprintf('(i)Copper loss is %3.1f W\n(ii)Armature torque is %3.1f N.m\n(iii)Shaft torque is %3.2f N.m\n(iv)Efficiency is %3.1f percent',Cu,Ta,Ts,n)
//=================================END OF PROGRAM==============================
|
4cec1c458e4ebea87831eb4cc5380c94b2325dcd | 449d555969bfd7befe906877abab098c6e63a0e8 | /3813/CH4/EX4.12/Ex4_12.sce | 33ed900d358a821196370e0699d77cced84106bc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 475 | sce | Ex4_12.sce | //Electric Drives:concepts and applications by V.subrahmanyam
//Publisher:Tata McGraw-Hill
//Edition:Second
//Ex4_12
clc;
clear;
V=460;// voltage in V
N1=1200;//Speed in rpm
N2=1000;//Speed in rpm
r1=0.06;// Resistance in ohm
r2=0.32;// Resistance in ohm
x1=2.16;//Reactance in ohm
x2=0.48;//Reactance in ohm
x=0.6*%i;//Reactance in ohm
xm=8*%i;//Reactance in ohm
S1=(N1-N2)/N1;
Z=(xm+(x1+x))/(x1+xm+x);
[M, P] = polar(Z);
M * exp(%i * P);
disp(Z,"z:")
|
e19447e5c2e3de5264c4a9dd7724d992709bba42 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1628/CH4/EX4.9/Ex4_9.sce | a82126c38cede538eadf035db933ff1ecedcbce4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 517 | sce | Ex4_9.sce |
// Examle 4.9
n=8; // No.Of dry cells
E=1.5; // Emf of cell
Voc=n*E; // open-circuit Voltage of battery
r=0.75; // Internal resistance
Ro=r*n; // O/p resistance
// ==> { P=Vht^2/4Rth } , but here Vth= Voc & Rth= Ro
Pavl=Voc^2/(4*Ro); // Available power
disp(' Available power is = '+string(Pavl)+ ' Watt');
// p 115 4.9
|
7cf2d640782ec7c695361bd2c16bc8729c42b02c | a6f51b3ce94f9239f018edd3a045c3081f615030 | /maglev/maglev-scilab/experiment2.sce | 9bb1fba4b368679ad29997cb4ee3bc60af0a3d79 | [] | no_license | jaimathur/maglev | c479c78b57204d0520456b9990604b01221bf5c4 | e1b6ebd896f2698b4927d71e7bebf65384d95cd0 | refs/heads/master | 2021-01-12T06:28:24.194234 | 2016-12-26T07:18:39 | 2016-12-26T07:18:39 | 77,366,276 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 15,578 | sce | experiment2.sce | clear all;
clear;
mag2 = createWindow();
global sys
///////Titile///////////////
name=uicontrol(mag2,"style","text");
name.Units="normalized";
name.Position = [0.01,0.9,1,0.08]//[lmargin topmargin width height];
name.String = "Maglev Experiment 2: Transient Response Given: N=4 and u0=1.187*a*(y0+b)^N Transfer Function: P(s)=q/(m*s^2+c*s+r)";
name.BackgroundColor = [0.5,0.6,0.8];
///////////// For a /////////////
global eb_a value_a
function updateslider_kp(value_a)
global eb_a value_a;
eb_a.Value = value_a.Value;
eb_a.String = msprintf('%5.3f',eb_a.Value);
endfunction
value_a=uicontrol(mag2, "style","slider");
value_a.Min=0.001;
value_a.Max=100;
value_a.Value=0.001;
value_a.Units="normalized";
value_a.Position=[0.1,0.7,0.2,0.08];
value_a.Callback="updateslider_kp";
// ----- left text -----
a_label=uicontrol(mag2,"style","text");
a_label.Units="normalized";
a_label.Position = [0.04,0.7,0.04,0.08];
a_label.String = "$a$";
a_label.BackgroundColor = [0.8,0.8,0.8];
function updateedit_kp(eb_a)
global value_a eb_a;
eb_a.Value = eval(eb_a.String);
if (eb_a.Value < 0)
disp('Kp value below range. Set to minimum');
eb_a.Value = 0;
eb_a.String = msprintf('%5.3f',eb_a.Value);
elseif (eb_a.Value > 100)
disp('Kp value above range. Set to maximum');
eb_a.Value = 100;
eb_a.String = msprintf('%5.3f',eb_a.Value);
end
value_a.Value = eb_a.Value;
endfunction
eb_a=uicontrol(mag2,"style","edit");
eb_a.String = msprintf('%5.3f',0);
eb_a.Value = 0.001;
eb_a.Units="normalized";
eb_a.Position=[0.35,0.7,0.15,0.08];
eb_a.Callback = "updateedit_kp";
/////////**** For b ****/////////////
global eb_b value_b
function updateslider_b(value_b)
global eb_b value_b;
eb_b.Value = value_b.Value;
eb_b.String = msprintf('%5.3f',eb_b.Value);
endfunction
value_b=uicontrol(mag2, "style","slider");
value_b.Min=0.001;
value_b.Max=100;
value_b.Value=0.001;
value_b.Units="normalized";
value_b.Position=[0.1,0.6,0.2,0.08];
value_b.Callback="updateslider_b";
// ----- left text -----
b_label=uicontrol(mag2,"style","text");
b_label.Units="normalized";
b_label.Position = [0.04,0.6,0.04,0.08];
b_label.String = "$b$";
b_label.BackgroundColor = [0.8,0.8,0.8];
function updateedit_b(eb_b)
global value_b eb_b;
eb_b.Value = eval(eb_b.String);
if (eb_b.Value < 0)
disp('Kp value below range. Set to minimum');
eb_b.Value = 0;
eb_b.String = msprintf('%5.3f',eb_b.Value);
elseif (eb_b.Value > 100)
disp('Kp value above range. Set to maximum');
eb_b.Value = 100;
eb_b.String = msprintf('%5.3f',eb_b.Value);
end
value_b.Value = eb_b.Value;
endfunction
eb_b=uicontrol(mag2,"style","edit");
eb_b.String = msprintf('%5.3f',0);
eb_b.Value = 0.001;
eb_b.Units="normalized";
eb_b.Position=[0.35,0.6,0.15,0.08];
eb_b.Callback = "updateedit_b";
/////////**** For m ****/////////////
global eb_m value_m
function updateslider_m(value_m)
global eb_m value_m;
eb_m.Value = value_m.Value;
eb_m.String = msprintf('%5.3f',eb_m.Value);
endfunction
value_m=uicontrol(mag2, "style","slider");
value_m.Min=0.001;
value_m.Max=100;
value_m.Value=0.001;
value_m.Units="normalized";
value_m.Position=[0.1,0.5,0.2,0.08];
value_m.Callback="updateslider_m";
// ----- left text -----
m_label=uicontrol(mag2,"style","text");
m_label.Units="normalized";
m_label.Position = [0.04,0.5,0.04,0.08];
m_label.String = "$m$";
m_label.BackgroundColor = [0.8,0.8,0.8];
function updateedit_m(eb_m)
global value_m eb_m;
eb_m.Value = eval(eb_m.String);
if (eb_m.Value < 0)
disp('Kp value below range. Set to minimum');
eb_m.Value = 0;
eb_m.String = msprintf('%5.3f',eb_m.Value);
elseif (eb_m.Value > 100)
disp('Kp value above range. Set to maximum');
eb_m.Value = 100;
eb_m.String = msprintf('%5.3f',eb_m.Value);
end
value_m.Value = eb_m.Value;
endfunction
eb_m=uicontrol(mag2,"style","edit");
eb_m.String = msprintf('%5.3f',0);
eb_m.Value = 0.001;
eb_m.Units="normalized";
eb_m.Position=[0.35,0.5,0.15,0.08];
eb_m.Callback = "updateedit_m";
/////////**** For c ****/////////////
global eb_c value_c
function updateslider_c(value_c)
global eb_c value_c;
eb_c.Value = value_c.Value;
eb_c.String = msprintf('%5.3f',eb_c.Value);
endfunction
value_c=uicontrol(mag2, "style","slider");
value_c.Min=0.001;
value_c.Max=100;
value_c.Value=0.001;
value_c.Units="normalized";
value_c.Position=[0.1,0.4,0.2,0.08];
value_c.Callback="updateslider_c";
// ----- left text -----
c_label=uicontrol(mag2,"style","text");
c_label.Units="normalized";
c_label.Position = [0.04,0.4,0.04,0.08];
c_label.String = "$c$";
c_label.BackgroundColor = [0.8,0.8,0.8];
function updateedit_c(eb_c)
global value_c eb_c;
eb_c.Value = eval(eb_c.String);
if (eb_c.Value < 0)
disp('Kp value below range. Set to minimum');
eb_c.Value = 0;
eb_c.String = msprintf('%5.3f',eb_c.Value);
elseif (eb_c.Value > 100)
disp('Kp value above range. Set to maximum');
eb_c.Value = 100;
eb_c.String = msprintf('%5.3f',eb_c.Value);
end
value_c.Value = eb_c.Value;
endfunction
eb_c=uicontrol(mag2,"style","edit");
eb_c.String = msprintf('%5.3f',0);
eb_c.Value = 0.001;
eb_c.Units="normalized";
eb_c.Position=[0.35,0.4,0.15,0.08];
eb_c.Callback = "updateedit_c";
/////////**** For c ****/////////////
global eb_y0 value_y0
function updateslider_y0(value_y0)
global eb_y0 value_y0;
eb_y0.Value = value_y0.Value;
eb_y0.String = msprintf('%5.3f',eb_y0.Value);
endfunction
value_y0=uicontrol(mag2, "style","slider");
value_y0.Min=0.001;
value_y0.Max=100;
value_y0.Value=0.001;
value_y0.Units="normalized";
value_y0.Position=[0.1,0.3,0.2,0.08];
value_y0.Callback="updateslider_y0";
// ----- left text -----
y0_label=uicontrol(mag2,"style","text");
y0_label.Units="normalized";
y0_label.Position = [0.04,0.3,0.04,0.08];
y0_label.String = "$y_0$";
y0_label.BackgroundColor = [0.8,0.8,0.8];
function updateedit_y0(eb_y0)
global value_y0 eb_y0;
eb_y0.Value = eval(eb_y0.String);
if (eb_y0.Value < 0)
disp('Kp value below range. Set to minimum');
eb_y0.Value = 0;
eb_y0.String = msprintf('%5.3f',eb_y0.Value);
elseif (eb_y0.Value > 100)
disp('Kp value above range. Set to maximum');
eb_y0.Value = 100;
eb_y0.String = msprintf('%5.3f',eb_y0.Value);
end
value_y0.Value = eb_y0.Value;
endfunction
eb_y0=uicontrol(mag2,"style","edit");
eb_y0.String = msprintf('%5.3f',0);
eb_y0.Value = 0.001;
eb_y0.Units="normalized";
eb_y0.Position=[0.35,0.3,0.15,0.08];
eb_y0.Callback = "updateedit_y0";
/////#####********#########/////////
/////#####********#########/////////
/////#####********#########/////////
/////#####********#########/////////
/////#####********#########/////////
////////////////
tag_DC1=uicontrol(mag2,"style","text");
tag_DC1.Units="normalized";
tag_DC1.Position = [0.55,0.7,0.8,0.08]//[lmargin topmargin width height];
tag_DC1.String = " DC value = ";
tag_DC1.Value = 0;
tag_DC1.BackgroundColor = [0.8,0.8,0.8];
////////////////
value_DC1=uicontrol(mag2,"style","edit");
value_DC1.Units="normalized";
value_DC1.Position = [0.67,0.71,0.1,0.06]//[lmargin topmargin width height];
value_DC1.String = "0";
value_DC1.Value = 0;
value_DC1.BackgroundColor = [0.7,0.8,0.8];
////////////////
tag_zeta=uicontrol(mag2,"style","text");
tag_zeta.Units="normalized";
tag_zeta.Position = [0.55,0.6,0.8,0.08]//[lmargin topmargin width height];
tag_zeta.String = " zeta = ";
tag_zeta.Value = 0;
tag_zeta.BackgroundColor = [0.8,0.8,0.8];
////////////////
value_zeta=uicontrol(mag2,"style","edit");
value_zeta.Units="normalized";
value_zeta.Position = [0.67,0.61,0.1,0.06]//[lmargin topmargin width height];
value_zeta.String = "0";
value_zeta.Value = 0;
value_zeta.BackgroundColor = [0.7,0.8,0.8];
////////////////
tag_wn=uicontrol(mag2,"style","text");
tag_wn.Units="normalized";
tag_wn.Position = [0.55,0.5,0.8,0.08]//[lmargin topmargin width height];
tag_wn.String = " wn = ";
tag_wn.Value = 0;
tag_wn.BackgroundColor = [0.8,0.8,0.8];
////////////////
value_wn=uicontrol(mag2,"style","edit");
value_wn.Units="normalized";
value_wn.Position = [0.67,0.51,0.1,0.06]//[lmargin topmargin width height];
value_wn.String = "0";
value_wn.Value = 0;
value_wn.BackgroundColor = [0.7,0.8,0.8];
//////////////
tag_tr=uicontrol(mag2,"style","text");
tag_tr.Units="normalized";
tag_tr.Position = [0.55,0.4,0.8,0.08]//[lmargin topmargin width height];
tag_tr.String = " tr = ";
tag_tr.Value = 0;
tag_tr.BackgroundColor = [0.8,0.8,0.8];
////////////////
value_tr=uicontrol(mag2,"style","edit");
value_tr.Units="normalized";
value_tr.Position = [0.67,0.41,0.1,0.06]//[lmargin topmargin width height];
value_tr.String = "0";
value_tr.Value = 0;
value_tr.BackgroundColor = [0.7,0.8,0.8];
///////////
//////////////
tag_ts=uicontrol(mag2,"style","text");
tag_ts.Units="normalized";
tag_ts.Position = [0.55,0.3,0.8,0.08]//[lmargin topmargin width height];
tag_ts.String = " ts = ";
tag_ts.Value = 0;
tag_ts.BackgroundColor = [0.8,0.8,0.8];
////////////////
value_ts=uicontrol(mag2,"style","edit");
value_ts.Units="normalized";
value_ts.Position = [0.67,0.31,0.1,0.06]//[lmargin topmargin width height];
value_ts.String = "0";
value_ts.Value = 0;
value_ts.BackgroundColor = [0.7,0.8,0.8];
////////////////
//////////////
tag_mp=uicontrol(mag2,"style","text");
tag_mp.Units="normalized";
tag_mp.Position = [0.55,0.2,0.8,0.08]//[lmargin topmargin width height];
tag_mp.String = " mp = ";
tag_mp.Value = 0;
tag_mp.BackgroundColor = [0.8,0.8,0.8];
////////////////
value_mp=uicontrol(mag2,"style","edit");
value_mp.Units="normalized";
value_mp.Position = [0.67,0.21,0.1,0.06]//[lmargin topmargin width height];
value_mp.String = "0";
value_mp.Value = 0;
value_mp.BackgroundColor = [0.7,0.8,0.8];
///////////
global DC_chk
DC_chk=uicontrol(mag2,"style","text");
DC_chk.Units="normalized";
DC_chk.Position = [0.8,0.7,0.15,0.08]//[lmargin topmargin width height];
DC_chk.String = " ! ";
DC_chk.Value = 0;
DC_chk.BackgroundColor = [0.8,0.8,0.8];
/////
///////////
global zeta_chk
zeta_chk=uicontrol(mag2,"style","text");
zeta_chk.Units="normalized";
zeta_chk.Position = [0.8,0.6,0.15,0.08]//[lmargin topmargin width height];
zeta_chk.String = " ! ";
zeta_chk.Value = 0;
zeta_chk.Backgroundcolor = [0.8,0.8,0.8];
/////
global wn_chk
wn_chk=uicontrol(mag2,"style","text");
wn_chk.Units="normalized";
wn_chk.Position = [0.8,0.5,0.15,0.08]//[lmargin topmargin width height];
wn_chk.String = " ! ";
wn_chk.Value = 0;
wn_chk.Backgroundcolor = [0.8,0.8,0.8];
////////
global tr_chk
tr_chk=uicontrol(mag2,"style","text");
tr_chk.Units="normalized";
tr_chk.Position = [0.8,0.4,0.15,0.08]//[lmargin topmargin width height];
tr_chk.String = " ! ";
tr_chk.Value = 0;
tr_chk.Backgroundcolor = [0.8,0.8,0.8];
///////
global ts_chk
ts_chk=uicontrol(mag2,"style","text");
ts_chk.Units="normalized";
ts_chk.Position = [0.8,0.3,0.15,0.08]//[lmargin topmargin width height];
ts_chk.String = " ! ";
ts_chk.Value = 0;
ts_chk.Backgroundcolor = [0.8,0.8,0.8];
///////
global mp_chk
mp_chk=uicontrol(mag2,"style","text");
mp_chk.Units="normalized";
mp_chk.Position = [0.8,0.2,0.15,0.08]//[lmargin topmargin width height];
mp_chk.String = " ! ";
mp_chk.Value = 0;
mp_chk.Backgroundcolor = [0.8,0.8,0.8];
/////////
global tf
tf=uicontrol(mag2,"style","text");
tf.Units="normalized";
tf.Position = [0.01,0.07,0.5,0.1]//[lmargin topmargin width height];
tf.String = "Transfer Function:";
tf.Value = 0;
tf.Backgroundcolor = [0.8,0.8,0.8];
/////////
global line
line=uicontrol(mag2,"style","text");
line.Units="normalized";
line.Position = [0.2,0.07,0.5,0.1]//[lmargin topmargin width height];
line.String = "-------------------------------";
line.Value = 0;
line.Backgroundcolor = [0.8,0.8,0.8];
/////////
///////
global tf_num
tf_num=uicontrol(mag2,"style","text");
tf_num.Units="normalized";
tf_num.Position = [0.24,0.12,0.5,0.08]//[lmargin topmargin width height];
tf_num.String = " ";
tf_num.Value = 0;
tf_num.Backgroundcolor = [0.8,0.8,0.8];
//////
global tf_den
tf_den=uicontrol(mag2,"style","text");
tf_den.Units="normalized";
tf_den.Position = [0.21,0.04,0.5,0.08]//[lmargin topmargin width height];
tf_den.String = " ";
tf_den.Value = 0;
tf_den.Backgroundcolor = [0.8,0.8,0.8];
//////////////////////
a_old=0; b_old=0; m_old=0; c_old=0; y0_old=0;
function [DC, wn, zeta, tr, ts, mp]=maglev2(a,b,m,c,y0)
disp("inside maglev2")
global a_old b_old m_old c_old y0_old h sys
N=4;
u0=1.187*a*(y0+b)^N;
s=%s;
r=(N*u0)/(a*(y0+b)^(N+1));
num=1/(a*(y0+b)^N);
den=m*s^2+c*s+r;
DC=num/m
den=den/m;
cf=coeff(den);
wn=sqrt(cf(1))
zeta = cf(2)/(2*wn)
//////
tr=(%pi-atan(sqrt(1-zeta^2)/zeta))/(wn*sqrt(1-zeta^2));
ts=4/(zeta*wn);
mp=(exp(-%pi*zeta/sqrt(1-zeta^2)))*100;
t=0:0.1:200;
sys=syslin('c',num,den);
y=csim('step',t,sys);
//clear t sys
if ((a-a_old)~=0)|((b-b_old)~=0)|((c-c_old)~=0)|((m-m_old)~=0)|((y0-y0_old)~=0)
try(clf(h))
catch "";
end
plot2d(y)
h=gcf();
end
a_old = a;
b_old = b;
m_old = m;
c_old = c;
y0_old = y0;
endfunction
//////////////////
function check()
disp("inside check")
global value_a value_b value_m value_c value_y0 DC_chk wn_chk zeta_chk tr_chk ts_chk mp_chk sys tf_num tf_den DC wn zeta tr ts mp
disp(value_a)
[DC, wn, zeta, tr, ts, mp]=maglev2(value_a.value,value_b.value,value_m.value,value_c.value,value_y0.value)
tf_num.String = sci2exp(sys.num);
tf_den.String = sci2exp(sys.den);
if abs((strtod(value_DC1.string)-DC))<0.0001
DC_chk.String = "Correct";
else
DC_chk.String = "Incorrect";
end
if abs((strtod(value_zeta.string)-zeta))<0.0001
zeta_chk.String = "Correct";
else
zeta_chk.String = "Incorrect";
end
if abs((strtod(value_wn.string)-wn))<0.0001
wn_chk.String = "Correct";
else
wn_chk.String = "Incorrect";
end
if abs((strtod(value_tr.string)-tr))<0.0001
tr_chk.String = "Correct";
else
tr_chk.String = "Incorrect";
end
if abs((strtod(value_ts.string)-ts))<0.0001
ts_chk.String = "Correct";
else
ts_chk.String = "Incorrect";
end
if abs((strtod(value_mp.string)-mp))<0.0001
mp_chk.String = "Correct";
else
mp_chk.String = "Incorrect";
end
endfunction
////
check_all=uicontrol(mag2,"style","pushbutton");
check_all.Units="normalized";
check_all.Position = [0.67,0.11,0.2,0.06]//[lmargin topmargin width height];
check_all.String = "Check All";
check_all.Callback = "check";
check_all.Relief="raised";
check_all.BackgroundColor = [0.8,0.8,0.8];
////////////
function show()
global DC_chk zeta_chk wn_chk ts_chk tr_chk mp_chk DC wn zeta tr ts mp
disp(DC)
DC_chk.String = string(DC);
zeta_chk.String = string(zeta);
wn_chk.String = string(wn);
tr_chk.String = string(tr);
ts_chk.String = string(ts);
mp_chk.String = string(mp);
endfunction
////
answers=uicontrol(mag2,"style","pushbutton");
answers.Units="normalized";
answers.Position = [0.67,0.03,0.2,0.06]//[lmargin topmargin width height];
answers.String = "Show Answers";
answers.Callback = "show";
answers.Relief="raised";
answers.BackgroundColor = [0.8,0.8,0.8];
|
33a62779950f6766390e828764c609eb8fa7f95b | 4a1a479cc543db0fa266001a3bdccfd6882595aa | /quickPython/theBasic/ch11/n2w.tst | fbc5e4ee5ba136f2fdfc6f41596de18df26f4bcc | [] | no_license | anaquinpm/python | a1853a0c731cb7afaee712ba3e062ea302634bbc | 369504975431da2dce5bb1fbbdec12c2110f47b4 | refs/heads/master | 2020-12-31T10:59:40.156631 | 2020-06-17T18:50:50 | 2020-06-17T18:50:50 | 239,010,740 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 79 | tst | n2w.tst | 1 2 3 4 5 6 7 8 9 10 20 25 30 90 100
104 114 900 999
999,999,999
1,000,000,000
|
0636520719cc1a8675651e240af57c9fedccefff | 449d555969bfd7befe906877abab098c6e63a0e8 | /69/CH7/EX7.7/7_7.sce | b209c0e5cd47fe0702ada94fb81f474fa07b6b42 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 931 | sce | 7_7.sce | clear; clc; close;
Idss = 6*10^(-3);
Vp = -3;
Vdd = 18;
Rd = 1.8*10^(3);
Rs = 750;
Vg = 10*10^(6)*18/((10+110)*10^(6));
Vgs1 = Vp;
Id1 = 0;
Vgs2 = Vp/2;
Id2 = Idss/4;
Vgs3 = 0;
Id3 = Idss;
Vgs4 = 1;
Id4 = Idss*(1-(Vgs4/Vp))^2;
disp(Id4);
x = [Vgs1 Vgs2 Vgs3 Vgs4];
y = [Id1 Id2 Id3 Id4];
yi=smooth([x;y],0.1);
a = gca();
a.thickness = 2;
a.y_location = 'right';
a.x_label.text = 'Vgs';
a.y_label.text = 'Id(mA)';
a.title.text = 'Q-point for network';
a.grid = [1 1];
plot2d(yi(1,:)',yi(2,:)',[3]);
Id1 = 0;
Vgs1 = Vg-Id1*Rs;
Id2 = 3*10^(-3);
Vgs2 = Vg-Id2*Rs;
Id3 = 6*10^(-3);
Vgs3 = Vg-Id3*Rs;
x = [Vgs1 Vgs2 Vgs3];
y = [Id1 Id2 Id3];
plot2d(x,y);
a.data_bounds = [-3 0;2 10*10^(-3)];
Vgsq = -0.8;
disp(Vgsq,'Q-point value of Vgs(found after interpolation) is :');
Idq = 3.1*10^(-3);
Vds = Vdd - Idq*(Rd+Rs);
disp(Idq,'Idq(Amperes) = ');
disp(Vds,'Vds(Volts) = ');
|
fa2ced62779268dcc9ea9c08b1e74cdea9358222 | 6e896f0233dfd01cceb36d7b71262cf52ede3aef | /env/.env.tst | d854aaf42e7a7d81d44aec7472a72f76483854e5 | [] | no_license | Guyn/swatches | efc2c81cda1b69e4992ea10ae3682fbf38702ec6 | b045ac71ba58b83cfc2c57febee1e82c9b875644 | refs/heads/master | 2023-07-13T10:58:59.040800 | 2020-04-01T16:20:37 | 2020-04-01T16:20:37 | 252,086,341 | 0 | 0 | null | 2023-07-07T23:02:00 | 2020-04-01T06:03:44 | Vue | UTF-8 | Scilab | false | false | 49 | tst | .env.tst | STAGE=staging
API=https://staging.api.example.com |
14b28220d7abbd10212b21cbf0caeec3f7e13a98 | 35071fb08cee13f4a9e79c396f7c8c028f69db0e | /Tests/Syntaxe/KO/return_int_from_void.tst | 43c3da0f2e41e7a41c85a74ed1a544dad01116f2 | [] | no_license | V1nc3ntL/Compilation | 2cd9d4fa728055cebd44659cba517e49298142bc | e2008449ddb509021f6ddcfd0a92226807bec9ab | refs/heads/master | 2023-06-01T09:42:01.069684 | 2021-06-02T19:15:13 | 2021-06-02T19:15:13 | 357,205,127 | 0 | 0 | null | 2021-05-31T12:13:32 | 2021-04-12T13:30:46 | C | UTF-8 | Scilab | false | false | 101 | tst | return_int_from_void.tst | int tst;
void main(){
if(tst == 0){
return 1;
}
else{
return 0;
}
} |
206ab06825169e61c3cab90d6c115cbde7d2f473 | 51f76fc86384808f81a7b6e72d8b7645aa953018 | /Act_9(2).sce | 48e6a4c0c7fae643c6965971011b09c9129ae3c3 | [
"MIT"
] | permissive | marychrisgo/Image-Processing-Activities | 5987315b8101cadec8b89298400b357014e4d698 | bf05c492451b69a3028cf3f5a7674da621ca54c7 | refs/heads/master | 2020-12-15T10:42:05.452822 | 2020-08-23T09:55:14 | 2020-08-23T09:55:14 | 235,077,663 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,472 | sce | Act_9(2).sce | flist =[]
dlist =[]
i = 1
while i<54
if sum(sizelist(i)==[180:210])
if sum(xlist(i)==[35:38])
flist = [flist 261.63*2]
dlist =[dlist 1]
end
if sum(xlist(i)==[26:32])
flist = [flist 293.66*2]
dlist =[dlist 1]
end
if sum(xlist(i)==[19:25])
flist = [flist 329.63*2]
dlist =[dlist 1]
end
if sum(xlist(i)==[39:45])
flist = [flist 246.94*2]
dlist =[dlist 1]
end
if sum(xlist(i)==[43:50])
flist = [flist 220.00*2]
dlist =[dlist 1]
end
end
if sum(sizelist(i)==[40:60])
if sum(xlist(i+1)==[36:42])
flist = [flist 261.63*2]
dlist =[dlist 2]
end
if sum(xlist(i+1)==[29:35])
flist = [flist 293.66*2]
dlist =[dlist 2]
end
if sum(xlist(i+1)==[22:28])
flist = [flist 329.63*2]
dlist =[dlist 2]
end
if sum(xlist(i+1)==[48:54])
flist = [flist 220.00*2]
dlist =[dlist 2]
end
if sum(xlist(i+1)==[54:60])
flist = [flist 196.0*2]
dlist =[dlist 2]
end
i = i+1
end
if sum(sizelist(i)==[180])
flist =[flist 1]
dlist =[dlist 1]
end
if sum(sizelist(i)==[26])
if sum(sizelist(i+1)==26)
flist =[flist flist]
dlist =[dlist dlist]
i=i+1;
else
dlist(size(dlist,2))=dlist(size(dlist,2))+1
end
end
i=i+1;
end
function n = note_func(f, t)
n = sin(2*%pi*f*linspace(0,t,8192*t));
line1 = linspace(0, 1, 410*t);
line2 = linspace(1, 1, 819*t);
line3 = linspace(1, 0.9, 819*t);
line4 = linspace(0.9, 0.45, 5734*t);
line5 = linspace(0.45, 0, 410*t);
envp=[line1,line2,line3,line4,line5];
n=n.*envp
endfunction;
|
a69994ad4117a3c52e4dbff443df8e34f9183eed | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/1.1/Unix/scilab-1.1/macros/sci2for/f_eye.sci | 39e0b24db01eeb558188509d16f35a0e5c3b9563 | [
"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 | 701 | sci | f_eye.sci | //[stk,nwrk,txt,top]=f_eye(nwrk)
// genere le code fortran relatif a la primitive eye
//!
txt=[]
select rhs
case 0 then
//write(6,'eye');pause
top=top+1;stk=list('1.0',0,'-1','-1','0')
case 1 then
s2=stk(top)
[out,nwrk,txt]=outname(nwrk,'1',s2(4),s2(5))
txt=[txt;gencall(['dset',mulf(s2(4),s2(5)),'0.0d0',out,'1']);
gencall(['dset',s2(4),'1.0d0',out,addf(s2(4),'1')]')]
stk=list(out,'-1',1,s2(4),s2(5))
case 2 then
s1=stk(top-1)
s2=stk(top)
[out,nwrk,txt]=outname(nwrk,'1',s1(1),s2(1))
txt=[txt;gencall(['dset',mulf(s1(1),s2(1)),'0.0d0',out,'1']);
gencall(['dset',s1(1),'1.0d0',out,addf(s1(1),'1')])]
stk=list(out,'-1',1,s1(1),s2(1))
end
//end
|
d469f48c59b78583819b7b4eb9bece7fb080b42c | 7b040f1a7bbc570e36aab9b2ccf77a9e59d3e5c2 | /Scilab/virtual/Self_tuning_controller/ConventionalTuning_Vikas/PIDControllersetpointchange/clientread.sce | 1349161c688cb1d3f1b821949444c2fe5e777083 | [] | no_license | advait23/sbhs-manual | e2c380051117e3a36398bb5ad046781f7b379cb9 | d65043acd98334c44a0f0dbf480473c4c4451834 | refs/heads/master | 2021-01-16T19:50:40.218314 | 2012-11-16T04:11:12 | 2012-11-16T04:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 32,085 | sce | clientread.sce | 2934 1310972512713 1310972848046 0.0 251.0 33.4
2935 1310972518070 1310972853406 0.0 100.0 33.2
2936 1310972518473 1310972853796 39.0 100.0 33.1
2937 1310972518875 1310972854203 31.309 100.0 33.1
2938 1310972519275 1310972854609 20.981 100.0 33.0
2939 1310972519677 1310972855000 29.331 100.0 33.0
2940 1310972520090 1310972855421 19.223 100.0 32.9
2941 1310972520480 1310972855812 27.793 100.0 32.7
2942 1310972520871 1310972856203 39.0 100.0 32.9
2943 1310972521271 1310972856593 0.10425 100.0 32.7
2944 1310972521682 1310972857015 35.484 100.0 32.6
2945 1310972522073 1310972857406 28.892 100.0 32.6
2946 1310972522485 1310972857812 19.662 100.0 32.6
2947 1310972522876 1310972858203 18.344 100.0 32.7
2948 1310972523278 1310972858609 6.2573 100.0 32.7
2949 1310972523679 1310972859015 12.63 100.0 32.6
2950 1310972524080 1310972859406 21.86 100.0 32.6
2951 1310972524481 1310972859812 12.63 100.0 32.6
2952 1310972524874 1310972860203 11.312 100.0 32.6
2953 1310972525276 1310972860609 9.993 100.0 32.6
2954 1310972525688 1310972861015 8.6745 100.0 32.6
2955 1310972526078 1310972861406 7.356 100.0 32.5
2956 1310972526480 1310972861812 16.805 100.0 32.6
2957 1310972526881 1310972862218 0.0 100.0 32.5
2958 1310972527272 1310972862609 17.36 100.0 32.5
2959 1310972527672 1310972863000 8.3505 100.0 32.5
2960 1310972528073 1310972863406 7.2518 100.0 32.6
2961 1310972528484 1310972863812 0.0 100.0 32.6
2962 1310972528874 1310972864203 6.5925 100.0 32.6
2963 1310972529273 1310972864609 5.274 100.0 32.5
2964 1310972529684 1310972865015 14.723 100.0 32.6
2965 1310972530072 1310972865406 0.0 100.0 32.6
2966 1310972530482 1310972865812 6.5925 100.0 32.6
2967 1310972530881 1310972866203 5.274 100.0 32.6
2968 1310972531272 1310972866593 3.9555 100.0 32.6
2969 1310972531673 1310972867000 2.637 100.0 32.6
2970 1310972532074 1310972867406 1.3185 100.0 32.5
2971 1310972532474 1310972867796 10.768 100.0 32.6
2972 1310972532876 1310972868203 0.0 100.0 32.5
2973 1310972533274 1310972868609 17.36 100.0 32.5
2974 1310972533686 1310972869015 8.3505 100.0 32.5
2975 1310972534065 1310972869390 7.2518 100.0 32.4
2976 1310972534478 1310972869812 16.921 100.0 32.4
2977 1310972534890 1310972870218 8.1308 100.0 32.4
2978 1310972535278 1310972870609 7.2518 100.0 32.4
2979 1310972535678 1310972871000 6.3728 100.0 32.4
2980 1310972536079 1310972871406 5.4938 100.0 32.4
2981 1310972536477 1310972871812 4.6148 100.0 32.4
2982 1310972536875 1310972872203 3.7358 100.0 32.3
2983 1310972537287 1310972872609 13.625 100.0 32.3
2984 1310972537678 1310972873000 5.0543 100.0 32.4
2985 1310972538068 1310972873390 0.0 100.0 32.3
2986 1310972538481 1310972873812 17.8 100.0 32.3
2987 1310972538882 1310972874218 9.2295 100.0 32.3
2988 1310972539271 1310972874593 8.5703 100.0 32.3
2989 1310972539672 1310972875000 7.911 100.0 32.3
2990 1310972540084 1310972875406 7.2518 100.0 32.3
2991 1310972540474 1310972875796 6.5925 100.0 32.2
2992 1310972540872 1310972876203 16.701 100.0 32.2
2993 1310972541273 1310972876609 8.3505 100.0 32.0
2994 1310972541682 1310972877015 29.447 100.0 32.0
2995 1310972542070 1310972877406 13.625 100.0 32.0
2996 1310972542481 1310972877812 13.625 100.0 32.0
2997 1310972542871 1310972878203 13.625 100.0 32.0
2998 1310972543271 1310972878593 13.625 100.0 31.9
2999 1310972543681 1310972879015 24.392 100.0 32.0
3000 1310972544083 1310972879406 5.9332 100.0 31.9
3001 1310972544472 1310972879796 24.612 100.0 31.9
3002 1310972544884 1310972880218 16.921 100.0 31.9
3003 1310972545282 1310972880609 17.141 100.0 31.9
3004 1310972545672 1310972881000 17.36 100.0 31.9
3005 1310972546081 1310972881406 17.58 100.0 31.9
3006 1310972546470 1310972881796 17.8 100.0 32.0
3007 1310972546882 1310972882203 7.2518 100.0 31.8
3008 1310972547282 1310972882609 36.698 100.0 31.9
3009 1310972547671 1310972883000 10.548 100.0 31.9
3010 1310972548070 1310972883406 18.679 100.0 31.9
3011 1310972548471 1310972883796 18.899 100.0 31.9
3012 1310972548882 1310972884203 19.118 100.0 31.9
3013 1310972549282 1310972884609 19.338 100.0 32.0
3014 1310972549682 1310972885015 8.79 100.0 32.0
3015 1310972550072 1310972885406 16.701 100.0 32.0
3016 1310972550482 1310972885812 16.701 100.0 32.0
3017 1310972550871 1310972886203 16.701 100.0 32.0
3018 1310972551272 1310972886593 16.701 100.0 32.2
3019 1310972551684 1310972887015 0.0 100.0 32.2
3020 1310972552085 1310972887406 15.383 100.0 32.2
3021 1310972552476 1310972887796 14.943 100.0 32.2
3022 1310972552888 1310972888218 14.504 100.0 32.3
3023 1310972553289 1310972888625 3.2963 100.0 32.2
3024 1310972553680 1310972889015 21.316 100.0 32.2
3025 1310972554081 1310972889406 12.965 100.0 32.2
3026 1310972554473 1310972889796 12.526 100.0 32.3
3027 1310972554891 1310972890218 1.3185 100.0 32.3
3028 1310972555282 1310972890609 8.5703 100.0 32.3
3029 1310972555672 1310972891000 7.911 100.0 32.3
3030 1310972556074 1310972891406 7.2518 100.0 32.4
3031 1310972556473 1310972891796 0.0 100.0 32.3
3032 1310972556874 1310972892203 17.8 100.0 32.4
3033 1310972557276 1310972892609 0.0 100.0 32.4
3034 1310972557687 1310972893015 7.032 100.0 32.4
3035 1310972558066 1310972893390 6.153 100.0 32.4
3036 1310972558479 1310972893812 5.274 100.0 32.4
3037 1310972558870 1310972894203 4.395 100.0 32.4
3038 1310972559268 1310972894593 3.516 100.0 32.4
3039 1310972559679 1310972895000 2.637 100.0 32.4
3040 1310972560080 1310972895406 1.758 100.0 32.4
3041 1310972560480 1310972895812 0.879 100.0 32.4
3042 1310972560878 1310972896203 2.025E-13 100.0 32.3
3043 1310972561280 1310972896609 9.8888 100.0 32.4
3044 1310972561680 1310972897015 0.0 100.0 32.3
3045 1310972562079 1310972897406 17.8 100.0 32.3
3046 1310972562479 1310972897812 9.2295 100.0 32.3
3047 1310972562880 1310972898203 8.5703 100.0 32.3
3048 1310972563280 1310972898609 7.911 100.0 32.3
3049 1310972563681 1310972899031 7.2518 100.0 32.3
3050 1310972564075 1310972899406 6.5925 100.0 32.3
3051 1310972564476 1310972899796 5.9333 100.0 32.2
3052 1310972564884 1310972900218 16.042 100.0 32.2
3053 1310972565273 1310972900593 7.6913 100.0 32.2
3054 1310972565685 1310972901015 7.2518 100.0 32.2
3055 1310972566074 1310972901406 6.8123 100.0 32.0
3056 1310972566483 1310972901812 27.908 100.0 32.0
3057 1310972566872 1310972902203 12.086 100.0 31.9
3058 1310972567273 1310972902593 22.854 100.0 31.9
3059 1310972567684 1310972903015 15.163 100.0 31.8
3060 1310972568083 1310972903406 26.15 100.0 31.9
3061 1310972568483 1310972903812 7.911 100.0 31.8
3062 1310972568883 1310972904218 26.809 100.0 31.8
3063 1310972569283 1310972904609 19.338 100.0 31.8
3064 1310972569672 1310972905000 19.778 100.0 31.9
3065 1310972570083 1310972905406 9.4493 100.0 31.9
3066 1310972570473 1310972905796 17.58 100.0 31.8
3067 1310972570883 1310972906203 28.567 100.0 31.8
3068 1310972571285 1310972906609 21.096 100.0 31.9
3069 1310972571675 1310972907000 10.768 100.0 31.9
3070 1310972572075 1310972907406 18.899 100.0 31.8
3071 1310972572475 1310972907796 29.886 100.0 31.9
3072 1310972572875 1310972908203 11.647 100.0 31.9
3073 1310972573275 1310972908609 19.778 100.0 31.9
3074 1310972573687 1310972909015 19.997 100.0 31.8
3075 1310972574078 1310972909406 30.985 100.0 31.8
3076 1310972574478 1310972909812 23.513 100.0 31.8
3077 1310972574884 1310972910218 23.953 100.0 31.9
3078 1310972575274 1310972910609 13.625 100.0 31.9
3079 1310972575684 1310972911015 21.755 100.0 32.0
3080 1310972576075 1310972911406 11.207 100.0 32.0
3081 1310972576485 1310972911812 19.118 100.0 32.2
3082 1310972576886 1310972912218 0.0 100.0 32.0
3083 1310972577276 1310972912609 36.918 100.0 32.2
3084 1310972577686 1310972913015 0.0 100.0 32.2
3085 1310972578087 1310972913421 15.383 100.0 32.3
3086 1310972578478 1310972913812 4.1753 100.0 32.3
3087 1310972578878 1310972914203 11.427 100.0 32.3
3088 1310972579278 1310972914609 10.768 100.0 32.4
3089 1310972579678 1310972915000 0.0 100.0 32.4
3090 1310972580076 1310972915406 7.032 100.0 32.4
3091 1310972580475 1310972915796 6.153 100.0 32.4
3092 1310972580876 1310972916203 5.274 100.0 32.4
3093 1310972581278 1310972916609 4.395 100.0 32.5
3094 1310972581677 1310972917000 0.0 100.0 32.5
3095 1310972582076 1310972917406 6.8123 100.0 32.6
3096 1310972582477 1310972917796 0.0 100.0 32.5
3097 1310972582878 1310972918203 17.36 100.0 32.5
3098 1310972583279 1310972918609 8.3505 100.0 32.5
3099 1310972583680 1310972919000 7.2518 100.0 32.5
3100 1310972584070 1310972919390 6.153 100.0 32.6
3101 1310972584481 1310972919812 0.0 100.0 32.6
3102 1310972584886 1310972920218 6.5925 100.0 32.6
3103 1310972585287 1310972920609 5.274 100.0 32.6
3104 1310972585677 1310972921000 3.9555 100.0 32.5
3105 1310972586077 1310972921406 13.405 100.0 32.5
3106 1310972586479 1310972921812 4.395 100.0 32.5
3107 1310972586880 1310972922203 3.2963 100.0 32.5
3108 1310972587292 1310972922625 2.1975 100.0 32.4
3109 1310972587672 1310972923000 11.867 100.0 32.5
3110 1310972588071 1310972923406 0.0 100.0 32.4
3111 1310972588482 1310972923812 17.58 100.0 32.4
3112 1310972588883 1310972924203 8.79 100.0 32.4
3113 1310972589274 1310972924593 7.911 100.0 32.4
3114 1310972589684 1310972925015 7.032 100.0 32.4
3115 1310972590074 1310972925406 6.153 100.0 32.4
3116 1310972590486 1310972925812 5.274 100.0 32.4
3117 1310972590887 1310972926218 4.395 100.0 32.3
3118 1310972591276 1310972926609 14.284 100.0 32.4
3119 1310972591675 1310972927000 0.0 100.0 32.3
3120 1310972592073 1310972927406 17.8 100.0 32.3
3121 1310972592483 1310972927812 9.2295 100.0 32.2
3122 1310972592871 1310972928203 19.338 100.0 32.3
3123 1310972593272 1310972928593 0.21975 100.0 32.2
3124 1310972593684 1310972929015 18.239 100.0 32.0
3125 1310972594085 1310972929406 31.424 100.0 32.0
3126 1310972594484 1310972929812 15.602 100.0 32.0
3127 1310972594873 1310972930218 15.602 100.0 32.0
3128 1310972595274 1310972930593 15.602 100.0 32.0
3129 1310972595683 1310972931015 15.602 100.0 32.0
3130 1310972596083 1310972931406 15.602 100.0 32.0
3131 1310972596484 1310972931812 15.602 100.0 32.0
3132 1310972596885 1310972932218 15.602 100.0 32.0
3133 1310972597286 1310972932609 15.602 100.0 32.0
3134 1310972597675 1310972933000 15.602 100.0 32.0
3135 1310972598083 1310972933406 15.602 100.0 32.0
3136 1310972598473 1310972933796 15.602 100.0 32.0
3137 1310972598881 1310972934203 15.602 100.0 32.0
3138 1310972599281 1310972934609 15.602 100.0 32.0
3139 1310972599672 1310972935000 15.602 100.0 32.2
3140 1310972600072 1310972935406 0.0 100.0 32.0
3141 1310972600473 1310972935796 36.918 100.0 31.9
3142 1310972600885 1310972936218 31.864 100.0 31.9
3143 1310972601274 1310972936593 24.173 100.0 32.0
3144 1310972601683 1310972937015 13.625 100.0 32.0
3145 1310972602073 1310972937406 21.536 100.0 32.0
3146 1310972602483 1310972937812 21.536 100.0 32.2
3147 1310972602874 1310972938203 7.1054E-15 100.0 32.0
3148 1310972603275 1310972938593 36.918 100.0 32.2
3149 1310972603685 1310972939015 0.0 100.0 32.2
3150 1310972604085 1310972939406 15.383 100.0 32.3
3151 1310972604486 1310972939812 4.1753 100.0 32.3
3152 1310972604876 1310972940203 11.427 100.0 32.3
3153 1310972605275 1310972940593 10.768 100.0 32.4
3154 1310972605683 1310972941015 0.0 100.0 32.4
3155 1310972606084 1310972941406 7.032 100.0 32.4
3156 1310972606483 1310972941812 6.153 100.0 32.4
3157 1310972606882 1310972942203 5.274 100.0 32.4
3158 1310972607283 1310972942609 4.395 100.0 32.3
3159 1310972607684 1310972943015 14.284 100.0 32.4
3160 1310972608074 1310972943406 0.0 100.0 32.4
3161 1310972608486 1310972943812 7.032 100.0 32.4
3162 1310972608886 1310972944218 6.153 100.0 32.4
3163 1310972609276 1310972944609 5.274 100.0 32.4
3164 1310972609676 1310972945000 4.395 100.0 32.5
3165 1310972610078 1310972945406 0.0 100.0 32.4
3166 1310972610478 1310972945796 17.58 100.0 32.4
3167 1310972610888 1310972946218 8.79 100.0 32.4
3168 1310972611287 1310972946609 7.911 100.0 32.4
3169 1310972611680 1310972947000 7.032 100.0 32.4
3170 1310972612088 1310972947406 6.153 100.0 32.4
3171 1310972612478 1310972947796 5.274 100.0 32.4
3172 1310972612876 1310972948203 4.395 100.0 32.3
3173 1310972613276 1310972948609 14.284 100.0 32.3
3174 1310972613676 1310972949000 5.7135 100.0 32.3
3175 1310972614078 1310972949406 5.0543 100.0 32.2
3176 1310972614490 1310972949812 15.163 100.0 32.2
3177 1310972614879 1310972950218 6.8123 100.0 32.2
3178 1310972615276 1310972950593 6.3728 100.0 32.3
3179 1310972615686 1310972951015 0.0 100.0 32.2
3180 1310972616086 1310972951406 18.019 100.0 32.2
3181 1310972616486 1310972951812 9.669 100.0 32.2
3182 1310972616875 1310972952203 9.2295 100.0 32.2
3183 1310972617275 1310972952593 8.79 100.0 32.2
3184 1310972617686 1310972953015 8.3505 100.0 32.2
3185 1310972618085 1310972953406 7.911 100.0 32.0
3186 1310972618483 1310972953812 29.007 100.0 32.0
3187 1310972618881 1310972954203 13.185 100.0 32.0
3188 1310972619292 1310972954609 13.185 100.0 32.2
3189 1310972619679 1310972955000 0.0 100.0 32.0
3190 1310972620091 1310972955421 36.918 100.0 32.0
3191 1310972620481 1310972955812 21.096 100.0 31.9
3192 1310972620882 1310972956203 31.864 100.0 31.9
3193 1310972621294 1310972956625 24.173 100.0 31.9
3194 1310972621672 1310972957000 24.392 100.0 31.8
3195 1310972622081 1310972957406 35.38 100.0 31.9
3196 1310972622481 1310972957812 17.141 100.0 31.9
3197 1310972622870 1310972958187 25.271 100.0 31.9
3198 1310972623271 1310972958593 25.491 100.0 32.0
3199 1310972623682 1310972959000 14.943 100.0 32.0
3200 1310972624083 1310972959406 22.854 100.0 32.0
3201 1310972624484 1310972959812 22.854 100.0 32.0
3202 1310972624883 1310972960218 22.854 100.0 32.0
3203 1310972625287 1310972960609 22.854 100.0 32.0
3204 1310972625677 1310972961000 22.854 100.0 32.0
3205 1310972626077 1310972961406 22.854 100.0 32.0
3206 1310972626478 1310972961796 22.854 100.0 32.3
3207 1310972626890 1310972962218 0.0 100.0 32.3
3208 1310972627289 1310972962609 23.074 100.0 32.3
3209 1310972627678 1310972963000 22.414 100.0 32.2
3210 1310972628079 1310972963406 32.523 100.0 32.3
3211 1310972628480 1310972963812 13.405 100.0 32.3
3212 1310972628881 1310972964203 20.656 100.0 32.4
3213 1310972629282 1310972964609 9.2295 100.0 32.4
3214 1310972629682 1310972965015 16.261 100.0 32.4
3215 1310972630083 1310972965406 15.382 100.0 32.5
3216 1310972630471 1310972965796 3.7357 100.0 32.5
3217 1310972630882 1310972966203 10.548 100.0 32.5
3218 1310972631271 1310972966593 9.4492 100.0 32.6
3219 1310972631684 1310972967015 0.0 100.0 32.5
3220 1310972632084 1310972967406 17.36 100.0 32.7
3221 1310972632484 1310972967812 0.0 100.0 32.7
3222 1310972632884 1310972968203 14.284 100.0 32.7
3223 1310972633294 1310972968625 12.746 100.0 32.7
3224 1310972633684 1310972969015 11.207 100.0 32.7
3225 1310972634085 1310972969406 9.669 100.0 32.7
3226 1310972634474 1310972969796 8.1308 100.0 32.6
3227 1310972634884 1310972970203 17.36 100.0 32.7
3228 1310972635286 1310972970609 0.0 100.0 32.7
3229 1310972635676 1310972971000 6.3728 100.0 32.7
3230 1310972636076 1310972971406 4.8345 100.0 32.9
3231 1310972636476 1310972971796 0.0 100.0 32.7
3232 1310972636877 1310972972203 35.38 100.0 32.9
3233 1310972637276 1310972972593 0.0 100.0 32.7
3234 1310972637684 1310972973015 35.38 100.0 32.9
3235 1310972638073 1310972973390 0.0 100.0 32.9
3236 1310972638482 1310972973812 13.844 100.0 32.7
3237 1310972638872 1310972974203 33.402 100.0 32.7
3238 1310972639272 1310972974593 16.042 100.0 32.7
3239 1310972639684 1310972975015 14.503 100.0 32.7
3240 1310972640083 1310972975406 12.965 100.0 32.7
3241 1310972640484 1310972975812 11.427 100.0 32.7
3242 1310972640884 1310972976203 9.8887 100.0 32.9
3243 1310972641286 1310972976609 0.0 100.0 32.7
3244 1310972641687 1310972977015 35.38 100.0 32.9
3245 1310972642087 1310972977406 0.0 100.0 32.7
3246 1310972642478 1310972977796 35.38 100.0 32.7
3247 1310972642890 1310972978218 18.019 100.0 32.7
3248 1310972643280 1310972978609 16.481 100.0 32.7
3249 1310972643680 1310972979000 14.943 100.0 32.9
3250 1310972644080 1310972979406 0.0 100.0 32.7
3251 1310972644492 1310972979812 35.38 100.0 32.7
3252 1310972644892 1310972980234 18.019 100.0 32.7
3253 1310972645282 1310972980609 16.481 100.0 32.9
3254 1310972645683 1310972981000 0.0 100.0 32.9
3255 1310972646084 1310972981406 13.844 100.0 32.7
3256 1310972646483 1310972981812 33.402 100.0 32.9
3257 1310972646883 1310972982203 0.0 100.0 33.0
3258 1310972647284 1310972982609 3.0765 100.0 32.9
3259 1310972647674 1310972983000 19.558 100.0 32.9
3260 1310972648086 1310972983406 9.669 100.0 32.9
3261 1310972648486 1310972983812 7.6912 100.0 32.9
3262 1310972648887 1310972984218 5.7135 100.0 32.9
3263 1310972649287 1310972984609 3.7357 100.0 32.9
3264 1310972649688 1310972985015 1.758 100.0 32.9
3265 1310972650077 1310972985406 0.0 100.0 33.0
3266 1310972650488 1310972985812 0.0 100.0 33.0
3267 1310972650888 1310972986218 5.7135 100.0 32.9
3268 1310972651289 1310972986609 14.284 100.0 32.9
3269 1310972651680 1310972987000 4.395 100.0 33.0
3270 1310972652081 1310972987406 0.0 100.0 33.0
3271 1310972652480 1310972987796 5.7135 100.0 32.9
3272 1310972652881 1310972988203 14.284 100.0 32.9
3273 1310972653281 1310972988609 4.395 100.0 32.9
3274 1310972653682 1310972989000 2.4173 100.0 32.7
3275 1310972654083 1310972989406 21.975 100.0 32.7
3276 1310972654482 1310972989812 4.6148 100.0 32.6
3277 1310972654892 1310972990218 13.844 100.0 32.7
3278 1310972655285 1310972990609 0.0 100.0 32.6
3279 1310972655685 1310972991015 17.141 100.0 32.6
3280 1310972656086 1310972991406 7.911 100.0 32.6
3281 1310972656476 1310972991812 6.5925 100.0 32.5
3282 1310972656882 1310972992203 16.042 100.0 32.5
3283 1310972657282 1310972992609 7.032 100.0 32.5
3284 1310972657680 1310972993000 5.9333 100.0 32.6
3285 1310972658081 1310972993406 0.0 100.0 32.5
3286 1310972658481 1310972993812 17.36 100.0 32.5
3287 1310972658880 1310972994203 8.3505 100.0 32.5
3288 1310972659280 1310972994609 7.2518 100.0 32.4
3289 1310972659692 1310972995015 16.921 100.0 32.4
3290 1310972660071 1310972995390 8.1308 100.0 32.4
3291 1310972660483 1310972995812 7.2518 100.0 32.4
3292 1310972660885 1310972996203 6.3728 100.0 32.4
3293 1310972661286 1310972996609 5.4938 100.0 32.3
3294 1310972661687 1310972997015 15.383 100.0 32.3
3295 1310972662087 1310972997406 6.8123 100.0 32.3
3296 1310972662477 1310972997796 6.153 100.0 32.3
3297 1310972662876 1310972998203 5.4938 100.0 32.2
3298 1310972663287 1310972998609 15.602 100.0 32.3
3299 1310972663677 1310972999000 0.0 100.0 32.2
3300 1310972664078 1310972999406 18.019 100.0 32.2
3301 1310972664490 1310972999812 9.669 100.0 32.2
3302 1310972664880 1310973000203 9.2295 100.0 32.2
3303 1310972665280 1310973000609 8.79 100.0 32.0
3304 1310972665691 1310973001015 29.886 100.0 32.0
3305 1310972666092 1310973001421 14.064 100.0 32.0
3306 1310972666494 1310973001812 14.064 100.0 32.0
3307 1310972666883 1310973002203 14.064 100.0 32.0
3308 1310972667281 1310973002609 14.064 100.0 32.0
3309 1310972667681 1310973003000 14.064 100.0 31.8
3310 1310972668082 1310973003406 35.599 100.0 31.8
3311 1310972668482 1310973003812 20.217 100.0 31.9
3312 1310972668882 1310973004203 9.8887 100.0 31.9
3313 1310972669282 1310973004609 18.019 100.0 31.9
3314 1310972669683 1310973005000 18.239 100.0 31.9
3315 1310972670084 1310973005406 18.459 100.0 31.9
3316 1310972670496 1310973005812 18.679 100.0 31.9
3317 1310972670875 1310973006203 18.898 100.0 31.9
3318 1310972671272 1310973006593 19.118 100.0 32.0
3319 1310972671684 1310973007000 8.5702 100.0 32.0
3320 1310972672097 1310973007421 16.481 100.0 31.9
3321 1310972672487 1310973007812 27.249 100.0 32.0
3322 1310972672888 1310973008203 8.79 100.0 32.0
3323 1310972673288 1310973008609 16.701 100.0 32.0
3324 1310972673678 1310973009000 16.701 100.0 32.0
3325 1310972674079 1310973009406 16.701 100.0 31.9
3326 1310972674479 1310973009796 27.469 100.0 32.0
3327 1310972674879 1310973010203 9.0097 100.0 32.0
3328 1310972675278 1310973010593 16.921 100.0 32.2
3329 1310972675689 1310973011015 0.0 100.0 32.2
3330 1310972676081 1310973011406 15.383 100.0 32.3
3331 1310972676492 1310973011812 4.1753 100.0 32.3
3332 1310972676892 1310973012218 11.427 100.0 32.3
3333 1310972677283 1310973012609 10.768 100.0 32.4
3334 1310972677683 1310973013000 0.0 100.0 32.4
3335 1310972678083 1310973013406 7.032 100.0 32.4
3336 1310972678495 1310973013812 6.153 100.0 32.4
3337 1310972678896 1310973014218 5.274 100.0 32.4
3338 1310972679286 1310973014609 4.395 100.0 32.4
3339 1310972679676 1310973015000 3.516 100.0 32.4
3340 1310972680087 1310973015406 2.637 100.0 32.4
3341 1310972680487 1310973015812 1.758 100.0 32.4
3342 1310972680887 1310973016203 0.879 100.0 32.4
3343 1310972681277 1310973016593 2.025E-13 100.0 32.4
3344 1310972681675 1310973017000 0.0 100.0 32.3
3345 1310972682076 1310973017406 9.8888 100.0 32.3
3346 1310972682488 1310973017812 1.3185 100.0 32.4
3347 1310972682888 1310973018203 0.0 100.0 32.4
3348 1310972683287 1310973018609 7.032 100.0 32.3
3349 1310972683677 1310973019000 16.921 100.0 32.3
3350 1310972684076 1310973019390 8.3505 100.0 32.3
3351 1310972684476 1310973019796 7.6913 100.0 32.3
3352 1310972684887 1310973020203 7.032 100.0 32.2
3353 1310972685285 1310973020609 17.14 100.0 32.2
3354 1310972685696 1310973021015 8.79 100.0 32.2
3355 1310972686072 1310973021390 8.3505 100.0 32.0
3356 1310972686484 1310973021812 29.447 100.0 32.0
3357 1310972686885 1310973022203 13.625 100.0 32.0
3358 1310972687286 1310973022609 13.625 100.0 32.0
3359 1310972687687 1310973023015 13.625 100.0 31.9
3360 1310972688086 1310973023406 24.392 100.0 31.9
3361 1310972688487 1310973023812 16.701 100.0 31.9
3362 1310972688887 1310973024203 16.921 100.0 31.9
3363 1310972689288 1310973024609 17.141 100.0 31.9
3364 1310972689687 1310973025015 17.36 100.0 31.9
3365 1310972690075 1310973025390 17.58 100.0 31.8
3366 1310972690486 1310973025812 28.567 100.0 31.8
3367 1310972690886 1310973026203 21.096 100.0 31.9
3368 1310972691286 1310973026609 10.768 100.0 31.9
3369 1310972691686 1310973027015 18.899 100.0 31.9
3370 1310972692086 1310973027406 19.118 100.0 32.0
3371 1310972692487 1310973027812 8.5702 100.0 31.9
3372 1310972692888 1310973028203 27.249 100.0 31.9
3373 1310972693287 1310973028609 19.558 100.0 32.0
3374 1310972693688 1310973029015 9.0097 100.0 32.0
3375 1310972694086 1310973029406 16.921 100.0 31.9
3376 1310972694488 1310973029812 27.689 100.0 32.0
3377 1310972694875 1310973030203 9.2295 100.0 32.0
3378 1310972695275 1310973030593 17.141 100.0 32.0
3379 1310972695687 1310973031015 17.141 100.0 32.0
3380 1310972696086 1310973031406 17.141 100.0 32.0
3381 1310972696486 1310973031812 17.141 100.0 32.2
3382 1310972696876 1310973032203 0.0 100.0 32.2
3383 1310972697276 1310973032593 15.383 100.0 32.2
3384 1310972697685 1310973033000 14.943 100.0 32.2
3385 1310972698086 1310973033406 14.504 100.0 32.3
3386 1310972698486 1310973033812 3.2963 100.0 32.3
3387 1310972698895 1310973034218 10.548 100.0 32.3
3388 1310972699295 1310973034609 9.8888 100.0 32.4
3389 1310972699685 1310973035000 0.0 100.0 32.4
3390 1310972700085 1310973035421 7.032 100.0 32.4
3391 1310972700494 1310973035812 6.153 100.0 32.4
3392 1310972700893 1310973036218 5.274 100.0 32.3
3393 1310972701280 1310973036609 15.163 100.0 32.3
3394 1310972701691 1310973037015 6.5925 100.0 32.4
3395 1310972702080 1310973037406 0.0 100.0 32.4
3396 1310972702491 1310973037812 7.032 100.0 32.4
3397 1310972702880 1310973038203 6.153 100.0 32.4
3398 1310972703281 1310973038609 5.274 100.0 32.4
3399 1310972703692 1310973039015 4.395 100.0 32.4
3400 1310972704090 1310973039406 3.516 100.0 32.4
3401 1310972704490 1310973039812 2.637 100.0 32.4
3402 1310972704890 1310973040218 1.758 100.0 32.4
3403 1310972705290 1310973040609 0.879 100.0 32.3
3404 1310972705692 1310973041015 10.768 100.0 32.4
3405 1310972706092 1310973041406 0.0 100.0 32.3
3406 1310972706482 1310973041796 17.8 100.0 32.3
3407 1310972706893 1310973042218 9.2295 100.0 32.3
3408 1310972707294 1310973042609 8.5703 100.0 32.3
3409 1310972707684 1310973043000 7.911 100.0 32.2
3410 1310972708084 1310973043406 18.019 100.0 32.2
3411 1310972708484 1310973043812 9.669 100.0 32.0
3412 1310972708884 1310973044203 30.765 100.0 32.2
3413 1310972709284 1310973044609 0.0 100.0 32.2
3414 1310972709684 1310973045000 15.383 100.0 32.0
3415 1310972710083 1310973045406 36.479 100.0 32.0
3416 1310972710493 1310973045812 20.657 100.0 32.0
3417 1310972710882 1310973046203 20.657 100.0 32.0
3418 1310972711283 1310973046609 20.657 100.0 32.0
3419 1310972711695 1310973047015 20.657 100.0 32.0
3420 1310972712094 1310973047421 20.657 100.0 32.0
3421 1310972712494 1310973047812 20.657 100.0 32.0
3422 1310972712883 1310973048203 20.657 100.0 32.0
3423 1310972713282 1310973048609 20.657 100.0 31.9
3424 1310972713693 1310973049015 31.424 100.0 32.0
3425 1310972714092 1310973049406 12.965 100.0 31.9
3426 1310972714492 1310973049812 31.644 100.0 32.0
3427 1310972714882 1310973050203 13.185 100.0 31.9
3428 1310972715282 1310973050609 31.864 100.0 32.0
3429 1310972715682 1310973051000 13.405 100.0 32.0
3430 1310972716083 1310973051406 21.316 100.0 32.2
3431 1310972716483 1310973051796 0.0 100.0 32.2
3432 1310972716883 1310973052203 15.383 100.0 32.2
3433 1310972717284 1310973052609 14.943 100.0 32.3
3434 1310972717683 1310973053000 3.7358 100.0 32.3
3435 1310972718095 1310973053421 39.0 100.0 32.3
3436 1310972718485 1310973053812 0.0 100.0 32.4
3437 1310972718887 1310973054203 0.0 100.0 32.4
3438 1310972719276 1310973054593 18.02 100.0 32.4
3439 1310972719685 1310973055000 28.128 100.0 32.4
3440 1310972720086 1310973055406 38.237 100.0 32.4
3441 1310972720486 1310973055812 39.0 100.0 32.5
3442 1310972720887 1310973056203 38.341 100.0 32.4
3443 1310972721289 1310973056609 39.0 100.0 32.3
3444 1310972721679 1310973057000 39.0 100.0 32.4
3445 1310972722091 1310973057406 30.649 100.0 32.4
3446 1310972722481 1310973057796 39.0 100.0 32.5
3447 1310972722881 1310973058203 38.341 100.0 32.5
3448 1310972723283 1310973058609 39.0 100.0 32.6
3449 1310972723684 1310973059000 38.121 100.0 32.7
3450 1310972724085 1310973059406 39.0 100.0 32.7
3451 1310972724486 1310973059812 39.0 100.0 33.0
3452 1310972724898 1310973060218 16.146 100.0 33.0
3453 1310972725288 1310973060609 39.0 100.0 33.0
3454 1310972725687 1310973061015 39.0 100.0 33.2
3455 1310972726087 1310973061406 26.254 100.0 33.3
3456 1310972726477 1310973061796 39.0 100.0 33.3
3457 1310972726877 1310973062203 39.0 100.0 33.4
3458 1310972727288 1310973062609 36.363 100.0 33.6
3459 1310972727689 1310973063015 30.649 100.0 33.6
3460 1310972728091 1310973063406 39.0 100.0 33.6
3461 1310972728480 1310973063796 39.0 100.0 33.7
3462 1310972728881 1310973064203 35.704 100.0 34.0
3463 1310972729281 1310973064593 18.563 100.0 34.1
3464 1310972729692 1310973065015 38.121 100.0 34.3
3465 1310972730093 1310973065406 30.869 100.0 34.5
3466 1310972730494 1310973065812 31.089 100.0 34.6
3467 1310972730893 1310973066218 39.0 100.0 34.7
3468 1310972731281 1310973066593 39.0 100.0 34.8
3469 1310972731693 1310973067015 39.0 100.0 35.0
3470 1310972732080 1310973067406 30.21 100.0 35.1
3471 1310972732492 1310973067812 39.0 100.0 35.2
3472 1310972732893 1310973068218 39.0 100.0 35.4
3473 1310972733283 1310973068609 29.331 100.0 35.5
3474 1310972733693 1310973069015 37.901 100.0 35.8
3475 1310972734083 1310973069406 16.805 100.0 35.9
3476 1310972734494 1310973069812 32.408 100.0 36.0
3477 1310972734881 1310973070203 31.968 100.0 36.0
3478 1310972735282 1310973070609 39.0 100.0 36.2
3479 1310972735693 1310973071015 19.662 100.0 36.2
3480 1310972736094 1310973071406 37.242 100.0 36.5
3481 1310972736495 1310973071812 6.6968 100.0 36.6
3482 1310972736895 1310973072218 20.761 100.0 36.7
3483 1310972737296 1310973072609 18.783 100.0 36.8
3484 1310972737686 1310973073000 16.586 100.0 37.0
3485 1310972738086 1310973073406 3.4005 100.0 37.2
3486 1310972738484 1310973073796 0.0 100.0 37.3
3487 1310972738895 1310973074218 4.6148 100.0 37.4
3488 1310972739305 1310973074625 1.0988 100.0 37.5
3489 1310972739682 1310973075000 0.0 100.0 37.6
3490 1310972740083 1310973075406 0.0 100.0 37.6
3491 1310972740483 1310973075796 6.5925 100.0 37.6
3492 1310972740884 1310973076203 5.274 100.0 37.6
3493 1310972741284 1310973076609 3.9555 100.0 37.7
3494 1310972741685 1310973077000 0.0 100.0 37.7
3495 1310972742084 1310973077406 6.3728 100.0 37.6
3496 1310972742483 1310973077796 15.602 100.0 37.6
3497 1310972742884 1310973078203 6.3728 100.0 37.6
3498 1310972743286 1310973078609 5.0543 100.0 37.6
3499 1310972743695 1310973079015 3.7358 100.0 37.6
3500 1310972744086 1310973079406 2.4173 100.0 37.5
3501 1310972744484 1310973079796 11.867 100.0 37.5
3502 1310972744885 1310973080203 2.8568 100.0 37.5
3503 1310972745285 1310973080609 1.758 100.0 37.4
3504 1310972745686 1310973081000 11.427 100.0 37.4
3505 1310972746087 1310973081406 2.637 100.0 37.4
3506 1310972746487 1310973081812 1.758 100.0 37.3
3507 1310972746887 1310973082203 11.647 100.0 37.2
3508 1310972747288 1310973082609 13.844 100.0 37.2
3509 1310972747678 1310973083000 5.4938 100.0 36.9
3510 1310972748079 1310973083406 37.358 100.0 36.9
3511 1310972748489 1310973083812 13.844 100.0 36.8
3512 1310972748891 1310973084203 24.832 100.0 36.7
3513 1310972749279 1310973084609 28.128 100.0 36.7
3514 1310972749694 1310973085015 20.876 100.0 36.6
3515 1310972750095 1310973085406 32.303 100.0 36.5
3516 1310972750483 1310973085796 36.039 100.0 36.5
3517 1310972750884 1310973086203 29.227 100.0 36.4
3518 1310972751293 1310973086609 39.0 100.0 36.4
3519 1310972751682 1310973087000 32.407 100.0 36.4
3520 1310972752093 1310973087406 33.726 100.0 36.2
3521 1310972752482 1310973087796 39.0 100.0 36.4
3522 1310972752893 1310973088218 3.4005 100.0 36.2
3523 1310972753293 1310973088609 39.0 100.0 36.1
3524 1310972753683 1310973089000 35.704 100.0 36.1
3525 1310972754084 1310973089406 29.771 100.0 36.1
3526 1310972754496 1310973089812 31.748 100.0 36.1
3527 1310972754896 1310973090218 33.726 100.0 36.0
3528 1310972755284 1310973090609 39.0 100.0 35.9
3529 1310972755692 1310973091015 39.0 100.0 36.0
3530 1310972756092 1310973091406 22.738 100.0 36.0
3531 1310972756480 1310973091796 32.847 100.0 36.1
3532 1310972756881 1310973092203 24.277 100.0 36.1
3533 1310972757282 1310973092593 34.165 100.0 36.2
3534 1310972757693 1310973093015 25.375 100.0 36.2
3535 1310972758094 1310973093406 35.044 100.0 36.4
3536 1310972758494 1310973093812 15.267 100.0 36.4
3537 1310972758895 1310973094218 32.407 100.0 36.5
3538 1310972759296 1310973094609 22.958 100.0 36.5
3539 1310972759686 1310973095000 31.968 100.0 36.6
3540 1310972760087 1310973095406 22.299 100.0 36.6
3541 1310972760485 1310973095796 31.089 100.0 36.7
3542 1310972760886 1310973096203 21.2 100.0 36.7
3543 1310972761286 1310973096609 29.77 100.0 36.6
3544 1310972761696 1310973097015 39.0 100.0 36.6
3545 1310972762086 1310973097406 31.968 100.0 36.8
3546 1310972762497 1310973097812 11.312 100.0 36.9
3547 1310972762885 1310973098203 16.805 100.0 37.0
3548 1310972763286 1310973098609 14.168 100.0 37.0
3549 1310972763687 1310973099000 22.079 100.0 37.2
3550 1310972764087 1310973099406 0.54375 100.0 37.2
3551 1310972764489 1310973099812 15.926 100.0 37.3
3552 1310972764889 1310973100203 4.719 100.0 37.3
3553 1310972765290 1310973100609 11.971 100.0 37.3
3554 1310972765690 1310973101015 11.312 100.0 37.3
3555 1310972766091 1310973101406 10.652 100.0 37.3
3556 1310972766491 1310973101812 9.993 100.0 37.4
3557 1310972766881 1310973102203 0.0 100.0 37.4
|
0cc025a16c3e47ea45a3730612a0a4c1d236fb28 | abf775fd9be933cc27debaf5379a939479e8e789 | /histo.sce | fbe6d2bb85c083101c061c3c4f0f11ee7d03c31b | [] | no_license | ece2lr/tp1 | 721bee4f8bc5a216d0668ebc7649f42b1858ef36 | 957ff893a0e184356f7c46993c5b95e6a862712e | refs/heads/master | 2021-06-29T00:30:26.131616 | 2017-09-19T05:54:18 | 2017-09-19T05:54:18 | 104,031,407 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 158 | sce | histo.sce | N = 10 // taille de l'échantillon
X = grand (1,N,"unf",50,86); // l'échantillon
histplot(5,X) // on fait l'histogramme
|
9f7b5d1bcc0b78d4951f6a745b8a907d56cea437 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1445/CH1/EX1.40/ch1_ex_40.sce | 09fde3e60109fac8920a4d50a90c7b9c9fa2cc5c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 955 | sce | ch1_ex_40.sce | //CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS
//Example 40
disp("CHAPTER 1");
disp("EXAMPLE 40");
//VARIABLE INITIALIZATION
v1=20; //in Volts
v2=10; //in Volts
r1=5; //top resistance in Ohms
r2=10; //bottom resistance in Ohms
r3=5; //in Ohms
r4=5; //in Ohms
r5=10; //in Ohms
//SOLUTION
//(5)I1+(10)I3+(-10)I4=20............eq (1)
//(0)I1+(10)I3+(10)I4=-50............eq (2)
//(5)I1+(20)I3+(0)I4=-30.............eq (3) (eq(1) + eq(2))
//Since the determinant of matrix A is 0, hence, the set of these equations cannot be solved by matrix method
//So, solving them directly,
I3=-15/25;
I1=-3-(3/5);
I4=-5-(-3/5);
I=I1+3+5;
disp("The currents (in Amperes) flowing in different branches are:");
disp(I1);
disp(I3);
disp(I4);
disp(sprintf("The total current is %f A",I));
//END
|
da5f8983329ee34e1bb18d74cddb4aa3f27c47b4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3754/CH12/EX12.14/12_14.sce | 9b87129606c58356ff3ff1468a365e33e7a54094 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 443 | sce | 12_14.sce | clear//
//Variables
VS = 12 //Source voltage (in volts)
R1 = 1.5 * 10**3 //Resistance (in ohm)
R2 = 1.8 * 10**3 //Resistance (in ohm)
VD1=0.7;VD2=0.7;
//Calculation
RT = R1 + R2 //Total Resistance (in ohm)
I = (VS - VD1 - VD2)/RT //Current (in Ampere)
//Result
printf("\n Total current through the circuit is %0.3f mA." ,I * 10**3)
|
ed08f10d42fdeeb619228770aa57e203013a82c5 | a178109facfc72b26e4addfe1fa3952c764630dd | /2 Control_Design_Scilab_bette_than_1/Test_Abstract_problem/Second_Method/main_controller.sce | df7ba59be351f1e3b7571a8595280c415fb78713 | [
"BSD-2-Clause"
] | permissive | yi1128/Disturbance_observer | fb20d7db81193841e35b61e7c727e5fe91240dca | 6b5e79d25f0ab7a410adf30c2d1399864055cd56 | refs/heads/master | 2022-04-21T23:58:22.911921 | 2020-04-20T12:17:02 | 2020-04-20T12:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,548 | sce | main_controller.sce | clear
clc
loadmatfile('A.mat');
loadmatfile('B.mat');
loadmatfile('H.mat');
loadmatfile('C.mat');
loadmatfile('observer.mat');
m=rank(B);
n=size(A);
n=n(1,1);
qw=rank(H);
p=rank(C);
function [LME,LMI,OBJ]=DRC(XLIST)
[delta2,delta3,deltah3,betah,Thx,Thw,gama6,gama7]= XLIST(:)
LME=list(delta2-delta2',delta3-delta3',delta3*B-B*deltah3)
LMI=list(-([-H'*betah'-betah*H,betah*(Gama-A-Phi*C),-2*betah*theta*C*A-Thw'*B',zeros(qw,qw),delta2;(betah*(Gama-A-Phi*C))',zeros(n,n),-Thx'*B',zeros(n,qw+qw);(-2*betah*theta*C*A-Thw'*B')',-B*Thx,C'*C+delta3*A+A'*delta3+B*Thx+Thx'*B',delta3*H+B*Thw,zeros(n,qw);zeros(qw,qw+n),(delta3*H+B*Thw)',-gama6*eye(qw,qw),zeros(qw,qw);delta2',zeros(qw,n+n+qw),-gama7*eye(qw,qw)]),delta2,delta3,gama6,gama7,-1-betah*H)
OBJ=[]
endfunction
delta2_0=eye(qw,qw);
delta3_0=eye(n,n);
deltah3_0=zeros(m,m);
betah_0=zeros(qw,n);
Thx_0=eye(m,n);
Thw_0=eye(m,qw);
gama6_0=1e1;
gama7_0=1e1;
Init_guess=list(delta2_0,delta3_0,deltah3_0,betah_0,Thx_0,Thw_0,gama6_0,gama7_0);
Mbound=100;
abstol=1e-3;
nu=1;
maxiters=500;
reltol=1e-3;
Ans_LMI=lmisolver(Init_guess,DRC,[Mbound,abstol,nu,maxiters,reltol]);
//Ans_LMI=lmisolver(Init_guess,DRC);
delta2=Ans_LMI(1);
delta3=Ans_LMI(2);
deltah3=Ans_LMI(3);
betah=Ans_LMI(4);
Thx=Ans_LMI(5);
Thw=Ans_LMI(6);
gama6=Ans_LMI(7);
gama7=Ans_LMI(8);
Tx=inv(deltah3)*Thx;
Tw=inv(deltah3)*Thw;
beta=inv(delta2)*betah;
savematfile('Tx.mat','Tx');
savematfile('Tw.mat','Tw');
savematfile('beta.mat','beta');
disp(spec(A+B*Tx))
|
babede63be4d97d37d7aa2ce6df20743009cd9a9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2084/CH16/EX16.2w/16_2w.sce | 71a31cdcb29668290c0273d33b92264203061c14 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 474 | sce | 16_2w.sce | //developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 16.2w
//calculation of the location of the plane
//given data
v=510*10^3/(60*60)//speed(in m/s) of the plane
h=2000//height(in m) of the plane
vs=340//speed(in m.s) of the sound in air
//calculation
t=h/vs//time taken by the sound to reach the observer
d=v*t//location of the plane
printf('the plane will be %d m ahead of the observer on its line of motion',d)
|
4415222e49a0c10719a99c15aebe0854181aa163 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronic_Devices_And_Circuits_S._L._Kakani_And_K._C._Bhandari_2825.zip/Electronic_Devices_And_Circuits_S._L._Kakani_And_K._C._Bhandari_2825/CH9/EX9.2/Ex9_2.sce | 3eb5ec4fdee998e2a977a40be0ec4e93ee77cf01 | [] | 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 | 216 | sce | Ex9_2.sce | errcatch(-1,"stop");mode(2);//Ex9_2 Pg-475
Aol= 50000 //open loop gain
fol=14 //open loop frequency in HZ
fcl=(Aol+1)*fol // loop frequency in Hz
printf("Close loop Bandwidth = %.0f kHz",fcl*10^-3)
exit();
|
df54826f3fbab1b34be146af273e3d4365ed4d93 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1299/CH4/EX4.6.b/examplesec4_6b.sce | 3b3addccf94a3390131e9a0cfe0f1e7b40d43a2c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 420 | sce | examplesec4_6b.sce | //Example sec 4.6b
//example of canonical form
clear;clc;
xdel(winsid());
A=[1 2 1;0 1 3;1 1 1];
B=[1;0;1];
C=[1 1 0];
V=[C;C*A;C*A^2]
D=eye(3,3)
s=%s
E=s*D-A
det(E)
//the characteristic equation i.e. det(E)=s^3-3*s^2-s-3=0 is of the form of
//s^3+a2*S^2+a1*s+a0=0. therefore comparing two equation.
a2=-3
a1=-1
a0=-3
M=[a1 a2 1;a2 1 0;1 0 0]
F=M*V
Q=inv(F)
A1=inv(Q)*A*Q
B1=inv(Q)*B
C1=C*Q
|
b7bb5a3e108cbbaafc3120e9a3be9fe9f456891b | 449d555969bfd7befe906877abab098c6e63a0e8 | /167/CH10/EX10.4/ex4.sce | 69586c149d3fc40f2122428211a63f16a65ff7e9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | WINDOWS-1252 | Scilab | false | false | 1,709 | sce | ex4.sce | //example 4
//The Ideal Reheat Rankine Cycle
clear
clc
disp('the pump and the turbines are isentropic,there are no pressure drops in the boiler and condenser, and steam leaves the condenser and enters the pump as saturated liquid at the condenser pressure.')
P6=10 //pressure at state 6 in kPa
x6=0.896 //quality of steam in state 6
sf=0.6492 // in kJ/kg-K
sfg=7.4996 //in kJ/kg-K
hf=191.81 //in kJ/kg
hfg=2392.1 //in kJ/kg
h6=hf+x6*hfg //specific heat enthalpy in state 6 in kJ/kg
s6=sf+x6*sfg //specific entropy at state 6 in kJ/kg-K
T5=600 // temperature in state 5 in Celsius
s5=s6 //specific entropy in state 5
disp(' At state 5, T5=600C,s5=s6.Hence,')
P5=4.0 //pressure at state 5 in MPa
h5=3674.9 //spacific heat enthalpy at state 5 in kJ/kg
P1=10 //pressure at state 1 in kPa
h1=191.81 //specific heat enthalpy at state 1 in kJ/kg
v1=0.00101 //specific volume at state 1 in m3/kg
P2=15000 //pressure at state 2 in kPa
wpumpin=v1*(P2-P1) //work done by pump in kJ/kg
h2=h1+wpumpin //enthalpy in state 2 in kJ/kg
P3=15000 //pressure in state 3 in kPa
T3=600//temperature in state 3 in °C
h3=3583.1 //specific heat enthalpy in state 3 in kJ/kg
s3=6.6796 //specific entropy in state 3 in kJ/kg-K
P4=4000 //pressure in state 4 in kPa
s4=s3 //specific entropy in state 4
h4=3155.0 //specific heat enthalpy in state 4 in kJ/kg
T4=375.5 //temperature in state 4 in °C
qin=(h3-h2)+(h5-h4) //heat coming in in kJ/kg
qout=h6-h1 //heat going out in kJ/kg
n=1-qout/qin //thermal efficiency of the cycle
printf("\n Hence, the pressure at which the steam should be reheated is = %.1f MPa. \n",P5);
printf("\n Hence, the the thermal efficiency of the cycle is = %.1f. \n",n*100); |
51f884a864b0da46c7ea86a8404a97c7eeaa286d | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/examples/addinter-lapack/lapackscilab.tst | a44d74a1ca57582d46c43cad20fd40dfaaf8cd14 | [
"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 | 745 | tst | lapackscilab.tst | scilab_functions =[...
"cdgemm";
"dgemm";
"dgebal";
"dgebak";
"dgels";
"dgeqrf";
];
auxiliary="";
files=G_make(["lapackscilab_gateway.o","lapackscilab.a", auxiliary],"void(Win)");
addinter(files,"lapackscilab_gateway",scilab_functions);
//same as "exec lapackscilab.sce"
alfa=2;beta=3;m=3;n=4;C=ones(m,n);k=2;A=ones(m,k);B=ones(k,n);
C1=dgemm(alfa,A,B,beta,C);
if norm(C1-(alfa*A*B+beta*C)) > %eps then pause,end
A=[1/2^10,1/2^10;2^10,2^10];
[SCALE, ILOW, IHI]=dgebal('S', A);
if norm(SCALE-[0.001;1]) > %eps then pause,end
[W,TAU]=dgeqrf(A);
m=2;V=[];for i=1:2;w(1:i-1)=0;w(i)=1;w(i+1:m)=W(i+1:m,i);V=[V,w];end;
Q=(eye()-TAU(2)*V(:,2)*V(:,2)')*(eye()-TAU(1)*V(:,1)*V(:,1)');
QA=Q*A;
if norm(QA(1,:) - W(1,:)) > %eps then pause,end
|
3c94892004ac192118226037fa325497ba5d1903 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/P14.prev.tst | 194749dfd6d27e9240c68648045b3a563a22cb92 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 128 | tst | P14.prev.tst | 4*a^2 + 4*b^2 - 4*c^2
getVariablePowers(a,b,c,d)=a^2 + b^2 + c^2
groupBy(a,b,c,d)=
+ 4*a^2*(1)
+ 4*b^2*(1)
+ 4*c^2*( - 1)
|
0793cabb6efcea07ff8d76ac1d0fee0bcec838e4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3293/CH2/EX2.10/Ex2_10.sce | 4353013aa2e635b8de1d8488036220422d13ec16 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 418 | sce | Ex2_10.sce | //page 38
//Example 2.10
clear;
clc;
close;
A = [1 2 0 3 0;0 0 1 4 0;0 0 0 0 1];
disp(A,'A = ');
disp('The subspace of F^5 spanned by a1 a2 a3(row vectors of A) is called row space of A.');
a1 = A(1,:);
a2 = A(2,:);
a3 = A(3,:);
disp(a1,'a1 = ');
disp(a2,'a2 = ');
disp(a3,'a3 = ');
disp('And, it is also the row space of B.');
B = [1 2 0 3 0;0 0 1 4 0;0 0 0 0 1;-4 -8 1 -8 0];
disp(B,'B = ');
//end
|
81ec16ee8d036534e36cf481394b840674ee040d | 449d555969bfd7befe906877abab098c6e63a0e8 | /773/CH8/EX8.23.01/8_23_01.sci | 4920007cecde558588f937b1719680f06859edda | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 221 | sci | 8_23_01.sci | //coefficient//
s= poly ( 0,'s' );
sys = syslin ('c',10/(s+2)); //G(s)H(s)
disp(sys,"G(s)H(s)")
F=1/(1+sys)
syms t s;
Co=limit(s*F/s,s,0) //Ko=Lt s->0 (1/(1+G(s)H(S))
a=(3);
e=Co*a;
disp(e,"steady state error")
|
21fa9e0a9a030d769895e48e5dfd5c712e98bb7a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3363/CH1/EX1.6/Ex1_6.sce | 9ed0a1446fc721ce22bd251b7d0ed14656bc0bb6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 351 | sce | Ex1_6.sce | //Example 1.6, apge 39
clc
g=9.8//in m/s^2, constant
l=.1//in m
m=0.01//in kg
h=6.63*10^-34//Joule-sec
theta=0.1//in radians
v=(1/(2*%pi)*sqrt(g/l))
printf("\n Oscillation frequency of pendulam %f per sec.",v)
E=m*g*l*(1-cos(theta))
printf("\n Energy of pendulum at its maximum potential %e Joule.",E)
Delta_e=h*v
printf("\n Delta E %e Joule",Delta_e) |
5008e48bbfdaac16eca54377ac15ba6cefc0fc12 | 449d555969bfd7befe906877abab098c6e63a0e8 | /575/DEPENDENCIES/541.sci | 3e49235d45be6acf7151a24b4c230be8c8b05f79 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 63 | sci | 541.sci | Vcap=50 //M^3/hr
P=40 //bar
T=300 //K
R=8.314
M=16.04 //kg/kmol |
8b58e22bb113b0baa8817a63c76cd9760d4a9ff6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /243/CH4/EX4.18/4_18.sce | 9d4661ca31a25b85262660c19bb1536bcf32b900 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 579 | sce | 4_18.sce | //Example No. 4_18
//Difference of Square roots
//Pg No. 84
clear ; close ; clc ;
x = 497.0 ;
y = 496.0 ;
sqrt_x = sqrt(497)
sqrt_y = sqrt(496)
nx = length( string( floor( sqrt_x ) ) )
ny = length( string( floor( sqrt_y ) ) )
sqrt_x = floor(sqrt_x*10^(4-nx))/10^(4-nx)
sqrt_y = floor(sqrt_y*10^(4-ny))/10^(4-ny)
z1 = sqrt_x - sqrt_y
disp(z1,'z = sqrt(x) - sqrt(y)')
z2 = ( x -y)/(sqrt_x + sqrt_y)
if z2 < 0.1 then
z2 = z2*10^4
nz = length(string(floor(z2)))
z2 = floor(z2*10^(4-nz))/10^(8-nz)
end
disp( z2 , 'z = ( x-y )/( sqrt(x) + sqrt(y) )' ) |
17d89a9b0dad57182cd9c53cd65471052264707b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH4/EX4.20/Ex4_20.sce | 7c00d369b4a5a210b44c25f21934370109f13976 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 207 | sce | Ex4_20.sce | clear
//Given
C1=5 //micro F
C2=6 //micro F
V=10 //V
//Calculation
Cp=C1+C2
q=Cp*V
//Result
printf("\n Charge supplied by battery is %0.3f micro F", q)
|
716294f746c8be3ceb719a62442f93cd59637c6e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2939/CH4/EX4.34/Ex4_34.sce | 504684b342339d2e7fce08cf1f7cdf7fd6e6fb3e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 515 | sce | Ex4_34.sce | // Ex4_34
clc;
//Given:
Ax0 = 2000; //dps
//Solution:
//part a
ky = 0.693/10;
kx = 0.693/288;
// general equation connecting Ax and Ay is
Ax12 = (ky * Ax0 * (0.5^(1/24) - 0.5^(1.2)))/ (ky - kx);
printf("\n Activity due to La(140) at the end of 12 hrs will be %f dps",Ax12);
//part b
ky = 0.693/10;
kx = 0.693/288;
// general equation connecting Ax and Ay is
Ax24 = (ky * Ax0 * (0.5^(2) - 0.5^(57.6)))/ (ky - kx);
printf("\n Activity due to La(140) at the end of 24 d will be %f dps",Ax24);
|
06a797319283b8f2e03767561f7645998785d0e9 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s_Electronic_Measurements_And_Instrumentation_R._K._Rajput_2096.zip/Electronic_Measurements_And_Instrumentation_R._K._Rajput_2096/CH1/EX1.9.a/ex_1_9_a.sce | b88df9d3779d48a6ad8a00025af2e77d64e8cae9 | [] | 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 | 214 | sce | ex_1_9_a.sce | errcatch(-1,"stop");mode(2);// Example 1.9.a.sensitivity
,
// given :
Mo=2.4; // magnitude of output response in mm
Mi=6; // magnitude of input in ohm
S=Mo/Mi;
disp(S,"sensitivity,S = (mm/ohm)")
exit();
|
7c0620972bdb3223b56479df2492943ed6637a17 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1163/CH12/EX12.8/example_12_8.sce | 04561c19f7402e2a9303acae91b5c6889596eee4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 537 | sce | example_12_8.sce | clear;
clc;
disp("--------------Example 12.8---------------")
//Proof
printf("Proof:-\n Let us prove this for the first station, using the previous four-station example.\n The data on the channel is D = (d1*c1 + d2*c2 + d3*c3 + d4*c4) .\n The receiver which wants to get the data sent by station 1 multiplies these data by c1.\n D*c1 = (d1*c1+d2*c2+d3*c3+d4*c4)*c1\n = d1*c1*c1 + d2*c2*c1 + d3*c3*c1 + d4*c4*c1\n = d1*N + d2*0 + d3*0 + d4*0\n = d1*N\n When the result is divided by N, we get d1. Hence Proved.");
|
29aca47a75849f50cbde403c1a7959ceddc3869b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1085/CH15/EX15.1/ex15_1.sce | 17cac24e987a82d65fe132ff0ccd95c6c60a7d39 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 572 | sce | ex15_1.sce | //Exam:15.1
clc;
clear;
close;
U_n=1350//mobility of electron in cm2/volt-sec
U_h=480//hole mobility in cm2/volt-sec
Sigma=1.072*10^10//density of electron hole pair per cc at 300°K for a pure silicon crystal
e=1.6*10^(-19);//charge on the electron in C
Sigma_i=Sigma*e*(U_n+U_h);//Conductivity of pure silicon crystal
p_i=1/(Sigma_i);//Resistivity of silicon crystal in Ohm-cm
P_i=p_i*10^(-2);//Resistivity of silicon crystal in Ohm-m
disp(Sigma_i,'Conductivity of pure silicon crystal(in mho/cm)=');
disp(P_i,'Resistivity of silicon crystal (in Ohm-m)='); |
79f3c157cf2fef9c07d84474e31dafefbff48257 | 449d555969bfd7befe906877abab098c6e63a0e8 | /911/CH9/EX9.10.a/ex_9_10_a.sce | 148b3cbd07109d3b7b32033f7670302eea4c4d8a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 567 | sce | ex_9_10_a.sce | //example 9.10(a)//
clc
//clears the screen//
clear
//clears all existing variables//
disp('At the end of eigth LOW to HIGH clock transition, the data bits loaded into the register will be 10110010, with ''0'' on the extreme right appearing at the Q7 output. The ninth clock transition will shift this 0 out of the register and the next adjacent bit (i.e.''1'') will take its place on Q7 output. Each subsequent clock pulse will shift the bits one step towards right with the result that at the end of 11th clock transition, the Q7 output will be logic ''0''. ') |
c75c6691bca5ab473ac0cb59ddd7841ef7797ab5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH9/EX9.32/Ex9_32.sce | c424e8942ebfd552475f3299b1f3267085eeaf19 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 258 | sce | Ex9_32.sce | clear
//Given
K=3*10**-9 //Nm/deg
a=36
n=60
B=9*10**-3 //T
A=5*10**-5 //m**2
//Calculation
I=(K*a)/(n*B*A)
//Result
printf("\n Maximum current is %0.3f mA", I*10**3)
|
84ced2d102e94e6f3ea4e461966726fe1de25b86 | 76d58c93412c99ad3e8468ca843883add5b16d43 | /plus-minus_tau3.sci | f0f82eb96056f034341a0ab63233f358877b9232 | [] | no_license | NnataKha/Mixed-plus-minus-interaction-conflict-model | cd6daadc26e6189720f088adf9a739072125f1fa | a02cf4c1c21dc5559721c219c93ad706f3af30be | refs/heads/master | 2020-03-16T18:52:00.884504 | 2018-05-10T11:24:44 | 2018-05-10T11:24:44 | 132,889,968 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,017 | sci | plus-minus_tau3.sci | clear;
if 31==1 then
n=5;
for i=1:n-2
T(i)=rand(100)//*110;
M(i)=rand(100);
end
for i=n-1:n
T(i)=rand(100);
M(i)=rand(100)//*50;
end
end
M=[1;2;3;4];
T=[2;5;1;6];
n=length(M);
st = sum(T);
sm = sum(M);
T = T'./st;
M = M'./sm;
eps=1/(n*n);
Omega_plus=list();
Omega_minus=list();
for i=1:n
if T(i) > M(i) then
Omega_plus($+1)=i;
else Omega_minus($+1)=i
end
end
op=length(Omega_plus);
om=length(Omega_minus);
alpha(1)=1;
m = 500;//number of steps
for k = 1:m
time(k)=k;
T_v(k,:)=T;
M_v(k,:)=M;
Theta(k)=0;
for i=1:n
Theta(k) = Theta(k) + sqrt(T(i)*M(i));
end
tau = min(T,M);
W = sum(tau);
alpha(k+1)=-alpha(k)*(Theta(k)-eps)*(Theta(k)-1+eps)/abs((Theta(k)-eps)*(Theta(k)-1+eps));
z = 1+Theta(k)+alpha(k)*W;
T_t = (T.*(1+Theta(k))+alpha(k)*tau)./z;
M_t = (M.*(1+Theta(k))+alpha(k)*tau)./z;
if alpha(k)>0 then
s=Theta(k);
h=Theta(k);
else
s=1-Theta(k);
h=1-Theta(k);
end
//*****************************************************************************
//redistribution for M
d=zeros(1,n);
for i=1:op
d(Omega_plus(i))=(M_t(Omega_plus(i))-M(Omega_plus(i)))*s;
end
M_t=M_t-d;
//*****************************************************************************
//redistribution for T
d=zeros(1,n);
for i=1:om
d(Omega_minus(i))=(T_t(Omega_minus(i))-T(Omega_minus(i)))*h;
end
T_t=T_t-d;
//*****************************************************************************
sm=sum(M_t);
st=sum(T_t);
M=M_t./sm
T=T_t./st;
end
subplot(211)
plot(time,T_v);
//legend('T(1)','T(2)','T(3)','T(4)','T(5)','T(6)','T(7)','T(8)');
subplot(212)
plot(time,M_v);
//legend('M(1)','M(2)','M(3)','M(4)','M(5)','M(6)','M(7)','M(8)');
//xs2pdf(gcf(),"C:\Users\mika\Desktop\imath\article\pictures\pic.eps");
|
b6758ff864c222b9ee3f7b6e944c7b3c38c622f8 | a1e081ceabd043cf1506b917c7f2fb243be290d8 | /P2/ex3.sci | 0e823672b4223b5abe0389e900dc011fddd15afa | [] | no_license | pablospe/ssc | 2cd8e21e1843f246e2d7f565557f4f73368aa4b8 | 353fc62f18202e73b84bea4f2d83f64cdeb15723 | refs/heads/master | 2021-01-10T21:35:46.798450 | 2014-04-24T05:11:51 | 2014-04-24T05:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 175 | sci | ex3.sci | function [dx, y, A, B, u] = ex3(x, t)
A = [ 0, 1;
-9.01, 0.2];
B = [0; 1];
u = 1;
dx = A*x;
y = [1 1]*x + 2*u;
endfunction
|
0c0a4280ea360cb4248b4847b5c905bd2a35c3ab | b35a2bd96b75d6b4b8fd7f59832d9a8c93f8b46a | /02/Null.tst | e08e6e4a3ff263e7ba43b8bd95932d990ef5fb15 | [] | no_license | JonathanSimonJones/EoCS | 58f1ef1c5ea771117cc8983c6e8c5b96bf95dabc | 13c63358fe1c225d09e36969ce94078943a288a1 | refs/heads/master | 2016-08-04T09:00:04.815029 | 2013-09-17T12:41:14 | 2013-09-17T12:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 227 | tst | Null.tst | // File name: projects/01/Null.tst
// Author: Jonathan Simon Jones
// Date 01_07_13
load Null.hdl,
output-file Null.out,
compare-to Null.cmp,
output-list in%B3.1.3 out%B3.1.3;
set in 0,
eval,
output;
set in 1,
eval,
output;
|
70081185f3cf0dd85f57533cc7b030770ad72d36 | 449d555969bfd7befe906877abab098c6e63a0e8 | /278/CH9/EX9.3/ex_9_3.sce | e4978f85f0f583c252a25f9c126b3ea84e0a02ad | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 362 | sce | ex_9_3.sce |
clc
//solution
//given
t=10//mm
d=25//mm
p=100//mm
ft=120//N/mm^2
T=100//N/mm^2
fc=150//N/mm^2
pi=3.14
Pt=(p-d)*t*ft//N//tearing resistance of plate
Ps=(2*pi/4)*d^2*T//N//shearing resistance of rivet
Pc=2*d*t*fc//N//crushing resistance of rivet
P=p*t*ft//N//strength of the unriveted
//eff=(least of Pt,Ps,Pc)/P
eff=Pc/P//least is Pc
printf("the eff is,%f",eff) |
a89da78c439113fc478856831fd7d97493976813 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3756/CH1/EX1.3/Ex1_3.sce | abaa730f98f8a88403bc1481c762730fbc280b0c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 275 | sce | Ex1_3.sce | clc
//
//
//
//Variable declaration
D=1 //Distance from screen
Beta=0.31*10**-3 //Fringe Width
d=1.9*10**-3 //Slit separation
//Calculations
lambdaa=(Beta*d*10**6)/D
//Result
printf("\n The Wavelength lamda=%0.4f *10**-6 m",lambdaa)
|
81f827d481561afd407d2153f7ef6c1a937c8a4e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2198/CH1/EX1.9.1/Ex1_9_1.sce | 2fa0b2ccc9fcdd332f8d52c0bed129cbebcd053b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 334 | sce | Ex1_9_1.sce | //Ex 1.9.1
clc;clear;close;
format('v',9);
//Given :
l=6*10^-2;//m
V=1;//Volt
A=10*10^-6;//m^2
I=10*10^-3;//A
q=1.602*10^-19;//Coulomb
mu_n=1300*10^-4;//m^2/V-s
E=V/l;//V/m
v=mu_n*E;//m/s
J=I/A;//A/m^2
n=J/(q*mu_n*E);//per m^3
disp(n,"(i) Concentration of electron(m^3) : ");
disp(v,"(ii) Drift velocity(m/s) : ");
|
c41a5ca9dd267c2f3806635627b4ae614cdef636 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3785/CH5/EX5.6/Ex5_6.sce | a9342e5642be6e4ab7141e0d09499e28801405ff | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 312 | sce | Ex5_6.sce | // Example 5_6
clc;funcprot(0);
// Given data
m=2;// The mass flow rate in kg/s
V_e=200;// The rocket exhaust velocity in m/s
// Calculation
F=m*V_e;// The restraining force required to hold the rocket in place in N
printf("\nThe restraining force required to hold the rocket in place,F_c=%0.0f N",F);
|
1b1e35300c96663b44341ca24f02302e0b9d97bd | e806e966b06a53388fb300d89534354b222c2cad | /macros/canny.sci | 0cb9ed7b0203aa7925b32ffd90ca00607f3ab4cf | [] | no_license | gursimarsingh/FOSSEE_Image_Processing_Toolbox | 76c9d524193ade302c48efe11936fe640f4de200 | a6df67e8bcd5159cde27556f4f6a315f8dc2215f | refs/heads/master | 2021-01-22T02:08:45.870957 | 2017-01-15T21:26:17 | 2017-01-15T21:26:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 327 | sci | canny.sci | function [out]=canny(input_image ,aperture, threshold1, threshold2, gradient)
input_image1=mattolist(input_image);
a=opencv_canny(input_image1 , aperture, threshold1, threshold2, gradient);
dimension=size(a)
for i = 1:dimension
out(:,:,i)=a(i);
end
endfunction;
|
d97795affe0debfdd77159fc56ad49bec064435c | 449d555969bfd7befe906877abab098c6e63a0e8 | /764/CH4/EX4.21.a/data4_21.sci | b238cca70005ce14faacba223eda0f6ee12843a3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 288 | sci | data4_21.sci |
//(Design against Static Load) Example 4.21
//Refer Fig.4.68 and 4.65
//Load capacity of press P (kN)
P = 100
//Ultimate tensile strength of FG200 Sut (N/mm2)
Sut = 200
//Factor of safety fs
fs = 3
//Distance between force application point and C-Frame centre l (mm)
l = 1000
|
ab5243250cd664f92665fd8b9ad6a7d87492b4f6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /746/DEPENDENCIES/12_04.sci | 9fa20131ab64a8f63331ece4a6877e3a986ae142 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 250 | sci | 12_04.sci | //Stagnation temperature(in K):
T0=350;
//Stagnation pressure(in kPa):
p0=1000;
//Back Pressure(in kPa):
pb=954;
//Mach number at throat:
Mt=0.68;
//Area at exit(in m^2):
Ae=0.001;
//Value of k:
k=1.4;
//Gas Constant(in N-m/kg-K):
R=287; |
5c4e694357e5940315b9986ee842238e3f8080e8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3718/CH3/EX3.2/Ex3_2.sce | e5675252ed5897600263991cbf755efc00309ef5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 267 | sce | Ex3_2.sce | //Chapter 3: Thermodynamic and Chemical Equilibrium
//Problem: 2
clc;
//Solution
mprintf("CH4 (g) + 2O2 (g) -> CO2 (g) + 2H20 (l)\n")
delta_n = 1 - (1 + 2)
solution = - 2 * 2 * 298 // cals
mprintf(" Delta H - Delta E is: %d cals", solution)
|
536264e770615ffa9226b93588be8a3d94084e6d | e9d5f5cf984c905c31f197577d633705e835780a | /GED/linear/scilab/functions/pmgei_method/method/ged_MT3.sci | af58e6d3033307ec741d4fddc8d64c6bdf855407 | [] | no_license | faiz-hub/dr-ged-benchmarks | 1ad57a69ed90fe7595c006efdc262d703e22d6c0 | 98b250db9e9f09d42b3413551ce7a346dd99400c | refs/heads/master | 2021-05-18T23:12:18.631904 | 2020-03-30T21:12:16 | 2020-03-30T21:12:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,077 | sci | ged_MT3.sci | function[avt1_mt1, avt1_mt2, op_mt1, op_mt2, ge_mt1_indexu, ge_mt2_indexu, ge_mt1_indexu_low, ge_mt2_indexu_low] = measurement_test3(Q1mt, Q1mtbeta, zadj, runsize, jac_col, varargin)
[lhs, rhs] = argn(0);
if rhs > 5 then
is_multiple = varargin(1);
else
is_multiple = 0;
end
disp('inside MT3');
//Measurement test
// The choice of Q1/P1 must be choosen to guarantee that all methods has the same AVTI in order to compare the
// methods with the same overall power basis.
//Q1mt = 0.05;
//P1 = 1 - Q1mt;
Q1 = Q1mt/2;
P1 = (1 - Q1);
if Q1 == 0 then
Q1 = %eps/1000;
P1 = 1 - Q1;
end
norm_mt=cdfnor("X",0,1,P1,Q1);
//Q1mtbeta = 0.52;
beta_m = (1-((1-Q1mtbeta).^(1/jac_col)));
Q2=beta_m/2;
// The choice of Q2/P2 must be choosen to guarantee that all methods has the same AVTI in order to compare the
// methods with the same overall power basis.
P2=1-Q2;
if Q2 == 0 then
Q2 = %eps/1000;
P2 = 1 - Q2;
end
norm_mt2=cdfnor("X",0,1,P2,Q2);
// printf('xchi MT1: %f \n', norm_mt);
// printf('xchi MT2: %f \n', norm_mt2);
op_mt1=[];
op_mt2=[];
//This is a code snippet from ged_GLR
//The definition of Power is according to Iordache, Mah, Tamhane, AICHE JOURNAL, V 31 No. 7, 1985
//Eq 42 Pai = P[|zi| >= |zj|, for all j<>i and |zi| > k]
runsizefinal = size(zadj,1);
nrun = (runsizefinal/runsize) -1;
Tsup_mt= zeros(runsizefinal-runsize);
Tsupindex_mt= zeros(runsizefinal-runsize,2);
Tsuplow_mt= zeros(runsize);
Tsupindexlow_mt= zeros(runsize,2);
runsizefinal = size(zadj,1);
zadjT = zadj';
for j = 1 : runsizefinal
if j <= runsize then
//catches Tsup for random noise, used in AVTI
// here, any location of the max is registered
[Tsuplow_mt(j), Tsupindexlow_mt(j,:)] = max(zadjT(:,j));
else
//catches Tsup for gross errors, used in OP
// here we are not using the definition of power according to IORDACHE 1985, defined as:
// according to the definition of power (Iordache, Mah, Tamhane, AICHE JOURNAL, V 31 No. 7, 1985)
//if 2 or more streams have the same zadj, zadj(i) is identified as gross error, where i is the
//stream where gross error was added
[a, b] = between(zadjT(:,j)', 1.0e-6);
if length(b) > 1 then
c = -1;
// To use the definition of Iordache, comment the line above and uncomment the line bellow
// c = int((j-1)/runsize);
Tsup_mt(j - runsize) = zadjT(a(1),j);
Tsupindex_mt(j - runsize,:) = c;
else
[Tsup_mt(j - runsize), Tsupindex_mt(j - runsize,:)] = max(zadjT(:,j));
end
end
end
ge_mt1_index=[];
ge_mt2_index=[];
if length(Tsupindex_mt) > 0 then
for i = 1 : nrun
// find number of gross errors correctly identified
//pause
ge_glr_mt1(i) = length(intersect(find(Tsupindex_mt((i-1)*runsize+1:i*runsize,1) == i), find(Tsup_mt((i-1)*runsize+1:i*runsize,1) >= norm_mt)) );
ge_glr_mt2(i) = length(intersect(find(Tsupindex_mt((i-1)*runsize+1:i*runsize,1) == i), find(Tsup_mt((i-1)*runsize+1:i*runsize,1) >= norm_mt2)) );
//find the indexes of measurement error vector which is bellow the test statistics
//for multiple gross error
if is_multiple == 0 then
//for single gross error
// [found_mt1_i,found_mt1_j] = find(zadj((i-1)*runsize+1 + runsize:i*runsize + runsize,:) > norm_mt);
// [found_mt2_i,found_mt2_j] = find(zadj((i-1)*runsize+1 + runsize:i*runsize + runsize,:) > norm_mt2);
// if length(found_mt1_i) > 0 then
// ge_mt1_index =[ge_mt1_index , runsize*i + unique(found_mt1_i)];
// end
//
// if length(found_mt2_i) > 0 then
// ge_mt2_index =[ge_mt2_index , runsize*i + unique(found_mt2_i)];
// end
found_mt1 = find(zadj((i-1)*runsize+1 + runsize:i*runsize + runsize,i) > norm_mt);
found_mt2 = find(zadj((i-1)*runsize+1 + runsize:i*runsize + runsize,i) > norm_mt2);
// disp('inside MT3')
// pause
if length(found_mt1) > 0 then
ge_mt1_index =[ge_mt1_index , runsize*i + found_mt1];
end
if length(found_mt2) > 0 then
ge_mt2_index =[ge_mt2_index , runsize*i + found_mt2];
end
//
end
// Overall Power
op_mt1(i) = ge_glr_mt1(i)/runsize;
op_mt2(i) = ge_glr_mt2(i)/runsize;
end
// pause
end
// notice that for multiple errors the ge_mt1_index is just the opposite
if is_multiple == 1 then
[found_mt1_i,found_mt1_j] = find(zadj(runsize + 1 :$,:) > norm_mt);
[found_mt2_i,found_mt2_j]= find(zadj(runsize + 1 :$,:) > norm_mt2);
if length(found_mt1_i) > 0 then
ge_mt1_index =[runsize + unique(found_mt1_i)];
end
if length(found_mt2_i) > 0 then
ge_mt2_index =[runsize + unique(found_mt2_i)];
end
end
avt1_mt1 = length(find(Tsuplow_mt >= norm_mt))/runsize;
avt1_mt2 = length(find(Tsuplow_mt >= norm_mt2))/runsize;
//find the indexes of random error vector which exceeds the test statistics and
// the indexes of gross errors vector which is bellow the test statistics for
// measurement bias vector, they need to be removed later
ge_mt1_indexu = unique(ge_mt1_index);
ge_mt1_indexu_low = unique(find(Tsuplow_mt >= norm_mt));
ge_mt2_indexu = unique(ge_mt2_index);
ge_mt2_indexu_low = unique(find(Tsuplow_mt >= norm_mt2));
disp('before end MT3')
// pause
endfunction
|
6bb61c2421e31776a397f45c34e562190be11110 | 35071fb08cee13f4a9e79c396f7c8c028f69db0e | /Tests/Syntaxe/KO/ELSE_PARENTHESIS_KO.tst | 7858bdb49173b2fa419c4b1ff15eba42f267d39a | [] | no_license | V1nc3ntL/Compilation | 2cd9d4fa728055cebd44659cba517e49298142bc | e2008449ddb509021f6ddcfd0a92226807bec9ab | refs/heads/master | 2023-06-01T09:42:01.069684 | 2021-06-02T19:15:13 | 2021-06-02T19:15:13 | 357,205,127 | 0 | 0 | null | 2021-05-31T12:13:32 | 2021-04-12T13:30:46 | C | UTF-8 | Scilab | false | false | 98 | tst | ELSE_PARENTHESIS_KO.tst | void main()
{
int var == 0;
if(var == 1)
{
print("IF");
}
else
(
print("ERROR_IF");
)
} |
fa3fd7443231f2a07297b88368a216a554764e40 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1976/CH3/EX3.3/Ex3_3.sce | eb31bcc478e81077a2d20ff465f70034f3450435 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,097 | sce | Ex3_3.sce |
// To determine the Most Economical Cross Sectional Area to supply a 3 Phase Load
//Page 105
clc;
clear;
deff('a=LLF(b)','a=(0.25*b)+(0.75*(b^2))'); // Function to determine the Loss Load Factor
OFC=0.20; //Cost of single phase overhead feeder per m per unit area + 10
AIDC= 10*OFC/100; //Annual Interest and depriciation charges + 1
TE= 2.5*(10^6); // Total energy to be supplied per annum
CEW=10/100; // Cost of energy wasted per unit
LFS= TE/(1000*365*24); // Load factor of supply
Llf=LLF(LFS); // Load Loss factor
R=1/58; // Resistance of the cable per unit length
PF=1; // Unity power factor
MD= 1*(10^6); // Maximum Demand
V=11*(10^3); // Voltage of the feeder
I=MD/(sqrt(3)*V*PF); // Full Load Current
FLCL= 3*(I^2)*R; // Full Load Copper Loss per Metre
ACL= Llf*FLCL; // Actual Copper Loss
CCL=ACL*(365*24*CEW/1000); // Cost of Copper Loss
A=sqrt(CCL/AIDC);
printf('The Most Economical Cross sectional area for this Case is %g A/sq.mm',A)
// Calculation Mistake in the Book. Hence according to the concepts in the book the answer is as calculated. Please Note.
|
c8eb3301240ee39bf0890a0502491a13ed2eeb45 | 68ca3dfa429602a00a0e728649484916bdff7d81 | /scilab/radar_imager.sci | 27301a641f876a0b7619d12addfa8ee4414bdcab | [] | no_license | bambang/toodles | f6e4c01a3326cd4dfb9674f11b727d8695daf369 | 2a65c5dec5d23b799d8246650716d4f683d4ae18 | refs/heads/master | 2020-12-28T20:30:53.721415 | 2012-03-12T16:00:12 | 2012-03-12T16:00:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 716 | sci | radar_imager.sci | function radar_image = radar_imager(swwf, beamwidth, altitude)
[prows,pcols] = size(swwf);
beamcrossrange = round(altitude*tan(beamwidth));
radar_image = zeros(prows,pcols);
for col = 1:pcols
for beamrange = [-beamcrossrange:beamcrossrange]
for row = 1:prows
if (col+beamrange) <= pcols
dist = sqrt(beamrange^2+row^2);
if dist <= prows
if col+beamrange >= 1
radar_image(dist,col) = radar_image(dist,col) + swwf(row,col+beamrange)/dist^2;
end
end
end
end
end
end
endfunction |
6cba35969695189e578977ad0fce156ff5977fa0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2495/CH8/EX8.18.6/Ex8_18_6.sce | 91a5cf4e1d2168f28365a8ea4d4c92c4a566b0aa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 430 | sce | Ex8_18_6.sce | clear
clc
DelG1=-237.23;//in kJ
DelG2=79.71;//in kJ
n=2;//
DelG=(DelG1+(n*DelG2));//in kJ
F=96500;//in C
T=298;//in K
E=-((DelG*10^3)/(n*F));//in V
printf('E=%.3f V',E)
DelH1=-285.85;//in kJ
DelH2=56.9;//in kJ
DelH=(DelH1+(n*DelH2));//in kJ
dEdT_p=((DelH-DelG)*10^3)/(n*F*T);//in V/K
printf('\ndEdT_p=%.5f V/K',dEdT_p)
//error in solution
////There are some errors in the solution given in textbook
//page 484
|
449c0a04bc494c6d40e1cf8c0a33ae34b3a19573 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2858/CH5/EX5.2/Ex5_2.sce | 58c268200f8a5f6acec5a4ff9745016b79f02540 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 259 | sce | Ex5_2.sce | //example 5.2
clc; funcprot(0);
qo=100;
H1=3;
H2=5;
//from table
IaH2=0.126;
IaH1=0.175;
deltasigma=qo*((H2*IaH2-H1*IaH1)/(H2-H1));
disp(deltasigma,"change in pressure in kN/m^2");
TS=4*deltasigma;
disp(TS,"total change in pressure in kN/m^2");
|
1c1c2e531a351e06418bf8594064bfc51fef09aa | 449d555969bfd7befe906877abab098c6e63a0e8 | /68/CH4/EX4.2/ex2.sce | ef7ee335ffba017ac2c15d2f3a42a4b77d61b5e0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 478 | sce | ex2.sce | // Example 4.2: Design of given circuit to obtain I_D=0.4mA and V_D=0.5V
// NMOS transistor is operating in saturation region
I_D=0.4*10^-3; // (A)
V_D=0.5; // (V)
V_t=0.7; // (V)
uC_n=100*10^-6; // (A/V^2)
L=1*10^-6; // (m)
W=32*10^-6; // (m)
V_SS=-2.5; // (V)
V_DD=2.5; // (V)
V_OV=sqrt(I_D*2*L/(uC_n*W));
V_GS=V_t+V_OV;
disp(V_GS,"V_t (V)")
V_S=-1.2; // (V)
R_S=(V_S-V_SS)/I_D;
disp(R_S,"R_S (ohm)")
V_D=0.5; // (V)
R_D=(V_DD-V_D)/I_D;
disp(R_D,"R_D (ohm)") |
639d577653e6e782697252f4ed19c8324f4660fe | 12d519f18a15ef7423dffa1727cb877966fcf913 | /scilab/Estudos de caso/Caso Fiasul - compensacao - Torre de 75m.sce | 5b404da7b1987b6037cfe1256ce3764094e123bb | [] | no_license | gviolato/gviolato.github.io | e9b799bf61dd345fe06760ebc296f49f467347b7 | 190748c14c115f63e366d2244a572de08daa7e5e | refs/heads/master | 2021-01-17T15:29:43.924914 | 2017-01-25T23:33:53 | 2017-01-25T23:33:53 | 22,399,267 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 7,656 | sce | Caso Fiasul - compensacao - Torre de 75m.sce | // -----------------------------------------------------------------------------
// AVEEL Software
// Análise de Viabilidade de Empreendimentos Eólicos
// Arquivo de parâmetros de entrada do usuário
//
// Autor: Júlio Xavier Vianna Neto
// -----------------------------------------------------------------------------
//
// Descrição da simulação:
//
// Estudo de caso sobre aerogerador FEEL 900kW para empresa Fiasul, com torre de
// 75m, considerando sistema de compensação de energia. Solicitado por Pedro
// Furlan.
//
// Data: 06/05/2013
//
// ----------------------------- PARÂMETROS ------------------------------------
// Configuração do projeto:
projeto.implantacao = 1; //Prazo de implantação do projeto (meses)
projeto.vida_util = 20*12; //Vida útil operacional do projeto (meses)
projeto.potencia = 0.9; //Potência instalada (MW)
projeto.vel_media = 6; //Velocidade média anual de vento (m/s)
projeto.regime = 2; //Regime de produção de energia [1-Produção independente;
//2-Sistema de compensação de energia; 3-Autoprodução]
projeto.preco_energia = 137.659; //Preço da energia (R$/MWh)
projeto.modelo_PAE = 1; //Modelo para determinação da produção anual de energia
//[1-Função get_PAE
//2-Produção anual de energia como parâmetro de entrada
//3-Fator de capacidade do parque como parâmetro de entrada]
projeto.PAE = 2969; //Produção anual de energia do parque eólico (MWh/ano)
projeto.consumidor = %t; //Considerar modelagem da conta do consumidor? [%t-Sim; %f-Não]
projeto.fator_capacidade = 0.40; //Fator de capacidade do parque eólico (MWh/ano)
projeto.modelo_CAPEX = 2; //Modelo para determinação do CAPEX
//[1-NREL,"Wind Turbine Design Cost and Scaling Model";
//2-Custo do MW instalado como parâmetro de entrada]
projeto.custo_MW = 2.3e6/(0.9*0.7); //Custo do MW instalado (R$/MW)
projeto.TMA = 0.08; //Taxa de mínima atratividade do investidor (a.a.)
projeto.verbose = %t; //Gerar planilha com os resultados? [%t-Sim; %f-Não]
// Configuração das perdas de energia no parque eólico:
// Referência - EWEA, The Economics of Wind Energy, p. 55, 2009
perdas.array = 0.02; //Array losses, perdas aerodinâmicas por sombreamento de turbinas,
//turbulência, etc. Tipicamente 5-10%, menor em caso de turbina isolada
perdas.soiling = 0.015; //Perdas aerodinâmicas por sujeira nas pás, tipicamente 1-2%
perdas.grid = 0.02; //Perdas elétricas na rede do parque eólico, tipicamente 1-3%
perdas.downtime = 0.02; //Perdas por indisponibilidade da turbina, tipicamente 2%
perdas.other = 0.01; //Outras perdas, como atrasos no acionamento do yaw. Tipicamente 1%
// Configuração da conta do consumidor:
// Referência tarifas: http://www.copel.com/hpcopel/root/nivel2.jsp?endereco=%2Fhpcopel%2Froot%2Fpagcopel2.nsf%2F5d546c6fdeabc9a1032571000064b22e%2F0a363cf546237cc203257488005939ce
conta.tarifa_ponta = 209.365+16.339; //Tarifa energia elétrica ponta (R$/MWh)
conta.tarifa_f_ponta = 125.746+16.339; //Tarifa energia elétrica fora de ponta (R$/MWh)
conta.tarifa_demanda = 7.81; //Tarifa demanda (R$/kW)
conta.tarifa_demanda_ultr = 15.63; //Tarifa adicional demanda ultrapassada (R$/kW)
conta.consumo_ponta = 304.645; //Consumo médio energia elétrica ponta (MWh)
conta.consumo_f_ponta = 3252.569; //Consumo médio energia elétrica fora de ponta (MWh)
conta.demanda_contratada = 5400; //Demanda contratada(kW)
conta.demanda_ultr = 0; //Demanda ultrapassada média (kW)
// Configuração da turbina:
turbina.diametro_rotor = 54; //Diâmetro do rotor (m)
turbina.potencia_nominal = 900; //Potência nominal do gerador (kW)
turbina.altura_hub = 75; //Altura do hub (m)
turbina.modelo_torque = 2; //Modelo para determinação do máximo torque
//aerodinâmico no eixo do rotor
//[1-Calculado através da potência, rotação e eficiência nominais;
//2-Como parâmetro de entrada]
turbina.torque_eixo = 370; //Máximo torque aerodinâmico no eixo do rotor (kNm)
turbina.fator_correcao_gerador = 3/2.38 //Fator de correção de massa do gerador, para turbina EWT
turbina.fator_correcao_custo = 1.4 //Fator de correção de custo, para turbina EWT
turbina.conceito = 4; //Conceito da turbina [1-Three-Stage Drive with High-Speed Generator;
//2-Single-Stage Drive with Medium-Speed, Permanent-Magnet Generator;
//3-Multi-Path Drive with Multiple Permanent-Magnet Generators;
//4-Direct Drive]
turbina.modelo = 1; //Modelo da turbina [1-FEEl 900kW]
//(informação utilizada na função get_PAE)
// Financiamento:
// Referência - http://www.bndes.gov.br/SiteBNDES/bndes/bndes_pt/Institucional/Apoio_Financeiro/Produtos/FINEM/energias_alternativas.html
financiamento.percentual = 0.80; //Parcela do investimento total financiada
financiamento.prazo = 16*12; //Prazo do fianciamento (meses)
financiamento.carencia = 18; //Carência do financiamento (meses)
financiamento.TJLP = 0.05; //Taxa nominal de juros de longo prazo - TJLP (a.a.)
financiamento.spread_basico = 0.009; //Spread básico (a.a.)
financiamento.spread_risco = 0.01; //Spread de risco (a.a.)
// Impostos:
impostos.PIS_PASEP = 0.0165; //PIS/PASEP sobre a receita bruta
impostos.COFINS = 0.076; //COFINS sobre a receita bruta
impostos.CSLL = 0.09; //Contribuição social sobre o lucro líquido
impostos.IR = 0.15; //Imposto de Renda sobre o lucro
impostos.IR_adicional = 0.10; //IR adicional sobre o excedente de R$20.000/mês
impostos.limite_IR_adicional = 20e3; //Limite mensal do IR adicional
// Custos operacionais:
custos.OeM = 75e3/12; //Operação e manutenção (R$/MW/mês)
custos.terreno = 0.015; //Arrendamento do terreno, sobre a receita bruta
custos.seguro = 0.003/12; //Seguro operacional por mês, sobre o investimento inicial
custos.TUST = 2.54e3; //Custo de transporte de energia, com desconto de 50% (R$/MW/mês)
custos.conexao = 500/12; //Custo de conexão (R$/MW/mês)
custos.TFSEE = 0.004; //Taxa de Fiscalização de Serviços de Energia Elétrica - TFSEE, ANEEL, sobre benefício econômico
custos.BETU = 484.21e3/12 //Benefício Econômico Típico Unitário mensal (R$/MW)
//em 2012 = 418.39e3/12
//em 2013 = 484.21e3/12 - Ref http://www.aneel.gov.br/cedoc/ndsp2013101.pdf
custos.administrativos = 0.005; //Custos administrativos, sobre a receita bruta
|
136f7c53ab828fe092a3c26e9156c0dd86e92b7b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3311/CH9/EX9.5/Ex9_5.sce | 2f841e2fc6680ea19d93b38538b68612c85ae46d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,368 | sce | Ex9_5.sce | // chapter 9
// example 9.5
// Determine transistor ratings, THD, DF and HF and DF of the lowest order harmonic
// page-554
clear;
clc;
// given
Edc=48; // in V (dc source)
R=3; // in ohm
// calculate
Ip=Edc/R; // calculation of transistor peak current
I_avg=Ip/2; // calculation of transistor average current
V_BR=Edc; // calculation of peak reverse voltage of each IGBT
printf("\nThe transistor ratings are \t Ip=%.f A \t I_avg=%.f A \t V_BR=%.f V",Ip,I_avg,V_BR);
E1_rms=2*Edc/(sqrt(2)*%pi);
E0_rms=(Edc/2);
THD=sqrt(E0_rms^2-E1_rms^2)/E1_rms; // calculation of total harmonic distortion
printf("\nThe total harmonic distortion is \t THD=%.3f or \t %.1f percent",THD,THD*100);
K=0;
for n=3:2:13
En_rms=2*Edc/(n*%pi*sqrt(2));
En_rms_n2=(En_rms/n^2)^2;
K=K+En_rms_n2;
end
K=sqrt(K);
DF=K/E1_rms; // calculation of distortion factor
printf("\n\nThe distortion factor is \t\t DF=%.3f or \t %.1f percent",DF,DF*100);
E3_rms=2*Edc/(3*%pi*sqrt(2));
HF3=E3_rms/E1_rms; // calculation of lowest order of harmonic distortion
printf("\n\nThe lowest order harmonic factor is \t HF3=%.3f or \t %.2f percent",HF3,HF3*100);
DF3=(E3_rms/3^2)/E1_rms; // calculation of lowest order distortion factor
printf("\n\nThe lowest order distortion factor is \t DF3=%.4f or \t %.3f percent",DF3,DF3*100);
// Note: The answer varies slightly due to precise calculation |
ba34b4aa72f603711674bb01e0ad0dba74d143d8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3176/CH2/EX2.2/Ex2_2.sce | 2f64d2ed9f38f8c642d1a27c4f3a4fc96abeb493 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 864 | sce | Ex2_2.sce | //Ex2_2
//Illustration of the Effects of Reducing Image Spatial Resolution
// Version : Scilab 5.4.1
// Operating System : Window-xp, Window-7
//Toolbox: Image Processing Design 8.3.1-1
//Toolbox: SIVP 0.5.3.1-2
//Reference book name : Digital Image Processing
//book author: Rafael C. Gonzalez and Richard E. Woods
clc;
close;
clear;
xdel(winsid())//to close all currently open figure(s).
gray=imread("Ex2_2.tif");
figure,ShowImage(gray,'Gray Image');
title('Original Image (1250 DPI)');
[M,N]=size(gray);
a1=imresize(gray,[443 337],'nearest');
figure,ShowImage(a1,'Resize Image');
title('Resize Image (300 DPI)');
a2=imresize(gray,[886 675],'nearest');
figure,ShowImage(a2,'Resize Image');
title('Resize Image (150 DPI)');
a3=imresize(gray,[213 162],'nearest');
figure,ShowImage(a3,'Resize Image');
title('Resize Image (72 DPI)');
|
99b61a2a67b51459778b4ab3cfe41269d35cd65a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2210/CH5/EX5.23/5_23.sce | f48e3d1fd2a3d18f031f0d68b54811406f9b4c9f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 5_23.sce | //Chapter 5, Problem 23, figure 5.65
clc
Rs=100 //resistance in ohm
Rl=1000 //resistance in ohm
Q=15 //Q factor
//calculation
Rv=Rl/(Q^2+1)
Xp2=Rl/Q
Xs2=Q*Rv
Q1=sqrt((Rs/Rv)-1)
Xp1=Rs/Q1
Xs1=Q1*Rv
printf("Zs = %d ohm\nXp1 = %.3f ohm \nXs1 = %.3f ohm\n",Rs,Xp1,Xs1)
printf("Xs2 = %.3f ohm\n Xp2 = %.3f ohm\n Zl = %d ohm\n\n",Xs2,Xp2,Rl)
disp("Four types of matching network is shown in figure 5.66, 5.67, 5.68, 5.69.")
|
55bad96c9f98975af5325f34c9092a7a6e7220f2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /122/CH6/EX6.a.6/exaA_6_6.sce | 610af856f9d3fabaefde9a3dd8ddf49c9c5ca262 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 474 | sce | exaA_6_6.sce | // Example A-6-6
// Root locus
clear; clc;
xdel(winsid()); //close all windows
// please edit the path
// cd "/<your code directory>/";
// exec("rootl.sci");
s = %s;
G = syslin('c',1,s * (s + 1) * (s^2 + 4*s + 13));
rootl(G,[-6 -5; 6 5],'Root locus plot for 1/ [s * (s + 1) * (s^2 + 4*s + 13]');
// the same method may be employed to plot root loci in examples
// A-6-1,2,3,8,10,
// simply write the transfer function and choose suitable range
// [xmin ymin; xmax ymax] |
fde59b5144f3f5d00eab2ad01195c44ba46ed182 | 527c41bcbfe7e4743e0e8897b058eaaf206558c7 | /Positive_Negative_test/Netezza-Base-StatisticalFunctions/FLShuffleWinStr-NZ-01.tst | e2c657e30b7e8b801ab17f112922f2cb4a51d910 | [] | no_license | kamleshm/intern_fuzzy | c2dd079bf08bede6bca79af898036d7a538ab4e2 | aaef3c9dc9edf3759ef0b981597746d411d05d34 | refs/heads/master | 2021-01-23T06:25:46.162332 | 2017-07-12T07:12:25 | 2017-07-12T07:12:25 | 93,021,923 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,305 | tst | FLShuffleWinStr-NZ-01.tst | -- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Netezza
--
-- Copyright (c): 2014 Fuzzy Logix, LLC
--
-- NOTICE: All information contained herein is, and remains the property of Fuzzy Logix, LLC.
-- The intellectual and technical concepts contained herein are proprietary to Fuzzy Logix, LLC.
-- and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade
-- secret or copyright law. Dissemination of this information or reproduction of this material is
-- strictly forbidden unless prior written permission is obtained from Fuzzy Logix, LLC.
-- Functional Test Specifications:
--
-- Test Category: Basic Statistics
--
-- Test Unit Number: FLShuffleWinStr-Netezza-01
--
-- Name(s): FLShuffleWinStr
--
-- Description: Shuffled data
--
-- Applications:
--
-- Signature: FLShuffleWinStr(Value INTEGER,
-- Value INTEGER)
--
-- Parameters: See Documentation
--
-- Return value: INTEGER
--
-- Last Updated: 07-11-2017
--
-- Author: Diptesh Nath,Kamlesh Meena
--
-- BEGIN: TEST SCRIPT
\time
--.run file=../PulsarLogOn.sql
--.set width 2500
--SELECT COUNT(*) AS CNT,
-- CASE WHEN CNT = 0 THEN ' Please Load Test Data!!! ' ELSE ' Test Data Loaded ' END AS TestOutcome
--FROM fzzlSerial a;
-- BEGIN: POSITIVE TEST(s)
---- Positive Test 1: Number of columns in FLSHUFFLEWINSTR() set to 3
--- Return expected results, Good
select flshufflewinstr(ClosePrice,3) over (partition by TickerId) from finstockprice order by TickerId LIMIT 10;
---- Positive Test 2: Number of columns in FLSHUFFLEWINSTR() set to 2
--- Return expected results, Good
select flshufflewinstr(ClosePrice,2) over (partition by TickerId) from finstockprice order by TickerId LIMIT 10;
-- END: POSITIVE TEST(s)
-- BEGIN: NEGATIVE TEST(s)
---- Negative Test 1: Number of columns in FLSHUFFLEWINSTR() must be set
--- Error
select flshufflewinstr(ClosePrice) over (partition by TickerId) from finstockprice order by TickerId LIMIT 10;
---- Negative test 2: Number of columns in FLSHUFFLEWINSTR() must be set. No default value for null
--- No Output
select flshufflewinstr(ClosePrice,null) over (partition by TickerId) from finstockprice order by TickerId LIMIT 10;
-- END: NEGATIVE TEST(s)
\time
-- END: TEST SCRIPT
|
9ae895c1abbc7609b206ae1368606655fcb15fdf | 449d555969bfd7befe906877abab098c6e63a0e8 | /1133/CH5/EX5.13/Example5_13.sce | a3e865f8eed69d4b0557de4f990d820d268ec2d2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,565 | sce | Example5_13.sce | //Example 5.13
clc
disp("The given Boolean expression is not in standard SOP form. Let us first convert this in standard form.")
disp(" F(A, B, C, D) = A''BD''(C+C'') + ACD(B+B'') + B''CD(A+A'') + A''C''D(B+B'')")
disp(" = A''BCD'' + A''BC''D'' + ABCD + AB''CD + AB''CD + A''B''CD + A''BC''D + A''B''C''D")
disp(" = A''BCD'' + A''BC''D'' + ABCD + AB''CD + A''B''CD + A''BC''D + A''B''C''D")
disp("")
disp("The truth table for this standard SOP form can be given as")
disp(" No. Minterms A B C D Y")
disp(" 0 0 0 0 0 0")
disp(" 1 A''B''C''D 0 0 0 1 1")
disp(" 2 0 0 1 0 0")
disp(" 3 A''B''CD 0 0 1 1 1")
disp(" 4 A''BC''D'' 0 1 0 0 1")
disp(" 5 A''BC''D 0 1 0 1 1")
disp(" 6 A''BCD'' 0 1 1 0 1")
disp(" 7 0 1 1 1 0")
disp(" 8 1 0 0 0 0")
disp(" 9 1 0 0 1 0")
disp(" 10 1 0 1 0 0")
disp(" 11 AB''CD 1 0 1 1 1")
disp(" 12 1 1 0 0 0")
disp(" 13 1 1 0 1 0")
disp(" 14 1 1 1 0 0")
disp(" 15 ABCD 1 1 1 1 1")
disp("")
disp("From the truth table Boolean function can be implemented using 8 : 1 multiplexer as follows :")
disp("Implementation table :")
disp(" D0 D1 D2 D3 D4 D5 D6 D7")
disp("A'' 0 1 2 3 4 5 6 7")
disp("A 8 9 10 11 12 13 14 15")
disp(" 0 A'' 0 1 A'' A'' A'' A")
|
2b99f64e77fec95b523b157c904af49714dc7e5d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH2/EX2.17/2_17.sce | 23896674bfc3fc58f8b2dc16cef09432d744fca0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,043 | sce | 2_17.sce | //ques-2.17
//Calculating quantities of dry products of combustion
clc
C=662;//Mass of carbon in 1kg of coal sample (in g)
H=42;//Mass of hydrogen in 1kg of coal sample (in g)
O=61;//Mass of oxygen in 1kg of coal sample (in g)
N=14;//Mass of nitrogen in 1kg of coal sample (in g)
S=29;//Mass of sulphur in 1kg of coal sample (in g)
moist=97;//Mass of moisture in 1kg of coal sample (in g)
ash=95;//Mass of ash in 1kg of coal sample (in g)
e=25;//Percentageof excess air used
min_O=C*(32/12)+H*(16/2)+S-O;//Minimum weight of oxygen required (in g)
min_air=min_O*(100/23);//Minimum weight of air required for complete combustion (in g)
m_C=C*(44/12);//Weight of carbon dioxide (with excess air) (in g)
m_S=S*(64/32);//Weight of sulphur dioxide (with excess air) (in g)
m_N=N+min_air*(1+e/100)*(77/100);//Weight of nitrogen (with excess air) (in g)
m_O=min_O*(e/100);//Weight of excess oxygen (in g)
Total=m_C+m_S+m_N+m_O;//Total weight of dry products (in g)
printf("The total weight of dry products is %.3f kg.",Total/1000);
|
454efa85c34986247a9f9ff16ed4dd9a5bd47e24 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2672/CH1/EX1.8/Ex1_8.sce | d841b77c7b87a18555b1d2e30491e88e07b4f003 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 435 | sce | Ex1_8.sce | //Example 1_8
clc;
clear;
close;
format('v',6);
//given data :
//6*I1-3*I2=2 from mesh 1
//-6*I1+14*I2=4 from mesh 2
A=[6 -3;-6 14];//coefiicient matrix
B=[2;4];//coefiicient matrix
X=A^-1*B;//Matrix multiplication
I1=X(1);//A
I2=X(2);//A
disp(I1,"Current in 2ohm & 4ohm resistor(A)");
disp(I2,"Current in 3ohm & 5ohm resistor(A)");
I6ohm=I1-I2;//A(Current in 6ohm resistor)
disp(I6ohm,"Current in 6ohm resistor(A)");
|
9bc0b4eadfbedc67951f5c9a24be583a4207720c | e806e966b06a53388fb300d89534354b222c2cad | /macros/bundleAdjustment.sci | 73d0ca46b22d6a90a3f66242a39d33a5ac0dbdd1 | [] | no_license | gursimarsingh/FOSSEE_Image_Processing_Toolbox | 76c9d524193ade302c48efe11936fe640f4de200 | a6df67e8bcd5159cde27556f4f6a315f8dc2215f | refs/heads/master | 2021-01-22T02:08:45.870957 | 2017-01-15T21:26:17 | 2017-01-15T21:26:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,343 | sci | bundleAdjustment.sci | function xyzrefinedPoints = bundleAdjustment(_3dpoints, imagepoints, visibility, cameramatrix, rotation, translation, distcoeffs)
// Refine camera poses and 3-d points
//
// Calling Sequence
// xyzrefinedPoints = bundleAdjustment(_3dpoints, imagepoints, visibility, cameramatrix, rotation, translation, distcoeffs)
//
// Parameters
// _3dpoints : N * 3 object points
// imagepoints : M * N * 2 image points for each camera and each points
// visibility : M * N * 1 visibility matrix, element[i][j] = 1 when object point i is visible from camera j and 0 if not
// cameramatrix : M * 3 * 3 camera matrix(intrinsic parameters) 3 * 3 camera matrix for each image
// rotation : M * 3 * 3 rotation matrix for each image
// translation : M * 3 * 1 translation matrix for each image
// distcoeffs : M * (4 * 5 * 8) * 1 distortion coefficient for each image
// xyzrefinedPoints : Refined N * 3 object points
//
// Description
// The function returns the refined 3-D points. The refinement procedure uses Levenberg-Marquardt algorithm.
//
// Examples
// xyzrefinedPoints = bundleAdjustment(_3dpoints, imagepoints, visibility, cameramatrix, rotation, translation, distcoeffs)
//
// Authors
// Suraj Prakash
xyzrefinedPoints = opencv_bundleAdjustment(_3dpoints, imagepoints, visibility, cameramatrix, rotation, translation, distcoeffs)
endfunction
|
435ab57c2f524c7c67d862604d2d87fe826ddfd3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /380/CH1/EX1.4/ex1_4.sce | ca08efb71700a64ea18a3c5b858bf9aecb3e6abe | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 2,486 | sce | ex1_4.sce | //Caption:Determine the line current and phase currents,power absorbed by the load and power dessipated by transmission line
//Ex no:1.4
clc;
clear;
close;
//Make delta -star conversion of load
Z_L=1+%i*2;//Impedance of each wire (in Ohms)
Z_p=(177-%i*246);//per-phase impedance (in Ohms)
Z_pY=(177-%i*246)/3;//per-phase impedance in Y-connection (in Ohms)
Z=Z_L+Z_pY;//Total per phase impedance (in Ohms)
V=866/sqrt(3);//Per-phase voltage (in Volts)
V_phase=0;
I=V/Z;//Current in the circuit (in Ampere)
r=real(I);
i=imag(I);
I_mag=sqrt((r^2)+(i^2));//magnitude of current (in Amperes)
I_phase=atand(i/r);//phase of current (in Degrees)
pf=cosd(I_phase);//power factor
//Refer to fig:1.13(b)
//Source are connected in star,so phase currents = line currents
I_na_mag=I_mag;//Magnitude of Source current through n-a (in Amperes)
I_nb_mag=I_mag;//Magnitude of Source current through n-b (in Amperes)
I_nc_mag=I_mag;//Magnitude of Source current through n-c (in Amperes)
I_na_phase=I_phase+(0);//phase angle of current through n-a (in Degree)
I_nb_phase=I_phase+(-120);//phase angle of current through n-b (in Degree)
I_nc_phase=I_phase+(120);//phase angle of current through n-c (in Degree)
disp(I_na_mag,'I_na_mag (in Amperes)=');
disp(I_na_phase,'I_na_phase (in Degrees)=');
disp(I_nb_mag,'I_nb_mag (in Amperes)=');
disp(I_nb_phase,'I_nb_phase (in Degrees)=');
disp(I_nc_mag,'I_nc_mag (in Amperes)=');
disp(I_nc_phase,'I_nc_phase (in Degrees)=');
//Load is connected in delta network
I_AB_mag=I_mag/sqrt(3);//magnitude of current through AB (in Amperes)
I_BC_mag=I_mag/sqrt(3);//magnitude of current through BC (in Amperes)
I_CA_mag=I_mag/sqrt(3);//magnitude of current through CA (in Amperes)
I_AB_phase=I_na_phase+30;//phase angle of current through AB (in Degrees)
I_BC_phase=I_nb_phase+30;//phase angle of current through BC (in Degrees)
I_CA_phase=I_nb_phase-90;//phase angle of current through CA (in Degrees)
disp(I_AB_mag,'I_AB_mag (in Amperes)=');
disp(I_AB_phase,'I_AB_phase (in Degrees)=');
disp(I_BC_mag,'I_BC_mag (in Amperes)=');
disp(I_BC_phase,'I_BC_phase (in Degrees)=');
disp(I_CA_mag,'I_CA_mag (in Amperes)=');
disp(I_CA_phase,'I_CA_phase (in Degrees)=');
I_AB=I_AB_mag*(cosd(I_AB_phase)+%i*sind(I_AB_phase));//(in Amperes)
P_load=3*I_AB_mag^2*real(Z_p);//in watts
disp(real (P_load),'Power dissipated (in Watts)=');
P_line=3*I_mag^2*real(Z_L);//in watts
disp(P_line,'Power dissipated by transmission line (in Watts)=') |
892ac3210950175e8acc97114a6288806766e0d9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /710/CH6/EX6.8/6_8.sci | f28d5c76285529212f7e71b5b320a1be542b29cf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 472 | sci | 6_8.sci | clc();
clear;
//To determine the angle made by plane of vibration of the incident light with optic axis
//IE=A^2*cos^2(teta);IO=A^2*sin^2(teta)
//I0/IE=tan^2(teta)=0.65
a=0.65; //ratio of intensities of ordinary & extraordinary light
teta=atand(sqrt(a)) //angle made by plane of vibration of the incident light with optic axis
printf("The angle made by the plane of vibration of incident light with the optic axis is %f",teta); |
0e2e7be626c54316bb5141f5eb0ed717946f9083 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/PG24.prev.tst | fdf7d57100e7be63ccca235aa86b37f7ce01fdfe | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 12,483 | tst | PG24.prev.tst | /* Generated at yyyy-mm-dd hh:mm by
java -cp dist/ramath.jar org.teherba.ramath.ProgramGenerator -l 2 -f test/PG24.data.tmp pident
Do N O T edit this file, but ProgramGenerator.java instead!
*/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
int reslines = 0;
printf("#---> start of results ----\n");
/* simplified and grouped:
[0] + 2*m (A13*A14 + A23*A24 - A33*A34) 6{A13,A14,A23,A24,A33,A34}
[1] + m^2 (A13*A13 + 2*A12*A14 + A23*A23 + 2*A22*A24 - A33*A33 - 2*A32*A34) 9{A12,A13,A14,A22,A23,A24,A32,A33,A34}
[2] + 2*m^3 (A12*A13 + A11*A14 + A22*A23 + A21*A24 - A32*A33 - A31*A34) 12{A11,A12,A13,A14,A21,A22,A23,A24,A31,A32,A33,A34}
[3] + m^4 (A12*A12 + 2*A11*A13 + A22*A22 + 2*A21*A23 - A32*A32 - 2*A31*A33) 9{A11,A12,A13,A21,A22,A23,A31,A32,A33}
[4] + 2*m^5 (A11*A12 + A21*A22 - A31*A32) 6{A11,A12,A21,A22,A31,A32}
[5] + m^6 (A11*A11 + A21*A21 - A31*A31) 3{A11,A21,A31}
[6] + 1 (A14*A14 + A24*A24 - A34*A34) 3{A14,A24,A34}
minSize=3, maxSize=12
#---> nrows=3
#---> ncols=4
#---> isolated=a,b,c
#---> parameter=m
#---> rset0= - A14 + a - A13*m - A12*m^2 - A11*m^3; - A24 + b - A23*m - A22*m^2 - A21*m^3; - A34 + c - A33*m - A32*m^2 - A31*m^3; a^2 + b^2 - c^2
#---> poly1=A14^2 + A24^2 - A34^2 + 2*A13*A14*m + 2*A23*A24*m - 2*A33*A34*m + A13^2*m^2 + 2*A12*A14*m^2 + A23^2*m^2 + 2*A22*A24*m^2 - A33^2*m^2 - 2*A32*A34*m^2 + 2*A12*A13*m^3 + 2*A11*A14*m^3 + 2*A22*A23*m^3 + 2*A21*A24*m^3 - 2*A32*A33*m^3 - 2*A31*A34*m^3 + A12^2*m^4 + 2*A11*A13*m^4 + A22^2*m^4 + 2*A21*A23*m^4 - A32^2*m^4 - 2*A31*A33*m^4 + 2*A11*A12*m^5 + 2*A21*A22*m^5 - 2*A31*A32*m^5 + A11^2*m^6 + A21^2*m^6 - A31^2*m^6
#---> powerSum=a^2 + b^2 - c^2
#---> exponent=2
#---> pmat=[[A11,A12,A13,A14],[A21,A22,A23,A24],[A31,A32,A33,A34]]
*/
int A11,A12,A13,A14,A21,A22,A23,A24,A31,A32,A33,A34;
int sum0 = 0;
for (A11 = -2; A11 < 3; A11++) {
for (A21 = -2; A21 < 3; A21++) {
for (A31 = -2; A31 < 3; A31++) {
if (A11*A11 + A21*A21 - A31*A31 == 0) /* [5], minSize = 3 */ {
for (A14 = -2; A14 < 3; A14++) {
for (A24 = -2; A24 < 3; A24++) {
for (A34 = -2; A34 < 3; A34++) {
if (A14*A14 + A24*A24 - A34*A34 == 0) /* [6], minSize = 3 */ {
for (A13 = -2; A13 < 3; A13++) {
for (A23 = -2; A23 < 3; A23++) {
for (A33 = -2; A33 < 3; A33++) {
if (A13*A14 + A23*A24 - A33*A34 == 0) /* [0], minSize = 6 */ {
for (A12 = -2; A12 < 3; A12++) {
for (A22 = -2; A22 < 3; A22++) {
for (A32 = -2; A32 < 3; A32++) {
if (A11*A12 + A21*A22 - A31*A32 == 0) /* [4], minSize = 6 */ {
if (A13*A13 + 2*A12*A14 + A23*A23 + 2*A22*A24 - A33*A33 - 2*A32*A34 == 0) /* [1], minSize = 9 */ {
if (A12*A12 + 2*A11*A13 + A22*A22 + 2*A21*A23 - A32*A32 - 2*A31*A33 == 0) /* [3], minSize = 9 */ {
if (A12*A13 + A11*A14 + A22*A23 + A21*A24 - A32*A33 - A31*A34 == 0) /* [2], minSize = 12 */ {
if (A11 != 0 || A12 != 0 || A13 != 0 || A14 != 0) /* row 1 != 0 */ {
if (A21 != 0 || A22 != 0 || A23 != 0 || A24 != 0) /* row 2 != 0 */ {
if (A31 != 0 || A32 != 0 || A33 != 0 || A34 != 0) /* row 3 != 0 */ {
printf("[");
printf("[%d,%d,%d,%d]",A11,A12,A13,A14);
printf(",");
printf("[%d,%d,%d,%d]",A21,A22,A23,A24);
printf(",");
printf("[%d,%d,%d,%d]",A31,A32,A33,A34);
printf("]");
reslines ++;
printf("\n");
}}}}}}}}}}}}}}}}}}}}}}
printf("#---> reslines=%d\n", reslines);
} /* main */
#---> start of results ----
[[-2,0,2,0],[0,2,1,-1],[-2,0,1,-1]]
[[-2,0,2,0],[0,2,-1,-1],[-2,0,1,1]]
[[-2,-2,0,0],[0,-2,-1,0],[-2,-2,-1,0]]
[[-2,2,0,0],[0,2,-1,0],[-2,2,-1,0]]
[[-2,-2,0,0],[0,2,1,0],[-2,-2,-1,0]]
[[-2,2,0,0],[0,-2,1,0],[-2,2,-1,0]]
[[-2,0,2,0],[0,-2,-1,1],[-2,0,1,-1]]
[[-2,0,2,0],[0,-2,1,1],[-2,0,1,1]]
[[-2,0,2,0],[0,2,-1,-1],[2,0,-1,-1]]
[[-2,0,2,0],[0,2,1,-1],[2,0,-1,1]]
[[-2,-2,0,0],[0,-2,-1,0],[2,2,1,0]]
[[-2,2,0,0],[0,2,-1,0],[2,-2,1,0]]
[[-2,-2,0,0],[0,2,1,0],[2,2,1,0]]
[[-2,2,0,0],[0,-2,1,0],[2,-2,1,0]]
[[-2,0,2,0],[0,-2,1,1],[2,0,-1,-1]]
[[-2,0,2,0],[0,-2,-1,1],[2,0,-1,1]]
[[-1,1,1,-1],[0,2,-2,0],[-1,1,-1,1]]
[[-1,1,1,-1],[0,-2,2,0],[-1,1,-1,1]]
[[-1,1,2,0],[0,2,0,-2],[-1,1,0,-2]]
[[-1,-1,2,0],[0,2,0,-2],[-1,-1,0,2]]
[[-1,-2,0,0],[0,-2,-2,0],[-1,-2,-2,0]]
[[-1,2,0,0],[0,2,-2,0],[-1,2,-2,0]]
[[-1,-2,0,0],[0,2,2,0],[-1,-2,-2,0]]
[[-1,2,0,0],[0,-2,2,0],[-1,2,-2,0]]
[[-1,0,1,0],[0,-2,0,0],[-1,0,-1,0]]
[[-1,0,1,0],[0,2,0,0],[-1,0,-1,0]]
[[-1,1,2,0],[0,-2,0,2],[-1,1,0,-2]]
[[-1,-1,2,0],[0,-2,0,2],[-1,-1,0,2]]
[[-1,-1,1,1],[0,-2,-2,0],[-1,-1,-1,-1]]
[[-1,-1,1,1],[0,2,2,0],[-1,-1,-1,-1]]
[[-1,1,1,-1],[0,2,-2,0],[1,-1,1,-1]]
[[-1,1,1,-1],[0,-2,2,0],[1,-1,1,-1]]
[[-1,-1,2,0],[0,2,0,-2],[1,1,0,-2]]
[[-1,1,2,0],[0,2,0,-2],[1,-1,0,2]]
[[-1,-2,0,0],[0,-2,-2,0],[1,2,2,0]]
[[-1,2,0,0],[0,2,-2,0],[1,-2,2,0]]
[[-1,-2,0,0],[0,2,2,0],[1,2,2,0]]
[[-1,2,0,0],[0,-2,2,0],[1,-2,2,0]]
[[-1,0,1,0],[0,-2,0,0],[1,0,1,0]]
[[-1,0,1,0],[0,2,0,0],[1,0,1,0]]
[[-1,-1,2,0],[0,-2,0,2],[1,1,0,-2]]
[[-1,1,2,0],[0,-2,0,2],[1,-1,0,2]]
[[-1,-1,1,1],[0,-2,-2,0],[1,1,1,1]]
[[-1,-1,1,1],[0,2,2,0],[1,1,1,1]]
[[0,2,1,-1],[-2,0,2,0],[-2,0,1,-1]]
[[0,2,-1,-1],[-2,0,2,0],[-2,0,1,1]]
[[0,-2,-1,0],[-2,-2,0,0],[-2,-2,-1,0]]
[[0,2,-1,0],[-2,2,0,0],[-2,2,-1,0]]
[[0,-2,1,0],[-2,2,0,0],[-2,2,-1,0]]
[[0,2,1,0],[-2,-2,0,0],[-2,-2,-1,0]]
[[0,-2,-1,1],[-2,0,2,0],[-2,0,1,-1]]
[[0,-2,1,1],[-2,0,2,0],[-2,0,1,1]]
[[0,2,-1,-1],[-2,0,2,0],[2,0,-1,-1]]
[[0,2,1,-1],[-2,0,2,0],[2,0,-1,1]]
[[0,-2,-1,0],[-2,-2,0,0],[2,2,1,0]]
[[0,2,-1,0],[-2,2,0,0],[2,-2,1,0]]
[[0,-2,1,0],[-2,2,0,0],[2,-2,1,0]]
[[0,2,1,0],[-2,-2,0,0],[2,2,1,0]]
[[0,-2,1,1],[-2,0,2,0],[2,0,-1,-1]]
[[0,-2,-1,1],[-2,0,2,0],[2,0,-1,1]]
[[0,2,0,-2],[-1,1,2,0],[-1,1,0,-2]]
[[0,2,0,-2],[-1,-1,2,0],[-1,-1,0,2]]
[[0,2,-2,0],[-1,1,1,-1],[-1,1,-1,1]]
[[0,-2,2,0],[-1,1,1,-1],[-1,1,-1,1]]
[[0,-2,-2,0],[-1,-2,0,0],[-1,-2,-2,0]]
[[0,2,-2,0],[-1,2,0,0],[-1,2,-2,0]]
[[0,-2,0,0],[-1,0,1,0],[-1,0,-1,0]]
[[0,2,0,0],[-1,0,1,0],[-1,0,-1,0]]
[[0,-2,2,0],[-1,2,0,0],[-1,2,-2,0]]
[[0,2,2,0],[-1,-2,0,0],[-1,-2,-2,0]]
[[0,-2,-2,0],[-1,-1,1,1],[-1,-1,-1,-1]]
[[0,2,2,0],[-1,-1,1,1],[-1,-1,-1,-1]]
[[0,-2,0,2],[-1,1,2,0],[-1,1,0,-2]]
[[0,-2,0,2],[-1,-1,2,0],[-1,-1,0,2]]
[[0,2,0,-2],[-1,-1,2,0],[1,1,0,-2]]
[[0,2,0,-2],[-1,1,2,0],[1,-1,0,2]]
[[0,2,-2,0],[-1,1,1,-1],[1,-1,1,-1]]
[[0,-2,2,0],[-1,1,1,-1],[1,-1,1,-1]]
[[0,-2,-2,0],[-1,-2,0,0],[1,2,2,0]]
[[0,2,-2,0],[-1,2,0,0],[1,-2,2,0]]
[[0,-2,0,0],[-1,0,1,0],[1,0,1,0]]
[[0,2,0,0],[-1,0,1,0],[1,0,1,0]]
[[0,-2,2,0],[-1,2,0,0],[1,-2,2,0]]
[[0,2,2,0],[-1,-2,0,0],[1,2,2,0]]
[[0,-2,-2,0],[-1,-1,1,1],[1,1,1,1]]
[[0,2,2,0],[-1,-1,1,1],[1,1,1,1]]
[[0,-2,0,2],[-1,-1,2,0],[1,1,0,-2]]
[[0,-2,0,2],[-1,1,2,0],[1,-1,0,2]]
[[0,0,-2,-2],[0,-1,-2,0],[0,-1,-2,-2]]
[[0,0,-2,-2],[0,1,2,0],[0,-1,-2,-2]]
[[0,0,2,-2],[0,1,-2,0],[0,-1,2,-2]]
[[0,0,2,-2],[0,-1,2,0],[0,-1,2,-2]]
[[0,0,-2,-2],[0,-1,-2,0],[0,1,2,2]]
[[0,0,-2,-2],[0,1,2,0],[0,1,2,2]]
[[0,0,2,-2],[0,1,-2,0],[0,1,-2,2]]
[[0,0,2,-2],[0,-1,2,0],[0,1,-2,2]]
[[0,0,-2,-1],[0,-2,-2,0],[0,-2,-2,-1]]
[[0,0,-2,-1],[0,2,2,0],[0,-2,-2,-1]]
[[0,1,0,-1],[0,0,-2,0],[0,-1,0,-1]]
[[0,1,0,-1],[0,0,2,0],[0,-1,0,-1]]
[[0,0,2,-1],[0,2,-2,0],[0,-2,2,-1]]
[[0,0,2,-1],[0,-2,2,0],[0,-2,2,-1]]
[[0,0,-2,-1],[0,-2,-2,0],[0,2,2,1]]
[[0,0,-2,-1],[0,2,2,0],[0,2,2,1]]
[[0,1,0,-1],[0,0,-2,0],[0,1,0,1]]
[[0,1,0,-1],[0,0,2,0],[0,1,0,1]]
[[0,0,2,-1],[0,2,-2,0],[0,2,-2,1]]
[[0,0,2,-1],[0,-2,2,0],[0,2,-2,1]]
[[0,-1,-2,0],[0,0,-2,-2],[0,-1,-2,-2]]
[[0,1,-2,0],[0,0,2,-2],[0,-1,2,-2]]
[[0,1,2,0],[0,0,-2,-2],[0,-1,-2,-2]]
[[0,-1,2,0],[0,0,2,-2],[0,-1,2,-2]]
[[0,-1,-2,0],[0,0,-2,-2],[0,1,2,2]]
[[0,1,-2,0],[0,0,2,-2],[0,1,-2,2]]
[[0,1,2,0],[0,0,-2,-2],[0,1,2,2]]
[[0,-1,2,0],[0,0,2,-2],[0,1,-2,2]]
[[0,-2,-2,0],[0,0,-2,-1],[0,-2,-2,-1]]
[[0,0,-2,0],[0,1,0,-1],[0,-1,0,-1]]
[[0,2,-2,0],[0,0,2,-1],[0,-2,2,-1]]
[[0,2,2,0],[0,0,-2,-1],[0,-2,-2,-1]]
[[0,0,2,0],[0,1,0,-1],[0,-1,0,-1]]
[[0,-2,2,0],[0,0,2,-1],[0,-2,2,-1]]
[[0,-2,-2,0],[0,0,-2,-1],[0,2,2,1]]
[[0,0,-2,0],[0,1,0,-1],[0,1,0,1]]
[[0,2,-2,0],[0,0,2,-1],[0,2,-2,1]]
[[0,2,2,0],[0,0,-2,-1],[0,2,2,1]]
[[0,0,2,0],[0,1,0,-1],[0,1,0,1]]
[[0,-2,2,0],[0,0,2,-1],[0,2,-2,1]]
[[0,2,-2,0],[0,0,-2,1],[0,-2,2,-1]]
[[0,0,-2,0],[0,-1,0,1],[0,-1,0,-1]]
[[0,-2,-2,0],[0,0,2,1],[0,-2,-2,-1]]
[[0,-2,2,0],[0,0,-2,1],[0,-2,2,-1]]
[[0,0,2,0],[0,-1,0,1],[0,-1,0,-1]]
[[0,2,2,0],[0,0,2,1],[0,-2,-2,-1]]
[[0,2,-2,0],[0,0,-2,1],[0,2,-2,1]]
[[0,0,-2,0],[0,-1,0,1],[0,1,0,1]]
[[0,-2,-2,0],[0,0,2,1],[0,2,2,1]]
[[0,-2,2,0],[0,0,-2,1],[0,2,-2,1]]
[[0,0,2,0],[0,-1,0,1],[0,1,0,1]]
[[0,2,2,0],[0,0,2,1],[0,2,2,1]]
[[0,1,-2,0],[0,0,-2,2],[0,-1,2,-2]]
[[0,-1,-2,0],[0,0,2,2],[0,-1,-2,-2]]
[[0,-1,2,0],[0,0,-2,2],[0,-1,2,-2]]
[[0,1,2,0],[0,0,2,2],[0,-1,-2,-2]]
[[0,1,-2,0],[0,0,-2,2],[0,1,-2,2]]
[[0,-1,-2,0],[0,0,2,2],[0,1,2,2]]
[[0,-1,2,0],[0,0,-2,2],[0,1,-2,2]]
[[0,1,2,0],[0,0,2,2],[0,1,2,2]]
[[0,0,-2,1],[0,2,-2,0],[0,-2,2,-1]]
[[0,0,-2,1],[0,-2,2,0],[0,-2,2,-1]]
[[0,-1,0,1],[0,0,-2,0],[0,-1,0,-1]]
[[0,-1,0,1],[0,0,2,0],[0,-1,0,-1]]
[[0,0,2,1],[0,-2,-2,0],[0,-2,-2,-1]]
[[0,0,2,1],[0,2,2,0],[0,-2,-2,-1]]
[[0,0,-2,1],[0,2,-2,0],[0,2,-2,1]]
[[0,0,-2,1],[0,-2,2,0],[0,2,-2,1]]
[[0,-1,0,1],[0,0,-2,0],[0,1,0,1]]
[[0,-1,0,1],[0,0,2,0],[0,1,0,1]]
[[0,0,2,1],[0,-2,-2,0],[0,2,2,1]]
[[0,0,2,1],[0,2,2,0],[0,2,2,1]]
[[0,0,-2,2],[0,1,-2,0],[0,-1,2,-2]]
[[0,0,-2,2],[0,-1,2,0],[0,-1,2,-2]]
[[0,0,2,2],[0,-1,-2,0],[0,-1,-2,-2]]
[[0,0,2,2],[0,1,2,0],[0,-1,-2,-2]]
[[0,0,-2,2],[0,1,-2,0],[0,1,-2,2]]
[[0,0,-2,2],[0,-1,2,0],[0,1,-2,2]]
[[0,0,2,2],[0,-1,-2,0],[0,1,2,2]]
[[0,0,2,2],[0,1,2,0],[0,1,2,2]]
[[0,2,0,-2],[1,-1,-2,0],[-1,1,0,-2]]
[[0,2,0,-2],[1,1,-2,0],[-1,-1,0,2]]
[[0,-2,-2,0],[1,1,-1,-1],[-1,-1,-1,-1]]
[[0,2,2,0],[1,1,-1,-1],[-1,-1,-1,-1]]
[[0,-2,-2,0],[1,2,0,0],[-1,-2,-2,0]]
[[0,2,-2,0],[1,-2,0,0],[-1,2,-2,0]]
[[0,-2,0,0],[1,0,-1,0],[-1,0,-1,0]]
[[0,2,0,0],[1,0,-1,0],[-1,0,-1,0]]
[[0,-2,2,0],[1,-2,0,0],[-1,2,-2,0]]
[[0,2,2,0],[1,2,0,0],[-1,-2,-2,0]]
[[0,2,-2,0],[1,-1,-1,1],[-1,1,-1,1]]
[[0,-2,2,0],[1,-1,-1,1],[-1,1,-1,1]]
[[0,-2,0,2],[1,-1,-2,0],[-1,1,0,-2]]
[[0,-2,0,2],[1,1,-2,0],[-1,-1,0,2]]
[[0,2,0,-2],[1,1,-2,0],[1,1,0,-2]]
[[0,2,0,-2],[1,-1,-2,0],[1,-1,0,2]]
[[0,-2,-2,0],[1,1,-1,-1],[1,1,1,1]]
[[0,2,2,0],[1,1,-1,-1],[1,1,1,1]]
[[0,-2,-2,0],[1,2,0,0],[1,2,2,0]]
[[0,2,-2,0],[1,-2,0,0],[1,-2,2,0]]
[[0,-2,0,0],[1,0,-1,0],[1,0,1,0]]
[[0,2,0,0],[1,0,-1,0],[1,0,1,0]]
[[0,-2,2,0],[1,-2,0,0],[1,-2,2,0]]
[[0,2,2,0],[1,2,0,0],[1,2,2,0]]
[[0,2,-2,0],[1,-1,-1,1],[1,-1,1,-1]]
[[0,-2,2,0],[1,-1,-1,1],[1,-1,1,-1]]
[[0,-2,0,2],[1,1,-2,0],[1,1,0,-2]]
[[0,-2,0,2],[1,-1,-2,0],[1,-1,0,2]]
[[0,2,1,-1],[2,0,-2,0],[-2,0,1,-1]]
[[0,2,-1,-1],[2,0,-2,0],[-2,0,1,1]]
[[0,-2,-1,0],[2,2,0,0],[-2,-2,-1,0]]
[[0,2,-1,0],[2,-2,0,0],[-2,2,-1,0]]
[[0,-2,1,0],[2,-2,0,0],[-2,2,-1,0]]
[[0,2,1,0],[2,2,0,0],[-2,-2,-1,0]]
[[0,-2,-1,1],[2,0,-2,0],[-2,0,1,-1]]
[[0,-2,1,1],[2,0,-2,0],[-2,0,1,1]]
[[0,2,-1,-1],[2,0,-2,0],[2,0,-1,-1]]
[[0,2,1,-1],[2,0,-2,0],[2,0,-1,1]]
[[0,-2,-1,0],[2,2,0,0],[2,2,1,0]]
[[0,2,-1,0],[2,-2,0,0],[2,-2,1,0]]
[[0,-2,1,0],[2,-2,0,0],[2,-2,1,0]]
[[0,2,1,0],[2,2,0,0],[2,2,1,0]]
[[0,-2,1,1],[2,0,-2,0],[2,0,-1,-1]]
[[0,-2,-1,1],[2,0,-2,0],[2,0,-1,1]]
[[1,1,-1,-1],[0,-2,-2,0],[-1,-1,-1,-1]]
[[1,1,-1,-1],[0,2,2,0],[-1,-1,-1,-1]]
[[1,-1,-2,0],[0,2,0,-2],[-1,1,0,-2]]
[[1,1,-2,0],[0,2,0,-2],[-1,-1,0,2]]
[[1,0,-1,0],[0,-2,0,0],[-1,0,-1,0]]
[[1,0,-1,0],[0,2,0,0],[-1,0,-1,0]]
[[1,-2,0,0],[0,2,-2,0],[-1,2,-2,0]]
[[1,2,0,0],[0,-2,-2,0],[-1,-2,-2,0]]
[[1,-2,0,0],[0,-2,2,0],[-1,2,-2,0]]
[[1,2,0,0],[0,2,2,0],[-1,-2,-2,0]]
[[1,-1,-2,0],[0,-2,0,2],[-1,1,0,-2]]
[[1,1,-2,0],[0,-2,0,2],[-1,-1,0,2]]
[[1,-1,-1,1],[0,2,-2,0],[-1,1,-1,1]]
[[1,-1,-1,1],[0,-2,2,0],[-1,1,-1,1]]
[[1,1,-1,-1],[0,-2,-2,0],[1,1,1,1]]
[[1,1,-1,-1],[0,2,2,0],[1,1,1,1]]
[[1,1,-2,0],[0,2,0,-2],[1,1,0,-2]]
[[1,-1,-2,0],[0,2,0,-2],[1,-1,0,2]]
[[1,0,-1,0],[0,-2,0,0],[1,0,1,0]]
[[1,0,-1,0],[0,2,0,0],[1,0,1,0]]
[[1,-2,0,0],[0,2,-2,0],[1,-2,2,0]]
[[1,2,0,0],[0,-2,-2,0],[1,2,2,0]]
[[1,-2,0,0],[0,-2,2,0],[1,-2,2,0]]
[[1,2,0,0],[0,2,2,0],[1,2,2,0]]
[[1,1,-2,0],[0,-2,0,2],[1,1,0,-2]]
[[1,-1,-2,0],[0,-2,0,2],[1,-1,0,2]]
[[1,-1,-1,1],[0,2,-2,0],[1,-1,1,-1]]
[[1,-1,-1,1],[0,-2,2,0],[1,-1,1,-1]]
[[2,0,-2,0],[0,2,1,-1],[-2,0,1,-1]]
[[2,0,-2,0],[0,2,-1,-1],[-2,0,1,1]]
[[2,-2,0,0],[0,2,-1,0],[-2,2,-1,0]]
[[2,2,0,0],[0,-2,-1,0],[-2,-2,-1,0]]
[[2,-2,0,0],[0,-2,1,0],[-2,2,-1,0]]
[[2,2,0,0],[0,2,1,0],[-2,-2,-1,0]]
[[2,0,-2,0],[0,-2,-1,1],[-2,0,1,-1]]
[[2,0,-2,0],[0,-2,1,1],[-2,0,1,1]]
[[2,0,-2,0],[0,2,-1,-1],[2,0,-1,-1]]
[[2,0,-2,0],[0,2,1,-1],[2,0,-1,1]]
[[2,-2,0,0],[0,2,-1,0],[2,-2,1,0]]
[[2,2,0,0],[0,-2,-1,0],[2,2,1,0]]
[[2,-2,0,0],[0,-2,1,0],[2,-2,1,0]]
[[2,2,0,0],[0,2,1,0],[2,2,1,0]]
[[2,0,-2,0],[0,-2,1,1],[2,0,-1,-1]]
[[2,0,-2,0],[0,-2,-1,1],[2,0,-1,1]]
#---> reslines=256
|
ccc08954833f7d367fc0b7c194ace6cd204d4248 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2672/CH3/EX3.23/Ex3_23.sce | 6275f0367ceb5ce7ad9d2a7ff708cd772e626a3c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 566 | sce | Ex3_23.sce | //Example 3_23
clc;
clear;
close;
format('v',6);
//given data :
R1=5;//ohm
L1=150;//mH
R2=50;//ohm
L2=15;//mH
V=230;//V
f=50;//Hz
Z1=R1+%i*2*%pi*f*L1/1000;//ohm
Z2=R2+%i*2*%pi*f*L2/1000;//ohm
I1=V/Z1;//A
I2=V/Z2;//A
I=I1+I2;//A
Imag=abs(I);//A
Iang=atand(imag(I)/real(I));//degree
disp(Iang,Imag,"Total current drawn, magnitude(A) & Angle(degree) are");
pf=cosd(Iang);//Power Factor(lagging)
format('v',4);
disp(pf,"Power Factor(lagging)");
P=V*Imag*pf;//W
format('v',5);
disp(P,"Power Consumed(W)");
//Answer is not accurate in the book.
|
c7548a3497e8f5036163386deea1a05d35c136fb | 39c5c468df5e2bde0147a30cf092fc8da3e7ed3e | /UFRGS/calcNumerico/area2/m9/rieman.sce | 766ea07fb4d7772b340c86e8f03a2dcd95af0e26 | [] | no_license | andredxc/Files | 9dffc9fe5f7e923b83035d794dfa15c930cdb898 | e32309b9ab548b829b04be66c2776cf9c9c6656e | refs/heads/master | 2021-06-03T10:44:01.606242 | 2020-09-21T15:39:48 | 2020-09-21T15:39:48 | 107,410,076 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 414 | sce | rieman.sce | /*
Rieman M9
n -> numero de intervalos
h -> comprimento do intervalo
a -> intervalo inferior
b -> intervalo superior
*/
function y = f3(x)
y = x^2 + exp(x)
endfunction
a = 0
b = 2
//n = 100
//h = (b - a)/n
h = 0.0078125
n = (b - a)/h
f = f3
x = linspace(a, b, n+1)
S = 0
for i = 1:n
x1 = x(i)
A1 = 1
dS = (A1*f(x1))*h
S = S + dS
end
disp(S)
|
7b160a781c5e8ba2585632f49d30637c14196244 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1544/CH4/EX4.7/Ch04Ex7.sce | 0a401b83151edd915ecb667404934703bf49a077 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,376 | sce | Ch04Ex7.sce | // Scilab code Ex4.7: Pg 120 (2008)
clc; clear;
r = 0.04; // Mean radius of torod, m
A = 3e-04; // Csa of toroid, m^2
mew_o = 4*(%pi)*1e-07; // Permeability of free space
mew_r = 150; // Relative permeability of toroid
N = 900; // Number of turns on coil
I = 1.5; // Coil current, A
l = 2*(%pi)*r; // Effective length of toroid, m
// Part (a)
// Since m.m.f is the product of the current and the number of turns, therefore, we have
F = N*I; // Magnetomotive force, At
printf("\nThe m.m.f of toroid = %4d At", F);
// Part (b)
// Since magnetic field strength is defined as the mmf per metre length of the magnetic circuit, therefore, we have
H = F/l; // Magnetic field strength, At/m
printf("\nThe magntic field strength = %6.1f At/m", H);
// Part (c)
B = (mew_r*mew_o*H); // Flux density, T
phi = B*A; // Flux, Wb
printf("\nThe flux and flux density are %6.2f micro-weber and %6.4f T respectively", phi/1e-06, B)
// Result
// The m.m.f of toroid = 1350 At
// The magntic field strength = 5371.5 At/m
// The flux and flux density are 303.75 micro-weber and 1.0125 T respectively
|
ed7a05c1383119dd172b5b468230a9e38465d885 | be96e52def8294f354d9eb84ba5fd00c3306a984 | /Templates/NativeEntitySetService.tst | b3ac9f37b3c579f5ed8b7ca750a8677046b92b3b | [
"MIT"
] | permissive | FuryTechs/FuryTech.OdataTypescriptServiceGenerator | e6177564000a74e38e34bf82bd311a8d075b2a33 | 234c226ebe8a2faeb4f4661d2acca7bbeeb54e95 | refs/heads/master | 2023-04-28T06:05:05.934471 | 2023-04-18T05:34:27 | 2023-04-18T05:34:27 | 76,648,222 | 18 | 11 | MIT | 2023-04-18T05:34:28 | 2016-12-16T11:22:28 | TypeScript | UTF-8 | Scilab | false | false | 296 | tst | NativeEntitySetService.tst | // created by FuryTech.ODataTypeScriptGenerator
$imports$
import { NativeOdataServiceBase } from '../NativeOdataServiceBase';
export class $Name$ extends NativeOdataServiceBase<$entityTypeName$> {
$customActions$$customFunctions$
constructor() {
super('$entitySetUrl$');
}
}
|
fbafd95dbb73c473d28f070dbc0c15a4a3653472 | 3c47dba28e5d43bda9b77dca3b741855c25d4802 | /microdaq/macros/post_xcos_simulate.sci | 42f0f90d0ff22c8ab21acd851af8bb1828e8fe75 | [
"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 | 2,715 | sci | post_xcos_simulate.sci | function []=post_xcos_simulate(%cpr, scs_m, needcompile)
global %microdaq;
for i = 1:size(scs_m.objs)
curObj= scs_m.objs(i);
if (typeof(curObj) == "Block" & curObj.gui == "mdaq_setup")
if %microdaq.dsp_loaded == %T then
mdaqDSPStop();
%microdaq.dsp_loaded = %F;
// make scope nicer
try
list_fig=winsid();
for i=1:length(list_fig)
h=get_figure_handle(list_fig(i));
if h.children.type == "Axes" then
axes = h.children;
axes.grid = [1,1];
axes.grid_style = [9,10];
poliline = axes.children;
if isempty(poliline.children) then
poliline.polyline_style = 2;
end
end
end
catch
end
if curObj.model.ipar(3) == 1 then
connection_id = mdaqOpen();
//get number of records
[nr_records, result] = mlink_profile_data_get(connection_id, 1);
if nr_records > 0 & nr_records < 250000 & result > -1 then
[profile_data, result] = mlink_profile_data_get(connection_id, nr_records + 1);
if %microdaq.private.mdaq_hwid(4) == 0 then
cpu_clock = 300000000;
else
cpu_clock = 456000000;
end
profile_data = profile_data / (cpu_clock / 1000000);
dsp_exec_profile = tlist(["listtype","init","step","end"], [], []);
dsp_exec_profile.init = profile_data(3);
dsp_exec_profile.step = profile_data(4:nr_records);
dsp_exec_profile.end = profile_data(2);
save(TMPDIR + filesep() + "profiling_data", "dsp_exec_profile");
clear dsp_exec_profile;
disp('### Profiling data have been downloaded.');
end
mdaqClose(connection_id);
end
end
end
end
if %microdaq.private.connection_id > -1 & (%microdaq.private.has_mdaq_param_sim | %microdaq.private.has_mdaqBlock) then
mdaqClose(%microdaq.private.connection_id);
%microdaq.private.connection_id = -1;
%microdaq.private.has_mdaq_param_sim = %F;
end
endfunction
|
ec5b233c7d25741edcabf39548a6ce0307de9796 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1301/CH9/EX9.19/ex9_19.sce | 3e5fa21fb87a3f9f3f0f2a0f55f5d19448d08b10 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 423 | sce | ex9_19.sce | clc;
m=0.8; //mass of water in kg
c=4185; //specific heat in J/kg.celcius
delT=100-20; //change in temperature in celcius
Q=m*c*delT; //calculating heat required in Joule
P=10^3; //Power in J/sec
t=Q/P; //calculating time using P=(Q/t)
disp(t,"Time required to raise temperature to 100 degree celcius in second = "); //displaying result.
disp(t/60,"Time in minutes = "); //displaying result. |
f1934490930a1bae11be002d280f6a04d32b92a8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /74/CH1/EX1.3/example3_sce.sce | 8f17b8019c1d0ad60f36bf682ff0295d2ddf3499 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 405 | sce | example3_sce.sce | // chapter 1
// example 1.3
//page 18
Rin1=100;Rin2=100;Re=2.7*10^3;Rc=4.7*10^3;
hfe=100;hie=1000;hoe=0;
Aid=(hfe*Rc)/(Rin1+hie);//Differential gain
disp(Aid)
Acm=((2*Re*hoe-hfe)*Rc)/(2*Re*(1+hfe)+(Rin1+hie)*(1+2*Re*hoe));//comman mode gain
Acm=-Acm// neglecting negative sign
disp(Acm)
CMRR=Aid/Acm
CMRR=20*log10(CMRR);
disp(CMRR)
Rin=2*(Rin1+hie)//input resistance
Ro=Rc//output resistance |
f6de0b0e712da0b604a244e299c93c5f2d49077d | b602f16275ae13b51d284e411b450ffad2d9a6fb | /ecology.sci | 6f989378b567879537fe9591b2548af8a28f2cd4 | [] | no_license | panchuanbo/Ecology-Simulations | abedc8388d6111902e34ef3e6aa852f2f36f0bd1 | fb26667424d2b3fef4b99d7e316e6032064c8bf2 | refs/heads/master | 2020-04-28T10:24:28.749386 | 2013-06-23T23:48:56 | 2013-06-23T23:48:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,868 | sci | ecology.sci | function a = init(height, width, start)
for i = 1:height,
b = start;
for j = 1:width,
a(i, j) = b;
if a(i, j) == 4 then
a(i, j) = 5;
end
if a(i, j) == 3 then
a(i, j) = 14;
end
if a(i, j) == 5 then
a(i, j) = 21;
end
b = b - 1;
if b < 1 then
b = 4;
end
end
start = start - 1;
if start < 1 then
start = 4;
end
end
endfunction
function r = generateloc(dim, w, h)
//1=up, 2=down, 3=right, 4=left
tmp = 0; tmp2 = 0;
if w == 1 & h == 1 then
r = 4; tmp = 4; tmp2 = 1;
elseif w == 1 & h == dim(1, 1) then
r = 4; tmp = 4; tmp2 = 2;
elseif w == dim(1, 2) & h == 1 then
r = 3; tmp = 3; tmp2 = 1;
elseif w == dim(1, 2) & h == dim(1, 1) then
r = 3; tmp = 3; tmp2 = 2;
elseif w == 1 then
r = 4; tmp = 4;
elseif w == dim(1, 2) then
r = 3; tmp = 3;
elseif h == 1 then
r = 1; tmp = 1;
elseif h == dim(1, 1) then
r = 2; tmp = 2;
end,
if tmp == 0 then
r = ceil(rand()*4);
else
while r == tmp | r == tmp2, r = ceil(rand() * 4); end,
end,
endfunction
function vm = generationvm(mat, iterations, delay)
dim = size(mat);
counter = 1;
for i = 1:iterations,
w = ceil(rand() * dim(1, 2));
h = ceil(rand() * dim(1, 1));
r = generateloc(dim, w, h);
if r == 1 then mat(h, w) = mat(h-1, w);
end,
if r == 2 then mat(h, w) = mat(h+1, w);
end,
if r == 3 then mat(h, w) = mat(h, w+1);
end,
if r == 4 then mat(h, w) = mat(h, w-1);
end,
black = 0; blue = 0; red = 0; green = 0;
for i = 1:dim(1, 2),
for j = 1:dim(1, 1),
if mat(i, j) == 1 then
black = black + 1;
elseif mat(i, j) == 2 then
blue = blue + 1;
elseif mat(i, j) == 14 then
green = green + 1;
elseif mat(i, j) == 21 then
red = red + 1;
end
end
end
subplot(2,2,2)
pie([black blue red green], ["Black", "Blue", "Red", "Green"]);
subplot(2,2,1)
Matplot(mat);
subplot(2,2,3)
xfrect(dim(1, 1)+1, dim(1, 2)+50, 20, dim(1, 1));
if delay > 0 then
sleep(delay);
end
xstring(dim(1, 1)+1, dim(1, 2), 'Black: ' + string(black))
xstring(dim(1, 1)+1, dim(1, 2)-1*(dim(1,2)/10), 'Blue: ' + string(blue))
xstring(dim(1, 1)+1, dim(1, 2)-2*(dim(1,2)/10), 'Red: ' + string(red))
xstring(dim(1, 1)+1, dim(1, 2)-3*(dim(1,2)/10), 'Green: ' + string(green))
xstring(dim(1, 1)+1, dim(1, 2)-4*(dim(1,2)/10), 'Currently On')
xstring(dim(1, 1)+1, dim(1, 2)-4.5*(dim(1,2)/10), 'Iteration:')
xstring(dim(1, 1)+1, dim(1, 2)-5*(dim(1,2)/10), string(counter) + '/' + string(iterations))
counter = counter + 1;
end,
vm = mat;
endfunction
function ip = generationip(mat, iterations, delay)
dim = size(mat);
for i = 1:iterations,
w = ceil(rand() * dim(1, 2));
h = ceil(rand() * dim(1, 1));
r = generateloc(dim, w, h);
if r == 1 then mat(h-1, w) = mat(h, w);
end,
if r == 2 then mat(h+1, w) = mat(h, w);
end,
if r == 3 then mat(h, w+1) = mat(h, w);
end,
if r == 4 then mat(h, w-1) = mat(h, w);
end,
Matplot(mat);
if delay > 0 then
sleep(delay);
end
end,
ip = mat;
endfunction
|
741b82136502d50f4f9229fc4bcca556c47b182e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3630/CH15/EX15.5/Ex15_5.sce | 65629cbbd31d0dca36a7175b3457b19590a0ddab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 93 | sce | Ex15_5.sce | clc;
slewrate=500000;
Vpk=8;
fmax=slewrate/(2*3.14*Vpk);
disp('kHz',fmax/1000,"fmax=");
|
dbb649e4315db3c8cf00ed187d1ca14a333602c2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /343/CH2/EX2.50/ex2_50.sce | 8009de13233697eff96fe6e8c34d2dabef03b704 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 440 | sce | ex2_50.sce | clc
R=10; //Assigning values to parameters
L=0.014;
C=100*10^-6;
wr=1/sqrt(L*C);
Q=(1/R)*(sqrt(L/C));
BW=R/L;
w1=wr-BW/2;
w2=wr+BW/2;
Vm=1;
V=1/sqrt(2);
Vc=(V/R)*sqrt(L/C);
disp("rad/sec",wr,"Resonant frequency");
disp(Q,"Quality factor");
disp("rad/sec",BW,"Bandwidth");
disp("rad/sec",w1,"Lower frequency");
disp("rad/sec",w2,"Upper frequency");
disp("Volts",Vc,"Maximum value of voltage across capacitor"); |
8dd4ef7329d04bb1a0749f3c4149b41a4fc17d0a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH3/EX3.17/Ex3_17.sce | 582292d3008fb9312ffa810cc4775448d96e6e85 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,057 | sce | Ex3_17.sce |
//Variable declaration
beeta=98. //current gain
rpi=1.275 //dynamic resistance(k ohms)
Rb=220. //base resistance(k ohms)
Re=3.3 //emitter resistance(k ohms)
Vcc=12. //supply voltage(V)
Vbe=0.7 //base to emitter voltage(V)
//Calculations
//Part a
x=rpi/(1+beeta)
Av=Re/(Re+x) //voltage gain
//Part b
Zb=rpi+(1+beeta)*Re //impedance(k ohms)
Zi=(Zb*Rb)/(Zb+Rb) //input impedance(k ohms)
Zo=(Re*x)/(Re+x) //output impedance(k ohms)
//Part c
Ib=(Vcc-Vbe)/(Rb+(Re*(1+beeta))) //as Ie=(1+beeta)*Ib
Ic=beeta*Ib //collector current(mA)
rpi=beeta*(25/Ic) //dynamic resistance(k ohms)
//Results
printf ("voltage gain is %.3f",Av)
printf ("input impedance is %.1f KOhm and output impedance is %.1f ohms",Zi,Zo/1E-3)
printf ("value of Ic is %.3f mA",Ic)
printf ("value of rpi is %.3f k ohms",rpi/1E+3)
|
8c93c2911255ece45fa7473e06de6df429cc96b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /68/CH4/EX4.7/ex4_7.sce | f2bacf1b7373db04f6cfbc8a895582327b79fa2e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 706 | sce | ex4_7.sce | // Example 4.7: To determine drain currents and output voltage
K_n =1*10^-3; // K_n=k_n*W_n/L_n (A/V^2)
K_p = 1*10^-3; // K_p=k_p*W_p/L_p (A/V^2)
V_tn= 1; // (V)
V_tp= -1; // (V)
V_I=-2.5:2.5:2.5; // (V)
V_DD=2.5; // (V)
R=10;// (kilo ohm)
// For V_I=0
I_DP=(K_p*(V_DD-V_tn)^2)/2;
I_DN=I_DP;
disp(I_DP,I_DN,"I_DP (A) and I_DN (A) for V_I=0V")
disp(0,"V_O for V_I =0V")
// For V_I=2.5V
// I_DN=K_N(V_GS-V_tn)V_DS
// I_DN=v_O/R
// Solving the two equations we get
I_DN=0.244*10^-3; // (V)
V_O=-2.44; // (V)
disp(I_DN,V_O,"V_O and I_DN for V_I=2.5V")
// For V_I=-2.5V Q_N is cut off
I_DP=2.44*10^-3; // (A)
V_O=2.44; // (V)
disp(0,I_DP,V_O,"V_O(V), I_DP (A) and I_DN (A) for V_I=-2.5V") |
8bdeb9c8849c522393b6b861e8742ea1bb75ed04 | 0c7eb559837b3784247bf636a7747e73df5220af | /智能系统原理开发/20.人工智能/神经网络源代码/_NeuralNetworkSrcCode/CHAPT9/LAM/SAMPLE.TST | e1eca4cfcb481bc4b231ef04c4f5e1be513f93ed | [] | no_license | linchenlinchen/Class_3_term_1 | 2f6a044cd4d70527613e20141adbf852cd10862e | fef4550c7fb7c625106222df8f7d17645986d1ee | refs/heads/master | 2021-03-07T02:28:45.522794 | 2020-03-11T10:41:25 | 2020-03-11T10:41:25 | 246,239,607 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 189 | tst | SAMPLE.TST | 6
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
1 1 0
0 0 1
0 1 1
1 0 0
1 1 1
1 1 0
0 0 1
1 1 0
0 0 1
1 1 0
1 0 1
1 0 1
1 1 1
0 0 1
0 0 1
1 1 1
1 0 1
1 1 1
0 1 1
0 0 1
0 1 0
1 0 1
1 1 1
1 0 1
1 0 1
|
887e120b03712c751f30b575d5740dfbb592a9df | 449d555969bfd7befe906877abab098c6e63a0e8 | /833/CH14/EX14.5/Ex14_5.sce | 4d94be635ee332d088a5b9266df2218905680f8f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 214 | sce | Ex14_5.sce | //Caption:Find the regulation of the machine
//Exa:14.5
clc;
clear;
close;
Vf=400//Full load voltage(in volts)
Vr=480//No load voltage(in volts)
Re=(Vr-Vf)*100/Vf
disp(Re,'Regulation of the machine(in %)=') |
73c86d6a441e92e98a8b52f862d697eb649c7304 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/macros/scicos/do_resize.sci | e7c966acfd75bdd3e0b04401585caef559f4b1e3 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 1,470 | sci | do_resize.sci | function scs_m=do_resize(scs_m)
// Copyright INRIA
while %t
[btn,xc,yc,win,Cmenu]=cosclick()
if Cmenu<>[] then
Cmenu=resume(Cmenu)
end
K=getblocklink(scs_m,[xc;yc])
if K<>[] then
if scs_m(K)(1)=='Block' then
break,
else
//
[pos,ct]=scs_m(K)(6:7)
Thick=pos(1)
Type=pos(2)
[ok,Thick,Type]=getvalue('Link parameters',['Thickness';'Type'],..
list('vec','1','vec',1),[string(Thick);string(Type)])
if ok then
drawobj(scs_m(K))
edited=or(scs_m(K)(6)<>[Thick,Type]);
scs_m(K)(6)=[Thick,Type];
drawobj(scs_m(K))
end
return
end
end
end
o=scs_m(K)
graphics=o(2)
sz=graphics(2)
orig=graphics(1)
[ok,w,h]=getvalue('Set Block sizes',['width';'height'],..
list('vec',1,'vec',1),string(sz(:)))
if ok then
w=maxi(w,20)
h=maxi(h,20)
if w<>sz(1) then
if [get_connected(scs_m,K,'out'),..
get_connected(scs_m,K,'clkin'),..
get_connected(scs_m,K,'clkout')]<>[] then
message(['Block with connected standard port outputs'
'or Event ports cannot be resized horizontally'])
return
end
end
if h<>sz(2) then
if [get_connected(scs_m,K,'out'),..
get_connected(scs_m,K,'in'),..
get_connected(scs_m,K,'clkin')]<>[] then
message(['Block with connected standards ports'
'or Event input ports cannot be resized vertically'])
return
end
end
graphics(2)=[w;h]
graphics(1)=orig
drawblock(o)
o(2)=graphics
scs_m(K)=o
drawblock(o)
end
|
e84cef64b0ef8a8186c163cc39a001c933603b1d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1808/CH2/EX2.14/Chapter2_Example14.sce | f5237172765e20bb8b1b6dacbc2ca1c6c92f2b53 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 743 | sce | Chapter2_Example14.sce | clc
clear
//INPUT DATA
//CH4+2O2=CO2+H2O ;//Combustion equation
//Q=Up-Ur ;//Energy balance for the closed system
hfco2=-393520;//enthalpy of CO2 From the table
dhco2=28041;//change in enthalpy in KJ/kmol
hfh2o=-241820;//enthalpy of H2O From the table
dhh2o=21924;//change in enthalpy in KJ/kmol
hfch4=-74850;//enthalpy of CH4 From the table
t1=298;//initial temperature in K
t2=900;//final temperature in K
p1=1;//Pressure in atm
R=8.314;//gas constant
//CALCULATIONS
Q=(hfco2+dhco2)+2*(hfh2o+dhh2o)-(hfch4)+3*R*(t1-t2);//Amount of heat transfer in kJ/kmol
p2=p1*(t2/t1);//Final pressure in atmosphere
//OUTPUT
printf('(i)Amount of heat transfer is %3.2f kJ/kmol \n (ii)Final pressure is %3.2f atmosphere',Q,p2 )
|
0d0c182419928827cf5d4df18f68dfa65e057a9a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1301/CH30/EX30.9/ex30_9.sce | b0763de14bd1dd7e72c6f6f817082a8905a3d431 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 207 | sce | ex30_9.sce | clc;
i=10; //current in Ampere
t=3600; //time in sec
F=96500; //in Coloumb
v=1; //valency
M=(i*t)/(F*v); //calculating moles
disp(M,"No. of moles per hour = "); //displaying result |
e4d9c08c6380d38a06c8bf22855828dbdfde82f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /278/CH27/EX27.3/ex_27_3.sce | 31bde74160c2f5569829b7942bc703eb253ac0ce | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 491 | sce | ex_27_3.sce | //find
clc
//solution
//given
Wr=4000//N
Wa=5000//N
N=1600//rpm
Lh=5*300*10//hrs//bearing life in hours
L=60*N*Lh//rev
//W=XVWr + YWa
//from tale 27.4,..we get
X=0.56
Y=1
V=1
W=0.56*1*Wr +1*Wa//N
C=W*(L/10^6)^(1/3)
printf("dynamic load rating is,%f kN\n",C)
//from table 27.6, bearing numbr 315.
Co=72000//N
C1=90000//N
//Wa/Co=0.07,..
//from table 27.4
X1=0.56
Y1=1.6
W=0.56*1*Wr + 1.6*Wa//N
Cb=W*(L/10^6)^(1/3)
printf("basic dynamic load rating is,%f kN\n",Cb)
|
5389773f28229151b1f803fdfdedadd6a56fb799 | 449d555969bfd7befe906877abab098c6e63a0e8 | /343/CH2/EX2.46/ex2_46.sce | 66a821b85571bb02116fa1951224da41db0197dd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 280 | sce | ex2_46.sce | clc
function vl=f(t), vl=300*sin(1000*t), endfunction; //Defining functions
R=20; //Assigning values to parameters
w=1000;
Z=R/cos(%pi/4);
Xc=sqrt(Z*Z-R*R);
Xl=2*Xc;
L=Xl/w;
C=1/(w*Xc);
disp("Henry",L,"Inductance Value");
disp("Farad",C,"Capacitance Value"); |
e21237bc80f622bcbf57a1e1e7e25cb0ca3a41c8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1895/CH11/EX11.28/EXAMPLE11_28.SCE | 852f6200257099c92a798680f9a5683a92310c32 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | EXAMPLE11_28.SCE | //ANALOG AND DIGITAL COMMUNICATION
//BY Dr.SANJAY SHARMA
//CHAPTER 11
//Information Theory
clear all;
clc;
printf("EXAMPLE 11.21(PAGENO 504)");
//given
//wkt P_Y = P_X*P_YX from previous problems
alfa = .5
P_1 = .1//probability for first case
P_2 = .5//probability for second case
//calculations
P_X = [alfa alfa];
//first case
P_YX = [1-P_1 P_1;P_1 1-P_1];
P_Y1 = P_X*P_YX;
H_Y1 = -P_Y1(1,1)*log2(P_Y1(1,1))-P_Y1(1,2)*log2(P_Y1(1,2));
Q_1 = P_1*log2(P_1) + (1-P_1)*log2(1-P_1)//from proof
I_XY1 = 1 + Q_1;
//second case
P_YX = [1-P_2 P_2;P_2 1-P_2];
P_Y2 = P_X*P_YX;
H_Y2 = -P_Y2(1,1)*log2(P_Y2(1,1))-P_Y2(1,2)*log2(P_Y2(1,2));
Q_2 = P_2*log2(P_2) + (1-P_2)*log2(1-P_2)//from proof
I_XY2 = 1 + Q_2;
//results
printf("\n\nI_XY for the first case = %.2f",I_XY1);
printf("\n\nI_XY for the second case = %.2f",I_XY2);
|
222c18dc72e8bbb6a508d1bf117e00af412172ae | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4/macros/mtlb/%b_g_s.sci | 99a7f6aeb8629c7d75a412a3e8df92b8f3a12ec4 | [
"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 | 62 | sci | %b_g_s.sci | function r=%b_g_s(a,b)
// r=a|b
// Copyright INRIA
r=a|(b<>0)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.