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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0c99b7b1032e467b5a04aed7ab94ce2e6bc1047f | 449d555969bfd7befe906877abab098c6e63a0e8 | /52/CH3/EX3.7/Example3_7.sce | 2873ebb16e348a118b2165b4900aa8357914e8a2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 553 | sce | Example3_7.sce | //Example 3.7
//Program to Compute circular convolution of following sequences
//x[n]=[1,2,2,1,0]
//Y[k]=exp(-j*4*pi*k/5).X[k]
clear;
clc ;
close ;
x=[1,2,2,1,0];
X=fft(x,-1);
k=0:1:4;
j=sqrt(-1);
pi=22/7;
H=exp(-j*4*pi*k/5);
Y=H.*X;
//IDFT Computation
y=fft(Y,1);
//Display sequence y[n] in command window
disp(round(y),"y[n]=");
//Plots
n=0:1:4;
a = gca ();
a.y_location ="origin";
a.x_location ="origin";
plot2d3(n,round(y),5);
poly1=a.children(1).children (1);
poly1.thickness=2;
xtitle('Plot of sequence y[n]','n','y[n]'); |
c1177b44c6e1c18a58825445741ed397a19295f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /317/CH20/EX20.9/example9.sce | 8bfed405a451581607d499b5e9bc52996b9b7597 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 602 | sce | example9.sce | // find output current and maximum load resistance
// Electronic Principles
// By Albert Malvino , David Bates
// Seventh Edition
// The McGraw-Hill Companies
// Example 20-9, page 768
clear; clc; close;
// Given data
R=15*10^3;// in ohms
Vin=3;// input voltage in volts
Vcc=15;// in volts
// Calculations
iout=-Vin/R;// output current in amperes
Rlmax=(R/2)*((Vcc/Vin)-1);// maximum load resistance in ohms
disp("Amperes",iout,"output current=")
disp("ohms",Rlmax,"Maximum load resistance=")
// Result
// Output current is -0.2 mAmperes
// Maximum load resistance is 30 Kohms |
6122fed7dfa0c8e806007cff1accf5cd67f82410 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1847/CH2/EX2.52/Ch02Ex52.sce | b624d0b68ce16ec9dd31c2fed17552f17799fdca | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 586 | sce | Ch02Ex52.sce | // Scilab Code Ex2.52:: Page-2.36(2009)
clc; clear;
lambda = 5893e-010; // Wavelength of light used, m
mu = 1; // Refractive index of the glass
b = 1; // Assume fringe width to be unity, cm
// As b = l/20, solving for l
l = b*20; // Length of the film, m
// As b = lambda/(2*mu*theta) and theta = t/l, solving for t
t = lambda*l/(2*mu); // Thickness of the wire separating two glass surfaces, m
printf("\nThe thickness of the wire separating two glass surfaces = %4.2e m", t);
// Result
// The thickness of the wire separating two glass surfaces = 5.89e-06 m
|
47613dc9b0ec2521d9993fe8e948e68b585b9d48 | 333d6160f9a6d9e23a6bea06cd03e5e8fa8785a9 | /RobotLab2/SciLab/ReadOmegaNls.sce | 5bb2b825ea50f382856dd9d1e1c89d3d8ee13514 | [
"MIT"
] | permissive | DmitryIo/ROBOTS | 6f6bb12a8e08dd28024136ee1a8a84ea7254da60 | 777f0884a098c4f21d044985c25a8be276334116 | refs/heads/master | 2023-04-30T12:52:54.082977 | 2021-05-17T19:55:34 | 2021-05-17T19:55:34 | 294,091,170 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 176 | sce | ReadOmegaNls.sce | fwWnls = read(get_absolute_file_path("ReadOmegaNls.sce") + "..\Data\FwWnls.txt", 10, 1)
rvWnls = read(get_absolute_file_path("ReadOmegaNls.sce") + "..\Data\RvWnls.txt", 10, 1)
|
900abeae6cffd9e32d4ac0be521384b7c1665c0c | 67111708463b7ee6e4d7ce736205083215695dd0 | /Guia de onda.sce | de6e32dac62a6f41af6535dd4567f06fb861aad7 | [] | no_license | HilkenM/Eletromagnetismo-Aplicado | bcfc2470e14e227ac398568a0de9605c5da27dc3 | e1d7deeeec73aa55cd2bf7bc3442d2b5fa3a7839 | refs/heads/master | 2022-12-15T09:01:59.550902 | 2020-09-01T17:15:29 | 2020-09-01T17:15:29 | 292,059,526 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,000 | sce | Guia de onda.sce | //Limpa a tela e os dados anteriores
clc
clear
nomes = ['WR975','WR650','WR430','WR284','WR187','WR137','WR90','WR62']
guias = [
[9.75, 4.875],
[6.5, 3.25],
[4.3,2.15],
[2.84,1.34],
[1.872,0.872],
[1.372,0.622],
[0.9,0.4],
[0.622,0.311]
];
sg=size(guias)
//Modo TMmn
m=1;n=1;
//Numero de partes
pa=20;pb=20;
//Entradas
printf("Você deseja plotar um:\n\t1-Guia de Onda da Tabela\n\t2-Guia personalizado")
op = input("Selecione uma opção:")
if(op==1)
clc
printf('Guias disponíveis:\n')
for i=1:sg(1)
printf("\t%i-%s\n",i,nomes(i))
end
op = input("Selecione uma opção:")
g=guias(op,:);
a=g(1);
b=g(2);
elseif(op==2)
a = input("Insira a:")
b = input("Insira b: ")
end
//Calculo dos Betas
betax=m*%pi/a;
betay=n*%pi/b;
//Dados do gráfico de contorno .: Gráfico 1
for i=0:1:a*pa
x(i+1)=i/pa;
for j=0:b*pb
y(j+1)=j/pb;
Ez(i+1,j+1)=sin(betay*y(j+1))*sin(betax*x(i+1));
end
end
//Dados do gráfico convencional 1, com y=b/2 .: Gráfico 2
yc1=b/2;
xc1=0:a/pa:a;
Ezc1=20*sin(betax*xc1)*sin(betay*yc1);
//Dados do gráfico convencional 2, com x=a/2 .: Gráfico 3
xc2=a/2;
yc2=0:b/pb:b;
Ezc2=20*sin(betax*xc2)*sin(betay*yc2);
//Dados do gráfico surf (3D) .: Gráfico 4
[X,Y]=meshgrid(0:a/pa:a,0:b/pb:b);
Ezs=10*sin(betax.*X).*sin(betay.*Y);
//Plotar gráfico 1
subplot(2,2,3)
contour2d(x,y,Ez,6,rect=[0,0,a,b])
title("Gráfico de curvas de nivel")
xlabel("x")
ylabel("y")
//Plotar gráfico 2
subplot(2,2,2)
plot2d(xc1,Ezc1)
title("Intensidade de Ez ao longo de a em y=b/2")
xlabel("x")
ylabel("20*Ez em y = b/2")
//Plotar gráfico 3
subplot(2,2,1)
plot2d(yc2,Ezc2)
title("Intensidade de Ez ao longo de b em x=a/2")
xlabel("y")
ylabel("20*Ez em x = a/2")
//Plotar gráfico 4
subplot(2,2,4)
surf(X,Y,Ezs)
title("Gráfico em 3d da intensidade de 10*Ez")
xlabel("x")
ylabel("y")
zlabel("10*Ez")
|
14bdeb80479a588b2166dd3143d0b1ab7e7a36f2 | 7501faaefdf67543ac3947657dec467accc58f6a | /projects/02/Zero16.tst | 1e00347097d59829d5f01e48eb44cc998a7f0464 | [] | no_license | brettshollenberger/elements-of-computing-systems | 5f8edcdce258fe09377bc6d4827f07a475e36214 | 48f831b968ab86f5cc2885798272807f3e6d21e7 | refs/heads/master | 2020-06-04T00:57:52.556546 | 2015-01-25T06:16:07 | 2015-01-25T06:16:07 | 29,725,277 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 639 | tst | Zero16.tst | // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/02/Zero16.tst
load Zero16.hdl,
output-file Zero16.out,
compare-to Zero16.cmp,
output-list in%B1.16.1 sel%B3.1.3 out%B1.16.1;
set in %B0000000000000000,
set sel 1,
eval,
output;
set in %B1111111111111111,
set sel 1,
eval,
output;
set in %B1010101010101010,
set sel 1,
eval,
output;
set in %B0000000000000000,
set sel 0,
eval,
output;
set in %B1111111111111111,
set sel 0,
eval,
output;
set in %B1010101010101010,
set sel 0,
eval,
output;
|
9f0ef89a50352d3fe797eb5c9671cb3b5890a122 | 80f6640a2c71231b0785c80664e4e4a94a25f3e8 | /vcast/manager_diner/environment/MANAGER/MANAGER.tst | 82b684ecbaed4b4bd3081b9a054b052916d92d5d | [] | no_license | jasonmasters/vcdemo | 53baeff69b371f0862fbc7e56b674ad7e73fdda7 | 37a18159f1428ffd6e7e42ee7c5e1999cf2d4a89 | refs/heads/master | 2020-04-08T08:53:10.807613 | 2018-11-26T16:20:28 | 2018-11-26T16:20:28 | 159,197,801 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 10,082 | tst | MANAGER.tst | -- VectorCAST 18.sp3 (10/18/18)
-- Test Case Script
--
-- Environment : MANAGER
-- Unit(s) Under Test: manager
--
-- Script Features
TEST.SCRIPT_FEATURE:C_DIRECT_ARRAY_INDEXING
TEST.SCRIPT_FEATURE:CPP_CLASS_OBJECT_REVISION
TEST.SCRIPT_FEATURE:MULTIPLE_UUT_SUPPORT
TEST.SCRIPT_FEATURE:MIXED_CASE_NAMES
TEST.SCRIPT_FEATURE:STATIC_HEADER_FUNCS_IN_UUTS
--
-- Unit: manager
-- Subprogram: Add_Included_Dessert
-- Test Case: COND_1_ROW_1_PAIR_a_TTT
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:COND_1_ROW_1_PAIR_a_TTT
TEST.MCDC_BASIS_PATH:2 of 8
TEST.NOTES:
This is an automatically generated test case.
Test Path 2
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> TRUE
Row number 1 forms a pair with Row 5 for Condition #1, subcondition "a".
Condition a ==> TRUE
Condition b ==> TRUE
Condition c ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:CAESAR
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:STEAK
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:MIXED_DRINK
TEST.END
-- Test Case: COND_1_ROW_2_PAIR_c_TTF
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:COND_1_ROW_2_PAIR_c_TTF
TEST.MCDC_BASIS_PATH:4 of 8
TEST.NOTES:
This is an automatically generated test case.
Test Path 4
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
Row number 2 forms a pair with Row 1 for Condition #1, subcondition "c".
Condition a ==> TRUE
Condition b ==> TRUE
Condition c ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:CAESAR
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:STEAK
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:NO_BEVERAGE
TEST.END
-- Test Case: COND_1_ROW_3_PAIR_b_TFT
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:COND_1_ROW_3_PAIR_b_TFT
TEST.MCDC_BASIS_PATH:3 of 8
TEST.NOTES:
This is an automatically generated test case.
Test Path 3
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
Row number 3 forms a pair with Row 1 for Condition #1, subcondition "b".
Condition a ==> TRUE
Condition b ==> FALSE
Condition c ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:NO_SALAD
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:STEAK
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:MIXED_DRINK
TEST.END
-- Test Case: COND_1_ROW_5_PAIR_a_FTT
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:COND_1_ROW_5_PAIR_a_FTT
TEST.MCDC_BASIS_PATH:1 of 8
TEST.NOTES:
This is an automatically generated test case.
Test Path 1
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
Row number 5 forms a pair with Row 1 for Condition #1, subcondition "a".
Condition a ==> FALSE
Condition b ==> TRUE
Condition c ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:CAESAR
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:NO_ENTREE
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:MIXED_DRINK
TEST.END
-- Test Case: COND_2_ROW_1_PAIR_a_TTT
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:COND_2_ROW_1_PAIR_a_TTT
TEST.MCDC_BASIS_PATH:6 of 8
TEST.NOTES:
This is an automatically generated test case.
Test Path 6
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> TRUE
Row number 1 forms a pair with Row 5 for Condition #2, subcondition "a".
Condition a ==> TRUE
Condition b ==> TRUE
Condition c ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:GREEN
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:LOBSTER
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:WINE
TEST.END
-- Test Case: COND_2_ROW_2_PAIR_c_TTF
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:COND_2_ROW_2_PAIR_c_TTF
TEST.MCDC_BASIS_PATH:8 of 8
TEST.NOTES:
This is an automatically generated test case.
Test Path 8
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> FALSE
Row number 2 forms a pair with Row 1 for Condition #2, subcondition "c".
Condition a ==> TRUE
Condition b ==> TRUE
Condition c ==> FALSE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:GREEN
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:LOBSTER
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:NO_BEVERAGE
TEST.END
-- Test Case: COND_2_ROW_3_PAIR_b_TFT
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:COND_2_ROW_3_PAIR_b_TFT
TEST.MCDC_BASIS_PATH:7 of 8
TEST.NOTES:
This is an automatically generated test case.
Test Path 7
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> FALSE
Row number 3 forms a pair with Row 1 for Condition #2, subcondition "b".
Condition a ==> TRUE
Condition b ==> FALSE
Condition c ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:NO_SALAD
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:LOBSTER
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:WINE
TEST.END
-- Test Case: COND_2_ROW_5_PAIR_a_FTT
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Included_Dessert
TEST.NEW
TEST.NAME:COND_2_ROW_5_PAIR_a_FTT
TEST.MCDC_BASIS_PATH:5 of 8
TEST.NOTES:
This is an automatically generated test case.
Test Path 5
(1) if ((Order->Entree == (STEAK) && Order->Salad == (CAESAR)) && Order->Beverage == (MIXED_DRINK)) ==> FALSE
(2) if ((Order->Entree == (LOBSTER) && Order->Salad == (GREEN)) && Order->Beverage == (WINE)) ==> FALSE
Row number 5 forms a pair with Row 1 for Condition #2, subcondition "a".
Condition a ==> FALSE
Condition b ==> TRUE
Condition c ==> TRUE
Test Case Generation Notes:
TEST.END_NOTES:
TEST.VALUE:manager.Add_Included_Dessert.Order:<<malloc 1>>
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Salad:GREEN
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Entree:NO_ENTREE
TEST.VALUE:manager.Add_Included_Dessert.Order[0].Beverage:WINE
TEST.END
-- Subprogram: Add_Party_To_Waiting_List
-- Test Case: Add_Party_To_Waiting_List.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Add_Party_To_Waiting_List
TEST.NEW
TEST.NAME:Add_Party_To_Waiting_List.001
TEST.COMPOUND_ONLY
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:<<malloc 4>>
TEST.VALUE:manager.Add_Party_To_Waiting_List.Name:"Bob"
TEST.END
-- Subprogram: Get_Next_Party_To_Be_Seated
-- Test Case: Get_Next_Party_To_Be_Seated.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Get_Next_Party_To_Be_Seated
TEST.NEW
TEST.NAME:Get_Next_Party_To_Be_Seated.001
TEST.COMPOUND_ONLY
TEST.EXPECTED:manager.Get_Next_Party_To_Be_Seated.return:"Bob"
TEST.END
-- Subprogram: Place_Order
-- Test Case: Lobster
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:Lobster
TEST.REQUIREMENT_KEY:FR17
TEST.VALUE:manager.Place_Order.Order.Entree:LOBSTER
TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Check_Total:18
TEST.END
-- Test Case: Place_Order.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:Place_Order.001
TEST.REQUIREMENT_KEY:FR17
TEST.VALUE:manager.Place_Order.Order.Entree:STEAK
TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Check_Total:14
TEST.END
-- Test Case: Place_Order.002
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:Place_Order.002
TEST.VALUE:manager.Place_Order.Table:<<MIN-1>>
TEST.END
-- Test Case: Place_Order.003
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:Place_Order.003
TEST.END
-- Test Case: chicken
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:chicken
TEST.REQUIREMENT_KEY:FR17
TEST.VALUE:manager.Place_Order.Order.Entree:CHICKEN
TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Check_Total:10
TEST.END
-- Test Case: chicken.001
TEST.UNIT:manager
TEST.SUBPROGRAM:Place_Order
TEST.NEW
TEST.NAME:chicken.001
TEST.REQUIREMENT_KEY:FR17
TEST.VALUE:manager.Place_Order.Order.Entree:CHICKEN
TEST.EXPECTED:uut_prototype_stubs.Update_Table_Record.Data.Check_Total:10
TEST.END
-- COMPOUND TESTS
TEST.SUBPROGRAM:<<COMPOUND>>
TEST.NEW
TEST.NAME:Waiting_llist
TEST.SLOT: "1", "manager", "Add_Party_To_Waiting_List", "1", "Add_Party_To_Waiting_List.001"
TEST.SLOT: "2", "manager", "Get_Next_Party_To_Be_Seated", "1", "Get_Next_Party_To_Be_Seated.001"
TEST.END
--
|
47a61422f9fd95a7a77c49082365f5693876043e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2762/CH11/EX11.1.1/11_1_1.sce | c37cc919d5cde594cc4266f56a4bd00c5458e760 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 635 | sce | 11_1_1.sce | //Transport Processes and Seperation Process Principles
//Chapter 11
//Example 11.1-1
//Vapour Liquid Seperation Processes
//given data
pa=[116.9 135.5 155.7 179.2 204.2 240]
pb=[46 54 63.3 74.3 86 101.32]
P=101.32
//eq: paxa+pb(1-xa)=P
xa=[];
ya=[];
for i=1:6
xa(i)=(P-pb(1,i))/(pa(1,i)-pb(1,i))
ya(i)=((pa(1,i))*xa(i))/P
end
xa(7)=1;
ya(7)=1;
m=linspace(0,1,10)
n=linspace(0,1,10)
plot(m,n)
plot2d(xa,ya,rect=[0 0 1 1])
xtitle("raolts law","xa","ya")
mprintf("xa=%f",xa);
mprintf("ya=%f",ya);
|
2eeffde4b5c1dbd7162961c08040e46db6454b36 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1472/CH14/EX14.2/14_2.sce | 37bda28b905e1410fad9ff0a3bb856f93e39f66f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 196 | sce | 14_2.sce | clc
//initialization of varaibles
h1=1399.2 //B/lb
h2s=976 //B/lb
wt=8 //lb /hp hr
//calculations
Wt=2545/wt
etaT=Wt/(h1-h2s)
h2=h1-Wt
//results
printf("Engine efficiency = %.3f",etaT)
|
aa466c94aed6ebfed749abae94db8955f8586b23 | 717ddeb7e700373742c617a95e25a2376565112c | /806/DEPENDENCIES/10_62.sci | ea197703b1986facdae042e00286d204d1a866a9 | [] | 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 | 71 | sci | 10_62.sci | d1=17.5//mm(Diameter at vena contracta)
d2=20//mm(diameter of orifice) |
b16bd8fa588ad7d5e0f332d68a32272c75f12cf4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1466/CH24/EX24.3/24_3.sce | e79798f89124089556b99a0bdd3a959621274e49 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 24_3.sce |
clc
//initialisation of variables
g=32.2//ft/sec^2
p0=8.56//lb/in^2
A=2.082*10^-4//ft^2
W=0.0212//lb/sec
v0=1057.6//ft/sec
T1=213.7//R
T2=206//R
//CALCULATIONS
b=2*g*778*0.24
k1=sqrt(b)
c=144*A*g/W
k=p0+v0/c
v1=k1*sqrt(T1-T2)
p1=k-v1/c
//RESULTS
printf ('\n velocity= %.f ft/sec',v1 )
printf ('\n pressure= %.2f lb/in^2',p1 )
|
6bd65c4d3557031898adabafc14e3d355d977ec0 | d28ac1005a6915867fc08f266aa21d2c63de1cce | /jacobi.sci | db96929e7c6031098aaf978ff8027c94aa8d261f | [
"MIT"
] | permissive | isaacgdo/numeric-cryptography | 92a1a4717285ebbdbb190e9d9a3e35c2f202cc3a | 7c4de4319f9af4f0c11a6abbc3a16df0ea53efa6 | refs/heads/master | 2020-03-09T08:56:19.959135 | 2018-05-16T01:42:13 | 2018-05-16T01:42:13 | 128,700,429 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,384 | sci | jacobi.sci | //MÉTODO DE JACOBI
//A = matriz de coeficientes do sistema linear
//b = vetor de termos independentes do sistema
//xo = solução inicial, pois se trata de um método iterativo
//e = erro de aceitação estipulado
//n = número máximo de iterações que algoritmo deve realizar
//iter = número de iterações realizadas para a convergência do sistema
//x = vetor de soluções do sistema
//xa = x anterior, vetor de soluções atualizado a cada iteração
function [x,iter] = jacobi(A,b,xo,e,n)
//pegando o tamanho da matriz
[l,c] = size(A);
//inicializando o erro, solução inicial e iterações realizadas
erro = 1;
x = xo;
iter = 0;
//repetição do método enquanto o erro estipulado não é satisfeito
while erro > e & iter < n
xa = x;
//percorrendo as linhas e isolando as incógnitas
for i = 1:l
soma = 0;
for j = 1:l
if j ~= i
//utilizando o valor inicial da solução (xa)
//para calular os elementos de x
soma = soma + A(i,j)*xa(j);
end
end
//cálculo das incógnitas
x(i) = (b(i) - soma) / A(i,i);
end
iter = iter + 1;
//atualizando o valor do erro a cada iteração
erro = max(abs(x-xa)) / max(abs(x));
end
endfunction
|
e4af1cebd6e3363e487b50363b579bbdb9803a38 | 449d555969bfd7befe906877abab098c6e63a0e8 | /995/CH1/EX1.14/Ex1_14.sce | 44ee54e9c7212845b4b4e2f074133b9716fdd126 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 104 | sce | Ex1_14.sce | //Ex:1.14
clc;
clear;
close;
r=12;//in ohms
v=6;//in volts
i=(v/r);
printf("Current = %f Amp",i); |
6dd0e705e4aadbad42301307e454ca610bbb9f99 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1733/CH4/EX4.17/4_17.sce | 34cacea82333b133513142cdd8c9b26d137dbf54 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 117 | sce | 4_17.sce | //4.16
clc;
Vav=250;
V=150;
Toff=1*10^-3;
Ton=(Vav/V)*Toff-Toff;
printf("Period of conduction = %.6f sec", Ton) |
a9c1df49f7ec3d8b63e14f0b58638d83c00f2102 | ebfed86dee276110294a4e93fa80377908bbd317 | /macros/peopleDetector.sci | 38570abc79ba50866669bd99310c1b49aff26036 | [] | no_license | gursimarsingh/FOSSEE-Image-Processing-Toolbox | a9d46b698c98566fec867eb2ce3cfeb427058d5c | 165f6d7d1f20262a1637a923c6aad6e663ad1538 | refs/heads/master | 2021-08-16T19:18:59.591175 | 2017-11-08T17:55:04 | 2017-11-08T17:55:04 | 96,531,802 | 0 | 0 | null | 2017-07-07T11:21:10 | 2017-07-07T11:21:10 | null | UTF-8 | Scilab | false | false | 3,722 | sci | peopleDetector.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:Gursimar Singh & Suraj Prakash
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
function bboxes = peopleDetector(image, varargin)
// Detects people in an image
//
// Calling Sequence
// [bboxes] = peopleDetector(image)
// [bboxes] = peopleDetector(image, ["Parameter1", value1, ["Parameter2", value2 ... ]])
//
// Parameters
// image : input image
// hitThreshold : threshold for distance between features and SVM classifying plane. Default value is 0.
// winStride : Window stride. Multiple of block stride. Default value (8, 8)
// padding : Default value (16, 16).
// scale : Coefficient of the detection window increase. Default value 1.05
// finalThreshold : Coefficient to regulate the similarity threshold. Some people may cover more boxex. To regulate that it is used. Default value 2.
// useMeanshiftGrouping : Default value false.
// bboxes : M * 4 matrix denoting M bounding boxes for detected people
//
// Description
// The peopleDetector function detects standing people in the image using the Histogram of Oriented Gradient (HOG) features and a trained Support Vector Machine
// (SVM) classifier. It detects standing peole in the image. It returns M * 4 matrix having M detected people in the image. Each row of matrix contains
// [x, y, width, height] field. x, y represent the upper left corner point of the bounding box. width and height represent the width and height of the bounding box
// respectively.
//
// Examples
// I = imread('images/peopletest.jpg');
// [bboxes] = peopleDetector(I);
//sz=size(x);
//for i=1:sz(1)
// im=rectangle(im,x(i,1),x(i,2),x(i)+x(i,3),x(i,2)+x(i,4),0,255,0,1,4,0);
//end
//imshow(im);
//
// Examples
// I = imread('images/peopletest2.jpeg');
// [bboxes] = peopleDetector(I, "scale", 1.02);
//sz=size(x);
//for i=1:sz(1)
// im=rectangle(im,x(i,1),x(i,2),x(i)+x(i,3),x(i,2)+x(i,4),0,255,0,1,4,0);
//end
//imshow(im);
//
// Authors
// Suraj Prakash
// Gursimar Singh
//
//See also
//rectangle
//facePredict
[ lhs rhs ] = argn(0)
if lhs > 1 then
error(msprintf("Too many output arguments"))
end
if rhs > 13 then
error(msprintf("Too many input arguments"))
end
if modulo(rhs, 2) <> 1 then
error(msprintf("Wrong number of input arguments"))
end
image_list = mattolist(image)
msprintf("Too many input arguments");
bboxes=[];
if rhs == 1 then
bboxes = raw_peopleDetector(image_list);
elseif rhs == 3 then
bboxes = raw_peopleDetecotr(image_list, varargin(1), varargin(2));
elseif rhs == 5 then
bboxes = raw_peopleDetector(image_list, varargin(1), varargin(2), varargin(3), varargin(4));
elseif rhs == 7 then
bboxes = raw_peopleDetector(image_list, varargin(1), varargin(2), varargin(3), varargin(4), varargin(5), varargin(6));
elseif rhs == 9 then
bboxes = raw_peopleDetector(image_list, varargin(1), varargin(2), varargin(3), varargin(4), varargin(5), varargin(6), varagin(7), varargin(8));
elseif rhs == 11 then
bboxes = raw_peopleDetector(image_list, varargin(1), varargin(2), varargin(3), varargin(4), varargin(5), varargin(6), varargin(7), varargin(8), varargin(9), varargin(10));
elseif rhs == 13 then
bboxes = raw_peopleDetector(image_list, varargin(1), varargin(2), varargin(3), varargin(4), varargin(5), varargin(6), varargin(7), varargin(8), varargin(9), varargin(10), varargin(11), varargin(12));
end
endfunction
|
db1417f35196c3ec8c3728a26d9f706936a4e096 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2510/CH15/EX15.10/Ex15_10.sce | 744313fa8960bbcb2591d63d1f6bfd67c8e6d011 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 278 | sce | Ex15_10.sce | //Variable declaration:
MC = 2000.0
mc = 1000.0
U = 2000.0
A = 10.0
T1 = 300.0
t1 = 60.0
e = %e
//Calculation:
B = 1.0/mc
b = 1.0/MC
x = B/b
y = U*(B-b)
T2 = ((x-y)*T1 + x*(e-y)*t1)/(2*e-1)
t2 = t1+(T1-T2)/x
//Result:
printf("T2 = : %.0f ",T2)
printf("t2 = : %.0f ",t2)
|
72d0ea75e004c2416fde702ec8823debcc2bcb96 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2465/CH4/EX4.11/Example_11.sce | da8cc6183a84541dac17090351f400b84080302c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 288 | sce | Example_11.sce | //Chapter-4,Example 11,Page 96
clc;
close;
R= 8.31 //gas constant
T= 273+25 // temperature in Kelvin
P1= 2 //pressure in atm
P2= 1 //pressure in atm
w= 2.303 *R*T*log10(P1/P2) //maximum work
printf('maximum work done is %.f J', w)
//mistake in textbook
|
142590c56d58bd2dd52f7245091fa5fa55c24736 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3537/CH2/EX2.10/Ex2_10.sce | 5d8bcb19fe9a95386ce2deb2aae82fcdd1abdb93 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 292 | sce | Ex2_10.sce | //Example 2_10
clc();
clear;
//To calculate the width of the central maxima
d=2 //units in meters
lemda=500*10^-9 //units in meters
a=1.5*10^-3 //units in meters
x=((2*d*lemda)/a)*10^3
printf("width of central maximum is %.2f mm",x)
|
8bb8dce672af193908b8061632fa9e369273d614 | 6026fe875fa9c0110c09a7af4fc3aa26baa29995 | /secantMethod.sce | 3e6071d11649a16d8cbb511caaf9852eb908a9ba | [] | no_license | mektor/numMethodsP1 | a31e8db089be7c00edde92506154585cb14b894f | 407f8b144e8ed1ced701a8dccba076cff059ddbf | refs/heads/master | 2021-01-23T23:20:12.806163 | 2015-09-03T15:36:09 | 2015-09-03T15:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 420 | sce | secantMethod.sce | clear()
x0= input("valor de x0: ")
x1= input("valor de x1: ")
function y=f(x)
y=(x^7)-1000
endfunction
x2 = 0
for i = 0:12
if x1 == x0 then
disp("el valor de x1 y x2 son iguales :" )
abort
else
x2 = x1 - (f(x1)/((f(x1)-f(x0))/(x1-x0)))
disp(x2,"el valor de"+ string(i)+ " :" )
x0 = x1
x1 = x2
end
end
|
c0fe851eb083e72f06efdda86989ae8177b024ec | 499aefe6d7f6c92d69f539fe6fe98b8b27ae3021 | /Unit 4.sce | cc5424a535158ba03283166777f42a6112833cfe | [] | no_license | raksha-n/Linear-Algebra-Assignment | 1e40fb9b20a8e3d2e38dbffeb46696642e3967e4 | 1f5af1ee9fda8ae3ac441c0aaeb52c988ea4a4db | refs/heads/master | 2020-12-31T08:54:30.065183 | 2020-04-04T16:00:14 | 2020-04-04T16:00:14 | 238,961,422 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,838 | sce | Unit 4.sce | //QUESTION 1
//GRAM - SCHMIDT ORTHOGONALIZATION IN R3
clc;clear;close
A=input("enter 3x3 matrix")
disp(A,'A=');
[m,n]=size(A);
for k=1:n
V(:,k)=A(:,k);
for j=1:k-1
R(j,k)=V(:,j)'*A(:,k);
V(:,k)=V(:,k)-R(j,k)*V(:,j);
end
R(k,k)=norm(V(:,k));
V(:,k)=V(:,k)/R(k,k);
end
disp(V,'Q=');
//QUESTION 2
//EIGEN VALUES AND EIGEN VECTORS FOR 3x3 MATRIX
clc; close(); clear;
A =input("enter 3x3 matrix")
lam = poly(0,'lam')
lam = lam
charMat = A-lam*eye(3,3)
disp(charMat,'The characteristic Matrix is')
charPoly = poly(A,'lam')
disp(charPoly,'The characteristic polynomial is')
lam = spec(A)
disp(lam,'The eigen values of A are')
function[x,lam] = eigenvectors(A)
[n,m] = size(A);
lam = spec(A)';
x = [];
for k=1:3
b = A-lam(k)*eye(3,3); //characteristic matrix
c = b(1:n-1,1:n-1); //coeff mat for the reduced system
b1 =-b(1:n-1,n); //rhs vector for the reduced system
y = c\b1; //solution for the reduced system
y = [y:1]; //complete eigen vector
y = y/norm(y); //make unit eigen vector
x = [x y];
end
endfunction
get f('eigenvectors')
[x,lam] = eigenvectors(A)
disp(x,'The eigen vectors of A are')
//QUESTION 3
//NUMERICALLY LARGEST EIGEN VALUE USING RAYLEIGH POWER METHOD
clear; clc; close();
a = input("enter 3x3 matrix")
disp(a,'A = ')
//initial vector
u0 = [1 1 1]';
disp(u0,'The initial vector is')
v = a*u0
a1 = max(u0)
disp(a,'First approximation to eigen value is ')
while abs(max(v)-a1)>0.002
disp(v,'Current eigen vector is ')
a1 = max(v)
disp(a1,'Current eigen value is ')
u0 = v/max(v)
v = a*u0
end
format('v',4)
disp(max(v),'The largest eigen value is: ')
format('v',5)
disp(u0,'The corresponding eigen vector is: ')
|
19ebd8412f631c569d779e8964ad81dcf3e350f0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /377/CH8/EX8.4/8_4.sce | 207f6bfe1177b02282e0d5de7b90b961c7a2b3ce | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 682 | sce | 8_4.sce | disp("σ=e*n*μe+e*p*μh=e*ni*(μe+μh)");
b=1350; //say b=μe
c=450; //say c=μh
e=1.6*10^-19;
ni=1.45*10^10;
a=e*ni*(b+c);
printf('\n The value of σ is %1.2f*10^-6',a*10^6);
L=1;A=1;
g=4.18*10^-6; //rounding off σ
R=L/(g*A);
printf('\n The value of R is %f',R);
Nsi=5*10^22;
Nd=Nsi/10^9;
n=5*10^13;
h=5*10^13;
printf('\n The value of Nd is %f',Nd);
p=(ni^2)/Nd;
printf('\n Tha value of p is %f',p);
a1=e*n*b; //say σ=a1
printf('\n The value of σ1 is %f/ohm/cm',a1);
R1=L/(a1*A);
printf('\n The value of R1 is %f ohm',R1);
a2=e*h*c; //say a2=σ
printf('\n The value of σ2 is %f/ohm/cm',a1);
R2=L/(a2*A);
printf('\n The value of R2 is %f ohm',R2); |
12f4b37249b314316f0f02b7608571d28a6b5e4c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2132/CH4/EX4.13/Example4_13.sce | f08abde70f3ed9304279df62e51df8347c0a99e0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 278 | sce | Example4_13.sce | //Example 4.13
clc;
clear;
close;
format('v',4);
//Given data :
S1=1.25;//sp. gravity
S2=1.05;//sp. gravity
S3=0.79;//sp. gravity
h=30/1000;//m
w=1000;//kg/m^3
//pA=pB
h=(0.15*w*S2-S1*w*0.15)/(S3*w-w*S2);//m
h=h*1000;//mm
disp(h,"Reading of manometer in mm : ");
|
2fc102930229813ae5393cfbbb5bf1a87c9002bb | 449d555969bfd7befe906877abab098c6e63a0e8 | /61/CH5/EX5.5/ex5_5.sce | ab099df21723bb486f963b8109c8c1734273e45a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 502 | sce | ex5_5.sce | //ex5.5
R1=68*10^3;
R2=47*10^3;
R_C=1.8*10^3;
R_E=2.2*10^3;
V_CC=-6;
V_BE=0.7;
B_DC=75;
R_IN_base=B_DC*R_E;
disp('input resistance as seen from base is not greater than 10 times R2 so it should be taken into account')
//R_IN_base in parallel with R2
V_B=((R2*R_IN_base)/(R2+R_IN_base)/(R1+(R2*R_IN_base)/(R2+R_IN_base)))*V_CC;
V_E=V_B+V_BE;
I_E=V_E/R_E;
I_C=I_E;
V_C=V_CC-I_C*R_C;
V_CE=V_C-V_E;
disp(I_C,'collector current in amperes')
disp(V_CE,'collector emitter voltage in volts') |
97f2d7a52729c85afa8a92445d365caf77f0f2a3 | 86ae7e24466d959da945d5b6d8ab93354a9e8a1d | /exp7.sce | 3b909cfa89c6f2da55e0b25ed32c398e1fc42634 | [] | no_license | AnujaNagare/Scilab-Programs | be27fdeb0db8cfa4b00ac5121676b18412b8a222 | 4152eac1a3e87ec7408fb3dfea55cac984cca2d9 | refs/heads/master | 2021-08-30T16:53:33.876536 | 2017-12-18T19:11:47 | 2017-12-18T19:11:47 | 114,677,855 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,018 | sce | exp7.sce | //clc;
//clear;
pi=22/7;
j=input("CHOOSE linear,cubic or quad INTERPOLATION")
select(j)
case(1)
disp('enter the value of w0,wt,T')
w0=input('enter w0 ')
wt=input(' enter wt ')
T=input(' input T ')
b=w0
a=(wt - w0)/(T);
t=0:0.1:T
w=(a.*t)+(b);
figure(1)
grid on;
plot(t,w,'o')
title('DISPLACEMENT CURVE')
xlabel('time')
ylabel('velocity')
t=0:0.1:T
a1=0;
figure (3)
grid on
title('ACCELERATION CURVE ')
xlabel('time')
ylabel('acceleration')
case(2)
disp('enter the value of w0, wt, T')
w0=input('enter w0')
wt=input('enter wt')
T= input ('input T')
c=w0
a=((wt-c)/T.^2)
b=0
t=0:0.1:T
w=(a.*t.*t)+(b.*t)+(c);
figure (1)
grid on;
plot (t,w,'o')
title ('DISPLACEMENT CURVE')
xlabel('time')
ylabel('position in degrees')
t=0:0.1:T
v=(2*a.*t)+(b);
figure(2)
grid on;
plot(t,v,'o')
title('VELOCITY CURVE ')
xlabel('time')
ylabel (' velocity')
t=0:0.1:T
a1=(2*a);
figure (3)
grid on ;
plot (t,a1,'o')
title ('ACCELERATION CURVE ')
xlabel ('time')
ylabel ('acceleration')
plot(t,a1,'o');
case(3)
disp ('enter the value of w0,wt,T')
w0=input('enter w0')
wt=input('enter wt')
T=input('input T')
D=w0
C=0
a=((2*d-2*wt)/T.^3)
b=((3*(wt-d))/(T.^2))
t=0:0.1:T
w=(a.*t.*t.*t)+(b.*t.*t)+(c.*t)+d;
figure (1)
grid on;
plot(t,w,'o')
title ('DISPLACEMENT CURVE ')
xlabel('time')
ylabel('position in degrees')
T=0:0.1:T
v=(3*a.*t.*t)+(2*b.*t)+(c);
figure (2)
grid on;
plot (t,v,'o')
title ('VELOCITY CURVE')
xlabel('time')
ylabel('velocity')
t=0:0.1:T
a1=(6*a.*t)+(2*b);
figure(3)
grid on;
plot (t,a1,'o')
title('ACCELERATION CURVE ')
xlabel ('time')
ylabel ('acceleration ')
end
|
02412e6c6b87106cb388146a687658f10380cc02 | 449d555969bfd7befe906877abab098c6e63a0e8 | /626/CH10/EX10.3/10_3.sce | 8b1e3c691b9338f48172b36121103c23a25d781f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,731 | sce | 10_3.sce | clear;
clc;
close;
disp("Example 10.3")
M0=0
po=101.33 //in kPa
T0=288.2
gmc=1.4
Cpc=1004
pd=0.95
pc=20
ec=0.9
mc2=33
Nc2=7120
Mz2=0.6
Qr=428000000
pb=0.98
eb=0.97
Tt4=1850
gmt=1.33
Cpt=1156
et=0.8
em=0.995
QrAB=4280000
pAB=0.95
eAB=0.98
Tt7=2450
pAB=1.3
CpcAB=1243
pn=0.93
p=1 //p=p9/p0
Mo0=2
po0=20
To0=223
gm0=1.4
Cpc0=1004
pdo=0.8
ec0=0.9
Qr=42800000
pb0=0.98
ebo=0.97
Tt4o=1850
gmto=1.33
cpto=1156
eto=0.8
emo=0.995
QrABo=42800000
pABo=0.95
eab=0.98
Tt7o=2450
gmABo=1.3
Cpco=1243
pno=0.93
po=1
a0=276.4
Tt2=T0
tc=pc^((gmc-1)/(ec*gmc))
Tt3=tc*Tt2
f=(Cpt*Tt4-Cpc*Tt3)/(Qr*eb-Cpt*Tt4)
tt=1-(1/((1+f)*em))*(Cpc*Tt2/(Cpt*Tt4))*(tc-1)
disp(tt,"Turbine expansion parameter at on and off design :")
//Off-design analysis:
Tt2o=To0*(1+(gmc-1)/2*(Mo0^2))
tcOD=1+(1.036)*0.995*(1156*1850/(1004*401.4))*(1-0.7915)
pcOD=tcOD^((gmc)*ec/((gmc-1)))
disp(pcOD,"New compressor pressure ratio :")
mc2D=pcOD/pc*((Tt4o/Tt2)/(Tt4o/Tt2o))^(1/2)
mc2OD=mc2*mc2D
disp(mc2OD,"Off-line mc2 rate in Kg/s :")
Nc2r=((Tt4o/Tt2o)/(Tt4/Tt2))^(1/2)
Nc2OD=Nc2r*Nc2
disp(Nc2OD,"Off-design Nc2,O-D in rpm:")
pref=101.33 //in kPa
pt0=po0*(1+(gmc-1)/2*Mo0^2)^((gmc)/(gmc-1))
pt2=pdo*pt0
del2=pt2/pref
Tref=288.2
the2=Tt2o/Tref
m2=mc2OD*del2/(the2)^(1/2)
disp(m2,"Off-design mass flow in kg/s")
Tt3=859.2
Tt4=1850
fOD=0.03305
tcr=(1+fOD)/(1+f)
pt5=413.7// kPa
pt7=393.04
fAB=0.0367
pt9=365.52
M9=2.524
T9=1253
V9=1725
ndst=(1+f+fAB)*V9/a0-M9
disp(ndst,"Nondimensional specific thrust :")
TSFC=55.94 //in mg/s/N
disp(TSFC,"Thrust specific fuel consumption(TSFC) in mg/s/N :")
|
a1517936c4a907f961760ccfb9a81d65cc9ec8a2 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.11_1.tst | 21b1659026cab8ba690779eb06f6b17d5f312e00 | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 3,968 | tst | bow.11_1.tst | 11 4:0.07142857142857142 6:1.0 14:0.034482758620689655 25:0.3333333333333333 54:0.3333333333333333 203:1.0 255:1.0 480:0.5 807:1.0 1065:1.0
11 49:0.14285714285714285 74:0.25 194:0.5 200:1.0 237:1.0 386:1.0 484:1.0
11 14:0.034482758620689655 54:0.3333333333333333 199:0.2 207:0.25 208:1.0 237:1.0 356:0.3333333333333333 394:1.0 1038:1.0
11 42:0.6666666666666666 172:0.5 200:1.0
11 14:0.034482758620689655 78:1.0 221:1.0 303:0.5 976:1.0
11 25:0.16666666666666666 30:0.125 66:0.42857142857142855 115:1.0 200:1.0 380:1.0 794:2.0 841:1.0 1112:1.0 1198:3.0
11 6:1.0 140:1.0 262:0.5 490:0.1111111111111111
11 3:0.5 4:0.14285714285714285 6:2.0 43:0.5 140:1.0 170:1.0 171:0.3333333333333333 200:1.0 202:0.125 203:1.0 486:1.0 490:0.1111111111111111 545:1.0 975:1.0
11 14:0.034482758620689655 43:1.0 169:1.0 203:1.0 1082:1.0
11 17:0.03125 49:0.14285714285714285 66:0.2857142857142857 69:0.2 199:0.4 265:1.0 394:1.0 1446:1.0 1449:1.0
11 4:0.07142857142857142 6:2.0 14:0.034482758620689655 25:0.16666666666666666 45:0.5 69:0.2 203:1.0 208:1.0 408:1.0 695:1.0 700:1.0 1082:1.0
11 6:2.0 14:0.06896551724137931 25:0.16666666666666666 30:0.75 43:0.5 159:0.14285714285714285 171:0.3333333333333333 203:1.0 237:1.0 249:0.2 284:1.0 368:1.0 490:0.2222222222222222 794:1.0 806:1.0 1016:1.0
11 3:0.5 4:0.14285714285714285 6:2.0 43:0.5 140:1.0 170:1.0 171:0.3333333333333333 200:1.0 202:0.125 203:1.0 486:1.0 490:0.1111111111111111 545:1.0 975:1.0
11 14:0.034482758620689655 43:1.0 169:1.0 203:1.0 1082:1.0
11 140:1.0
11 354:0.3333333333333333
11 1076:1.0
11 25:0.16666666666666666 30:0.125 54:0.3333333333333333 66:0.14285714285714285 67:1.0 69:0.2 137:1.0 140:1.0 192:1.0 199:0.4 200:1.0 213:1.0 356:0.3333333333333333 368:1.0 388:0.5 420:1.0 985:1.0
11 6:1.0 14:0.034482758620689655 25:0.16666666666666666 54:0.6666666666666666 66:0.14285714285714285 67:1.0 99:0.25 199:0.4 356:0.3333333333333333 394:1.0 984:1.0 1074:1.0 1157:1.0
11 3:0.5 14:0.034482758620689655 25:0.16666666666666666 30:0.25 64:1.0 121:0.2 199:0.4 255:1.0 368:1.0 682:1.0 842:1.0 1113:1.0 1594:1.0
11 30:0.125 49:0.14285714285714285 69:0.2 160:1.0 199:0.2 203:1.0 255:1.0 356:0.3333333333333333 433:1.0 1070:1.0 1071:1.0
11 6:1.0 11:1.0 14:0.06896551724137931 25:0.3333333333333333 30:0.125 56:0.3333333333333333 172:0.5 181:0.3333333333333333 193:0.16666666666666666 199:0.2 200:1.0 203:1.0 286:0.5 317:1.0 368:1.0 386:1.0 604:1.0 1093:1.0
11 25:0.16666666666666666 69:0.2 192:1.0 199:0.2 203:1.0 394:1.0 981:0.3333333333333333
11 10:0.5 14:0.034482758620689655 187:1.0 199:0.2 213:1.0 545:0.5 553:1.0
11 199:0.2 356:0.3333333333333333
11 4:0.07142857142857142 6:1.0 14:0.034482758620689655 19:0.058823529411764705 25:0.16666666666666666 30:0.125 54:0.3333333333333333 140:1.0 199:0.4 203:1.0 204:1.0 274:0.3333333333333333 356:0.6666666666666666 413:1.0 443:1.0 471:1.0 617:1.0 959:1.0 981:0.3333333333333333 1031:1.0 1077:1.0
11 10:0.5 56:0.3333333333333333 199:0.2 213:1.0 255:1.0 356:0.3333333333333333 749:0.5 1074:1.0
11 14:0.034482758620689655 19:0.058823529411764705 25:0.16666666666666666 199:0.2 203:1.0 219:1.0 237:1.0 394:1.0 961:1.0 974:1.0
11 14:0.034482758620689655 19:0.058823529411764705 30:0.125 55:0.5 193:0.16666666666666666 356:0.3333333333333333 803:1.0 978:1.0 1071:1.0 1437:1.0
11 4:0.07142857142857142 6:1.0 14:0.034482758620689655 54:0.3333333333333333 356:0.3333333333333333 700:1.0 972:1.0 987:1.0 1074:1.0 1199:1.0 1616:1.0
11 6:1.0 25:0.16666666666666666 30:0.125 66:0.14285714285714285 181:0.3333333333333333 193:0.16666666666666666 199:0.2 203:1.0 249:0.2 826:0.5 986:1.0 1159:0.5
11 69:0.2 143:0.25 420:1.0 972:1.0 993:1.0
11 25:0.16666666666666666 204:1.0 294:1.0 1530:1.0
11 30:0.125 200:1.0 354:0.3333333333333333 972:1.0 1573:1.0
11 4:0.14285714285714285 19:0.058823529411764705 25:0.3333333333333333 173:1.0 199:0.2 207:0.25 236:0.5 368:1.0 1009:1.0
11 25:0.3333333333333333 69:0.2 255:1.0 368:1.0 1068:1.0
11 25:0.16666666666666666 42:0.3333333333333333 200:1.0 594:1.0 1010:1.0
|
0411234273f9316603fad169f9d4ad8a9261e476 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set14/s_Linear_Algebra_And_Its_Applications_G._Strang_70.zip/Linear_Algebra_And_Its_Applications_G._Strang_70/CH5/EX5.1.2/5_1_2.sci | b2d67dc3f7d38076002b6e98de18678408e422b4 | [] | 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 | 247 | sci | 5_1_2.sci | errcatch(-1,"stop");mode(2);//page 238
;
;
disp('The eigen values of a projection matrix are 1 or 0.')
P=[1/2 1/2;1/2 1/2];
eig=spec(P);
[V,Val]=spec(P);
disp(eig,'Eigen values:')
x1=V(:,1);
x2=V(:,2);
disp(x1,x2,'Eigen vectors:');
//end
exit();
|
346aeb0212bd442b88b9c97656ad248e3a728303 | 449d555969bfd7befe906877abab098c6e63a0e8 | /704/CH2/EX2.13/ex2_13.sce | 79e339b9061f310cd9e3a9ab3b28c6fb0b9f4426 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex2_13.sce | //Caption: calculate the total torque in Nw-m
//Exam:2.14
clc;
clear;
close;
P=6;//poles
A=P;//number of parallel paths
S=60;//slots in motor
C_s=12;//conductor per slot
Z=S*C_s;//total conductor in machine
I_a=50;//armature current(in Amp)
F_1=20//flux per pole(in m Wb)
F_2=F_1*10^-3;//flux per pole)(in Wb)
T=0.15924*F_2*Z*P*I_a/A;//total torque (in Nw-m)
disp(T,'total torque by motor (in Nw-m)='); |
9d8e2488c2d281b974d48ea682a0c1f4fbc52bc7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1385/CH13/EX13.4/13_4.sce | 9812a86bf157d7c3a3733085366fbfd8434777bd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 327 | sce | 13_4.sce | clc
//initialisation of variables
m= 14 //gms
M= 28 //gms
S= 6.94 //cal per mole
T= 127 //C
T1= 27 //C
S1= 4.94 //cal per mole
//CALCULATIONS
dS= (m/M)*S*log((273+T)/(273+T1))
dS1= (m/M)*S1*log((273+T)/(273+T1))
//RESULTS
printf (' Entropy change = %.2f E.U',dS-0.01)
printf (' \n Entropy change = %.2f E.U',dS1)
|
e1c7f4eebcf26fbb8435ab2ef4d47ff3da28add3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2507/CH12/EX12.8/Ex12_8.sce | b81b9d96067e07ab7c82bd1096ff70597e592d3a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 766 | sce | Ex12_8.sce | clc
clear
printf("Example 12.8 | Page number 425 \n\n");
//Find actual air and excess air
//Given Data
xCO2 = 9.7 //mole percent CO2
xCO = 1.1 //mole percent CO
xO2 = 4 //mole percent O2
xN2 = 85.2 //mole percent N2
//Solution
//by C balance
b = 2
//by H2 balance
d = 2
//by O2 balance
a = b+d*.5
//by N2 balance
c = 3.76*a
Stoichiometric_air = a*(32+3.76*28)/28 //kg/kg ethylene
//by C balance
x = (xCO2+xCO)/2 //kmol of ehtylene be burnt
//by H2 balance
q = 2*x
//by O2 balance
p = xCO2 + xCO/2 + xO2 + q/2
actual_air = p*(32+3.76*28)/(x*28) //kg/kg ethylene
excess_air = (actual_air - Stoichiometric_air)/Stoichiometric_air*100
printf("Actual air = %.1f kg/kg ethylene \n",actual_air)
printf("Excess air = %.1f%%",excess_air)
|
c18a0b2bb6202a3fcba0b52dab771a9a79c84121 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3876/CH11/EX11.4/Ex11_4.sce | 20d75e37f403ee9dfdbbced9a659fe41323ebc3a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 467 | sce | Ex11_4.sce | //Chapter 11 Thermodynamics Some Basic Concepts
clc;
clear;
//Initialisation of Variables
m= 9 //gms
T= -10 //C
T1= 0 //C
R= 0.5 //cal per gram per degree
H= 79.7 //cal per gram
R1= 1 //cal per gram per degree
T2= 100 //C
H1= 539.7 //cal per gm
R2= 8.11 //cal per gram per degree
M= 18 //gms
T3= 40 //C
//CALCULATIONS
dH= m*R*(T1-T)
dH1= m*H
dH2= m*R1*(T2-T1)
dH3= m*H1
dH4= (m/M)*R2*(T3-T1)
dH5= dH+dH1+dH2+dH3+dH4
//RESULTS
mprintf("Value of dH= %.1f cal",dH5)
|
548c844b19f53837ed9a87ae1a90e4eba92a8369 | 449d555969bfd7befe906877abab098c6e63a0e8 | /476/CH1/EX1.5/Example_1_5.sce | 9e69eaecc18cda13d53bb3523e2ebaca434da6b9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 964 | sce | Example_1_5.sce | //A Textbook of Chemical Engineering Thermodynamics
//Chapter 1
//Introduction and Basic Concepts
//Example 5
clear;
clc;
//Given:
A = (%pi/4)*(0.1^2); //area in m^2
P = 1.01325*10^5; //pressure in N/m^2
m = 50; //mass of piston and weight in kg
g = 9.81; //acceleration due to gravity (N/m^2)
//To determine the force exerted pressure work done and change in potential energy
//(a)
Fa = P*A; //force exerted by atmosphere in N
Fp = m*g; //force exerted by piston and weight in N
F = Fp+Fa; //total force exerted in N
mprintf('Total force exerted by the atmosphere, the piston and the weight is %f N',F);
//(b)
Pg = F/A; //pressure of gas in N/m^2
mprintf('\nPressure of gas is %5.4e Pa',Pg);
//(c)
S = 0.4; //displacement of gas in m
W = F*S; //work done by gas in J
mprintf('\nWork done by gas is %f J',W);
//(d)
PE = m*g*S; //change in potential energy in J
mprintf('\nChange in potential energy is %f J',PE);
//end |
1cfa91dad86c8739f97e98259560f4120508cb43 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2534/CH6/EX6.5/Ex6_5.sce | fa46b80c9cbfda8dce6e5fcb2a536b93b6def01e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 583 | sce | Ex6_5.sce | //Ex6_5
clc
VBB = 1
VCC = 12
IC = 12*10^-3
VCE = 4
beta = 80
VBE = 0.7
disp("VBB = "+string(VBB)+"V")//base supply voltage
disp("VCC = "+string(VCC)+"V")//collector supply voltage
disp("IC = "+string(IC)+"A")//collector current
disp("VCE = "+string(VCE)+"V")//voltage across collector and emitter
disp("beta = "+string(beta))//current gain
disp("VBE = "+string(VBE)+"V")//voltage across base and emitter
IB = IC/beta
disp("IB = IC/beta = "+string(IB)+"A")//base current
RC = (VCC - VCE)/IC
disp("RC = (VCC - VCE)/IC = "+string(int(RC))+"ohm")//collector resistance
|
c59918a932c981d8ca779c53fa4a1fbf541ca2e6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1967/CH7/EX7.2/7_2.sce | ea49a5db05fbb265164e5ad6c48d9158492ebcf6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 263 | sce | 7_2.sce | clc
//initialisation of variables
clear
T= 25 //C
T1= 0 //C
h= 79.8 //cal g^-1
j= 4.18*10^7 //ergs
//CALCULATIONS
Wc= (T-T1)*h/(273+T1)
W= (T-T1)*h*j/(273+T1)
//RESULTS
printf ('Work required = %.1f cal',Wc)
printf ('\n Work required = %.2e ergs',W)
|
30d46a6b528979eba53609997b72932f4330753b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1754/CH2/EX2.13/Exa2_13.sce | c212c1a68a6a0dce2a139e7a7b96de98e1431157 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 390 | sce | Exa2_13.sce | //Exa 2.13
clc;
clear;
close;
//Given data
Beta=100;//unitless
IC=1;//in mA
VCC=12;//in volt
VBE=0.3;//in volt(For Ge)
//Prt (i)
IB=IC/Beta;//in mA
//Formula : VCC=VBE+IB*RB
RB=(VCC-VBE)/(IB*10^-3);//in Ampere
disp(RB/10^3,"Resistance RB in kOhm : ");
//part (ii)
Beta=50;//unitless
IB=(VCC-VBE)/RB;//in Ampere
IC=Beta*IB;//in Ampere
disp(IC*10^3,"Zero signal IC in mA:"); |
b7caa40ff058139a2070e64159a6084ca31266a0 | 4a1effb7ec08302914dbd9c5e560c61936c1bb99 | /Project 2/Experiments/GAssist-Interval-C/results/GAssist-Intervalar-C.led7digit-10-1tra/result6s0.tst | d0bf950a8528c46efa6de32367d926ef18d1cfb0 | [] | no_license | nickgreenquist/Intro_To_Intelligent_Systems | 964cad20de7099b8e5808ddee199e3e3343cf7d5 | 7ad43577b3cbbc0b620740205a14c406d96a2517 | refs/heads/master | 2021-01-20T13:23:23.931062 | 2017-05-04T20:08:05 | 2017-05-04T20:08:05 | 90,484,366 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 534 | tst | result6s0.tst | @relation led7digit
@attribute Led1 real[0.0,1.0]
@attribute Led2 real[0.0,1.0]
@attribute Led3 real[0.0,1.0]
@attribute Led4 real[0.0,1.0]
@attribute Led5 real[0.0,1.0]
@attribute Led6 real[0.0,1.0]
@attribute Led7 real[0.0,1.0]
@attribute number{0,1,2,3,4,5,6,7,8,9}
@inputs Led1, Led2, Led3, Led4, Led5, Led6, Led7
@outputs number
1 1
3 3
3 3
8 2
9 5
5 6
6 5
7 7
2 2
2 3
3 3
4 5
5 5
5 5
6 6
6 6
7 1
8 2
9 5
9 7
9 3
3 3
7 3
0 8
2 2
2 3
2 2
3 3
3 3
4 4
8 3
0 3
1 1
8 3
0 8
4 4
5 4
5 5
7 5
7 7
7 7
8 6
8 8
2 2
4 4
5 5
0 2
1 1
5 5
7 7
|
cae5e5143846afc0816cc329f8eb8d5e9a3fe356 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1073/CH2/EX2.17/2_17.sce | cb6cd0d3fea608eb724d04addc89616fdfc155e0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 646 | sce | 2_17.sce | //Example2.17
T1=523 //[K]
T2=323 //[K]
r1=0.05 //[m]
r2=0.055 //[m]
r3=0.105 //[m]
r4=0.155 //[m]
k1=50 //[W/(m.K)]
k2=0.06 //[W/(m.K)]
k3=0.12 //W/(m.K)
//CASE 1
Q_by_L1=2*%pi*(T1-T2)/((log(r2/r1))/k1+(log(r3/r2))/k2+(log(r4/r3))/k3) //[W/m]
printf("Heat loss=%f W/m",Q_by_L1)
//Case 2
Q_by_L2=2*%pi*(T1-T2)/((log(r2/r1))/k1+(log(r3/r2))/k3+(log(r4/r3))/k2)
perct=(Q_by_L2-Q_by_L1)*100/Q_by_L1
printf("If order is changed then heat loss=%f W/m",Q_by_L2)
printf("\n loss of heat is increased by %f percent by putting material with higher thermal conductivity near the pipe surface",perct) |
ce09ff367ce0f8634e323961533939ba293d685f | 0f264141cfa7862f0fbe12007ece1243ce44e469 | /Scilab/A1 Abou Jaoude Yann TD3.sce | 10f173471e5fa839eafc3a098c6128bdcc3b9891 | [] | no_license | yannAbouJaoude/Myrepo | 0dc4f14820658a0d72611d3926f8ca050031625c | 202a467a4bfa77ddcf089e819f3ab068c94d3cef | refs/heads/master | 2020-08-28T04:03:45.687843 | 2019-12-25T18:59:28 | 2019-12-25T18:59:28 | 217,581,992 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,672 | sce | A1 Abou Jaoude Yann TD3.sce | //EXERCICE I
function derivey=y1(t,y),
derivey=-y+t+1;
endfunction
function solution=sy1(t)
solution = t+exp(-t);
endfunction
function [t, y] = Euler(a,b, N, alpha, f)
h = (b-a)/N;
t(1) = a;
y(1) = alpha;
i = 1;
for i=1:N
y(i+1)= y(i)+h*f(t(i), y(i) );
t(i+1)= t(i) + h;
end
endfunction
function [t,y] = heun(a,b,n,alpha,f)
h = (b - a) / n;
halfh = h / 2;
y(1) = alpha;
t(1) = a;
for i = 1 : n
t(i+1) = t(i) + h;
g = f(t(i),y(i));
z = y(i) + h * g;
y(i+1) = y(i) + halfh * ( g + f(t(i+1),z) );
end;
endfunction
function [t,y] = rk4(a,b,n,alpha,f)
h = (b - a) / n;
halfh = h / 2;
y(1) = alpha;
t(1) = a;
h6 = h/6;
for i = 1 : n
t(i+1) = t(i) + h;
th2 = t(i) + halfh;
s1 = f(t(i), y(i));
s2 = f(th2, y(i) + halfh * s1);
s3 = f(th2, y(i) + halfh * s2);
s4 = f(t(i+1), y(i) + h * s3);
y(i+1) = y(i) + (s1 + s2+s2 + s3+s3 + s4) * h6;
end;
endfunction
Alpha=1;
A=0
B=5
//N=10
//N=100
N=1000
//Quand nous augmentons le n 10X, nous reduisonsl'erreur environ 100X
[t,y2]=Euler(A,B,N,Alpha,y1)
[t,y3]=heun(A,B,N,Alpha,y1);
[t,y4]=rk4(A,B,N,Alpha,y1);
sol(1)=sy1(t(1));
for i = 1:N+1
sol(i) = sy1(t(i));
end
subplot(121);
plot(t,sol,'k-');
subplot(121);
plot(t,y2,'b-');
subplot(121);
plot(t,y3,'g-');
subplot(121);
plot(t,y4,'r-');
subplot(122);
erreur = abs(y2-sol);
plot(t,log(erreur),'b-');
subplot(122);
erreur = abs(y3-sol);
plot(t,log(erreur),'g-');
subplot(122);
erreur = abs(y4-sol);
plot(t,log(erreur),'r-');
legend(['Log erreur euler','Log erreur heun','Log erreur rk4'],pos = "2");
|
15814dff27c51a8d29a7dc6a3a22eb68666165f0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1928/CH4/EX4.15.15/ex_4_15_15.sce | b9e353d43a996fd11feea189d35644e6047e5294 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 730 | sce | ex_4_15_15.sce | //Chapter-4,Example4_15_15,pg 4-34
//for case1
t1=2*10^-3 //thicknesss of plate
d=2.65*10^3 //density
Y=8*10^10 //Young's modulus
k=1 //consider 1st harmonic
n1=(k/(2*t1))*sqrt(Y/d) //formula of natural frequency
printf(" 1)natural frequency =")
disp(n1)
printf("Hz")
//for case2
n2=3*10^6 //frequency
t2=(k/(2*n2))*sqrt(Y/d) //arranging formula of natural frequency
t=t1-t2 //change in thickness
printf(" 2)change in thickness =")
disp(t)
printf("meter")
|
c03037cd2c2d25ff9bac95b3c39d8bb89f2128d9 | d52d3664d9650ed9473dfaa3c4b379f05ef9fa78 | /test/build_tax_diff.tst | 70581c571e9e339dc29993950c8bfa981976ffc3 | [] | no_license | ZVlad1980/excel_api | 7b517bf68b677f8e947cba8794ae557e48c9ce06 | b514dbea9cb619e0e73c67b2e8fec4a59301101a | refs/heads/master | 2020-04-04T01:51:22.004466 | 2018-10-02T05:52:04 | 2018-10-02T05:52:04 | 155,679,735 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 202 | tst | build_tax_diff.tst | PL/SQL Developer Test script 3.0
8
-- Created on 15.11.2017 by V.ZHURAVOV
declare
-- Local variables here
i integer;
begin
-- Test statements here
dv_sr_lspv_docs_api.build_tax_diff;
end;
0
0
|
6a19fbec3f021905d2b6b79b6401542748f84af1 | 6613f2185ff14cbcc91627ae4073f1e3a69aae60 | /11g_emplu.tst | 60e70a295470ccdc460b76dc8c6f8c53cc6408c4 | [] | no_license | akylKerimbekov/oracle_pl_sql_programming | cdd28df7a98a2331038f5835970e2fbe4e943006 | 573969a17a9ac15751aca2406021424ec3f54c4c | refs/heads/master | 2020-04-29T11:09:23.540999 | 2014-10-10T18:18:58 | 2014-10-10T18:18:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,225 | tst | 11g_emplu.tst | /*
Compare performance of repeated querying of data to
caching in the PGA (packaged collection) and the
new Oracle 11g Result Cache.
To compile and run this test script, you will first need to
run the following script.
Note that to compile the my_session package and display PGA
usage statistics, you will need SELECT authority on:
sys.v_$session
sys.v_$sesstat
sys.v_$statname
Author: Steven Feuerstein
*/
@@plvtmr.pkg
@@mysess.pkg
@@11g_emplu.pkg
@@11g_emplu_compare.sp
SET SERVEROUTPUT ON
BEGIN
test_emplu (100000);
/*
With 100000 iterations:
PGA before tests are run:
session PGA: 2057168
Execute query each time Elapsed: 5.65 seconds. Factored: .00006 seconds.
session PGA: 1139664
Oracle 11g result cache Elapsed: .3 seconds. Factored: 0 seconds.
session PGA: 1139664
Cache table in PGA memory Elapsed: .12 seconds. Factored: 0 seconds.
session PGA: 1336272
*/
END;
/
/*======================================================================
| Supplement to the fifth edition of Oracle PL/SQL Programming by Steven
| Feuerstein with Bill Pribyl, Copyright (c) 1997-2009 O'Reilly Media, Inc.
| To submit corrections or find more code samples visit
| http://oreilly.com/catalog/9780596514464/
*/
|
ed4ad21d68232762c49fa36f32964b67f42d6f68 | 1bc06fa90b5425d41347c90d0c73bb82eb4cbbfe | /utils/appliquerFiltre.sci | 005d61928cae651d87e901d65715ab4bf64bdef4 | [] | no_license | madox35/Filtre-Canny | a0a527ad6be5a1dc5984b2533008f95b1c9663ee | 3a54da9b0ce917c995ea5fbd48e0ed5c3f36748d | refs/heads/master | 2020-03-08T08:57:27.702111 | 2018-04-21T19:39:39 | 2018-04-21T19:39:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,976 | sci | appliquerFiltre.sci | function image_traitee = appliquerFiltre(image, filtre, coef, nom)
afficherLogs("Application d''un filtre : "+ nom);
[N, M] = size(image)
[NMasque, MMasque]= size(filtre)
NMasque_moitie = floor(NMasque/2);
MMasque_moitie = floor(MMasque/2);
// Matrice temporaire dans laquelle nous recopions la matrice de l'image de base
// + élargissement de l'image pour pouvoir appliquer le filtre
// Les contours seront initialisés par défaut à 0
xtemp = 2*NMasque_moitie + N;
ytemp = 2*MMasque_moitie + M;
temp = zeros(xtemp,ytemp);
[Ntemp, Mtemp] = size(temp);
temp(NMasque_moitie + 1 : Ntemp - NMasque_moitie, MMasque_moitie + 1 : Mtemp - MMasque_moitie) = image;
// disp(temp)
image_traitee = zeros(N,M)
for x = 1+NMasque_moitie : N+NMasque_moitie
for y = 1+MMasque_moitie : M+MMasque_moitie
somme_px = 0;
for i = 1 : NMasque
for j = 1 : MMasque
x1 = x+i-NMasque_moitie-1;
y1 = y+j-MMasque_moitie-1;
px_img = temp(x1, y1);
px_filtre = filtre(i,j);
// Gros bug ici car j'avais mis y1 = y+i-MMasque_moitie-1 au lieu de j
// disp("x:"+ string(x)+ " ; y:"+ string(y)+ " | i:"+ string(i)+ " ; j:"+ string(j))
// disp("Temp x: "+string(x1))
// disp("Temp y: "+string(y1))
somme_px = somme_px + px_img * px_filtre;
end
end
if coef ~= 0 then
image_traitee(x-NMasque_moitie, y-MMasque_moitie) = floor(somme_px/coef);
else
image_traitee(x-NMasque_moitie, y-MMasque_moitie) = floor(somme_px);
end
end
end
// On affiche la nouvelle matrice après l'application du filtre
afficherLogs(image_traitee)
endfunction
|
63f6a66db2c7076c7f038f603237c8c7c064b427 | fbd17575bab2ee4dc49cc7d13b5b94d24ab9482c | /TP6/pointmilieu.sci | 9df6b96532de12e4e3356719317c5aa70f742c21 | [] | no_license | 1saac-W/MT09-Analyse-Num-rique | 05b509981dfa00e3b7b550716b1487cbbf0a3fed | 0853f8053254f5dd23179073187ada3d936aff84 | refs/heads/master | 2020-09-27T04:34:36.549125 | 2020-01-05T16:02:18 | 2020-01-05T16:02:18 | 226,431,201 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 256 | sci | pointmilieu.sci | function [z] = pointmilieu(a, t0, T, N, f)
h = T/N;
t = t0 + h*[0:N-1]';
zn = a;
z = [zn];
for i = 0:N-1
K0 = f(t(i+1),zn);
K1 = f(t(i+1)+h/2,zn+h/2*K0);
zn = zn + h*K1;
z = [z,zn];
end
endfunction
|
3b465cb6348da323279c74bf6b8d0cb5dee69966 | efc2fec9dd841d0ca834702c904e00c52762a9f9 | /undistortImages/undistortImage2.sce | d9fa13987a2289f2eac4f2a557a886832d8259ee | [] | no_license | surajch77/Scilab-Computer-Vision-Toolbox-TestCases | 64c8e0382e8b9d416c4c27c1ed4272f49bf45b51 | 969f9bcddefea05b42c623aeebe2e0cdcffd6eeb | refs/heads/master | 2021-01-20T20:24:14.345296 | 2016-06-29T15:16:52 | 2016-06-29T15:16:52 | 61,932,313 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 353 | sce | undistortImage2.sce | instrinsicMatrix = [1 0 0; 1 2 0; 3 4 0];
rotationMatrix = [ 0.1417 -0.7409 0.6565; 0.9661 -0.0410 -0.2548; 0.2157 0.6703 0.7100];
translationVector = [ -29.2584 35.7824 725.5824];
camMatrix = cameraMatrix(instrinsicMatrix,rotationMatrix,translationVector)
I = imread('Barrel-Distortion.jpg');
J = undistortImage(I, camMatrix);
|
fced76969302f74560671c1f2dac3a58d31f0141 | 449d555969bfd7befe906877abab098c6e63a0e8 | /317/CH16/EX16.3/example3.sce | 10ddf28be2ed43adccb7116fc74eded948e7ab45 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,414 | sce | example3.sce | // calculate voltage gain
// Electronic Principles
// By Albert Malvino , David Bates
// Seventh Edition
// The McGraw-Hill Companies
// Example 16-3, page 569
clear; clc; close;
// Given data
f=10;// cutoff frequency in hertz
Avmid=100000;// midband voltage gain
f1=100;// input frequency in hertz
f2=10^3;// input frequency in hertz
f3=10^4;// input frequency in hertz
f4=10^5;// input frequency in hertz
f5=10^6;// input frequency in hertz
// Calculations
Av1=Avmid/((1+(f1/f)^2)^0.5)// Voltage gain for input frequency below midband
Av2=Avmid/((1+(f2/f)^2)^0.5)// Voltage gain for input frequency below midband
Av3=Avmid/((1+(f3/f)^2)^0.5)// Voltage gain for input frequency below midband
Av4=Avmid/((1+(f4/f)^2)^0.5)// Voltage gain for input frequency below midband
Av5=Avmid/((1+(f5/f)^2)^0.5)// Voltage gain for input frequency below midband
disp(Av1,"Voltage gain 1=")
disp(Av2,"Voltage gain 2=")
disp(Av3,"Voltage gain 3=")
disp(Av4,"Voltage gain 4=")
disp(Av5,"Voltage gain 5=")
// Result
// Voltage gain for an input frequency of 100 Hertz is approximately 10000
// Voltage gain for an input frequency of 1000 Hertz is approximately 1000
// Voltage gain for an input frequency of 1000 Hertz is approximately 100
// Voltage gain for an input frequency of 10000Hertz is approximately 10
// Voltage gain for an input frequency of 100000 Hertz is approximately 1 |
6e698beffc95e5aa3deeec0681b1c0b543c72559 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/1.1/Unix/scilab-1.1/macros/percent/%rap.sci | 8168aad167d2b0145e6b6d81731b19fd01dd765c | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 195 | sci | %rap.sci | //<f>=%rap(f,m)
// %rap(f,m) calcule la somme d'une matrice de fractions rationnelles f et
//d'une matrice de polynomes p
//!
num=f(2)+m.*f(3)
[num,den]=simp(num,f(3))
f(2)=num;f(3)=den
//end
|
eb8c65c5aae9d17c4df38454a58c14951408034a | 36c5f94ce0d09d8d1cc8d0f9d79ecccaa78036bd | /Splitgatee Pistol training.sce | 6a36223b32bafa0f0907ba28351c86c94887dfaf | [] | 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 | 16,809 | sce | Splitgatee Pistol training.sce | Name=Splitgatee Pistol training
PlayerCharacters=Clay Pigeon
BotCharacters=Long Strafe Bot.bot
IsChallenge=true
Timelimit=90.0
PlayerProfile=Clay Pigeon
AddedBots=Long Strafe Bot.bot
PlayerMaxLives=0
BotMaxLives=0
PlayerTeam=1
BotTeams=2
MapName=kovaim1.map
MapScale=3.8125
BlockProjectilePredictors=true
BlockCheats=true
InvinciblePlayer=false
InvincibleBots=false
Timescale=1.0
BlockHealthbars=false
TimeRefilledByKill=0.0
ScoreToWin=1000.0
ScorePerDamage=1.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=Pistol
DifficultyTag=2
AuthorsTag=Klastitis
BlockHitMarkers=false
BlockHitSounds=false
BlockMissSounds=true
BlockFCT=true
Description=Shoot the target with your pistol
GameVersion=1.0.7.2
ScorePerDistance=0.0
[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=Clay Pigeon
SeeThroughWalls=false
NoDodging=false
NoAiming=true
[Character Profile]
Name=Clay Pigeon
MaxHealth=100.0
WeaponProfileNames=;;;;;;;
MinRespawnDelay=1.0
MaxRespawnDelay=5.0
StepUpHeight=75.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=1.0
CameraOffset=X=0.000 Y=0.000 Z=0.000
HeadshotOnly=false
DamageKnockbackFactor=8.0
MovementType=Base
MaxSpeed=1000.0
MaxCrouchSpeed=500.0
Acceleration=4000.0
AirAcceleration=16000.0
Friction=8.0
BrakingFrictionFactor=2.0
JumpVelocity=800.0
Gravity=3.0
AirControl=0.25
CanCrouch=true
CanPogoJump=false
CanCrouchInAir=false
CanJumpFromCrouch=false
EnemyBodyColor=X=255.000 Y=0.000 Z=0.000
EnemyHeadColor=X=255.000 Y=255.000 Z=255.000
TeamBodyColor=X=0.000 Y=0.000 Z=255.000
TeamHeadColor=X=255.000 Y=255.000 Z=255.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=800.0
MainBBType=Cylindrical
MainBBHeight=230.0
MainBBRadius=55.0
MainBBHasHead=true
MainBBHeadRadius=45.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=230.0
ProjBBRadius=55.0
ProjBBHasHead=true
ProjBBHeadRadius=45.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=true
JetpackActivationDelay=0.2
JetpackFullFuelTime=2.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=true
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
[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
[Map Data]
reflex map version 8
global
entity
type WorldSpawn
String32 targetGameOverCamera end
UInt8 playersMin 1
UInt8 playersMax 16
brush
vertices
-576.000000 0.000000 256.000000
448.000000 0.000000 256.000000
448.000000 0.000000 -768.000000
-576.000000 0.000000 -768.000000
-576.000000 -16.000000 256.000000
448.000000 -16.000000 256.000000
448.000000 -16.000000 -768.000000
-576.000000 -16.000000 -768.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
-576.000000 272.000000 -768.000000
448.000000 272.000000 -768.000000
448.000000 272.000000 -784.000000
-576.000000 272.000000 -784.000000
-576.000000 0.000000 -768.000000
448.000000 0.000000 -768.000000
448.000000 0.000000 -784.000000
-576.000000 0.000000 -784.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
-576.000000 272.000000 272.000000
448.000000 272.000000 272.000000
448.000000 272.000000 256.000000
-576.000000 272.000000 256.000000
-576.000000 0.000000 272.000000
448.000000 0.000000 272.000000
448.000000 0.000000 256.000000
-576.000000 0.000000 256.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
448.000000 272.000000 256.000000
464.000000 272.000000 256.000000
464.000000 272.000000 -768.000000
448.000000 272.000000 -768.000000
448.000000 0.000000 256.000000
464.000000 0.000000 256.000000
464.000000 0.000000 -768.000000
448.000000 0.000000 -768.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
-592.000000 272.000000 256.000000
-576.000000 272.000000 256.000000
-576.000000 272.000000 -768.000000
-592.000000 272.000000 -768.000000
-592.000000 0.000000 256.000000
-576.000000 0.000000 256.000000
-576.000000 0.000000 -768.000000
-592.000000 0.000000 -768.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
-592.000000 704.000000 256.000000
-576.000000 704.000000 256.000000
-576.000000 704.000000 -768.000000
-592.000000 704.000000 -768.000000
-592.000000 272.000000 256.000000
-576.000000 272.000000 256.000000
-576.000000 272.000000 -768.000000
-592.000000 272.000000 -768.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
448.000000 704.000000 256.000000
464.000000 704.000000 256.000000
464.000000 704.000000 -768.000000
448.000000 704.000000 -768.000000
448.000000 272.000000 256.000000
464.000000 272.000000 256.000000
464.000000 272.000000 -768.000000
448.000000 272.000000 -768.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
-576.000000 704.000000 -768.000000
448.000000 704.000000 -768.000000
448.000000 704.000000 -784.000000
-576.000000 704.000000 -784.000000
-576.000000 272.000000 -768.000000
448.000000 272.000000 -768.000000
448.000000 272.000000 -784.000000
-576.000000 272.000000 -784.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
-576.000000 704.000000 272.000000
448.000000 704.000000 272.000000
448.000000 704.000000 256.000000
-576.000000 704.000000 256.000000
-576.000000 272.000000 272.000000
448.000000 272.000000 272.000000
448.000000 272.000000 256.000000
-576.000000 272.000000 256.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
-576.000000 720.000000 256.000000
448.000000 720.000000 256.000000
448.000000 720.000000 -768.000000
-576.000000 720.000000 -768.000000
-576.000000 704.000000 256.000000
448.000000 704.000000 256.000000
448.000000 704.000000 -768.000000
-576.000000 704.000000 -768.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
-576.000000 96.000000 -384.000000
-320.000000 96.000000 -384.000000
-320.000000 96.000000 -512.000000
-576.000000 96.000000 -512.000000
-576.000000 0.000000 -384.000000
-320.000000 0.000000 -384.000000
-320.000000 0.000000 -512.000000
-576.000000 0.000000 -512.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
192.000000 96.000000 0.000000
448.000000 96.000000 0.000000
448.000000 96.000000 -128.000000
192.000000 96.000000 -128.000000
192.000000 0.000000 0.000000
448.000000 0.000000 0.000000
448.000000 0.000000 -128.000000
192.000000 0.000000 -128.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
entity
type PlayerSpawn
Vector3 position -64.000000 0.000000 -736.000000
entity
type CameraPath
UInt32 entityIdAttachedTo 5
UInt8 posLerp 2
UInt8 angleLerp 2
entity
type Effect
Vector3 position 0.000000 256.000000 0.000000
String64 effectName internal/misc/reflectionprobe
entity
type Target
Vector3 position 320.000000 256.000000 320.000000
Vector3 angles -135.000000 30.000000 0.000000
String32 name end
entity
type PlayerSpawn
Vector3 position -64.000000 0.000000 224.000000
Vector3 angles 180.000000 0.000000 0.000000
entity
type PlayerSpawn
Vector3 position 416.000000 0.000000 -256.000000
Vector3 angles 270.000000 0.000000 0.000000
entity
type PlayerSpawn
Vector3 position -544.000000 0.000000 -256.000000
Vector3 angles 90.000000 0.000000 0.000000
|
de5bef4ea682bb19e82dad7790732130865b2e01 | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/Computing/testsaveload.sce | 9f3e6c6e4e4f99a8a462d60ba8542e06ce909cd2 | [] | 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 | 239 | sce | testsaveload.sce | x=%e*%pi,y=%i, // two variables
save('myvar.sod','x','y') // saving to the file myvar.sod
ls('*.sod') // file created in the current directory
clear x // erase x
y=y+1 // modify y
load('myvar.sod') // reload x and y
x,y
|
6cd06e205a47d22ead39c3e765a36238e6ee7e73 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1322/CH13/EX13.11/97ex.sce | 7c6f43fa83c6ded2d433c8f041b7ed27990cf85b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 312 | sce | 97ex.sce |
clc;
close;
clear;
x=poly(0,'x');
p=(x+9)*(x-9)
p1=string('(ab+10)(ab-10)=a^2*b^2-100')
p2=(4*x+5)*(4*x-5)
p3=(1+x)*(1-x)
a=poly(0,'a');
p4=(a-1/2)*(a+1/2)
p5=string('(a/3 + b/4)*(a/3 - b/4)=a^2/9 - b^2/16')
p6=string('{(a+b)+c}*{(a+b)-c}=(a+b)^2-c^2')
p7=string('{a+(b+c)}*{a-(b+c)}=a^2-(b+c)^2')
|
c88c8a61324f5f677e8321207b994d17a6d30472 | 717ddeb7e700373742c617a95e25a2376565112c | /3044/CH6/EX6.1/Ex6_1.sce | a511aaa45e64591c757e50fcddff7663a417756a | [] | 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 | 343 | sce | Ex6_1.sce | // Variable declaration
n = 10 // Sample size
N = 1000 // population size
// Calculation
// as we know correction factor = (N-n)/(N-1)
corr_fact = ((N-n))/(N-1) // correction factor
// Result
printf ( "Correction Factor: %.3f",corr_fact)
|
bb25536eb0cc7dfe149b1254013d31efea33d401 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2138/CH7/EX7.3.a/ex_7_3_a.sce | 83409b2cbfd92e16902014b5d791685f6a76c67b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 267 | sce | ex_7_3_a.sce | //Example 7.3.a: terminal voltage
clc;
clear;
close;
// given data:
W=10;// output of the generator in k-w
V=250; // voltage in volts
R=0.07; // in ohm
Il=(W*1000)/V;// load current in A
Vf=Il*R;// voltage drop in feeder
Vt=V+Vf;
disp(Vt,"terminal voltage,Vt(V) = ")
|
b8b7680de14728281c99b5af8f284d5a63850d10 | fc97dca636256fc30f018840e244a173c06ec54b | /easy/tests/if.tst | 874637debd1dfe365bfa0bbee64411734ec83960 | [
"MIT"
] | permissive | tuomasb/compiler | 23fd2190bc6911380a5acf45241c1f2b2580538f | aa366ace6f2c29b5e0080faf8c50dcb7be0b02f4 | refs/heads/master | 2020-05-17T21:51:17.977674 | 2014-06-09T00:24:17 | 2014-06-09T00:24:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 123 | tst | if.tst | main {
int a;
a := 2;
if (5 < a) then
{
a := 1;
}
else
{
a := 0;
}
fi
print(a);
return a;
}
|
2ba11cd24b2ad740c82a5d7e8e39901ebbb45f7c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2300/CH9/EX9.12.2/Ex9_2.sce | 6094dbf0d85613c2f1810c03d591c482edf1a2f5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,013 | sce | Ex9_2.sce | //scilab 5.4.1
//Windows 7 operating system
//chapter 9 Basic Voltage and Power Amplifiers
clc
clear
//For two identical transistors employed by an RC-coupled amplifier
hfe=100//hfe=current gain
hie=2*10^3//hie=input impedance in ohm
Cob=2*10^-12//Cob=capacitance in farad quoted by the transistor manufacturers
C=0.4*10^-6//C=coupling capacitance in farad
RL=8*10^3//RL=load resistance in ohms for each transistor
CW=10*10^-12//CW=wiring capacitance in farad
fl=1/(2*%pi*C*(hie+RL))//fl=lower half power frequency
format("v",5)
disp("Hz",fl,"The lower half-power frequency is =")
hfb=-hfe/(1+hfe)//hfb=current gain for common base transistor
Coc=Cob/(1+hfb)//Coc=transistor collector capacitance in farad
Cs=Coc+CW//Cs=shunt capacitance in farad
Ro=(hie*RL)/(hie+RL)//Ro=equivalent resistance of the parallel combination of hie and RL
fh=1/(2*%pi*Cs*Ro)//fh=upper half power frequency
format("v",5)
disp("kHz",fh/10^3,"The upper half-power frequency is =")//fh is converted in terms of kHz
|
ca8ba54b8056dcfb043c316ae2f7625f11f0141d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3407/CH9/EX9.2/Ex9_2.sce | ad2a57cc7497645e4e69fac2644888b74d9bf912 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 705 | sce | Ex9_2.sce | clear;
clc;
funcprot(0);
//given data
P = 4.0;//in MW
N = 375;//in rev/min
H_eps = 200;//in m
KN = 0.98;//nozzle velocity coefficient
d = 1.5;//in m
k = 0.15;//decrease in relative flow velocity across the buckets
alpha = 165;//in deg
g = 9.81;//in m/s^2
rho = 1000;//in kg/m^3
//Calculations
U = N*%pi*d*0.5/30;
c1 = KN*sqrt(2*g*H_eps);
nu = U/c1;
eff = 2*nu*(1-nu)*(1-(1-k)*cos(alpha*%pi/180));
Q = (P*10^6 /eff)/(rho*g*H_eps);
Aj = Q/(2*c1);
dj = sqrt(4*Aj/%pi);
omega_sp = (N*%pi/30)*sqrt((P*10^6)/rho)/((g*H_eps)^(5/4));
//Results
printf('(i)The runner efficiency = %.4f',eff);
printf('\n (ii)The diameter of each jet = %.4f m',dj);
printf('\n (iii)The power specific speed = %.3f rad',omega_sp);
|
9ede87563cc4078fa82b8e97618fd493362cd263 | 5f48beee3dc825617c83ba20a7c82c544061af65 | /tests/s/49.tst | 06ec8d73752d37aa3e8ac5f3740356ca0146ccdd | [] | no_license | grenkin/compiler | bed06cd6dac49c1ca89d2723174210cd3dc8efea | 30634ec46fba10333cf284399f577be7fb8e5b61 | refs/heads/master | 2020-06-20T12:44:17.903582 | 2016-11-27T03:08:20 | 2016-11-27T03:08:20 | 74,863,612 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 70 | tst | 49.tst | int main(int argc, char* argv[])
{
int x;
x++;
return 0;
}
|
1750983c07b32117594b95f8bf57d06544482675 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3809/CH4/EX4.6/EX4_6.sce | bef9d7cfc69cbe443b609a181198cb5af19946d3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 313 | sce | EX4_6.sce | //Chapter 4, Example 4.6
clc
//Initialisation'
c1=10*10**-6 //capacitance in farad
c2=25*10**-6 //capacitance in farad
//Calculation
c=(c1*c2)/(c1+c2) //equivalent parallel capacitance in farad
//Results
printf("Total Capacitance, C = %.2f uF",c*10**6)
|
957c3a7907f7f4f2cd5b779bd9dcf7333add48a2 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/tweet/bow/bow.20_11.tst | 7f5efa23995b66f605385c8dd4ede09dc257cce2 | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 28,256 | tst | bow.20_11.tst | 20 7:1.0 9:2.0 12:0.1111111111111111 15:1.0 18:0.2 31:0.14285714285714285 41:1.0 59:0.16666666666666666 106:0.16666666666666666 110:0.08333333333333333 126:0.5 127:0.16666666666666666 128:1.0 134:0.25 153:1.0 183:0.5 283:1.0 586:1.0 857:1.0 982:0.3333333333333333 1121:0.038461538461538464 1439:1.0 1971:1.0 2695:1.0 5100:1.0 5651:1.0 5864:1.0 6066:1.0 6385:1.0 6434:1.0 6576:1.0
20 9:1.0 12:0.5555555555555556 18:0.2 46:0.16666666666666666 52:0.017543859649122806 65:1.0 66:1.0 81:1.0 110:0.08333333333333333 126:0.5 127:0.16666666666666666 128:1.0 136:1.0 215:0.06666666666666667 236:0.09090909090909091 275:0.09090909090909091 328:0.3333333333333333 482:1.0 504:0.5 811:1.0 857:1.0 1114:1.0 1121:0.038461538461538464 1374:1.0 1449:1.0 1531:0.5 1554:0.125 1971:1.0 2452:0.16666666666666666 3819:1.0 3934:1.0 3941:1.0 5010:1.0 5299:1.0 5369:2.0 5410:0.2 5765:1.0 6368:1.0
20 9:1.0 12:0.1111111111111111 16:0.3333333333333333 50:1.0 53:0.3333333333333333 55:0.5 59:0.5 60:1.0 88:0.3333333333333333 99:0.16666666666666666 105:0.2 106:0.16666666666666666 136:1.0 139:1.0 221:1.0 267:0.3333333333333333 297:1.0 388:1.0 616:0.14285714285714285 648:1.0 916:0.5 982:0.3333333333333333 1053:1.0 1121:0.038461538461538464 1159:1.0 1212:1.0 1472:1.0 1857:1.0 2296:1.0 3327:1.0 4475:1.0 4651:1.0 5505:1.0 5738:1.0 5887:1.0 5962:0.5 6275:1.0 6697:1.0
20 7:1.0 12:0.2222222222222222 15:1.0 18:0.4 33:0.5 50:0.6666666666666666 52:0.017543859649122806 102:0.3333333333333333 105:0.2 110:0.08333333333333333 136:1.0 189:1.0 237:0.125 450:0.07142857142857142 465:1.0 900:2.0 1212:1.0 1629:0.25 1895:1.0 2150:1.0 2272:1.0 5409:0.5 5954:1.0 6771:1.0
20 7:1.0 12:0.1111111111111111 50:0.3333333333333333 78:1.0 106:0.16666666666666666 237:0.125 450:0.07142857142857142 465:1.0 1114:1.0 1653:0.06666666666666667 1924:1.0 3427:1.0 5929:0.5 6091:1.0
20 46:0.08333333333333333 50:0.3333333333333333 240:0.3333333333333333 616:0.14285714285714285 646:1.0 661:0.25 805:0.5 1114:1.0 1121:0.038461538461538464 1141:1.0 1429:1.0 1603:1.0 1809:1.0 3953:1.0 5467:1.0 5984:1.0 6158:1.0
20 18:0.2 31:0.14285714285714285 46:0.08333333333333333 50:0.3333333333333333 105:0.2 106:0.16666666666666666 236:0.09090909090909091 237:0.25 328:0.3333333333333333 450:0.07142857142857142 465:1.0 530:2.0 884:0.3333333333333333 1383:1.0 1831:1.0 1886:1.0 2479:1.0 3762:1.0 6764:1.0 7136:1.0
20 7:1.0 12:0.1111111111111111 14:1.0 18:0.2 22:1.0 45:0.5 46:0.25 48:0.043478260869565216 50:0.6666666666666666 66:1.0 99:0.16666666666666666 110:0.16666666666666666 128:0.5 135:0.5 237:0.125 275:0.09090909090909091 296:0.5 393:0.16666666666666666 465:1.0 795:0.2 943:0.3333333333333333 1037:1.0 1039:1.0 1114:1.0 1212:1.0 1369:1.0 2690:1.0 3736:1.0 4248:1.0 5339:0.1111111111111111 5956:1.0 6573:1.0 6926:1.0
20 7:3.0 12:0.1111111111111111 15:1.0 18:0.2 31:0.14285714285714285 50:0.3333333333333333 52:0.03508771929824561 59:0.16666666666666666 75:0.5 106:0.5 162:0.5 183:0.5 222:0.3333333333333333 237:0.125 279:0.75 328:0.3333333333333333 450:0.07142857142857142 616:0.14285714285714285 811:1.0 884:0.3333333333333333 1118:0.25 1496:1.0 2086:0.5 2822:1.0 5168:1.0 5369:1.0 6201:1.0 6257:1.0 6681:1.0 7021:1.0 7260:1.0
20 7:1.0 50:0.3333333333333333 59:0.16666666666666666 135:0.5 221:1.0 237:0.125 450:0.07142857142857142 465:1.0 600:1.0 616:0.42857142857142855 936:0.14285714285714285 1781:1.0 2263:1.0 4511:1.0 4755:1.0 5409:0.5 6257:1.0
20 7:1.0 18:0.4 50:0.3333333333333333 66:1.0 99:0.16666666666666666 102:0.6666666666666666 126:0.5 136:1.0 153:1.0 237:0.125 279:0.25 353:1.0 450:0.07142857142857142 465:1.0 616:0.14285714285714285 664:0.25 1121:0.038461538461538464 1126:1.0 1159:1.0 1831:1.0 1886:1.0 1913:1.0 1948:1.0 2656:1.0 3283:1.0 5703:1.0 6583:1.0 6867:0.5
20 12:0.1111111111111111 26:1.0 50:0.3333333333333333 99:0.3333333333333333 127:0.16666666666666666 134:0.25 136:1.0 165:0.5 183:0.5 237:0.125 465:1.0 616:0.14285714285714285 780:1.0 839:1.0 1374:1.0 1477:1.0 3252:0.5 5272:1.0 5352:0.3333333333333333 5438:1.0 5476:1.0
20 7:1.0 9:1.0 12:0.1111111111111111 18:0.2 31:0.14285714285714285 50:0.6666666666666666 66:1.0 136:1.0 236:0.09090909090909091 237:0.125 260:1.0 267:0.16666666666666666 328:0.3333333333333333 516:0.3333333333333333 745:1.0 964:0.14285714285714285 1383:1.0 1653:0.06666666666666667 1913:1.0 2618:1.0 4716:1.0 6158:1.0
20 11:0.25 12:0.1111111111111111 15:1.0 18:0.2 82:0.5 186:1.0 260:1.0 320:1.0 390:1.0 661:0.25 671:0.2 828:1.0 857:1.0 1151:1.0 3254:0.5 4740:1.0 5102:1.0 5963:1.0 6482:1.0
20 12:0.2222222222222222 15:2.0 18:0.4 31:0.14285714285714285 40:0.2 48:0.043478260869565216 50:0.3333333333333333 52:0.017543859649122806 59:0.5 82:0.5 128:0.5 377:0.5 648:1.0 671:0.2 1161:1.0 1383:1.0 1573:1.0 2533:1.0 2724:1.0 5026:1.0 5395:1.0 7065:1.0
20 7:2.0 11:0.25 16:0.3333333333333333 41:1.0 50:0.3333333333333333 55:0.25 58:1.0 59:0.16666666666666666 66:1.0 463:1.0 514:1.0 687:0.5 755:0.25 768:1.0 1411:1.0 1757:0.5 2150:1.0 2768:1.0 2921:1.0 3378:1.0 6185:1.0 6529:1.0
20 15:1.0 16:0.6666666666666666 18:0.2 40:0.2 48:0.08695652173913043 52:0.017543859649122806 58:1.0 59:0.5 150:0.5 437:1.0 671:0.2 1161:1.0 1463:2.0 2650:1.0 2855:1.0 5026:1.0 5510:1.0
20 7:1.0 16:0.6666666666666666 31:0.14285714285714285 50:0.3333333333333333 52:0.017543859649122806 53:0.3333333333333333 59:0.3333333333333333 66:1.0 105:0.2 106:0.16666666666666666 136:1.0 165:0.5 279:0.25 286:1.0 342:0.25 450:0.07142857142857142 755:0.125 916:0.5 1077:1.0 1114:1.0 2744:1.0 3995:1.0 5343:1.0 7074:1.0
20 7:1.0 12:0.2222222222222222 18:0.4 31:0.14285714285714285 52:0.017543859649122806 55:0.25 60:1.0 88:0.3333333333333333 105:0.2 106:0.3333333333333333 182:0.3333333333333333 328:0.3333333333333333 388:1.0 616:0.14285714285714285 687:0.5 1032:0.3333333333333333 1206:1.0 1358:1.0 1657:1.0 1909:1.0 2275:1.0 2774:3.0 3368:1.0 3874:1.0 4678:1.0 5918:1.0 7105:1.0
20 8:1.0 16:0.6666666666666666 31:0.14285714285714285 50:0.3333333333333333 59:0.16666666666666666 105:0.2 106:0.16666666666666666 185:0.5 189:1.0 222:0.3333333333333333 240:0.3333333333333333 393:0.16666666666666666 504:1.0 978:1.0 1040:1.0 1121:0.038461538461538464 1383:1.0 1886:1.0 2892:1.0 3153:1.0 3808:1.0 5510:1.0 6288:1.0
20 9:1.0 11:0.25 15:1.0 16:0.3333333333333333 44:1.0 50:0.3333333333333333 52:0.017543859649122806 66:2.0 106:0.16666666666666666 110:0.08333333333333333 111:1.0 178:1.0 404:0.5 723:1.0 883:1.0 1125:1.0 1178:1.0 1231:1.0 1264:1.0 1297:1.0 1895:1.0 1924:1.0 5409:0.5 5510:1.0
20 7:1.0 9:2.0 12:0.1111111111111111 24:0.16666666666666666 27:1.0 31:0.2857142857142857 41:1.0 50:0.3333333333333333 99:0.16666666666666666 321:1.0 380:1.0 525:1.0 604:1.0 616:0.14285714285714285 662:2.0 812:1.0 1209:1.0 1554:0.125 3479:1.0 5510:1.0 6867:0.5
20 7:3.0 11:0.25 12:0.1111111111111111 15:1.0 18:0.2 47:0.5 48:0.043478260869565216 58:2.0 59:0.3333333333333333 110:0.08333333333333333 165:0.5 266:0.2 466:1.0 1151:1.0 1231:1.0 1315:1.0 2911:0.5 3232:1.0 3667:1.0 4291:1.0 5952:0.5
20 7:1.0 14:1.0 18:0.2 47:0.5 48:0.043478260869565216 55:0.25 66:1.0 99:0.16666666666666666 110:0.08333333333333333 111:1.0 215:0.06666666666666667 786:1.0 795:0.2 1895:1.0 2605:1.0 2976:1.0 3330:1.0 5306:1.0 5409:0.5 6700:1.0
20 9:1.0 50:0.6666666666666666 105:0.2 110:0.08333333333333333 328:0.3333333333333333 450:0.07142857142857142 1251:1.0 2453:1.0 4958:1.0 5350:1.0
20 5:1.0 18:0.2 31:0.14285714285714285 48:0.043478260869565216 50:0.6666666666666666 328:0.3333333333333333 513:0.5 584:0.5 661:0.25 805:0.5 1178:1.0 1182:1.0 2552:1.0
20 9:1.0 11:0.25 14:1.0 18:0.2 24:0.16666666666666666 50:0.3333333333333333 126:0.5 127:0.16666666666666666 328:0.3333333333333333 960:1.0 1033:1.0 1501:1.0 1554:0.125 1603:1.0 2774:1.0 5484:0.5
20 7:3.0 8:1.0 9:1.0 11:0.25 12:0.2222222222222222 14:1.0 15:1.0 18:0.2 22:1.0 26:0.5 31:0.14285714285714285 50:0.3333333333333333 52:0.03508771929824561 66:1.0 99:0.16666666666666666 113:1.0 127:0.3333333333333333 183:0.5 236:0.09090909090909091 242:1.0 243:1.0 275:0.09090909090909091 328:0.3333333333333333 336:1.0 390:2.0 1383:1.0 3248:1.0 3493:1.0 3504:1.0 3548:1.0 5362:1.0 5409:0.5 5472:1.0 5692:1.0 5767:1.0 7345:1.0
20 5:1.0 9:1.0 12:0.2222222222222222 15:2.0 18:0.2 31:0.14285714285714285 50:0.6666666666666666 66:1.0 84:1.0 127:0.16666666666666666 198:1.0 236:0.09090909090909091 523:1.0 664:0.25 783:1.0 869:0.5 878:1.0 1121:0.038461538461538464 1178:1.0 1383:2.0 1886:1.0 2280:1.0 2590:1.0 5092:1.0 5814:1.0 6166:1.0 6968:1.0 7366:1.0
20 7:1.0 12:0.4444444444444444 18:0.2 50:0.3333333333333333 59:0.16666666666666666 99:0.16666666666666666 126:0.5 128:0.5 135:0.5 236:0.09090909090909091 240:0.3333333333333333 390:1.0 411:0.5 544:1.0 622:1.0 671:0.2 755:0.125 1330:0.5 1948:1.0 2499:1.0 2533:1.0 2541:1.0 5242:1.0
20 7:1.0 9:1.0 12:0.1111111111111111 14:1.0 18:0.2 30:1.0 31:0.14285714285714285 39:1.0 48:0.043478260869565216 50:0.3333333333333333 99:0.16666666666666666 105:0.2 127:0.16666666666666666 153:1.0 216:1.0 242:2.0 275:0.09090909090909091 296:0.5 1118:0.25 1383:1.0 1731:1.0 3160:1.0 3228:1.0 3385:1.0 5151:1.0 5250:1.0 5628:0.3333333333333333 6906:1.0 7149:1.0
20 9:1.0 12:0.1111111111111111 18:0.6 48:0.043478260869565216 99:0.3333333333333333 110:0.08333333333333333 126:0.5 242:1.0 260:1.0 1187:1.0 2226:1.0 2439:1.0 2967:1.0 3160:1.0 5250:1.0 5409:0.5 6630:1.0 6906:1.0 6974:1.0 7149:1.0
20 7:1.0 12:0.2222222222222222 30:1.0 31:0.14285714285714285 34:0.3333333333333333 99:0.16666666666666666 127:0.3333333333333333 236:0.09090909090909091 260:1.0 279:0.25 380:1.0 1025:0.3333333333333333 1113:0.5 2111:0.25 2263:1.0 2590:1.0 2736:1.0 3160:1.0 3937:1.0 5314:1.0 5409:0.5 7072:1.0
20 7:2.0 8:1.0 16:0.6666666666666666 22:1.0 50:0.3333333333333333 53:0.3333333333333333 59:0.16666666666666666 70:0.1111111111111111 105:0.2 135:1.0 253:1.0 279:0.25 320:1.0 322:1.0 345:0.25 348:0.5 853:0.5 1129:1.0 1274:1.0 1383:1.0 3770:1.0 4147:1.0 6804:1.0
20 9:1.0 15:1.0 50:0.6666666666666666 52:0.03508771929824561 58:1.0 66:1.0 77:1.0 106:0.16666666666666666 110:0.08333333333333333 216:1.0 277:0.2 282:0.5 646:2.0 900:1.0 1089:1.0 1276:0.3333333333333333 1383:1.0 1557:1.0 2002:0.3333333333333333 2166:1.0 2438:1.0 3668:1.0 5805:1.0 6037:0.5 6057:1.0 6364:1.0 6498:1.0
20 7:2.0 12:0.2222222222222222 15:1.0 31:0.14285714285714285 46:0.08333333333333333 50:0.6666666666666666 52:0.017543859649122806 82:0.5 102:0.3333333333333333 105:0.2 106:0.16666666666666666 110:0.08333333333333333 134:0.25 135:0.5 150:0.5 218:1.0 450:0.07142857142857142 469:1.0 671:0.2 1383:2.0 2723:0.5 3650:0.5 5410:0.2
20 9:3.0 12:0.2222222222222222 24:0.16666666666666666 46:0.16666666666666666 50:0.6666666666666666 55:0.25 66:1.0 102:0.3333333333333333 103:0.5 450:0.07142857142857142 675:0.3333333333333333 853:0.5 857:1.0 964:0.14285714285714285 1037:1.0 1121:0.038461538461538464 1383:2.0 2586:1.0 2878:1.0 2905:1.0 7012:1.0 7048:1.0 7272:1.0
20 16:0.3333333333333333 31:0.14285714285714285 50:0.6666666666666666 52:0.017543859649122806 59:0.16666666666666666 126:0.5 127:0.16666666666666666 165:0.5 191:1.0 916:0.5 964:0.14285714285714285 982:0.3333333333333333 1383:2.0 1869:1.0 3941:1.0 6075:1.0 6435:1.0 6583:1.0
20 3:0.5 9:1.0 15:1.0 31:0.14285714285714285 50:0.3333333333333333 102:0.3333333333333333 103:0.5 448:0.5 1129:1.0 1374:1.0 1383:1.0 3446:1.0 3583:1.0 5410:0.2 5584:1.0 6197:1.0
20 5:1.0 9:1.0 12:0.1111111111111111 18:0.2 31:0.14285714285714285 41:1.0 50:0.3333333333333333 58:1.0 66:1.0 126:0.5 128:0.5 237:0.125 324:1.0 616:0.14285714285714285 687:0.5 786:1.0 805:0.5 1102:1.0 1129:1.0 1365:1.0 1653:0.06666666666666667 3788:1.0 5395:1.0 5887:1.0 5918:1.0 6158:1.0 6159:1.0 6163:1.0 6312:1.0 6880:1.0
20 99:0.16666666666666666 127:0.16666666666666666 979:1.0 2098:1.0
20 7:1.0 9:2.0 12:0.1111111111111111 18:0.2 41:1.0 50:0.3333333333333333 66:1.0 99:0.16666666666666666 106:0.16666666666666666 126:0.5 128:0.5 277:0.2 328:0.3333333333333333 664:0.25 905:1.0 979:1.0 2098:1.0 2178:1.0 2977:1.0 6162:1.0
20 7:1.0 9:1.0 12:0.3333333333333333 14:1.0 18:0.2 31:0.14285714285714285 52:0.017543859649122806 66:1.0 82:0.5 99:0.3333333333333333 125:1.0 126:0.5 127:0.16666666666666666 136:1.0 260:1.0 342:0.25 550:0.3333333333333333 936:0.14285714285714285 979:2.0 1657:1.0 2024:1.0 3132:1.0 3598:1.0 3599:1.0 4569:1.0 5510:1.0 5534:1.0 6936:1.0 7289:1.0
20 12:0.1111111111111111 18:0.2 31:0.2857142857142857 66:1.0 99:0.16666666666666666 110:0.08333333333333333 127:0.3333333333333333 133:0.3333333333333333 279:0.25 284:1.0 619:1.0 979:1.0 1032:0.6666666666666666 1114:1.0 3599:1.0 5352:0.3333333333333333 5510:1.0 6180:1.0 6202:1.0 6479:1.0
20 2:1.0 7:3.0 9:1.0 12:0.3333333333333333 31:0.14285714285714285 38:1.0 75:0.5 99:0.16666666666666666 110:0.08333333333333333 127:0.16666666666666666 133:0.3333333333333333 178:1.0 243:1.0 362:0.5 1114:1.0 1206:1.0 1379:1.0 1603:1.0 1863:1.0 2838:1.0 2980:0.5 5021:1.0 5472:1.0 5534:1.0
20 9:3.0 50:0.3333333333333333 59:0.3333333333333333 82:0.5 110:0.08333333333333333 237:0.125 868:0.5 1121:0.07692307692307693 1192:0.09090909090909091 3114:1.0 3705:0.5
20 18:0.2 31:0.14285714285714285 50:0.3333333333333333 126:0.5 657:1.0 936:0.14285714285714285 6583:1.0
20 9:1.0 12:0.2222222222222222 31:0.14285714285714285 50:0.3333333333333333 52:0.017543859649122806 65:1.0 128:0.5 133:0.3333333333333333 189:1.0 883:1.0 2654:1.0 2669:1.0 3458:1.0 3583:1.0 5412:1.0
20 7:2.0 12:0.1111111111111111 16:0.6666666666666666 18:0.2 50:0.6666666666666666 65:1.0 93:1.0 99:0.16666666666666666 110:0.16666666666666666 126:0.5 189:1.0 387:1.0 512:1.0 1383:2.0 1653:0.06666666666666667 2048:1.0 2723:0.5
20 12:0.1111111111111111 15:1.0 18:0.2 48:0.043478260869565216 50:0.3333333333333333 52:0.03508771929824561 53:0.3333333333333333 58:1.0 106:0.16666666666666666 134:0.25 150:0.5 222:0.3333333333333333 237:0.125 260:1.0 310:1.0 336:1.0 657:1.0 661:0.25 672:1.0 755:0.125 1194:1.0 1263:0.5 1499:1.0 2650:1.0 3141:1.0 3650:0.5 3788:1.0 4280:1.0 6132:1.0
20 18:0.2 24:0.16666666666666666 41:1.0 50:0.3333333333333333 59:0.16666666666666666 110:0.25 236:0.09090909090909091 237:0.125 284:1.0 755:0.125 812:3.0 1089:1.0 1121:0.038461538461538464 1369:1.0 1886:1.0 2313:0.5 3668:1.0
20 9:1.0 12:0.1111111111111111 18:0.2 27:1.0 31:0.14285714285714285 50:0.6666666666666666 103:0.5 106:0.3333333333333333 110:0.16666666666666666 126:0.5 134:0.25 136:1.0 182:0.3333333333333333 390:1.0 688:0.5 869:0.5 982:0.3333333333333333 1504:1.0 1653:0.06666666666666667 2973:0.5 4411:1.0 4666:1.0 6165:1.0
20 12:0.1111111111111111 45:0.5 46:0.08333333333333333 50:0.6666666666666666 52:0.017543859649122806 55:0.25 58:1.0 66:1.0 106:0.16666666666666666 112:1.0 279:0.25 818:1.0 884:0.3333333333333333 943:0.3333333333333333 1005:1.0 1114:1.0 1383:1.0 5352:0.3333333333333333 6248:1.0 6764:1.0
20 75:0.5 106:0.16666666666666666 289:1.0 348:0.5 544:1.0 788:0.5 805:0.5 1053:1.0 1341:1.0 1946:1.0 2086:0.5 5805:1.0 6162:1.0 6659:1.0
20 9:1.0 12:0.2222222222222222 15:1.0 18:0.4 31:0.14285714285714285 50:0.3333333333333333 65:1.0 127:0.3333333333333333 135:0.5 153:1.0 236:0.18181818181818182 324:1.0 426:1.0 482:1.0 616:0.14285714285714285 670:0.5 700:1.0 783:1.0 846:1.0 1032:0.3333333333333333 1072:1.0 1383:1.0 2048:1.0 2140:0.5 2421:1.0 2590:1.0 4191:1.0 5068:1.0
20 9:2.0 12:0.3333333333333333 15:1.0 16:0.3333333333333333 18:0.2 31:0.14285714285714285 46:0.08333333333333333 48:0.043478260869565216 55:0.25 70:0.1111111111111111 110:0.08333333333333333 127:0.16666666666666666 162:0.5 320:2.0 362:0.5 812:1.0 964:0.14285714285714285 1121:0.038461538461538464 1206:1.0 1554:0.125 2303:1.0 2467:1.0 3396:1.0 3941:1.0 5765:1.0
20 7:2.0 18:0.2 46:0.08333333333333333 50:0.3333333333333333 66:2.0 99:0.16666666666666666 127:0.16666666666666666 134:0.25 178:1.0 260:1.0 328:0.3333333333333333 342:0.25 437:1.0 525:1.0 542:1.0 616:0.14285714285714285 622:1.0 853:0.5 1121:0.038461538461538464 1383:1.0 1517:1.0 1886:1.0 6367:1.0 7288:1.0
20 7:1.0 9:1.0 12:0.2222222222222222 31:0.14285714285714285 50:0.3333333333333333 52:0.03508771929824561 53:0.3333333333333333 77:1.0 78:1.0 99:0.16666666666666666 110:0.08333333333333333 165:0.5 178:1.0 224:1.0 675:0.3333333333333333 814:1.0 943:0.3333333333333333 2303:1.0 2650:1.0 3246:1.0 3350:1.0 6194:2.0 7149:1.0
20 7:1.0 9:1.0 12:0.2222222222222222 15:3.0 16:0.3333333333333333 50:0.3333333333333333 59:0.16666666666666666 82:0.5 105:0.2 111:1.0 127:0.16666666666666666 133:0.3333333333333333 426:1.0 544:1.0 1114:1.0 1121:0.038461538461538464 1396:1.0 2518:1.0 3974:1.0 6288:1.0
20 12:0.1111111111111111 18:0.4 41:1.0 55:0.25 75:0.5 411:0.5 544:1.0 1399:1.0 1554:0.125 1729:1.0 1948:1.0 1971:1.0 2533:1.0 3350:1.0 5307:1.0 6820:1.0
20 9:2.0 18:0.2 50:0.3333333333333333 58:1.0 59:0.16666666666666666 66:3.0 99:0.16666666666666666 110:0.08333333333333333 127:0.16666666666666666 273:1.0 345:0.25 355:0.5 437:1.0 823:1.0 1114:1.0 1383:1.0 1496:1.0 3130:1.0 4604:1.0 4899:1.0
20 11:0.25 18:0.4 22:1.0 24:0.16666666666666666 46:0.08333333333333333 50:0.6666666666666666 59:0.3333333333333333 66:2.0 328:0.3333333333333333 916:0.5 943:0.3333333333333333 1121:0.038461538461538464 1372:1.0 1383:2.0 1948:1.0 2002:0.3333333333333333 2140:0.5 4811:1.0 5273:1.0 5339:0.1111111111111111 5861:1.0 6402:1.0 7258:1.0
20 9:1.0 12:0.2222222222222222 14:1.0 15:2.0 18:0.2 53:0.3333333333333333 55:0.25 99:0.3333333333333333 110:0.08333333333333333 111:1.0 126:0.5 236:0.09090909090909091 275:0.09090909090909091 279:0.25 527:0.5 688:0.5 1125:1.0 1276:0.3333333333333333 1531:0.5 1827:1.0 2611:1.0 6406:1.0
20 18:0.4 45:0.5 46:0.08333333333333333 48:0.043478260869565216 50:0.3333333333333333 52:0.03508771929824561 59:0.16666666666666666 133:0.3333333333333333 136:2.0 161:1.0 240:0.3333333333333333 279:0.25 298:1.0 303:0.5 437:1.0 450:0.07142857142857142 1383:1.0 1496:1.0 1557:1.0 1653:0.06666666666666667 1913:1.0 2287:1.0 3838:1.0 5352:0.3333333333333333 5408:1.0 5656:1.0 5697:1.0
20 7:1.0 12:0.2222222222222222 52:0.017543859649122806 55:0.25 70:0.1111111111111111 89:1.0 127:0.16666666666666666 133:0.3333333333333333 136:1.0 162:0.5 275:0.09090909090909091 279:0.25 322:1.0 563:1.0 583:1.0 846:1.0 1206:1.0 1561:1.0 2774:1.0 2945:0.5 3352:1.0 4784:1.0 5272:1.0 6828:2.0
20 7:1.0 11:0.25 12:0.1111111111111111 31:0.14285714285714285 50:0.6666666666666666 52:0.05263157894736842 102:0.3333333333333333 110:0.08333333333333333 128:0.5 165:0.5 215:0.06666666666666667 221:1.0 408:1.0 542:1.0 825:1.0 828:1.0 1383:1.0 1517:1.0 1771:1.0 4191:1.0
20 9:1.0 15:1.0 18:0.2 31:0.14285714285714285 135:0.5 186:1.0 233:1.0 328:0.3333333333333333 390:1.0 616:0.14285714285714285 1032:0.3333333333333333 2111:0.25 2744:1.0 3752:0.3333333333333333 5472:1.0 5535:2.0 5562:0.5 5799:1.0 5882:1.0 7001:1.0 7290:1.0
20 7:1.0 9:1.0 31:0.14285714285714285 215:0.06666666666666667 357:1.0 671:0.2 788:0.5 1467:1.0 1701:0.5 1879:1.0 2414:1.0 3887:1.0 4026:1.0 4650:1.0 5962:0.5 6213:1.0 6711:1.0
20 9:1.0 12:0.2222222222222222 15:1.0 18:0.4 41:1.0 50:0.3333333333333333 59:0.3333333333333333 93:1.0 126:0.5 165:0.5 279:0.25 432:1.0 450:0.07142857142857142 455:1.0 907:1.0 5092:1.0 5410:0.2 5510:1.0 5798:1.0 5962:0.5 6063:1.0 6796:1.0
20 9:1.0 46:0.08333333333333333 50:0.3333333333333333 55:0.25 60:1.0 127:0.16666666666666666 135:0.5 236:0.18181818181818182 516:0.3333333333333333 783:1.0 979:1.0 1121:0.038461538461538464 1366:0.5 1629:0.25 2275:1.0 2590:1.0 2764:1.0 3457:1.0 5645:1.0 6571:1.0
20 12:0.1111111111111111 15:1.0 31:0.2857142857142857 47:0.5 48:0.043478260869565216 50:0.3333333333333333 66:2.0 99:0.16666666666666666 110:0.08333333333333333 127:0.16666666666666666 236:0.09090909090909091 266:0.2 445:1.0 455:1.0 641:2.0 1037:1.0 1114:1.0 2590:1.0 3980:1.0 5299:1.0 5703:1.0 6460:1.0
20 9:2.0 12:0.2222222222222222 15:1.0 16:0.3333333333333333 18:0.4 31:0.2857142857142857 46:0.08333333333333333 47:0.5 48:0.043478260869565216 66:1.0 266:0.2 445:1.0 639:1.0 641:2.0 809:1.0 839:1.0 1121:0.038461538461538464 1754:1.0 1804:1.0 2343:1.0 4602:1.0 4823:1.0 5463:1.0 7370:1.0
20 7:1.0 9:3.0 15:1.0 18:0.2 50:0.3333333333333333 128:0.5 153:1.0 233:1.0 236:0.09090909090909091 269:0.5 328:0.3333333333333333 516:0.3333333333333333 616:0.14285714285714285 688:0.5 783:1.0 964:0.14285714285714285 1469:1.0 1532:1.0 2744:1.0 2764:1.0 3036:1.0 3752:0.3333333333333333 5799:1.0 5882:1.0 7001:1.0 7178:1.0
20 9:2.0 12:0.2222222222222222 18:0.4 41:1.0 50:0.3333333333333333 66:2.0 70:0.1111111111111111 93:1.0 125:1.0 126:0.5 411:0.5 432:1.0 525:1.0 907:1.0 910:1.0 2132:1.0 2992:1.0 4280:1.0 5092:1.0 5242:1.0 5339:0.1111111111111111 5510:1.0 5798:1.0 5962:0.5 6063:1.0 6796:1.0
20 8:1.0 18:0.2 31:0.14285714285714285 70:0.1111111111111111 135:0.5 136:1.0 322:1.0 328:0.3333333333333333 450:0.07142857142857142 482:1.0 602:1.0 839:1.0 1118:0.25 1463:1.0 1846:1.0 2582:1.0 2945:0.5 6880:1.0
20 7:2.0 12:0.2222222222222222 31:0.2857142857142857 50:0.3333333333333333 59:0.3333333333333333 65:1.0 105:0.2 106:0.16666666666666666 110:0.08333333333333333 133:0.3333333333333333 171:1.0 267:0.16666666666666666 390:1.0 671:0.2 757:1.0 1121:0.038461538461538464 1203:1.0 1778:1.0 5394:1.0 5496:1.0 5936:1.0 6165:1.0
20 12:0.1111111111111111 16:0.3333333333333333 18:0.6 31:0.2857142857142857 99:0.16666666666666666 155:0.5 236:0.09090909090909091 253:1.0 260:1.0 328:0.3333333333333333 437:1.0 450:0.07142857142857142 593:1.0 783:1.0 816:1.0 884:0.6666666666666666 1075:1.0 1971:1.0 4604:1.0 5895:1.0 6775:1.0
20 7:2.0 12:0.1111111111111111 18:0.2 31:0.14285714285714285 59:0.16666666666666666 110:0.08333333333333333 128:0.5 237:0.125 260:1.0 328:0.3333333333333333 448:0.5 450:0.07142857142857142 465:1.0 582:0.3333333333333333 1114:1.0 1971:1.0 4604:1.0
20 11:0.25 12:0.1111111111111111 14:1.0 18:0.6 47:0.5 50:0.3333333333333333 52:0.017543859649122806 59:0.16666666666666666 106:0.16666666666666666 110:0.08333333333333333 162:0.5 165:0.5 236:0.09090909090909091 286:1.0 336:1.0 388:1.0 563:1.0 846:1.0 1102:1.0 2774:1.0 3705:0.5 3764:1.0
20 12:0.1111111111111111 15:1.0 16:0.3333333333333333 31:0.2857142857142857 46:0.08333333333333333 50:0.3333333333333333 52:0.017543859649122806 58:1.0 66:1.0 75:0.5 84:1.0 106:0.16666666666666666 110:0.08333333333333333 134:0.25 216:1.0 275:0.09090909090909091 450:0.07142857142857142 513:0.5 1315:1.0 1383:1.0 1554:0.125 2992:1.0 4545:1.0 4604:1.0 5222:0.25 6047:1.0
20 8:1.0 9:2.0 12:0.1111111111111111 31:0.2857142857142857 46:0.08333333333333333 50:0.6666666666666666 66:2.0 110:0.08333333333333333 126:0.5 275:0.09090909090909091 328:0.3333333333333333 388:1.0 604:1.0 619:1.0 634:1.0 1053:1.0 1095:0.5 1383:1.0 1653:0.06666666666666667 3615:1.0 5299:1.0 5484:0.5 6312:1.0
20 9:1.0 12:0.2222222222222222 15:2.0 18:0.2 48:0.043478260869565216 50:0.3333333333333333 53:0.3333333333333333 59:0.3333333333333333 66:1.0 127:0.16666666666666666 286:1.0 666:1.0 982:0.3333333333333333 1121:0.038461538461538464 1383:1.0 2878:1.0 3195:1.0 5409:0.5 6519:1.0 6746:1.0
20 7:1.0 9:1.0 12:0.1111111111111111 16:0.3333333333333333 18:0.2 31:0.14285714285714285 48:0.043478260869565216 59:0.16666666666666666 127:0.16666666666666666 135:1.0 279:0.25 309:1.0 474:1.0 1297:1.0 1846:1.0 2856:1.0 3737:1.0 3752:0.3333333333333333 4467:1.0 5111:1.0 5409:0.5 5472:1.0 6047:1.0 6257:1.0 6409:1.0 7178:1.0
20 31:0.2857142857142857 33:0.5 50:0.3333333333333333 66:2.0 76:1.0 82:0.5 102:0.3333333333333333 103:0.5 126:0.5 135:0.5 186:1.0 746:1.0 825:1.0 1032:0.3333333333333333 1543:1.0 2079:1.0 2093:1.0 2219:1.0 3104:1.0 4366:1.0 5352:0.3333333333333333 5472:1.0 5936:1.0 6202:1.0 7357:1.0
20 7:1.0 12:0.1111111111111111 18:0.2 24:0.16666666666666666 50:1.0 75:0.5 126:0.5 133:0.3333333333333333 135:0.5 164:1.0 286:1.0 450:0.07142857142857142 604:1.0 982:0.3333333333333333 1182:1.0 1383:2.0 1439:1.0 1739:1.0 1886:1.0 2061:1.0 2079:1.0 2140:0.5 2438:1.0 2830:1.0 5595:0.2 5597:1.0 5598:1.0
20 9:1.0 12:0.2222222222222222 46:0.08333333333333333 50:0.6666666666666666 126:0.5 127:0.16666666666666666 869:0.5 1121:0.038461538461538464 1223:1.0 1615:1.0 1629:0.25 3438:1.0 6490:1.0
20 7:1.0 9:1.0 12:0.2222222222222222 31:0.14285714285714285 50:0.3333333333333333 110:0.08333333333333333 126:0.5 153:1.0 237:0.125 268:1.0 388:1.0 528:1.0 805:0.5 1039:1.0 1114:1.0 2111:0.25 6257:1.0
20 9:1.0 12:0.1111111111111111 22:1.0 50:0.3333333333333333 52:0.03508771929824561 189:1.0 215:0.06666666666666667 216:1.0 237:0.125 450:0.07142857142857142 465:1.0 1005:1.0 1113:0.5 1383:1.0 1456:1.0 1886:1.0 2132:1.0 3141:1.0 4280:1.0 5339:0.1111111111111111 5426:1.0 6706:1.0
20 9:1.0 12:0.1111111111111111 15:1.0 18:0.6 50:0.3333333333333333 52:0.017543859649122806 59:0.16666666666666666 60:1.0 103:1.0 110:0.08333333333333333 127:0.16666666666666666 275:0.09090909090909091 277:0.2 450:0.07142857142857142 523:1.0 670:0.5 788:0.5 818:1.0 857:1.0 916:0.5 1361:1.0 1383:1.0 1506:1.0 2150:1.0 2539:0.3333333333333333 2744:1.0 3154:1.0 5369:1.0 5963:1.0 6017:1.0 6402:1.0 6641:1.0
20 7:2.0 12:0.2222222222222222 15:1.0 18:0.4 31:0.14285714285714285 82:0.5 103:0.5 106:0.16666666666666666 110:0.08333333333333333 127:0.16666666666666666 135:0.5 189:1.0 390:1.0 508:1.0 521:0.5 688:0.5 788:0.5 1114:1.0 1351:1.0 1463:1.0 2093:1.0 2945:0.5 3087:1.0 4529:1.0 4540:0.5 4707:1.0 5108:1.0 5472:1.0 5690:1.0 6257:1.0 6456:1.0
20 18:0.2 46:0.08333333333333333 50:0.3333333333333333 55:0.25 105:0.2 236:0.09090909090909091 525:1.0 616:0.14285714285714285 1025:0.3333333333333333 1039:1.0 1121:0.038461538461538464 1948:1.0 2071:1.0 2098:1.0 2533:1.0 2973:0.5 5805:1.0 5930:1.0 6185:1.0 6263:1.0 6324:1.0
20 7:1.0 9:2.0 18:0.2 46:0.08333333333333333 47:0.5 50:0.3333333333333333 55:0.25 66:1.0 105:0.2 134:0.25 150:0.5 189:2.0 236:0.09090909090909091 525:1.0 616:0.14285714285714285 1025:0.3333333333333333 1039:1.0 1095:0.5 1121:0.038461538461538464 1948:1.0 2193:0.5 2533:1.0 2973:0.5 3242:1.0 5930:1.0 6823:1.0
20 7:3.0 16:0.3333333333333333 18:0.2 31:0.14285714285714285 41:1.0 46:0.08333333333333333 53:0.3333333333333333 59:0.16666666666666666 60:1.0 70:0.1111111111111111 99:0.16666666666666666 134:0.25 236:0.09090909090909091 237:0.125 275:0.09090909090909091 387:1.0 482:1.0 523:1.0 811:1.0 823:1.0 839:1.0 1361:1.0 1463:1.0 1501:1.0 2428:1.0 2945:0.5 4707:1.0 5272:1.0 6880:1.0 7188:1.0
20 9:1.0 12:0.1111111111111111 15:2.0 18:0.4 33:0.5 46:0.08333333333333333 50:0.3333333333333333 52:0.03508771929824561 106:0.16666666666666666 110:0.25 164:1.0 165:0.5 236:0.09090909090909091 267:0.16666666666666666 279:0.25 336:1.0 916:0.5 943:0.3333333333333333 1125:1.0 1276:0.3333333333333333 1369:1.0 1383:1.0 1399:1.0 1531:0.5 1761:1.0 3141:1.0 5299:1.0 5426:1.0 5436:1.0
20 7:1.0 9:1.0 12:0.2222222222222222 40:0.2 50:0.3333333333333333 59:0.16666666666666666 82:0.5 127:0.16666666666666666 221:1.0 321:1.0 345:0.25 377:0.5 1196:1.0 1274:1.0 1554:0.125 2971:1.0 3141:1.0 3896:1.0 5361:1.0 5409:0.5 5414:1.0 6353:1.0 6487:1.0 7343:1.0 7344:1.0
20 1:1.0 11:0.25 50:0.3333333333333333 59:0.16666666666666666 66:1.0 99:0.3333333333333333 136:1.0 191:1.0 236:0.18181818181818182 390:1.0 616:0.14285714285714285 1102:1.0 1177:1.0 1178:1.0 1713:1.0 2095:1.0 2100:1.0 4248:1.0 4533:1.0 4954:0.3333333333333333 5391:1.0 5776:1.0 5887:1.0 5918:1.0 7290:1.0
20 12:0.1111111111111111 31:0.14285714285714285 50:0.6666666666666666 52:0.017543859649122806 59:0.16666666666666666 66:1.0 99:0.16666666666666666 102:0.3333333333333333 126:0.5 189:1.0 191:1.0 236:0.09090909090909091 450:0.07142857142857142 485:1.0 1561:1.0 1971:1.0 2160:1.0 4533:1.0 4906:1.0 4954:0.3333333333333333 5776:1.0 6119:1.0
20 8:1.0 9:1.0 12:0.3333333333333333 14:1.0 15:1.0 31:0.2857142857142857 46:0.16666666666666666 50:0.6666666666666666 99:0.16666666666666666 180:1.0 320:1.0 450:0.14285714285714285 582:0.3333333333333333 1548:1.0 2048:1.0 2428:1.0 2945:0.5 5074:1.0 6366:1.0 7065:1.0
20 5:1.0 7:1.0 12:0.1111111111111111 15:1.0 50:0.3333333333333333 66:1.0 103:0.5 110:0.08333333333333333 111:1.0 127:0.16666666666666666 215:0.06666666666666667 268:1.0 275:0.09090909090909091 328:0.3333333333333333 610:0.5 1113:0.5 1178:1.0 1276:0.6666666666666666 1383:1.0 1869:1.0 3350:1.0 4706:1.0 6397:1.0
20 46:0.08333333333333333 50:0.3333333333333333 102:0.3333333333333333 106:0.16666666666666666 110:0.08333333333333333 126:0.5 183:0.5 189:1.0 361:0.5 450:0.07142857142857142 523:1.0 639:1.0 671:0.2 688:0.5 943:0.3333333333333333 1095:0.5 1231:1.0 2132:1.0 2467:1.0 2656:1.0 7030:1.0
|
5b801a6f0fae9b9e9f5da2aadd70836d88cb77d5 | a439c420539294c6e178cc89c43c4231246f9cbe | /Scripts/Code/Lagrange.sci | e64058f277b9e5ba08aede0863ee8a048937a7cd | [] | no_license | PirateKing19902016/Scilab-Spoken-Tutorials | b7927e196acbefa47abdbdeb326d37385d5cbc34 | a110fc425c123f7041cb9ee8eca42ce08619ae60 | refs/heads/master | 2021-05-02T06:14:37.089440 | 2018-02-09T16:23:27 | 2018-02-09T16:23:27 | 120,855,481 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 850 | sci | Lagrange.sci |
// *******************************************************************
// Lagrange Interpolation for the given data: ****
// (x1, f1), (x2, f2), (x3, f3), ......(xn, fn) ****
// NPDE-TCA UG-Level workshop at IMA Bhubaneshwar ****
// By Manas,FOSSEE,IITB ****
//********************************************************************
function y = Lagrange(x0, x,f, n)
m = n + 1;
N = ones(1,m);
D = N;
C = N;
y = 0.0;
for j = 1:m
for k = 1:m
if (k<>j) then
N(j) = N(j)*(x0 - x(k))
D(j) = D(j)*(x(j) - x(k))
end
end
L(j) = N(j)/D(j);
y = y + L(j)*f(j);
end
disp(L','L')
disp(f,'f(x)')
endfunction
|
2d479233a372640fbf0fd236746b37116966d89b | 225bbd9cd1034c34d0cabd1a8c8427d203d4812b | /flatten/compress/compress.sci | 4c27f29a521dd221309b3f4ceac1e1cb3b757d60 | [
"MIT"
] | permissive | gavindsouza/flatten | 9a8860992b5836d91cd412cdb9e0a434cfb52881 | ec1600e4ebe61dadaa0a79c7313d0c9e032033ef | refs/heads/master | 2020-04-01T02:41:30.090267 | 2019-01-27T07:51:42 | 2019-01-27T07:51:42 | 152,790,506 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,353 | sci | compress.sci |
// Display mode
mode(0);
// Display warning for floating point exception
ieee(1);
//clearxdel(winsid())
clc
//% Load full image
disp("Loading full image...")
// !! L.5: Matlab function imread not yet converted, original calling sequence used.
A = imread("C:\Users\Gavin\Desktop\Code\Python\other_projects\flatten\flatten\samples\images\blue_flower_very_small","jpeg");
// !! L.6: Matlab function figure not yet converted, original calling sequence used.
// L.6: (Warning name conflict: function name changed from figure to %figure).
%figure(3);
// !! L.7: Matlab toolbox(es) function imshow not converted, original calling sequence used
imshow(A)
//% Make image black and white
// !! L.10: Matlab toolbox(es) function rgb2gray not converted, original calling sequence used
Abw2 = rgb2gray(A);
[nx,ny] = size(Abw2);
// !! L.12: Matlab function figure not yet converted, original calling sequence used.
// L.12: (Warning name conflict: function name changed from figure to %figure).
%figure(1)
subplot(2,2,1)// !! L.12: Matlab toolbox(es) function imshow not converted, original calling sequence used
imshow(Abw2)
title("Original image","FontSize",18)
//% Compute the FFT of our image using fft2
disp("Doing FFT analysis for sparsity check...")
tic;
At = fft2(Abw2);
F = log(mtlb_a(abs(fftshift(At)),1));
// !! L.21: Matlab toolbox(es) function mat2gray not converted, original calling sequence used
F = mat2gray(F);// Use mat2gray to scale the image between 0 and 1
// !! L.22: Matlab function figure not yet converted, original calling sequence used.
// L.22: (Warning name conflict: function name changed from figure to %figure).
%figure(4)
// !! L.23: Matlab toolbox(es) function imshow not converted, original calling sequence used
imshow(F,[]);// Display the result
//% Zero out all small coefficients and inverse transform
disp("Zeroing out small Fourier coefficients...")
tic;
count_pic = 2;
%v0 = abs(At);%v1 = max(%v0,firstnonsingleton(%v0));
for thresh = (0.1*[0.001,0.005,0.01])*max(%v1,firstnonsingleton(%v1))
ind = mtlb_logic(abs(At),">",thresh);
count = mtlb_s(nx*ny,mtlb_sum(mtlb_sum(ind)));
Atlow = At .*ind;
percent = mtlb_s(100,(count/(nx*ny))*100);
// !! L.34: Matlab function ifft2 not yet converted, original calling sequence used.
// !! L.34: Scilab uint8() does not work with Complex values: uint8() call IGNORED.
// ! L.34: ifft2(Atlow) may be replaced by:
// ! --> uint8(ifft2(Atlow)) if ifft2(Atlow) is Real.
Alow = ifft2(Atlow);
// !! L.35: Matlab function figure not yet converted, original calling sequence used.
// L.35: (Warning name conflict: function name changed from figure to %figure).
%figure(1)
subplot(2,2,count_pic) // !! L.35: Matlab toolbox(es) function imshow not converted, original calling sequence used
imshow(Alow); count_pic = count_pic+1;
// L.36: Drawing events are not queued in Scilab.
//drawnow
// !! L.37: string output can be different from Matlab num2str output.
title(string(percent)+"% of FFT basis","FontSize",18)
end;
// !! L.39: string output can be different from Matlab num2str output.
disp(" done. ("+string(toc())+"s)")
//%
// !! L.42: Matlab function figure not yet converted.
mtlb(figure)
// !! L.43: Matlab toolbox(es) function imresize not converted, original calling sequence used
Anew = imresize(Abw2,0.1);
surf(double(Anew));
|
106fdec1a4e883fb4460ea35854eddc50d60dd08 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2444/CH7/EX7.15/ex7_15.sce | 260445514c9d85e0639430240dd179c9b9772d3d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 330 | sce | ex7_15.sce | // Exa 7.15
clc;
clear;
close;
format('v',5)
// Given data
R1 = 20;// in k ohm
R1 = R1 * 10^3;// in ohm
R2 = R1;// in ohm
R = R1;// in ohm
C1 = 1000;// in pF
C1 = C1 * 10^-12;// in F
C2 = C1;// in F
C = C1;// in F
f = 1/(2*%pi*R*C);// in Hz
f= f*10^-3;// in kHz
disp(f,"The frequency of oscillations in kHz is");
|
8e473a03ceba1c4a1f326b48fd16f65120175e5d | 449d555969bfd7befe906877abab098c6e63a0e8 | /605/CH9/EX9.9/9_9.sce | b9dec16d0dc0e9f4c8d5f9ec36e36ac7e7e75069 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 199 | sce | 9_9.sce |
gL=0.62425
gc=0.9662
m=3
Wc=2*%pi*100*10^6
CHP=1/(Wc*gL)
LHP=1/(Wc*gc)
printf("\nCHP=%.3e F\nLHP=%.3e H",CHP,LHP)
C1=2.5495/75*10^3
L2=75*1.6472
printf("\nC1=C3=%.0f pF\nL2=%.1f nH",C1,L2) |
42fc770ef6076420b8cadc907f41256425be8a86 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1529/CH10/EX10.18/10_18.sce | fcf455af620fb1bdb68e3c29a9487a8d19f4591f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 344 | sce | 10_18.sce | //Chapter 10, Problem 18
clc;
BC=100; //resistance between point B and C
DA=400; //resistance between point D and A
CD=10; //resistance between point C and D
Rx=BC*DA/CD; //calculating unknown resistance using balance equation
printf("unknown resistance = %f K ohms",Rx/1000);
|
bb45dd93efd2a8121f86db4d8eac6fb6dde7357b | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/pchip/pchip10.sce | 13d42765d663da61ff43b115f50de02d06674763 | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 215 | sce | pchip10.sce | x=[0 1 2 3 4 5];
y=[1 0 1 0 1 0];
xx=-3:.01:3;
v=pchip(x, y,xx,1);
disp(v);
//output
// !--error 58
//Wrong number of input arguments.at line 5 of exec file called by :
//chip/pchip10.sce', -1
|
74a94f08422e40c2956b7d3e266f4ce7c9a38646 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2345/CH6/EX6.6/Ex6_6.sce | 0173f3834c10d68af072c5be6f51ad82dafdfb26 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 462 | sce | Ex6_6.sce | //Finding core loss
//Example 6.6(pg 214)
clc
clear
v=76300//volume in c.c
P=8// no of poles
N=375//rpm
f=P*N/120//freqency in c/s
Bmax=12000//max. flux density in lines/cm^2
n=0.002//(assumed)
d=7.8//densityin gm/c.c
l=1.7//loss in watts per kg
Hl=n*v*f*(Bmax^1.6)*(10^-7)//Hysteresis loss in Watts
Al=v*d*l/1000//Additional loss under particular running conditions
Tl=Hl+Al//total core loss
printf('Thus the total core loss is %4.0f Watts',Tl)
|
5855513779eacc7ef88ed3488c72dc4a7ea42c28 | 449d555969bfd7befe906877abab098c6e63a0e8 | /51/CH8/EX8.15/8_15.sce | 1289ba7db7423c1a24efbfa0e857720a0c90c856 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 357 | sce | 8_15.sce | clc;
clear;
D=60;//mm
pdiff=4;//kPa
Q=0.003;//(m^3)/sec
d=789;//kg/(m^3)
vis=1.19*(10^(-3));//N*sec/(m^2)
Re=d*4*Q/(%pi*D*vis);
//assuming B=dia/D=0.577, where dia=diameter of nozzle, and obtaining Cn from Re as 0.972
Cn=0.972;
B=0.577;
dia=((4*Q/(Cn*%pi))/((2*pdiff*1000/(d*(1-(B^4))))^0.5))^0.5;
disp("mm",dia*1000,"Diameter of the nozzle=")
|
ce0eeb575bdfe6f2700a95a2c8ebe43b63801674 | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpicscifiles6/Sfbdrawpersdata.sci | cde6870f1d06c8d820d04b8e2a1ce6cab6b10247 | [] | no_license | ketpic/ketcindy-scilab-support | e1646488aa840f86c198818ea518c24a66b71f81 | 3df21192d25809ce980cd036a5ef9f97b53aa918 | refs/heads/master | 2021-05-11T11:40:49.725978 | 2018-01-16T14:02:21 | 2018-01-16T14:02:21 | 117,643,554 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 662 | sci | Sfbdrawpersdata.sci | // 08.09.21
function Out5=Sfbdrawpersdata(varargin)
global IMPLICITDATA CUSPDATA CUSPPT CUSPSPLITPT;
Nargs=length(varargin);
Fd=varargin(1);
FdL=Fullformfunc(Fd);
Np=[50,50];
if Nargs>=2
Np=varargin(2);
if type(Np)==1 & length(Np)==1
Np=[Np,Np];
end;
end;
Eps=0.05;
if Nargs>=3
Eps=varargin(3);
end;
Ts=timer();
[Zval,Xval,Yval]=Evlptablepers(Mix(Fd,Np));
Out3=Implicitplot(Zval,Xval,Yval);
BdyL=Mixop(8,FdL);
if BdyL~=[]
Out3=Clipindomain(Out3,BdyL)
end;
IMPLICITDATA=Out3;
Out4=Cuspsplitpers(Out3,Fd,Eps);
CUSPDATA=Out4;
CCUSPPT=CUSPSPLITPT;
Out5=Borderrawdata(Out4,Fd,Np,Eps);
endfunction;
|
bd406033cd19a4970abc5b4d8a380010edb7894b | 734830c483d7180158343b9b5599994878b8b197 | /trip-tests/autograder_trip05.tst | 1d6fa69d1f88e90f9fcfecfac8f8404275591251 | [] | no_license | aykamko/proj61b | b53a3b569f82522144e010505859aa3ab66585bb | 5f6688b70f907107512267712a325f907e5e627b | refs/heads/master | 2021-01-16T22:08:56.235971 | 2013-12-12T09:19:39 | 2013-12-12T09:19:39 | 13,669,280 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 87 | tst | autograder_trip05.tst | java -ea trip.Main -m trip-tests/autograder_map05 <<EOF
Schenectady, Battery_Park
EOF
|
3c352d08bcffd8624c30f26fad9714c6d85999be | 449d555969bfd7befe906877abab098c6e63a0e8 | /48/CH1/EX1.3/eg_1_3.sce | 853fc513d618ca625549fee3f148a8e44312e664 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 963 | sce | eg_1_3.sce | clc;//clears the command window
clear;//clears all the variables
format('v',8);//making the default precision to 8 significant digits
i=1;
dec=548;//given decimal number which should be expressed in base 8
temp=dec;
i=1;
d=8;
while(temp>0)//storing each integer digit in vector for convenience
p(i)=(modulo(floor(temp),d))
temp=floor(temp)/d;
i=i+1;
end
temp2=0;
for j=1:length(p)
//multipliying bits of integer part with their position values and adding
temp2=temp2+(p(j)*10^(j-1));
end
disp(temp2,"Octal number");
dec=345;
//given decimal number which should be expressed in base 8
temp=dec;
i=1;
d=6;
while(temp>0)//storing each integer digit in vector for convenience
p(i)=(modulo(floor(temp),d))
temp=floor(temp)/d;
i=i+1;
end
temp2=0;
for j=1:length(p)
//multipliying bits of integer part with their position values and adding
temp2=temp2+(p(j)*10^(j-1));
end
disp(temp2,"Base 6"); |
1e7fe240fce148609775da745cad9fc49a83353d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1631/CH2/EX2.12/Ex2_12.sce | d60a6bee4ee121d0940595e9c1a646128fab44ea | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,067 | sce | Ex2_12.sce | //Caption: Probability density function
//Example 2.12
//Find find the value of k
clc;
clear;
function y=FX1(x) //for -infinte<x<=0
y=0
endfunction
function y=FX2(x) //for 0<x<=10
y=k*x^2
endfunction
function y=FX3(x) //for 10<x<infine
y=100*k
endfunction
k=poly(0,"k");
//from the expression for CDF is given
y=100*k //for 10<x<infine
y==1;
k=1/100; //k=y/100
disp(k,"i) k = ");
//CDF function can be expressed
// FX(x)=P(X<=x)
P5=FX2(5); //x=5
disp(P5,"ii) P(X<=5) = ");
//now differentiating with respect tox we ,have
//PDF fX=0 for -infinte<x<=0,10<x<infine
x=poly(0,"x");
m=x^2/100;
df=derivat(m); // for 0<x<=10
disp(" for 0<x<=10",df,"iii)PDF a) fX(x) =");
disp(" -infinte<x<=0,10<x<infine",0," b)fX(x) = ");
x1=5,x2=7;
function y=z(x),
y=x/50;
endfunction
P=intg(x1,x2,z);
disp(P,"iv) P(5<X<=7) =");
|
94632860d1437e05398e4b204ac81c64285f3795 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1052/CH26/EX26.7/267.sce | 07161ed47610f1f1f1d1f48f0440682d81f85a88 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 818 | sce | 267.sce | clc;
//Example 26.7
//page no 393
printf("Example 26.7 page no 393\n\n");
//refer to example 26.6
D=4//diameter of bed ,ft
d_p=0.00137//particle diameter ,ft
rho_s=84//coal particle density ,lb/ft^3
rho_f=55//oil density,lb/ft^3
meu_f=3.13e-4//viscosity of oil
e_mf=0.38//void fraction
L_mf=8//bed height at minimum fluidization,ft
L_f=10//bed height,ft
e=1-L_mf*(1-e_mf)/L_f//bed voidage
g=32.174//grav acc
v_s=(d_p^2)*g*(e^3)*(rho_s-rho_f)/(150*meu_f*(1-e)) //superficial velocity
printf("\n superficial velocity v_s=%f ft/s",v_s);
q=(%pi/4)*D^2*v_s//volumetric flow rate
printf("\n vol. floe rate q=%f ft^3/s",q);
//check on the laminar flow assumption
meu_f=0.01
R_e=d_p*v_s*rho_f/(meu_f*(1-e))
printf("\n reynolds no R_e=%f",R_e);
printf("\n since R_e is less than 10 ,flow is laminar");
|
1a0d5994ae21f5307a893b2cdb7fd4752f2e4369 | 482cdc3e27e99afe860829eff3e593caa62202e3 | /src/Assignment1_Tests/test9.tst | bfddf574b5a16a5f0e8f7de98f99fae75f6c5293 | [] | no_license | abrageddon/DLXCompiler | e153430de4412fe48a34955851352d0fd73ab2d8 | 2d1abd102f723c2e1f0ed5893e86c7d0ceb42914 | refs/heads/master | 2020-12-30T10:50:20.955331 | 2011-12-02T03:34:59 | 2011-12-02T03:34:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 71 | tst | test9.tst | var ident < - 4;
var ident2 <= - 5;
var ident34543tendi == >--- css;
|
1add60d7ec05cc8fca884dd364b422f268ddf9f6 | c3f30c57c194640b9ce943b27456d4d7bd7a6706 | /EXP1/exp1-spatial.sce | b1ed9bfd6b9b356198e23cfc99a5a5189751faf2 | [] | no_license | dikshitakambri/Image-Processing-Using-Scilab | af7d2f738c271edb0f12c9825b7a044233668f67 | 9cb0a7f2b0ac402c54bd297f28d578a2905c3da8 | refs/heads/master | 2023-04-18T00:11:42.093266 | 2021-04-27T08:23:52 | 2021-04-27T08:23:52 | 362,016,834 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 421 | sce | exp1-spatial.sce | //Dikshita Kambri 118A2044
//IPMV -EXPERIMENT 1
//Spatial RESOLUTION
clear all
clc;
a = imread("C:\Users\hp\Documents\Image Processing-Scilab\Images\coins.png");
[row , col] = size(a);
i = 1; j =1;
for x = 1:2 :row
for y = 1:2:col
c(i,j)= a(x,y);
j = j+1;
end
j=1;
i=i+1;
end
disp('size of input image');
disp(size(a));
disp('size of output image');
disp(size(c));
figure(2)
imshow(c)
|
06fdc2fe50ba92c27208bbb926fc278cdf7acf4b | 449d555969bfd7befe906877abab098c6e63a0e8 | /29/CH3/EX3.2.1/exa3_2_1.sce | baeed04b34c9c23c0699446c0e6f9f6cf5a110ff | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 460 | sce | exa3_2_1.sce | //Caption:transfer_function
// example 3.2.1
//page 32
// we have defined parallel and series function which we are going to use here
//exec parallel.sce;
//exec series.sce;
syms G1 G2 G3 H1;
// shifting take off point after block G2 to a position before block G2
a= G2*H1;
b=parallel(G2,G3);
//shifting take off point before (G2+G3) to After (G2+G3)
c=a/b;
m=1;
d=b/(1+m*b);
e=series(G1,d);
y=(e/(1+c*e));
y=simple (y);
disp (y,"C(s)/R(s)="); |
ae87fb0fc28218800ce6bbc8f0400b03a1359c43 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3685/CH20/EX20.11/Ex20_11.sce | 5d7e3552eede8c7b4e9c9adb4313b5101acc5db4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,596 | sce | Ex20_11.sce | clc
// Given that
Bp = 40 // Brake power when all cylinder operating in kW
N = 2000 // Speed in rpm
Bp1 = 32.2 // Brake power with cylinder no. 1 cut out in kW
Bp2 = 32 // Brake power with cylinder no. 2 cut out in kW
Bp3 = 32.5 // Brake power with cylinder no. 3 cut out in kW
Bp4 = 32.4 // Brake power with cylinder no. 4 cut out in kW
Bp5 = 32.1 // Brake power with cylinder no. 5 cut out in kW
Bp6 = 32.3 // Brake power with cylinder no. 6 cut out in kW
d = 100 // Diameter of cylinder in mm
L = 125 // Stroke of cylinder in mm
Vc = 0.000123 // Clearance volume in m^3
m_f = 9 // Fuel consumption in kg/h
cv = 40 // Heating value in MJ/kg
printf("\n Example 20.11\n")
Ip1 = Bp-Bp1
Ip2 = Bp-Bp2
Ip3 = Bp-Bp3
Ip4 = Bp-Bp4
Ip5 = Bp-Bp5
Ip6 = Bp-Bp6
Ip = Ip1+Ip2+Ip3+Ip4+Ip5+Ip6
n_m = Bp/Ip
bmep = Bp*2*60/(L*(10^-3)*((d*(10^-3))^2)*(%pi/4)*N)
Vs = (%pi/4)*((d*(10^-3))^2)*(L*(10^-3))
r_k = (Vs+Vc)/Vc
n_ase = 1- (1/(r_k^(1.4-1)))
n_th = Ip*3600/(m_f*cv*1000)
R_e = n_th/n_ase
printf("\n Mechanical efficiency = %d percent,\n Brake mean effective pressure = %f bar\n Air standard ratio = %f percent,\n Brake thermal efficiency is %f percent,\n Relative efficiency = %f percent",n_m*100,bmep*(10^-2),n_ase*100,n_th*100,R_e*100)
//The value of answer for air standard efficiency is different because of round off error
// Answer given in the book for bmep is 3.055 bar which is wrong.
// Answer given in the book for brake thermal efficiency is 40 percent which is wrong.
// Answer given in the book for relative efficiency is 68.6 percent which is wrong.
|
e882ef2179f6d29ef95f7f9a258158fec99ffa5b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1280/CH8/EX8.6/8_6.sce | 0fce87892063a4c7496259ec1a231264ec7a22ad | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 186 | sce | 8_6.sce | clc
//initialisation of variables
d= 3 //in
d1= 1.5 //in
F= 7500 //lb
//CALCULATIONS
A1= (%pi/4)*(d^2-d1^2)
P= F/A1
//RESULTS
printf ('pressure in the cylinder = %.f psi',P-1)
|
1b4b865adb40fb03b4853158e7c9365676cd8f4a | 449d555969bfd7befe906877abab098c6e63a0e8 | /476/CH7/EX7.10/Example_7_10.sce | 4f86bae7f1f94cb54a3ccced3ce791d9187a8b7e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 655 | sce | Example_7_10.sce | //A Textbook of Chemical Engineering Thermodynamics
//Chapter 7
//Properties of Solutions
//Example 10
clear;
clc;
//Given:
K = 4.4*10^4; //Henry's law constant (bar)
pp = 0.25; //partial pressure of oxygen in bar
M_O2 = 32; //molecular wt of oxygen
M_water = 18; //molecular wt of water
//To estimate the solubility of oxygen in water at 298 K
//Using eq. 7.72 (Page no. 275)
x_O2 = pp/K; //mole fraction of O2
mprintf('Solubility of oxygen is %5.4e moles per mole of water',x_O2);
//In mass units
sol_O2 = (x_O2*M_O2)/M_water;
mprintf('\n Solubility of oxygen in mass units is %4.3e kg oxygen per kg water',sol_O2);
//end |
dfbf9c960e0133ee12053a1f4027b1542e9019bf | 449d555969bfd7befe906877abab098c6e63a0e8 | /1922/CH4/EX4.18/4_18.sce | 682bfeefad173473e92e916f5ba6cf6a2a0b4e45 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 363 | sce | 4_18.sce | clc
clear
//Initialization of variables
Tc=647.3 //K
dh=1.1
Db=-2
v2=0.234
v1=0.27
//calculations
dh2=dh+Db*(v2-v1)
dhh=dh2*Tc
dhbar=dhh*4.18/18
disp("From steam tables,")
h1=3777.5 //kJ/kg
h2=3928.2 //kJ/kg
dhs=h2-h1
err=abs(dhs-dhbar)/dhs
//results
printf("Enthalpy departure = %d kJ/kg",dhbar)
printf("\n Percentage error = %.1f ",err*100)
|
c39a1e9bdc5e035cf9b79a4a8551a9040f06f68e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2198/CH1/EX1.11.1/Ex1_11_1.sce | 27ff0af4e3a7a705ab7198bd591905a2426dc8de | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 320 | sce | Ex1_11_1.sce | //Ex 1.11.1
clc;clear;close;
format('v',9);
//Given :
ni=1.5*10^10/10^-6;//per m^3
mu_n=1800*10^-4;//m^2/V-s
mu_p=500*10^-4;//m^2/V-s
q=1.6*10^-19;//Coulomb
sigma_i=ni*(mu_n+mu_p)*q;//(ohm-m)^-1
disp(sigma_i,"Conductivity in (ohm-m)^-1 : ");
rho_i=1/sigma_i;//ohm-m
disp(rho_i,"Resistivity in ohm-m : ");
|
a86988f02e432e33784b28768a0f9ec3746d8f66 | 449d555969bfd7befe906877abab098c6e63a0e8 | /45/CH6/EX6.7/example_6_7.sce | 3f9409619d2e45d83ba03524e15f1ed5639ed65f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,572 | sce | example_6_7.sce | //example 6.7
clc;
clear;
a=0;
b=0;
q=0;
//aa=input(" Enter the first no (in decimal) :");
//bb=input(" Enter the number from which first no has to substracted:");
aa=175;
bb=118;
while(aa>0) // converting the inputs in to binary numbers
x=modulo(aa,2);
a= a + (10^q)*x;
aa=aa/2;
aa=floor(aa);
q=q+1;
end
q=0;
while(bb>0)
x=modulo(bb,2);
b= b + (10^q)*x;
bb=bb/2;
bb=floor(bb);
q=q+1;
end
printf(' \n The binary equivalent of first no is %f\n\n',a);
printf(' The binary equivalent of secnd no is %f\n\n',b);
for i=1:8
a1(i)=modulo(a,10);
a=a/10;
a=round(a);
b1(i)=modulo(b,10);
b=b/10;
b=round(b);
end
car(1)=0;
for i=1:8
c1(i)=car(i)+a1(i)+ b1(i);//adding the binary numbers (binary addtion)
if c1(i)== 2 then
car(i+1)= 1;
c1(i)=0;
elseif c1(i)==3 then
car(i+1)= 1;
c1(i)=1;
else
car(i+1)=0;
end
end
c1(9)=car(9);
re=0;
format('v',18);
for i=1:8
re=re+(c1(i)*(10^(i-1)))
end
printf('If only 8 bits are taken the result will be as shown below \n\n');
printf(' and the sum of given two binary numbers will be %f\n\n',re );
q=1;
b=0;
f=0;
a=re;
while(a>0) //converting the binary output to hexadecimal
r=modulo(a,10);
b(1,q)=r;
a=a/10;
a=floor(a);
q=q+1;
end
for m=1:q-1
c=m-1;
f = f + b(1,m)*(2^c);
end
printf(' Sum in decimal notation is %d\n\n',f);
hex=dec2hex(f);
printf(' The sum in hexadecimal notation is %sH \n',hex);
printf(' \n with an overflow of %d\n\n',car(9)); |
0c2a8281d4f0ca8d41cff9f3bd5acfbaeece97b1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2672/CH6/EX6.12/Ex6_12.sce | b27614a5b1570eae1ede50c61f892f548ee73904 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 391 | sce | Ex6_12.sce | //Example 6_12
clc;
clear;
close;
format('v',6);
//given data :
V1=230;//V
N2ByN1=1/3;//turns ratio
RL=200;//ohm
V2=V1*N2ByN1;//V
Vm=sqrt(2)*V2;//V
Im=Vm/RL;//A
Pmax=Im^2*RL;//W
disp(Pmax,"Maximum load power(W) : ");
format('v',5);
Vdc=0.318*Vm;//V
Idc=Vdc/RL;//A
Pdc=Idc^2*RL;//W
disp(Pdc,"Average value of load power(W) : ");
//Answer in the textbook is not accurate.
|
7edf63bf7b3247d06e9b854d8efa36ddf3a338fb | 6b778fe7ce057aaef2abb8bcf50d716047b597b0 | /test/issue238.tst | 36b2b1cfcf5daab50414b5a6ac24a3b746778e1b | [
"Apache-2.0"
] | permissive | grobian/carbon-c-relay | a9cfa93e51afca31df8fbb3f0115e4678e0502ca | 741937387d08e877d3c28583a7c453c99bf506f1 | refs/heads/master | 2023-07-04T23:29:37.333774 | 2023-01-26T15:27:39 | 2023-01-26T15:27:39 | 15,357,351 | 368 | 132 | Apache-2.0 | 2022-09-16T07:03:46 | 2013-12-21T10:33:29 | C | UTF-8 | Scilab | false | false | 15 | tst | issue238.tst | foo 4.2e-10 42
|
9f19a06a199a7ea479488d0ce119427c31c785bb | 449d555969bfd7befe906877abab098c6e63a0e8 | /615/CH8/EX8.10/8_10.sce | 5fb4157a4d50fea84552949a22c58a4b94aa951a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,535 | sce | 8_10.sce | //Fuels and Combustion//
//Example 8.10//
C=810;//weight of carbon in 1kg of coal sample in grams//
O=80;//weight of oxygen in 1kg of coal sample in grams//
S=10;//weight of Sulphur in 1kg of coal sample in grams//
N=10;//weight of nytrogen in 1kg of coal sample in grams//
H=50;//weight of hydrogen in 1kg of coal sample in grams//
MO=C*32/12+H*16/2+S*32/32;//minimum weight of oxygen needed in grams//
printf('minimum weight of oxygen needed=MO=%fg',MO);
printf('\nOxygen already available in fuel=80grams\nNet oxygen needed=2490grams');
MA=2490*100/23;//minimum weight of air needed in grams//
printf('\nminimum amount of air needed=MA=%fg',MA);
printf('\nProducts of combustion are CO2 and SO2');
printf('\nFrom the equations written above,44grams of CO2 is obtained 12grams of carbon\nhence,weight of CO2 obtained from 810grams of carbon=810*44/12=2970grams');
printf('\nSimilarly,weight of SO2 obtained from 10grams of sulphur=10*64/32=20grams');
NF=10+MA*0.77;//weight of nitrogen present in the products in grams//
printf('\nWeight of nitrogen present in the products=NF=%fg',NF);
WD=2970+20+8346;//total weight of dry products in grams//
printf('\nTotal weight of dry products=WD=%fg',WD);
PCO2=2970*100/WD;//percentage composition of CO2//
printf('\nPercentage composition of CO2=PCO2=%f',PCO2);
PSO2=20*100/WD;//percentage composition of SO2//
printf('\nPercentage composition of SO2=%f',PSO2);
PN2=8346*100/WD;//percentage composition of N2//
printf('\nPercentage composition of N2=PN2=%f',PN2);
|
a440006a0681c31ca9e402f7c76ea76895f51c62 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1172/CH6/EX6.14.1/Example6_14a.sce | 6d761628befc96c1655ab3eb8b05e8686993a545 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 506 | sce | Example6_14a.sce | clc
//Given that
E = 1e9 // energy of electron in eV
c = 3e8 // speed of light in m/s
m_0 = 9.1e-31 // mass of electron in kg
// sample problem 14 page No. 227
printf("\n \n\n # Problem 14a # \n")
printf("\n Standard formula used \n E = m*c^2")
m = E / c^2 * 1.6e-19 // calculation of relativistic mass of particle
ratio = m / m_0// calculation of Ratio of relativistic mass and rest mass of particle
printf ("\n Ratio of relativistic mass and rest mass of particle is %e.",ratio )
|
2f9b4b7e3ab5ef09b0c4d164dbd6587feb1b0c43 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1826/CH18/EX18.7/ex18_7.sce | b31836e98fdf87eab77232391411037f6702adde | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 251 | sce | ex18_7.sce | // Example 18.7, page no-464
clear
clc
c=2*10^-6//F
epsr=80
v=1000 //v
E1=(c*v^2)/2
c0=c/epsr
E2=(c0*v^2)/2
E=E1-E2
printf("\nThe Energy stored in capacitor =%.0f J",E1)
printf("\nThe energy stored in polarising the capacitor = %.4f J",E)
|
3dfb6faab2100d0d4a02c589bcac327e36fb623f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3862/CH11/EX11.9/Ex11_9.sce | e783ab20c0c311ac0a85bab0bbe7d1e92bb9217f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 570 | sce | Ex11_9.sce | clear
//
//variable declaration
w=(100) //wide of rectangular beam,mm
h=(200) //height or rectangular beam dude,mm
I=w*(h**3)/12
//At point A, which is at 30 mm below top fibre
y=100-30
M=(80*1000000) //sagging moment,KN-m
fx=M*y/I
px=-fx
F=(100*1000 ) //shear force,N
b=(100)
A=b*30
y1=100-15
q=(F*(A*y1))/(b*I) //shearing stress,N/mm^2
py=0
p1=(px+py)/2+sqrt((((px-py)/2)**2)+(q**2))
p2=(px+py)/2-sqrt((((px-py)/2)**2)+(q**2))
printf("\n p1= %0.2f N/mm^2",p1)
printf("\n p2= %0.2f N/mm^2",p2)
|
58821092eb00dccf409bd78831142b57dbdcba2b | 08fe4df45181e37cb84ba1610cdfb219b4142434 | /macros/AutoGenSciHelpSet.sci | 1a0e126e09c1d8cdac796d7ec307bc8dc98c9dcc | [] | no_license | gzq763199198/AutoGenHelpToolBox | 17c7db64547e0e196806464f47b788d6ae33bf2e | c85275e8a7a1cd2ab3e19db5b283e9d1e9502843 | refs/heads/master | 2021-02-17T04:02:18.470172 | 2020-03-05T04:35:44 | 2020-03-05T04:35:44 | 245,069,411 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 865 | sci | AutoGenSciHelpSet.sci | function [Ack] = AutoGenSciHelpSet()
global bOK;
global sciobj;
Ack = %f;
SciDesSet();
if(bOK) then
setsize = strtod(sciobj.Input);
for i = 1 : setsize
SciParamSet("Input",i);
if ~bOK then
disp("在第"+string(i)+"个输入参数时退出.");
return;
end
end
else
disp("退出帮助文档自动生成流程.");
return;
end
if(bOK) then
setsize = strtod(sciobj.Output);
for i = 1 : setsize
SciParamSet("Output",i);
if ~bOK then
disp("在第"+string(i)+"个输出参数时退出.");
return;
end
end
else
disp("退出帮助文档自动生成流程.");
return;
end
GenSciHelpXml();
Ack = %t;
endfunction
|
dd676e6fd6171c5b48f09f62a71d7689a68011d8 | 87749481136b7b72a47930f587f27667e0c0f97d | /Non-linear transformations/DIST_F.sci | 3f9aaa1c5771e54a2e19fbdb75016ff185e00139 | [
"MIT"
] | permissive | brooky56/Digital_Signal_Processing | cf15e5ac443a16edcb3efc8d7703cf4746dedcba | f28651e40b0a99b79e9ba27deabc4db8bfc7f08e | refs/heads/master | 2022-06-30T17:59:28.072522 | 2020-05-11T18:58:39 | 2020-05-11T18:58:39 | 242,598,653 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 115 | sci | DIST_F.sci | function f = DIST_F(x, a, b)
f = x
for i = 1:length(f)
f(i) = a * atan(b*f(i))
end
endfunction
|
bab2fad8cd770780e354807ea22b4ff6576ff833 | 717ddeb7e700373742c617a95e25a2376565112c | /2474/CH1/EX1.14/Ch01Ex14.sce | f0da69daa76b1064ca162b2aaac974a5d78764e2 | [] | 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 | 935 | sce | Ch01Ex14.sce | // Scilab code Ex1.14: Pg.47-48 (2008)
clc; clear;
fo = 3; // Actual frequency of the signal, Hz
Beta = 0.8; // Boost parameter
// When Homer & Ulysses are receding away from each other
f_ratio_recede = sqrt((1-Beta)/(1+Beta)); // Frequency ratio while approaching
printf("\nHomer receives %g flashes during the first 9 years and Ulysses receives %g flash in his first 3 years!", fo, f_ratio_recede*fo);
// When Homer & Ulysses are approaching towards each other
f_ratio_approach = sqrt((1+Beta)/(1-Beta)); // Frequency ratio while approaching
printf("\nHomer receives %d flashes during the 10th year and Ulysses receives %d flashes during his final 3 years!", fo, f_ratio_approach*fo);
// Result
// Homer receives 3 flashes during the first 9 years and Ulysses receives 1 flash in his first 3 years!
// Homer receives 3 flashes during the 10th year and Ulysses receives 9 flashes during his final 3 years! |
818da84a6379c98e0f2b866a9e637eff5e54578a | 24db0e77b5f09200f9f6ed0567b8d75ece14259d | /collines.sci | 03ca82eb3f8665b5fa33058f07967ae5672a386a | [] | no_license | ece2lr/tp12 | 077477f68ac767cd688e646efae802abc77dce4b | 99ba2f6f8536b60c2df6e09639d312e87e230735 | refs/heads/master | 2021-05-04T21:45:49.127347 | 2018-02-02T12:59:32 | 2018-02-02T12:59:32 | 119,974,257 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 415 | sci | collines.sci | OMEGA = 7
AMPLITUDE = .2
function z = f(x, y)
z = AMPLITUDE * ( cos(OMEGA * x) + cos(OMEGA * y) )
endfunction
N = 100
x = linspace(-1,1,N)
y = linspace(-1,1,N)
[X, Y] = meshgrid(x, y)
clf()
surf(X, Y, f(X, Y))
// Cosmétique {{{
a = gca()
a.isoview = "on"
a.data_bounds = [ -1, -1, -1; 1, 1, 1]
a.children.thickness = 0
f = gcf()
f.color_map = .1 + .8*bonecolormap(32) // on croppe le noir et le blanc
// }}}
|
686ec181d0eff52e83ce8e4c251bfa4d15da08c0 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.4_6.tst | 0e797d27b62f6ed231fabe39a6d1fd187b3a4d79 | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 5,870 | tst | bow.4_6.tst | 4 1:0.14285714285714285 16:0.013333333333333334 139:0.3333333333333333 142:1.0 143:1.0 146:1.0 168:1.0
4 16:0.013333333333333334 27:2.0 28:1.0 33:0.09090909090909091 41:0.3333333333333333 77:1.0 104:1.0 112:0.5 162:1.0 589:1.0
4 1:0.14285714285714285 6:0.2 15:0.3333333333333333 16:0.013333333333333334 18:0.5 19:1.0 30:1.0 33:0.09090909090909091 48:1.0 139:0.3333333333333333 379:1.0 586:0.5 1487:1.0
4 1:0.14285714285714285 18:0.5 41:0.3333333333333333 63:0.3333333333333333 98:1.0 171:1.0 184:1.0 692:1.0 1518:1.0 1584:1.0
4 1:0.2857142857142857 18:0.5 23:1.0 30:1.0 33:0.09090909090909091 44:0.3333333333333333 63:0.3333333333333333 122:1.0 137:1.0 154:1.0 184:1.0 241:0.125 356:1.0 375:1.0 796:0.5 818:1.0 1518:1.0
4 12:0.5 16:0.013333333333333334 18:1.5 39:1.0 56:0.3333333333333333 77:1.0 112:0.5 135:1.0 139:0.3333333333333333 145:0.5 162:1.0 186:1.0 189:0.25 227:1.0 435:1.0 462:1.0 584:1.0 751:1.0 1416:1.0 1573:1.0
4 1:0.14285714285714285 15:0.3333333333333333 16:0.04 18:1.0 19:1.0 20:1.0 27:1.0 30:3.0 33:0.09090909090909091 44:0.3333333333333333 56:0.3333333333333333 65:1.0 70:0.25 82:1.0 94:0.5 105:0.3333333333333333 148:0.5 150:1.0 151:1.0 152:1.0 161:1.0 181:0.5 358:1.0 369:1.0 751:1.0 805:1.0 818:1.0
4 1:0.14285714285714285 6:0.2 15:0.3333333333333333 16:0.04 18:0.5 19:1.0 33:0.09090909090909091 35:0.3333333333333333 48:1.0 56:0.3333333333333333 92:0.16666666666666666 94:0.5 112:0.5 119:1.0 154:1.0 235:1.0 268:1.0 310:1.0 332:1.0 493:1.0 518:1.0 586:0.5 637:1.0 799:1.0 1231:1.0 1487:1.0
4 6:0.2 204:1.0 768:1.0
4 15:0.6666666666666666 46:0.045454545454545456 78:0.2 134:1.0 136:1.0 186:1.0 310:1.0 452:1.0 546:1.0 686:1.0
4 4:1.0 6:0.2 15:1.3333333333333333 16:0.02666666666666667 18:0.5 19:1.0 30:1.0 35:0.16666666666666666 44:0.3333333333333333 46:0.09090909090909091 48:1.0 115:1.0 126:0.5 130:0.3333333333333333 134:1.0 139:0.3333333333333333 186:1.0 239:1.0 240:1.0 355:1.0 358:1.0 447:1.0 533:1.0 546:1.0 663:1.0 1185:1.0
4 184:1.0
4 6:0.2 16:0.013333333333333334 323:1.0
4 12:0.5 15:0.3333333333333333 16:0.04 18:0.5 23:1.0 28:1.0 30:2.0 33:0.09090909090909091 35:0.16666666666666666 41:0.6666666666666666 42:1.0 43:2.0 45:2.0 46:0.045454545454545456 54:1.0 93:1.0 94:0.5 108:1.0 175:1.0 195:1.0 214:1.0 283:0.25 310:1.0 406:0.5 452:1.0 469:1.0 484:1.0 744:1.0 777:1.0 797:1.0 1227:1.0
4 248:1.0 1493:1.0
4 16:0.04 104:1.0 105:0.3333333333333333 160:1.0 162:1.0 238:1.0 504:1.0 864:1.0 1119:0.5
4 12:0.5 15:0.3333333333333333 16:0.013333333333333334 18:1.0 19:1.0 27:1.0 33:0.09090909090909091 35:0.3333333333333333 43:2.0 106:1.0 112:0.5 145:0.5 161:1.0 186:2.0 189:0.25 199:2.0 238:1.0 394:1.0 504:1.0 568:1.0 1193:1.0
4 12:1.0 18:0.5 46:0.045454545454545456 53:1.0 54:1.0 83:0.25 94:0.5 105:0.3333333333333333 122:1.0 160:1.0 174:1.0 212:0.5 347:1.0 372:0.25 375:1.0 770:1.0 793:1.0 1250:1.0
4 6:0.4 12:0.5 16:0.02666666666666667 18:0.5 30:1.0 33:0.18181818181818182 39:1.0 56:0.3333333333333333 78:0.2 92:0.16666666666666666 94:0.5 177:1.0 181:0.5 252:1.0 406:0.5 887:0.16666666666666666 888:1.0 1254:1.0 1398:1.0
4 6:0.2 15:0.3333333333333333 16:0.013333333333333334 18:1.0 30:1.0 33:0.09090909090909091 67:0.5 82:1.0 112:0.5 186:1.0 199:1.0 468:1.0 504:1.0 584:1.0 878:1.0 1281:1.0
4 6:0.2 30:1.0 105:0.3333333333333333 112:0.5 186:1.0 241:0.25 713:1.0
4 1:0.14285714285714285 11:1.0 12:0.5 16:0.04 25:1.0 33:0.09090909090909091 35:0.16666666666666666 92:0.16666666666666666 125:1.0 152:1.0 181:1.0 238:1.0 546:1.0 774:2.0
4 6:0.2 16:0.013333333333333334 92:0.16666666666666666 143:1.0 543:0.5 818:1.0
4 33:0.09090909090909091 823:1.0
4 1:0.2857142857142857 16:0.04 18:0.5 19:1.0 27:1.0 28:1.0 30:1.0 33:0.09090909090909091 44:0.3333333333333333 63:0.3333333333333333 160:1.0 181:0.5 310:1.0 568:1.0 887:0.16666666666666666 928:1.0
4 1:0.2857142857142857 16:0.013333333333333334 20:1.0 42:2.0 77:1.0 118:1.0 148:0.5 161:1.0 310:1.0 452:1.0 887:0.16666666666666666
4 18:0.5 33:0.09090909090909091 35:0.16666666666666666 39:1.0 68:1.0 79:1.0 80:1.0 90:1.0 118:1.0 133:1.0 155:0.125 204:1.0 225:2.0 291:1.0 546:1.0 586:0.5 704:1.0 887:0.16666666666666666 888:1.0 927:1.0 1398:1.0
4 2:1.0 16:0.013333333333333334 35:0.16666666666666666 56:0.3333333333333333 125:1.0 181:1.0 586:0.5 809:1.0 821:1.0
4 6:0.4 16:0.02666666666666667 18:2.0 30:1.0 33:0.18181818181818182 41:0.3333333333333333 52:0.2 54:1.0 68:1.0 69:0.5 72:1.0 80:1.0 104:1.0 139:0.3333333333333333 147:0.25 186:1.0 435:1.0 542:1.0 568:1.0 584:1.0 744:1.0 759:1.0 839:1.0 1359:1.0
4 6:0.2 16:0.02666666666666667 30:1.0 33:0.09090909090909091 82:1.0 92:0.16666666666666666 137:1.0 465:0.5 568:1.0 1487:1.0
4 3:1.0 16:0.013333333333333334 30:1.0 33:0.09090909090909091 52:0.2 92:0.16666666666666666 96:1.0 119:1.0 143:1.0 147:0.25 358:1.0 437:1.0 543:0.5 646:1.0
4 1:0.14285714285714285 16:0.02666666666666667 18:2.0 27:1.0 28:1.0 33:0.09090909090909091 70:0.5 92:0.16666666666666666 122:1.0 161:2.0 251:1.0 774:1.0 815:1.0 1359:1.0
4 1:0.14285714285714285 12:0.5 16:0.02666666666666667 18:0.5 19:1.0 30:1.0 44:0.3333333333333333 135:1.0 175:1.0 191:1.0 268:1.0 612:1.0 646:1.0
4 6:0.2 12:0.5 15:0.6666666666666666 16:0.013333333333333334 30:2.0 33:0.09090909090909091 35:0.16666666666666666 43:1.0 69:0.5 70:0.25 137:1.0 148:0.5 156:1.0 186:1.0 191:1.0 275:1.0 310:1.0 347:1.0 366:1.0 568:1.0 751:1.0 1262:1.0 1506:1.0 1666:1.0
4 16:0.013333333333333334 152:1.0 665:1.0 1246:1.0
4 1:0.14285714285714285 6:0.2 16:0.04 45:1.0 48:1.0 61:0.3333333333333333 134:1.0 135:1.0 139:0.3333333333333333 184:1.0 192:1.0 194:1.0
4 16:0.013333333333333334 30:1.0
4 1:0.2857142857142857 6:0.2 16:0.02666666666666667 65:2.0 98:1.0 145:1.0 189:0.25 243:1.0 370:1.0 373:0.5 609:1.0 619:0.5
4 16:0.013333333333333334 18:0.5 19:1.0 20:1.0 30:1.0 52:0.2 105:0.3333333333333333
4 16:0.013333333333333334 18:0.5 30:1.0 46:0.13636363636363635 72:1.0 92:0.16666666666666666 136:1.0 204:1.0 756:1.0
|
62b29f575a2071f0dc7badb3fe35b0afcabb0829 | 449d555969bfd7befe906877abab098c6e63a0e8 | /275/CH8/EX8.8.7/Ch8_8_7.sce | a9f2a9813c0b41876f28aaeea423ed820948486c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 645 | sce | Ch8_8_7.sce | clc
disp("Example 8.7")
printf("\n")
disp("convert the following binary numbers to decimal")
disp("a)1011 b)110101 c)10101")
//Given binary number
bin=1011
i=1
//storing each integer digit in b(i)
while(bin>0)
b(i)=modulo(bin,10)
bin=floor(bin/10)
i=i+1;
end
//checking whether it is a binary number or not
for i=1:length(b)
if(b(i)>1) then
disp('not a binary number')
abort
end
end
dec=0
for i=1:length(b)
//multipliying bits of integer part with their position values and adding
dec=dec+(b(i)*2^(i-1))
end
//displaying the output
printf("decimal format is")
disp(dec)
|
e3cf2db0cd39caf02110bbb1f8ba4dddfe5a913a | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set6/s_Electrical_Measurements_Measuring_Instruments_K._Shinghal_2318.zip/Electrical_Measurements_Measuring_Instruments_K._Shinghal_2318/CH2/EX2.19/ex_2_19.sce | 118caf54624159e4a89f9fa91e52395d8debd664 | [] | 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 | 382 | sce | ex_2_19.sce | errcatch(-1,"stop");mode(2);//Example 2.19://error
;
;
n=40;//revolutions
rc=0.12;//registration constant
err=n/rc;//energy recorded in kWh is
e2=22000;//volts
e1=110;//volts
i2=500;//amperes
i1=5;//amperes
i=5.25;//amperes
lv=110;//volts
pf=1;//
t=61;//seconds
ae=((sqrt(3)*e2*lv*i*i2*pf*t)/(e1*i1*3600))*10^-3;//kWh
e=((err-ae)/ae)*100;//
disp(-e,"error (slow) is (%)")
exit();
|
6f94d4fb9e29581fe82d63ab0d2246af7f4a94e1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2333/CH2/EX2.7/7.sce | cefec5346c42dadbdb35832fab6158dd0f77b479 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 512 | sce | 7.sce | clc
// Given that
lambda = 6000 // wavelength of first source in angstrom
d = 2 // Spacing between sources in mm
D = 0.1 // Distance between source and screen in meter
t = 0.5 // Thickness of plate in mm
shift = 5 // Shift of fringe in mm
// Sample Problem 7 on page no. 95
printf("\n # PROBLEM 7 # \n")
printf("\n Standard formula used \n x = D*(mu1)*n*lambda/d \n")
mu = 1+ shift*1e-3*d*1e-3/(D*t*1e-3) // Refractive index of Glass plate
printf("\n Refractive index of Glass plate is %f.",mu)
|
ca282e76d51ec62198e9cd316ceeff8e3d65efe0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3511/CH5/EX5.16/Ex5_16.sce | 43714e242eaa1a85b13a071e9a8a3df5ed32b68f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 478 | sce | Ex5_16.sce | clc;
p1=1; // pressure at inlet in bar
T1=27+273; // Temperature at inlet in kelvin
T4=1200; // Maximum temperature in kelvin
t=T4/T1; // Temperature ratio
r=1.4; // Specific heat ratio
rp=t;
c=rp^((r-1)/r);
x=(1-sqrt(c)/rp)/(1-c/rp);
eff2_1=x;
r1=sqrt(rp);
r2=r1; r3=r1; r4=r1;
disp (eff2_1,"Efficiency ratio of power plants = ");
disp (r4,"pressure ratio of LPT = ",r3,"pressure ratio of HPT = ",r2,"pressure ratio of HPC = ",r1,"pressure ratio of LPC = ");
|
6db3ee5eeddc064821afdb0b305c109685f462db | 68f6f3335d41b95146619ddf406414da5c1bc975 | /metodos-numericos/practicas/scilab/p8 swat.sci | e5136c5a8b32971c03f7a3f6b958840a199baab3 | [] | no_license | nachocattoni/Ita | be52ab7f80cb0dd7d0a0ef470c72a7f997f2e75b | f7e102a2917ebe59358dbd9d5f7af81703c16fde | refs/heads/master | 2021-05-02T08:09:23.784800 | 2018-02-08T02:50:30 | 2018-02-08T02:50:30 | 120,845,736 | 0 | 0 | null | 2018-02-09T02:29:22 | 2018-02-09T02:29:21 | null | UTF-8 | Scilab | false | false | 3,758 | sci | p8 swat.sci | clc()
clear()
/// PRACTICA 8
function I = Simpsonar(f, a, b, n)
/// LA CANTIDAD DE INTERVALOS n DEBE SER PAR
h = (b - a) / n
I = f(a) + f(b)
for k = 1:n-1
x = a + k * h
if modulo(k,2) == 1 then
I = I + 4 * f(x)
else
I = I + 2 * f(x)
end
end
I = I * h/3
// El error es
// -h^4 * (b-a) / 180 * max(abs(f''''(x))) para x entre a y b
endfunction
function I = trapeciar(f, a, b, n)
h = (b - a) / n
I = 0.5 * (f(a) + f(b))
for k = 1:n-1
x = a + k * h
I = I + f(x)
end
I = I * h
// El error es
// h^2 (b-a) / 12 * max(abs(f''(x))) para x entre a y b
endfunction
// SE BANCA PASAR FUNCIONES COMO ARGUMENTOS EN Y
function I = Trapeciar2D(f, a, b, cc, dd, n)
/// CANT INTERVALOS N DEBE SER PAR
hx = (b - a) / n
for kx = 0:n
x = a + kx*hx
// asumo que ambas son funciones
if(typeof(cc) == "function")
c = cc(x)
d = dd(x)
else
c = cc
d = dd
end
subI = 0
hy = (d - c) / n
for ky = 0:n
y = c + ky*hy
w = 1
if(kx == 0 | kx == n)
w = w / 2
end
if(ky == 0 | ky == n)
w = w / 2
end
subI = subI + w*f(x, y)
end
subI = subI * hy
I = I + subI
end
I = I * hx
endfunction
/// Ej 1
//I = Simpsonar(log, 1, 2, 20)
//Ireal = 2 * log(2) - 1
//disp(I)
//disp(Ireal)
//disp( -0.05^4 / 180 * 6)
//
//I = trapeciar(log, 1, 2, 20)
//Ireal = 2 * log(2) - 1
//disp(I)
//disp(Ireal)
//disp( 0.05^2 / 12 )
function [I]=DoubleIntegralTrap(a, b, n, c, d, m, f)
// TRAPECIO 2D
// a < b, n: cantidad de divisiones sobre x
// c < d, m: cantidad de divisiones sobre y
Dx = (b - a)/n;
Dy = (d - c)/m;
x = zeros(1,n+1);
y = zeros(1,m+1);
F = zeros(n+1,m+1);
for i = 1:n+1
x(1,i) = a + (i-1)*Dx;
end;
for j = 1:m+1
y(1,j) = c + (j-1)*Dy;
end;
for i = 1:n+1
for j = 1:m+1
F(i,j) = f(x(1,i),y(1,j));
end;
end;
I = F(1,1) + F(1,m+1) + F(n+1,1) + F(n+1,m+1);
for i = 2:n
I = I + 2*(F(i,1) + F(i,m+1));
end;
for j = 2:m
I = I + 2*(F(1,j) + F(n+1,j));
end;
for i = 2:n
for j = 2:m
I = I + 4*F(i,j);
end;
end;
I = I*Dx*Dy/4;
//end of DoubleIntegral function
endfunction
function [I]=DoubleIntegralSimp(a, b, n, c, d, m, f)
// SIMPSON 2D
// a < b, n: cantidad de divisiones sobre x
// c < d, m: cantidad de divisiones sobre y
Dx = (b - a)/n;
Dy = (d - c)/m;
x = zeros(1,n+1);
y = zeros(1,m+1);
Rx = zeros(1, n+1);
Ry = zeros(1, m+1);
F = zeros(n+1,m+1);
for i = 1:n+1
x(1,i) = a + (i-1)*Dx;
end;
for j = 1:m+1
y(1,j) = c + (j-1)*Dy;
end;
for i = 1:n+1
for j = 1:m+1
F(i,j) = f(x(1,i),y(1,j));
end;
end;
resto = 2
for i = 1:n+1
Rx(i) = resto
resto = 6 - resto
end
Rx(1) = 1
Rx(n + 1) = 1
resto = 2
for i = 1:m+1
Ry(i) = resto
resto = 6 - resto
end
Ry(1) = 1
Ry(m + 1) = 1
R = Rx' * Ry
//disp(F)
I = sum(F .* R)/9 * Dx * Dy
//end of DoubleIntegral function
endfunction
// Ej 2
//deff('y = f(x)', 'y = 1/x')
//I = trapeciar(f, 1, 3, 4)
//disp(I)
//disp(intg(1,3,f))
function z = f(x, y)
// z = 1 / (%pi * sqrt(x * (1-x)))
z = sin(x + y)
endfunction
z1 = DoubleIntegralSimp(0, 1, 2, 0, 2, 2, f)
disp(z1)
|
86bb607527a167fb285eb63ce2619dc3f857af99 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1775/CH3/EX3.7/Chapter3_Example7.sce | 78caaf11e5f369b9a4037f13a96fcd757881653e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,124 | sce | Chapter3_Example7.sce | //Chapter-3, Illustration 7, Page 145
//Title: Internal Combustion Engines
//=============================================================================
clc
clear
//INPUT DATA
n=2;//No. of cylinders
N=4000;//speed of engine in rpm
nV=0.77;//Volumetric efficiency
nM=0.75;//Mechanical efficiency
m=10;//fuel consumed in lit/h
g=0.73;//spcific gravity of fuel
Raf=18;//air-fuel ratio
Np=600;//piston speed in m/min
imep=5;//Indicated mean efective pressure in bar
R=281;//Universal gas constant in J/kg-K
T=288;//Standard temperature in K
P=1.013;//Standard pressure in bar
//CALCULATIONS
L=Np/(2*N);//Piston stroke in m
mf=m*g;//mass of fuel in kg/h
ma=mf*Raf;//mass of air required in kg/h
Va=(ma*R*T)/(P*60*(10^5));//volume of air required in (m^3)/min
D=sqrt((2*Va)/(nV*L*N*3.1415));//Diameter in m
IP=(2*imep*100*L*3.1415*(D^2)*N)/(4*60);//Indicated Power in kW
BP=nV*IP;//Brake Power in kW
//OUTPUT
mprintf('Piston Stroke is %3.3f m \n Bore diameter is %3.4f m \n Brake power is %3.1f kW',L,D,BP)
//==============================END OF PROGRAM=================================
|
a9e3fd7d79d7ea6a27161c7bfd73925c8a493692 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1301/CH4/EX4.12/ex4_12.sce | b255fab86f4ffb2ddb89fe0c76999b9d328b4038 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 332 | sce | ex4_12.sce | clc;
g=32 //gravitational constant in ft/sec square
w=128; //mass in lb
F=(1/2)*(1/2)*128' //calculating F in lb
m=w/g; //calculating m in slugs
disp(F,"Weight at height above the earths surface of one earth radius = "); //displaying weight
disp(m,"Mass of the girl in slugs= "); //displaying mass in slugs |
15427a8d6a83638da514a4a8e376a91f835df01c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2789/CH5/EX5.2/Ex5_2.sce | fdc4dcc24ccc32cff7d4bf5ab6d1cac650a21360 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 233 | sce | Ex5_2.sce | clear;
clc;
//page no. 153
p1 = 300;// psia
T1 = 900;// degreeF
p2 = 200;// psia
T2 = 780;// degreeF
H2 = 1414;//Btu/lb
H1 = 1471;// Btu/lb
V2 = sqrt(2*31.1*778*(H1-H2));
printf('T2 = %d degreeF\n V2 = %d fps',T2,V2);
|
8fbe067cbe67bb2f9e5fafc6b2d4ee04bf532f2e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3516/CH2/EX2.1/Ex2_1.sce | e1ccebe38f6bef7ebebbf0febd0b744801af56b5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 443 | sce | Ex2_1.sce | clc
//page 13
printf("\t Example 2.1 \n");
printf("\t approximate values are mentioned in the book \n");
Tavg=900; // average temperature of the wall,F
k=0.15; // Thermal conductivity at 932 F,Btu/(hr)(ft^2)(F/ft)
T1=1500; // hot side temperature,F
T2=300; // cold side temperature,F
A=192; // surface area,ft^2
L=0.5; // thickness,ft
Q=(k)*(A)*(T1-T2)/L; // formula for heat,Btu/hr
printf("\t heat is : %.2e Btu/hr \n",Q);
//end
|
c917ec0fcb52333d91ffda7d07d8667aeeb50f0d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3863/CH4/EX4.17/Ex4_17.sce | 53ec415453a7290d87997e0e5545fae80c64f48d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 875 | sce | Ex4_17.sce | clear
//
//Given
//Variable declaration
L=4*10**3 //Length of bar in mm
A=2000 //Area of bar in sq.mm
P1=3000 //Falling weight in N(for 1st case)
h1=20*10 //Height in mm(for 1st case)
P2=30*1000 //Falling weight in N(for 2nd case)
h2=2*10 //Height in mm(for 2nd case)
E=2e5 //Youngs modulus in N/sq.mm
//Calculation
V=A*L //Volume of bar in mm^3
//case(i):Maximum stress when a 3000N weight falls through a height of 20cm
sigma1=(((sqrt((2*E*P1*h1)/(A*L)))))
//case(ii):Maximum stress when a 30kN weight falls through a height of 2cm
sigma2=((P2/A)*(1+(sqrt(1+((2*E*A*h2)/(P2*L))))))
//Result
printf("\n Maximum stress induced(when a weight of 3000N falls through a height of 20cm)= %0.3f N/mm^2",sigma1)
printf("\n Maximum stress induced(when a weight of 30kN falls through a height of 2cm)= %0.3f N/mm^2",sigma2)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.