blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 6 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 21 values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 141k 586M ⌀ | star_events_count int64 0 30.4k | fork_events_count int64 0 9.67k | gha_license_id stringclasses 8 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 50 values | src_encoding stringclasses 23 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 1 class | length_bytes int64 5 10.4M | extension stringclasses 29 values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5b961768a1912a1e80ff19b473967b7e0d08e287 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1208/CH1/EX1.15/Exa15.sce | 4f0d6afe24d80946bce17c572db5c93118f77bb6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 328 | sce | Exa15.sce | //Exa15
clc;
clear;
close;
//given data :
Vo=20000;//in Rs
r=4;//in % per annum
i=r/100;
n=10;//in years
//formula for annuity can be determined by Vo=(A*((1+i)^n-1))/(i*((1+i)^n));
A=(Vo*(i*((1+i)^n)))/((1+i)^n-1)
disp(A,"The amount of each investment(in Rs) is : ")
//Note: answer given in the book is not accurate |
f0c41222f79a9fa694f7ba00f8524b89745c5abd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2294/CH3/EX3.18/EX3_18.sce | 481182db0bbc78b86671c69bcefc6bb7b723cb1a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 153 | sce | EX3_18.sce | //Example 3.18
//Find the convolution.
clc;
x1=[1 -2 3 1];
x2=[2 -3 -2];
y=convol(x1,x2);
disp(y,'The convolution of the above two sequences is:'); |
b626569c9f693661f9bb77e6af227124b0587ca1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH2/EX2.8/Ex2_8.sce | 0a0696905890c895cf6535eccff66bb7a8cf40a0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 336 | sce | Ex2_8.sce | //Variable declaration
Vds=7.5 //drain to source voltage(V)
Idss=8. //drain current for Vgs(V)
Vgs=2. //gate to source voltage(V)
Vp=4. //peak voltage(V)
//Calculations
Id=Idss*((Vp-Vgs)/Vp)**2 //drain current(mA)
//Result
printf ("diode current is %.1f mA",Id)
|
3faec71a63a9f232057994f18ce4be386420049f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1026/CH4/EX4.2/Example4_2.sce | 540a1b7d20603ffea3bc6899956e1ae709fbeb8f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 205 | sce | Example4_2.sce | //chapter4,Example4_2,pg 84
V=1700
t=0.65
d=(V*t)/2
n=0.07*10^6
lam=V/n
printf("depth of sea\n")
printf("d=%.1f m",d)
printf("\nwavelength of pulse\n")
printf("lam=%.4f m",lam)
|
d41b87fe24e53bccdac58d57f1900056d9c49256 | 449d555969bfd7befe906877abab098c6e63a0e8 | /293/CH2/EX2.1.a/eg2_1a.sce | 993d36fbd986b8b6c13e2849261c660abb3f1489 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 219 | sce | eg2_1a.sce | V = 1; // voltage supply
R = 10; // resistance in ohms
I = V/R //current flowing through R
disp("a)")
disp(V,"voltage across the resistor (in volts)=")
disp(I,"current flowing through the resistor (in amps) =")
|
e1a99c3d75f941936fcf1fd021d26ba869c566d1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /978/CH1/EX1.7/Example1_7.sce | 99e79d658f77997ac8f4ccd47de008e05a01faad | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 224 | sce | Example1_7.sce | //chapter1,Example1_7,pg 483
If=100*10^-6//full scale current
Rm=1000//meter resistance
Vf=10//full scale voltage
Rs=(Vf/If)-Rm//series resistance
printf("\nseries resistance\n")
printf("\Rs=%.2f ohm",Rs)
|
a0dd089efb582623be9f8483ce52acf7d34e187c | c59576b9f96a7b26dc5bc0d52998ad818380b8cf | /test/isbn.tst | f4e1e4e88fc2ab8b4e52f11c10197650c3d92fd7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/checkdig | 0588535521d9106a5c777a809e50d64a9204fa3c | 3570d246efd0d102f1a2652dfe752884b5d346d8 | refs/heads/master | 2022-02-14T07:41:43.949901 | 2022-01-28T15:00:07 | 2022-01-28T15:00:07 | 30,117,975 | 1 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 331 | tst | isbn.tst | 3-442-15284-4
3-8031-3052-2
1-84277-073-X
1-84277-072-1
9-04-110468-2
0-7148-9665-9
978-3-423-62239-4
978-3-421-04201-9
3-421-04201-2
978-3-8364-0692-5
979-0201804842
9979-32561-5
9979-32594-1
3-7979-1670-1
978-3-515-08979-1
979-95078-3-9
979-0004182468
978-3-86680-192-9
3-86680-192-0
WRONGISBNX -> WRONGISBN-1
|
72f83d8b0e709cfb0f7e0818b6720aaaee615d9e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1898/CH12/EX12.15/Ex12_15.sce | e6042cc7e6815985bbd19ee15314eb58c8c6a26a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 551 | sce | Ex12_15.sce | clear all; clc;
disp("Scilab Code Ex 12.15 : ")
//Given:
w = 4; //kN/m
l = 10; //m
l_bc =3; //m
//Calculations:
EI_theta_B = (w*l^3)/(24); //ThetaB1 = (wL^3)/(24EI)
EI_nu_B = (w*l^4)/(30); //nuB = (wL^4)/(30EI)
nu_C = EI_nu_B + (EI_theta_B*l_bc);
//Display:
printf('\n\nThe displacement at end C of the cantilever beam, in terms of EI = %1.0f/EI kNm^3',nu_C);
//----------------------------------------------------------------------END--------------------------------------------------------------------------------
|
d0e189c91de4eabda7fb05be383ad0aed1929a7a | 449d555969bfd7befe906877abab098c6e63a0e8 | /323/CH4/EX4.4/ex4_4.sci | 55f44f3d899acb46bc7856ced440b04fd8d9577c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 917 | sci | ex4_4.sci | funcprot(0)
function [polar] = rect2polar(x,y) //Function to convert rectangular coordinates to polar coordinates
polar=ones(1,2)
polar(1)=sqrt((x^2)+(y^2))
polar(2)=atan(y/x)
polar(2)=(polar(2)*180)/%pi
endfunction
function [rect] = polar2rect(r,theta) //Function to convert polar coordinates to rectangular coordinates
rect=ones(1,2)
theta=(theta*%pi)/180
rect(1)=r*cos(theta)
rect(2)=r*sin(theta)
endfunction
clc
R=8 //Resistance in ohms
L=0.02 //Inductance in henry
Vl=400 //Line voltage
f=50 //Freq in hertz
Xl=2*%pi*f*L
Zbarph=rect2polar(R,Xl)
r=Zbarph(1)
phi=Zbarph(2)
printf("\n Zph=%.2f ohms \n",r)
printf("\n phi=%.2f degrees \n",phi)
phi=phi*%pi/180 //Converting degrees to radians
Iph=Vl/r
printf("\n Iph=%.2f A \n",Iph)
Il=sqrt(3)*Iph
printf("\n Il=%.2f A \n",Il)
P=sqrt(3)*Vl*Il*cos(phi) //Active power
printf("\n P=%.2f kW \n",P*(10^-3))
|
fb7f06936fe9461bd813adf1726df687a89029c1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /845/CH6/EX6.9/Ex6_9.sce | 0f47285e1884bcd2e7d2f6814954982704dab379 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 573 | sce | Ex6_9.sce | //Example 6.9
clc
clear
x = 0.1:0.1:0.5;
y = [1.4 1.56 1.76 2 2.28];
n = length(x);
del = %nan*ones(n,5);
del(:,1) = y';
for j = 2:5
for i = 1:n-j+1
del(i,j) = del(i+1,j-1) - del(i,j-1);
end
end
del(:,1) = [];
X = poly(0, "X");
h = x(2) - x(1);
p = (X-x(1)) / h;
x0 = x(1);
y0 = y(1);
dely0 = del(1,:);
Y = y0;
for i = 1:length(dely0)
t = 1;
for j = 1:i
t = t * (p-j+1);
end
Y = Y + t*dely0(i)/factorial(i);
end
Y = round(Y*10^2)/10^2;
disp(Y,"Required Newton''s Interpolating Polynomial:")
|
c19c2c2ad06696916e6d02980142f3a52c4c6b3c | ece5c630921508b439ed25c5f7ab3db5a66f7a1a | /Assignment8_Team8/Assignment8_Team8/conditional.tst | 0657057d8a0a66fc0cff1f64b94c6c8755dcca2b | [] | no_license | VedantS01/HDLProjectsCS2310 | f8d17d1c9c28034a21026a4fbe2ae5d38cf39330 | d2a39a4c062173475bd06ff0b3396f1ac6303103 | refs/heads/main | 2023-06-19T20:42:48.411561 | 2021-07-14T19:37:51 | 2021-07-14T19:37:51 | 386,054,022 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 945 | tst | conditional.tst | /*
PROGRAM 2 :
//HLL
if (a > b) {
c = a - b ;
} else {
c = b - a ;
}
//endHLL
a : RAM16K[16]
b : RAM16K[17]
c : RAM16K[18]
*/
load HackComputer.hdl,
output-file conditional.out,
output-list RAM64[16]%D1.10.1 RAM64[17]%D1.10.1 RAM64[18]%D1.10.1 ;
ROM32K load conditional.hack ,
//case 1:- a<b , 12 iterations required. (n>12 will do)
set RAM64[16] 200 , //a = 200
set RAM64[17] 300 , //b = 300
set reset 1,
tick, tock ;
set reset 0 ,
repeat 20 {
tick, tock ,
}
output;
//case 2:- a>b , 8 iterations required. (n>8 will do)
set RAM64[16] 67 , //a = 67
set RAM64[17] 24 , //b = 24
set reset 1,
tick, tock ;
set reset 0 ,
repeat 20 {
tick, tock ,
}
output;
//case 3:- a=b , 12 iterations required. (n>12 will do)
set RAM64[16] 74 , //a = 74
set RAM64[17] 74 , //b = 74
set reset 1,
tick, tock ;
set reset 0 ,
repeat 20 {
tick, tock ,
}
output; |
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();
|
845e1fb6d13d26ff978922b3238eb0b02c0b66dc | 449d555969bfd7befe906877abab098c6e63a0e8 | /2744/CH10/EX10.6/Ex10_6.sce | 492f1f8aeacba4bba2e3520f3eff8cfdb60baad9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 378 | sce | Ex10_6.sce | clear;
clc;
d = 3;// feet
t = 1/4;// inches
del_V = 9;// cub. inches
E = 30*10^6;// lb/in^2
PR = 0.3;// poisson's ratio
V = (%pi/6)*(12*d)^3;// in^3
k = del_V/V;
f = k*E/(3*(1-PR));// lb/in^2
p = 4*f*t/(12*d);// lb/in^2
printf('The pressure exerted by fluid on the shell, p = %d lb/in^2',p);
//there is a minute calculation error in the answer given in text book
|
3ff5fe6a51b9b7f4f57571caae2b536060844f74 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/U06.prev.tst | ac638168da888797587ee097de4e14789787413c | [
"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 | 336 | tst | U06.prev.tst | 0 1 2
0 1 3
0 2 3
1 2 3
0 1 4
0 2 4
1 2 4
0 3 4
1 3 4
2 3 4
0 1 5
0 2 5
1 2 5
0 3 5
1 3 5
2 3 5
0 4 5
1 4 5
2 4 5
3 4 5
0 1 6
0 2 6
1 2 6
0 3 6
1 3 6
2 3 6
0 4 6
1 4 6
2 4 6
3 4 6
0 5 6
1 5 6
2 5 6
3 5 6
4 5 6
0 1 7
0 2 7
1 2 7
0 3 7
1 3 7
2 3 7
0 4 7
1 4 7
2 4 7
3 4 7
0 5 7
1 5 7
2 5 7
3 5 7
4 5 7
0 6 7
1 6 7
2 6 7
3 6 7
4 6 7
5 6 7
|
d3b1854601574ac6ecaca963c05a92bda60ce092 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2732/CH6/EX6.13/Ex6_13.sce | 5ac0c30b220ea3754d962f3f73d747c071fb687b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 314 | sce | Ex6_13.sce | clc
// initialization of variables
clear
d=10 //cm
t =1 //mm
T= 100 //kg-m
L=5 //m
G=8*10^5 //kg/cm^2
//calculations
r=d/2
fs=T*r*100/(r^2*2*%pi*L*t*10^-1)
U=fs^2/(2*G)
U1=U*(%pi*L*100)
// results
printf('Energy per unit volume = %.3f kg-cm/cm^3',U)
printf('\n Total strain energy= %d kg-cm',U1)
|
0328953b4647b651721f5d0cd611e896a6292da1 | c9cea368728effc50ef3a05f10679bcc5c63382a | /Clase_03-04/opt_03-04-2019(3).sce | 66c37962ceb51314c363d735e1e4988599512f07 | [] | no_license | juancllanos/Optimizacion | dbb30315da1b6b3bfac0d1ace5d8e468557565d3 | ef85b725af392290dd46febc839f27944a5ed9d7 | refs/heads/master | 2020-04-28T05:46:38.128903 | 2019-05-21T21:59:16 | 2019-05-21T21:59:16 | 175,032,693 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 264 | sce | opt_03-04-2019(3).sce | // Metodo de Newton
function fx = f(x)
fx = (x(1)-x(2))**4 + (x(1)+2*x(2)-3)**2
endfunction
x = [5 ; 10 ]
disp(f(x),'f(x)')
[gr , H] = numderivative(f,x,[],[],'blockmat')
disp(gr,'gr',H,'H')
gr = gr'
d = -H\gr
disp(d,'d')
x = x+d
disp(x,'x')
|
29938f3a0b348ae5f83084e46eb168e9565e8f64 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2858/CH5/EX5.9/Ex5_9.sce | 9de138141bee305a387a2be4b46ea3dcd5572e08 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 355 | sce | Ex5_9.sce | //example 5.9
clc; funcprot(0);
Ny=23.76;
Nq=16.51;
q=3*110;
Gamma=110;
B=4;
Nqe=0.63*Nq;
Nye=0.4*Ny;
que=q*Nqe+1/2*Gamma*B*Nye;
disp(que,"bearing capacity in lb/ft^2");
//part 2
V=0.4;
A=0.32;
g=9.81;
kh=0.26;
k=0.92;//tan(alphae)
Seq=0.174*k*V^2/A/g*kh^-4/A^-4;
disp(Seq,"settelement in m");
disp(Seq*39.57,"settlement in inches")
|
6134bd7279e9eac27d5e86ba22c1723f41e521aa | 449d555969bfd7befe906877abab098c6e63a0e8 | /1280/CH5/EX5.2/5_2.sce | fb19c33105c36e262f6251b1cf96d3ecb7ee8b00 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 197 | sce | 5_2.sce | clc
//initialisation of variables
Q= 18 //gpm
d= 2 //in
v2= 10 //fps
//CALCULATIONS
v1= Q*4/(%pi*d^2*3.12)
d2= sqrt(4*Q/(%pi*v2*3.12))
//RESULTS
printf ('minnimum diameter = %.3f in',d2)
|
b5b8ee489b88f7382cfdeb96df6298b5ea65872e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1574/CH3/EX3.19/M_Ex_3_19.sce | 3a03a307b4f73fd84329d513c516794ead7b9f35 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 246 | sce | M_Ex_3_19.sce | clc
//Chapter3: Modulation
//Example3.19, page no 172
//Given
deltaF=75e3// max freq deviation
fm=15e3//modulation freq
mf=(2*deltaF)/fm// freq modulation depth
BW=mf*fm// Bandwidth
mprintf('The approximate bandwidth is: %d kHz',BW/1e3)
|
3e78e6f0159cdb4bd2f5a8026dbcd15ef2d2a688 | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/CONT/JY25NGP/ATWM1_Working_Memory_MRI_JY25NGP/ATWM1_Working_Memory_MRI_Nonsalient_Cued_Run1.sce | 4f243449b8a67fac55b91e53f3ebc1b5edcef565 | [] | no_license | atwm1/Presentation | 65c674180f731f050aad33beefffb9ba0caa6688 | 9732a004ca091b184b670c56c55f538ff6600c08 | refs/heads/master | 2020-04-15T14:04:41.900640 | 2020-02-14T16:10:11 | 2020-02-14T16:10:11 | 56,771,016 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 12,492 | sce | ATWM1_Working_Memory_MRI_Nonsalient_Cued_Run1.sce | # ATWM1 MRI Experiment
scenario = "ATWM1_Working_Memory_MRI_nonsalient_cued_run1";
scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
#scenario_type = trials;
scan_period = 2000; # TR
pulses_per_scan = 1;
pulse_code = 1;
#pulse_width=6;
default_monitor_sounds = false;
active_buttons = 2;
response_matching = simple_matching;
button_codes = 10, 20;
default_font_size = 28;
default_font = "Arial";
default_background_color = 0 ,0 ,0 ;
#write_codes=true; # for MEG only
begin;
#Picture definitions
box { height = 300; width = 300; color = 0, 0, 0;} frame1;
box { height = 290; width = 290; color = 255, 255, 255;} frame2;
box { height = 30; width = 4; color = 0, 0, 0;} fix1;
box { height = 4; width = 30; color = 0, 0, 0;} fix2;
box { height = 30; width = 4; color = 255, 0, 0;} fix3;
box { height = 4; width = 30; color = 255, 0, 0;} fix4;
box { height = 290; width = 290; color = 128, 128, 128;} background;
TEMPLATE "StimuliDeclaration.tem" {};
trial {
sound sound_incorrect;
time = 0;
duration = 1;
} wrong;
trial {
sound sound_correct;
time = 0;
duration = 1;
} right;
trial {
sound sound_no_response;
time = 0;
duration = 1;
} miss;
# baselinePre (at the beginning of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
}default;
time = 0;
duration = 9400;
mri_pulse = 1;
code = "BaselinePre";
#port_code = 1;
};
TEMPLATE "ATWM1_Working_Memory_MRI.tem" {
trigger_volume_encoding trigger_volume_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4;
6 12 292 292 399 125 11543 2992 12342 fixation_cross gabor_004 gabor_147 gabor_027 gabor_065 gabor_004_alt gabor_147_alt gabor_027 gabor_065 "1_1_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_11601_3000_12400_gabor_patch_orientation_004_147_027_065_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_065_framed blank blank blank blank fixation_cross_target_position_3_4 "1_1_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_065_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
20 25 292 292 399 125 9543 2992 12342 fixation_cross gabor_107 gabor_155 gabor_035 gabor_124 gabor_107_alt gabor_155 gabor_035_alt gabor_124 "1_2_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_12400_gabor_patch_orientation_107_155_035_124_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_076_framed blank blank blank blank fixation_cross_target_position_2_4 "1_2_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_076_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
33 38 292 292 399 125 9543 2992 12342 fixation_cross gabor_118 gabor_136 gabor_001 gabor_153 gabor_118_alt gabor_136 gabor_001_alt gabor_153 "1_3_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_12400_gabor_patch_orientation_118_136_001_153_target_position_2_4_retrieval_position_2" gabor_circ gabor_086_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_3_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_086_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
46 52 292 292 399 125 11543 2992 12342 fixation_cross gabor_161 gabor_056 gabor_102 gabor_120 gabor_161_alt gabor_056 gabor_102_alt gabor_120 "1_4_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_11601_3000_12400_gabor_patch_orientation_161_056_102_120_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_073_framed blank blank blank blank fixation_cross_target_position_2_4 "1_4_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_073_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
60 65 292 292 399 125 9543 2992 12342 fixation_cross gabor_135 gabor_091 gabor_052 gabor_017 gabor_135_alt gabor_091 gabor_052 gabor_017_alt "1_5_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_9601_3000_12400_gabor_patch_orientation_135_091_052_017_target_position_2_3_retrieval_position_1" gabor_180_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "1_5_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_180_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
73 79 292 292 399 125 11543 2992 14342 fixation_cross gabor_166 gabor_117 gabor_061 gabor_035 gabor_166_alt gabor_117_alt gabor_061 gabor_035 "1_6_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_166_117_061_035_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_035_framed blank blank blank blank fixation_cross_target_position_3_4 "1_6_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_035_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
88 93 292 292 399 125 9543 2992 14342 fixation_cross gabor_048 gabor_132 gabor_161 gabor_087 gabor_048_alt gabor_132_alt gabor_161 gabor_087 "1_7_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_048_132_161_087_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_026_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "1_7_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_026_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
102 107 292 292 399 125 9543 2992 14342 fixation_cross gabor_160 gabor_137 gabor_104 gabor_030 gabor_160_alt gabor_137 gabor_104_alt gabor_030 "1_8_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_160_137_104_030_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_075_framed blank blank blank blank fixation_cross_target_position_2_4 "1_8_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_075_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
116 121 292 292 399 125 9543 2992 14342 fixation_cross gabor_174 gabor_034 gabor_144 gabor_015 gabor_174_alt gabor_034 gabor_144_alt gabor_015 "1_9_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_174_034_144_015_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_015_framed blank blank blank blank fixation_cross_target_position_2_4 "1_9_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_015_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
130 136 292 292 399 125 11543 2992 14342 fixation_cross gabor_049 gabor_128 gabor_169 gabor_011 gabor_049 gabor_128_alt gabor_169_alt gabor_011 "1_10_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_049_128_169_011_target_position_1_4_retrieval_position_1" gabor_049_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_10_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_049_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
145 151 292 292 399 125 11543 2992 12342 fixation_cross gabor_136 gabor_002 gabor_114 gabor_165 gabor_136 gabor_002 gabor_114_alt gabor_165_alt "1_11_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_11601_3000_12400_gabor_patch_orientation_136_002_114_165_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_165_framed blank blank blank blank fixation_cross_target_position_1_2 "1_11_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_165_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
159 165 292 292 399 125 11543 2992 14342 fixation_cross gabor_149 gabor_125 gabor_041 gabor_018 gabor_149_alt gabor_125 gabor_041_alt gabor_018 "1_12_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_149_125_041_018_target_position_2_4_retrieval_position_2" gabor_circ gabor_125_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "1_12_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_125_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
174 179 292 292 399 125 9543 2992 14342 fixation_cross gabor_046 gabor_173 gabor_087 gabor_115 gabor_046 gabor_173_alt gabor_087_alt gabor_115 "1_13_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_046_173_087_115_target_position_1_4_retrieval_position_1" gabor_046_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "1_13_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_046_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
188 194 292 292 399 125 11543 2992 14342 fixation_cross gabor_129 gabor_068 gabor_090 gabor_013 gabor_129 gabor_068_alt gabor_090 gabor_013_alt "1_14_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_129_068_090_013_target_position_1_3_retrieval_position_1" gabor_176_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "1_14_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_176_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
203 208 292 292 399 125 9543 2992 12342 fixation_cross gabor_089 gabor_036 gabor_142 gabor_055 gabor_089 gabor_036 gabor_142_alt gabor_055_alt "1_15_Encoding_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_9601_3000_12400_gabor_patch_orientation_089_036_142_055_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_142_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "1_15_Retrieval_Working_Memory_MRI_P2_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_142_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
};
# baselinePost (at the end of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
};
time = 0;
duration = 20600;
code = "BaselinePost";
#port_code = 2;
}; |
425dc991d2174625168da39c98fb671aa4cc9350 | 449d555969bfd7befe906877abab098c6e63a0e8 | /821/CH4/EX4.26/4_26.sce | c2c61ceae901f4f5384e953efca724930962ca85 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 421 | sce | 4_26.sce | printf('From the linear plot of the langmuir isotherm the intercept=0.35*10^-3 and slope=9.47*10^-2');
printf('\nVolume is the inverse of summation of intercept and slope and that is 10.52cc');
Vm=10.52;//volume in cc//
m=Vm/22400;//No. of moles of N2//
N=m*6.023*10^23;//No. of molecules of N2//
TA=N*16*10^-16;//Total area in cm^2//
A=TA/17.5;//Area per gram in cm^2//
printf('\nArea of N2 per gram=%fcm^2',A);
|
36dbc2be1206c6704cdd7d3aa7a29135204124cf | 449d555969bfd7befe906877abab098c6e63a0e8 | /293/CH2/EX2.1.b/eg2_1b.sce | 154f28eaf890c4c2bc9d7fa59a553f9f874b8bfd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 417 | sce | eg2_1b.sce | V = 1; // voltage supply
R1 = 10; // first resistance in ohms
R2 = 5; //resistance of the second resistor
Vr1 = V * (R1/(R1 + R2)); //voltage across R1
Vr2 = V - Vr1; //voltage across R2
Ir = Vr1/R1; //current flowing through R
disp(Vr1,"voltage across the first resistor (in volts)=")
disp(Vr2,"voltage across the second resistor (in volts)=")
disp(Ir,"current flowing through the resistor (in amps) =") |
9fc023d7032dede8aef55e2a8fafbd153c9b6c19 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1448/CH9/EX9.9.e/E9_9.sce | dc3db6131a4ab2250826adf91f56780d7f8fcd93 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 192 | sce | E9_9.sce | clc
//Initialization of variables
ER=-0.21 //V
EL=-0.6 //V
//calculations
E=ER-EL
lnK=2*E/(25.69*10^-3)
K=exp(lnK)
//results
printf("Equilibrium constant for the reaction = %.1e",K)
|
13e2d1de9df9c4b5d4ca77f2e2a81dd7ada33abe | 449d555969bfd7befe906877abab098c6e63a0e8 | /964/CH25/EX25.12/25_12.sce | ae67f03a06a2fd68e190ed603f67417507bd69b7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 950 | sce | 25_12.sce | //clc()
disp("f(x,y) = 4*exp(0.8*x) - 0.5*y")
//f'(x,y) = 4*exp(0.8*x) - 0.5*y
x = 0:2:2;
y(1) = 2;
h =2;
t = 14.84392;
k1 = 4*exp(0.8*x(1)) - 0.5*y(1);
x1 = x(1) + h/2;
y1 = y(1) + k1*h/2;
k2 = 4*exp(0.8*x1) - 0.5*y1;
x1 = x(1) + h/2;
y1 = y(1) + k2*h/2;
k3 = 4*exp(0.8*x1) - 0.5*y1;
x1 = x(1) + h;
y1 = y(1) + k3*h;
k4 = 4*exp(0.8*x1) - 0.5*y1;
y(2) = y(1) + (k1 + 2*k2 + 2*k3 + k4)*h/6;
e = (t - y(2))/(t);
disp(y(1:2),"y by h = 2 is")
disp(e,"error = ")
h = 1;
x = 0:h:2;
for i=1:3
k1(i) = 4*exp(0.8*x(i)) - 0.5*y(i);
x1 = x(i) + h/2;
y1 = y(i) + k1(i)*h/2;
k2(i) = 4*exp(0.8*x1) - 0.5*y1;
x1 = x(i) + h/2;
y1 = y(i) + k2(i)*h/2;
k3(i) = 4*exp(0.8*x1) - 0.5*y1;
x1 = x(i) + h;
y1 = y(i) + k3(i)*h;
k4(i) = 4*exp(0.8*x1) - 0.5*y1;
y(i+1) = y(i) + (k1(i) + 2*k2(i) + 2*k3(i) + k4(i))*h/6;
end
e = (t - (y(3)))/t;
disp(y(1:3),"y by h = 1 is")
disp(e,"error = ")
|
5f26c48d6b48f74dfd76770753143a2c24710c25 | 1988df91caa448a35bbf274a6d2698fe434571b1 | /tst/decide/ptaut.tst | 05aaa7d870cec90fe3c8923d7d9995f05a3675ae | [] | no_license | namin/GETFOL | bd60e9a2d9f0905c50ff5c0cff4b6bf57a2049e2 | bf42caf61799578eb82e9f17b3342bc2ee638a22 | refs/heads/master | 2021-10-25T08:08:20.142137 | 2021-10-22T16:16:40 | 2021-10-22T16:16:40 | 204,234,318 | 4 | 1 | null | 2019-08-25T02:05:54 | 2019-08-25T02:05:54 | null | UTF-8 | Scilab | false | false | 1,592 | tst | ptaut.tst | COMMENT | |
COMMENT | This is an example of the fact that PTAUT sometimes handles |
COMMENT | dependencies unsatisfactorily. Infact in this case the fact |
COMMENT | produced by PTAUT has the dependecnies (1 2) instead of no |
COMMENT | dependencies (as it should be using the standard ND rules |
COMMENT | |
RESET;
NAMECONTEXT INITIAL;
MAKECONTEXT PTAUT1;
SWITCHCONTEXT PTAUT1;
DECLARE SENTCONST P Q;
ASSUME P imp Q;
ASSUME P;
PTAUT Q BY 1,2;
COMMENT | This is Armando's Example. I think that it doesn't show the |
COMMENT | described situation. Better description examples seem to me |
COMMENT | the following. As we can see no discharge is performed. |
COMMENT | Alessandro Cimatti, 15.1.90. |
MAKECONTEXT PTAUT11;
SWITCHCONTEXT PTAUT11;
DECLARE SENTCONST P Q;
ASSUME P;
ASSUME Q;
PTAUT P imp Q BY 1,2;
PTAUT P BY 1,2;
COMMENT | This is the second set of tests. |
MAKECONTEXT PTAUT2;
SWITCHCONTEXT PTAUT2;
DECLARE SENTCONST A B C;
DECLARE SENTCONST P Q;
PTAUT A imp A;
PTAUT A or not A;
PTAUT wffif A then TRUE else TRUE;
PTAUT wffif (wffif A then TRUE else TRUE) then TRUE else A;
COMMENT | first propositional axiom |
PTAUT A imp ( B imp A );
COMMENT | second propositional axiom |
PTAUT ( A imp ( B imp C ) ) imp ( ( A imp B ) imp ( A imp C ) );
COMMENT | third propositional axiom |
PTAUT ( (not B) imp (not A) ) imp ( ( (not B) imp A ) imp B );
PTAUT (wffif A then B else C) iff ((A and B) or (not A and C));
ASSUME A B C;
AXIOM AX1 : P;
AXIOM AX2 : Q;
PTAUT A and B and ( P or Q ) by 1:^1 AX1 AX2;
PTAUT P or Q by ^1;
|
31572a987860779208d526360a90f96fb76a19b1 | 20253970b7dd99e615215029609de822e2bf855d | /judge/tests/52063/22.tst | b68491deb1cef6e2ea8160139ea3e4e63fbf0ff2 | [] | no_license | B-Rich/CATS | d26d6c85cfc1dbdc78fa16f691adbfccc615df03 | d299e328f9e7498ecd9f58f64069fcd57536db00 | refs/heads/master | 2021-01-01T06:10:11.322262 | 2011-06-21T15:06:06 | 2011-06-21T15:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,242 | tst | 22.tst | 381 667
100
185 350 171
213 191 95
180 451 171
182 342 161
187 478 185
176 520 8
80 374 63
189 484 172
277 522 64
194 316 165
281 508 94
236 142 126
159 120 34
210 251 162
226 202 138
159 242 142
92 119 92
275 262 76
265 421 68
101 385 16
83 431 65
234 405 24
215 461 159
178 105 46
178 412 162
259 550 83
58 203 21
138 542 102
203 460 154
311 236 59
233 181 137
162 155 144
187 344 146
187 125 121
103 460 38
128 373 97
139 369 36
186 235 172
198 317 128
201 462 117
187 393 136
80 194 21
218 214 154
82 565 15
185 395 165
61 417 27
113 132 100
252 197 81
177 355 107
355 197 18
143 185 10
132 551 111
145 452 74
54 614 34
104 601 51
132 383 98
197 559 100
302 371 41
278 561 91
94 284 58
147 458 113
203 439 168
197 238 181
220 400 77
114 268 3
282 500 48
178 267 176
170 516 43
112 458 111
59 370 32
188 367 179
121 579 64
194 382 49
205 114 108
156 502 123
187 395 164
117 132 98
193 442 168
133 449 89
183 261 173
197 397 134
189 463 185
231 328 148
105 286 25
185 241 37
306 104 57
120 193 91
220 519 134
225 266 62
184 215 54
337 614 18
114 80 61
234 475 91
66 189 21
176 210 155
285 210 9
132 431 125
107 183 62
68 260 18
72 245 15
|
770c475c367fbd3a5f135fb6fcabf816ae0ac7f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1475/CH1/EX1.57/Example_1_57.sce | 51125eb3b319d8a9864adb0e441a506c04bc28e4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 707 | sce | Example_1_57.sce | // 1.57 In a bolt factory the machines
clc;
clear;
B1=(25/100);
B2=(35/100);
B3=(40/100);
C= (5/100);
D= (4/100);
E= (2/100);
disp(B3,"Probability of choosing a bolt from Machine M3=",B2,"Probability of choosing a bolt from Machine M2=",B1,"Probability of choosing a bolt from Machine M1=")
disp((B3*D)/((B1*C)+(B2*D)+(B3*E)),"Using Bayes formula, Probability that a defective bolt was manufactured by machine M3 P(B3/A)=",E,"Probability that a bolt is defective, if it comes from machine M3 P(A/B3)=",D,"Probability that a bolt is defective, if it comes from machine M2 P(A/B2)=",C,"Probability that a bolt is defective, if it comes from machine M1 P(A/B1)=");
// Answer in Book is misprinted.
|
c069ccda9421f9d6d86709f2e54c355319798ef5 | 364f7d17c4f024c39c47c99bda284bacb913d470 | /macros/rotationVectorToMatrix.sci | ad5cc41a3925e965e7354fa23468dd129b3aebc6 | [] | no_license | msharsha/FOSSEE-Image-Processing-Toolbox | 6ce7bafc187b99b9e01d1eedcc09a11c3a80370d | f8b16bc3329f9186a3b362f29d9a40d20b48cfd4 | refs/heads/master | 2020-12-02T07:55:57.553927 | 2017-07-10T07:41:21 | 2017-07-10T07:41:21 | 96,747,260 | 0 | 0 | null | 2017-07-10T07:14:37 | 2017-07-10T07:14:37 | null | UTF-8 | Scilab | false | false | 918 | sci | rotationVectorToMatrix.sci | // Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
// Author: Tanmay Chaudhari
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
function [ out ] = rotationVectorToMatrix(vector)
// Returns rotation matrix.
//
// Calling Sequence
// matrix = rotationVectorToMatrix(vector);
//
// Parameters
// matrix: rotation matrix
// vector: 3-D rotation vector
//
// Description
// Converts rotation vector to rotation matrix.
//
// Examples
// vector = pi/4 * [1, 2, 3];
// matrix = rotationVectorToMatrix(vector);
//
// Authors
// Tanmay Chaudhari
out=raw_rotationVectorToMatrix(vector);
endfunction
|
684b69ed5329312d82d5364ca7cd3c9b889bcd80 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2195/CH8/EX8.5.1/ex_8_5_1.sce | c5f15f9046fe369ac9dbb828dd96993f8b8690d2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 330 | sce | ex_8_5_1.sce | //Example 8.5.1:percentage errpr
clc;
clear;
close;
format('v',4)
r=10;//in ohms
f=1;//in MHz
c=65;//capacitance in pF
rsh=0.02;//in ohms
qact=((1/(2*%pi*f*10^6*c*10^-12*r)));//actual q factor
qm=(1/(2*%pi*c*10^-12*f*10^6*(r+rsh)));//measured q factor
per=((qact-qm)/qact)*100;//percentage error
disp(per,"percentage error is")
|
d834b2ff07a3627fb2ee383ac7a066648934cb18 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3811/CH10/EX10.2/Ex10_2.sce | b8d8fe1526a4d8bd457295e7b52ad628a27e2e6f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 389 | sce | Ex10_2.sce | //Book name: Fundamentals of electrical drives by Mohamad A. El- Sharkawi
//chapter 10
//example 10.2
//edition 1
//publishing place:Thomson Learning
clc;
clear;
Vdc=200;//voltage at the dc link in volt
I=25;//motor current in A
R1=0.5;//stator resistance in ohm
Ib=3*I;
Vb=Ib*1.5*R1;//braking voltage in volt
d=1.5*(Vb/Vdc)^2;
mprintf("\nThe duty ratio of the FWM is %f",d)
|
b88d93b6a16230e32f21a08daf03e870fd79fd3e | 727092dff86e9d034d021bbc56565d9336b988aa | /Códigos CN/bissecao.sci | 15b2a80d1afaa645af75a4fd8d7d24c0e3bde131 | [] | no_license | lucasdksan/Numerical-computing | c54b855bd50f2a06b1970086f2da63c28883f287 | a5a5863499bdf46003437140e3fa3123fc4960f8 | refs/heads/master | 2023-06-24T16:13:01.094230 | 2021-07-29T15:57:00 | 2021-07-29T15:57:00 | 278,514,165 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 410 | sci | bissecao.sci | function [x,iter] = bissecao(a,b,e,n)
iter = 0;
x = a;
erro = 1;
while erro > e & iter < n
xant = x;
x = (a+b)/2;
if h(a)*h(x) < 0 then
b = x;
else
a = x;
end
iter = iter + 1;
erro = abs((x-xant)/x);
end
endfunction
function y = h(v)
y= exp(v) - (v+5);
endfunction
|
f326ea8ef8e143b03de35f5d2095b8a4c9147011 | 449d555969bfd7befe906877abab098c6e63a0e8 | /617/CH3/EX3.3/Example3_3.sci | 6c40083d000faabf7727945d239f27c54880af1f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 848 | sci | Example3_3.sci | clear;
clc();
// to calculate the heat loss from pipe
d1=2.375/12; // internal diameter of pipe in ft
t=1/12; // thickness of insulating material in ft
d2=d1+2*t; // external (insulation)diameter of pipe in ft
k=0.0375; // thermal conductivity of insulating material in Btu/hr-ft-F
l=30; // length of pipe in ft
t1=380; // inner surface temperature of insulation
t2=80; // outer surface temperature of insulation
q=2*%pi*k*(t1-t2)/log(d2/d1); // heat loss per unit length
printf("\n Heat loss per linear foot is %.d Btu/hr",q)
qtot=round(q)*l; // heat loss for 30 ft pipe
printf("\n Total heat loss through 30 ft of pipe is %d Btu/hr",qtot)
|
9f0eca0891de7614cf45ffd134c315450f270dc9 | 23573b967e8324d44226379d70559b8f0ea34905 | /code/linprog/TOYCO Dual.sce | 8fdba97e799b4744e869b71bbb4b47958fa60c9e | [] | no_license | FOSSEE/FOT_Examples | 91c8b8e9dc58545604b2c2af41a7e22f702b78f3 | 75947a7aa5a3955fe5a72e09f55bbdc05e3b8751 | refs/heads/master | 2020-03-22T09:00:48.306061 | 2018-07-24T04:49:25 | 2018-07-24T04:49:25 | 139,807,736 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,164 | sce | TOYCO Dual.sce | //This example shows the use of duality theorm to determine the reduced cost associated with the non-negative constraints
//Ref:H.A. TAHA,"OPERATIONS RESEARCH AN INTRODUCTION",PEARSON-Prentice Hall New Jersey 2007,chapter 2.1
//Example:
//TOYCO assembels three types of toys-trains,trucks and cars using three operations. the daily limits on the available times for the three operations are 430,460 and 420 minutes respectively. The revenues per unit of toy train, truck and car are $3.$2 and $5 respectively. The corrosponding times per train and per car are (2,0,4) and (1,2,0) minutes ( a zero time indicates that the operation is not used). determine the . Determine the shadow pricing and how optima changes with resource change.
//The primal model of the above problem is
//maximize z = 3*x1 + 2*x2 + 5*x3
//Subject to
//x1 + 2*x2 + x3 <=430
//3*x1 +2*x3 <=460
//x1 + 4*x2 <=420
//x1,x2,x3 >= 0
// Copyright (C) 2018 - IIT Bombay - FOSSEE
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
// Author:Debasis Maharana
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
//=================================================================================
clc;
Nproducts = 3;
Noperations = 3;
revenue = [3 2 5];
resource = [430 460 420];
Assembly_time = [1 3 1;2 0 4;1 2 0];
mprintf('Data Received')
prodNam = ['Trains','Trucks','cars']';
Operation = ['Operation 1','Operation 2','Operation 3'];
table = [['Products',Operation,'Revenue'];[prodNam,string(Assembly_time),string(revenue)'];['Resource',string(resource),'']];
disp(table)
input('Press enter to proceed ')
//primal model constraints
A = Assembly_time';
b = resource';
//dual constraints
dualA = -A';
[Ncons,Nvars] = size(A);
for i = 1:Nvars
A1(i,i) = 1;
end
dualAeq = [dualA A1];
dualbeq = -revenue';
C = [b;zeros(Nvars,1)];
lb= zeros(1,2*Nvars);
ub = [];
[xopt,fopt,exitflag,output,lambda] = linprog(C,[],[],dualAeq,dualbeq,lb,[]);
clc;
select exitflag
//Display result
case 0 then
mprintf('Optimal Solution Found');
input('Press enter to view results');clc;
mprintf('Revenue Generated %d\n',fopt);
disp(xopt(1:Ncons)','Dual values of the primal constraints');
disp(xopt(Ncons+1:Ncons+Nvars)','Dual values of each primal variable');
for i = 1:Ncons
mprintf('\n A cost decrease of %d will occur in the current objective cost value per unit decrease in resource %d ',xopt(i),i)
end
for i = 1:Nvars
mprintf('\n A cost decrease of %d will occur in the current objective cost value per unit increase in variable x%d ',xopt(Ncons+i),i)
end
case 1 then
mprintf('Primal Infeasible')
case 2 then
mprintf('Dual Infeasible')
case 3
mprintf('Maximum Number of Iterations Exceeded. Output may not be optimal')
case 4
mprintf('Solution Abandoned')
case 5
mprintf('Primal objective limit reached')
else
mprintf('Dual objective limit reached')
end
|
2663f019e45ca3b12481a8cfd7ef03bf3ad37fd0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1370/CH2/EX2.24/example2_24.sce | ae73ab7fe4f37724eb0d0d064e8b5b120317a804 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 360 | sce | example2_24.sce | //example2.24
clc
disp("P=4, Lap hence A=P, N=1150 rpm, E_g=265 V")
n=56*6
disp(n,"Total turns=No. of coils*turns/coil=")
z=2*336
disp(z,"Therefore, Z=2*total turns=")
disp("E_g=(psi*P*N*Z)/(60*A) i.e 265=(psi*4*1150*672)/(60*A)")
s=(265*60*4)/(4*1150*672)
disp(s,"Therefore, psi(in Wb)=")
disp("Number of commutator bars=Number of coils=56")
|
8cb96987f8d7920e217a963fedabca402331f682 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3878/CH25/EX25.4/Ex25_4.sce | 6778ad5bde8886440bd3875c9bfb43f3605ebbb4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 960 | sce | Ex25_4.sce | clear
//
// Variable declaration
T_d1=13// The dry bulb temperature in °C
m_a=0.4// The flow rate of primary air in kg/s
T_win=12// The temperature of water at inlet in °C
T_wout=16// The temperature of water at outlet in °C
H=72// % saturation
T_d2=21// The dry bulb temperature in °C
// From example 25.1
Q_i=14// Internal load in kW
Q_l=1.5// Latent heat gain in kW
C_pw=4.19// The specific heat capacity in kJ/kg.K
C_pa=1.02// The specific heat capacity of air in kJ/kg.K
// Calculation
x_a=0.006744// Moisture in primary air, 13 C DB, 72% sat
x_r=Q_l/(2440*m_a)// Moisture removed in kg/kg
x_rise=x_a+x_r// Moisture in room air will rise to in kg/kg
// which corresponds to a room condition of 21°C dry bulb, 53% saturation
Q_a=m_a*C_pa*(T_d2-T_d1)// Sensible heat removed by primary air in kW
Q_w=Q_i-Q_a// Heat to be removed by water in kW
m_w=Q_w/(C_pw*(T_wout-T_win))// Mass water flow in kg/s
printf("\n \nMass water flow=%0.2f kg/s",m_w)
|
1d5cdae738716173435c68971fb9e9daa2fb51dd | d963a50c09b7380dd7b1b97cd9997e9bd17ea8f3 | /r35/lib/symmetry.tst | 6294ba00d55ff863958e399443b4eed96287a097 | [
"BSD-3-Clause"
] | permissive | reduce-algebra/reduce-historical | 8220e211b116e0e01ff1a38f51917cac9db6069f | e014152729c4d62bb1ce4f5c311a027042a5495a | refs/heads/master | 2023-04-10T22:54:00.796596 | 2021-04-16T08:52:19 | 2021-04-16T08:52:19 | 343,245,204 | 7 | 1 | NOASSERTION | 2021-04-16T08:53:31 | 2021-03-01T00:15:22 | TeX | UTF-8 | Scilab | false | false | 1,430 | tst | symmetry.tst | % test symmetry package
% implementation of theory of linear representations
% for small groups
availablegroups();
printgroup(D4);
generators(D4);
charactertable(D4);
characternr(D4,1);
characternr(D4,2);
characternr(D4,3);
characternr(D4,4);
characternr(D4,5);
irreduciblereptable(D4);
irreduciblerepnr(D4,1);
irreduciblerepnr(D4,2);
irreduciblerepnr(D4,3);
irreduciblerepnr(D4,4);
irreduciblerepnr(D4,5);
rr:=mat((1,0,0,0,0),
(0,0,1,0,0),
(0,0,0,1,0),
(0,0,0,0,1),
(0,1,0,0,0));
sp:=mat((1,0,0,0,0),
(0,0,1,0,0),
(0,1,0,0,0),
(0,0,0,0,1),
(0,0,0,1,0));
rep:={D4,rD4=rr,sD4=sp};
canonicaldecomposition(rep);
character(rep);
symmetrybasis(rep,1);
symmetrybasis(rep,2);
symmetrybasis(rep,3);
symmetrybasis(rep,4);
symmetrybasis(rep,5);
symmetrybasispart(rep,5);
allsymmetrybases(rep);
% Ritz matrix from Stiefel, Faessler p. 200
m:=mat((eps,a,a,a,a),
(a ,d,b,g,b),
(a ,b,d,b,g),
(a ,g,b,d,b),
(a ,b,g,b,d));
diagonalize(m,rep);
% eigenvalues are obvious. Eigenvectors may be obtained with
% the coordinate transformation matrix given by allsymmetrybases.
r1:=mat((0,1,0),
(0,0,1),
(1,0,0));
repC3:={C3,rC3=r1};
mC3:=mat((a,b,c),
(c,a,b),
(b,c,a));
diagonalize(mC3,repC3);
% note difference between real and complex case
on complex;
diagonalize(mC3,repC3);
off complex;
end;
|
e655ef99f0889470c3d2bfcdae918020655e4bed | 449d555969bfd7befe906877abab098c6e63a0e8 | /1820/CH12/EX12.1/Example12_1.sce | d1e7e0bd13c583e23df0dddccfbfe3d3613ecb69 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,609 | sce | Example12_1.sce | // ELECTRIC POWER TRANSMISSION SYSTEM ENGINEERING ANALYSIS AND DESIGN
// TURAN GONEN
// CRC PRESS
// SECOND EDITION
// CHAPTER : 12 : CONSTRUCTION OF OVERHEAD LINES
// EXAMPLE : 12.1 :
clear ; clc ; close ; // Clear the work space and console
// GIVEN DATA
cost_avg = 1500 ; // Average cost on each repair in $
r_0 = 0 ; // No. of times repair required for damage to line
r_1 = 1 ; // No. of times repair required
r_2 = 2 ; // No. of times repair required
r_3 = 3 ; // No. of times repair required
P_r_0 = 0.4 ; // Probability of exactly no. of repairs for r_0
P_r_1 = 0.3 ; // Probability of exactly no. of repairs for r_1
P_r_2 = 0.2 ; // Probability of exactly no. of repairs for r_2
P_r_3 = 0.1 ; // Probability of exactly no. of repairs for r_3
R_0 = 0 ; // No. of times repair required for relocating & rebuilding
R_1 = 1 ; // No. of times repair required
P_R_0 = 0.9 ; // Probability of exactly no. of repairs for R_0
P_R_1 = 0.1 ; // Probability of exactly no. of repairs for R_1
n = 25 ; // useful life in years
i = 20/100 ; // carrying charge rate
p = ((1 + i)^n - 1)/(i*(1+i)^n) ; // p = P/A . Refer page 642
// CALCULATIONS
B = cost_avg*(r_0*P_r_0 + r_1*P_r_1 + r_2*P_r_2 + r_3*P_r_3 - R_0*P_R_0 - R_1*P_R_1)*p ; // Affordable cost of relocating line
// DISPLAY RESULTS
disp("EXAMPLE : 12.1 : SOLUTION :-") ;
printf("\n Affordable cost of relocating line , B = $ %.1f \n",B) ;
printf("\n Since actual relocating & rebuilding of line would cost much more than amount found \n") ;
printf("\n The distribution engineer decides to keep the status quo \n") ;
|
188edd91518f67bf0f4943f79b069e9e7b88d546 | 36c5f94ce0d09d8d1cc8d0f9d79ecccaa78036bd | /Ascended Tracking 90 invincible.sce | 02a21af0252e4ff140c290accab5256ca795464e | [] | no_license | Ahmad6543/Scenarios | cef76bf19d46e86249a6099c01928e4e33db5f20 | 6a4563d241e61a62020f76796762df5ae8817cc8 | refs/heads/master | 2023-03-18T23:30:49.653812 | 2020-09-23T06:26:05 | 2020-09-23T06:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 51,757 | sce | Ascended Tracking 90 invincible.sce | Name=Ascended Tracking 90 invincible
PlayerCharacters=Ascended Tracking
BotCharacters=Long Strafe Bot.bot
IsChallenge=true
Timelimit=30.0
PlayerProfile=Ascended Tracking
AddedBots=Long Strafe Bot.bot
PlayerMaxLives=0
BotMaxLives=0
PlayerTeam=1
BotTeams=2
MapName=a9si.map
MapScale=3.8125
BlockProjectilePredictors=true
BlockCheats=true
InvinciblePlayer=false
InvincibleBots=false
Timescale=1.0
BlockHealthbars=false
TimeRefilledByKill=0.0
ScoreToWin=1000.0
ScorePerDamage=3.0
ScorePerKill=0.0
ScorePerMidairDirect=0.0
ScorePerAnyDirect=0.0
ScorePerTime=0.0
ScoreLossPerDamageTaken=0.0
ScoreLossPerDeath=0.0
ScoreLossPerMidairDirected=0.0
ScoreLossPerAnyDirected=0.0
ScoreMultAccuracy=false
ScoreMultDamageEfficiency=true
ScoreMultKillEfficiency=false
GameTag=Tracking
WeaponHeroTag=
DifficultyTag=2
AuthorsTag=KovaaK
BlockHitMarkers=false
BlockHitSounds=false
BlockMissSounds=true
BlockFCT=true
Description=Track 3 targets at a variety of ranges and angles. The weapon you use is hitscan and does more damage if you are centered on your target.
GameVersion=1.0.8.0
ScorePerDistance=0.0
MBSEnable=false
MBSTime1=0.25
MBSTime2=0.5
MBSTime3=0.75
MBSTime1Mult=1.0
MBSTime2Mult=2.0
MBSTime3Mult=3.0
MBSFBInstead=false
MBSRequireEnemyAlive=false
[Aim Profile]
Name=At Feet
MinReactionTime=0.3
MaxReactionTime=0.4
MinSelfMovementCorrectionTime=0.001
MaxSelfMovementCorrectionTime=0.05
FlickFOV=30.0
FlickSpeed=1.5
FlickError=15.0
TrackSpeed=3.5
TrackError=3.5
MaxTurnAngleFromPadCenter=75.0
MinRecenterTime=0.3
MaxRecenterTime=0.5
OptimalAimFOV=30.0
OuterAimPenalty=1.0
MaxError=40.0
ShootFOV=15.0
VerticalAimOffset=-200.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[Aim Profile]
Name=Low Skill At Feet
MinReactionTime=0.35
MaxReactionTime=0.45
MinSelfMovementCorrectionTime=0.001
MaxSelfMovementCorrectionTime=0.05
FlickFOV=30.0
FlickSpeed=1.5
FlickError=20.0
TrackSpeed=3.0
TrackError=5.0
MaxTurnAngleFromPadCenter=75.0
MinRecenterTime=0.3
MaxRecenterTime=0.5
OptimalAimFOV=30.0
OuterAimPenalty=1.0
MaxError=60.0
ShootFOV=25.0
VerticalAimOffset=-200.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[Aim Profile]
Name=Low Skill
MinReactionTime=0.35
MaxReactionTime=0.45
MinSelfMovementCorrectionTime=0.001
MaxSelfMovementCorrectionTime=0.05
FlickFOV=30.0
FlickSpeed=1.5
FlickError=20.0
TrackSpeed=3.0
TrackError=5.0
MaxTurnAngleFromPadCenter=75.0
MinRecenterTime=0.3
MaxRecenterTime=0.5
OptimalAimFOV=30.0
OuterAimPenalty=1.0
MaxError=60.0
ShootFOV=25.0
VerticalAimOffset=0.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[Aim Profile]
Name=Default
MinReactionTime=0.3
MaxReactionTime=0.4
MinSelfMovementCorrectionTime=0.001
MaxSelfMovementCorrectionTime=0.05
FlickFOV=30.0
FlickSpeed=1.5
FlickError=15.0
TrackSpeed=3.5
TrackError=3.5
MaxTurnAngleFromPadCenter=75.0
MinRecenterTime=0.3
MaxRecenterTime=0.5
OptimalAimFOV=30.0
OuterAimPenalty=1.0
MaxError=40.0
ShootFOV=15.0
VerticalAimOffset=0.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[Bot Profile]
Name=Long Strafe Bot
DodgeProfileNames=Long Strafes
DodgeProfileWeights=1.0
DodgeProfileMaxChangeTime=5.0
DodgeProfileMinChangeTime=1.0
WeaponProfileWeights=1.0;1.0;2.0;1.0;1.0;1.0;1.0;1.0
AimingProfileNames=At Feet;Low Skill At Feet;Low Skill;Default;Default;Default;Default;Default
WeaponSwitchTime=3.0
UseWeapons=false
CharacterProfile=Long Strafer
SeeThroughWalls=false
NoDodging=false
NoAiming=false
[Character Profile]
Name=Ascended Tracking
MaxHealth=500.0
WeaponProfileNames=;ADSable Hitscan Cone;;;;;;
MinRespawnDelay=1.0
MaxRespawnDelay=5.0
StepUpHeight=75.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=80.000
HeadshotOnly=false
DamageKnockbackFactor=4.0
MovementType=Base
MaxSpeed=1300.0
MaxCrouchSpeed=500.0
Acceleration=9000.0
AirAcceleration=16000.0
Friction=4.0
BrakingFrictionFactor=2.0
JumpVelocity=800.0
Gravity=3.0
AirControl=0.25
CanCrouch=false
CanPogoJump=false
CanCrouchInAir=true
CanJumpFromCrouch=false
EnemyBodyColor=X=0.771 Y=0.000 Z=0.000
EnemyHeadColor=X=1.000 Y=1.000 Z=1.000
TeamBodyColor=X=1.000 Y=0.888 Z=0.000
TeamHeadColor=X=1.000 Y=1.000 Z=1.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=0.0
MainBBType=Cylindrical
MainBBHeight=320.0
MainBBRadius=58.0
MainBBHasHead=false
MainBBHeadRadius=45.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=230.0
ProjBBRadius=55.0
ProjBBHasHead=false
ProjBBHeadRadius=45.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.2
JetpackFullFuelTime=4.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=false
JetpackThrust=6000.0
JetpackMaxZVelocity=400.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=;;;
HideWeapon=false
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.5
AllowBufferedJumps=true
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=0.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=2048.0
VerticalSpawnOffset=0.0
SpawnXOffset=0.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
[Character Profile]
Name=Long Strafer
MaxHealth=500.0
WeaponProfileNames=;Alcove_Tracking_Weapon;;;;;;
MinRespawnDelay=0.5
MaxRespawnDelay=5.0
StepUpHeight=75.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=80.000
HeadshotOnly=false
DamageKnockbackFactor=4.0
MovementType=Base
MaxSpeed=1300.0
MaxCrouchSpeed=500.0
Acceleration=9000.0
AirAcceleration=16000.0
Friction=4.0
BrakingFrictionFactor=2.0
JumpVelocity=800.0
Gravity=3.0
AirControl=0.25
CanCrouch=false
CanPogoJump=false
CanCrouchInAir=true
CanJumpFromCrouch=false
EnemyBodyColor=X=0.771 Y=0.000 Z=0.000
EnemyHeadColor=X=1.000 Y=1.000 Z=1.000
TeamBodyColor=X=1.000 Y=0.888 Z=0.000
TeamHeadColor=X=1.000 Y=1.000 Z=1.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=true
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=0.0
MainBBType=Cylindrical
MainBBHeight=320.0
MainBBRadius=58.0
MainBBHasHead=false
MainBBHeadRadius=45.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=230.0
ProjBBRadius=55.0
ProjBBHasHead=false
ProjBBHeadRadius=45.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.2
JetpackFullFuelTime=4.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=false
JetpackThrust=6000.0
JetpackMaxZVelocity=400.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=;;;
HideWeapon=false
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.5
AllowBufferedJumps=true
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=0.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=2048.0
VerticalSpawnOffset=0.0
SpawnXOffset=0.0
SpawnYOffset=0.0
InvertBlockedSpawn=false
[Dodge Profile]
Name=Long Strafes
MaxTargetDistance=100000.0
MinTargetDistance=0.0
ToggleLeftRight=true
ToggleForwardBack=false
MinLRTimeChange=0.5
MaxLRTimeChange=1.5
MinFBTimeChange=0.2
MaxFBTimeChange=0.5
DamageReactionChangesDirection=true
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=50.0
DamageReactionResetTimer=0.5
JumpFrequency=0.2
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Ignore
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.025
BlockedMovementReactionMax=0.05
[Weapon Profile]
Name=ADSable Hitscan Cone
Type=Hitscan
ShotsPerClick=10
DamagePerShot=1.0
KnockbackFactor=0.0
TimeBetweenShots=0.02
Pierces=false
Category=FullyAuto
BurstShotCount=1
TimeBetweenBursts=0.5
ChargeStartDamage=10.0
ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000
ChargeTimeToAutoRelease=2.0
ChargeTimeToCap=1.0
ChargeMoveSpeedModifier=1.0
MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000
MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000
InheritOwnerVelocity=0.0
OriginOffset=X=0.000 Y=0.000 Z=0.000
MaxTravelTime=5.0
MaxHitscanRange=250000.0
GravityScale=1.0
HeadshotCapable=false
HeadshotMultiplier=0.1
MagazineMax=0
AmmoPerShot=1
ReloadTimeFromEmpty=0.5
ReloadTimeFromPartial=0.5
DamageFalloffStartDistance=100000.0
DamageFalloffStopDistance=100000.0
DamageAtMaxRange=10.0
DelayBeforeShot=0.0
HitscanVisualEffect=None
ProjectileGraphic=Ball
VisualLifetime=0.0001
WallParticleEffect=None
HitParticleEffect=None
BounceOffWorld=false
BounceFactor=0.5
BounceCount=0
HomingProjectileAcceleration=0.0
ProjectileEnemyHitRadius=1.0
CanAimDownSight=true
ADSZoomDelay=0.15
ADSZoomSensFactor=0.7
ADSMoveFactor=1.0
ADSStartDelay=0.0
ShootSoundCooldown=0.05
HitSoundCooldown=0.05
HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=0.0
RecoilNegatable=false
DecalType=0
DecalSize=4.0
DelayAfterShooting=0.0
BeamTracksCrosshair=false
AlsoShoot=Alcove Tracking Effect Helper
ADSShoot=
StunDuration=0.0
CircularSpread=false
SpreadStationaryVelocity=300.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.01
HitscanVisualRadius=0.04
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
ProjectileTrail=None
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=false
AimPunchAmount=0.0
AimPunchResetTime=0.2
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=false
MinimumDecelVelocity=0.0
PSRManualNegation=false
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=1
CancelReloadOnKill=false
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=No Scope
ADSFOVOverride=70.0
ADSFOVScale=Clamped Horizontal
ADSAllowUserOverrideFOV=true
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.0
Explosive=false
Radius=500.0
DamageAtCenter=100.0
DamageAtEdge=100.0
SelfDamageMultiplier=0.5
ExplodesOnContactWithEnemy=false
DelayAfterEnemyContact=0.0
ExplodesOnContactWithWorld=false
DelayAfterWorldContact=0.0
ExplodesOnNextAttack=false
DelayAfterSpawn=0.0
BlockedByWorld=false
SpreadSSA=1.0,1.0,-1.0,0.0
SpreadSCA=1.0,1.0,-1.0,0.0
SpreadMSA=1.0,1.0,-1.0,0.0
SpreadMCA=1.0,1.0,-1.0,0.0
SpreadSSH=1.0,1.0,-1.0,0.0
SpreadSCH=1.0,1.0,-1.0,0.0
SpreadMSH=1.0,1.0,-1.0,0.0
SpreadMCH=1.0,1.0,-1.0,0.0
MaxRecoilUp=0.0
MinRecoilUp=0.0
MinRecoilHoriz=0.0
MaxRecoilHoriz=0.0
FirstShotRecoilMult=1.0
RecoilAutoReset=false
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.35
AAMode=0
AAPreferClosestPlayer=false
AAAlpha=0.05
AAMaxSpeed=1.0
AADeadZone=0.0
AAFOV=30.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=true
AABlocksMouse=false
AAOffTimer=0.0
AABackOnTimer=0.0
TriggerBotEnabled=false
TriggerBotDelay=0.0
TriggerBotFOV=1.0
StickyLock=false
HeadLock=false
VerticalOffset=0.0
DisableLockOnKill=false
UsePerShotRecoil=false
PSRLoopStartIndex=0
PSRViewRecoilTracking=0.45
PSRCapUp=9.0
PSRCapRight=4.0
PSRCapLeft=4.0
PSRTimeToPeak=0.175
PSRResetDegreesPerSec=40.0
UsePerBulletSpread=true
PBS0=0.0,0.0
PBS1=0.0,0.0
PBS2=0.5,45.0
PBS3=0.5,90.0
PBS4=0.5,135.0
PBS5=0.5,180.0
PBS6=0.5,225.0
PBS7=0.5,270.0
PBS8=0.5,315.0
PBS9=0.5,0.0
[Weapon Profile]
Name=Alcove_Tracking_Weapon
Type=Hitscan
ShotsPerClick=10
DamagePerShot=1.0
KnockbackFactor=0.0
TimeBetweenShots=0.02
Pierces=false
Category=FullyAuto
BurstShotCount=1
TimeBetweenBursts=0.5
ChargeStartDamage=10.0
ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000
ChargeTimeToAutoRelease=2.0
ChargeTimeToCap=1.0
ChargeMoveSpeedModifier=1.0
MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000
MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000
InheritOwnerVelocity=0.0
OriginOffset=X=0.000 Y=0.000 Z=0.000
MaxTravelTime=5.0
MaxHitscanRange=250000.0
GravityScale=1.0
HeadshotCapable=false
HeadshotMultiplier=0.1
MagazineMax=0
AmmoPerShot=1
ReloadTimeFromEmpty=0.5
ReloadTimeFromPartial=0.5
DamageFalloffStartDistance=100000.0
DamageFalloffStopDistance=100000.0
DamageAtMaxRange=10.0
DelayBeforeShot=0.0
HitscanVisualEffect=None
ProjectileGraphic=Ball
VisualLifetime=0.0001
WallParticleEffect=None
HitParticleEffect=None
BounceOffWorld=false
BounceFactor=0.5
BounceCount=0
HomingProjectileAcceleration=0.0
ProjectileEnemyHitRadius=1.0
CanAimDownSight=false
ADSZoomDelay=0.0
ADSZoomSensFactor=0.7
ADSMoveFactor=1.0
ADSStartDelay=0.0
ShootSoundCooldown=0.05
HitSoundCooldown=0.05
HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=0.0
RecoilNegatable=false
DecalType=0
DecalSize=4.0
DelayAfterShooting=0.0
BeamTracksCrosshair=false
AlsoShoot=Alcove Tracking Effect Helper
ADSShoot=
StunDuration=0.0
CircularSpread=false
SpreadStationaryVelocity=300.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.01
HitscanVisualRadius=0.04
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
ProjectileTrail=None
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=false
AimPunchAmount=0.0
AimPunchResetTime=0.2
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=false
MinimumDecelVelocity=0.0
PSRManualNegation=false
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=1
CancelReloadOnKill=false
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=No Scope
ADSFOVOverride=103.0
ADSFOVScale=Clamped Horizontal
ADSAllowUserOverrideFOV=false
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.0
Explosive=false
Radius=500.0
DamageAtCenter=100.0
DamageAtEdge=100.0
SelfDamageMultiplier=0.5
ExplodesOnContactWithEnemy=false
DelayAfterEnemyContact=0.0
ExplodesOnContactWithWorld=false
DelayAfterWorldContact=0.0
ExplodesOnNextAttack=false
DelayAfterSpawn=0.0
BlockedByWorld=false
SpreadSSA=1.0,1.0,-1.0,5.0
SpreadSCA=1.0,1.0,-1.0,5.0
SpreadMSA=1.0,1.0,-1.0,5.0
SpreadMCA=1.0,1.0,-1.0,5.0
SpreadSSH=1.0,1.0,-1.0,0.0
SpreadSCH=1.0,1.0,-1.0,5.0
SpreadMSH=1.0,1.0,-1.0,0.0
SpreadMCH=1.0,1.0,-1.0,5.0
MaxRecoilUp=0.0
MinRecoilUp=0.0
MinRecoilHoriz=0.0
MaxRecoilHoriz=0.0
FirstShotRecoilMult=1.0
RecoilAutoReset=false
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.35
AAMode=0
AAPreferClosestPlayer=false
AAAlpha=0.05
AAMaxSpeed=1.0
AADeadZone=0.0
AAFOV=30.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=true
AABlocksMouse=false
AAOffTimer=0.0
AABackOnTimer=0.0
TriggerBotEnabled=false
TriggerBotDelay=0.0
TriggerBotFOV=1.0
StickyLock=false
HeadLock=false
VerticalOffset=0.0
DisableLockOnKill=false
UsePerShotRecoil=false
PSRLoopStartIndex=0
PSRViewRecoilTracking=0.45
PSRCapUp=9.0
PSRCapRight=4.0
PSRCapLeft=4.0
PSRTimeToPeak=0.175
PSRResetDegreesPerSec=40.0
UsePerBulletSpread=true
PBS0=0.0,0.0
PBS1=0.0,0.0
PBS2=0.5,45.0
PBS3=0.5,90.0
PBS4=0.5,135.0
PBS5=0.5,180.0
PBS6=0.5,225.0
PBS7=0.5,270.0
PBS8=0.5,315.0
PBS9=0.5,0.0
[Weapon Profile]
Name=Alcove Tracking Effect Helper
Type=Projectile
ShotsPerClick=1
DamagePerShot=0.0
KnockbackFactor=0.0
TimeBetweenShots=0.12
Pierces=false
Category=FullyAuto
BurstShotCount=1
TimeBetweenBursts=0.5
ChargeStartDamage=10.0
ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000
ChargeTimeToAutoRelease=2.0
ChargeTimeToCap=1.0
ChargeMoveSpeedModifier=1.0
MuzzleVelocityMin=X=100000.000 Y=-1000.000 Z=-1000.000
MuzzleVelocityMax=X=100000.000 Y=1000.000 Z=1000.000
InheritOwnerVelocity=1.0
OriginOffset=X=0.000 Y=0.000 Z=0.000
MaxTravelTime=0.025
MaxHitscanRange=100000.0
GravityScale=0.0
HeadshotCapable=false
HeadshotMultiplier=0.1
MagazineMax=0
AmmoPerShot=1
ReloadTimeFromEmpty=0.5
ReloadTimeFromPartial=0.5
DamageFalloffStartDistance=100000.0
DamageFalloffStopDistance=100000.0
DamageAtMaxRange=0.0
DelayBeforeShot=0.0
HitscanVisualEffect=Tracer
ProjectileGraphic=Ball
VisualLifetime=0.1
WallParticleEffect=Gunshot
HitParticleEffect=Blood
BounceOffWorld=false
BounceFactor=0.5
BounceCount=0
HomingProjectileAcceleration=0.0
ProjectileEnemyHitRadius=0.1
CanAimDownSight=false
ADSZoomDelay=0.0
ADSZoomSensFactor=0.7
ADSMoveFactor=1.0
ADSStartDelay=0.0
ShootSoundCooldown=999.0
HitSoundCooldown=999.0
HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=0.0
RecoilNegatable=false
DecalType=0
DecalSize=15.0
DelayAfterShooting=0.0
BeamTracksCrosshair=false
AlsoShoot=
ADSShoot=
StunDuration=0.0
CircularSpread=true
SpreadStationaryVelocity=300.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.0
HitscanVisualRadius=2.0
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
ProjectileTrail=None
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=false
AimPunchAmount=0.0
AimPunchResetTime=0.2
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=false
MinimumDecelVelocity=0.0
PSRManualNegation=false
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=1
CancelReloadOnKill=false
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=No Scope
ADSFOVOverride=103.0
ADSFOVScale=Clamped Horizontal
ADSAllowUserOverrideFOV=false
IsBurstWeapon=false
ForceFirstPersonInADS=true
ZoomBlockedInAir=false
ADSCameraOffsetX=0.0
ADSCameraOffsetY=0.0
ADSCameraOffsetZ=0.0
QuickSwitchTime=0.0
Explosive=false
Radius=500.0
DamageAtCenter=100.0
DamageAtEdge=100.0
SelfDamageMultiplier=0.5
ExplodesOnContactWithEnemy=false
DelayAfterEnemyContact=0.0
ExplodesOnContactWithWorld=false
DelayAfterWorldContact=0.0
ExplodesOnNextAttack=false
DelayAfterSpawn=0.0
BlockedByWorld=false
SpreadSSA=1.0,1.0,-1.0,5.0
SpreadSCA=1.0,1.0,-1.0,5.0
SpreadMSA=1.0,1.0,-1.0,5.0
SpreadMCA=1.0,1.0,-1.0,5.0
SpreadSSH=4.0,0.5,2.0,8.0
SpreadSCH=1.0,1.0,-1.0,5.0
SpreadMSH=4.0,0.5,2.0,8.0
SpreadMCH=1.0,1.0,-1.0,5.0
MaxRecoilUp=0.0
MinRecoilUp=0.0
MinRecoilHoriz=0.0
MaxRecoilHoriz=0.0
FirstShotRecoilMult=1.0
RecoilAutoReset=false
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.35
AAMode=0
AAPreferClosestPlayer=false
AAAlpha=0.05
AAMaxSpeed=1.0
AADeadZone=0.0
AAFOV=30.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=true
AABlocksMouse=false
AAOffTimer=0.0
AABackOnTimer=0.0
TriggerBotEnabled=false
TriggerBotDelay=0.0
TriggerBotFOV=1.0
StickyLock=false
HeadLock=false
VerticalOffset=0.0
DisableLockOnKill=false
UsePerShotRecoil=false
PSRLoopStartIndex=0
PSRViewRecoilTracking=0.45
PSRCapUp=9.0
PSRCapRight=4.0
PSRCapLeft=4.0
PSRTimeToPeak=0.175
PSRResetDegreesPerSec=40.0
UsePerBulletSpread=false
PBS0=0.0,0.0
[Map Data]
reflex map version 8
prefab targetbox
entity
type WorldSpawn
String32 targetGameOverCamera end
UInt8 playersMin 1
UInt8 playersMax 16
brush
vertices
-128.000000 64.000000 -255.999878
-128.000000 64.000000 -239.999878
128.000000 64.000000 -239.999878
128.000000 64.000000 -255.999878
-128.000000 -64.000000 -255.999878
-128.000000 -64.000000 -239.999878
128.000000 -64.000000 -239.999878
128.000000 -64.000000 -255.999878
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 structural/dev/dev_grey128
brush
vertices
-128.000000 64.000000 240.000137
-128.000000 64.000000 256.000122
128.000000 64.000000 256.000122
128.000000 64.000000 240.000137
-128.000000 -64.000000 240.000137
-128.000000 -64.000000 256.000122
128.000000 -64.000000 256.000122
128.000000 -64.000000 240.000137
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 structural/dev/dev_grey128
brush
vertices
112.000000 -64.000000 -239.999878
112.000000 -64.000000 -207.999878
128.000000 -64.000000 -207.999878
128.000000 -64.000000 -239.999878
112.000000 -80.000000 -239.999878
112.000000 -80.000000 -207.999878
128.000000 -80.000000 -207.999878
128.000000 -80.000000 -239.999878
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-112.000000 -64.000000 -239.999878
-112.000000 -64.000000 240.000137
112.000000 -64.000000 240.000137
112.000000 -64.000000 -239.999878
-112.000000 -80.000000 -239.999878
-112.000000 -80.000000 240.000137
112.000000 -80.000000 240.000137
112.000000 -80.000000 -239.999878
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
-128.000000 64.000000 -239.999878
-128.000000 64.000000 240.000137
-112.000000 64.000000 240.000137
-112.000000 64.000000 -239.999878
-128.000000 -64.000000 -239.999878
-128.000000 -64.000000 240.000137
-112.000000 -64.000000 240.000137
-112.000000 -64.000000 -239.999878
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
112.000000 64.000000 -239.999878
112.000000 64.000000 240.000137
128.000000 64.000000 240.000137
128.000000 64.000000 -239.999878
112.000000 -64.000000 -239.999878
112.000000 -64.000000 240.000137
128.000000 -64.000000 240.000137
128.000000 -64.000000 -239.999878
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
112.000000 -64.000000 208.000137
112.000000 -64.000000 240.000137
128.000000 -64.000000 240.000137
128.000000 -64.000000 208.000137
112.000000 -80.000000 208.000137
112.000000 -80.000000 240.000137
128.000000 -80.000000 240.000137
128.000000 -80.000000 208.000137
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-128.000000 -64.000000 240.000137
-128.000000 -64.000000 256.000122
128.000000 -64.000000 256.000122
128.000000 -64.000000 240.000137
-128.000000 -80.000000 240.000137
-128.000000 -80.000000 256.000122
128.000000 -80.000000 256.000122
128.000000 -80.000000 240.000137
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-128.000000 -64.000000 208.000137
-128.000000 -64.000000 240.000137
-112.000000 -64.000000 240.000137
-112.000000 -64.000000 208.000137
-128.000000 -80.000000 208.000137
-128.000000 -80.000000 240.000137
-112.000000 -80.000000 240.000137
-112.000000 -80.000000 208.000137
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-128.000000 -64.000000 -239.999878
-128.000000 -64.000000 -207.999878
-112.000000 -64.000000 -207.999878
-112.000000 -64.000000 -239.999878
-128.000000 -80.000000 -239.999878
-128.000000 -80.000000 -207.999878
-112.000000 -80.000000 -207.999878
-112.000000 -80.000000 -239.999878
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-128.000000 -64.000000 -255.999878
-128.000000 -64.000000 -239.999878
128.000000 -64.000000 -239.999878
128.000000 -64.000000 -255.999878
-128.000000 -80.000000 -255.999878
-128.000000 -80.000000 -239.999878
128.000000 -80.000000 -239.999878
128.000000 -80.000000 -255.999878
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-112.000000 80.000000 -239.999878
-112.000000 80.000000 240.000137
112.000000 80.000000 240.000137
112.000000 80.000000 -239.999878
-112.000000 64.000000 -239.999878
-112.000000 64.000000 240.000137
112.000000 64.000000 240.000137
112.000000 64.000000 -239.999878
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
entity
type PlayerSpawn
Vector3 position -16.000000 -64.000000 128.000137
Vector3 angles 90.000000 -0.000000 0.000000
Bool8 teamA 0
entity
type PlayerSpawn
Vector3 position -16.000000 -64.000000 0.000137
Vector3 angles 90.000000 -0.000000 0.000000
Bool8 teamA 0
entity
type PlayerSpawn
Vector3 position -16.000000 -64.000000 -127.999863
Vector3 angles 90.000000 -0.000000 0.000000
Bool8 teamA 0
global
entity
type WorldSpawn
String32 targetGameOverCamera end
UInt8 playersMin 1
UInt8 playersMax 16
brush
vertices
-240.000000 0.000000 192.000000
272.000000 0.000000 192.000000
272.000000 0.000000 -320.000000
-240.000000 0.000000 -320.000000
-240.000000 -64.000000 192.000000
272.000000 -64.000000 192.000000
272.000000 -64.000000 -320.000000
-240.000000 -64.000000 -320.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
-240.000000 208.000000 192.000000
272.000000 208.000000 192.000000
272.000000 208.000000 -304.000000
-240.000000 208.000000 -304.000000
-240.000000 192.000000 192.000000
272.000000 192.000000 192.000000
272.000000 192.000000 -304.000000
-240.000000 192.000000 -304.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
-223.999878 0.000000 960.000000
-191.999878 0.000000 960.000000
-191.999878 0.000000 944.000000
-223.999878 0.000000 944.000000
-223.999878 -16.000000 960.000000
-191.999878 -16.000000 960.000000
-191.999878 -16.000000 944.000000
-223.999878 -16.000000 944.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-223.999878 0.000000 720.000000
-191.999878 0.000000 720.000000
-191.999878 0.000000 688.000000
-223.999878 0.000000 688.000000
-223.999878 -16.000000 720.000000
-191.999878 -16.000000 720.000000
-191.999878 -16.000000 688.000000
-223.999878 -16.000000 688.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-223.999878 0.000000 464.000000
-191.999878 0.000000 464.000000
-191.999878 0.000000 432.000000
-223.999878 0.000000 432.000000
-223.999878 -16.000000 464.000000
-191.999878 -16.000000 464.000000
-191.999878 -16.000000 432.000000
-223.999878 -16.000000 432.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-223.999878 0.000000 208.000000
-191.999878 0.000000 208.000000
-191.999878 0.000000 192.000000
-223.999878 0.000000 192.000000
-223.999878 -16.000000 208.000000
-191.999878 -16.000000 208.000000
-191.999878 -16.000000 192.000000
-223.999878 -16.000000 192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
224.000244 0.000000 960.000000
256.000244 0.000000 960.000000
256.000244 0.000000 944.000000
224.000244 0.000000 944.000000
224.000244 -16.000000 960.000000
256.000244 -16.000000 960.000000
256.000244 -16.000000 944.000000
224.000244 -16.000000 944.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
224.000122 0.000000 720.000000
256.000122 0.000000 720.000000
256.000122 0.000000 688.000000
224.000122 0.000000 688.000000
224.000122 -16.000000 720.000000
256.000122 -16.000000 720.000000
256.000122 -16.000000 688.000000
224.000122 -16.000000 688.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
224.000122 0.000000 464.000000
256.000122 0.000000 464.000000
256.000122 0.000000 432.000000
224.000122 0.000000 432.000000
224.000122 -16.000000 464.000000
256.000122 -16.000000 464.000000
256.000122 -16.000000 432.000000
224.000122 -16.000000 432.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
224.000122 0.000000 208.000000
256.000122 0.000000 208.000000
256.000122 0.000000 192.000000
224.000122 0.000000 192.000000
224.000122 -16.000000 208.000000
256.000122 -16.000000 208.000000
256.000122 -16.000000 192.000000
224.000122 -16.000000 192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
256.000000 128.000000 976.000000
256.000000 128.000000 960.000000
-224.000000 128.000000 960.000000
-224.000000 128.000000 976.000000
256.000000 -16.000000 976.000000
256.000000 -16.000000 960.000000
-224.000000 -16.000000 960.000000
-224.000000 -16.000000 976.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000
brush
vertices
-239.999878 128.000000 960.000000
-223.999878 128.000000 960.000000
-223.999878 128.000000 192.000000
-239.999878 128.000000 192.000000
-239.999878 -16.000000 960.000000
-223.999878 -16.000000 960.000000
-223.999878 -16.000000 192.000000
-239.999878 -16.000000 192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 structural/dev/dev_grey128
brush
vertices
256.000000 -160.000000 704.000000
256.000000 -160.000000 192.000000
-224.000000 -160.000000 192.000000
-224.000000 -160.000000 704.000000
256.000000 -176.000000 704.000000
256.000000 -176.000000 192.000000
-224.000000 -176.000000 192.000000
-224.000000 -176.000000 704.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
256.000000 0.000000 960.000000
256.000000 0.000000 192.000000
-224.000000 0.000000 192.000000
-224.000000 0.000000 960.000000
256.000000 -16.000000 960.000000
256.000000 -16.000000 192.000000
-224.000000 -16.000000 192.000000
-224.000000 -16.000000 960.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
256.000000 144.000000 720.000000
256.000000 144.000000 688.000000
-224.000000 144.000000 688.000000
-224.000000 144.000000 720.000000
256.000000 -16.000000 720.000000
256.000000 -16.000000 688.000000
-224.000000 -16.000000 688.000000
-224.000000 -16.000000 720.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
-223.999878 448.000000 208.000000
256.000122 448.000000 208.000000
256.000122 448.000000 192.000000
-223.999878 448.000000 192.000000
-223.999878 -336.000000 208.000000
256.000122 -336.000000 208.000000
256.000122 -336.000000 192.000000
-223.999878 -336.000000 192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
256.000000 -320.000000 448.000000
256.000000 -320.000000 192.000000
-224.000000 -320.000000 192.000000
-224.000000 -320.000000 448.000000
256.000000 -336.000000 448.000000
256.000000 -336.000000 192.000000
-224.000000 -336.000000 192.000000
-224.000000 -336.000000 448.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
256.000000 304.000000 464.000000
256.000000 304.000000 432.000000
-224.000000 304.000000 432.000000
-224.000000 304.000000 464.000000
256.000000 -176.000000 464.000000
256.000000 -176.000000 432.000000
-224.000000 -176.000000 432.000000
-224.000000 -176.000000 464.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
256.000000 160.000000 704.000000
256.000000 160.000000 192.000000
-224.000000 160.000000 192.000000
-224.000000 160.000000 704.000000
256.000000 144.000000 704.000000
256.000000 144.000000 192.000000
-224.000000 144.000000 192.000000
-224.000000 144.000000 704.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
256.000000 320.000000 448.000000
256.000000 320.000000 192.000000
-224.000000 320.000000 192.000000
-224.000000 320.000000 448.000000
256.000000 304.000000 448.000000
256.000000 304.000000 192.000000
-224.000000 304.000000 192.000000
-224.000000 304.000000 448.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
256.000244 128.000000 960.000000
272.000122 128.000000 960.000000
272.000122 128.000000 192.000000
256.000122 128.000000 192.000000
256.000244 -15.999999 960.000000
272.000122 -15.999999 960.000000
272.000122 -15.999999 192.000000
256.000122 -15.999999 192.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 structural/dev/dev_grey128
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 structural/dev/dev_grey128
brush
vertices
-240.000000 192.000000 -304.000000
272.000000 192.000000 -304.000000
272.000000 192.000000 -320.000000
-240.000000 192.000000 -320.000000
-240.000000 0.000000 -304.000000
272.000000 0.000000 -304.000000
272.000000 0.000000 -320.000000
-240.000000 0.000000 -320.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
272.000000 192.000000 192.000000
288.000000 192.000000 192.000000
288.000000 192.000000 -304.000000
272.000000 192.000000 -304.000000
272.000000 0.000000 192.000000
288.000000 0.000000 192.000000
288.000000 0.000000 -304.000000
272.000000 0.000000 -304.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
brush
vertices
-256.000000 192.000000 192.000000
-240.000000 192.000000 192.000000
-240.000000 192.000000 -304.000000
-256.000000 192.000000 -304.000000
-256.000000 0.000000 192.000000
-240.000000 0.000000 192.000000
-240.000000 0.000000 -304.000000
-256.000000 0.000000 -304.000000
faces
0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip
0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip
entity
type PlayerSpawn
Vector3 position 16.000000 0.000000 -64.000000
Bool8 teamB 0
entity
type CameraPath
UInt32 entityIdAttachedTo 149
UInt8 posLerp 2
UInt8 angleLerp 2
entity
type PlayerSpawn
Vector3 position 144.000122 0.000000 336.000000
Vector3 angles 180.000000 -0.000000 0.000000
Bool8 teamA 0
entity
type PlayerSpawn
Vector3 position 16.000122 0.000000 336.000000
Vector3 angles 180.000000 -0.000000 0.000000
Bool8 teamA 0
entity
type PlayerSpawn
Vector3 position -111.999878 0.000000 336.000000
Vector3 angles 180.000000 -0.000000 0.000000
Bool8 teamA 0
entity
type PlayerSpawn
Vector3 position 144.000122 0.000000 592.000000
Vector3 angles 180.000000 -0.000000 0.000000
Bool8 teamA 0
entity
type PlayerSpawn
Vector3 position 16.000122 0.000000 592.000000
Vector3 angles 180.000000 -0.000000 0.000000
Bool8 teamA 0
entity
type PlayerSpawn
Vector3 position -111.999878 0.000000 592.000000
Vector3 angles 180.000000 -0.000000 0.000000
Bool8 teamA 0
entity
type PlayerSpawn
Vector3 position 16.000122 0.000000 848.000000
Vector3 angles 180.000000 -0.000000 0.000000
Bool8 teamA 0
|
75dd041d5380e3edb886924fb82bb2f0207cf970 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1328/CH17/EX17.3/17_3.sce | 6b8d77ef096c3de4f85edc4d4926ce0ca86794f7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 308 | sce | 17_3.sce | printf("\t example 17.3 \n");
printf("\t approximate values are mentioned in the book \n");
// Since the loading is based on 1 ft2 of ground area
nd=1.7;
L=1302;
Kxa=115;
Z=(nd*L)/(Kxa);
printf("\t Z is : %.1f ft \n",Z);
HDU=(Z/nd);
printf("\t height of diffusion unit : %.1ff ft \n",HDU);
// end
|
a6c6edb6d7227b22243c4fc5158d2507c2a8acfb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1268/CH4/EX4.12/4_12.sce | de3c1e4b5d67d1e661ea613a3448eaa4ee90dc5c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 340 | sce | 4_12.sce | clc;
disp("Example 4.12")
mplus= 5 // laminar sublayer thickness in dimensionless form
d= 0.05 // diameter in m
density= 1000 // in kg/m^3
mu= 0.001 // viscosity in kg/ms
nu = mu/density;
U=1 // velocity in m/s
Re=density*U*d/mew
f= 0.0791/(Re^0.25)
m= (mplus)*nu/(U*((f/2)^0.5))
disp("Laminar sublayer thickness is ")
disp(m)
|
4a148327701c3a23956705a45d20ec1a93d9e1a0 | 0c5d5d2faf2e20464f1d35715b838f50a335ddf5 | /tests/remove.tst | e4e44d14bb649a07119fa033e70ecbef5efe7ba4 | [] | no_license | lmartel-school/cs244b-lab1 | cb0ed7fed5ab53c7673b7ae18cfb99e9f4c23a55 | f855aa381796cd82c40b0863e39eb41bff5ec820 | refs/heads/master | 2021-01-04T22:33:18.154316 | 2014-10-19T21:36:41 | 2014-10-19T21:36:41 | 25,385,346 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 119 | tst | remove.tst | remove BADPATH
create /test 123
remove /test
remove /test
remove /foo
create /test abc
create /test/b def
remove /test
|
c45ba79883f457c56f627e9d8054e4a8ea0b8a6b | 60942a0ce55fe4c61fa78aebb849b3a352611edd | /higher order/third order higher V.sci | 3c9b5cfa89eee5249ad36e7076f4f4a59f0b55ee | [] | no_license | lalithDupathi/EIL-lab-IITB | 7a7d3232368546b5cbc5d3aa32bf5d74fbc91c98 | cac01a81a92e2d8444996a710325634a20b4b942 | refs/heads/master | 2022-08-22T23:42:48.202385 | 2017-10-17T16:27:26 | 2017-10-17T16:27:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 382 | sci | third order higher V.sci |
V.a3=input('coeff of third differential of y')
V.a2=input('coeff of second differential of y')
V.a1=input('coeff of first differential of y')
V.a0=input('coeff of zeroth differential of y')
V.b3=input('coeff of third differential of x')
V.b2=input('coeff of second differential of x')
V.b1=input('coeff of first differential of x')
V.b0=input('coeff of zeroth differential of x')
|
14d02de8c45195263f17aaee9fbacedb974e7a1a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2144/CH3/EX3.13/ex3_13.sce | 16c53f7b1f1761c3c4a5d7a67b35277f796013b2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 592 | sce | ex3_13.sce | // Exa 3.13
clc;
clear;
close;
// Given data
T1 = 40;// in degree C
T1 = T1 +273;// in K
P2 = 50;// in bar
P1 = 1;// in bar
Gamma = 1.4;
C_v = 0.718;// in kJ/kg-K
SpeHeat = 1.005;// in kJ/kg-K
HeatSupply= 125.6;// in kJ/kg
T2 = T1 * (P2/P1)^((Gamma-1)/Gamma);// in K
C_p = C_v * (T2-T1);// in kJ/kg
del_T = HeatSupply/SpeHeat;// in degree C
del_U = C_v * del_T;// in kJ/kg
disp(del_U,"Change in internal energy in kJ/kg is");
T3 = T2 + del_T;// in K
del_Phi = SpeHeat * log(T3/T2);// in kJ/kg-K
disp(del_Phi,"Change in entropy during constant pressure in kJ/kg-K is");
|
05197d70b620cdc2f29151f6c48f30842773c49c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1226/CH16/EX16.5/EX16_5.sce | 850a06dbb9ecc86f337ffa3195c60bbbcc5ac5a0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,708 | sce | EX16_5.sce | clc;funcprot(0);//EXAMPLE 16.5
// Initialisation of Variables
t1=298;.................//Temperature of the air while entering the compressor in Kelvin
qrej=1210;..............//Amount of heat rejected in cooler in kJ/min
t2=273+65;...............//Temperature of the air leaving the cooler in Kelvin
p2=1.75;.................//Pressure of the air leaving the cooler in bar
n=6;.....................//No of cylinders
d=0.1;...................//Bore of the cylinder in m
l=0.11;...................//Stroke of the cylinder in m
etaV=0.72;................//volumetric efficiency
N=2000;...............//Engine rpm
Tout=150;..................//Torque Output in Nm
etaM=0.8;..................//Mechanical efficiency
R=287;.......................//Gas constant for air in J/kgK
cp=1.005;...................//Specific capacity of air
//calculations
BP=(2*%pi*N*Tout)/(60*1000);...........//Brake power in kW
IP=BP/etaM;..........//Input Power in kW
Vc=(%pi/4)*d*d*l;...................//Cylinder Volume in m^3
pmi=(6*IP)/(n*Vc*(N/2)*10);................//Indicated mean effective pressure
disp(pmi,"The indicated mean effective pressure (in bar):")
Vs=Vc*6*(N/2);.........................//Engine Swept Volume in m^3/min
Vaa=Vs*etaV;..........................//Aspirated volume of air into engine in m^3/min
maa=(p2*10^5*Vaa)/(R*t2);..............//Aspirated air mass flow into the engine in kg/min
disp(maa,"The total aspirated air mass flow into the engine (in kg/min):")
t2a=((((BP/cp)/(qrej/(60*cp)))*t2)-t1)/(((BP/cp)/(qrej/(60*cp)))-1);
mc=((BP/cp)/(t2a-t1))*60;........................//Air flow into the compressor in kg/min
disp(mc,"Air flow into the compressor in kg/min:")
|
68b547e557b07077b3f1ec193b7182df5b1b64d9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /503/CH8/EX8.6/ch8_6.sci | 212854683c1bc47a5763afa36b9869730891eb5d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 208 | sci | ch8_6.sci | //to calculate the excitation emf
clc;
Vt=3300;
Xs=18/3;
pf=.707;
P=800*1000;
Ia=P/(sqrt(3)*Vt*pf);
a=Ia*Xs/sqrt(2);
b=Vt/sqrt(3);
Ef=sqrt((a+b)^2+a^2)*sqrt(3);
disp(Ef,'excitation emf(V)(line)'); |
5cf7fdf4f4e6a54dce6a761999f1043d4014075d | 449d555969bfd7befe906877abab098c6e63a0e8 | /98/CH9/EX9.9/example9_9.sce | 5d3ad221886a609fbfca67aad6c3f81619d0b0d6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 754 | sce | example9_9.sce | //Chapter 9
//Example 9_9
//Page 218
clear;clc;
r=5.3;
dab=8;
dbc=dab;
dcad=dab;
dadbd=dab;
dbdcd=dab;
gmr=r*0.7788/100;
Ds1=(gmr*3*dab*3*dab*gmr)^(1/4);
Ds2=Ds1;
Ds3=Ds1;
Ds=(Ds1*Ds2*Ds3)^(1/3);
DAB=(dab*4*dab*2*dab*dab)^(1/4);
DCA=(2*dab*1*dab*5*dab*2*dab)^(1/4);
DBC=DAB;
Dm=(DAB*DBC*DCA)^(1/3);
l_ph_m=1e-7*2*log(Dm/Ds);
printf("GMR of conductor = %.4f cm \n\n", gmr);
printf("Ds1 = %.3f m \n", Ds1);
printf("Ds2 = %.3f m \n", Ds2);
printf("Ds3 = %.3f m \n", Ds3);
printf("Equivalent self GMD of one phase = %.3f m \n\n", Ds);
printf("DAB = %.3f m \n", DAB);
printf("DBC = %.3f m \n", DBC);
printf("DCA = %.3f m \n", DCA);
printf("Equivalent mutual GMD = %.3f m \n\n", Dm);
printf("Inductance/phase/m = %.3f*10^-7 mH \n\n", l_ph_m*1e7);
|
9f68f9b0ea5967b253e52affdcd44bce9b699ea4 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/CF8.prev.tst | 05f3d24f16bfa12e64435d03c80d15c9278c1759 | [
"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 | 99 | tst | CF8.prev.tst | 0; 1/1, 1/2, 1/10, 1/2, 1/1, 1/20, 1/1, 1/2, 1/10, 1/2, 1/1, 1/20, 1/1, 1/2, 1/10, 1/2
0.677078252
|
b4ac53268cc2baa2b731d13fc840121d77f7eb3e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1538/CH11/EX11.2/Ex11_2.sce | 8e34ed145a04792e1fdd7a97ffb3abe446397af2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 281 | sce | Ex11_2.sce | //exaplme-11.2
//page no-351
//given
//shera stress
tau=715*10^6 //Pa
//shear modulus
G=25*10^9 //Pa
//atomic radius
b=4.05*10^-10 //m
//as we know that
//tau=G*b/l
//so
l=G*b/tau //m
printf ("the length of frank- read source in aluminium crystal is %.10f m",l)
|
d13952c952f9134cbfb9992cf9a853f1aaced237 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2444/CH5/EX5.9/ex5_9.sce | 5d1891ec3af81caaa46ec2cbae43f4a84b075913 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,123 | sce | ex5_9.sce | // Exa 5.9
clc;
clear;
close;
format('v',6)
// Given data
V_CC = 12;// in V
V_EE = V_CC;// in V
I = 1;// in mA
I = I * 10^-3;// in A
R_B = 120;// in k ohm
R_B = R_B * 10^3;// in ohm
R_C = 10;// in k ohm
R_C = R_C * 10^3;// in ohm
Rsig = 5;// in k ohm
Rsig = Rsig * 10^3;// in ohm
R_L = 5;// in k ohm
R_L = R_L * 10^3;// in ohm
Beta = 125;// unit less
V_A = 200;// in V
Cmiu = 1;// in pF
Cmiu = Cmiu * 10^-12;// in F
fT = 1000;// in MHz
fT = fT * 10^6;// in Hz
r_x = 50;// in ohm
V_T = 25;// in mV
V_T = V_T * 10^-3;// in V
g_m = I/V_T;// in A/V
r_pie = Beta/g_m;// in ohm
r_o = V_A/I;// in ohm
Cpie = (g_m/(2*%pi*fT))-Cmiu;// in F
RdasL = (r_o*R_C*R_L)/( (r_o*R_C)+(R_C*R_L)+(R_L*r_o) );// in ohm
Gm = g_m*RdasL;// unit less
R = (R_B*Rsig)/(R_B+Rsig);// in ohm
A_VM = (-R_B/(R_B+Rsig)) * (r_pie/(r_pie+r_x+R)) * Gm;
disp(A_VM,"The mid band gain is");
Avm = 20*log(abs(A_VM));// in dB
Cin = Cpie+Cmiu*(1+Gm);// in F
Rdassig = (r_pie*(r_x+R))/(r_pie+(r_x+R));// in ohm
f2 = 1/( 2*%pi*Cin*Rdassig);// in Hz
f2 = f2 * 10^-3;// in kHz
disp(f2,"The upper 3-dB frequency in kHz is");
|
7c15c133bc9ebf224ee58f1f38d97cd6949cd67a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1694/CH6/EX6.4/Ex6_4.sce | 7a0c118f727e252cae38082504677f613e839214 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 262 | sce | Ex6_4.sce | clear;
clc;
printf("\nEx-6.4\n");
//page no.-185
//given
E=16.02*10^-19......//fermi energy in coulamb
k=1.381*10^-23......//boltzmann constant in m
T=(2*E)/(5*k)...........//temperature in kelvin
printf("\nclassical temperature is 4.64*10^4 k");
|
286ed115e05c64d7d0922f3fe6de8b90588ad42c | d7ec0352fdd4cf451ee9dd6bac2218fb96c24c0f | /src/gui/qml/img/imgbackground.sci | b39300c2f1c0de29c7b2bf9d354217e59b2727a3 | [] | no_license | mireq/facedetect | d3fc340926a54e144dcf09ef4a814a77cbc9afde | 94ab039149efb2d8f1496c6042bf3a6b133bb49e | refs/heads/master | 2021-01-22T04:33:34.209921 | 2011-05-13T01:08:47 | 2011-05-13T01:08:47 | 1,525,248 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 89 | sci | imgbackground.sci | border.left: 7
border.right: 7
border.bottom: 7
border.top: 7
source: imgbackground.png
|
9bdfa869da566e7d2b792b0613095d19e8b55249 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2891/CH9/EX9.15/Ex9_15.sce | a2ed2dfec1226056a6ccddddd88c55a69528ea89 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 236 | sce | Ex9_15.sce | // Exa 9.15
clc;
clear;
close;
// given :
Nmax=1.3*10^6 // maximum electron density in electrons/cm^3
// formula : fc=9*sqrt(Nmax)
fc_khz=9*sqrt(Nmax) // critical frequency in Khz
disp(fc_khz/1000,"critical frequency in Mhz:")
|
e3cfc9f1ef26d4921ae475327e1582f20d0e8a12 | 4b7eae708edea1f2fc5fd5f08bdd0ee8f1598adf | /code/pt/basics.sce | f8433458eeaef4d862b4351d0bc7a8a88006743d | [] | no_license | kiraboris/pyttools | d7bea20bd371b811f6fe86ab94dac3317b9e3679 | 7a07dd9da5dd792f62a9c4cf33fdf2ae6be626fe | refs/heads/master | 2021-05-31T01:17:35.354923 | 2016-02-03T10:12:09 | 2016-02-03T10:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 11,402 | sce | basics.sce | // These are some basics of possibility therory //
//=================================================
// ptIsValidPoss: test if all poss-dist values are in range [0 1]
// and each single poss-dist has a P==1 point
// IN: poss array
// sDim: 'r' if single poss-dists to be rows, 'c' if them to be columns
// OUT: boolean test result (%T if passed)
//=================================================
function f = ptIsValidPoss( poss, sDim );
f = ( max(poss)==1 ) & ( min(poss)==0 );
if( sDim == 'r' )
f = f & ( sum(max(poss, 'c')) == length(max(poss, 'c')) );
else
if( sDim == 'c' )
f = f & ( sum(max(poss, 'r')) == length(max(poss, 'r')) );
else
error("Dim must be either r or c.");
end;
end;
endfunction
//=================================================
// ptIsStrictlyMonotoneFunc: test if x->y is strictly monotonous
// IN: x, y
// OUT: boolean test result (%T if passed)
//=================================================
function f = ptIsStrictlyMonotoneFunc(x, y);
[x1, ind] = unique(x(:));
y1 = y(ind);
f1 = isequal(unique(y1), y1);
[y1, ind] = unique(y(:));
x1 = x(ind);
f2 = isequal(unique(x1), x1);
f = f1 & f2;
endfunction
//=================================================
// ptIsMonotoneFunc: test if x->y is monotonous
// IN: x, y
// OUT: boolean test result (%T if passed)
//=================================================
function f = ptIsMonotoneFunc(x, y);
[x1, ind] = gsort(x(:));
for x0 = x1'
if length(unique(y(x == x0))) ~= 1 then
f = %f;
return;
end
end
y1 = y(ind);
f = isequal(gsort(y1), y1);
endfunction
//=================================================
// ptNormalize1d: ensures the poss-dist has a maximum P==1 value.
// IN: poss vector (possibly without P==1 points)
// OUT: poss-dist vector
//=================================================
function possOut = ptNormalize1d( possWithoutOnes );
if length(possWithoutOnes) ~=length(possWithoutOnes(:)) then
error("All input args are vectors.");
end;
possOut = possWithoutOnes;
possOut( possOut==max(possOut) ) = 1;
endfunction
//=================================================
// ptNormalize: ensures the poss-dist has a maximum P==1 value.
// same as ptNormalize1d, but for arbitrary dimensioned matrix
// IN: poss array (possibly without P==1 points),
// sDim: 'r' if single poss-dists to be rows, 'c' if them to be columns
// OUT: poss-dist array
//=================================================
function possOut = ptNormalize( possWithoutOnes, sDim );
possOut = possWithoutOnes;
if( sDim == 'r' )
possOut( possOut == repmat(max(possOut, 'c'), 1, size(possOut,2)) ) = 1;
else
if( sDim == 'c' )
possOut( possOut == repmat(max(possOut, 'r'), size(possOut,1), 1) ) = 1;
else
error("Dim must be either r or c.");
end;
end;
endfunction
//=================================================
// ptRescale1d: rescales a dist into range [0 1].
// IN: vec: some vector
// OUT: possOut: poss-dist vector with values in range [0,1]
//=================================================
function possOut = ptRescale1d( vec );
if length(vec) ~=length(vec(:)) then
error("All input args are vectors.");
end;
possOut = (vec - min(vec)) / max(vec - min(vec));
endfunction
//=================================================
// ptRescale: rescales a dist into range [0 1].
// same as ptRescale1d, but for arbitrary dimensioned matrix
// IN: poss array (possibly without P==1 points),
// sDim: 'r' if single poss-dists to be rows, 'c' if them to be columns
// OUT: poss-dist array
//=================================================
function possOut = ptRescale( array, sDim );
if( sDim == 'r' )
possOut = (array - repmat(min(array, 'c'), 1, size(array, 2))) ./ repmat(max(array - repmat(min(array,'c'),1,size(array,2)),'c'),1,size(array,2));
else
if( sDim == 'c' )
possOut = (array - repmat(min(array, 'r'), size(array, 1), 1)) ./ repmat(max(array - repmat(min(array,'r'),size(array,1),1),'r'),size(array,1),1);
else
error("Dim must be either r or c.");
end;
end;
endfunction
//=================================================
// ptRescaleUni: rescales a vector into range [0 1] uniformely.
// IN: vec: some vector
// OUT: possOut: poss-dist vector with values in range [0,1] uniformely placed
//=================================================
//function possOut = ptRescaleUnif( vec );
// // test for vector input is inside ptChange1d //
// // ptChange1d can not be avoided
//
// ValsOld = unique( vec );
// ValsUnif = linspace(0,1, length(Vals));
// possOut = ptChange1d( vec, ValsUnif, ValsOld );
//endfunction
//
////=================================================
//// ptRescale2Given: rescales a vector into range [0 1] by correcting a
//// transformation function between some vector 'vec' and a given
//// poss-dist 'givenPoss' to make it 'close to' a linear transform
//// IN: vec: some vector, givenPoss: goal scale
//// OUT: possOut: poss-dist vector with values in range [0,1] uniformely placed
////=================================================
//function possOut = ptRescale2Given( vec );
//// NOT YET NEEDED
//endfunction
//
////========================================,=========
//// ptChange1d: emulates Matlab 'changem' function for vectors.
//// COMMENT: an implementation of p2=gamma(p1) in Pytyev will be:
//// P1Vals=unique(p1);
//// ... // define gammaOnP1Vals somehow
//// p2 = ptChange1d( p1, gammaOnP1Vals, P1Vals);
//// IN: vec: some vector (to be changed),
//// toVals: vector of destination values
//// fromVals: vector of source values (present in 'vec')
//// toVals and fromVals must be of same size!
//// OUT: vecOut
////=================================================
//function vecOut = ptChange1d( vec, toVals, fromVals )
// qFrom = length(fromVals);
// qTo = length(toVals);
// qVecLen = length(vec);
// if qVecLen ~=length(vec(:)) | qFrom ~= length(fromVals(:)) | ( qFrom ~= qTo & qTo > 1 ) | qTo ~= length(toVals(:))
// error("All input args are vectors; toVals and fromVals must be of same size except if toVals is of size 1.");
// end
//
// vecOut = vec;
// for i=1:qVecLen
// for j=1:qFrom
// if vec(i) == fromVals(j)
// if( qTo > 1 )
// vecOut(i) = toVals(j);
// else
// vecOut(i) = toVals;
// end;
// end;
// end;
// end;
//endfunction
//=================================================
// ptPoss2Comp: converts a poss-dist into an extended comp matrix
// 'extended' means a w0: P(w0)==0 is added to poss-points in input vector of size qXmax,
// resulting in a (qXmax+1)*(qXmax+1) comp matrix.
// IN: poss-dist
// OUT: comp matrix
//=================================================
function comp2d = ptPoss2Comp(poss1d);
if length(poss1d) ~=length(poss1d(:)) then
error("All input args are vectors.");
end;
poss1d = [poss1d 0];
[poss_r, poss_c] = meshgrid(poss1d); /// (:) makes a large 2d matrix anyway
comp2d = (poss_r < poss_c) - (poss_r > poss_c);
endfunction
//=================================================
// ptIsValidCompMatrix: test if a matrix is a valid comp matrix (see Pytyev)
// IN: comp matrix,
// OUT: boolean test result (%T if passed)
//=================================================
function f = ptIsValidCompMatrix(comp2d);
// is a skew-symmetric matrix with values -1, 0 and 1
f = isequal(size(comp2d,1), size(comp2d,2));
f = f& isequal(comp2d', -comp2d);
f = f& ( sum((comp2d ~= 0) & (comp2d ~= -1) & (comp2d ~= 1)) == 0 );
// is transitive
qSize = size(comp2d,1);
for i=1:qSize
for j=1:qSize
for k=1:qSize
ij = comp2d(i,j);
if( ij == comp2d(j,k) & ij ~= comp2d(i,k) )
f = %F;
end
end
end
end
endfunction
//=================================================
// ptComp2Poss: converts an extended comp matrix (see above) into a
// uniformly scaled poss-dist.
// IN: comp matrix,
// OUT: poss-dist
//=================================================
function poss1d = ptComp2Poss(comp2d);
if ~ptIsValidCompMatrix(comp2d) then
error("The input is not a comp matrix. Sorry.");
end
qXmax = size(comp2d, 1) - 1;
if sum(abs(comp2d)) == 0 then
poss1d = ones(1, qXmax);
else
prevec = -sum(comp2d, 'r'); // already ordered like the poss-dist we need
poss1d = ptRescale1d( prevec );
poss1d = poss1d(1:qXmax); // eliminate the extension point w0: P(w0)==0
end
endfunction
//=================================================
// ptPoss2Pref: converts a poss-dist into an extended preference vector
// 'extended' means a w0: P(w0)==0 is added to poss-points in input vector of size qXmax
// resulting in a qXmax+1 pref vector.
// IN: poss-dist
// OUT: pref vector
//=================================================
function pref1d = ptPoss2Pref(poss1d);
if length(poss1d) ~=length(poss1d(:)) then
error("All input args are vectors.");
end;
[poss_r, poss_c] = meshgrid([poss1d 0]);
pref1d = sum( (poss_r >= poss_c), 'r' );
endfunction
//=================================================
// ptIsValidCompMatrix: test if a matrix is a valid comp matrix (see Pytyev)
// IN: pref vector,
// 'sorted' if the vector is already sorted
// OUT: boolean test result (%T if passed)
//=================================================
function f = ptIsValidPrefVector(pref1d, varargin);
[qlhs qrhs] = argn();
if( qrhs < 1 | qrhs > 2 )
error('Wrong number of arguments');
end
if( qrhs == 2 )
fsorted = %T;
else
fsorted = %F;
end
// is a vector with max == length
f = (length(pref1d) == length(pref1d(:)))
f = f& (length(pref1d) == max(pref1d));
if( ~fsorted )
SSorted = gsort(pref1d, 'g', 'i');
else
SSorted = pref1d;
end
// is upper diagonal (see 151105-1)
qValCount = 1;
qUsed = 0;
for i = 1:length(SSorted)
thisVal = SSorted(i);
if( i == length(SSorted) )
nextVal = 0;
else
nextVal = SSorted(i+1);
end;
if( thisVal == nextVal )
qValCount = qValCount + 1;
else
if( qValCount ~= thisVal-qUsed )
f = %F;
break;
end
qUsed = qUsed + qValCount;
qValCount = 1;
end;
end//for
endfunction
//=================================================
// ptPref2Poss: converts an extended prefvector (see above) into a normalized poss-dist.
// IN: pref vector,
// OUT: poss-dist
//=================================================
function poss1d = ptPref2Poss(pref1d);
if ~ptIsValidPrefVector(pref1d) then
error("The input is not a pref vector. Sorry.");
end
qXmax = length(pref1d) - 1;
poss1d = ptRescale1d( pref1d );
poss1d = poss1d(1:qXmax); // eliminate the extension point w0: P(w0)==0
endfunction
// ==eof===eof==
|
6cc25355c8325d326738ad989b87068ab4ccc6cd | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH13/EX13.08/13_08.sce | 7ef395eac9d0dfdee71396f7d0f1a8e222163430 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 788 | sce | 13_08.sce | //Problem 13.08: For the network shown in Figure 13.29(a) determine the current in the 0.8 ohm resistor using Th´evenin’s theorem.
//initializing the variables:
V = 12; // in volts
R1 = 5; // in ohms
R2 = 1; // in ohms
R3 = 4; // in ohms
R = 0.8; // in ohms
//calculation:
//The 0.8 ohm resistance branch is short-circuited as shown in Figure 13.29(b).
//Current I1
I1 = V/(R1 + R2 + R3)
//p.d. across AB, E
E = R3*I1
//the resistance ‘looking-in’ at a break made between A and B is given by
r = R3*(R1 + R2)/(R2 + R1 + R3)
//The equivalent Th´evenin’s circuit is shown in Figure 13.29(d), the current in the 0.8 ohm resistance is given by:
I = E/(r + R)
printf("\n\n Result \n\n")
printf("\n the current in the 0.8 ohm resistance is given by %.1f A",I) |
28171ffeebff14846213adf50edd5364ba4e6b1e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3755/CH6/EX6.30/Ex6_30.sce | b43771fd859fc9ee54c10ba7c86679b13ffd6eb4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 402 | sce | Ex6_30.sce | clear
//
//
//
//Variable declaration
h=6.63*10^-34; //planck's constant(J-sec)
e=1.6*10^-19; //charge of electron(c)
delta_t=2.5*10^-14*10^-6; //life time(s)
//Calculations
deltaE=h*10^-3/(4*%pi*delta_t*e); //minimum energy(keV)
//Result
printf("\n minimum energy is %0.5f keV",deltaE)
printf("\n answer in the book varies due to rounding off errors")
|
656674af656bfac73f95d010825ff0c5f09a9d86 | b80969c9d72c732b0153d0de2b8fd28dc10d8a16 | /Biologie/Site/sauvegarde/28.07.2016/www/Documents/simulation/equationDifferentielle/chapitre3/ex14.sci | 57e66aaaf84879ba715b008049290ea7caaf025f | [] | no_license | adamdepossylux/stem_cells | 6a2596a0734e3604b570cfdaa1e6cb798d13d7b7 | e1ffdf24a223fea3a3606a0bd262067edc81f5b9 | refs/heads/master | 2020-04-01T17:26:21.772875 | 2017-05-10T15:15:09 | 2017-05-10T15:15:09 | 61,795,551 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 216 | sci | ex14.sci | clf
c=0.4;xmin=0;xmax=20;N=101;
function[y]=f14(x,u)
y(1)=u(2);
y(2)=c*(1-u(1)^2)*u(2)-u(1);
endfunction
t=linspace(xmin,xmax,N);
y0=0;vy0=1;
y=ode([y0;vy0],0,t,f14);
comet(y(1,:),y(2,:))
//plot2d(t,y(1,:))
|
d365071890502eb1a4db7b5a20889bbea94d9783 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2882/CH9/EX9.2/Ex9_2.sce | 52bf61201cd4ddb1b0fe67823ef7d98883807a02 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 598 | sce | Ex9_2.sce | //Tested on Windows 7 Ultimate 32-bit
//Chapter 9 Frequency Response of Amplifier Pg no. 299 and 300
clear;
clc;
//Given
Gv=-48;//voltage gain of amplifier
Cbc=2D-12;//base to collector capacitance in farads
Cbe=0.5D-12;//base to emitter capacitance in farads
//Solution
Cin_miller=Cbc*(1-Gv);//input miller capacitance in farads
Cout_miller=Cbc*(1-1/Gv);//output miller capacitance in farads
disp("(i)");
printf("Input Miller capacitance Cin(Miller) = %.f pF",Cin_miller*10^12);
disp("(ii)");
printf("Output Miller capacitance Cout(Miller) = %.f pF",Cout_miller*10^12);
|
a62e522ac015bc470f7350a4d6b7406f22bc9c60 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3685/CH12/EX12.2/Ex12_2.sce | dffe2e34bf1f2ea3e026f37bcb8c3f79733c4e24 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,549 | sce | Ex12_2.sce | clc
h1 = 3159.3 // Enthalpy at state 1 in kJ/kg
s1 = 6.9917 // Entropy at state 1 in kJ/kgK
h3 = 173.88 // Enthalpy at state 3 in kJ/kg
s3 = 0.5926 // Entropy at state 3 in kJ/kgK
sfp2 = s3 // Isentropic process
hfp2 = h3 // Isenthalpic process
hfgp2 = 2403.1 // Latent heat of vaporization in kJ/kg
sgp2 = 8.2287 // Entropy of gas in kJ/kgK
vfp2 = 0.001008 // Specific volume in m^3/kg
sfgp2 = 7.6361// Entropy of liquid in kJ/kgK
x2s = (s1-sfp2)/(sfgp2)// Steam quality
h2s = hfp2+(x2s*hfgp2) // Enthalpy at state 2s
// Part (a)
P1 = 20 // Turbine inlet pressure in bar
P2 = 0.08 // Turbine exit pressure in bar
h4s = vfp2*(P1-P2)*1e2+h3 // Enthalpy at state 4s
Wp = h4s-h3 // Pump work
Wt = h1-h2s // Turbine work
Wnet = Wt-Wp // Net work
Q1 = h1-h4s // Heat addition
n_cycle = Wnet/Q1// Cycle efficiency
printf("\n Example 12.2")
printf("\n Net work per kg of steam is %f kJ/kg",Wnet)//The answer provided in the textbook is wrong
printf("\n Cycle efficiency is %f percent",n_cycle*100)
// Part (b)
n_p = 0.8 // pump efficiency
n_t = 0.8// Turbine efficiency
Wp_ = Wp/n_p // Pump work
Wt_ = Wt*n_t // Turbine work
Wnet_ = Wt_-Wp_// Net work
P = 100*((Wnet-Wnet_)/Wnet) // Percentage reduction in net work
n_cycle_ = Wnet_/Q1 // cycle efficiency
P_ = 100*((n_cycle-n_cycle_)/n_cycle) //reduction in cycle
printf("\n\n Percentage reduction in net work per kg of steam is %f percent",P)
printf("\n Percentage reduction in cycle efficiency is %f percent",P_)
//The answers vary due to round off error
|
7a0e3f996ac7aeced58f23bffc7f123885f0eb0d | 449d555969bfd7befe906877abab098c6e63a0e8 | /779/CH14/EX14.1/14_1.sce | 419a01074cf1418d9526fb941c1a5d43c882745e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 154 | sce | 14_1.sce | T2 = 268; T1 = 308;
COP = T2/(T1-T2);
ACOP = COP/3; // Actual COP
Q2 = 29; // in kW
W = Q2/ACOP;
disp("kW",W,"Power required to derive the plane is") |
496c998983af5b00bcf628b5babeafdcd3f66c41 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1088/CH5/EX5.2/Example2.sce | f64a0f1420e6e789c588f420b11e6d7e356ebc12 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,380 | sce | Example2.sce | clear
mode(-1)
flag=1
pwd
xt=ans
flag=1
clc
printf("Example 2 : Show the method of copying files in unix using the cp command \n")
disp("****************************************************************")
disp("Answer : ")
disp("INSTRUCTIONS : ")
printf("\nHere all instructions are preloaded in the form of a demo\nPRESS ENTER AFTER EACH COMMAND to see its RESULT\nPRESS 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")
src=input("# Enter the name of the file[or directory] which you want to copy : ",'s')
if isdir(src) then
destn=input("# Enter the name of the directory which you want to copy into : ",'s')
else
destn=input("# Enter the name of the file[or directory] which you want to copy into : ",'s')
end
flag=0
printf("\n $ cp %s %s \t#copies file[or directory] contents of %s to %s\n",src,destn,src,destn)
halt('')
if isfile(destn)&isfile(src) then
printf('cp : overwrite %s (yes/no)? ',destn)
resp=input(' ','s')
if resp=='y' then
mdelete(destn)
end
end
if isfile(src)|isdir(src) then
flag=1
[status,msg]=copyfile(src,destn)
else
printf("\n%s : file or directory not found \n",src)
flag=0
end
if flag==1&isfile(destn) then
i=1
printf("\n $ cat %s \t#to display the copied file %s \n\n",destn,destn)
printf("\n ===========> %s <============\n\n\n",destn)
fhdr=mopen(destn,'rt')
while %t
[n,a]=mfscanf(fhdr,"%c")
if meof(fhdr) then
break
end
printf("%c",a)
i=i+1
end
mclose(fhdr)
printf("\n\n%d characters present in the file.\n[hit ENTER to continue]\n",i)
halt('')
elseif isdir(destn)&flag==1 then
cd(destn)
mode(0)
ls
halt("Go back to previous directory ?? ")
mode(-1)
cd(xt)
else
printf("\n\n# file %s is not rewritten using copy command cp and not created also\n",destn)
end
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)
|
9de845bce4b4eb4a5b8faf6dd19e189020aff9d7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /317/CH19/EX19.11/example11.sce | 0086a7c4b3bd38e71ffb4dfae1c42b13bdd1d9d1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 449 | sce | example11.sce | // find closed-loop bandwidth
// Electronic Principles
// By Albert Malvino , David Bates
// Seventh Edition
// The McGraw-Hill Companies
// Example 19-11, page 724
clear; clc; close;
// Given data
// LM12
Avol=50000;// given
f2ol=14;// open-loop bandwidth in hertz
// Calculations
f2cl=(1+Avol)*f2ol;// closed-loop bandwidth in hertz
disp("hertz",f2cl,"closed-loop bandwidth")
// Result
// closed-loop bandwidth is 700 KHertz |
e3d1ad54fba99a927491aa51cb8ea4ffb8d73d89 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1286/CH9/EX9.10/9_10.sce | cf552ad217a1ba9db0f3a5a2ad63218053a2e827 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 163 | sce | 9_10.sce | clc
//initialisation
st=1.75
sw=0.30
t=100//c
T=273+t//k
//CALCULATIONS
L=T*(st-sw)
//results
printf(' \n specific latent heat of steam= % 1f cal/gm',L)
|
b9c4b762c53c07e4bec7d216ee4e0d130071ef4c | 717ddeb7e700373742c617a95e25a2376565112c | /3424/CH1/EX1.5/Ex1_5.sce | 4ba684c2828a763a8989d74e44342590eeebf646 | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 168 | sce | Ex1_5.sce | clc
//Initialization of variables
Pl = 14.7 //fsi
k = 1.40
Ratio = 2
// Calculations
Pf =Pl*(Ratio)^k
// results
printf("The final pressure is %.1f psi",Pf)
|
706f4af2cec7b37b0214808998c5c5be12e523ee | 449d555969bfd7befe906877abab098c6e63a0e8 | /2216/CH9/EX9.1/ex_9_1.sce | ce70445c4d964f1c4790cc6c43e23059af4cc564 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 212 | sce | ex_9_1.sce | //Example 9.1: The thickness
clc;
clear;
close;
format('v',7)
//given data :
lamda=589.3*10^-9;// in m
ne=1.553;
no=1.544;
x=(lamda/(4*(ne-no)))*10^3;
disp(x,"The thickness of the a quarter wave plate,x(mm) = ")
|
4372115fd7d142254561417af9e3f7521b00e890 | 6b4495c42c44bc844a98bf2f938f4e576de5efd9 | /tp/tp3/image_discretes.sce | b65a4614b68c834f4007dd3fb37c2c8587665a89 | [] | no_license | Wanna-Get-High/TI | 089d52d342c3afebf2006c6631e5f477f008103e | 5e3000aa51635ff5bfd94269399be6dfa2e9d52c | refs/heads/master | 2021-01-10T20:36:49.267573 | 2013-04-11T12:51:13 | 2013-04-11T12:51:13 | 7,775,096 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 3,417 | sce | image_discretes.sce | // Chargement des fonctions externes
exec ("image_discretes.sci", -1);
//img = imread("ti-semaine-3-mire.png");
//img = imread("ti-semaine-3-lena.png");
img = imread("ti-semaine-3-sinus.png");
// get the sizes of the matrix
//size = getDimensionsOf(img)
//------------------------------------------------------
// recupere les niveaux de gris pour la couleur rouge
//imgRG = img(:,:,1);
// recupere les niveaux de gris pour la couleur bleu
//imgGG = img(:,:,2);
// recupere les niveaux de gris pour la couleur vert
//imgBG = img(:,:,3);
// affichage
//imshow([imgRG, imgGG, imgBG]);
//------------------------------------------------------
//------------------------------------------------------
// met les valeur pour le vert et le bleu a 0
//imgR = redColorsOf(img);
// met les valeur pour le rouge et le bleu a 0
//imgG = greenColorsOf(img);
// met les valeur pour le vert et le rouge a 0
//imgB = blueColorsOf(img);
// affichage
//imshow([imgR, imgG, imgB]);
//------------------------------------------------------
//------------------------------------------------------
// verification addition des 3 composante redonne image
//imgRes = img;
//imgRes(:,:,1) = img(:,:,1)*0;
//imgRes(:,:,2) = img(:,:,2)*0;
//imgRes(:,:,3) = img(:,:,3)*0;
//
//imgRes(:,:,1) = imgR(:,:,1);
//imgRes(:,:,2) = imgG(:,:,2);
//imgRes(:,:,3) = imgB(:,:,3);
//imshow(imgRes);
//------------------------------------------------------
//------------------------------------------------------
// sous echantillonnage
//ssEchImg = sousEch(img,1);
//imshow(ssEchImg);
//------------------------------------------------------
//------------------------------------------------------
// sur echantillonnage
//surEchImg = surEch(img,2);
//imshow(surEchImg);
//------------------------------------------------------
//------------------------------------------------------
// test sous echantillonage --> sur echantillonage
//ssEchImg = sousEch(img,2);
//surEchImg = surEch(ssEchImg,2);
//imshow(surEchImg);
//------------------------------------------------------
//------------------------------------------------------
// quantification
//img = im2double(img);
//img = img (:,:,2);
//img = quantif(img,1);
//imshow(img);
//img = im2double(img);
//imshow(img);
//// Composante rouge sous-échantillonnée d'un facteur 2 en horizontal
//// et en vertical et quantifiée sur 5 bits
//img1 = img(:,:,1);
//img1 = sousEch(img1,2);
//img1 = quantif(img1,5);
//
//// Composante bleue sous-échantillonnée d'un facteur 4 en horizontal
//// et en vertical et quantifiée sur 3 bits
//img2 = img (:,:,3);
//img2 = sousEch(img2,4);
//img2 = quantif(img2,3);
//
//// Sur-échantillonnage des composantes afin d avoir des matrices de même taille
//img1 = surEch(img1,2);
//img2 = surEch(img2,4);
//
//// On enregistre les resultats dans une nouvelle image
//newimg = zeros(size(img,1),size(img,2),3);
//newimg(:,:,1) = img1;
//newimg(:,:,2) = im2double(img(:,:,2));
//newimg(:,:,3) = img2;
//
//imshow(newimg);
//------------------------------------------------------
//------------------------------------------------------
// repliement de spectre
//img = sousEch(img,10);
//img = sousEch(img,20);
//img = sousEch(img,50);
img = sousEch(img,80);
//img = surEch(img,10);
//img = surEch(img,20);
//img = surEch(img,50);
img = surEch(img,80);
imshow(img);
//------------------------------------------------------
|
254c8bd0a1d864e04c3683132604fec5299e13d5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3755/CH8/EX8.12/Ex8_12.sce | 046ebb3ae072c363b654e8367300b4b9bab485c5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 373 | sce | Ex8_12.sce | clear
//
//
//
//Variable declaration
rho=0.00912; //resistivity(ohm m)
RH=3.55*10^-4; //hall coefficient(m^3/C)
B=0.48; //flux density(Wb/m^2)
//Calculation
sigma=1/rho;
theta_H=atan(sigma*B*RH); //hall angle(radian)
theta_H=theta_H*180/%pi ; //hall angle(degrees)
//Result
printf("\n hall angle is %0.4f degrees",theta_H)
|
fe0d34284ffb17052f9c202428e3f02f748196d0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /548/CH6/EX6.20/6_20.sce | 6429a643c4e0c5e6bb1a0969d6776214e605c21e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 454 | sce | 6_20.sce | pathname=get_absolute_file_path('6.20.sce')
filename=pathname+filesep()+'6.20data.sci'
exec(filename)
R1_R2=sqrt((n2^2-1)/(n1^2-1));//ratio(R1/R2)
disp(R1_R2,"ratio of turn radius :R1/R2=sqrt((n2^2-1)/(n1^2-1))")
w1_w2=sqrt((n1^2-1)/(n2^2-1));//ratio(w1/w2)
disp(w1_w2,"ratio of turn rate :w1/w2=sqrt((n1^2-1)/(n2^2-1))")
printf("\Answer:\n")
printf("\n\Ratio of turn radius: %f \n\n",R1_R2)
printf("\n\Ratio of turn rate: %f m/s\n\n",w1_w2)
|
a0d83162f1aeaba000d0a8c254aed9d8e9145c88 | 449d555969bfd7befe906877abab098c6e63a0e8 | /213/CH13/EX13.20/13_20.sce | c9550e416b8c209fa1478e9bb78f00c46d73c22f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 764 | sce | 13_20.sce | //To find teeth and torque
clc
//Given:
Ts=100 //Torque on the sun wheel, N-m
r=5 //Ratio of speeds of gear S to C, NS/NC
//Refer Fig. 13.27 and Table 13.22
//Number of teeth on different wheels:
//Calculating the values of x and y
y=1
x=5-y
//Calculating the number of teeth on wheel E
TS=16
TE=4*TS
//Calculating the number of teeth on wheel P
TP=(TE-TS)/2
//Torque necessary to keep the internal gear stationary:
Tc=Ts*r //Torque on CN-m
//Caluclating the torque necessary to keep the internal gear stationary
Ti=Tc-Ts //Torque necessary to keep the internal gear stationary, N-m
//Results:
printf("\n\n Number of teeth on different wheels, TE = %d.\n\n",TE)
printf(" Torque necessary to keep the internal gear stationary = %d N-m.\n\n",Ti) |
2d3fc3e4b018874147aae159bbdeed7a2d286b73 | 449d555969bfd7befe906877abab098c6e63a0e8 | /572/CH4/EX4.12/c4_12.sce | ba3eab3558fd375eb2acfa8913e31a9e7e95cbcc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,526 | sce | c4_12.sce | // (4.12) Steam at a pressure of 15 bar and a temperature of 320C is contained in a large vessel. Connected to the vessel through a valve is a turbine followed by a small initially evacuated tank with a volume of 0.6 m3. When emergency power is required, the valve is opened and the tank fills with steam until the pressure is 15 bar. The temperature in the tank is then 400C. The filling process takes place adiabatically and kinetic and potential energy effects are negligible. Determine the amount of work developed by the turbine, in kJ.
// solution
//variable initialization
Pv = 15 //pressure in the vessel in bar
Tv = 320 //temperature in the vessel in degree celcius
Vt = .6 //volume of a tank in m^3
Tt = 400 //temperature in the tank in degree celcius when the tank is full
//since the tank is initially empty
m1 = 0
u1 = 0
//from table A-4, at 15bar and 400 degree celcius
v2 = .203 //in m^3/kg
m2 = Vt/v2 //mass within the tank at the end of the process in kg
//from table A-4,
hi = 3081.9 //in kj/kg
u2 = 2951.3 //in kj/kg
deltaUcv = m2*u2-m1*u1
Wcv = hi*(m2-m1)-deltaUcv
printf('the amount of work developed by the turbine in kj is:\n\t Wcv = %f ',Wcv)
|
65ce973919c0e2a5eceda6e80f5300b5e51ece6e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1118/CH4/EX4.3/eg4_3.sce | 7b82aadf976f1f2de970d66982040e02124fb9af | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 347 | sce | eg4_3.sce | clear;
//clc();
d=10;..//diameter of the conductor in mm
r=d/2;..//radius in mm
t=10;..//thickness in mm
r1=(r+t);
R=(r+ 2*t);
e1=3;
e2=2.5;
v=60;..//voltage in kv
a=r1/r;
b=R/r1;
c=e1/e2;
d=(r)*(log([a]) + c*log([b]));
gmax1=v/d;
printf("\n the potenial gradient at the surface of the conductor is:%.2f kV/mm\n",gmax1);
|
4d021e029b007a905191cee781111ab49db74d4c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3845/CH19/EX19.8/Ex19_8.sce | 432fcf06d063aa99690e4f8a5b833e31243b0bcf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 482 | sce | Ex19_8.sce | //Example 19.8
eps_0=8.85*10^-12;//Permittivity of free space (F/m)
A=1;//Area of metal plates (m^2)
d=1*10^-3;//Distance between plates (m)
C=eps_0*A/d;//Capacitance (F)
printf('a.Capacitance = %0.2f nF',C/10^-9)
V=3*10^3;//Applied voltage (V)
Q=C*V;//Stored charge (C)
printf('\nb.Charge stored in the capacitor = %0.2f microC',Q/10^-6)
//Answer varies due to round off error
//Openstax - College Physics
//Download for free at http://cnx.org/content/col11406/latest
|
42d141a365a77a3020563edeca435947c92f329e | 449d555969bfd7befe906877abab098c6e63a0e8 | /371/CH8/EX8.1/8_1.sci | ddd4e029b4e4a967aa7f677f879821f4420bb5fa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 816 | sci | 8_1.sci | //Harmonic and Powerfactor with the Converter system//
//Example 8.1//
I5=0.2;//amplitude of 5th harmonic current in Kilo Amperes//
Vp= 11/(sqrt(3));//Input supply phase voltage in Kilo Volts//
P=5;//supply power per phase of filter in MVAR//
Pc=P+((Vp^2*I5^2)/(5*P));//AC Converter power per phase in MVAR//
printf('\nvalue of AC converter power=Pc=%f MVAR',Pc);
C=(Pc*10^3*3)/(11^2*314);//capacitance of the ShuntFilter in milliFarad//
printf('\nvalue of the capacitance of shunt filter=C=%fmillifarads',C);
L=(106*10^6)/(400*4*25*250*3.14^2);//inductance of filter in mHenry//
printf('\nInductance of filter=L=%fmilliHenry',L);
Q=50;//value of Q//
W5=2*3.14*5*50;//angular frequency of 5th harmonic//
R=(W5*L)/Q;//Resistance of filter in milliOhms//
printf('\nResistance of filter=R=%fmilliOhms',R); |
42eb73e18bf187cab93d0e604a7d409b73af4632 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/tests/examples/atanhm.man.tst | 88fa97eecd4998e2b227efb3b32a938d582ce2e8 | [
"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 | 46 | tst | atanhm.man.tst | clear;lines(0);
A=[1,2;3,4];
tanhm(atanhm(A))
|
f567abf1f91a24c0d6ec3e9d00bc8ed0b51affe6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH18/EX18.8/Example18_8.sce | 516e576c496722d49b4d7a2b5e8574a20ca8276c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 388 | sce | Example18_8.sce | //Given that
v = 242 //in m/s
f = 1250 //in Hz
Vs = 343 //in m/s
//Sample Problem 18-8a
printf("**Sample Problem 18-8a**\n")
F = (Vs/(Vs-v))*f
printf("The frequency measured by the detector on the pole is %fHz\n", F)
//Sample Problem 18-8b
printf("\n**Sample Problem 18-8b**\n")
Fe = (Vs+v)/Vs*F
printf("The frequency measured by the detector on the rocket is %fHz", Fe) |
0e38cf4fd7f161cac7453c938c103c6122926364 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1580/CH5/EX5.1/Ch05Ex1.sce | bc2d413af379f87b59225b6cb133f10e84846b5c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 432 | sce | Ch05Ex1.sce | // Scilab Code Ex5.1 : Page-5.7 (2004)
clc;clear;
h = 6.626e-34; // Planck's const in Js
m = 1.67e-27; // Mass of the proton in kg
c = 3e+8; // Charge of electron in C
v = c/10; // Proton velocity 1/10th of c
E = 0.025; // Kinetic energy of the neutron in J
lam = h/(m*v); // de Broglie wavelength in m
printf("\nde Broglie wavelength = %5.3e m", lam);
// Result
// de Broglie wavelength = 1.323e-14 m
|
9870562be3c2089ab8e30d9beb63fe570048bab1 | 6992b846437dda600f963dcbe3b75550b2b41ec8 | /libs/graph/example/vf2_random_graphs.sce | e29a3bc9cec2478f1dc5996092966416a0de72c2 | [
"BSL-1.0"
] | permissive | ioriiod0/boost-svn | a1dd84d5730690ee751a2df862c344e011109034 | 6825b8378916a8ee9ac8cc0ef17e6fec1b19ac0b | refs/heads/master | 2021-01-20T21:49:18.297334 | 2012-12-12T13:23:07 | 2012-12-12T13:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,125 | sce | vf2_random_graphs.sce | //=======================================================================
// Copyright (C) 2012 Flavio De Lorenzi (fdlorenzi@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=======================================================================
// A script to generate simple pairs of graphs of (possibly) different
// size, such that there exists (at least) one (sub)graph isomorphism mapping
// between the two graphs. The graphs are written to files graph_small.dot
// and graph_large.dot using the Graphviz DOT language http://www.graphviz.org.
// The following parameters can be used to control the output:
//
// - nbig: Dimension of the large adjacency matrix
// - nsmall: Dimension of the small adjacency matrix
// - density: Density of the non-zero entries (of an initial square
// matrix with dimension nbig)
// - directed: If set to one, a pair of directed graphs is generated,
// otherwise undirected graphs are produced.
// - loops: If set to one, self-loops are allowed, otherwise self-loops
// are excluded.
//
// The generated dot-files specifying the graphs can be given as command line
// arguments to the executable test program (vf2_sub_graph_iso_gviz_example.cpp),
// which uses boost's GraphViz input parser to build the graphs.
clear;
directed=0; // Set to 1 to generate a directed graph, otherwise an
// undirected graph is generated
loops=1; // Set to 1 to allow self-loops, otherwise loops are excluded
nbig=6; density=0.4; // Size and density of non-zero elements of the large matrix
nsmall=4; // Size of the small matrix: nsmall<=nbig
// Create a matrix with ~density * nbig^2 non-zero elements
M=full(sprand(nbig, nbig, density, "uniform"));
NZ=find(M<>0);
M(NZ)=1;
if directed <> 1 then
M=triu(M);
end
if loops <> 1 then
M=M-eye(M).*M
end
indices=linspace(1, nbig, nbig)';
// Random row and column permutations
indices_perm=grand(1, 'prm', indices);
M_perm=M(indices_perm, indices_perm);
M_perm=M_perm(1:nsmall, 1:nsmall);
function write_digraph(file_name, Mat)
fd = mopen(file_name, "w");
n = size(Mat, "r");
mfprintf(fd, "digraph G {\n");
for i = 1:n
for j = 1:n
if Mat(i,j)<>0 then
mfprintf(fd, "node%u -> node%u;\n", i, j);
end
end
end
mfprintf(fd, "}\n");
mclose(fd);
endfunction
function write_graph(file_name, Mat)
fd = mopen(file_name, "w");
n = size(Mat, "r");
mfprintf(fd, "graph G {\n");
for i = 1:n
for j = 1:n
if Mat(i,j)<>0 then
mfprintf(fd, "node%u -- node%u;\n", i, j);
end
end
end
mfprintf(fd, "}\n");
mclose(fd);
endfunction
// Write graphs:
if directed <> 1 then
write_graph("graph_large.dot", M);
write_graph("graph_small.dot", M_perm);
else
write_digraph("graph_large.dot", M);
write_digraph("graph_small.dot", M_perm);
end
|
6020bf4434c4f6067befcb8d7d8368bb17550ac7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1370/CH3/EX3.15/example3_15.sce | 1c36d599dfbdcfaa47b593f8c99ddf42cf514a90 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 828 | sce | example3_15.sce | //example3.15
clc
x=250*800
disp(x,"a)The output power at full load(in watt)=")
disp("THe input power at full load =(200*10^3)/0.98135")
disp("The total loss = Input-Output")
t=((200*10^3)/0.98135)-200000
format(8)
disp(t,"= ")
disp("Therefore, P_i + P_c = 3800.88 (i)")
disp("where P_i= Iron loss ,P_c = Full load copper loss")
p=125*800
disp(p,"The power output at half load=125*10^3 *0.8=")
disp("The power input at half load = (100*10^3)/0.97751")
x=((100*10^3)/0.9775)
disp(x,"Total loss = (100*10^3)/0.9775 - 100*10^3 =")
disp("(P_i)+ (0.5^2)*(P_c) = 2300.74")
disp("(P_i)+ (0.25)*(P_c) = 2300.74 (ii)")
disp("From equations (i) and (ii),")
disp("0.75*(P_i)=3800.88-2300.74")
p=(3800.88-2300.74)/0.75
disp(p,"Therefore, P_i(in watt)=")
z=3800.88-2000.18
disp(z,"P_c(in watt)=")
|
9053b49098bea9d1f96d4d0f7c564c3c9a1eba4b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3537/CH5/EX5.27/Ex5_27.sce | ba07869e22a9506e1bef7a05c7264db89ce09fef | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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_27.sce | //Example 5_27
clc();
clear;
//To identify unit cell and determine its dimensions
printf("We have the relation sin^(theta)=((lamda/(2*a))^2*(h^2+k^2+l^2))=(j*((lamda/(2*a))^2)")
printf("\n This can be used to Estimate the cell parameters and Indexing")
|
ba2cbf0638a33fbc11fbdee6b93e2f5174c73444 | 491dfade9270403d35c94491116eb08a73209eab | /Bestof_payoff.sci | 7fa84a23d54bb17fef6408e45c909d151973359c | [] | no_license | skad94/Quantification | 9cfcbd490af4f718bbecd414b66fc8de48f0b78d | 011f56ba3549d4d96c98090536d4109163c4525c | refs/heads/master | 2021-01-21T13:17:30.662165 | 2016-04-21T13:08:12 | 2016-04-21T13:08:12 | 52,862,728 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,375 | sci | Bestof_payoff.sci | function [res] = Bestof_payoff(g1,g2,K)
x = max(g1,g2)
res = max(x-K,zeros(x));
endfunction
function [res] = Bestof_payoff_all(p1,p2,K)
n1 = length(p1);
n2 = length(p2);
res = ones(1,n1*n2);
res = [];
for i = 1:n2
tmp3 = Bestof_payoff(p2(i),p1,K);
res = cat(1,res,tmp3);
end
res;
endfunction
function [res] = Worstof_payoff(g1,g2,K)
x = min(g1,g2)
res = max(K-x,zeros(x));
endfunction
function [res] = Worstof_payoff_all(p1,p2,K)
n1 = length(p1);
n2 = length(p2);
res = ones(1,n1*n2);
res = [];
for i = 1:n2
tmp3 = Worstof_payoff(p2(i),p1,K);
res = cat(1,res,tmp3);
end
res;
endfunction
function [res] = prod_tenso_i(p1,p2)
n1 = length(p1);
n2 = length(p2);
res = ones(1,n1*n2);
res = [];
for i = 1:n2
tmp3 = p2(i)*p1;
res = cat(1,res,tmp3);
end
res;
endfunction
function [res] = prod_tenso_j(p1,p2)
n1 = length(p1);
n2 = length(p2);
res = ones(1,n1*n2);
res = [];
for i = 1:n2
tmp3 = p2(i)*p1;
res = cat(2,res,tmp3);
end
res;
endfunction
function [res] = Call_Bestof_BS_RMQ_2d(nb_quant,nb_step,nb_iter,nbre_iter1,mu1,mu2,sigma1,sigma2,x0,y0,K,T)//2 uncorrelated asset
[g1,p1] = NewtonBS(nb_quant,nb_step,nb_iter,nbre_iter1,mu1,sigma1,x0,T);
[g2,p2] = NewtonBS(nb_quant,nb_step,nb_iter,nbre_iter1,mu2,sigma2,y0,T);
//pause
[g,p] = Prod_2_Quantif(g1(:,nb_step+1),p1(:,nb_step+1),g2(:,nb_step+1),p2(:,nb_step+1));
res = p'*Bestof_payoff(g(:,1),g(:,2),K);
endfunction
function [resf] = Bestof_BS_US_RMQ_2d(nb_quant,nb_step,nbre_iter,nbre_iter1,mu1,mu2,sigma1,sigma2,x0,y0,K,T)
dt = T/nb_step;
[g1,p1] = NewtonBS(nb_quant,nb_step,nbre_iter,nbre_iter1,mu1,sigma1,x0,T);
[g2,p2] = NewtonBS(nb_quant,nb_step,nbre_iter,nbre_iter1,mu2,sigma2,y0,T);
// CENTRES DES CELLULES
GPUnDemi1 = zeros(nb_quant,nb_step+1)
GMUnDemi1 = zeros(nb_quant,nb_step+1)
GPUnDemi2 = zeros(nb_quant,nb_step+1)
GMUnDemi2 = zeros(nb_quant,nb_step+1)
GPUnDemi1 = 0.5*( g1 + cat(1,g1(2:nb_quant,:),%inf*ones(1,nb_step+1)))//frontiere sup
GMUnDemi1 = 0.5*( g1 + cat(1,-%inf*ones(1,nb_step+1),g1(1:nb_quant-1,:)))//frontiere inf
GPUnDemi2 = 0.5*( g2 + cat(1,g2(2:nb_quant,:),%inf*ones(1,nb_step+1)))//frontiere sup
GMUnDemi2 = 0.5*( g2 + cat(1,-%inf*ones(1,nb_step+1),g2(1:nb_quant-1,:)))//frontiere inf
//pause
// ESPERANCE CONDITIONNELLE
espeG = zeros(g1);
espeG = zeros(g2);
a1 = zeros(nb_quant,nb_quant);
b1 = zeros(nb_quant,nb_quant);
a2 = zeros(nb_quant,nb_quant);
b2 = zeros(nb_quant,nb_quant);
//pause
p = nb_quant*nb_quant;
res = zeros(p,nb_step+1);
res(:,nb_step+1) = exp(-mu1*T)*Bestof_payoff_all(g1(:,nb_step+1),g2(:,nb_step+1),K);
for t = nb_step:-1:1 // recurrence rétrograde
grillefut1 = g1(:,t+1);//g1_t+1
grillefut2 = g2(:,t+1);//g2_t+1
for i = 1:nb_quant // parcours du support de X_{k+1}
//pause
a1(:,i) = (GPUnDemi1(:,t+1) - M_k(g1(i,t),mu1,dt))./S_k(g1(i,t),sigma1,dt);
b1(:,i) = (GMUnDemi1(:,t+1) - M_k(g1(i,t),mu1,dt))./S_k(g1(i,t),sigma1,dt);
a2(:,i) = (GPUnDemi2(:,t+1) - M_k(g2(i,t),mu1,dt))./S_k(g2(i,t),sigma2,dt);
b2(:,i) = (GMUnDemi2(:,t+1) - M_k(g2(i,t),mu1,dt))./S_k(g2(i,t),sigma2,dt);
end
//pause
mat_proba = zeros(nb_quant,nb_quant,2);
mat = zeros(p,p);
mat_proba(:,:,1) = PHI(a1) - PHI(b1);
mat_proba(:,:,2) = PHI(a2) - PHI(b2);
mat
for k = 1:nb_quant
mat(:,k) = prod_tenso_i(mat_proba(:,k,1),mat_proba(:,k,2))
end
//(PHI(a1) - PHI(b1)./(PHI(a2) - PHI(b2));
//tmpres = (res(:,t+1))'*(PHI(a1) - PHI(b1)./(PHI(a2) - PHI(b2));
tmpres = (res(:,t+1))'*mat;
//disp("a")
//pause
// disp("b")
// espeG(:,t) = tmpres';
res(:,t) = max(tmpres',exp(-mu1*t*dt)*Bestof_payoff_all(g1(:,t),g2(:,t),K));
//pause
end
res;
resf = res(1,1);
endfunction
function [resf] = Worstof_BS_US_RMQ_2d(nb_quant,nb_step,nbre_iter,nbre_iter1,mu1,mu2,sigma1,sigma2,x0,y0,K,T)
dt = T/nb_step;
[g1,p1] = NewtonBS(nb_quant,nb_step,nbre_iter,nbre_iter1,mu1,sigma1,x0,T);
[g2,p2] = NewtonBS(nb_quant,nb_step,nbre_iter,nbre_iter1,mu2,sigma2,y0,T);
// CENTRES DES CELLULES
GPUnDemi1 = zeros(nb_quant,nb_step+1)
GMUnDemi1 = zeros(nb_quant,nb_step+1)
GPUnDemi2 = zeros(nb_quant,nb_step+1)
GMUnDemi2 = zeros(nb_quant,nb_step+1)
GPUnDemi1 = 0.5*( g1 + cat(1,g1(2:nb_quant,:),%inf*ones(1,nb_step+1)))//frontiere sup
GMUnDemi1 = 0.5*( g1 + cat(1,-%inf*ones(1,nb_step+1),g1(1:nb_quant-1,:)))//frontiere inf
GPUnDemi2 = 0.5*( g2 + cat(1,g2(2:nb_quant,:),%inf*ones(1,nb_step+1)))//frontiere sup
GMUnDemi2 = 0.5*( g2 + cat(1,-%inf*ones(1,nb_step+1),g2(1:nb_quant-1,:)))//frontiere inf
//pause
// ESPERANCE CONDITIONNELLE
espeG = zeros(g1);
espeG = zeros(g2);
a1 = zeros(nb_quant,nb_quant);
b1 = zeros(nb_quant,nb_quant);
a2 = zeros(nb_quant,nb_quant);
b2 = zeros(nb_quant,nb_quant);
//pause
p = nb_quant*nb_quant;
res = zeros(p,nb_step+1);
res(:,nb_step+1) = exp(-mu1*T)*Worstof_payoff_all(g1(:,nb_step+1),g2(:,nb_step+1),K);
for t = nb_step:-1:1 // recurrence rétrograde
grillefut1 = g1(:,t+1);//g1_t+1
grillefut2 = g2(:,t+1);//g2_t+1
for i = 1:nb_quant // parcours du support de X_{k+1}
//pause
a1(:,i) = (GPUnDemi1(:,t+1) - M_k(g1(i,t),mu1,dt))./S_k(g1(i,t),sigma1,dt);
b1(:,i) = (GMUnDemi1(:,t+1) - M_k(g1(i,t),mu1,dt))./S_k(g1(i,t),sigma1,dt);
a2(:,i) = (GPUnDemi2(:,t+1) - M_k(g2(i,t),mu2,dt))./S_k(g2(i,t),sigma2,dt);
b2(:,i) = (GMUnDemi2(:,t+1) - M_k(g2(i,t),mu2,dt))./S_k(g2(i,t),sigma2,dt);
end
//pause
mat_proba = zeros(nb_quant,nb_quant,2);
mat = zeros(p,p);
mat_proba(:,:,1) = PHI(a1) - PHI(b1);
mat_proba(:,:,2) = PHI(a2) - PHI(b2);
for k = 1:nb_quant
mat(:,k) = prod_tenso_i(mat_proba(:,k,1),mat_proba(:,k,2))
end
//(PHI(a1) - PHI(b1)./(PHI(a2) - PHI(b2));
//tmpres = (res(:,t+1))'*(PHI(a1) - PHI(b1)./(PHI(a2) - PHI(b2));
tmpres = (res(:,t+1))'*mat;
//pause
//espeG(:,t) = tmpres';
res(:,t) = max(tmpres',exp(-mu1*t*dt)*Worstof_payoff_all(g1(:,t),g2(:,t),K));
//pause
end
resf = res(1,1);
endfunction
|
bc5bb39de81cfd82f0b76335779122e6b14837d0 | 283b65d01bdcac12505ff65971236ff6fff3da4d | /tester.sce | 5b912845b9a4c2940baa1908868ad6fffd42c559 | [] | no_license | MeanSoNat/Fixed-Point-Iteration-Scillab | 153af31047fe966e0001d31a7c78a7f780e2d500 | e3ee31f6fd3a55699965e26d5239a84d10512be5 | refs/heads/main | 2023-08-15T10:32:54.674082 | 2021-09-20T15:39:07 | 2021-09-20T15:39:07 | 408,101,694 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 165 | sce | tester.sce | clc; clear all
function r = f(x)
// argument r of f(x)
r=x/2-1;
endfunction
x=2;
while norm(x-f(x))>0.00001 then
x= f(x);
end
disp(x);
exit
// function r=f(x) |
54787354cbd03dc7cb2465d224f6474501a8bcc4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /854/CH14/EX14.6/Example14_6.sce | 6cc25c9429744c7efdae5b8412d6a0ae53c0fa4e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 368 | sce | Example14_6.sce | //clear//
//Caption:Program to find the V number of a step index fiber
//Example14.6
//page 524
clear;
clc;
Lambda = 1.55e-06; //operating wavelength in metre
LambdaC = 1.2e-06; //cutoff wavelength in metre
V = (LambdaC/Lambda)*2.405;
disp(V,'the V number of a step index fiber V=')
//Result
//the V number of a step index fiber V=
// 1.8619355
|
0795a094de067ee809dfd60122a6ca1e4144ca2a | 0f1f220f69c42220ef04954615f32bfa967fb649 | /webTestFiles/testXML/testLink.tst | 7c1fe3fae1d4d0f8b42480347beffbdc9396844c | [
"MIT"
] | permissive | claudio-tortorelli/Bellerofonte | edc2fed23225128c4a5519edbf19f5eb2b675d75 | 0a60184d9f750437e037a601833965713afb2cd3 | refs/heads/main | 2023-08-27T10:18:50.022426 | 2021-11-07T13:45:56 | 2021-11-07T13:45:56 | 425,290,210 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 9,771 | tst | testLink.tst | <orbilio.webTest.bellerofonte.Macro_test ref-id="0">
<object-fields>
<_name>
<string>testLink.txt</string>
</_name>
<_tests>
<java.util.Vector ref-id="1">
<object-fields>
<elementData>
<java.lang.Object-array length="10" ref-id="2">
<orbilio.webTest.bellerofonte.CheckLink ref-id="3">
<object-fields>
<_expectedLink>
<string>name</string>
</_expectedLink>
<_expectedUrl>
<string>url</string>
</_expectedUrl>
<_host declaring="orbilio.webTest.bellerofonte.Single_test">
<string>127.0.0.1/</string>
</_host>
<_path declaring="orbilio.webTest.bellerofonte.Single_test">
<string></string>
</_path>
<_myNumber declaring="orbilio.webTest.bellerofonte.Single_test">
<int val="1"/>
</_myNumber>
<_myName declaring="orbilio.webTest.bellerofonte.Single_test">
<string>CheckLink</string>
</_myName>
<_finalResult declaring="orbilio.webTest.bellerofonte.Single_test">
<string>FAILED</string>
</_finalResult>
<_timeOfExecution declaring="orbilio.webTest.bellerofonte.Single_test">
<string>0.10</string>
</_timeOfExecution>
<serialVersionUID>
<long val="-3795797363968240837"/>
</serialVersionUID>
</object-fields>
</orbilio.webTest.bellerofonte.CheckLink>
<null/>
<null/>
<null/>
<null/>
<null/>
<null/>
<null/>
<null/>
<null/>
</java.lang.Object-array>
</elementData>
<elementCount>
<int val="1"/>
</elementCount>
<capacityIncrement>
<int val="0"/>
</capacityIncrement>
<serialVersionUID>
<long val="-2767605614048989439"/>
</serialVersionUID>
</object-fields>
</java.util.Vector>
</_tests>
<_reports>
<java.util.Vector ref-id="4">
<object-fields>
<elementData>
<java.lang.Object-array length="10" ref-id="5">
<orbilio.webTest.bellerofonte.Report ref-id="6">
<object-fields>
<_id>
<string>testLink.txt</string>
</_id>
<_date>
<string>2-ago-2003 3.09.28</string>
</_date>
<_target>
<string>http://127.0.0.1/index.php</string>
</_target>
<_resultsStr>
<java.util.Vector ref-id="7">
<object-fields>
<elementData>
<java.lang.Object-array length="20" ref-id="8">
<string> <line>---------------------------------------------------</line>
<line>--</line>
</string>
<string>REPORT OF TEST: testLink.txt - 2-ago-2003 3.09.28</string>
<string> <line>---------------------------------------------------</line>
<line>--</line>
</string>
<string> </string>
<string> <line>1.0] TEST: "CheckLink" | Url: http://127.0.0.1/inde</line>
<line>x.php</line>
</string>
<string>   Result expected: "Link: name"</string>
<string>   Result expected: "Url: url"</string>
<string>   - TEST FAILED: The link isn't in the page</string>
<string> </string>
<string>   # Seconds elapsed to accomplish the test: 0.10</string>
<string> </string>
<string> <line>/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/</line>
<line>\</line>
</string>
<string> </string>
<null/>
<null/>
<null/>
<null/>
<null/>
<null/>
<null/>
</java.lang.Object-array>
</elementData>
<elementCount>
<int val="13"/>
</elementCount>
<capacityIncrement>
<int val="0"/>
</capacityIncrement>
<serialVersionUID>
<long val="-2767605614048989439"/>
</serialVersionUID>
</object-fields>
</java.util.Vector>
</_resultsStr>
<_resultsToCompare>
<java.util.Vector ref-id="9">
<object-fields>
<elementData>
<java.lang.Object-array length="10" ref-id="10">
<string>CheckLink</string>
<string>FAILED</string>
<string>0.10</string>
<null/>
<null/>
<null/>
<null/>
<null/>
<null/>
<null/>
</java.lang.Object-array>
</elementData>
<elementCount>
<int val="3"/>
</elementCount>
<capacityIncrement>
<int val="0"/>
</capacityIncrement>
<serialVersionUID>
<long val="-2767605614048989439"/>
</serialVersionUID>
</object-fields>
</java.util.Vector>
</_resultsToCompare>
<serialVersionUID>
<long val="-6043206093934986438"/>
</serialVersionUID>
</object-fields>
</orbilio.webTest.bellerofonte.Report>
<null/>
<null/>
<null/>
<null/>
<null/>
<null/>
<null/>
<null/>
<null/>
</java.lang.Object-array>
</elementData>
<elementCount>
<int val="1"/>
</elementCount>
<capacityIncrement>
<int val="0"/>
</capacityIncrement>
<serialVersionUID>
<long val="-2767605614048989439"/>
</serialVersionUID>
</object-fields>
</java.util.Vector>
</_reports>
<_actualRep>
<ref ref-id="6"/>
</_actualRep>
<_options>
<orbilio.webTest.bellerofonte.TestOption ref-id="11">
<object-fields>
<_protocol>
<string>http://</string>
</_protocol>
<_host>
<string>127.0.0.1/</string>
</_host>
<_path>
<string></string>
</_path>
<_fileName>
<string>index.php</string>
</_fileName>
<_cookie>
<true/>
</_cookie>
<_redirect>
<true/>
</_redirect>
<_refresh>
<true/>
</_refresh>
<_iFrame>
<true/>
</_iFrame>
<_userAgent>
<string>Bellerofonte ver. 1.0</string>
</_userAgent>
<_defOpt>
<false/>
</_defOpt>
<_msgLen>
<false/>
</_msgLen>
<_defChar>
<string></string>
</_defChar>
<_defType>
<string></string>
</_defType>
<_errExc>
<true/>
</_errExc>
<_errScript>
<true/>
</_errScript>
<_imgTxt>
<false/>
</_imgTxt>
<_httpHead>
<false/>
</_httpHead>
<_caseSens>
<false/>
</_caseSens>
<_paramValidate>
<false/>
</_paramValidate>
<_parseWarn>
<false/>
</_parseWarn>
<_postChar>
<false/>
</_postChar>
<_redirDelay>
<string>0</string>
</_redirDelay>
<_scripting>
<true/>
</_scripting>
<serialVersionUID>
<long val="-1627668515131692982"/>
</serialVersionUID>
</object-fields>
</orbilio.webTest.bellerofonte.TestOption>
</_options>
<serialVersionUID>
<long val="2075604539791796767"/>
</serialVersionUID>
</object-fields>
</orbilio.webTest.bellerofonte.Macro_test>
|
8fb8b299595b2b9b0a1f1c416de44aca5c00d833 | 449d555969bfd7befe906877abab098c6e63a0e8 | /944/CH5/EX5.39/example5_39_TACC.sce | 3b234bdfb4e4ec53dcde8839825f53102dae791f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 499 | sce | example5_39_TACC.sce | //example 5.39
clear;
clc;
disp("0.5N2(g)+1.5H2(g)<=>NH3(g)");
//Given:
T=298;//Temperature[K]
Kp=900;//Equilibrium constant for above reaction
P1=0.32;//partial pressure of N2(g)[bar]
P2=0.73;//partial pressure of H2(g)[bar]
P3=0.98;//partial pressure of NH3(g)[bar]
R=8.314;//Universal gas constant[J/K/mol]
//To find the reaction Gibb's energy
G=-R*T*log(Kp);
x=(P1^0.5)*(P2^1.5);
p=P3/x;
Gr=(G+R*T*log(p))*0.001;
printf("The reaction Gibbs free energy is %f KJ/mol ",Gr);
|
66c785b3f9709125fac69b055e1514e315269113 | 717ddeb7e700373742c617a95e25a2376565112c | /3165/CH7/EX7.1/Ex7_1.sce | c38461747fc34c87a70262c4b6a38a60ddca9cbb | [] | no_license | appucrossroads/Scilab-TBC-Uploads | b7ce9a8665d6253926fa8cc0989cda3c0db8e63d | 1d1c6f68fe7afb15ea12fd38492ec171491f8ce7 | refs/heads/master | 2021-01-22T04:15:15.512674 | 2017-09-19T11:51:56 | 2017-09-19T11:51:56 | 92,444,732 | 0 | 0 | null | 2017-05-25T21:09:20 | 2017-05-25T21:09:19 | null | UTF-8 | Scilab | false | false | 151 | sce | Ex7_1.sce | //Example 7 . 1
//To draw the pol ez e r o p l o t
clc ;
z=%z
H1Z =(( z)*(z -1) ) /((z -0.25) *(z -0.5) );
xset ( 'window' ,1);
plzr (H1Z);
|
b42797953428348af872dabb063145ec48ddd6ba | 9cb37875b74a713c93c09fa50ccc70ac0f71ecdb | /GS/SCENARIO/ManipulationTestSAHand.sce | 5de66a92bdeeb4e4184f437d390c162f06d6e059 | [] | no_license | jmainpri/move3d-assets | a5b621daaedaaf8784fed0da1e80d029c83f3983 | 939db49d17a14e052bb58324b70e6112803d3105 | refs/heads/master | 2021-01-16T17:48:56.669119 | 2016-02-16T14:04:09 | 2016-02-16T14:04:09 | 20,237,987 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 10,284 | sce | ManipulationTestSAHand.sce | #************************************************************
# Scenario of grande_salle
#
# date : Wed Mar 16 14:24:51 2011
#************************************************************
p3d_sel_desc_name P3D_ENV grande_salle
p3d_sel_desc_name P3D_ROBOT LOTR_TAPE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT WALLE_TAPE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT GREY_K7
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT GREY_TAPE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.243902 -2.858537 0.790244 -0.878049 0.000000 -85.170732
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
#p3d_sel_desc_name P3D_ROBOT PR2_ROBOT
#p3d_set_robot_steering_method Linear
#p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
#p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT LOWTABLE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT CHAIR1
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT CHAIR2
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT TRASHBIN
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT HRP2TABLE
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.536585 -1.970732 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT SIMPLECHAIR
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT IKEA_SHELF
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 4.097561 -2.926829 0.000000 -0.878049 0.000000 -67.609756
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT SURPRISE_BOX
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT ACCESSKIT
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT SPACENAVBOX
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT PAPERDOG
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT VISBALL_INTERNAL
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT SAHandRight
p3d_set_robot_steering_method Linear
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_constraint p3d_lin_rel_dofs 1 6 1 5 2 1.000000 0.000000 0
p3d_set_cntrt_Tatt2 0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_constraint p3d_lin_rel_dofs 1 10 1 9 2 1.000000 0.000000 0
p3d_set_cntrt_Tatt2 1 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_constraint p3d_lin_rel_dofs 1 14 1 13 2 1.000000 0.000000 0
p3d_set_cntrt_Tatt2 2 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_constraint p3d_lin_rel_dofs 1 18 1 17 2 1.000000 0.000000 0
p3d_set_cntrt_Tatt2 3 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_sel_desc_name P3D_ROBOT JIDOKUKA_ROBOT
p3d_set_robot_steering_method Multi-Localpath
p3d_set_robot_radius 1.000000
p3d_set_robot_current 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 3.539823 -2.163225 0.000000 0.000000 0.000000 0.000000 0.000000 1.097561 147.515770 27.583173 34.000000 108.398495 -49.034600 -96.692378 88.785853 90.000000 -0.658537 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 3.853659 -2.487805 1.112195 0.878049 0.000000 0.000000
p3d_set_robot_goto 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 3.539823 -2.163225 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -156.840267 7.675654 1.671586 35.662741 59.466555 91.483737 77.791212 90.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_constraint p3d_lin_rel_dofs 1 17 1 16 2 1.000000 0.000000 0
p3d_set_cntrt_Tatt2 0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_constraint p3d_lin_rel_dofs 1 21 1 20 2 1.000000 0.000000 0
p3d_set_cntrt_Tatt2 1 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_constraint p3d_lin_rel_dofs 1 25 1 24 2 1.000000 0.000000 0
p3d_set_cntrt_Tatt2 2 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_constraint p3d_lin_rel_dofs 1 29 1 28 2 1.000000 0.000000 0
p3d_set_cntrt_Tatt2 3 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
p3d_constraint p3d_lwr_arm_ik 6 5 6 8 9 10 11 1 34 0 2 7 2
p3d_set_cntrt_Tatt 4 -0.438683 0.100912 0.892958 -0.246214 0.897586 0.001049 0.440839 -0.172975 0.043549 0.994895 -0.091037 0.029823
p3d_set_cntrt_Tatt2 4 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 -0.105000
p3d_set_object_base_and_arm_constraints 34 1 0 1 4
p3d_set_arm_data 4 1 34
p3d_set_camera_pos 4.418078 -2.582016 1.069698 1.674353 4.760685 0.537500 0.000000 0.000000 1.000000 0.000000
|
79f1db146f014bcc04ab71600bba3c8ab39a3a8d | 5080b55e623829b591938239629e80fd638831d7 | /avrora/src/main/resources/edu/ucla/cs/compilers/avrora/test/interpreter/include01.tst | d6b60dabaccd7632b8e1970986d253229438b102 | [] | no_license | avrora-framework/avrora | 2d6a691c72e0d33a4f8e4f448b16bb09db099ad9 | 4c7931101ece06f83f115055c347d575b8256472 | refs/heads/master | 2021-01-17T06:46:35.274447 | 2016-07-20T19:34:52 | 2016-07-20T19:34:52 | 38,120,819 | 0 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 166 | tst | include01.tst | ; @Harness: simplifier
; @Purpose: "Test generation of .include directive"
; @Result: "PASS"
.include "/edu/ucla/cs/compilers/avrora/test/interpreter/include01.inc"
|
4cb569f95eb72bf4429db7983b9ad6a22abe1e43 | a45f93853fdb67523e71e3e7fb88c4298eae1ef7 | /Screens/Connection Failed Game Full Screen.tst | fbee172f3dd0b6222303ec85e886b0d3a2fb88e3 | [] | no_license | voarsh/Disney-Treasure-Planet-Battle-at-Procyon | 68192cbfdf8b823bc8399e3ea1e62d4976b74aed | 99cbbc70701ef6e8f9d95eba1052635de992910f | refs/heads/master | 2020-04-16T01:44:03.761947 | 2016-06-08T10:25:05 | 2016-06-08T10:25:05 | 38,745,932 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,989 | tst | Connection Failed Game Full Screen.tst | ScreenName String 'Connection Failed Game Full Screen'
ImplName String 'Dialog Screen'
ElementChunkArray Int 6
ScreenElementType Int 0
ImplName String 'Front End Dialog Screen Backdrop'
TabIndex Int 1
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 130, 185, 556, 427 ) # left,top,right,bottom
ScreenElementType Int 1
ImplName String 'Open Dialog Previous Button'
TabIndex Int 2
Selectable Bool True
Enabled Bool True
ReferenceArea Rect( 326, 329, 473, 374 ) # left,top,right,bottom
Font String 'BlackChancery16'
Text String 'IDGS_TPFRONTENDTEXT_SCREENS_OK'
Color Colour( 1.000000, 1.000000, 1.000000, 1.000000 )
HotKey Int -1
ScreenElementType Int 1
ImplName String 'Center Justify Label'
TabIndex Int 7
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 4, 242, 800, 275 ) # left,top,right,bottom
Font String 'UniversBold14'
Text String 'IDGS_TPFRONTENDTEXT01_UNABLE_TO_JOIN_GAME'
Color Colour( 0.000000, 0.000000, 0.000000, 1.000000 )
HotKey Int -1
ScreenElementType Int 1
ImplName String 'Center Justify Label'
TabIndex Int 8
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 0, 236, 800, 277 ) # left,top,right,bottom
Font String 'UniversBold14'
Text String 'IDGS_TPFRONTENDTEXT01_UNABLE_TO_JOIN_GAME'
Color Colour( 1.000000, 1.000000, 1.000000, 1.000000 )
HotKey Int -1
ScreenElementType Int 1
ImplName String 'Center Justify Label'
TabIndex Int 9
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 4, 280, 800, 308 ) # left,top,right,bottom
Font String 'UniversBold14'
Text String 'IDGS_TPFRONTENDTEXT01_UNABLE_TO_JOIN_GAME_FULL'
Color Colour( 0.000000, 0.000000, 0.000000, 1.000000 )
HotKey Int -1
ScreenElementType Int 1
ImplName String 'Center Justify Label'
TabIndex Int 10
Selectable Bool False
Enabled Bool True
ReferenceArea Rect( 0, 276, 800, 307 ) # left,top,right,bottom
Font String 'UniversBold14'
Text String 'IDGS_TPFRONTENDTEXT01_UNABLE_TO_JOIN_GAME_FULL'
Color Colour( 1.000000, 1.000000, 1.000000, 1.000000 )
HotKey Int -1
|
0abd2907a66bc09da83794d8940fcce46911cb70 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4/macros/calpol/numer.sci | d94e57af41ade8f1568cdcadf8bc81031d52634b | [
"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 | 425 | sci | numer.sci | function num=numer(r)
//returns the numerator num of a rational function matrix r (r may be
//also a scalar or polynomial matrix
//!
// Copyright INRIA
r1=r(1);
select type(r)
case 1 then
num=r;
case 2 then
num=r;
//-compat next case retained for list/tlist compatibility
case 15 then
if r1(1)<>'r' then error(92,1),end
num=r(2)
case 16 then
if r1(1)<>'r' then error(92,1),end
num=r(2)
else
error(92,1)
end
|
761732e99f947aa34f217a783dc97f568710f90e | fefad5173ecf4ad969ad099f049914ffbce3f491 | /IDK.sci | 7244bb7794ceba2fa41d027d551b77e94ab7a7da | [] | no_license | manojgudi/yelp | a5335a8eb0981aaed4170d7869bd4cc0e36c08c0 | 0a12e0c9f2e045317224638b19136dac1a8f9396 | refs/heads/master | 2020-05-03T05:04:35.128422 | 2013-06-18T08:56:42 | 2013-06-18T08:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 108 | sci | IDK.sci |
exec abc.sce
function [someargs] = never_used_function(function_var)
random_var = cols_sum+9
endfunction
|
e8891c173bb9d0e765158fcb9e7f1cfd2263e920 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1808/CH1/EX1.10/Chapter1_Example10.sce | 833ebad0057e47bf36cf90ac3f1fdf2c640dd423 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 628 | sce | Chapter1_Example10.sce | clc
clear
//INPUT DATA
IP=50;//indicated power in kW
pmi=7;//mean effective pressure in bar
L=0.10;//stroke in m
d=0.08;//bore in m
nc=4;//number of cylinders
n=2;//for 4 cylinders
N=3800;//speed in rpm
//CALCULATIONS
n1=(IP*4*n*60)/(pmi*100*L*3.14*d^2*nc);//Average misfire in rpm
n2=N/2;//Theoretical number of explosions/min
na=N/2;//actual no.of explosion/min
n11=n2-na;//Average number of misfires
IP1=pmi*100*L*3.14*((0.08^2)/4)*N*nc/(n*60);//Indicated power based on actual speed
//OUTPUT
printf('(i)Average misfire is %3.d rpm \n (ii)Indicated power based on actual speed is %3.3f kW',n1,IP1)
|
6ea7f7c7a216bb7bc657af0268d24304a7fc05d4 | b387571bdd041f3b3d606bee94a06f97e87cab34 | /Calculo Numerico/Scilab/iteração não-linear/Metodo Gaus & Seidal.sce | 26039bf8460bfdc041f4e08b3c6d79b7ddce05a8 | [] | no_license | GuilhermeGueds/Faculdade | 6704a9ce91f7cc7874e3fbaefa28555076fab7d7 | 6f84829ea031f80eb04ea2acf78af834d25cd4f9 | refs/heads/master | 2020-03-13T17:52:39.274865 | 2018-08-31T17:00:27 | 2018-08-31T17:00:27 | 131,225,712 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 2,159 | sce | Metodo Gaus & Seidal.sce | MatrizA = []
MatrizB = []
MatrizC = []
controle = 0
controle2 = 0
validade = 0
/*
while(validade ~=1 )
MatrizA = input("Entre com a matiz: ");
MatrizB = input("Entre com os termos separados por ;: ");
parada = input ("Entre com o ponto de parada: ");
limite = input("Entre com o limite de interações: ")
disp('Matriz: ')
disp(MatrizA)
disp("------------------------------")
disp('Interação 0: ')
disp(MatrizB)
disp("------------------------------")
disp('Ponto de parada: ')
disp(parada)
disp("------------------------------")
disp('limite de interações: ')
disp(limite)
disp("------------------------------")
validade = input("Deseja efetuar os calculos 1-Sim | 0-Nao : ")
end
disp ("CALCULANDO.........")
disp("------------------------------")*/
MatrizA = [5,1,1,5;3,4,1,6;3,3,6,0]
MatrizB = [0;0;0]
//MatrizA = [2,-1,1;1,2,3]
//MatrizB = [0;0]
//MatrizA = [20,1,1,2,33;1,10,2,4,38.4;1,2,10,1,43.5;2,4,1,20,45.6]
//MatrizB = [0;0;0;0]
//MatrizA = [10,1,1,2,3,-2,6.57;4,-20,3,2,-1,7,-68.448;5,-3,15,-1,-4,1,-112.05;-1,1,2,8,-1,2,-3.968;1,2,1,3,9,-1,-2.18;-4,3,1,2,-1,12,10.882]
//MatrizB = [1;1;1;1;1;1]
parada = 0.05
limite = 10
n = size(MatrizA,1)
while((controle < n) && controle2 <= limite-1 )
controle = 0
printf('interação: %d\n', controle2);
disp(MatrizB)
for i = 1: (n)
x=0
for j = 1: (n)
if(i ~= j)
x = x + (MatrizA(i,j)* MatrizB(j:j))
end
end
MatrizC = MatrizB
MatrizB(i:i) = (MatrizA(i,n+1) - x)/MatrizA(i,i)
end
for i = 1: (n)
x = MatrizB(i:i) - MatrizC(i:i)
if (x < 0)
x = x * -1;
end
if(x < parada)
controle = controle + 1;y
else
if(x > 0)
disp("------------------------------")
controle = 0
end
end
end
controle2 = controle2 + 1
end
disp("------------------------------")
disp("Resultado final")
printf('\n interação: %d\n', controle2);
disp(MatrizB)
|
4562549c91e71783a595b628ce871b8f14f38903 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH5/EX5.14/Ch05Ex14.sce | 56b9be14cda38f804aea89f2b4a84c7973306c2b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 597 | sce | Ch05Ex14.sce | // Scilab Code Ex5.14: Page:303 (2011)
clc;clear;
lambda = 5.9e-007;....// Wavelength of the reflected light, m
n = 10;....// Order of the ring
D10 = 0.005;....// Diameter of the 10th ring,in m
R = (D10^2)/(4*n*lambda); // Radius of curvature of the lens, m
printf("\nThe radius of curvature of the lens = %6.4f m", R);
t = (D10^2)/(8*R); // Thickness of the corresponding air film, m
printf("\nThe thickness of the corresponding air film = %4.2e m",t);
// Result
// The radius of curvature of the lens = 1.0593 m
// The thickness of the corresponding air film = 2.95e-006 m
|
5b0833163a592c4eecb47afd735ea85ccb9d447a | eb7eeb04a23a477e06f3c0e3d099889caee468b4 | /src/examples/scilab/scilabsaasexample.sce | 9c2ba8a9729db2deacf3580fe2eed5b2ff89c5f4 | [] | no_license | mikeg64/iome | 55699b7d7b3d5c1b006d9c82efe5136b8c909dfd | cc1c94433133e32776dcf16704ec4ec337b1b4a0 | refs/heads/master | 2020-03-30T15:57:33.056341 | 2016-04-13T09:24:27 | 2016-04-13T09:24:27 | 151,387,236 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,354 | sce | scilabsaasexample.sce | //exec('../../IoSetUpGenericScilabSimulation.sce'); //this should be executed by the iome start up application
exec('../../IoGenericScilabSimulation.sce'); //this should be executed by the iome start up application
exec('../ioshallowwater.sce');
//this application is started using the io start scilab application
exec('../paramssaastest1.sce');
portid=8081;
jobid=2;
//open the file generated
portfile='ioserverinfo.txt'; //add comment if we are not running standalone
//portfile='intsaas1_port.txt'; //remove comment if we are not running standalone
//portfile=metadata.name+'_port.txt';
fd=mopen(portfile,'r');
res=mfscanf(fd,'%d %d %s')
mclose(fd);
elist(2)=res(1); //port
//elist(3)=res(2); //id
elist(3)=0;
elist(1)=res(3); //hostname
//Add data to logfile
//simfile='mine.xml'
//createsim(consts,domain,source,metadata,simfile,elist);
//WriteSimulation(simfile,elist);
try
[consts,domain,source]=loadsim('simfile.xml',elist); //remove comment if we are not running standalone
catch
disp('failed to load sim');
exit();
end
mkdir(metadata.directory);
mkdir('dx');
try
runsim(consts,domain,source,elist);
catch
disp('failed to run sim');
exit();
end
//ExitIOME(elist); //remove comment if we are not running standalone
//exit();
|
4b8496a18d8c4f9afb646dbb43c4e2abaf31bc4a | 683d2599aa2be1a5f74b928d545b20e7ea656cd1 | /microdaq/macros/mdaq_disconnect.sci | 99d7577d51e3e5fefb6291a47b99b5411d8ec173 | [
"BSD-3-Clause"
] | permissive | pj1974/Scilab | 5c7fb67d5cae5ac0cdf78e3dd66b97ba50f9fc95 | cd54f1bd8502d6914ad6ff5271ca0e6e3d323935 | refs/heads/master | 2020-12-25T17:12:56.934984 | 2015-10-06T17:16:11 | 2015-10-06T17:16:11 | 41,862,822 | 0 | 0 | null | 2015-09-03T14:00:56 | 2015-09-03T14:00:56 | null | UTF-8 | Scilab | false | false | 676 | sci | mdaq_disconnect.sci | function result = mdaq_disconnect(connection_id)
result = call("sci_mlink_disconnect",..
connection_id, 1, "i",..
"out",..
[1, 1], 2, "i");
if result < 0 then
if result == -1 then
global %microdaq;
ulink(%microdaq.private.mlink_link_id);
exec(mdaq_toolbox_path()+filesep()+"etc"+filesep()+..
"mlink"+filesep()+"MLink.sce", -1);
result = call("sci_mlink_disconnect",..
connection_id, 1, "i",..
"out",..
[1, 1], 2, "i");
else
disp(mdaq_error(result));
end
end
endfunction
|
69b8d470e4436a7ea02582adba8928c7334e0639 | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH28/EX28.04/28_04.sce | 211ededbf93d981aba29e920780f64e7b1b0f056 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,343 | sce | 28_04.sce | //Problem 28.04: A series circuit comprises a 10 ohm resistance, a 5 μF capacitor and a variable inductance L. The supply voltage is 20/_0° volts at a frequency of 318.3 Hz. The inductance is adjusted until the p.d. across the 10 ohm resistance is a maximum. Determine for this condition (a) the value of inductance L, (b) the p.d. across each component and (c) the Q-factor.
//initializing the variables:
R = 10; // in ohms
C = 5e-6; // IN fARADS
rv = 20; //in volts
thetav = 0; // in degrees
f = 318.3; // in Hz
//calculation:
wr = 2*%pi*f
//The maximum voltage across the resistance occurs at resonance when the current is a maximum. At resonance,L = 1/c*wr^2
L = 1/(C*wr^2)
//voltage
V = rv*cos(thetav*%pi/180) + %i*rv*sin(thetav*%pi/180)
//Current at resonance Ir
Ir = V/R
//p.d. across resistance, VR
VR = Ir*R
//inductive reactance, XL
XL = wr*L
//p.d. across inductance, VL
VL = Ir*(%i*XL)
//capacitive reactance, Xc
Xc = 1/(wr*C)
//p.d. across capacitor, Vc
Vc = Ir*(-1*%i*Xc)
//Q-factor at resonance, Qr
Qr = imag(VL)/V
printf("\n\n Result \n\n")
printf("\n (a)inductance, L is %.2E H ",L)
printf("\n (b)p.d. across resistance, VR is %.2f V, p.d. across inductance, VL %.0fi V and p.d. across capacitor, VC %.0fi V ",VR, imag(VL), imag(Vc))
printf("\n (c)Q-factor at resonance, Qr is %.0f ",Qr) |
4960bf7ae27f28d5076ce1a8aa954afceca01f27 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2492/CH7/EX7.6/ex7_6.sce | ce3efb306789bbfb2131e795ba67fa3a6e33b3b3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 322 | sce | ex7_6.sce | // Exa 7.6
format('v',5)
clc;
clear;
close;
// Given data
Ro = 10;// in k ohm
R1 = 10;// in k ohm
R2 = 2.2;// in k ohm
R3 = 3.3;// in k ohm
V1 = 6;// in V
V2 = -3;// in V
V3 = -0.75;// in V
// Output voltage,
Vo = -( ((Ro/R1)*V1) + ((Ro/R2)*V2) + ((Ro/R3)*V3) );// in V
disp(Vo,"The value of Vo in V is");
|
13dd02c2be2381d72703d6c58ebf2176f75316e2 | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/CreatingPlots/testplot2d.sce | d78da94bb8c7ddcdf7540ccad234168741f1b2e7 | [] | no_license | markusmorawitz77/Scilab | 902ef1b9f356dd38ea2dbadc892fe50d32b44bd0 | 7c98963a7d80915f66a3231a2235010e879049aa | refs/heads/master | 2021-01-19T23:53:52.068010 | 2017-04-22T12:39:21 | 2017-04-22T12:39:21 | 89,051,705 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 103 | sce | testplot2d.sce | clf;
x=[0.001:0.02:2*%pi]';
y1=cos(x);y2=sin(x);y3=-sin(x.^2)./x;
plot2d([x x x],[y1 y2 y3],[2 4 5])
|
fc80caae41ae0c748102f18596d1848629b359aa | da5b40d917ec2982828bd9bdf06b18b7bf189f26 | /sim/cmd/test/pump.tst | 77cfe36097d4c3c20e81ed06b43eaaa4d3ea8b9f | [] | no_license | psy007/NNPC-CHEMICAL-SIM- | 4bddfc1012e0bc60c5ec6307149174bcd04398f9 | 8fb4c90180dc96be66f7ca05a30e59a8735fc072 | refs/heads/master | 2020-04-12T15:37:04.174834 | 2019-02-06T10:10:20 | 2019-02-06T10:10:20 | 162,587,144 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,121 | tst | pump.tst | # pump test
units SI
$thermo = VirtualMaterials.Advanced_Peng-Robinson
/ -> $thermo
thermo + WATER
# A theoretical pump: calculate flow from delP -------------
pump = Pump.Pump()
cd pump
In.Fraction = 1.0
In.P = 101.325
In.T = 20
Out.P = 300.0
Efficiency = 0.8
In
Out
InQ = 300
In
Out
InQ
InQ = None
In.T =
Out.T = 20.0247
In.MoleFlow = 205.10982071
In
Out
InQ
Out.T =
In.T = 20.0
cd /
# A real pump with one set of pump curves ------------------
# where head-flow-efficiency-power are restricted
realPump = Pump.PumpWithCurve()
cd realPump
NumberTables = 1
PumpSpeed0 = 100.0
FlowCurve0 = 0.0 1000.0 2000.0 3000.0 4000.0 5000.0 6000.0 7000.0 # mass flow
HeadCurve0 = 0.0 10.0 20.0 30.0 40.0 50.0 60.0 70.0
EfficiencyCurve0 = 0.0 0.5 0.7 0.8 0.8 0.7 0.5 0.0
PumpSpeed = 30.0 # operating pump speed, not used here
In.Fraction = 1.0
In.P = 101.325
In.T = 20
In.VolumeFlow = 3600.0 # calculate delP from flow
In
Out
InQ
# calculate flow from delP
In.VolumeFlow = None
Out
Out.P = 400.0
Out
InQ
copy /pump /realPump
paste /
/pump.Out
/pumpClone.Out
/realPump.Out
/realPumpClone.Out
|
825aa4b8879d2a40ac0aedc5841fecd1e0166382 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1133/CH5/EX5.16/Example5_16.sce | 0aca2e17bbbeae9710be27eecea0392e8e829f98 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,151 | sce | Example5_16.sce | //Example 15.6
clc
disp(" D'' D")
disp("D 0 1")
disp("0 2 3")
disp("0 4 5")
disp("1 6 7")
disp("D 8 9")
disp("1 10 11")
disp("D'' 12 13")
disp("0 14 15")
disp("")
disp("Here, implementation table is listed for least significant bit i.e. D. The first column list all minterms with D is complementated and the second column lists all the minterms with D uncomplemented, as shown in fig. 5.30(a). Then according to data inputs given to the multiplexer minterms are circled applying following rules.")
disp("1. If multiplexer input is 0, don''t circle any minterm in the corresponding row.")
disp("2. If multiplexer input 1, circle both the minterms in the corresponding row.")
disp("3. If multiplexer input is D, circle the minterm belongs to cloumn D in the corresponding row.")
disp("4. If multiplexer input is D'', circle the minterm belongs to column D'' in the corresponding row.")
disp("This is illustrated in fig. 5.30(b). Now circled minterms can be written to get Boolean expression as follows :")
disp(" Y = A''B''C''D + A''BCD'' + A''BCD + AB''C''D + AB''CD'' + AB''CD + ABC''D''")
|
7698d5ff1b433dd26b1087c4c9039df2fef6e365 | 449d555969bfd7befe906877abab098c6e63a0e8 | /50/CH3/EX3.27/ex_3_27.sce | 242a16db7a7d9fbc1fc756ffc1a60df5f7339290 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 338 | sce | ex_3_27.sce | // example 3.27
// a) find eigenvalue and eigen vector;
// b) verify inv(S)*A*S is a diagonal matrix;
// 1)
A=[1 2 -2 ;1 1 1;1 3 -1];
B=[1 0 0;0 1 0; 0 0 1];
[x,lam] = geigenvectors(A,B);
inv(x)*A*x
// 2)
A=[3 2 2;2 5 2;2 2 3];
B=[1 0 0;0 1 0; 0 0 1];
[x,lam] = geigenvectors(A,B);
inv(x)*A*x
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.