blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 6 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 6 87 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 15 values | visit_date timestamp[us]date 2016-08-04 09:00:04 2023-09-05 17:18:33 | revision_date timestamp[us]date 1998-12-11 00:15:10 2023-09-02 05:42:40 | committer_date timestamp[us]date 2005-04-26 09:58:02 2023-09-02 05:42:40 | github_id int64 436k 586M ⌀ | star_events_count int64 0 12.3k | fork_events_count int64 0 6.3k | gha_license_id stringclasses 7 values | gha_event_created_at timestamp[us]date 2012-11-16 11:45:07 2023-09-14 20:45:37 ⌀ | gha_created_at timestamp[us]date 2010-03-22 23:34:58 2023-01-07 03:47:44 ⌀ | gha_language stringclasses 36 values | src_encoding stringclasses 17 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 1 class | length_bytes int64 5 10.4M | extension stringclasses 15 values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cd9cc3de41aea28eba2f2dda544bbcf1aa0815ff | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.12_18.tst | 72f2edff9ed462e4df6d903174a6a12cd2c3c54c | [] | 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 | 4,791 | tst | bow.12_18.tst | 12 7:0.5 18:0.6666666666666666 21:0.25 28:0.18181818181818182 43:1.0 46:1.0 190:2.0 246:1.0 493:2.0 508:1.0 553:1.0 757:1.0 990:1.0
12 5:0.02631578947368421 18:0.3333333333333333 31:0.16666666666666666 147:1.0 188:1.0 190:1.0 255:1.0 411:0.5 493:1.0 583:1.0 738:1.0 794:1.0 895:1.0
12 3:1.0 5:0.18421052631578946 12:0.5 13:2.0 21:1.25 26:1.0 28:0.18181818181818182 29:2.0 31:0.6666666666666666 32:1.0 35:0.05555555555555555 38:0.5 40:0.09090909090909091 49:0.3333333333333333 60:0.16666666666666666 61:1.0 71:0.3333333333333333 75:1.0 85:1.0 91:0.2 98:0.09090909090909091 119:0.25 147:1.0 149:1.0 155:0.25 161:1.0 165:1.0 167:0.1 170:1.0 177:0.2 226:1.0 246:2.0 248:0.5 251:0.5 255:1.0 284:1.0 289:1.5 296:1.0 326:1.0 355:1.0 394:1.0 452:1.0 471:1.0 492:1.0 572:0.5 578:1.0 726:1.0 883:1.0 917:1.0 1101:1.0 1165:2.0 1211:1.0 1302:1.0 1423:1.0 1549:1.0
12 5:0.02631578947368421 9:1.0 15:1.0 18:0.3333333333333333 21:0.25 23:1.0 24:1.0 41:1.0 130:0.14285714285714285 206:1.0 330:1.0 992:1.0
12 5:0.02631578947368421 87:1.0 757:1.0
12 28:0.09090909090909091 61:1.0 206:1.0 306:1.0
12 8:1.0 21:0.5 26:1.0 61:2.0 119:0.25 215:1.0 306:1.0 1153:1.0
12 3:1.0 5:0.02631578947368421 9:1.0 17:1.0 28:0.09090909090909091 38:0.5 306:1.0 351:1.0
12 12:0.5 17:1.0 18:0.3333333333333333 35:0.05555555555555555 41:1.0 351:1.0 714:1.0 1474:1.0
12 5:0.02631578947368421 53:1.0 91:0.2 122:1.0 164:1.0 422:1.0 476:1.0
12 8:1.0 21:0.25 40:0.09090909090909091 56:0.045454545454545456 61:1.0 178:1.0 306:1.0
12 1:0.3333333333333333 3:1.0 5:0.02631578947368421 18:0.6666666666666666 25:1.0 28:0.09090909090909091 32:1.0 35:0.05555555555555555 38:0.5 58:1.0 61:1.0 71:0.3333333333333333 82:0.3333333333333333 124:0.3333333333333333 155:0.25 355:1.0 1021:0.5 1399:1.0
12 11:1.0 13:1.0 18:1.0 21:0.25 28:0.09090909090909091 31:0.16666666666666666 41:1.0 114:1.0 116:0.25 190:2.0 330:1.0 476:2.0 478:1.0 565:1.0 1529:1.0
12 21:0.25 23:1.0 28:0.09090909090909091 56:0.045454545454545456 61:1.0 116:0.25 135:1.0 167:0.1 170:1.0 289:0.5 355:1.0 1425:1.0 1550:1.0
12 18:0.3333333333333333 29:0.5 135:1.0
12 5:0.02631578947368421 9:1.0 12:1.0 18:0.3333333333333333
12 5:0.05263157894736842 8:1.0 12:0.5 21:0.25 28:0.09090909090909091 40:0.09090909090909091 49:0.16666666666666666 61:1.0 167:0.1 188:1.0 378:1.0 427:1.0 1226:1.0 1382:1.0
12 5:0.02631578947368421 9:1.0 12:0.5 28:0.09090909090909091 31:0.16666666666666666 47:0.08333333333333333 159:1.0 190:1.0 294:1.0 427:1.0 503:1.0 674:1.0 714:1.0
12 5:0.07894736842105263 31:0.16666666666666666 40:0.09090909090909091 47:0.08333333333333333 71:0.3333333333333333 159:1.0 188:1.0 196:1.0 427:1.0 593:1.0
12 40:0.09090909090909091 61:1.0 186:1.0 668:1.0
12 5:0.05263157894736842 12:0.5 31:0.16666666666666666 100:1.0 188:1.0 336:1.0 588:1.0
12 12:0.5 25:1.0 40:0.09090909090909091 85:1.0 297:1.0 298:1.0 326:1.0 1303:1.0
12 12:0.5 31:0.16666666666666666 178:1.0 289:0.5 296:1.0
12 5:0.02631578947368421 18:0.3333333333333333 28:0.09090909090909091 29:0.5 31:0.16666666666666666 60:0.16666666666666666 69:0.16666666666666666 91:0.2 116:0.25 134:0.5 135:1.0 143:2.0 185:1.0 289:0.5 298:1.0 527:1.0 892:1.0
12 21:0.25 23:1.0 25:1.0 82:0.3333333333333333 215:1.0 930:1.0 992:1.0
12 5:0.02631578947368421 7:0.5 8:1.0 12:0.5 21:0.25 23:1.0 28:0.09090909090909091 29:1.0 35:0.05555555555555555 40:0.09090909090909091 47:0.16666666666666666 118:1.0 168:0.14285714285714285 190:1.0 289:0.5 422:1.0 476:1.0 592:1.0 714:1.0 1226:1.0
12 12:0.5 23:1.0 28:0.09090909090909091 29:1.0 35:0.05555555555555555 47:0.08333333333333333 60:0.16666666666666666 91:0.2 134:0.5 168:0.14285714285714285 240:1.0 268:1.0 728:1.0
12 1:0.3333333333333333 5:0.05263157894736842 28:0.2727272727272727 29:0.5 68:1.0 165:1.0 471:1.0 883:1.0 1091:1.0 1215:1.0
12 3:1.0 5:0.02631578947368421 16:1.0 17:1.0 18:0.6666666666666666
12 25:1.0 31:0.16666666666666666 69:0.16666666666666666 102:1.0 134:0.5 768:1.0 831:1.0
12 8:1.0 12:0.5 21:0.25 28:0.09090909090909091 114:1.0 118:1.0 135:1.0 215:1.0 274:1.0 289:0.5 831:1.0 1153:1.0
12 21:0.25 70:1.0 167:0.1 168:0.2857142857142857 186:1.0 322:1.0 336:1.0
12 12:0.5 21:0.5 49:0.16666666666666666 326:1.0 336:1.0 912:1.0 1507:1.0
12 5:0.05263157894736842 12:0.5 21:0.75 29:1.0 38:0.5 40:0.09090909090909091 82:0.3333333333333333 85:1.0 123:1.0 152:1.0 167:0.1 289:0.5 809:1.0 883:1.0
12 21:0.25 23:1.0 31:0.16666666666666666 215:2.0 299:1.0 1263:2.0
12 21:0.25 28:0.09090909090909091 29:0.5 35:0.05555555555555555 38:0.5 72:1.0 105:1.0 892:1.0 1263:1.0
12 5:0.02631578947368421 12:0.5 23:1.0 29:0.5 31:0.16666666666666666 116:0.25 289:0.5 296:1.0 299:1.0 471:1.0 588:1.0 618:1.0 883:1.0
12 9:1.0 12:0.5 18:0.3333333333333333 23:1.0 31:0.16666666666666666 229:1.0 306:1.0 330:1.0 498:0.5 1268:1.0
12 5:0.05263157894736842 8:1.0 9:1.0 21:0.25 116:0.25 118:1.0 973:1.0
|
8eb8f8f04b91491378fb5e86871cca82fe67b3ce | 9f9364e082d4bc2f7ee5cbd7a489642615821873 | /src/testCases/test1-0.tst | 374f757bfbdb2921964edc8a44a9f48098b1d162 | [] | no_license | abrageddon/DLX-Opt | 4602617f83ddf8cb0fea83fecd2faa362849dfcd | 20038078f11a7ae67e7ab336e551e23966551290 | refs/heads/master | 2021-01-01T05:49:33.218016 | 2013-03-14T06:08:45 | 2013-03-14T06:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 90 | tst | test1-0.tst | main
var cs142;
{
let cs142 <- 2412;
call outputnum(cs142);
call outputnewline()
}.
|
982540a5ce6f69f2767425d796dee5bdc670ec0f | b829a470efb851fdd8700559c2092711adaa42e0 | /Data/OVI-CV-03-Facenet/CV-Groups/cv-group-114528472702/OVI-Test/cv-group-114528472702-run-00.tst | 7f1f1bf6b03ca3489a1626127a188b24596fbb2c | [] | no_license | achbogga/FaceRecognition | 6f9d50bd1f32f2eb7f23c7ae56f9e7b225d32325 | 165ebc7658228d2cceaee4619e129e248665c49a | refs/heads/master | 2021-07-04T21:47:57.252016 | 2017-08-01T18:53:12 | 2017-08-01T18:53:12 | 96,568,452 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 508 | tst | cv-group-114528472702-run-00.tst | Huiping\Huiping_018.jpg
Huiping\Huiping_015.jpg
Don\Don_012.jpg
Don\Don_007.jpg
Shirley\Shirley_008.jpg
Shirley\Shirley_007.jpg
Ahmad\Ahmad_006.jpg
Ahmad\Ahmad_005.jpg
Sima\Sima_010.jpg
Sima\Sima_001.jpg
SungChun\SungChun_011.jpg
SungChun\SungChun_013.jpg
Gang\Gang_014.jpg
Gang\Gang_010.jpg
Ethan\Ethan_004.jpg
Ethan\Ethan_009.jpg
Rob\Rob_004.jpg
Rob\Rob_007.jpg
Nara\Nara_005.jpg
Nara\Nara_003.jpg
Weihong\Weihong_007.jpg
Weihong\Weihong_008.jpg
Dave\Dave_006.jpg
Dave\Dave_009.jpg
|
3c5e050df05b91ad6cc791bf19941e086122d9c6 | b0aff14da16e18ea29381d0bd02eede1aafc8df1 | /mtlbSci/macros/moc_polyval.sci | 765243643535f8518b629d8c25175c8fe1fe8c29 | [] | no_license | josuemoraisgh/mtlbSci | 5d762671876bced45960a774f7192b41124a13ed | 5c813ed940cccf774ccd52c9a69f88ba39f22deb | refs/heads/main | 2023-07-15T23:47:11.843101 | 2021-08-26T17:52:57 | 2021-08-26T17:52:57 | 385,216,432 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,845 | sci | moc_polyval.sci | function [y, dy] = moc_polyval (p, x, s, mu)
// Evaluate the polynomial p at the specified values of x
// Calling Sequence
// y = moc_polyval (p, x)
// y = moc_polyval (p, x, [], mu)
// [y,dy] = moc_polyval (p, x)
// [y,dy] = moc_polyval (p, x,s)
// [y,dy] = moc_polyval (p, x,s,mu)
// Description
//
// Evaluate the polynomial p at the specified values of x}. When
// mu is present, evaluate the polynomial for
// (x-mu(1))/mu(2).
// If x is a vector or matrix, the polynomial is evaluated for each of
// the elements of x.
//
// In addition to evaluating the polynomial, the second output
// represents the prediction interval, y +/- dy which
// contains at least 50% of the future predictions. To calculate the
// prediction interval, the structured variable @var{s}, originating
// from moc_polyfit, must be supplied.
//
// See also
// moc_polyfit, moc_poly
//
// Authors
// Tony Richardson, 1994
// Holger Nahrstaedt 2014
// Author: Tony Richardson <arichard@stark.cc.oh.us>
// Created: June 1994
// Adapted-By: jwe
// Copyright (C) 1994-2013 John W. Eaton
//
// This file is part of Octave.
//
// Octave is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or (at
// your option) any later version.
//
// Octave is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Octave; see the file COPYING. If not, see
// <http://www.gnu.org/licenses/>.
[nargout,nargin]=argn(0);
if (nargin < 2 | nargin > 4 | (nargout == 2 & nargin < 3))
error ("[y, dy] = moc_polyval (p, x, s, mu)");
end
if (nargin == 2)
s=[];
end;
if (isempty (x))
y = [];
return;
elseif (isempty (p))
y = zeros ((x));
return;
elseif (~ moc_isvector (p))
error ("polyval: first argument must be a vector");
end
if (nargin > 3)
x = (x - mu(1)) / mu(2);
end
n = length (p) - 1;
y = p(1) * ones ((x));
for i = 2:n+1
y = y .* x + p(i);
end
if (nargout == 2)
// Note: the F-Distribution is generally considered to be single-sided.
// http://www.itl.nist.gov/div898/handbook/eda/section3/eda3673.htm
// t = finv (1-alpha, s.df, s.df);
// dy = t * sqrt (1 + sumsq (A/s.R, 2)) * s.normr / sqrt (s.df)
// If my inference is correct, then t must equal 1 for polyval.
// This is because finv (0.5, n, n) = 1.0 for any n.
try
k = length (x);
A = (x(:) * ones (1, n+1)) .^ (ones (k, 1) * (n:-1:0));
dy = sqrt (1 + moc_sumsq (A/s.R, 2)) * s.normr / sqrt (s.df);
dy = matrix (dy, size (x));
catch
if (isempty (s))
error ("polyval: third input is required.");
elseif (isstruct (s) & and (moc_ismember ({"R", "normr", "df"}, fieldnames (s))))
error (lasterr ());
elseif (isstruct (s))
error ("polyval: third input is missing the required fields.");
else
error ("polyval: third input is not a structure.");
end
end
end
endfunction
//
// %!fail ("polyval ([1,0;0,1],0:10)")
//
// %!test
// %! r = 0:10:50;
// %! p = poly (r);
// %! p = p / max (abs (p));
// %! x = linspace (0,50,11);
// %! y = polyval (p,x) + 0.25*sin (100*x);
// %! [pf, s] = polyfit (x, y, numel (r));
// %! [y1, delta] = polyval (pf, x, s);
// %! expected = [0.37235, 0.35854, 0.32231, 0.32448, 0.31328, ...
// %! 0.32036, 0.31328, 0.32448, 0.32231, 0.35854, 0.37235];
// %! assert (delta, expected, 0.00001);
//
// %!test
// %! x = 10 + (-2:2);
// %! y = [0, 0, 1, 0, 2];
// %! p = polyfit (x, y, numel (x) - 1);
// %! [pn, s, mu] = polyfit (x, y, numel (x) - 1);
// %! y1 = polyval (p, x);
// %! yn = polyval (pn, x, [], mu);
// %! assert (y1, y, sqrt (eps));
// %! assert (yn, y, sqrt (eps));
//
// %!test
// %! p = [0, 1, 0];
// %! x = 1:10;
// %! assert (x, polyval (p,x), eps);
// %! x = x(:);
// %! assert (x, polyval (p,x), eps);
// %! x = reshape (x, [2, 5]);
// %! assert (x, polyval (p,x), eps);
// %! x = reshape (x, [5, 2]);
// %! assert (x, polyval (p,x), eps);
// %! x = reshape (x, [1, 1, 5, 2]);
// %! assert (x, polyval (p,x), eps);
//
// %!test
// %! p = [1];
// %! x = 1:10;
// %! y = ones (size (x));
// %! assert (y, polyval (p,x), eps);
// %! x = x(:);
// %! y = ones (size (x));
// %! assert (y, polyval (p,x), eps);
// %! x = reshape (x, [2, 5]);
// %! y = ones (size (x));
// %! assert (y, polyval (p,x), eps);
// %! x = reshape (x, [5, 2]);
// %! y = ones (size (x));
// %! assert (y, polyval (p,x), eps);
// %! x = reshape (x, [1, 1, 5, 2]);
//
// %!assert (zeros (1, 10), polyval ([], 1:10))
// %!assert ([], polyval (1, []))
// %!assert ([], polyval ([], []))
//
|
8a1c4bd73a33433b574e10ff1b6df2c6709356dd | 449d555969bfd7befe906877abab098c6e63a0e8 | /662/CH13/EX13.16/ex_13_16.sce | 7d4ef24c94e942c6e2a259f0f138b9a822a9b712 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 324 | sce | ex_13_16.sce | //Print the alternate characters of the file output1.dat
warning('off');
fstream1=mopen('output1.dat','r');
for a=1:13
ch=mfscanf(fstream1,"%c"); //Read data from file output.dat
printf("%c ",ch); //Print the data
mseek(1,fstream1,'cur'); //Skeep 1 character after every reading
end
mclose(fstream1); |
308217004a4b6e077001f0575922d75da29fcdb2 | 527c41bcbfe7e4743e0e8897b058eaaf206558c7 | /Positive_Negative_test/Netezza-Base-StringAndUtilityFunctions/FLConcatStr-NZ-01.tst | 24a81dfb390b2b8745faff2cc911e8b7ed7834a6 | [] | no_license | kamleshm/intern_fuzzy | c2dd079bf08bede6bca79af898036d7a538ab4e2 | aaef3c9dc9edf3759ef0b981597746d411d05d34 | refs/heads/master | 2021-01-23T06:25:46.162332 | 2017-07-12T07:12:25 | 2017-07-12T07:12:25 | 93,021,923 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,937 | tst | FLConcatStr-NZ-01.tst | -- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Netezza
--
-- Copyright (c): 2014 Fuzzy Logix, LLC
--
-- NOTICE: All information contained herein is, and remains the property of Fuzzy Logix, LLC.
-- The intellectual and technical concepts contained herein are proprietary to Fuzzy Logix, LLC.
-- and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade
-- secret or copyright law. Dissemination of this information or reproduction of this material is
-- strictly forbidden unless prior written permission is obtained from Fuzzy Logix, LLC.
-- Functional Test Specifications:
--
-- Test Category: String Functions
--
-- Test Unit Number: FLConcatStr-Netezza-01
--
-- Name(s): FLConcatStr
--
-- Description: Concatenates into one string.
--
-- Applications:
--
-- Signature: FLConcatStr(String STRING,
-- Position INTEGER)
--
-- Parameters: See Documentation
--
-- Return value: VARCHAR
--
-- Last Updated: 07-04-2017
--
-- Author: Kamlesh Meena
--
-- BEGIN: TEST SCRIPT
\time
--.run file=../PulsarLogOn.sql
--.set width 2500
--SELECT COUNT(*) AS CNT,
-- CASE WHEN CNT = 0 THEN ' Please Load Test Data!!! ' ELSE ' Test Data Loaded ' END AS TestOutcome
--FROM fzzlSerial a;
-- BEGIN: POSITIVE TEST(s)
---- Positive Test 1: Returns Concated string.
SELECT FLConcatStr(a.String1,'|') AS ConcatString FROM tblString a;
--Positive test case 2
--use the same one but try to get an order in concat string
SELECT FLConcatStr(a.String1,'|') AS ConcatString
FROM (
SELECT String1 as String1
FROM tblString
ORDER BY 1
LIMIT 10)
AS a;
--Positive test case 3
--select names and concat them for a large number of data
SELECT FLConcatStr(a.companyname,'|') AS ConcatString
FROM (
SELECT
companyname as companyname
FROM finPubco
LIMIT 30)
AS a;
--Positive test case 4
--select the top names alphabetically and concat them for a large number of data
SELECT FLConcatStr(a.companyname,'|') AS ConcatString
FROM (
SELECT
companyname as companyname
FROM finPubco
ORDER BY 1
LIMIT 30)
AS a;
--Positive test case 5
--(Resolution to JIRA TD-82) example similar to the test case listed there
--SELECT SUBSTRING(DatabaseNameI FROM 1 FOR 1) || ':' (TITLE ''),
--FLConcatStr(DatabaseNameI,'|') (TITLE 'Databases')
--FROM DBC.DBase
--ORDER BY 1
--GROUP BY 1
SELECT SUBSTRING(string1 from 1 for 1),
FLConcatStr(string1,'|')
FROM tblstring
GROUP BY 1
ORDER BY 1;
-- BEGIN: NEGATIVE TEST(s)
---- Negative Test 1:More parameter given
SELECT FLConcatStr(a.String1,'|','A') AS ConcatString
FROM tblString a;
---- Negative Test 2: Invalid Input For Input String Column
---- Negative Test 2a
--- Return expected results, Good
SELECT FLConcatStr('String1','|') AS ConcatString
FROM tblString;
---- Negative Test 2b
--- Return expected results, Good
SELECT FLConcatStr('','|') AS ConcatString
FROM tblString;
---- Negative Test 2c
--- Return expected results, Good
SELECT FLConcatStr(NULL,'|') AS ConcatString
FROM tblString;
---- Negative Test 3: Invalid Input For Delimiter
--- Return expected results, Good
--- To be investigated
SELECT FLConcatStr(String1,'') AS ConcatString
FROM tblString;
SELECT FLConcatString(String1,NULL) AS ConcatString
FROM tblString;
--Negative test case 4 :try using more than 1 character as delimiter
--it should ignore the other characters after the 1st
SELECT FLConcatStr(a.companyname,'|pppp') AS ConcatString
FROM
( SELECT
companyname as companyname
FROM finPubCo
ORDER BY 1
LIMIT 25
)
AS a;
---Negative case 5
--When the input causes the concat string exceeds the max allowded value for the output
SELECT FLConcatStr(a.CustName, ',') AS ConcatString
FROM (
SELECT 'abcdefghijklmnopqrstuvwxyz' AS CustName,
a.SerialVal AS CustNo
FROM fzzlserial a
)
AS a;
-- END: NEGATIVE TEST(s)
\time
-- END: TEST SCRIPT
|
07cc7e3a784112c8ab4f62bfadf098727959a16f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1535/CH3/EX3.4/Ch03Ex4.sci | 8dab303413e1fc5bffca9b37f8c93ebe5549237a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 951 | sci | Ch03Ex4.sci | // Scilab Code Ex3.4 : Page-72 (2010)
lambda = 5893e-010; // Wavelength of monochromatic lihgt used, m
n = 1; // Number of fringe for the least thickness of the film
r = 0; // Value of refraction angle for normal incidence, degrees
mu = 1.42; // refractive index of the soap film
// As for constructive interference,
// 2*mu*t*cos(r) = (2*n-1)*lambda/2, solving for t
t = (2*n-1)*lambda/(4*mu*cos(r)); // Thickness of the film that appears bright, m
printf("\nThe thickness of the film that appears bright = %6.1f angstrom", t/1e-010);
// As for destructive interference,
// 2*mu*t*cos(r) = n*lambda, solving for t
t = n*lambda/(2*mu*cos(r)); // Thickness of the film that appears bright, m
printf("\nThe thickness of the film that appears dark = %4d angstrom", t/1e-010);
// Result
// The thickness of the film that appears bright = 1037.5 angstrom
// The thickness of the film that appears dark = 2075 angstrom |
9e54297a3615870a0557d552aa637b7943430132 | 449d555969bfd7befe906877abab098c6e63a0e8 | /671/CH3/EX3.7/3_7.sce | 7b1be3ebcb004b49438cf89f8ef2c60d643bdd5f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 173 | sce | 3_7.sce | function C=seriesC(C1,C2)
C=C1*C2/(C1+C2)
endfunction
Ceq=seriesC(seriesC(10,20),40)
disp(Ceq)
q=Ceq*280
disp(q)
V1=q/10
V2=q/20
V3=q/40
disp(V3,V2,V1) |
c0e41b08873c25e7a7108dd1a900560a7ee5a99e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH4/EX4.9/4Ex9.sce | 2c8a27a051e77b80ad8923592c0f15f51f10500f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 398 | sce | 4Ex9.sce | //Chapter 4 Ex 9
clc;
clear;
close;
//(i)
x1=17.28/(2*3.6*0.2);
mprintf("(i)The value of x is %.0f",x1);
//(ii)
x2=364.824/(3794.1696+36.4824-3648.24);
mprintf("\n(ii)The value of x is %.0f",x2);
//(iii)
x3=poly(0,'x');
for x3=1:0.1:10
if round(8.5-(5.5-(7.5+(2.8/x3)))*(4.25/0.04))==306
break;
end
end
mprintf("\n(iii)The value of x is %.1f",x3);
|
52189fbed7b7ff955b405a5576debe3fbfa37257 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2498/CH6/EX6.11/ex6_11.sce | 0f0963ff4b8121160b1a7c03e08d69d0b02e0426 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex6_11.sce | // Exa 6.11
clc;
clear;
close;
format('v',6)
// Given data
Va = 0.2;// in V
Vb = -0.5;// in V
Vc = 0.8;// in V
Ra = 33;// in k ohm
Rb = 22;// in k ohm
Rc = 11;// in k ohm
R_F = 66;// in k ohm
// Using Superposition theorm, the output voltage
Vo = (-((R_F/Ra)*Va)) -(((R_F/Rb)*Vb)) -(((R_F/Rc)*Vc));// in V
disp(Vo,"The output voltage in V is");
|
7f777cb7a8d0d228ee1851060796cc21dcf4b064 | 0aacc4aca603f61e9ac05bdb6de5b3b783f797fe | /Mission-X1/X1_Transf_Fourrier_Inverse.sce | 0323dfd624e0be476db851063e598c2cbf80493b | [] | no_license | ZHamsiou/EXOLIFE-A2 | cf6001f744bf26109af2b552ecc2fe055ab8efd7 | 675a20670231c2a0a6c73333c988b1e651cab264 | refs/heads/master | 2021-04-29T19:18:23.002372 | 2018-02-16T03:22:18 | 2018-02-16T03:22:18 | 121,710,650 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 325 | sce | X1_Transf_Fourrier_Inverse.sce | // Chargement du fichier X1.
// le fichier est stocké dans la variale "imgT".
load('X1.dat');
// Déclaration & initialisation d'une variable où est stocké la nouvelle image
// qui résulte de la transformée de fourrier inverse de l'image source.
img=ifft(imgT)
// Affichage de l'image.
display_gray(img)
|
2d07f00f64901eefe6518450bf94602ee4a01f9b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2699/CH3/EX3.13/Ex3_13.sce | 3b3f114935bcae542a8c04e45f98249b4df0ef1f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 597 | sce | Ex3_13.sce | //EX3_13 PG-3.40
clc
Ep=230; //rms value of primary voltage
N2toN1=1/15;//turns ratio
Rf=0;//diode is ideal
Rs=0;//transformer is ideal
Rl=50;//load resistance
Es=Ep*N2toN1;//rms vaue of primary voltage
Esm=sqrt(2)*Es;//peak value of input voltage
Im=Esm/(Rs+2*Rf+Rl);
Idc=2*Im/%pi;
Edc=Idc*Rl;//load voltage
printf("\n Therefore load voltage is %.1f V\n",Edc)
Rf=.482;//ripple factor for full wave rectifier
Vrip=Rf*Edc;//ripple voltage
printf("\n ripple voltage is %.4f V",Vrip)
//in the book the ripple voltage has been rounded off to
//6.6516V but the actual ans is 6.6539V
|
c5b5212857c2bb4630f368db55838423289d9b73 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2705/CH15/EX15.13/Ex15_13.sce | 50608fe0046d991c67b3e3a9c7ea1da14bea49c2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 2,758 | sce | Ex15_13.sce | clear;
clc;
disp('Example 15.13');
// aim : To determine
// (a) the pressure, volume and temperature at cycle process change points
// (b) the net work done
// (c) the thermal efficiency
// (d) the heat received
// (e) the work ratio
// (f) the mean effective pressure
// (g) the carnot efficiency
// given values
rv = 15;// volume ratio
P1 = 97*10^-3;// initial pressure , [MN/m^2]
V1 = .084;// initial volume, [m^3]
T1 = 273+28;// initial temperature, [K]
T4 = 273+1320;// maximum temperature, [K]
P3 = 6.2;// maximum pressure, [MN/m^2]
cp = 1.005;// specific heat capacity at constant pressure, [kJ/kg K]
cv = .717;// specific heat capacity at constant volume, [kJ/kg K]
// solution
// taking reference Fig. 15.27
// (a)
R = cp-cv;// gas constant, [kJ/kg K]
Gama = cp/cv;// heat capacity ratio
// for process 1-2
V2 = V1/rv;// volume at stage2, [m^3]
// using PV^(Gama)=constant for process 1-2
P2 = P1*(V1/V2)^(Gama);// pressure at stage2,. [MN/m^2]
T2 = T1*(V1/V2)^(Gama-1);// temperature at stage 2, [K]
// for process 2-3
// since volumee is constant in process 2-3 , so using P/T=constant, so
T3 = T2*(P3/P2);// volume at stage 3, [K]
V3 = V2;// volume at stage 3, [MN/m^2]
// for process 3-4
P4 = P3;// pressure at stage 4, [m^3]
// since in stage 3-4 P is constant, so V/T=constant,
V4 = V3*(T4/T3);// temperature at stage 4,[K]
// for process 4-5
V5 = V1;// volume at stage 5, [m^3]
P5 = P4*(V4/V5)^(Gama);// pressure at stage5,. [MN/m^2]
T5 = T4*(V4/V5)^(Gama-1);// temperature at stage 5, [K]
mprintf('\n (a) P1 = %f kN/m^2, V1 = %f m^3, t1 = %f C,\n P2 = %f MN/m^2, V2 = %f m^3, t2 = %f C,\n P3 = %f MN/m^2, V3 = %f m^3, t3 = %f C,\n P4 = %f MN/m^2, V4 = %f m^3, t4 = %f C,\n P5 = %fkN/m^2, V5 = %fm^3, t5 = %fC\n',P1*10^3,V1,T1-273,P2,V2,T2-273,P3,V3,T3-273,P4,V4,T4-273,P5*10^3,V5,T5-273);
// (b)
W = (P3*(V4-V3)+((P4*V4-P5*V5)-(P2*V2-P1*V1))/(Gama-1))*10^3;// work done, [kJ]
mprintf('\n (b) The net work done is = %f kJ\n',W);
// (c)
TE = 1-(T5-T1)/((T3-T2)+Gama*(T4-T3));// thermal efficiency
mprintf('\n (c) The thermal efficiency is = %f percent\n',TE*100);
// (d)
Q = W/TE;// heat received, [kJ]
mprintf('\n (d) The heat received is = %f kJ\n',Q);
// (e)
PW = P3*(V4-V3)+(P4*V4-P5*V5)/(Gama-1)
WR = W*10^-3/PW;// work ratio
mprintf('\n (f) The work ratio is = %f\n',WR);
// (e)
Pm = W/(V1-V2);// mean effective pressure, [kN/m^2]
mprintf('\n (e) The mean effective pressure is = %f kN/m^2\n',Pm);
// (f)
CE = (T4-T1)/T4;// carnot efficiency
mprintf('\n (f) The carnot efficiency is = %f percent\n',CE*100);
// End
|
3e29a91117c7bb91068f686884c780129dc31dfe | 449d555969bfd7befe906877abab098c6e63a0e8 | /2789/CH8/EX8.3/Ex8_3.sce | 501ebae83e74aa4ddb98d8ddff2e502b5faff483 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 173 | sce | Ex8_3.sce | clear;
clc;
//page no.266
G = 20000;//cfs
k = 1/15;
Q_m = G*(k)^(2+ 1/2);
printf('Qm = %d cfs',Q_m);
//there is a minute error in the answer given in textbook
|
598bd490143a4a067a266b99d99b33d7398c4f6c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1055/CH14/EX14.2/ch14_2.sce | d1f56ac0632aea8b4ba988a79ebc24e7968059ce | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 319 | sce | ch14_2.sce | // To determine the phase shifting network to be used.
clear
clc;
Z=1000*(cosd(60) + %i*sind(60));//impedence
X=tand(50)*1000*cosd(60);
Xl=1000*sind(60);
Xc=Xl-X;
C=1000000/(314*Xc);
//Answers don't match due to difference in rounding off of digits
disp(X,"X=");
disp(Xc,"Xc=");
disp(C,"C(micro farads)=");
|
b16072e3c70a7ff1da2b896862d7f60848ccc69c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3630/CH15/EX15.15/Ex15_15.sce | c0710ce50a376d995f2f2c73af3d6e4c50991b48 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 131 | sce | Ex15_15.sce | clc;
Zout=80;
avAoL=1180;
Zoutf=Zout/(1+avAoL);
disp('mohm',Zoutf*1000 ,"Zoutf=");//The answers vary due to round off error
|
665ea668b14930aa78080dc32b2590e5d6b93278 | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH26/EX26.05/26_05.sce | 6b0268ef2e5b3549da2a4f0fdb403fb74598bbf9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,093 | sce | 26_05.sce | //Problem 26.05:The circuit shown in Figure 26.9 dissipates an active power of 400 Wand has a power factor of 0.766 lagging. Determine (a) the apparent power, (b) the reactive power, (c) the value and phase of current I, and (d) the value of impedance Z.
//initializing the variables:
Pa = 400; // in Watts
rv = 100; // in volts
thetav = 30; // in degrees
R = 4; // in ohm
pf = 0.766; // power factor
//calculation:
V = rv*cos(thetav*%pi/180) + %i*rv*sin(thetav*%pi/180)
//magnitude of apparent power,S = V*I
S = Pa/pf
phi = acos(pf)
theta = phi*180/%pi // in degrees
//Reactive power Q
Q = S*sin(phi)
//magnitude of current
Imag = S/rv
thetai = thetav - theta
I = Imag*cos(thetai*%pi/180) + %i*Imag*sin(thetai*%pi/180)
//Total circuit impedance ZT
ZT = V/I
//impedance Z
Z = ZT - R
printf("\n\n Result \n\n")
printf("\n (a)apparent power is %.2f VA ",S)
printf("\n (b)reactive power is %.2f var ",Q)
printf("\n (c)the current flowing and Circuit phase angle is %.2f/_%.0f° A ",Imag,thetai)
printf("\n (d)impedance, Z is %.2f + (%.2f)i ohm ",real(Z), imag(Z)) |
05c6f00794302f529b9cfbce0750f3d6378579ee | 449d555969bfd7befe906877abab098c6e63a0e8 | /3718/CH7/EX7.11/Ex7_11.sce | eb59b900c39bfe184fd8b37e90622f38fb049415 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 252 | sce | Ex7_11.sce | //Chapter 7: Solid State
//Problem: 11
clc;
mprintf("AB remain in BCC structure if the edge length is a then body diagonal ,is root(3)a\n")
mprintf(" root(3)a = 2(r+ + r-)\n")
A = (sqrt(3) * 0.4123 - 2 * 0.81) / 2
mprintf(" A+ = %.2f nm",A)
|
66286a616ab342ab75603f046aa0f34958030361 | 23573b967e8324d44226379d70559b8f0ea34905 | /code/linprog/TOOLCO.sce | c14ca1b7263664aa9d48754f1347252b770c3543 | [] | no_license | FOSSEE/FOT_Examples | 91c8b8e9dc58545604b2c2af41a7e22f702b78f3 | 75947a7aa5a3955fe5a72e09f55bbdc05e3b8751 | refs/heads/master | 2020-03-22T09:00:48.306061 | 2018-07-24T04:49:25 | 2018-07-24T04:49:25 | 139,807,736 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,109 | sce | TOOLCO.sce | //This is an infeasible model
//Ref:H.A. TAHA,"OPERATIONS RESEARCH AN INTRODUCTION",PEARSON-Prentice Hall New Jersey 2007,chapter 3.5
//Example:
//Toolco produces three types of tools, T1,T2 and T3. The tools use two rawmaterials, M1 and M2, according to the data in the following table:
//--------------------------------------------------------------------
// Number of units of raw materials per tool
// -----------------------------------------
//Raw material T1 T2 T2
//---------------------------------------------------------------------
//M1 3 5 6
//M2 5 3 4
//---------------------------------------------------------------------
//The available daily quantites of raw materials M1 and M2 are 1000 units and 1200 units, respectively. The marketing department informed the production manager that according to their research , the daily demand for all three tools must be at least 500 units. will the manufacturing department be able to satisfy the demand?
// 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:Debasis Maharana
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
//======================================================================
clc;
Nraw = 2;
Nproduct = 3;
Product_mix = [3 5 6;5 3 4];
Raw_avail = [1000 1200];
Demand = [500 500 500];
mprintf('Data received')
mprintf('Number of product %d',Nproduct);
mprintf('Number of Raw materials %d',Nraw);
FirstR = ['Product 1','Product 2','Product 3','Available']
Raw_mat = ['M1','M2'];
table = [['Raw materisl' FirstR];[Raw_mat' string(Product_mix) string(Raw_avail') ]];
disp(table);
input('Enter to proceed ');
for i = 1:Nraw
A(i,:) = Product_mix(i,:);
b(i) = Raw_avail(i);
end
A = [A;-eye(Nproduct,Nproduct)];
b = [b;-500*ones(Nproduct,1)];
lb = zeros(1,Nproduct);//Redudant due to demand
ub = [];
C = ones(1,Nproduct);
[xopt,fopt,exitflag,output,lambda] = linprog(-C',A,b,[],[],lb,ub);
clc
select exitflag
//Display result
case 0 then
mprintf('Optimal Solution Found')
input('Press enter to view results')
disp('Paint produced')
mprintf('\nExterior paint %d\t interior paint %d',xopt(1),xopt(2));
case 1 then
mprintf('Primal Infeasible\n')
y = A*xopt-b;
if sum(y(1:Nraw))>0
mprintf('\nInsufficient raw material');
else
mprintf('\nCan not meet market demand');
end
case 2 then
mprintf('Dual Infeasible')
case 3
mprintf('Maximum Number of Iterations Exceeded. Output may not be optimal')
case 4
mprintf('Solution Abandoned')
case 5
mprintf('Primal objective limit reached')
else
mprintf('Dual objective limit reached')
end
|
8f2f964c554f45ac891920c7e2102a4addbdf65b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1673/CH5/EX5.2/5_2.sce | 406d34608e397ca90cf259e04c9f727ba03e22d1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 480 | sce | 5_2.sce | //quadratic splines
//example 5.2
//page 18
clc;clear;close;
X=[1 2 3];
y=[-8 -1 18];
h=X(2)-X(1);
m1=(y(2)-y(1))/(X(2)-X(1));
m2=(2*(y(2)-y(1)))/h-m1;
m3=(2*(y(3)-y(2)))/h-m2;
deff('y2=s2(x)','y2=(-(X(3)-x)^2*m1)/2+((x-X(2))^2*m3)/2+y(2)+m2/2');
a=poly(0,'x');
disp(s2(a));
printf('the value of function is 2.5: %0.2f',s2(2.5));
x=2.0;
h=0.01;
deff('y21=s21(x,h)','y21=(s2(x+h)-s2(x))/h');
d1=s21(x,h);
printf('\n\nthe first derivative at 2.0 :%0.2f',d1);
|
6a9b7d31cdcf403af1c0f261d61b18ecbe315b93 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3683/CH19/EX19.4/Ex19_4.sce | 430eca029a1ec3e425c44d45feb4ba8c7eab8c78 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,421 | sce | Ex19_4.sce | fck=15//in MPa
fy=415//in MPa
MF=1.4//modification factor
//let a be span to depth ratio
l=1//span, in m
a=MF*7
D=l*1000/a//in mm
D=105//assume, in mm
//to calculate loading
W1=25*(D/10^3)*1.5//self-weight, in kN/m
W2=0.5*1.5//finish, in kN/m
W3=0.75*1.5//live load, in kN/m
W=W1+W2+W3//in kN/m
Wu=1.5*W//in kN/m
lef=l+0.23/2//effective span, in m
Mu=Wu*lef/2//in kN-m
//check for depth
d=sqrt(Mu*10^6/(0.138*fck*1500))//in mm
dia=12//assume 12 mm dia bars
D=d+12/2+15//<105, hence OK
D=100//assume, in mm
d=D-dia/2-15//in mm
//steel
//Xu=0.87*fy*Ast/0.36/fck/b = a*Ast
a=0.87*fy/0.36/fck/1.5/10^3
//using Mu=0.87 fy Ast (d-0.416 Xu), we get a quadratic equation
p=0.87*fy*0.416*a
q=-0.87*fy*d
r=Mu*10^6
Ast=(-q-sqrt(q^2-4*p*r))/2/p//in sq mm
//provide 8 mm dia bars
dia=8//in mm
s1=1500*0.785*dia^2/Ast//>3d=3x79=237 mm
s1=235//in mm
Ads=0.12/100*1000*D//distribution steel, in sq mm
//assume 6 mm dia bars
s2=1000*0.785*6^2/Ads//in mm
s2=235//round-off, in mm
Tbd=1.6//in MPa
Ld=dia*0.87*fy/4/Tbd//in mm
Ld=452//in mm
Tv=Wu*10^3/1500/d//in MPa
Ast=1500*0.785*8^2/235//in sq mm
pt=Ast/1500/d*100//in %
//for M15 and pt=0.26
Tc=0.35//in MPa
//as Tc>Tv, no shear reinforcement required
mprintf("Summary of design\nThickness of slab = %d mm\nCover = 15 mm\nMain steel = 8 mm dia @ %d mm c/c\nDevelopment length = %d mm\nDistribution steel = 6 mm dia @ %d mm c/c",D,s1,Ld,s2)
|
c4d282749d15e4c9a34cd2b3199782fee7247884 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2747/CH13/EX13.19/Ex13_19.sce | 6a0097e3e1bc428fbeb4d30eea8699ee495bdafd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 276 | sce | Ex13_19.sce | clc
clear
//Initialization of variables
t=90 //F
ts=67.2 //F
phi=0.3
per=0.8
//calculations
dep=t-ts
dt=dep*per
tf=t-dt
disp("from psychrometric charts,")
phi2=0.8
//results
printf("Dry bulb temperature = %.2f F",tf)
printf("\n percent humidity = %.2f",phi2)
|
d885b8da13d148daa0e48c48fecb75d7bcd7727b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3440/CH3/EX3.2/Ex3_2.sce | 2e5e757a830f13b918580ba2179af6cc5f7ac82f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 369 | sce | Ex3_2.sce | clc
T=300 //K
k=8.617*10^-5 //eV/K
q=1.6*10**-19 //C
NA=10^19 //cm^-3
ND=10^16//cm^-3
ni=9.65*10^9
epsilonx=8.854*10^-12 //F/m
Vbi=(k*T)*log(NA*ND/ni^2)
disp(Vbi,"the built in potential in V=")
W=sqrt(2*Vbi/q*ND)
disp(W,"W in cm =") // ans in textbook is wrong
epsilonm=((q*ND*W))
disp(epsilonm,"epsilonm in V/cm") // ans in textbook is wrong
|
b0ee2f852db6c2d885e076c6ffdcacad7f54ae50 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1964/CH5/EX5.35/ex5_35.sce | 66f08c0150f18566d46b668d5f5b7af38e3e9898 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 588 | sce | ex5_35.sce | //Chapter-5, Example 5.35, Page 198
//=============================================================================
clc
clear
//INPUT DATA
Q=250;//quality factor
fr=1.5*10^6;//resonant freq in hertz
//CALCULATIONS
Bw=(fr)/(Q);//bandwidth in Hz
hf1=fr+Bw;//half power freq 1
hf2=fr-Bw;//half power freq 2
mprintf("Thus bandwidth is %d hz\n",Bw);
mprintf("Thus value of half-power frequencies are %g hz and %g hz",hf1,hf2);
//=================================END OF PROGRAM======================================================================================================
|
215e4326f86ce997888de44a84ac5d15231f3433 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1445/CH3/EX3.9/Ex3_9.sce | 69339a32f739fe9f65d6dee58d847bbb55294dfa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,987 | sce | Ex3_9.sce | //CHAPTER 3- THREE-PHASE A.C. CIRCUITS
//Example 9
clc;
disp("CHAPTER 3");
disp("EXAMPLE 9");
//VARIABLE INITIALIZATION
v_ab=400; //in Volts
v_bc=400; //in Volts
v_ac=400; //in Volts
z_ab=100; //in Ohms
z_bc=100; //in Ohms
z_ac=100; //in Ohms
//solution (a)
//function to convert from polar to rectangular form
function [x,y]=pol2rect(mag,angle);
x=mag*cos(angle);
y=mag*sin(angle);
endfunction;
I_AB=v_ab/z_ab;
mag1=abs(real(I_AB));
ang1=0; //I_AB is represented as mag1∠ang1
I_BC=v_bc/z_bc;
ang2=-210*(%pi/180); //I_BC is represented as mag1∠ang2
I_AC=v_ac/z_ac;
ang3=210*(%pi/180); //I_AB is represented as mag1∠ang3
[x1,y1]=pol2rect(I_AB,ang1);
[x2,y2]=pol2rect(I_BC,ang2);
[x3,y3]=pol2rect(I_AC,ang3);
//let us consider values X1, Y1, X2, Y2, X3 and Y3 for the ease of calculation (these are not mentioned in the book)
X1=x1-x3;
Y1=y1-y3;
X2=x2-x1;
Y2=y2-y1;
X3=x3-x2;
Y3=y3-y2;
I_A=X1+(%i*Y1);
I_B=X2+(%i*Y2);
I_C=X3+(%i*Y3);
//function to convert from rectangular to polar form
function [z,angle]=rect2pol(x,y);
z=sqrt((x^2)+(y^2)); //z is impedance & the resultant of x and y
if(x==0 & y>0) then angle=90; //in case atan=∞
elseif(x==0 & y<0) then angle=-90 //in case atan=-∞
else
angle=atan(y/x)*(180/%pi); //to convert the angle from radians to degrees
end;
endfunction;
[mag4,ang4]=rect2pol(X1,Y1);
[mag5,ang5]=rect2pol(X2,Y2);
[mag6,ang6]=rect2pol(X3,Y3);
disp(sprintf("(a) The line current I_A is %f∠%f A",mag4,ang4));
disp(sprintf("The line current I_B is %f∠%f A",mag5,(180+ang5)));
disp(sprintf("The line current I_C is %f∠%f A",mag6,ang6));
//solution (b)
//since power is consumed only by 100Ω resistance in the arm AB
r1=100;
p1=(I_AB^2)*r1;
p2=160000;
r2=p2/p1;
disp(sprintf("(b) The star connected balanced resistance is %d Ω",r2));
//END
|
6f954c70dd293980cd67ca9bc1e15a39a02dceb9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2561/CH10/EX10.1/Ex10_1.sce | 05823284d5e1145bebb96c8bc83c3e953e323348 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 163 | sce | Ex10_1.sce | //Ex10_1
clc
x=72;//given value in Decimal
disp("Decimal number="+string(x))
str=dec2bin(x)
disp("Eqivalent Binary number="+string(str))//Binary value
|
165fad93466d5c3e337eae55f36e201c6b0a9955 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1172/CH8/EX8.4.1/Example8_4a.sce | 20127990da7fc0f803e5eb42a5772ca22f619dec | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 676 | sce | Example8_4a.sce | clc
//Given that
t1 = 1 // time period of satellite s1 in hours
t2 = 8 // time period of satellite s2 in hour
r1 = 1.2e4 // radius of orbit of satellite s1 in km
// sample problem 4a page No. 300
printf("\n\n\n # Problem 4a # \n")
printf("Standard formula r2/r1 = (t2/t1)^(2/3)")
r2 = r1 * (t2/t1)^(2/3) // calculation of radius of orbit of satellite s2 in km
v1 = 2 * %pi * r1 / t1 // calculation of speed of satellite s1 in km/h
v2 = 2 * %pi * r2 / t2 // calculation of speed of satellite s2 in km/h
del_v = v2 - v1 // calculation of relative speed of satellites in km/h
printf (" \n Relative speed of satellite s2 wrt satellite s1 is %e km/h.", del_v)
|
db7076d7c4691f4b9f4e49be8b3ee21c81378a07 | 717ddeb7e700373742c617a95e25a2376565112c | /3460/CH8/EX8.4/ex8_4.sce | 28250f22198856e7037199b30d03576dbd2b63f2 | [] | 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 | 294 | sce | ex8_4.sce | clc;
clear all;
C=5.1*1e-12;//given capacitance
fr=10*1e6;//given resonant frequency
L=2*1e-6;//given L
//part a
Lt=1/(4*%pi*%pi*fr*fr*C);//new inductance
disp(Lt,'new inductancetance for fr=10mhz is=');
//part b
L2=Lt-L;//required Ls
disp(L2,'required series inductance is');
|
429403dee796e21965e38bbb7762b8d0207b3b4d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2882/CH1/EX1.8/Ex1_8.sce | 4a427b073e6b159439cd014c42f7115fa2effd67 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 366 | sce | Ex1_8.sce | //Tested on Windows 7 Ultimate 32-bit
//Chapter 1 Introduction to Electronics Pg no. 33
//Solved Problem 1
clear;
clc;
//Given Data
wattage=100;//wattage in watts
voltage=220;//voltage in volts
//Solution
I=wattage/voltage;//current in amperes
printf("I=%.3f Amp.",I);//Displaying upto 3 places of decimal
//Error due to decimal approximations
|
76d6f52402ec7cba3473d39e76ee3aee7226ad3d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1955/CH3/EX3.14/example14.sce | 6fe122127a61b47dbf90c5f3e93e05eb6508b9d2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 958 | sce | example14.sce | clc
clear
//input data
dH=0.14//Rise in static pressure of the air by fan in m of water
N=650//The running speed of the fan in rpm
P=85*0.735//Power consumed by the fan in kW
H1=0.75//The static pressure of the air at the fan in m of Hg
T1=298//The static pressure at the fan of air in K
m=260//Mass flow rate of air in kg/min
dHg=13590//Density of mercury in kg/m^3
dw=1000//Density of water in kg/m^3
g=9.81//Acceleration due to gravity in m/s^2
R=287//The universal gas constant in J/kg.K
//calculations
P1=dHg*g*H1*10^-3//The inlet static pressure in kPa
dP=dw*g*dH*10^-3//The total change in static pressures at inlet and outlet in kPa
P2=P1+dP//The exit static pressure in kPa
d1=(P1*10^3)/(R*T1)//The inlet density of the air in kg/m^3
Q=m/d1//The volume flow rate of air in fan in m^3/min
//output
printf('(a)The exit static pressure of air in the fan is %3.2f kPa\n(b)The volume flow rate of the air is %3.1f m^3/min',P2,Q)
|
904c90d18d8ab187ad2c2fc6e5cb597bfea160f8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3843/CH10/EX10.3/Ex10_3.sce | 666e006a36d6d9209cdf0bee4625390faeb3ecc8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 421 | sce | Ex10_3.sce | // Example 10_3
clc;funcprot(0);
// Given data
T=200;// °C
P=1554;// kPa
R=0.462;// kJ/kg.K
// Calculation
v_g=(R*(T+273))/P;// m^3/kg
rho=1000;// kg/m^3
v_f=0.001;// m^3/kg
dPbydT=(1906-1254)/(210-190);// kN/m^2.K
h_fg=(T+273)*(v_g-v_f)*dPbydT;// kJ/kg
h_fga=1941;// kJ/kg (From steam tables)
error=((h_fg-h_fga)/h_fga)*100;// The percentage error
printf("\nThe percent error=%2.1f percentage",error);
|
bd35f218512f96ee826f802341f848821933dfa3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3446/CH9/EX9.9/Ex9_9.sce | ee9ef64909ee8e499ff3b7ff0a464c849de27996 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 690 | sce | Ex9_9.sce | // Exa 9.9
// To calculate-
// a) The total bandwidth required,
// b) The bandwidth efficiency,
// c) The Eb/No required, and
// d) No of carried bits per symbol.
clc;
clear all;
M=8; //number of different signal elements
Fc=250; //carrier frequency in kHz
DelF=25; //kHz
Pe=10^-6;//probability of error
//solution
TotalBW=2*M*DelF;
nb=2*log2(M)/(M+3);
//Pe=7*Q(z) and z=approx(5.08)
z=5.08;
Eb_No=(z)^2/log2(M);
bits_sym=log2(M);
printf('Total bandwidth required is %d kHz \n ',TotalBW);
printf('The bandwidth efficiency is %.4f \n ',nb);
printf('The required Eb/No is %.3f dB \n ',10*log10(Eb_No));
printf('Carried bits per symbol are %d \n ',bits_sym);
|
5f19f509096c077553695d02dc3a87ba9701e2ad | 449d555969bfd7befe906877abab098c6e63a0e8 | /2840/CH11/EX11.10/ex11_10.sce | af614780cda253ac97fd306b331d06db7a4f19f7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 318 | sce | ex11_10.sce | clc;
clear all;
P=8.9*1e-3;//resistivity of doped sillicon
Rh=3.6*1e-4;//hall coefficient
e=1.6*1e-19;//charge of electron
ne=3*%pi/(8*Rh*e);//carrier density of electron
disp('m^-3',ne,'carrier density of electron is=');
ue=1/(P*ne*e);//mobility of electon
disp('m^2*V^-1*s^-1',ue,'mobility of electon is=')
|
60096b2719d7d509c267d165681cbb1f54e4eefc | 449d555969bfd7befe906877abab098c6e63a0e8 | /1823/CH4/EX4.8/SolEx4_8.sce | a724dcd83d0b4a4f88c56d3e473908a71c999aba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | SolEx4_8.sce | //Determine appropriate values of RS and RD.
//Solved Example Ex4.8 page no 120
clear
clc
Rs=750 //kΩ
printf("\n Rs = %0.2f K ohm",Rs)
Vdd=24 //V
Vdsq=15 //V
Idq=0.002 //mA
Rd=((Vdd-Vdsq-(Idq*Rs))/Idq)/1000
printf("\n Rd = %0.2f K ohm",Rd)
|
3a498060546c090e639b75191579ff1ddd36b749 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2409/CH2/EX2.11/Ex2_11.sce | 37a8c5a0dc8e325191bb0acc5257648db7bc2789 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 271 | sce | Ex2_11.sce |
//Variable Declaration
JDref=2415020 //Reference Julian days
JC=36525
JD=2451897.0417 //Julian days with reference from Example 2.10
//Calculation
T=(JD-JDref)/JC //Time in julian Centuries
//Result
printf("The time for given date is : %.8f Julian Centuries",T)
|
28d00822c18478ac3806e9d660ae7276f03b48c9 | ceac2c6b2806b34953849b33ded7f72540b9a075 | /ro05_tp02/exercice3.sci | d6140cc52daee0bf1197df9b1843d5dcaeddaa01 | [] | no_license | ahars/ro05 | ff9a5c97bd5501b01e5b4f5a40e0a2761ed92e0a | c326c09e8388cd32506c90da44e93ab7cd8b43bc | refs/heads/master | 2021-01-01T15:59:37.716364 | 2014-01-23T13:31:28 | 2014-01-23T13:31:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 360 | sci | exercice3.sci | function[n] = cauchy(n)
i = 1:n; // tail de l'échantillon
u = rand(i, 'uniform');
x = tan(%i .* (u - 0.5)); // échantillon loi de Cauchy
S = cumsum(x);
y = S ./ i; // vecteur de composants Si / i
xbasc();
plot2d(i', y', 2); // ligne polygonale de sommets (i, Si / i) en bleu
xsegs([0 n], [0 0], 5); // trace en rouge l'axe des abscisses.
endfunction
|
d0e6b0614e1dc909b30f066993a5e61b79435448 | 676ffceabdfe022b6381807def2ea401302430ac | /solvers/CompressibleFlowSolver/Tests/CylinderSubsonic_WeakDG_Implicit.tst | c231da0599e824d4cf20d832f47274eb2d414a44 | [
"MIT"
] | permissive | mathLab/ITHACA-SEM | 3adf7a49567040398d758f4ee258276fee80065e | 065a269e3f18f2fc9d9f4abd9d47abba14d0933b | refs/heads/master | 2022-07-06T23:42:51.869689 | 2022-06-21T13:27:18 | 2022-06-21T13:27:18 | 136,485,665 | 10 | 5 | MIT | 2019-05-15T08:31:40 | 2018-06-07T14:01:54 | Makefile | UTF-8 | Scilab | false | false | 1,056 | tst | CylinderSubsonic_WeakDG_Implicit.tst | <?xml version="1.0" encoding="utf-8"?>
<test>
<description>Euler, Subsonic Cylinder, WeakDG advection, Implicit solver</description>
<executable>CompressibleFlowSolver</executable>
<parameters>CylinderSubsonic_WeakDG_Implicit.xml</parameters>
<files>
<file description="Session File">CylinderSubsonic_WeakDG_Implicit.xml</file>
</files>
<metrics>
<metric type="L2" id="1">
<value variable="rho" tolerance="1e-12">10.7744</value>
<value variable="rhou" tolerance="1e-12">1.09375</value>
<value variable="rhov" tolerance="1e-7">0.0768964</value>
<value variable="E" tolerance="1e-12">2.228e+06</value>
</metric>
<metric type="Linf" id="2">
<value variable="rho" tolerance="1e-12">1.22501</value>
<value variable="rhou" tolerance="2e-6">0.246672</value>
<value variable="rhov" tolerance="2e-6">0.134329</value>
<value variable="E" tolerance="1e-12">253314</value>
</metric>
</metrics>
</test>
|
ce3ea3fa796ed29f96bc674c36e5cc5f0e3b114f | 449d555969bfd7befe906877abab098c6e63a0e8 | /788/CH2/EX2.15.b/2_15_soln.sce | 0e5d8597603f94675a905e4b1b1f21de2a0d7091 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 392 | sce | 2_15_soln.sce | clc;
pathname=get_absolute_file_path('2_15_soln.sce')
filename=pathname+filesep()+'2_15_data.sci'
exec(filename)
// Solution:
// specific Weight of water,
gamma1=9800; //N/m^3
// we know pressure,
// p=(specific weight of liquid * liquid column height)
p=(gamma1*H); //Pa
pK=p/1000; //kPa
// Results:
printf("\n Results: ")
printf("\n The pressure on skin diver is %.0f kPa.",pK)
|
197c0690ef71fc26cd81e6cb952f13f4b8630ac5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2165/CH9/EX9.12/9_12.sce | d2f22e85c8239290dc2fbecd8bc052473340c0eb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 239 | sce | 9_12.sce | clc
//initialisation of variables
p=1/10//in
v1=3/4//in
v2=3/5//in
m=1*1/2//in
l=4//cranks
a1=1.25//in
a2=0.7//in
//CALCULATIONS
C=a1/a2//in
A=l*a1/a2//in
S=(A/2-a1)//in
//RESULTS
printf('the travel of the value =% f in',S)
|
7058eabd432827302177069d58b13731efeab8c4 | 44dccf35d0d05580e3fc20af3b7697b3c638d82d | /testcases/detectHarrisFeatures/9.sce | 1ed9b33d382ad0218f2a0afd6428ab2283fd71a1 | [] | no_license | surirohit/Scilab-Image-Processing-Toolbox-Unclean | 213caacd69badd81ec0f99a800f44a2cf8f79b5d | 3a8057f8a8d05e7efd83704a0e732bdda23fa3a0 | refs/heads/master | 2020-04-09T07:31:20.042501 | 2016-06-28T09:33:57 | 2016-06-28T09:33:57 | 60,406,367 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 117 | sce | 9.sce | i = imread('test3.jpg');
corners = detectHarrisFeatures(i,'SensitivityFactor',0.08,'MinQuality',0.5);
disp(corners);
|
f3f9f5df8a963f100d78005f7ccf992a050006ec | 449d555969bfd7befe906877abab098c6e63a0e8 | /3808/CH7/EX7.2/Ex7_2.sce | 75436d2f3cd918dcaafa85551675ddd7106f3416 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 447 | sce | Ex7_2.sce | //Chapter 07: Discrete Probability
clc;
clear;
//For sum to be 7 out of the total 36 equally likely possible outcomes there are 6 outcomes
//(1,6) (2,5) (3,4) (4,3) (5,2) (6,1)
total_outcomes=36 //total no of outcomes
seven_sum_outcome=6 //no of outcomes where sum of numbers appearing on dice is 7
prob_seven=seven_sum_outcome/total_outcomes
disp('Probability that 7 comes when 2 dice are rolled is')
disp(prob_seven)
|
8576b76ec11401304cb4ce5a6efd09082cc44362 | d0efa9f4759b46e22ac9687b2871bb3464002002 | /example8.sce | 52f48c3bec1230ad9694e2eaf3511d15ccb2f7a1 | [] | no_license | Adithya-Shetty100/Scilab--Linear-Algebra | c0198c7dd3a4f599b88904b5d7554589aaa5e995 | ed63e672f56b8b4f1bff7f33e50352db3e8568fe | refs/heads/main | 2023-04-19T12:41:56.959465 | 2021-05-11T08:46:41 | 2021-05-11T08:46:41 | 366,313,853 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 209 | sce | example8.sce | clear;
close;
clc;
A=[1 -1;1 1;1 2];
disp('A=',A);
b=[1;1;3];
disp('b=',b);
x=(A'*A)\(A'*b);
disp('x=',x);
C=x(1,1);
D=x(2,1);
disp('C=',C);
disp('D=',D);
disp('The line of best fit is b=C+Dt');
|
56912ffff50536bd9809cf32c5fcae2120335fbe | 449d555969bfd7befe906877abab098c6e63a0e8 | /2258/CH5/EX5.11/5_11.sce | ab3a4f245bdd11d9be8147c57eb2456337dde86e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 212 | sce | 5_11.sce | clc();
clear;
// To calculate the critical temperature
M1=199.5; //isotopic mass
M2=203.4;
Tc1=4.185; //1st critical temp in K
Tc2=Tc1*sqrt(M1/M2);
printf("the critical temperature is %f K",Tc2);
|
dd8812f4a3033f0f9a9f6aff958913e15c11385f | 449d555969bfd7befe906877abab098c6e63a0e8 | /764/CH11/EX11.3.b/solution11_3.sce | fe226cde5c90e50a9f3b360018351f095c242a67 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 2,255 | sce | solution11_3.sce |
//Function to calculate the roots of a cubic equation
function[r] = cubic(a, b, c)
//Use Gerolamo Cardano's solution for cubic equations with real roots
//roots function can also be used
//Use auxiliary variables p and q
p =((3 * b)-(a^2))/3
q =(c)+((2 * (a^3))/27)-((a * b)/3)
//Calculate discrimant Di for the cubic equation
Di = ((p/2)^2)+((q/3)^3)
//Calculate values of cos(Fi) and Fi
if(p<0)
//For |p|
p = p * -1
end
Fi = acos((-1 * q)/(2 * (sqrt((p/3)^3))))
Fi1 = Fi/3
Fi2 = (Fi + (4 *%pi))/3
Fi3 = (Fi + (2 *%pi))/3
//x,y and z are the three real distinct roots of the cubic equation
x = (-1 * (a/3)) + (2 * cos(Fi1) * sqrt(p/3))
y = (-1 * (a/3)) + (2 * cos(Fi2) * sqrt(p/3))
z = (-1 * (a/3)) + (2 * cos(Fi3) * sqrt(p/3))
printf('\nx,y and z are the three real roots of this cubic equation\n')
printf('x = %f\ny = %f\nz = %f\n',x,y,z)
//d should be maximum for cost and area of friction lining to be minimum
//Assigning proper value to d
if (x > y) then
e = x
if (e > z) then
r = e
else
r = z
end
else
e = y
if (e > z) then
r = e
else
r = z
end
end
endfunction
//Obtain path of solution file
path = get_absolute_file_path('solution11_3.sce')
//Obtain path of data file
datapath = path + filesep() + 'data11_3.sci'
//Clear all
clc
//Execute the data file
exec(datapath)
//Consider torque transmitted by one pair of contacting surfaces
Mt = Mt / 2
printf('\nApplying uniform-wear theory\n')
//Evaluate the inner diameter of the friction disk d (mm)
printf('\nInner diameter of the friction disk is d (mm)\n')
printf('\nUsing the torque transmitting capacity formula:\n')
printf('\nMf = (pi * mu * Pa * d)*((D^2)-(d^2)))/8\n')
printf('we get the following cubic equation in d\n')
//Representing cubic equation in the form x3 + ax2 + bx + c = 0 (x=d)
a = 0
b = -1 * (D^2)
c = (8 * Mt * 1000)/(%pi * mu * Pa)
printf('\n(d^3) + (%fd) + (%f)= 0\n',b,c)
//Call the declared function
d = cubic(a, b, c)
//Evaluate spring force P (N)
P = ((%pi * Pa * d)*(D - d))/2
//Print results
printf('\nInner diameter of the friction disk(d)= %f(mm)\n',d)
printf('\nSpring force for keeping the clutch engaged(P)= %f(N)\n',P) |
64f5d35ba3ea304af19996d62d3a5478549e55da | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4/examples/link-examples/ext13c.sce | 47700f723daed1956e984ce13c34cf97025b5e99 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 338 | sce | ext13c.sce | //Copyright INRIA
//sharing common data
files=G_make(['/tmp/ext13c.o'],'ext13c.dll');
link(files,['ext13ic','ext13oc'],'C'); //Must be linked together
a=1:10;
n=10;a=1:10;
call('ext13ic',n,1,'i',a,2,'r','out',2); //loads b with a
c=call('ext13oc',n,1,'i','out',[1,10],2,'r'); //loads c with b
if norm(c-a) > %eps then pause,end
|
b26bd25eb3fb4c990edb317dd43d114e40353112 | 1b969fbb81566edd3ef2887c98b61d98b380afd4 | /Rez/bivariate-lcmsr-post_mi/bfas_co_hrz_ind/~BivLCM-SR-bfas_co_hrz_ind-PLin-VLin.tst | 89b946ea408313b566b943e23f337e4c83c99191 | [] | no_license | psdlab/life-in-time-values-and-personality | 35fbf5bbe4edd54b429a934caf289fbb0edfefee | 7f6f8e9a6c24f29faa02ee9baffbe8ae556e227e | refs/heads/master | 2020-03-24T22:08:27.964205 | 2019-03-04T17:03:26 | 2019-03-04T17:03:26 | 143,070,821 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 11,974 | tst | ~BivLCM-SR-bfas_co_hrz_ind-PLin-VLin.tst |
THE OPTIMIZATION ALGORITHM HAS CHANGED TO THE EM ALGORITHM.
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 0.284770D+00
2 -0.369080D-02 0.227838D-02
3 0.244550D-01 0.232960D-03 0.215975D+00
4 0.910765D-03 0.174106D-03 -0.151360D-02 0.183820D-02
5 0.991548D-03 -0.154771D-03 -0.174586D-03 -0.165104D-03 0.319149D-02
6 -0.726687D-04 -0.611736D-04 0.189253D-03 -0.414567D-04 0.850608D-04
7 0.167675D-02 -0.716535D-04 0.833817D-03 -0.491210D-04 0.238074D-03
8 -0.240475D-03 0.855644D-04 -0.232679D-03 -0.483678D-06 0.331327D-04
9 -0.157011D+00 0.983733D-02 -0.462568D-01 0.258117D-02 0.716089D-01
10 -0.394571D-01 -0.987950D-02 0.284100D-01 -0.834195D-02 0.148007D+00
11 -0.398864D-01 -0.108460D-01 0.385973D-01 -0.161492D-01 -0.536659D-01
12 0.400197D+00 -0.231569D-01 -0.406789D+00 0.468647D-01 -0.232452D-01
13 0.542674D-01 -0.102676D-01 0.223784D-01 0.228816D-03 0.176188D-01
14 -0.781739D-01 0.212216D-01 -0.446439D+00 0.392101D-02 0.277814D-01
15 -0.156252D+01 -0.276406D-01 0.566307D-01 -0.471616D-01 -0.106681D+00
16 -0.352959D-01 -0.686802D-03 -0.748201D-02 0.188107D-02 -0.753144D-03
17 0.954149D-02 0.135226D-03 0.294264D-02 0.470496D-03 -0.449580D-03
18 0.146027D+00 -0.249561D-01 -0.191958D+00 -0.271624D-01 -0.997418D-03
19 0.500811D-01 0.836195D-03 0.348468D-01 0.114709D-02 -0.214203D-01
20 0.290234D-01 -0.156865D-01 -0.544628D+00 -0.239090D-01 -0.155341D-01
21 -0.693236D-01 0.181075D-02 -0.552495D-01 0.140363D-02 0.200155D-01
22 0.174575D-02 0.339154D-03 0.339636D-02 0.327185D-03 0.618357D-04
23 -0.544920D-02 0.558485D-03 -0.121371D-03 -0.490909D-02 -0.100688D-02
24 0.820514D-03 0.182814D-03 -0.131936D-02 0.102063D-03 0.187985D-03
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 0.704396D-03
7 0.578005D-03 0.245143D-02
8 0.639763D-04 -0.859763D-04 0.235342D-02
9 -0.276513D-02 0.121183D-01 0.222954D-01 0.287954D+02
10 0.907670D-02 0.205656D-01 0.124386D-02 0.185591D+01 0.168567D+02
11 0.224028D-01 0.352973D-01 0.358854D-01 0.400504D+00 -0.252165D+01
12 -0.338623D-01 0.907447D-02 0.665657D-01 0.482890D+01 -0.598304D+00
13 0.438219D-01 0.745585D-01 -0.180543D-01 -0.123435D+01 0.321543D+01
14 -0.886569D-02 0.991812D-02 0.170609D+00 0.221689D+01 0.300290D+01
15 0.310397D-02 0.292809D-01 -0.193964D-01 -0.227929D+00 -0.765885D+01
16 0.102796D-02 0.130594D-02 -0.213077D-02 0.469012D+00 -0.453616D-01
17 -0.266428D-03 -0.470747D-03 0.180956D-03 -0.103967D+00 -0.444775D-01
18 -0.396128D-01 -0.781016D-01 -0.222091D-02 0.132121D+01 -0.134512D+01
19 -0.144318D-02 0.111973D-01 -0.319188D-02 -0.881027D+00 -0.160716D+01
20 -0.130807D-01 -0.401790D-01 -0.111368D+00 0.224304D+00 0.208891D+00
21 0.895724D-03 -0.102740D-01 0.144233D-02 0.109372D+01 0.142192D+01
22 -0.893147D-05 -0.258949D-03 0.103462D-03 -0.142021D-01 0.298944D-02
23 -0.682454D-03 -0.337267D-03 0.118933D-02 -0.232208D-01 -0.359312D-01
24 0.215683D-03 0.911131D-04 -0.392245D-03 -0.228737D-02 -0.405070D-02
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 0.284762D+02
12 0.188092D+01 0.122856D+03
13 0.386815D+00 -0.177225D+00 0.991005D+01
14 0.318616D+01 0.102953D+02 0.581213D-01 0.436681D+02
15 -0.744726D+00 0.558334D+01 -0.950559D+00 -0.301393D+01 0.197539D+03
16 0.178779D+00 0.205098D-01 0.717761D-01 -0.330022D+00 0.144188D+01
17 -0.835460D-02 -0.256450D-01 -0.276934D-01 0.158541D-01 -0.101534D+01
18 -0.423119D+01 0.329681D+01 -0.477808D+01 -0.178897D+01 0.103901D+02
19 0.223611D+01 0.182088D+00 0.538229D-01 -0.121855D+01 0.202076D+01
20 0.202564D+01 -0.242088D+02 -0.707512D+00 -0.160885D+02 0.793236D+01
21 -0.176353D+01 0.380514D+00 -0.156781D+00 0.117068D+01 -0.200688D+01
22 -0.393122D-01 -0.243981D-01 -0.822828D-02 -0.332106D-02 -0.297461D-01
23 0.276137D+00 0.465272D+00 -0.530413D-01 0.183223D+00 0.990725D-01
24 -0.870117D-01 -0.420059D-01 0.469433D-02 -0.575096D-01 -0.226286D-01
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 0.332804D+00
17 -0.245760D-01 0.125378D-01
18 0.717541D-02 -0.364001D-01 0.100185D+03
19 0.301077D-01 0.185460D-02 -0.476698D+00 0.280834D+01
20 0.148680D+00 -0.545857D-01 0.149623D+02 0.192384D+00 0.134699D+03
21 0.450223D-01 -0.190532D-02 0.229637D+01 -0.270709D+01 0.224711D+00
22 0.214359D-03 0.876983D-03 -0.489788D+00 -0.513335D-02 -0.128511D+00
23 0.939370D-03 -0.231637D-03 0.198759D+00 0.264013D-01 0.158406D+01
24 0.100774D-02 0.169844D-03 -0.107678D+00 -0.651802D-02 -0.650785D+00
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 0.330664D+01
22 -0.241383D-01 0.572791D-02
23 0.234585D-01 -0.421923D-02 0.240902D+00
24 -0.141642D-02 0.159257D-02 -0.206755D-01 0.804123D-02
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 1.000
2 -0.145 1.000
3 0.099 0.011 1.000
4 0.040 0.085 -0.076 1.000
5 0.033 -0.057 -0.007 -0.068 1.000
6 -0.005 -0.048 0.015 -0.036 0.057
7 0.063 -0.030 0.036 -0.023 0.085
8 -0.009 0.037 -0.010 0.000 0.012
9 -0.055 0.038 -0.019 0.011 0.236
10 -0.018 -0.050 0.015 -0.047 0.638
11 -0.014 -0.043 0.016 -0.071 -0.178
12 0.068 -0.044 -0.079 0.099 -0.037
13 0.032 -0.068 0.015 0.002 0.099
14 -0.022 0.067 -0.145 0.014 0.074
15 -0.208 -0.041 0.009 -0.078 -0.134
16 -0.115 -0.025 -0.028 0.076 -0.023
17 0.160 0.025 0.057 0.098 -0.071
18 0.027 -0.052 -0.041 -0.063 -0.002
19 0.056 0.010 0.045 0.016 -0.226
20 0.005 -0.028 -0.101 -0.048 -0.024
21 -0.071 0.021 -0.065 0.018 0.195
22 0.043 0.094 0.097 0.101 0.014
23 -0.021 0.024 -0.001 -0.233 -0.036
24 0.017 0.043 -0.032 0.027 0.037
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 1.000
7 0.440 1.000
8 0.050 -0.036 1.000
9 -0.019 0.046 0.086 1.000
10 0.083 0.101 0.006 0.084 1.000
11 0.158 0.134 0.139 0.014 -0.115
12 -0.115 0.017 0.124 0.081 -0.013
13 0.524 0.478 -0.118 -0.073 0.249
14 -0.051 0.030 0.532 0.063 0.111
15 0.008 0.042 -0.028 -0.003 -0.133
16 0.067 0.046 -0.076 0.152 -0.019
17 -0.090 -0.085 0.033 -0.173 -0.097
18 -0.149 -0.158 -0.005 0.025 -0.033
19 -0.032 0.135 -0.039 -0.098 -0.234
20 -0.042 -0.070 -0.198 0.004 0.004
21 0.019 -0.114 0.016 0.112 0.190
22 -0.004 -0.069 0.028 -0.035 0.010
23 -0.052 -0.014 0.050 -0.009 -0.018
24 0.091 0.021 -0.090 -0.005 -0.011
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 1.000
12 0.032 1.000
13 0.023 -0.005 1.000
14 0.090 0.141 0.003 1.000
15 -0.010 0.036 -0.021 -0.032 1.000
16 0.058 0.003 0.040 -0.087 0.178
17 -0.014 -0.021 -0.079 0.021 -0.645
18 -0.079 0.030 -0.152 -0.027 0.074
19 0.250 0.010 0.010 -0.110 0.086
20 0.033 -0.188 -0.019 -0.210 0.049
21 -0.182 0.019 -0.027 0.097 -0.079
22 -0.097 -0.029 -0.035 -0.007 -0.028
23 0.105 0.086 -0.034 0.056 0.014
24 -0.182 -0.042 0.017 -0.097 -0.018
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 1.000
17 -0.380 1.000
18 0.001 -0.032 1.000
19 0.031 0.010 -0.028 1.000
20 0.022 -0.042 0.129 0.010 1.000
21 0.043 -0.009 0.126 -0.888 0.011
22 0.005 0.103 -0.647 -0.040 -0.146
23 0.003 -0.004 0.040 0.032 0.278
24 0.019 0.017 -0.120 -0.043 -0.625
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 1.000
22 -0.175 1.000
23 0.026 -0.114 1.000
24 -0.009 0.235 -0.470 1.000
|
0e521a450c8cbf707adf2fd525d1962256f8e0dc | 449d555969bfd7befe906877abab098c6e63a0e8 | /1286/CH3/EX3.16/3_16.sce | 41454626f13b9510cf9f3e6e3113e72346dfdd97 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 165 | sce | 3_16.sce | clc
//initialisations
po=101396.16//N/m^2
vo=22.4//l
t=273
m=4*1000//gm
//calculations
R=po*vo/t
c=R/m
//results
printf(' pressure of the gas= % 1f j',c)
|
a398ef8505a0b637419de88d39b0a05b7580ebe1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3308/CH25/EX25.2/Ex25_2.sce | d2168cb101de08a599c6a9561120062f98065ea1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 735 | sce | Ex25_2.sce | clc
// Given that
D=10//in inch Grinding Wheel diameter
N=4000//in rpm
w=1//in inch
d=0.002//in inch depth of cut
v=60//inch/min feed rate of the workpiece
// Sample Problem on page no. 715
printf("\n # force in Surface Grinding # \n")
Mrr=d*w*v//material removal rate
//for low carbon steel , the specific energy is 15hp min/in3
u=15//in hp min/in3
P=u*Mrr*396000//in lb/min
Fc = P/(2*3.14*N*(D/2))
printf("\n\n Cutting Force = %f lb",Fc)
// Answer in the book is approximated to 5.7 lb
// from the experimental data in book thrust force is taken as 30% higher than cutting force
Fn = Fc+(30/100)*Fc
printf("\n\n Thrust Force = %f lb",Fn)
// Answer in the book is approximated to 7.4 lb
|
e8c609a5760476921ae643cc4cd26d7a41eae0bd | 66106821c3fd692db68c20ab2934f0ce400c0890 | /test/disassembler/ldpd.instr.tst | 0ebae28423fdb5cbc387464e3e3b5fa0fb703206 | [] | no_license | aurelf/avrora | 491023f63005b5b61e0a0d088b2f07e152f3a154 | c270f2598c4a340981ac4a53e7bd6813e6384546 | refs/heads/master | 2021-01-19T05:39:01.927906 | 2008-01-27T22:03:56 | 2008-01-27T22:03:56 | 4,779,104 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,514 | tst | ldpd.instr.tst | ; @Harness: disassembler
; @Result: PASS
section .text size=0x00000046 vma=0x00000000 lma=0x00000000 offset=0x00000034 ;2**0
section .data size=0x00000000 vma=0x00000000 lma=0x00000000 offset=0x0000007a ;2**0
start .text:
label 0x00000000 ".text":
0x0: 0x0e 0x90 ld r0, -X
0x2: 0x1e 0x90 ld r1, -X
0x4: 0x2e 0x90 ld r2, -X
0x6: 0x3e 0x90 ld r3, -X
0x8: 0x4e 0x90 ld r4, -X
0xa: 0x5e 0x90 ld r5, -X
0xc: 0x6e 0x90 ld r6, -X
0xe: 0x7e 0x90 ld r7, -X
0x10: 0x8e 0x90 ld r8, -X
0x12: 0x9e 0x90 ld r9, -X
0x14: 0xae 0x90 ld r10, -X
0x16: 0xbe 0x90 ld r11, -X
0x18: 0xce 0x90 ld r12, -X
0x1a: 0xde 0x90 ld r13, -X
0x1c: 0xee 0x90 ld r14, -X
0x1e: 0xfe 0x90 ld r15, -X
0x20: 0x0e 0x91 ld r16, -X
0x22: 0x1e 0x91 ld r17, -X
0x24: 0x2e 0x91 ld r18, -X
0x26: 0x3e 0x91 ld r19, -X
0x28: 0x4e 0x91 ld r20, -X
0x2a: 0x5e 0x91 ld r21, -X
0x2c: 0x6e 0x91 ld r22, -X
0x2e: 0x7e 0x91 ld r23, -X
0x30: 0x8e 0x91 ld r24, -X
0x32: 0x9e 0x91 ld r25, -X
0x34: 0xae 0x91 ld r26, -X ; undefined
0x36: 0xbe 0x91 ld r27, -X ; undefined
0x38: 0xce 0x91 ld r28, -X
0x3a: 0xde 0x91 ld r29, -X
0x3c: 0xee 0x91 ld r30, -X
0x3e: 0xfe 0x91 ld r31, -X
0x40: 0x0e 0x90 ld r0, -X
0x42: 0x0a 0x90 ld r0, -Y
0x44: 0x02 0x90 ld r0, -Z
start .data:
|
28270210b26f58d64c156b9176016b613e037ed8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /62/CH5/EX5.44/ex_5_44.sce | 2f16d922ee60b1da65afda8a3cc0fe3a356dcecb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 601 | sce | ex_5_44.sce | clear;
clc;
close;
disp("system given is dy(t)/dt+2y(t)=x(t)+dx(t)/dt");
disp("taking fourier transform on both sides we get");
disp("H(w)=Y(w)/X(w)=1-(1/(2+%j*w))");
w=-10:0.1:10;
dw=.1;
Hw=1-ones(1,length(w))./(2+%i*w);
t=0:0.1:10;
d=gca()
plot(w,Hw);
poly1=d.children.children;
poly1.thickness=3;
poly1.foreground=2;
xtitle('X(w)','w')
for i=1:length(t)
if t(i)==0 then
delta(i)=1;
else
delta(i)=0;
end
end
h=delta'-exp(-2*t);
figure;
d=gca()
plot(t,(h));
poly1=d.children.children;
poly1.thickness=3;
poly1.foreground=2;
xtitle('h(t)','t') |
affa127ccc4852df65d2aec543a58355e36937ff | 449d555969bfd7befe906877abab098c6e63a0e8 | /1226/CH17/EX17.24/EX17_24.sce | 58a01b0d942ef19756114a16baa36462f7ede018 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,265 | sce | EX17_24.sce | clc;funcprot(0);//EXAMPLE 17.24
// Initialisation of Variables
v1=0.216;.....................//Gas consumption in m^3/min
pw=75;........................//Pressure of gas in mm of water
t1=290;......................//Temperature of gas in K
ac=2.84;....................//Air consumption in kg/min
br=745;......................//Barometer reading in m of Hg
D=0.25;.....................//Engine bore in m
L=0.475;......................//Engine stroke in m
N=240;........................//Engine rpm
R=287;......................//Gas constant for air in J/kgK
//Calculations
p1=br+(pw/13.6);...................//Pressure of gas in mm of mercury
p2=760;t2=273;.....................//NTP conditions in mm of Hg and Kelvin
v2=(p1*v1*t2)/(t1*p2);...............//Volume of gas used at NTP in m^3
gs=v2/(N/2);.........................//Gas used per stroke in m^3
v=(ac*R*t2)/(1.0132*10^5);...........//Volume occupied by air at NTP in m^3/min
aps=v/(N/2);...........................//Air used per stroke
Va=gs+aps;.....................//Actual volume of mixture in m^3 drawn per stroke at NTP
Vs=(%pi/4)*D*D*L;...............//Swept volume in mm^3
etaV=(Va/Vs);...................//Volumetric efficiency
disp(etaV*100,"Volumetric efficiency (in %):")
|
99512f2895b258073e2e6f2729f72303d0e9f40f | 449d555969bfd7befe906877abab098c6e63a0e8 | /243/CH3/EX3.20/3_20.sce | 6496ad36d1ecd39e1eb5884eb902d7441fe4bd1a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 338 | sce | 3_20.sce | //Example No. 3_20
//Floating Point Arithmetic
//Pg No. 56
clear ;close ;clc ;
fx = 0.875000 ;
Ex = -18 ;
fy = 0.200000 ;
Ey = 95 ;
fz = fx/fy
Ez = Ex - Ey
mprintf('\n fz = %f \n Ez = %i \n z = %f E%i \n',fz,Ez,fz,Ez)
if fz > 1 then
fz = fz/10
Ez = Ez + 1
mprintf('\n z = %f E%i (normalised) \n',fz,Ez)
end |
ff98d9817a9e28f87cc7c7abfe9b592731d896f4 | 218307820851c017df48930a4607586b000dc01d | /Project7-8/PointerTest/PointerTestVME.tst | 84d1e47384f3d676219e4bfe090a60021d01a1d1 | [] | no_license | catiecook/nand2tetris | 8e51a09488b46ba1b8fd996e32ad45004bb47037 | 4d70f9683ab51283317ff194eece12e52a7901f8 | refs/heads/master | 2021-01-10T13:30:52.798712 | 2016-05-05T15:34:11 | 2016-05-05T15:34:11 | 53,958,856 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 243 | tst | PointerTestVME.tst | //PointerTestVME.tst
load PointerTest.asm,
output-file PointerTest.out,
compare-to PointerTest.cmp,
output-list RAM[256]%D1.6.1 RAM[3]%D1.6.1
RAM[4]%D1.6.1 RAM[3032]%D1.6.1 RAM[3046]%D1.6.1;
set RAM[0] 256,
repeat 15 {
vmstep;
}
output;
|
bdf5d107a9dbd6d74cd8f760d89eaac897787e3f | f04d3d47f893de08cd99a31b4870112915b80d5b | /Datasets/segment/data1.tst | 963d1ba9ebd52a4e6452ab2de0cb95719e2f965a | [] | no_license | MesumRaza/MyWorkInPython | f5364b8514943e44c7200123653da9f4551251b1 | bd8c9b3ca2fb02ae6d2b626054fa3cd32c28b330 | refs/heads/master | 2021-08-19T21:46:41.412995 | 2017-11-27T13:37:52 | 2017-11-27T13:37:52 | 111,728,604 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 37,316 | tst | data1.tst | 0.857708 0.695833 0 0.333333 0 0.0285171 0.000552296 0.0248447 0.000392642 0.415698 0.382496 0.498527 0.359314 0.472015 0.627059 0.148008 0.498527 0.318996 0.168487class5
0.442688 0.495833 0 0 0 0.00950571 0.000253019 0.00745341 0.000263392 0.00619675 0 0.0169367 0.000779422 0.789179 0.184706 0.538899 0.0169367 1 0.154604class2
0.794466 0.125 0 0 0 0.0323195 0.00077865 0.0248447 0.000739793 0.857733 0.816045 0.926362 0.82385 0.272388 0.663529 0.29222 0.926362 0.199347 0.124945class1
0.12253 0.675 0 0 0 0.0589354 0.00179647 0.201242 0.0048686 0.303899 0.288493 0.350515 0.268901 0.630597 0.427059 0.309298 0.350515 0.266914 0.175487class5
0.237154 0.775 0 0 0 0.0494296 0.00152801 0.0583851 0.00138889 0.345727 0.322528 0.407953 0.301637 0.563433 0.511765 0.240987 0.407953 0.302925 0.171556class5
0.58498 0.725 0 0 0 0.0532319 0.00107697 0.068323 0.00138889 0.343919 0.330632 0.394698 0.302416 0.632463 0.456471 0.259962 0.394698 0.275889 0.183224class5
0.774704 0.908333 0 0 0 0.0475285 0.00158722 0.0260869 0.000408753 0.123677 0.102917 0.118557 0.14887 0.651119 0.136471 0.757116 0.140648 0.335717 0.956204class6
0.110672 0.416667 0 0 0 0.013308 0.000242751 0.0136646 0.000109535 0.0376969 0.0502431 0.0419735 0.0210444 0.908582 0.161176 0.455408 0.0456554 0.564153 0.360322class0
0 0.291667 0 0 0 0.41635 0.269689 0.206211 0.148134 0.148722 0.102107 0.202504 0.136399 0.464552 0.424706 0.481973 0.202504 0.595282 0.101696class2
0.268775 0.308333 0 0.333333 0 0.106464 0.00827595 0.0881987 0.00680988 0.149497 0.149109 0.186303 0.110678 0.783582 0.343529 0.288425 0.186303 0.437404 0.232395class0
0.596838 0.3 0 0 0 0.152091 0.00133885 0.021118 0.000490803 0.18487 0.170178 0.220177 0.161341 0.673507 0.344706 0.398482 0.220177 0.307415 0.164678class3
0.976285 0.591667 0 0 0 0.00950571 6.34888e-05 0.00248447 2.1373e-05 0.00258198 0 0.00736377 0 0.815299 0.155294 0.559772 0.00736377 0.888889 0.159449class4
0.537549 0.541667 0 0 0 0.00190116 0.000137219 0.00124225 9.81607e-05 0.000258198 0 0.000736376 0 0.83209 0.134118 0.57685 0.000736376 0.111111 0.159449class4
0.335968 0.775 0 0.333333 0.5 0.0551331 0.00146381 0.0285715 0.00079625 0.440744 0.410049 0.515464 0.390491 0.481343 0.594118 0.191651 0.515464 0.285333 0.163876class5
0.865613 0.870833 0 0.333333 0 0.0779468 0.00113906 0.0509317 0.00299485 0.0449264 0.041329 0.0353461 0.0584567 0.794776 0.0964706 0.675522 0.0552283 0.427354 0.844189class6
0.814229 0.433333 0 0 0 0.0361217 0.000332383 0.00372672 2.40441e-05 0.00852053 0.00324149 0.0191458 0.00233827 0.794776 0.184706 0.533207 0.0191458 0.933333 0.164293class4
0.0197628 0.166667 0 0 0 0.0570342 0.0020167 0.0360248 0.00152013 0.136587 0.136953 0.170103 0.100546 0.79291 0.324706 0.309298 0.170103 0.442861 0.2288class0
0.798419 0.7125 0 0 0 0.127376 0.00259848 0.0807453 0.00122995 0.382907 0.360616 0.451399 0.331255 0.557836 0.550588 0.184061 0.451399 0.306722 0.178595class5
0.956522 0.454167 0 0 0 0.152091 0.00439616 0.0347826 0.0013228 0.333592 0.32658 0.373343 0.29774 0.679104 0.401176 0.301708 0.373343 0.245321 0.190281class3
0.573123 0.358333 0 0 0 0.346008 0.0046363 0.0136646 0.000414139 0.334366 0.335494 0.360088 0.305534 0.735075 0.334118 0.352941 0.360088 0.197115 0.202033class3
0.72332 0.558333 0 0 0 0.0247148 0.000616723 0.00496894 0.000196321 0.00387297 0.00243112 0.00810015 0.000779422 0.822761 0.152941 0.555977 0.00810015 0.527778 0.188567class4
0.699605 0.4875 0 0 0 0.0152091 0.000343586 0.0198758 0.000149609 0.0413116 0.0575365 0.0427099 0.0241621 0.932836 0.148235 0.451613 0.0522828 0.563713 0.389963class0
0.517787 0.5125 0 0 0 0.0912548 0.00318191 0.0335404 0.00111405 0.043119 0.0162075 0.0758468 0.0342946 0.634328 0.298824 0.512334 0.0758468 0.833935 0.110391class2
0.324111 0.0708333 0 0 0 0.013308 0.000137217 0.0198757 0.000328509 0.787503 0.725284 0.868925 0.759938 0.152985 0.708235 0.341556 0.868925 0.241511 0.110178class1
0.494071 0.941667 0 0 0 0.0323194 0.000242751 0.0223602 0.00035265 0.0402789 0.0307942 0.0279823 0.0623539 0.755597 0.082353 0.73814 0.0589102 0.553812 0.863136class6
0.885375 0.195833 0 0 0 0.0114069 0.000425158 0.0099379 0.000248328 0.0580945 0.0405186 0.0935199 0.0374123 0.69403 0.315294 0.425047 0.0935199 0.622222 0.163785class4
0.0513834 0.454167 0 0 0 0.0114068 0.000134446 0.00993788 0.000213727 0.0111025 0 0.0257732 0.00623539 0.753731 0.204706 0.542695 0.0257732 1 0.122292class2
0.0158103 0.829167 0 0 0.5 0.0741445 0.00168394 0.0993789 0.00188509 0.357604 0.331442 0.426362 0.309431 0.539179 0.545882 0.210626 0.426362 0.317566 0.171788class5
0.3083 0.2125 0 0 0 0.0190114 0.000388401 0.0198757 0.000438139 0.768138 0.734198 0.842415 0.720966 0.354478 0.669412 0.199241 0.842415 0.208013 0.145388class1
0.0671937 0.3 0 0 0.5 0.211027 0.0100723 0.288199 0.0207636 0.100181 0.0656402 0.150221 0.0802806 0.563433 0.395294 0.428843 0.150221 0.664785 0.129262class2
0.841897 0.979167 0 0 0 0.0969582 0.00193377 0.0670807 0.00143462 0.122128 0.103728 0.102356 0.160561 0.66791 0.0658824 0.85389 0.151694 0.391548 0.885904class6
0.367589 0.5375 0 0 0 0.00570343 3.36114e-05 0.00745341 3.20588e-05 0.0211722 0.012966 0.0405007 0.00857365 0.770522 0.229412 0.485769 0.0405007 0.797884 0.177685class4
0.209486 0.545833 0 0 0 0.0247148 0.000834671 0.0447205 0.0015207 0.0126517 0.00648298 0.0243004 0.00623539 0.787313 0.190588 0.531309 0.0243004 0.769444 0.159449class4
0.418972 0.5625 0 0 0 0.0646388 0.00101582 0.047205 0.000951085 0.14898 0.122366 0.196613 0.123928 0.602612 0.395294 0.388994 0.196613 0.432786 0.1476class3
0.363636 0.9375 0 0.333333 0 0.0608365 0.00271881 0.0447205 0.000673241 0.0872708 0.0696921 0.0714286 0.120811 0.684701 0.0764706 0.819734 0.114138 0.447247 0.89167class6
0.964427 0.991667 0 0 0 0.0684411 0.00129965 0.0335404 0.000440812 0.102763 0.0786062 0.10162 0.127046 0.634328 0.150588 0.751423 0.120029 0.406212 0.971641class6
0.185771 0.675 0 0 0 0.039924 0.00107872 0.0322981 0.00118445 0.134005 0.119935 0.108984 0.173811 0.69403 0.0435294 0.863378 0.164212 0.349656 0.863527class6
0.940711 0.4625 0 0 0 0.00950571 6.34888e-05 0.00745341 0.000128236 0.0387297 0.0510535 0.0441826 0.0210444 0.906716 0.167059 0.447818 0.0478645 0.581349 0.350992class0
0.72332 0.558333 0 0 0 0.0323194 0.000494751 0.0397516 0.000674385 0.0237542 0.0170178 0.0382916 0.014809 0.779851 0.207059 0.512334 0.0382916 0.656614 0.169167class4
0.426877 0.5625 0 0 0 0.00190116 0.000137219 0.00124225 9.81607e-05 0.000258198 0 0.000736376 0 0.83209 0.134118 0.57685 0.000736376 0.111111 0.159449class2
0.434783 0.979167 0 0 0 0.108365 0.00211246 0.130435 0.00296731 0.18048 0.153971 0.148748 0.239283 0.593284 0.022353 1 0.226068 0.388973 0.882741class6
0.608696 0.120833 0 0 0 0.0646388 0.00209006 0.00124225 9.81607e-05 0.00877872 0.0089141 0.0103093 0.00701481 0.83209 0.141176 0.565465 0.0103093 0.116667 0.24735class4
0.754941 0.608333 0 0 0 0.0361217 0.000511645 0.0173913 0.00011755 0.127808 0.101297 0.114138 0.167576 0.610075 0.0964706 0.863378 0.158321 0.418184 0.920448class6
0.822134 0.991667 0 0 0 0.0836502 0.00365994 0.0621118 0.00303493 0.0733282 0.0551053 0.0537555 0.111458 0.684701 0.0552941 0.85389 0.105302 0.533307 0.873133class6
0.462451 0.475 0 0 0 0.0114068 0.000300632 0.0198758 0.000248328 0.00800413 0 0.0206186 0.00233827 0.776119 0.194118 0.537002 0.0206186 1 0.145808class2
0.166008 0.5875 0 0 0 0.0665399 0.00172167 0.0273292 0.000598437 0.0105861 0.00729336 0.0191458 0.00467654 0.807836 0.175294 0.535104 0.0191458 0.648677 0.186503class4
0.972332 0.3375 0 0 0 0.0304183 0.000522848 0.00993788 8.54912e-05 0.0841725 0.0551053 0.13623 0.0568979 0.606343 0.401176 0.375712 0.13623 0.632127 0.152153class4
0.245059 0.791667 0 0 0 0.0722434 0.00174867 0.0559006 0.00119498 0.429641 0.400324 0.506627 0.375682 0.494403 0.602353 0.165085 0.506627 0.299213 0.169568class5
0.126482 0.441667 0 0 0 0.00950571 1.86736e-05 0.00248447 2.1373e-05 0.00748774 0 0.0206186 0.000779422 0.779851 0.196471 0.529412 0.0206186 1 0.153029class2
0.462451 0.308333 0 0 0 0.112167 0.00445542 0.0509317 0.0049184 0.0570617 0.0259319 0.0986745 0.0428683 0.600746 0.344706 0.472486 0.0986745 0.774121 0.120048class2
0.474308 0.204167 0 0 0 0.0779468 0.00234908 0.0645963 0.00207315 0.186419 0.179903 0.233432 0.142634 0.729478 0.401176 0.250474 0.233432 0.4223 0.212882class0
0.857708 0.433333 0 0 0 0.0323194 0.000538487 0.00869565 0.000281089 0.160083 0.141815 0.19514 0.140296 0.656716 0.337647 0.426945 0.19514 0.339149 0.150337class4
0.822134 0 0 0 0 0.0285171 0.000257693 0.0484472 0.00278112 0.986832 0.985413 0.994845 0.978176 0.509328 0.403529 0.470588 0.994845 0.099836 0.107877class1
0.213439 0.825 0 0.333333 0 0.0627376 0.00130611 0.0310559 0.000719992 0.0872708 0.0753647 0.0684831 0.118472 0.723881 0.062353 0.802657 0.111929 0.407904 0.86347class6
0.193676 0.783333 0 0 0 0.110266 0.00300382 0.125466 0.00332965 0.388071 0.358185 0.462445 0.33749 0.503731 0.58 0.191651 0.462445 0.312414 0.167669class5
0.628458 0.125 0 0 0 0.0285171 0.000816425 0.00496894 0.000124165 0.00490576 0.00405187 0.00810015 0.00233827 0.826493 0.148235 0.559772 0.00810015 0.537037 0.201297class4
0.557312 0.5375 0 0 0 0.144487 0.00130466 0.0335404 0.000521268 0.184353 0.170989 0.214286 0.165238 0.682836 0.318824 0.43074 0.214286 0.2851 0.158426class3
0.0316206 0.345833 0 0 0 0.0209125 0.00055646 0.0223603 0.000480884 0.789052 0.779579 0.845361 0.737334 0.516791 0.588235 0.165085 0.845361 0.176789 0.172726class1
0.422925 0.5625 0 0 0 0 0 0 0 0 0 0 0 0.833955 0.131765 0.578748 0 0 0.511054class2
0.217391 0.4 0 0 0 0.0380228 0.000209139 0.10559 0.0145682 0.347276 0.337115 0.386598 0.314887 0.652985 0.402353 0.326376 0.386598 0.230455 0.176732class3
0.209486 0.6875 0 0 0 0.0722434 0.000694281 0.0596273 0.00194149 0.353215 0.335494 0.415317 0.303975 0.598881 0.512941 0.203036 0.415317 0.308573 0.183453class5
0.158103 0.383333 0 0 0 0.0836502 0.00312215 0.0397516 0.00107932 0.427059 0.408428 0.486745 0.381138 0.56903 0.518824 0.223909 0.486745 0.259607 0.174805class3
0.26087 0.520833 0 0 0 0.230038 0.00373932 0.0596273 0.00230625 0.108185 0.0656402 0.167894 0.0857366 0.505597 0.443529 0.409867 0.167894 0.660813 0.123671class2
0.980237 0.195833 0 0 0 0.0456274 0.000950682 0.00621118 0.000236402 0.0617093 0.0437601 0.0964654 0.0420889 0.690299 0.312941 0.432638 0.0964654 0.607768 0.160968class4
0.351779 0.375 0 0.333333 0 0.0304183 0.000388402 0.0385093 0.00135984 0.139943 0.148298 0.165685 0.104443 0.847015 0.288235 0.313093 0.165685 0.404038 0.255857class0
0.70751 0.8875 0 0 0 0.127376 0.00373837 0.0807453 0.00405281 0.105861 0.0850891 0.0883652 0.144193 0.656716 0.0729412 0.85389 0.13623 0.443375 0.896884class6
0.375494 0.00833333 0 0 0 0.028517 0.00048177 0.0124224 0.000149608 0.918668 0.8906 0.959499 0.901013 0.347015 0.544706 0.40797 0.959499 0.156568 0.110452class1
0.438735 0.329167 0 0 0 0.252852 0.00700356 0.0285714 0.000634636 0.454428 0.420583 0.528719 0.407638 0.455224 0.595294 0.216319 0.528719 0.278345 0.157028class3
0.84585 0.7125 0 0 0 0.0874525 0.00148298 0.0608696 0.00142991 0.377743 0.354133 0.445508 0.328137 0.550373 0.545882 0.199241 0.445508 0.30405 0.17461class5
0.885375 0.195833 0 0 0 0.0114069 0.000425158 0.0099379 0.000248328 0.0580945 0.0405186 0.0935199 0.0374123 0.69403 0.315294 0.425047 0.0935199 0.622222 0.163785class4
0.343874 0.325 0 0 0 0.0266159 0.000388402 0.0819876 0.00291737 0.155693 0.158023 0.188513 0.118472 0.800373 0.325882 0.29981 0.188513 0.403687 0.238152class0
0.355731 0.454167 0 0 0 0.0475285 0.000936716 0.0136646 0.000557012 0.11748 0.0818476 0.170839 0.0950896 0.550373 0.415294 0.409867 0.170839 0.562158 0.136545class2
0.221344 0.129167 0 0 0 0.0798479 0.000876485 0.0223602 0.000504358 0.261038 0.23906 0.316642 0.222915 0.598881 0.46 0.288425 0.316642 0.334662 0.170334class3
0.83004 0.495833 0 0 0 0 0 0 0 0 0 0 0 0.833955 0.131765 0.578748 0 0 0.511054class4
0.142292 0.454167 0 0 0 0.0285171 0.00034732 0.0236025 0.000333949 0.0134263 0.00162074 0.0294551 0.00779423 0.748134 0.211765 0.537002 0.0294551 0.962963 0.125253class2
0.209486 0.5375 0 0.333333 0 0.0247148 0.000446753 0.0397516 0.000755262 0.0580945 0.0275527 0.0927835 0.0506625 0.604478 0.311765 0.521822 0.0927835 0.73447 0.101039class2
0.762846 0.254167 0 0 0 0.0342205 0.000403338 0.026087 0.000825519 0.651433 0.577796 0.776141 0.589244 0.117537 0.883529 0.0948767 0.776141 0.323421 0.137392class1
0.335968 0.320833 0 0.333333 0 0.0703422 0.00190093 0.0385093 0.00244985 0.147431 0.156402 0.174521 0.109899 0.848881 0.296471 0.297913 0.174521 0.405118 0.257128class0
0.27668 0.704167 0 0.333333 0 0.0418251 0.000567664 0.0670807 0.00134648 0.155693 0.133712 0.142121 0.190959 0.632463 0.103529 0.829222 0.180412 0.327383 0.923002class6
0.498024 0.454167 0 0.333333 0 0.0570342 0.000851497 0.0720497 0.00290669 0.164988 0.161264 0.201767 0.129384 0.755597 0.347059 0.311195 0.201767 0.394863 0.214766class0
0.549407 0.470833 0 0 0 0.0342205 0.000448156 0.0248447 0.000758732 0.0175574 0.00162074 0.0405007 0.00857365 0.718284 0.245882 0.512334 0.0405007 0.973765 0.130394class2
0.185771 0.291667 0 0 0 0.0209125 0.000242753 0.0198758 0.000309904 0.787245 0.770664 0.854197 0.731099 0.468284 0.638824 0.132827 0.854197 0.19308 0.169674class1
0.0513834 0.529167 0 0 0 0.0171103 0.000123243 0.0111801 5.61036e-05 0.0345985 0.0494327 0.0360825 0.0187062 0.925373 0.147059 0.461101 0.044919 0.603836 0.389695class0
0.379447 0.495833 0 0 0 0.0247148 0.000511644 0.0236025 0.000494244 0.0407953 0.0534846 0.0456554 0.0233827 0.908582 0.164706 0.449715 0.05081 0.570106 0.349378class0
0.43083 0.7125 0 0 0 0.0817491 0.001809 0.0571429 0.00112436 0.323264 0.311183 0.373343 0.281372 0.647388 0.448235 0.258065 0.373343 0.287646 0.187039class5
0.964427 0.945833 0 0.333333 0 0.0570342 0.00255979 0.0521739 0.00176033 0.0622257 0.0461913 0.0434462 0.0974279 0.703358 0.0564706 0.833017 0.0920471 0.597015 0.867977class6
0.320158 0.529167 0 0 0 0.0304183 0.000522848 0.0198758 0.000277845 0.00981151 0 0.0250368 0.00311769 0.76306 0.207059 0.529412 0.0250368 1 0.146091class2
0.517787 0.304167 0 0 0 0.102662 0.00123954 0.0198758 0.000328508 0.0619675 0.0534846 0.078056 0.0530008 0.755597 0.223529 0.510436 0.078056 0.380483 0.152306class3
0.924901 0.770833 0 0 0 0.0570342 0.00134447 0.0496894 0.000828279 0.32946 0.3047 0.388071 0.290725 0.557836 0.490588 0.280835 0.388071 0.294238 0.162769class5
0.577075 0.316667 0 0 0 0.23384 0.00667427 0.0347826 0.00122288 0.302091 0.276337 0.36377 0.261107 0.559701 0.498824 0.265655 0.36377 0.319706 0.166836class3
0.0118577 0.829167 0 0 0 0.161597 0.0040525 0.12795 0.00157608 0.34676 0.322528 0.412371 0.300078 0.55597 0.528235 0.222011 0.412371 0.314278 0.172872class5
0.383399 0.125 0 0 0 0.0589355 0.000780537 0.0248448 0.000630491 0.956106 0.952998 0.9757 0.936867 0.507463 0.451765 0.394687 0.9757 0.112421 0.130215class1
0.873518 0.429167 0 0 0 0.00950571 6.34888e-05 0.00993788 5.34318e-05 0.0379551 0.0445705 0.0486009 0.020265 0.867537 0.191765 0.447818 0.0486009 0.603175 0.290371class0
0.478261 0.466667 0 0 0 0.0209125 0.000377198 0.0111801 0.000152281 0.00826233 0 0.0220913 0.00155884 0.774254 0.2 0.529412 0.0220913 1 0.151343class2
0.505929 0.608333 0 0 0 0.0836502 0.00357031 0.0496894 0.00123962 0.161374 0.132901 0.212077 0.13484 0.585821 0.412941 0.377609 0.212077 0.430239 0.146862class3
0.549407 0.625 0 0 0 0.00950571 0.000330468 0.0173913 0.000447681 0.109734 0.0907618 0.0949926 0.143414 0.66791 0.0870588 0.819734 0.135493 0.390957 0.904754class6
0.687747 0.7375 0 0 0 0.102662 0.00259486 0.0521739 0.00093742 0.388846 0.362237 0.458027 0.340608 0.526119 0.555294 0.208729 0.458027 0.296294 0.168636class5
0.754941 0.545833 0 0.333333 0 0.0171103 0.000123243 0.0335404 0.000376694 0.0325329 0.0494327 0.0324006 0.0163679 0.940299 0.138824 0.459203 0.044919 0.662037 0.40951class0
0.395257 0.254167 0 0 0 0.0855513 0.00478406 0.0397516 0.0045417 0.184611 0.171799 0.237113 0.141076 0.686567 0.427059 0.252372 0.237113 0.436895 0.201122class0
0.83004 0.4 0 0.333333 0 0.0874525 0.00227066 0.0459627 0.00203308 0.116705 0.0858995 0.170839 0.0888542 0.583955 0.418824 0.370019 0.170839 0.547173 0.148525class4
0.549407 0.475 0 0 0 0.00950571 6.34888e-05 0.0149068 0.000224414 0.043119 0.0534846 0.05081 0.0249415 0.891791 0.178824 0.444023 0.0515464 0.545635 0.322724class0
0.869565 0.4 0 0 0 0.039924 0.000212874 0.0186335 0.000248458 0.0154919 0.00243112 0.0353461 0.00701481 0.738806 0.230588 0.516129 0.0353461 0.94709 0.137295class2
0.660079 0.00833333 0 0.333333 0 0.0456273 0.000448156 0.0298137 0.000288533 0.909114 0.872771 0.963917 0.884645 0.292911 0.609412 0.358634 0.963917 0.177191 0.115657class1
0.786561 0.995833 0 0 0 0.0779468 0.00143261 0.0322981 0.000739795 0.0642912 0.047812 0.0486009 0.0966485 0.699627 0.0717647 0.812144 0.0913108 0.56339 0.879203class6
0.0869565 0.308333 0 0 0 0.0494296 0.00106064 0.0397516 0.000694614 0.125226 0.137763 0.145066 0.0919719 0.880597 0.256471 0.330171 0.145066 0.399751 0.278228class0
0.252964 0.55 0 0 0 0.0114068 0.000134446 0.0099379 5.34318e-05 0.0351149 0.047812 0.039028 0.0187062 0.910448 0.158824 0.457306 0.0441826 0.595238 0.358718class0
0.422925 0.4875 0 0 0 0.241445 0.00440514 0.0372671 0.000760348 0.371288 0.337925 0.444772 0.325019 0.485075 0.571765 0.223909 0.444772 0.312927 0.159863class3
0.0632411 0.220833 0 0 0 0.0494296 0.00137434 0.0372671 0.00102589 0.131681 0.128039 0.166421 0.0982073 0.766791 0.329412 0.328273 0.166421 0.441092 0.216341class0
0.735178 0.5125 0 0.333333 0 0.102662 0.00206152 0.0248447 0.000277845 0.186161 0.148298 0.248159 0.156664 0.51306 0.472941 0.354839 0.248159 0.457752 0.138956class4
0.774704 0.458333 0 0 0 0.741445 0.0175078 0.021118 0.000652602 0.286083 0.273096 0.327688 0.254092 0.652985 0.398824 0.332068 0.327688 0.280578 0.176045class3
0.73913 0.129167 0 0 0 0.026616 0.000548876 0.0372671 0.000912415 0.75936 0.697731 0.836524 0.735775 0.166045 0.681176 0.371917 0.836524 0.241934 0.1064class1
0.387352 0.495833 0 0 0 0.0190114 0.000459223 0.0124223 0.000392642 0.00955332 0.000810372 0.0220913 0.00467654 0.770522 0.194118 0.542695 0.0220913 0.977778 0.135167class2
0.371542 0.25 0 0 0 0.0361216 0.00109424 0.0496894 0.00271434 0.736638 0.705024 0.811487 0.686672 0.380597 0.664706 0.180266 0.811487 0.212264 0.151262class1
0.600791 0.754167 0 0 0 0.11597 0.00179647 0.16646 0.00298253 0.372579 0.345219 0.430781 0.336711 0.526119 0.498824 0.29981 0.430781 0.272721 0.147731class5
0.462451 0.65 0 0.333333 0 0.0304183 0.000522848 0.0459627 0.000718658 0.10173 0.0940032 0.0913108 0.120031 0.748134 0.105882 0.70778 0.113402 0.248449 0.898139class6
0.268775 0.266667 0 0.333333 0 0.0722433 0.00141916 0.0335404 0.00159494 0.158533 0.160454 0.194404 0.118472 0.796642 0.341176 0.278937 0.194404 0.423501 0.235416class0
0.383399 0.45 0 0.666667 0 0.0494297 0.000522849 0.0571429 0.00402876 0.150529 0.155592 0.181149 0.113016 0.820896 0.314118 0.297913 0.181149 0.408211 0.245979class0
0.229249 0.4375 0 0 0 0.102662 0.00283616 0.0173913 0.000328508 0.153111 0.13047 0.195876 0.129384 0.628731 0.372941 0.398482 0.195876 0.395663 0.15099class4
0.0513834 0.0708333 0 0 0 0.0190113 7.46936e-05 0.0273292 0.000309902 0.770204 0.713938 0.868925 0.718628 0.199627 0.787059 0.166983 0.868925 0.253299 0.135195class1
0.897233 0.129167 0 0.333333 0 0.0703422 0.00156814 0.0968944 0.00160935 0.310612 0.288493 0.358616 0.280592 0.58209 0.435294 0.345351 0.358616 0.271572 0.155128class3
0.454545 0.1 0 0 0 0.0285171 0.000788263 0.0198758 0.000392643 0.872709 0.829822 0.936672 0.844895 0.259328 0.644706 0.335863 0.936672 0.194853 0.117102class1
0.173913 0.404167 0 0 0.5 0.872624 0.0129023 0.609938 0.0114915 0.347276 0.3047 0.405007 0.326578 0.429105 0.490588 0.411765 0.405007 0.358975 0.114776class2
0.498024 0.445833 0 0 0 0.395437 0.0103154 0.0186336 0.000498594 0.239349 0.224473 0.276141 0.214341 0.654851 0.364706 0.385199 0.276141 0.293949 0.162257class3
0.596838 0.870833 0 0 0 0.0323194 0.000690907 0.0322981 0.00156021 0.101988 0.0842788 0.0868925 0.13484 0.679104 0.0835294 0.814042 0.127393 0.416705 0.898333class6
0.106719 0.5 0 0 0 0.00760456 7.46926e-05 0.0173913 0.000149609 0.0361477 0.0486224 0.0397644 0.020265 0.908582 0.157647 0.461101 0.0441826 0.566138 0.36422class0
0.711462 0.0166667 0 0 0 0.0285172 0.000212874 0.0322981 0.000886969 0.978053 0.976499 0.991163 0.964146 0.511194 0.425882 0.432638 0.991163 0.104639 0.119801class1
0.790514 0.475 0 0.333333 0 0.0589354 0.00135145 0.191304 0.00413021 0.30235 0.30389 0.324742 0.276695 0.748134 0.310588 0.377609 0.324742 0.192484 0.202059class3
0.790514 0.475 0 0 0 0.0342205 0.000448155 0.22236 0.0748393 0.298477 0.285251 0.343152 0.263445 0.647388 0.416471 0.309298 0.343152 0.270638 0.179824class3
0.229249 0.454167 0 0 0 0.0741445 0.00200265 0.0322981 0.00134877 0.132972 0.0769854 0.21944 0.0950896 0.404851 0.577647 0.296015 0.21944 0.681266 0.136472class2
0.0790514 0.220833 0 0 0 0.557034 0.0130566 0.452174 0.0127164 0.216112 0.179903 0.251841 0.212783 0.514925 0.354118 0.544592 0.251841 0.400746 0.0756045class2
0.770751 0.35 0 0 0 0.0589354 0.0011332 0.0298137 0.000912417 0.0531887 0.0494327 0.0714286 0.0374123 0.791045 0.231765 0.461101 0.0714286 0.512566 0.21739class4
0.245059 0.0333333 0 0 0 0.0836502 0.00119625 0.0322981 0.000639174 0.315001 0.277147 0.389543 0.272019 0.472015 0.563529 0.250474 0.389543 0.355227 0.152854class3
0.173913 0.404167 0 0 0.5 0.872624 0.0129023 0.609938 0.0114915 0.347276 0.3047 0.405007 0.326578 0.429105 0.490588 0.411765 0.405007 0.358975 0.114776class2
0.482213 0.716667 0 0 0 0.0380228 0.000657295 0.141615 0.0266411 0.22489 0.214749 0.259205 0.197973 0.692164 0.349412 0.371917 0.259205 0.266436 0.180202class5
0.371542 0.408333 0 0 0 0.0342205 0.000492972 0.0434782 0.00196896 0.12032 0.140194 0.132548 0.0880748 0.932836 0.218824 0.337761 0.135493 0.384997 0.321149class0
0.735178 0.325 0 0 0 0.102662 0.00161895 0.0248447 0.000770419 0.0588691 0.0461913 0.0861561 0.0420889 0.727612 0.276471 0.45351 0.0861561 0.548545 0.167928class4
0.450593 0.416667 0 0 0 0.0190114 0.000407058 0.0434782 0.000751425 0.125742 0.0705024 0.199558 0.100546 0.412313 0.515294 0.388994 0.199558 0.679513 0.119338class2
0.422925 0.466667 0 0 0 0.0209125 0.000242751 0.0149068 0.000192355 0.046992 0.0599676 0.0530191 0.0280592 0.908582 0.171765 0.43833 0.0559647 0.524471 0.345571class0
0.810277 0.208333 0 0 0 0.0190114 0.000407058 0.0111801 0.000331428 0.0493158 0.0340357 0.0810015 0.0303975 0.712687 0.295294 0.43833 0.0810015 0.645891 0.167117class4
0.130435 0.658333 0 0 0 0.0285171 0.000509747 0.0360248 0.000634636 0.0893364 0.0777958 0.0648012 0.126267 0.725746 0.0352941 0.844402 0.119293 0.463569 0.845669class6
0.0118577 0.354167 0 0 0 0.0760456 0.00298771 0.0347826 0.00162433 0.024787 0.00648298 0.0515464 0.0140296 0.699627 0.265882 0.499051 0.0515464 0.910065 0.134252class2
0.110672 0.291667 0 0.333333 0 0.0893536 0.00378318 0.0608696 0.00270632 0.142783 0.146677 0.173049 0.106781 0.815299 0.310588 0.309298 0.173049 0.412662 0.248099class0
0.505929 0.720833 0 0.333333 0 0.0760456 0.000918447 0.0807453 0.00131183 0.315259 0.3047 0.360825 0.276695 0.660448 0.424706 0.282732 0.360825 0.275818 0.187014class5
0.343874 0.520833 0 0 0 0.0627376 0.00115948 0.0459627 0.00152386 0.0557707 0.0299838 0.0876289 0.0467654 0.63806 0.297647 0.510436 0.0876289 0.695088 0.106017class2
0.0790514 0.466667 0 0 0 0.0304182 0.000388403 0.0223602 0.000256472 0.134521 0.114263 0.174521 0.111458 0.651119 0.355294 0.404175 0.174521 0.408913 0.155866class3
0.284585 0.0333333 0 0 0 0.0323194 0.000392935 0.021118 0.000490804 0.888975 0.850081 0.948454 0.862042 0.281716 0.627059 0.341556 0.948454 0.185539 0.117513class1
0.272727 0.1125 0 0 0 0.0418251 0.000274439 0.0223603 0.000548294 0.404338 0.364668 0.492636 0.348402 0.43097 0.650588 0.151803 0.492636 0.336015 0.162116class3
0.529644 0.833333 0 0 0 0.0646388 0.00133885 0.0484472 0.000829442 0.125226 0.105348 0.108247 0.16212 0.656716 0.08 0.842505 0.153166 0.375552 0.901801class6
0.592885 0.633333 0 0 0 0.0703422 0.00230427 0.406211 0.0302879 0.278854 0.252026 0.318115 0.262666 0.559701 0.385882 0.447818 0.318851 0.263846 0.0884196class5
0.632411 0.595833 0 0 0 0 0 0 0 0 0 0 0 0.833955 0.131765 0.578748 0 0 0.511054class4
0.87747 0.683333 0 0 0 0.129278 0.00315067 0.160248 0.00338248 0.403305 0.37034 0.482327 0.35074 0.477612 0.605882 0.176471 0.482327 0.312834 0.165332class5
0.996047 0.266667 0 0 0 0.0228137 0.000268893 0.0198758 0.000277847 0.617351 0.525122 0.768041 0.545596 0 1 0.0265655 0.768041 0.378682 0.136347class1
0.363636 0.745833 0 0 0 0.188213 0.00183792 0.0583851 0.00233325 0.373612 0.345219 0.443299 0.326578 0.518657 0.554118 0.218216 0.443299 0.303602 0.166474class5
0.905138 0.425 0 0 0 0.0380228 0.00050604 0.0124224 0.000392642 0.150529 0.132091 0.184831 0.131723 0.658582 0.331765 0.434535 0.184831 0.350082 0.147825class4
0.545455 0.4875 0 0 0 0.10076 0.00795103 0.0708075 0.00896853 0.0369223 0.0178282 0.0633284 0.0272798 0.690299 0.267059 0.506641 0.0633284 0.804724 0.12487class2
0.806324 0.7625 0 0 0 0.0551331 0.00121033 0.120497 0.00219537 0.287891 0.270664 0.334315 0.254871 0.623134 0.422353 0.324478 0.334315 0.28056 0.168989class5
0.221344 0.908333 0 0 0 0.0931559 0.0020765 0.0770186 0.00101633 0.101988 0.0875203 0.089838 0.128605 0.701493 0.0976471 0.768501 0.121502 0.347692 0.905645class6
0.371542 0.191667 0 0 0 0.0627376 0.0034396 0.047205 0.00123962 0.18332 0.179903 0.228277 0.138737 0.751866 0.390588 0.244782 0.228277 0.425691 0.219109class0
0.612648 0.7375 0 0 0 0.146388 0.00233273 0.111801 0.00270325 0.427059 0.401945 0.501473 0.371785 0.524254 0.589412 0.155598 0.501473 0.300242 0.175674class5
0.241107 0.7875 0 0 0 0.0779467 0.00215132 0.0844721 0.00128736 0.42551 0.394652 0.506627 0.368667 0.485075 0.621176 0.144213 0.506627 0.312541 0.170832class5
0.905138 0.441667 0 0 0 0.112167 0.000936716 0.0322981 0.000620822 0.27214 0.244733 0.329897 0.236945 0.557836 0.472941 0.309298 0.329897 0.335026 0.157461class3
0.782609 0.454167 0 0 0 0.119772 0.00411183 0.186335 0.0389197 0.274206 0.258509 0.316642 0.243959 0.63806 0.4 0.345351 0.316642 0.272752 0.167447class3
0.794466 0.820833 0 0 0 0.0589354 0.00140796 0.0409938 0.00220406 0.134263 0.113452 0.117084 0.172253 0.647388 0.0811765 0.850095 0.162739 0.368866 0.913423class6
0.0869565 0.670833 0 0 0 0.0456274 0.000901896 0.204969 0.00422455 0.29512 0.277147 0.33947 0.265004 0.615672 0.414118 0.345351 0.33947 0.265454 0.154049class5
0.245059 0.00833333 0 0 0 0.039924 0.00101956 0.021118 0.000494246 0.988639 1 0.986745 0.978176 0.597015 0.356471 0.457306 0.986745 0.079806 0.128832class1
0.363636 0.145833 0 0 0 0.0722434 0.00164324 0.0397516 0.00130374 0.878647 0.846029 0.934462 0.849571 0.328358 0.607059 0.326376 0.934462 0.177195 0.124187class1
0.549407 0.475 0 0 0 0.0228137 0.000224078 0.0596273 0.00272502 0.027369 0.0113452 0.0515464 0.0171473 0.714552 0.254118 0.502846 0.0515464 0.853199 0.135971class2
0.652174 0.595833 0 0 0 0.00380228 2.98774e-05 0.00993788 5.34318e-05 0.00490576 0.00162074 0.0125184 0 0.809702 0.169412 0.542695 0.0125184 1 0.172356class4
0.304348 0.308333 0 0 0 0.188213 0.00212313 0.145342 0.0033169 0.340821 0.309562 0.407953 0.299299 0.509328 0.534118 0.259962 0.407953 0.315228 0.15895class3
0.715415 0.116667 0 0 0 0.188213 0.0057857 0.0136646 0.000634636 0.0663568 0.0534846 0.0949926 0.0483242 0.723881 0.284706 0.444023 0.0949926 0.576021 0.169214class4
0.715415 0.516667 0 0 0 0.144487 0.00113817 0.0248447 0.000739794 0.227989 0.208266 0.271723 0.200312 0.625 0.395294 0.366224 0.271723 0.308824 0.159649class3
0.928854 0.379167 0 0 0 0.0361217 6.34888e-05 0.0397516 0.000886967 0.360444 0.337115 0.426362 0.312549 0.557836 0.532941 0.212524 0.426362 0.307007 0.173641class3
0.12253 0.6125 0 0 0 0.0323194 0.000870169 0.0186335 0.000440812 0.0555125 0.0461913 0.0787923 0.0397506 0.751866 0.256471 0.461101 0.0787923 0.520578 0.178177class3
0.0869565 0.3375 0 0 0.5 0.140684 0.00467513 0.156522 0.00410306 0.0883036 0.0640195 0.123711 0.0740452 0.63806 0.322353 0.470588 0.123711 0.564898 0.128195class2
0.12253 0.35 0 0 0 0.0437262 0.00104943 0.0496894 0.00223345 0.0219468 0.00567261 0.0493373 0.00857365 0.714552 0.268235 0.480076 0.0493373 0.919597 0.149785class2
0.557312 0.7125 0 0 0 0.0855513 0.00110918 0.0509317 0.00261014 0.24064 0.230146 0.279823 0.208885 0.684701 0.376471 0.335863 0.279823 0.293208 0.184858class5
0.916996 0.720833 0 0 0 0.0171103 7.84275e-05 0.0173913 0.000566377 0.0826233 0.0713128 0.0655376 0.111458 0.729478 0.0694118 0.785579 0.105302 0.405556 0.86841class6
0.996047 0.0875 0 0 0 0.0171102 0.000591793 0.0298136 0.000402337 0.814098 0.757699 0.883652 0.793453 0.184701 0.657647 0.390892 0.883652 0.220748 0.104586class1
0.798419 0.208333 0 0 0 0.00570343 0.000281216 0.0161491 0.000319588 0.0487994 0.0324149 0.0817378 0.0296181 0.705224 0.301176 0.436433 0.0817378 0.66626 0.163845class4
0.383399 0.4 0 0 0 0.159696 0.00376451 0.0881988 0.0123561 0.0606765 0.0356564 0.0964654 0.0467654 0.641791 0.317647 0.474383 0.0964654 0.697226 0.128265class2
0.146245 0.741667 0 0 0 0.0342206 0.000224078 0.13913 0.0240336 0.202685 0.192058 0.233432 0.180047 0.695896 0.327059 0.404175 0.233432 0.271208 0.167045class5
0.146245 0.5625 0 0 0 0.0171103 0.000123243 0.0149068 0.000192355 0.0356313 0.041329 0.044919 0.020265 0.86194 0.184706 0.464896 0.0456554 0.571429 0.299802class0
0.592885 0.491667 0 0 0 0.275665 0.00820956 0.0161491 0.000597086 0.223341 0.200972 0.272459 0.192518 0.608209 0.42 0.343454 0.272459 0.338407 0.162067class3
0.335968 0.758333 0 0 0 0.112167 0.00166596 0.0496894 0.0013052 0.428092 0.39141 0.507364 0.3788 0.44403 0.612941 0.199241 0.507364 0.299579 0.156934class5
0.407115 0.2375 0 0 0 0.0342205 0.000582605 0.0198758 0.000598436 0.737413 0.693679 0.827688 0.682775 0.296642 0.738824 0.14611 0.827688 0.239143 0.146756class1
0.233202 0.170833 0 0 0 0.0247149 0.000601281 0.0173913 0.00053432 0.778208 0.736629 0.856407 0.734217 0.298507 0.690588 0.222011 0.856407 0.218379 0.136736class1
0.241107 0.795833 0 0 0 0.0874525 0.00172263 0.0335403 0.000815382 0.421637 0.39141 0.496318 0.371005 0.490672 0.589412 0.189753 0.496318 0.29788 0.16512class5
0.956522 0.345833 0 0 0 0.0228137 0.000313709 0.00496894 2.1373e-05 0.00826233 0.00162074 0.0213549 0.000779422 0.785448 0.196471 0.523719 0.0213549 0.977778 0.163335class4
0.083004 0.316667 0 0 0 0.0646388 0.00126956 0.026087 0.000449829 0.446424 0.406807 0.532401 0.392829 0.41791 0.649412 0.166983 0.532401 0.3097 0.157656class3
0.375494 0.3375 0 0.333333 0 0.114068 0.00300264 0.0397516 0.000470199 0.159566 0.158833 0.197349 0.120031 0.777985 0.350588 0.282732 0.197349 0.422223 0.228572class0
0.466403 0.591667 0 0 0 0.173004 0.00558568 0.00124225 9.81607e-05 0.023496 0.0218801 0.0257732 0.0226033 0.815299 0.148235 0.571158 0.0257732 0.085017 0.138074class4
0.335968 0.7625 0 0 0 0.0608365 0.00128471 0.042236 0.000277845 0.116964 0.0964344 0.110457 0.143414 0.654851 0.128235 0.766603 0.135493 0.352132 0.946384class6
0.0197628 0.679167 0 0 0 0.0646388 0.00101582 0.0645963 0.00290669 0.132972 0.110211 0.11782 0.170694 0.634328 0.0905882 0.848197 0.161267 0.381867 0.913129class6
0.150198 0.416667 0 0 0 0.0247148 0.000377198 0.0198758 0.000309904 0.0420862 0.0510535 0.05081 0.0241621 0.882463 0.183529 0.44592 0.0522828 0.562919 0.313666class0
0.0869565 0.566667 0 0 0 0.0114068 0.000134446 0.0161491 0.000301889 0.0320165 0.0299838 0.0493373 0.0155885 0.809702 0.222353 0.457306 0.05081 0.698445 0.248868class0
0.976285 0.175 0 0 0 0.0247151 0.00028757 0.0186335 0.000504936 0.939582 0.93517 0.966127 0.914263 0.503731 0.481176 0.351044 0.966127 0.121119 0.138784class1
0.126482 0.370833 0 0 0 0.0247148 0.000538487 0.0149068 0.000263392 0.00852053 0.000810372 0.0184094 0.00545596 0.777985 0.181176 0.555977 0.0184094 0.977778 0.118704class2
0.403162 0.854167 0 0 0 0.0304183 0.000657295 0.0484472 0.000825521 0.101472 0.0794165 0.0905744 0.134061 0.649254 0.103529 0.812144 0.126657 0.431696 0.921947class6
0.956522 0.345833 0 0 0 0.0228137 0.000313709 0.00496894 2.1373e-05 0.00826233 0.00162074 0.0213549 0.000779422 0.785448 0.196471 0.523719 0.0213549 0.977778 0.163335class4
0.0869565 0.0583333 0 0 0 0.0380227 0.000756571 0.0136646 0.00046665 0.491092 0.442464 0.589838 0.43258 0.341418 0.721176 0.129032 0.589838 0.318191 0.153401class3
0.29249 0.266667 0 0 0 0.0969582 0.00464962 0.0496894 0.00268228 0.180997 0.170178 0.230486 0.138737 0.701493 0.411765 0.26186 0.230486 0.429663 0.202895class0
0.873518 0.5 0 0 0 0 0 0 0 0 0 0 0 0.833955 0.131765 0.578748 0 0 0.511054class4
0.944664 0.216667 0 0 0 0.0190114 0.000548877 0.00869565 0.000281089 0.0624839 0.0461913 0.0927835 0.045986 0.701493 0.291765 0.455408 0.0927835 0.5477 0.154842class4
0.833992 0.345833 0 0 0 0.0589354 0.0023939 0.0273292 0.000694613 0.108959 0.0769854 0.164948 0.0802806 0.578358 0.425882 0.364326 0.164948 0.57666 0.148524class4
0.335968 0.733333 0 0 0 0.0380228 0.000726095 0.0322981 0.00054122 0.0957914 0.0850891 0.0684831 0.13484 0.729478 0.0235294 0.859583 0.127393 0.463329 0.836987class6
0.778656 0.716667 0 0 0 0.0361217 0.00119152 0.0757764 0.00115229 0.376711 0.356564 0.44109 0.327358 0.574627 0.529412 0.201139 0.44109 0.298622 0.179499class5
0.466403 0.308333 0 0 0 0.0171102 0.000302503 0.0198757 0.000438142 0.704364 0.647488 0.812224 0.643804 0.216418 0.815294 0.104364 0.812224 0.275467 0.144013class1
0.849802 0.658333 0 0 0 0.0285171 0.000392137 0.0434782 0.000301889 0.115673 0.0931929 0.103829 0.149649 0.641791 0.102353 0.821632 0.141384 0.400756 0.921651class6
0.0909091 0.808333 0 0 0 0.0760457 0.00160024 0.0534161 0.00179556 0.390911 0.363047 0.462445 0.341387 0.516791 0.567059 0.199241 0.462445 0.303912 0.168872class5
0.312253 0.4375 0 0 0 0.0513308 0.00164697 0.0347826 0.000630495 0.151304 0.154781 0.182621 0.114575 0.809702 0.317647 0.303605 0.182621 0.407364 0.237034class0
0.0474308 0.75 0 0 0 0.121673 0.00545257 0.173913 0.0288745 0.176349 0.171799 0.198085 0.157443 0.746269 0.277647 0.432638 0.199558 0.237113 0.19909class5
0.0355731 0.345833 0 0 0 0.0152091 0.000119509 0.0161491 0.000141594 0.0157501 0.000810372 0.0397644 0.00467654 0.725746 0.250588 0.497154 0.0397644 0.986111 0.143447class2
0.403162 0.895833 0 0 0 0.0589354 0.00172167 0.0360248 0.00126366 0.093984 0.0745543 0.0787923 0.128605 0.669776 0.0811765 0.827324 0.121502 0.442456 0.897824class6
0.913043 0.0833333 0 0 0 0.0190114 0.000347141 0.0173913 0.000248329 0.801446 0.743112 0.878498 0.774747 0.175373 0.690588 0.347249 0.878498 0.23132 0.110683class1
0.482213 0.55 0 0 0 0.00950571 0.000392936 0.00621118 9.81607e-05 0.00284017 0 0.00810015 0 0.813433 0.157647 0.557875 0.00810015 0.777778 0.159449class2
0.541502 0.554167 0 0 0 0.0304183 0.00086785 0.00621118 0.000385209 0.00464756 0.00405187 0.00662739 0.00311769 0.828358 0.142353 0.567362 0.00662739 0.37037 0.191367class4
0.166008 0.525 0 0 0 0.00570343 7.84275e-05 0.0310559 0.00126366 0.0116189 0.00486224 0.0250368 0.00389712 0.783582 0.198824 0.521822 0.0250368 0.917989 0.163335class4
0.936759 0.445833 0 0 0 0.0114068 0.000179263 0.0173913 5.34318e-05 0.0348567 0.0453809 0.0412371 0.0179267 0.895522 0.170588 0.45351 0.0441826 0.617063 0.335251class0
0.0750988 0.741667 0 0 0 0.0589354 0.00176648 0.0596273 0.00275708 0.2378 0.219611 0.283505 0.206547 0.632463 0.407059 0.339658 0.283505 0.309884 0.167862class5
0.225296 0.416667 0 0 0 0.110266 0.00348068 0.0459627 0.000686598 0.134779 0.113452 0.173785 0.113796 0.643657 0.350588 0.419355 0.173785 0.409226 0.149489class4
0.189723 0.533333 0 0 0 0.00570343 7.84275e-05 0.00745341 6.41182e-05 0.00309837 0 0.00883652 0 0.811567 0.16 0.555977 0.00883652 0.777778 0.159449class2
0.083004 0.316667 0 0 0 0.0646388 0.00126956 0.026087 0.000449829 0.446424 0.406807 0.532401 0.392829 0.41791 0.649412 0.166983 0.532401 0.3097 0.157656class3
0.924901 0.3125 0 0 0 0.00950571 1.86736e-05 0.00621118 4.54171e-05 0.0859799 0.0567261 0.139912 0.0568979 0.604478 0.410588 0.362429 0.139912 0.630928 0.155124class4
0.130435 0.3 0 0 0 0.0494297 0.000343586 0.0546584 0.000309905 0.135554 0.142626 0.162003 0.100546 0.839552 0.290588 0.316888 0.162003 0.410073 0.258059class0
0.083004 0.191667 0 0 0 0.0304182 0.000746928 0.0149068 0.00035265 0.879163 0.844408 0.930781 0.856586 0.313433 0.587059 0.373814 0.930781 0.175605 0.114437class1
0.375494 0.345833 0 0 0 0.0247149 0.000287567 0.0099379 0.000309905 0.140976 0.116694 0.190722 0.111458 0.621269 0.403529 0.356736 0.190722 0.451546 0.161044class4
0.27668 0.35 0 0 0 0.0722433 0.00365994 0.0596273 0.00256473 0.0663568 0.034846 0.102356 0.0584567 0.595149 0.32 0.518027 0.102356 0.698902 0.100587class2
0.849802 0.279167 0 0 0 0.0456274 0.000358524 0.0968944 0.00458444 0.251743 0.228525 0.30486 0.217459 0.593284 0.445882 0.316888 0.30486 0.33971 0.166258class3
0.988142 0.675 0 0.333333 0 0.0741445 0.00185017 0.0534161 0.000892126 0.395817 0.363857 0.474227 0.342946 0.48694 0.601176 0.174573 0.474227 0.318366 0.167204class5
0.675889 0.204167 0 0 0 0.0285171 0.000392133 0.0236025 0.00023777 0.862122 0.831442 0.916789 0.832424 0.347015 0.597647 0.322581 0.916789 0.175844 0.126042class1
0.264822 0.483333 0 0 0 0.0361217 0.000983776 0.0285714 0.000597087 0.114123 0.0794165 0.175258 0.0826189 0.557836 0.451765 0.343454 0.175258 0.601444 0.169284class2
|
d8a4fda395d4663dd3fbebf5abe1d937a068f57c | 83f47a817d75661892214724c5c0945dd18cf7b4 | /data/addition_test.tst | 9db9d94cab0af5e16947d55dcd56980d075091dc | [] | no_license | twestpha/NoodleNetwork | fd660b4530528553152fc0fc182e2bd5161d50e1 | de8dfeb102f7896b5e6ca102df602b8cc669b004 | refs/heads/master | 2020-04-17T20:06:47.905131 | 2016-09-29T15:20:51 | 2016-09-29T15:20:51 | 67,099,461 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 107 | tst | addition_test.tst | # f(x, y) = x + y
1.0 1.0 = 2.0
2.0 2.0 = 4.0
5.0 3.0 = 8.0
34.0 2.0 = 36.0
32.0 -2.0 = 30.0
3.0 3.0 = 6.0
|
a3e967e3ea9f240c6a87924b37d81d1981cf5bb2 | d153e998690566a383b3cb700294956d3753b364 | /Scilab/quickSort.sce | b052acbd9ec2ec206d253a3617d8fe8441ce125f | [] | no_license | rayssalourrane/TPFINAL-CN | dc2c2211538fb36a7446c3ef0017a104b2375f87 | ec7d83a359c4ed85a65cefad0d69472955b467ca | refs/heads/master | 2020-06-18T09:25:39.181310 | 2019-07-11T18:45:14 | 2019-07-11T18:45:14 | 196,251,580 | 1 | 5 | null | 2019-07-11T13:29:08 | 2019-07-10T17:53:28 | Java | UTF-8 | Scilab | false | false | 1,534 | sce | quickSort.sce | function y = quickSort(n,x)
y = [];
if x == [] then
y = [];
elseif ((size(x,'r') > 1) | (length(n) > 1)) then
error ('quickSort(n,x): n deve ser escalar, e x deve ser matriz-linha')
else
select n
case 1 then
[lt,gt] = partition(x(1),x)
y = [quickSort(1,lt) x(1) quickSort(1,gt)]
else
if n > length (x)
y = quickSort(n-1,x)
else
ps = quickSort(1,x(1:n));
xs = x((n+1):$);
for i = 1:n
if i == 1 then
[lt,gt] = partition(ps(i),xs);
y = [quickSort(n,lt) ps(i)];
elseif i < n then
[lt,gt] = partition(ps(i),gt);
y = [y quickSort(n,lt) ps(i)];
else
[lt,gt] = partition(ps(i),gt);
y = [y quickSort(n,lt) ps(i) quickSort(n,gt)]
end
end
end
end
end
endfunction
function varargout = partition(x,xs)
lt=[]; gt=[];
for i = 1:length(xs)
if xs(i)<x
lt = [lt xs(i)];
elseif xs(i)>x
gt = [gt xs(i)];
end
end
varargout = list(lt,gt)
endfunction
function b = isOrd(x)
b = %T;
for i = 2 : length(x)
if x(i)<x(i-1) then
b = %F;
break
end
end
endfunction |
b5f934e7a1679b694b5e74ab719bf21e7df52f64 | 0812f3bb6f3cc038b570df68ccee4275da04b11f | /models/complexity_1000/Applied_Thermodynamics_and_Engineering/CH11/EX11.4/11_4.sce | 340e50568e32ece438dd1444e298a709663fc740 | [] | no_license | apelttom/20-semester_PhD_thesis | edc0b55580bae9d364599932cd73cf32509f4b7a | ff28b115fcf5e121525e08021fa0c02b54a8e143 | refs/heads/master | 2018-12-26T22:03:38.510422 | 2018-12-14T20:04:11 | 2018-12-14T20:04:11 | 106,552,276 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 487 | sce | 11_4.sce | clc;
Cai=90;
alpha=20*%pi/180;
Cf=Cai*sin(alpha)
Cb=4*Cf/3;
v=0.6686;//m^3/kg
m=9000/3600;
A=m*v/Cf
h=0.04;
r=A/(2*%pi*h)
N=Cb/(A/h)
disp("rev/s",N,"Wheel speed is:")
//partII
Cw=2*Cai*cos(alpha)-Cb;
DP=m*Cb*Cw;
disp("kW",DP/1000,"diagram powar is:");
//part III
R=Cb*Cw
Cri=[(Cai^2)+(Cb^2)-(2*Cai*Cb*cos(alpha))]^0.5
Ei=Cai^2-(Cri^2/2)
DE=R/Ei
disp("%",DE*100,"diagram efficiency is:");
//part IV
Ed=(Cai^2-Cri^2)/2;
Td=2*Ed;
disp("kJ/kg",Td/1000,"total enthalpy drop per stage:")
|
9863464f491957e385e76726e4553da7aa1c1c3f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1967/CH8/EX8.6/8_6.sce | 85d2cbd830cbf71e58efb90ec3dfa116b498245c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 247 | sce | 8_6.sce | clc
//initialisation of variables
clear
T= 25 //C
b= 0.785*10^-6 //atm^-1
a= 49.2*10^-6 //deg^-1
d= 8.93 //gm/cc
aw= 63.57 //gms
//CALCULATIONS
dC= a^2*(273.2+T)*aw*0.0242/(b*d)
//RESULTS
printf ('Cp-Cv = %.3f cal deg^-1g atom^-1',dC)
|
bde4a0428ea5b45a8b28df273aa206d903ccb8dd | d8104c2a4c2b6dfa97dc8f6fca235ee55afde317 | /notch.sce | 2b893b89a2c1afa9c1d6362d96fb6e4eecf1a251 | [] | no_license | serve-ultimate/Shubham-Nakaskar-Signal-Processing-Toolbox | 783685f791f24da773c7125012e2759b1e0c9c55 | bff6d8ddd267e6854516419d301c6d2ab7ef4782 | refs/heads/master | 2020-12-24T20:00:07.332049 | 2017-03-26T10:07:15 | 2017-03-26T10:07:15 | 86,223,105 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 820 | sce | notch.sce | //shubham-nakaskar iirnotch i/p arg:fo,fs,q o/p arg:x,bw
disp("enter the values of fo, fs and q(quality factor) in the fo.txt,fs.txt and q.txt file provided");
//reading the notch freq.ie fo from the user
fo=read('fo.txt',1,1)
//reading the signal freq. ie fs from the user
fs=read('fs.txt',1,1)
//reading the quality factor value ie q from user
q=read('q.txt',1,1)
//bw=bandwidth
bw=w0/q
w0=fo/(fs/2)
//generating linearspace vector which resembles to w0
aw0=linspace(0,w0*2,3)
//getting the difference between two consecutive elements of generated linspace vector
d=aw0(1,2)-aw0(1,1)
xtitle("notch filter","normaised frequency(x rad/sample)","magnitude(dB)")
for x=aw0(1,1):w0/8:aw0($,$)
if(x==w0)
then
continue
else
plot2d(x,bw,style=0)
end
end
|
a18e8b159a073e8650a0597e43506c7673eaf654 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1964/CH1/EX1.12/ex1_12.sce | 964031dad7dc39149755deba4eb4454b8f59e86e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,091 | sce | ex1_12.sce | //Chapter-1, Example 1.12, Page 24
//=============================================================================
clc;
clear;
//INPUT DATA
m=20;//mass of aluminium in kg
S=0.896;//specific heat of aluminium in KJ/Kg degree centigrade
L=402;//latent heat of fusion of aluminium in KJ/Kg
theta2=657;//final temperature
theta1=20;//initial temperature(assumed)
P=25;//power of furnace in Kw
n=80;//efficiency of kettle in percentage
//CALCULATIONS
H=m*S*(theta2-theta1)+(m*L);//heat energy required to melt aluminium or energy output from the furnace in Kj
H=H/4.186;//heat energy required to melt aluminium or energy output from the furnace in Kcal
H=H/860;//heat energy required to melt aluminium or energy output from the furnace in KWh
n=n/100;
E=H/n;//electrical energy or input energy to kettle in Kwh
t=E/P;//time taken to melt the aluminium in hr
t=t*60;// time taken to melt the aluminium in min
//OUTPUT
mprintf("Thus the time taken to melt the aluminium is %2.2f min",t);
//=================================END OF PROGRAM==============================
|
9bfc1d325477b9712be5eeb9d7061981984e7ca4 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.3/Unix-Windows/scilab-2.3/macros/auto/projsl.sci | 4aaecb0fec4707c2f373751447325669feed1ce3 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 179 | sci | projsl.sci | function [slp]=projsl(sl,q,m)
//slp= projected model of sl q*m is the full rank
//factorization of the projection.
//!
slp=syslin(sl(7),m*sl(2)*q,m*sl(3),sl(4)*q,sl(5),m*sl(6))
|
6107a92f290c688daf217b563b17e19198e14699 | 449d555969bfd7befe906877abab098c6e63a0e8 | /503/CH8/EX8.27/ch8_27.sci | b2e4ac23768b0277d9833f8c5fe067ca212abd28 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 743 | sci | ch8_27.sci | //to calculate generator terminal voltage,excitation emf,power angle
clc;
Xd=1.48;
Xq=1.24;
Xe=.1;
Xdt=Xd+Xe;
Xqt=Xq+Xe;
MVA=1;
Vb=1;
pf=.9;
phi=acosd(pf);
//(Vt*cosd(phi))^2+(Vt*sind(phi)+Ia*Xe)^2=Vb^2;
//after solving
//Vt^2-.0870*Vt-.99=0;
function [x]=quad(a,b,c)
d=sqrt(b^2-4*a*c);
x1=(-b+d)/(2*a);
x2=(-b-d)/(2*a);
if(x1<Vb)
x=x2;
else
x=x1;
end
endfunction
Vt=quad(1,-.0870,-.99);disp(Vt,'terminal voltage(V)');
//after solving
phi=20;
j=sqrt(-1);
Ia=1;
Iaa=Ia*complex(cosd(-phi),sind(-phi));
Ef=Vb+j*Iaa*Xqt;
Eff=abs(Ef);
dl=atand(imag(Ef)/real(Ef));disp(dl,'power angle');
w=dl+phi;
Id=Ia*sind(w);
Ef=Ef+Id*(Xdt-Xqt);
disp(abs(Ef),'excitation emf(V)'); |
9695c0d3ea926c75c7f20ba58ccaddd5a085b774 | 449d555969bfd7befe906877abab098c6e63a0e8 | /929/CH6/EX6.8.d/Example6_8_d.sce | 60e6f6b239fb96a2c8ae5194bbecd29c614182ab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 220 | sce | Example6_8_d.sce | //Example 6.8(d)
clear;
clc;
Vs=13;
A=10;
ft=1*10^6;
SR=0.5*10^6;
f=2*10^3;
Vommax=SR/(2*%pi*f);
if Vommax>Vs then
Vimmax=Vs/A;
printf("Useful Input Amplitude Range is Vim<=%.2f V",Vimmax); |
f5ecb2e29efcf1c1d5d6c235c610db89559e7c6c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1430/CH8/EX8.4/exa8_4.sce | 351c7e6da5c8669dd6eb61c4a3a1331e397f1bf1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 620 | sce | exa8_4.sce | // Example 8.4
// Impedance Matching with a Transformer
omega=10^5;
R_L=500 ;
I_s_m=100*10^-3;
Z_s=(400*(-%i*200))/(400-%i*200); // from figure 8.10(a)
V_s_m=abs(Z_s)*I_s_m;
// From figure 8.10(b),load impedance referred to the primary
// Turn ratio
N=sqrt(500/80); // from condition of impedance matching
L=(160*N^2)/omega;// from condition of impedance matching
P_max=(V_s_m/sqrt(2))^2/(4*real(Z_s));
// Load reactance will be
X_L=%i*omega*L;
disp(X_L,"Load reactance for maximum power transfer(Ohms)=")
disp(N,"Turn ratio for maximum power transfer=")
disp(P_max,"Maximum power transferred(Watts)=")
|
8d088231ea6e9947b71ef5158272d624979d4519 | 449d555969bfd7befe906877abab098c6e63a0e8 | /167/CH17/EX17.1/ex1.sce | 4f35810c5c08f154f56615c35d8975b718dff7d4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | WINDOWS-1252 | Scilab | false | false | 809 | sce | ex1.sce | //ques1
//Compression of High-Speed Air in an Aircraft
clear
clc
//(a) the stagnation pressure at the compressor inlet (diffuser exit) can be determined from Eq. 17–5 in book
//state 1
T1=255.7;//Temperature in K
V1=250;//velocity in m/s
Cp=1.005;//specifc heat at const pressure in kJ/kg/K
T01=T1+V1^2/(2*Cp)/1000;//divide 1000 to convert it into K
//now from eqn 17-5
P1=54.05;//pressure in kPa
k=1.4;
P01=P1*(T01/T1)^(k/(k-1));
printf('(a) Pressure P01 = %.2f kPa \n',P01);
//(b) To determine the compressor work
r=8//P02/P01
T02=T01*r^(1-1/k);//Temperature in K
//Disregarding potential energy changes and heat transfer, the compressor work per unit mass of air is determined from Eq. 17–8
Win=Cp*(T02-T01);//Work input in kJ/kg
printf(' (b) Work input = %.1f kJ/kg \n',Win);
|
eaeb2566c6ecbc23abefa8f137dad025fc72a3b5 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set6/s_Electric_Machines_-_I_M._Verma_And_V._Ahuja_695.zip/Electric_Machines_-_I_M._Verma_And_V._Ahuja_695/CH3/EX3.16/Ex3_16.sce | c6e3942ea774caa98af2bfb0a2f9b1569f3bb126 | [] | 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 | 859 | sce | Ex3_16.sce | errcatch(-1,"stop");mode(2);//Caption:Find the efficiency of transformer at full load and 75 percent of full load (a)at unity power factor (b)0.8 power factor
//Exa:3.16
;
;
I_2=200;//in amperes
R_O2=0.008;//in ohms
x=0.75;
P_cu=x^2*I_2^2*R_O2;//in watts
P_i=190;//in watts
KVA=40;
P_o=40*1000;//in watts
Eff=P_o/(P_o+P_i+I_2^2*R_O2);
Eff_2=KVA*1000*0.8/(KVA*1000*0.8+P_i+I_2^2*R_O2);
disp(Eff*100,'(a)Efficiency of transformer at full load and at unity power factor (in %)=');
disp(Eff_2*100,'(b)Efficiency of transformer at full load and at 0.8 power factor (in %)=');
Eff_3=x*P_o/(x*P_o+P_i+P_cu);
Eff_4=x*P_o*0.8/(x*0.8*P_o+P_i+P_cu);
disp(Eff_3*100,'(a)Efficiency of transformer at 75% of load and at unity power factor (in %)=');
disp(Eff_4*100,'(b)Efficiency of transformer at 75% of load and at 0.8 power factor (in %)=');
exit();
|
e9016dba8bab849c625b885336953fcbc9fe90fa | 449d555969bfd7befe906877abab098c6e63a0e8 | /1883/CH5/EX5.3.12/Example5_12.sce | dcf42e8510c13daaabb3be3433fa164595927a21 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 618 | sce | Example5_12.sce | //Chapter-5,Example5_3_12,pg 5-12
h=6.63*10^-34 //Plancks constant
m=6.68*10^-27 //mass of alpha particle
E=1.6*10^-16 //energy asociated with alpha particle
wavelength=h/sqrt(2*m*E)
printf("\nThe de Broglie wavelength of an alpha particle\n")
disp(wavelength)
printf("meter\n")
v=h/(m*wavelength) //velocity of an alpha particle
printf("\nThe velocity of an alpha particle v = %.2f m/s\n",v)
|
d8c9fdbc5139f16c44e3850352b1bdea6cb171ba | 449d555969bfd7befe906877abab098c6e63a0e8 | /1955/CH8/EX8.9/example9.sce | 29258221aa36f6f71ff2af7f4e0f60b968486efa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,209 | sce | example9.sce | clc
clear
//input data
Q=0.015//Discharge of water in pump in m^3/s
D1=0.2//Internal diameter of the impeller in m
D2=0.4//External diameter of the impeller in m
b1=0.016//Width of impeller at inlet in m
b2=0.008//Width of impeller at outlet in m
N=1200//Running speed of the pump in rpm
b22=30//Impeller vane angle at outlet in degree
g=9.81//Acceleration due to gravity in m/s^2
d=1000//Density of water in kg/m^3
//calculations
printf('From velocity triangles the following values have been deduced')
a11=90//The absolute water angle at inlet in degree
Cx1=0//Absolute whirl component at inlet in m/s
A1=3.1415*D1*b1//Area of flow at inlet in m^2
Cr1=Q/A1//Flow velocity through impeller at inlet in m/s
C1=Cr1//Absolute velocity at inlet in m/s
A2=3.1415*D2*b2//Area of flow at outlet in m^2
Cr2=Q/A2//Flow velocity through impeller at outlet in m/s
U2=(3.1415*D2*N)/60//Blade outlet speed in m/s
Cx2=U2-(Cr2/tand(b22))//Absolute whirl component at outlet in m/s
C2=(Cx2^2+Cr2^2)^(1/2)//Velocity at impeller exit in m/s
Ihl=((Cx2*U2)/g)-((C2^2)/(2*g))+((C1^2)/(2*g))//Pressure rise in impeller in m
//output
printf('\n\nThe rise in pressure in the impeller is %3.3f m',Ihl)
|
7ae29bb0081e711335146fc35ade8b752a5f4bc0 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.13_19.tst | 237097b56459b7e898d3e26d8bdcc6f17bc62022 | [] | 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 | 4,172 | tst | bow.13_19.tst | 13 15:1.0 37:0.125 89:0.25 100:0.3333333333333333 273:1.0 711:1.0
13 89:0.25 192:1.0 218:0.5 389:0.5
13 4:0.1 12:0.125 26:0.16666666666666666 28:0.3333333333333333 67:0.2222222222222222 132:0.07142857142857142 158:0.5 200:1.0 345:1.0 467:0.5 620:1.0 664:1.0 705:1.0 1160:1.0
13 10:1.0 12:0.125 37:0.125 42:1.0 89:0.25 104:0.3333333333333333 330:0.25 432:1.0
13 131:1.0
13 1:0.125 11:0.5 35:0.022222222222222223 143:1.0 238:1.0 755:1.0
13 4:0.1 11:0.5 15:1.0 35:0.022222222222222223 45:0.25 48:0.07692307692307693 77:1.0 132:0.07142857142857142 155:1.0 215:1.0 221:1.0 295:0.25 445:0.5 547:1.0 697:1.0 873:1.0
13 7:1.0 35:0.022222222222222223 45:0.25 59:0.3333333333333333 140:0.3333333333333333 157:1.0 285:0.25 467:0.5
13 7:1.0 22:1.0 34:0.5
13 1:0.125 4:0.1 35:0.022222222222222223 37:0.25 45:0.125 81:1.0 89:0.25 208:0.5 247:1.0 330:0.25 394:1.0 467:0.5 884:1.0
13 4:0.1 32:1.0 34:0.5 35:0.022222222222222223 50:1.0 132:0.07142857142857142 155:1.0 317:1.0 782:1.0
13 12:0.25 35:0.022222222222222223 44:0.5 45:0.375 48:0.07692307692307693 53:1.0 59:0.6666666666666666 106:1.0 192:1.0 275:1.0 330:0.25 364:1.0 480:1.0 929:1.0
13 4:0.1 37:0.125 44:0.25 89:0.25 192:1.0 208:0.5 218:0.5 1218:1.0
13 4:0.1 12:0.125 35:0.044444444444444446 37:0.125 44:0.25 45:0.5 53:1.0 59:0.3333333333333333 77:1.0 131:1.0 139:0.3333333333333333 171:0.5 285:0.25 361:1.0 394:1.0 493:0.5 515:1.0 525:1.0 665:1.0 923:1.0
13 4:0.1 35:0.044444444444444446 37:0.25 44:0.25 45:0.125 48:0.07692307692307693 50:1.0 77:1.0 208:0.5 253:1.0 327:1.0 366:1.0 418:1.0 450:1.0 515:1.0 615:1.0
13 9:1.0 11:0.5 12:0.125 26:0.08333333333333333 37:0.125 40:1.0 45:0.125 50:1.0 52:0.5 120:1.0 143:1.0 244:1.0 317:1.0 360:0.5 648:1.0
13 2:0.5 4:0.3 12:0.375 22:1.0 45:0.125 48:0.3076923076923077 59:0.3333333333333333 184:0.5 285:0.25 295:0.25 388:1.0 389:0.5 409:1.0
13 7:1.0 12:0.125 48:0.07692307692307693 49:1.0 50:2.0 51:2.0 52:0.5 132:0.07142857142857142 232:0.5 262:1.0 1110:1.0 1172:1.0
13 37:0.125 45:0.125 48:0.07692307692307693 59:0.3333333333333333 77:1.0 327:1.0
13 10:1.0 35:0.044444444444444446 37:0.125 50:1.0 85:0.3333333333333333 278:0.5 304:0.3333333333333333 389:0.5 418:1.0 525:1.0 711:1.0
13 2:0.5 4:0.2 7:1.0 12:0.125 15:3.0 34:0.5 35:0.044444444444444446 39:1.0 40:1.0 45:0.125 48:0.07692307692307693 76:1.0 77:1.0 120:1.0 139:0.3333333333333333 155:1.0 214:1.0 216:1.0 239:1.0 262:1.0 330:0.25 365:1.0 376:1.0 391:0.5 396:1.0 479:1.0 480:1.0 481:1.0 482:1.0 1026:1.0
13 12:0.375 15:1.0 48:0.07692307692307693 49:1.0 345:1.0 389:0.5 442:1.0 702:1.0
13 2:0.5 11:0.5 15:1.0 324:1.0 333:1.0 429:1.0 631:1.0
13 4:0.2 7:1.0 28:0.3333333333333333 35:0.044444444444444446 37:0.125 44:0.25 48:0.07692307692307693 68:1.0 77:1.0 89:0.25 103:1.0 106:1.0 132:0.07142857142857142 155:1.0 158:0.5 207:1.0 220:1.0 227:1.0 232:0.5 238:1.0 300:1.0 371:1.0 392:0.5 496:1.0 1215:1.0
13 34:0.5 35:0.022222222222222223
13 35:0.022222222222222223 107:1.0 132:0.07142857142857142 705:1.0
13 35:0.022222222222222223
13 35:0.022222222222222223 48:0.07692307692307693 97:1.0 106:1.0 450:1.0 826:1.0
13 35:0.044444444444444446 104:0.3333333333333333 207:1.0 345:1.0 506:0.5 893:1.0 1052:1.0
13 2:0.5 12:0.125 15:1.0 19:0.14285714285714285 22:2.0 26:0.08333333333333333 35:0.044444444444444446 51:1.0 77:1.0 104:0.3333333333333333 132:0.07142857142857142 158:0.5 189:0.3333333333333333 207:1.0 208:0.5 247:1.0 370:1.0 512:1.0 1099:1.0
13 34:0.5 48:0.07692307692307693 139:0.3333333333333333 220:1.0 300:1.0 428:1.0
13 1:0.125 7:1.0 37:0.125 74:1.0 89:0.25 90:1.0 445:0.5 861:1.0
13 7:1.0 861:1.0
13 4:0.1 7:1.0 12:0.125 37:0.125 48:0.07692307692307693 50:1.0 104:0.3333333333333333 203:1.0 216:1.0 497:1.0 526:1.0 534:1.0 599:1.0 683:1.0
13 17:0.5 34:1.0 61:0.3333333333333333 85:0.3333333333333333 534:1.0
13 7:1.0 48:0.07692307692307693 61:0.3333333333333333 740:1.0
13 61:0.3333333333333333
13 12:0.125 22:1.0 37:0.125 45:0.125 147:1.0 149:1.0 172:1.0 232:0.5
13 3:1.0 4:0.1 5:1.0 12:0.125 26:0.08333333333333333 28:0.3333333333333333 44:0.25 45:0.125 50:1.0 67:0.1111111111111111 85:0.3333333333333333 104:0.6666666666666666 106:1.0 139:0.3333333333333333 239:1.0 297:1.0 360:0.5 467:0.5 697:1.0 826:1.0 838:1.0
|
43c01360e0e51baf505272e70e743824bdda4721 | 449d555969bfd7befe906877abab098c6e63a0e8 | /413/CH9/EX9.4/Example_9_4.sce | d3aea38b8ea2237faf7089d4651fc43bb6fed64d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,259 | sce | Example_9_4.sce | clc
clear
printf('Solve the equation y''+y=3X^2, with boundary points (0,0) and (2, 3.5)')
printf('\n Subdivide into seven elements that join at x=0.4, 0.7, 1.1, 1.3 and 1.6')
printf('\n Augmented matrix')
P=[2.367 -2.567 0 0 0 0 0 0 -0.024
-2.567 5.6 -3.383 0 0 0 0 0 -0.160
0 -3.383 8.167 -5.033 0 0 0 0 -0.328
0 0 -5.033 9.867 -5.033 0 0 0 -0.492
0 0 0 -5.033 9.867 -5.033 0 0 -0.732
0 0 0 0 -5.033 8.167 -3.383 0 -1.378
0 0 0 0 0 -3.383 5.600 -2.567 -2.89
0 0 0 0 0 0 -2.567 2.367 -1.944]
disp(P)
printf('Matrix after ajjusting boundary condition')
T=[ 5.6 -3.383 0 0 0 0 -0.160
-3.383 8.167 -5.033 0 0 0 -0.328
0 -5.033 9.867 -5.033 0 0 -0.492
0 0 -5.033 9.867 -5.033 0 -0.732
0 0 0 -5.033 8.167 -3.383 -1.378
0 0 0 0 -3.383 5.600 6.094]
disp(T)
A=[ 5.6 -3.383 0 0 0 0
-3.383 8.167 -5.033 0 0 0
0 -5.033 9.867 -5.033 0 0
0 0 -5.033 9.867 -5.033 0
0 0 0 -5.033 8.167 -3.383
0 0 0 0 -3.383 5.600 ]
B=[-0.160 -0.328 -0.492 -0.732 -1.378 6.094]'
S=A\B
printf('The table showing the analytical solution and the errors of our computation')
X=[0.4 0.7 0.9 1.1 1.3 1.6]
for i=1:6
B(1,i)=6*cos(X(1,i))+3*(X(1,i).*X(1,i)-2)
T=[X(1,i), S(i,1), B(1,i), B(1,i)-S(i,1)]
disp(T)
end
|
778eebae737eb1e56beb3de7f4c93b15602d75a4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1922/CH4/EX4.2/4_2.sce | edfb04adc0349b7b258544d180d4f05a2ec3ed56 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 688 | sce | 4_2.sce | clc
clear
//Initialization of variables
p1=2.758 //Mpa
p2=0.552 //Mpa
T1=700 //K
T2=700 //K
n=1
R=8.3143
Cv=21
Cp=29.3
//calculations
dsa=n*R*log(p1/p2)
T3=437.5 //K
dsb=Cv*log(T3/T2)
T4=350 //K
dsc=Cp*log(T4/T3)
T5=634 //K
dsd=0
T6=700 //K
dse=Cp*log(T6/T5)
dstotal=dsa+dsb+dsc+dsd+dse
//results
printf("Entropy change in case a = %.3f kJ/kmol K",dsa)
printf("\n Entropy change in case b = %.3f kJ/kmol K",dsb)
printf("\n Entropy change in case c = %.3f kJ/kmol K",dsc)
printf("\n Entropy change in case d = %.3f kJ/kmol K",dsd)
printf("\n Entropy change in case e = %.3f kJ/kmol K",dse)
printf("\n Entropy change in total process = %.3f kJ/kmol K",dstotal)
|
07a789c300da0c672a59f034550894fd03ac68f2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /154/CH3/EX3.7/ch3_7.sce | 72aa5649ef0eea89833f96e0a83d009e853e5b66 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 393 | sce | ch3_7.sce | clc
disp("Example 3.7")
printf("\n")
printf("Given")
disp("Total resistance of three resistors is 50 ohm")
R=50;
disp("Output voltage is 10 percent of the input voltage")
//Let v be input voltage and v1 be output voltage
//Let v1/v=V
V=0.1;
//As V=R1/(Total resistance)
//Solving for R1
R1=V*R;
//As R=R1+R2
//Solving for R2
R2=R-R1;
printf("R1=%dohm\n R2=%dohm\n",R1,R2)
|
d097b81316014f74223510a185f1135852a4adc5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1241/CH2/EX2.46/exa2_46.sce | c492082df7315a77fcd82e7f6385666bf1a69eda | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,132 | sce | exa2_46.sce | //Example 2-46//
//Conversion to decimal//
clc
//clears the console//
clear
//clears all existing variables//
p=1
q=1
z=0
b=0
w=0
f=0
//initialising//
//bin=input (enter the binary number to be converted to its decimal form)//
//accepting the input from the user//
bin=1101.000101
d=modulo(bin,1)
//separating the decimal part from the integer part//
d=d*10^10
a=floor(bin)
//removing the decimal part//
while(a>0)
//loop to enter the binary bits of the integer part into a matrix//
r=modulo(a,10)
b(1,q)=r
a=a/10
a=floor(a)
q=q+1
end
for m=1: q-1
//multiplying each bit of the integer part with its corresponding positional value and adding//
c=m-1
f=f+b(1,m)*(2^c)
end
while(d>0)
//loop to take the bits of the decimal part into a matrix//
e=modulo(d,2)
w(1,p)=e
d=d/10
d=floor(d)
p=p+1
end
for n=1: p-1
//multiplying each bit with its corresponding positional value and adding//
z=z+w(1,n)*(0.5)^(11-n)
end
z=z*10000
z=round(z)
//rounding off to 4 decimal places//
z=z/10000
x=f+z
disp('the decimal equivalent of the binary number is :')
disp(x)
//result is displayed//
|
199ba06ef8b5a9d3dc2698a13bffe8e9b4caa800 | b33bf6a1dd26121f3715caabe9c7062b26de7314 | /src/knn.sci | cb71e294242017f2b3e36cb9368916bf39f699f3 | [
"MIT"
] | permissive | paulopieczarka/pdi-classificador | 869181605660f5df668c84086bd78a82e73d4336 | 9d247f66d0e2488743e5177d168606fe1fd8dd6d | refs/heads/master | 2020-03-15T11:54:32.580686 | 2018-06-08T04:21:57 | 2018-06-08T04:21:57 | 132,131,771 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,931 | sci | knn.sci | function distance = euclidianDistance(instance1, instance2, len)
distance = 0
for x = 1:len
distance = distance + (instance1(x) - instance2(x))^2
end
distance = sqrt(distance)
endfunction
function sortedTable = msort(table, sortBy, direction)
len = size(table, 1)
sortedTable = []
[a, h] = gsort(table(:, sortBy), 'r', direction) // sorted distances
for x = 1:len
sortedTable = cat(1, sortedTable, table(h(x), :))
end
endfunction
function neighbors = getNeighbors(trainingSet, testInstance, k)
distances = []
len = length(testInstance)-1 // type less instance
for x = 1:size(trainingSet, 1)
dist = euclidianDistance(testInstance, trainingSet(x,:), len)
distances = cat(1, distances, [trainingSet(x,:), dist])
end
distances = msort(distances, $, 'i')
neighbors = []
for x = 1:k
neighbors = cat(1, neighbors, distances(x,1:3))
end
endfunction
function response = classify(neighbors)
len = size(neighbors, 1)
votes = zeros(1, len)
for x = 1:len
guess = neighbors(x, $)
votes(guess) = votes(guess) + 1
end
[amount, index] = max(votes)
response = index
endfunction
function accuracy = getAccuracy(testSet, predictions)
correct = 0
len = size(testSet, 1)
for x = 1:len
if testSet(x, $) == predictions(x) then
correct = correct + 1;
end
end
accuracy = (correct/len) * 100
endfunction
function [predictions, wrong] = knn(trainingSet, testSet, k)
predictions = []
wrong = []
for x = 1:size(testSet, 1)
neighbors = getNeighbors(trainingSet, testSet(x,:), k)
result = classify(neighbors)
predictions = cat(1, predictions, result)
disp('> predicted='+string(result)+', actual='+string(testSet(x,$)))
if testSet(x, $) <> predictions(x) then
wrong = cat(1, wrong, testSet(x, 1:2))
end
end
accuracy = getAccuracy(testSet, predictions)
disp('Accuracy='+string(accuracy)+'%')
endfunction
|
8370b38551bb9a854f7a2c67ca4382925065be75 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1871/CH3/EX3.8/Ch03Ex8.sce | 3dc620bab711addd88140f485aaf558609e57a70 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 749 | sce | Ch03Ex8.sce | // Scilab code Ex3.8 : Pg:108 (2008)
clc;clear;
mu_v = 1.5230; // Refractive index of violet color
mu_r = 1.5145; // Refractive index of red color
R1 = 40; // Radius of curvature of first curvature of lens, cm
R2 = -10; // Radius of curvature of second curvature of lens, cm
// As 1/f_r = (mu_r - 1)*(1/R1 - 1/R2), solving for f_r
f_r = 1/((mu_r-1)*(1/R1 - 1/R2)); // Focal length for red color, cm
f_v = 1/((mu_v-1)*(1/R1 - 1/R2)); // Focal length for violet color, cm
CA = f_r - f_v; // The longitudinal chromatic abberation, cm
printf("\nThe longitudinal chromatic abberation for the object at infinity = %5.3f cm", CA);
// Result
// The longitudinal chromatic abberation for the object at infinity = 0.253 cm |
607d809edbd9c610ce74c1f7891100bed76ab1b7 | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/Computing/testexo2a.sce | f6543c4e920d4389ba4d00b584e86ac0cf0692a2 | [] | 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 | 124 | sce | testexo2a.sce | n=6;m=5;
L=([1:n]')*ones(1,m); // row number
C=ones(n,1)*[1:m]; // column number
D=1+abs(L-C) // diagonal index
|
e41c8960459952205cd829f96e20f77ca638f503 | 449d555969bfd7befe906877abab098c6e63a0e8 | /548/DEPENDENCIES/7_07data.sci | 14dd5a497ce7a8dd6b7bec166e67aa8228e0563f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 94 | sci | 7_07data.sci | h=0.35;//location of center of gravity from leading edge
Hn=0.516;//Neutral point location
|
879fc40cc2ad61ad37babee52eb3cdefe951130c | 6d1f05d2074f1d6f18d3d473f2dbd867c94fc7ee | /giarratano/SOURCE/TESTING/misclns1.tst | 2f878edd53d3587d6fa2f3f423dac29b3be5302d | [] | no_license | arranger1044/icse-1516 | c40d2c86892cd90c14042a95581cbb0e238190fb | ee4bafb57bb549ef40e29b8edf8cdad038e97162 | refs/heads/master | 2020-12-24T19:04:01.588095 | 2016-05-31T07:46:47 | 2016-05-31T07:46:47 | 56,578,768 | 14 | 5 | null | null | null | null | UTF-8 | Scilab | false | false | 341 | tst | misclns1.tst | (set-strategy depth)
(unwatch all)
; misclns1.bat test
(clear)
(open "misclns1.rsl" misclns1 "w")
(dribble-on "misclns1.out")
(batch "misclns1.bat")
(dribble-off)
(load "compline.clp")
(printout misclns1 "misclns1.bat differences are as follows:" crlf)
(compare-files misclns1.exp misclns1.out misclns1)
; close result file
(close misclns1)
|
b8368793839f950ee4019a321a2e41df40009119 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1514/CH20/EX20.4/20_4.sce | ca6fc2427f6474e260e0c4d470cf28b83629bcc7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 352 | sce | 20_4.sce | //chapter 20
//example 20.4
//page 649
clear all;
clc ;
//given
Ip=1;//mA
Vp=65;//mV
Id=1;//mA
Vd=65;//mV
Iv=0.12;//mA
Vv=350;//mV
Vf=500;//mV
Id=[0 Id Iv Iv Ip]
Ed=[0 Vd Vv 450 Vf];
plot(Ed,Id,'-.*');
xtitle('piecewise linear characteristics','Ed in mV','Id in mA');
Rd=-(350-65)/(1-0.12);
printf("\nValue of RD=%d ohm",round(Rd));
|
6d42cd3ec70305e341afe07f8b890a4ec4d63cf8 | 494b677053e1199325a80808377463794e1003e5 | /experiments/sia-c/results/Ignore-MV.SIA-C.vehicle/result7s0.tst | d858bb8cca67f88be67cb8d497e5edbdd51ef3db | [] | no_license | kylecblyth/IIS-Project | 92fb0770addced8022817470f974bf5191bfe05d | abf66fd98d9b6c7c3a0fbc254ef4026641338489 | refs/heads/master | 2020-06-12T19:41:02.430510 | 2016-12-07T10:35:31 | 2016-12-07T10:35:31 | 75,764,815 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,867 | tst | result7s0.tst | @relation vehicle
@attribute COMPACTNESS integer[73,119]
@attribute CIRCULARITY integer[33,59]
@attribute DISTANCECIRCULARITY integer[40,112]
@attribute RADIUSRATIO integer[104,333]
@attribute PRAXISASPECTRATIO integer[47,138]
@attribute MAXLENGTHASPECTRATIO integer[2,55]
@attribute SCATTERRATIO integer[112,265]
@attribute ELONGATEDNESS integer[26,61]
@attribute PRAXISRECTANGULAR integer[17,29]
@attribute LENGTHRECTANGULAR integer[118,188]
@attribute MAJORVARIANCE integer[130,320]
@attribute MINORVARIANCE integer[184,1018]
@attribute GYRATIONRADIUS integer[109,268]
@attribute MAJORSKEWNESS integer[59,135]
@attribute MINORSKEWNESS integer[0,22]
@attribute MINORKURTOSIS integer[0,41]
@attribute MAJORKURTOSIS integer[176,206]
@attribute HOLLOWSRATIO integer[181,211]
@attribute class{van,saab,bus,opel}
@inputs COMPACTNESS,CIRCULARITY,DISTANCECIRCULARITY,RADIUSRATIO,PRAXISASPECTRATIO,MAXLENGTHASPECTRATIO,SCATTERRATIO,ELONGATEDNESS,PRAXISRECTANGULAR,LENGTHRECTANGULAR,MAJORVARIANCE,MINORVARIANCE,GYRATIONRADIUS,MAJORSKEWNESS,MINORSKEWNESS,MINORKURTOSIS,MAJORKURTOSIS,HOLLOWSRATIO
@outputs class
@data
van van
bus bus
van van
van bus
saab saab
van van
van van
bus bus
saab bus
bus saab
bus saab
bus bus
van van
saab saab
saab opel
bus bus
opel saab
saab van
saab saab
van van
bus saab
saab saab
van bus
van van
bus bus
van van
opel bus
bus bus
van van
saab saab
bus bus
bus opel
bus bus
van van
opel opel
saab opel
saab opel
saab saab
saab opel
opel saab
opel opel
bus bus
bus bus
bus bus
opel saab
saab opel
saab opel
opel saab
van van
opel opel
opel saab
saab saab
van van
van van
bus bus
van van
bus bus
saab saab
bus bus
opel opel
opel saab
opel saab
opel opel
saab van
saab opel
bus opel
opel saab
opel saab
opel saab
bus bus
saab saab
van van
opel saab
van bus
opel saab
van van
bus bus
saab opel
saab opel
bus bus
van van
opel saab
opel saab
opel opel
|
641d95acdd20a310bddcfe99d3f97d040a43a129 | 449d555969bfd7befe906877abab098c6e63a0e8 | /167/CH7/EX7.3/ex3.sce | 28833f01cf9fcd6ae6ff78d62f66fe44c8d2105a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | WINDOWS-1252 | Scilab | false | false | 828 | sce | ex3.sce | //ques3
//Entropy Change of a Substance in a Tank
clear
clc
//specific volume remains constant during this process
//state 1
P1=140//initial pressure in kPa
T1=20 //initial temperature in C
s1=1.0624//entropy in kJ/Kg.K from table
v1=0.16544//specific volume in m^3/Kg
//state 2
P2=100//pressure in kPa
v2=0.16544//specific volume remains same ie v2=v1
//from table
vf=0.0007259//specific volume of saturated water in m^3/kg
vg=0.19254//specific volume of saturated vapor in m^3/kg
//Final state-saturated liquid–vapor mixture
x2=(v2-vf)/(vg-vf);//x-factor
sf=0.07188//entropy of saturated water in kJ/Kg.K
sfg=0.87995//entropy change in kJ/kg.K
s2=sf+x2*sfg;//entropy at state 2 in kJ/kg.K
m=5//mass in Kg
S=m*(s2-s1);//entropy change in process in kJ
printf('Entropy change = %.3f kJ',S);
|
82f26e53836f9b466accc32957cb77591acf19eb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1092/CH13/EX13.5/Example13_5.sce | 913e7ed1352bd055f91bbf7bb0a99446af030077 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,855 | sce | Example13_5.sce | // Electric Machinery and Transformers
// Irving L kosow
// Prentice Hall of India
// 2nd editiom
// Chapter 13: RATINGS,SELECTION,AND MAINTENANCE OF ELECTRIC MACHINERY
// Example 13-5
clear; clc; close; // Clear the work space and console.
// Given data
P_o = 50 ; // Power rating of the WRIM in hp
// Class F insulation
T_hottest = 160 ; // Hottest-spot winding temperature recorded by the embedded
// hot-spot detectors in degree celsius
T_ambient = 40 ; // Standard ambient temperature recorded by the embedded
// hot-spot detectors in degree celsius
P_f_a = 40 ; // Power rating of load a in hp
P_f_b = 55 ; // Power rating of load a in hp
// Calculations
// case a
delta_T_o = T_hottest - T_ambient ; // Temperature rise for the insulation type
// used in degree celsius
// subscript a in delta_T_f ,P_f_a and T_f indicates case a
delta_T_f_a = (P_f_a/P_o)*delta_T_o ; // final temperature rise in degree celsius
T_f_a = delta_T_f_a + T_ambient ; // Approximate final hot-spot temperature in degree celsius
// case b
// subscript b in delta_T_f ,P_f and T_f indicates case b
delta_T_f_b = (P_f_b/P_o)*delta_T_o ; // final temperature rise in degree celsius
T_f_b = delta_T_f_b + T_ambient ; // Approximate final hot-spot temperature in degree celsius
// Display the results
disp("Example 13-5 Solution : ");
printf(" \n a: ΔT_o = %d degree celsius ",delta_T_o);
printf(" \n ΔT_f = %d degree celsius ",delta_T_f_a);
printf(" \n T_f = %d degree celsius \n",T_f_a);
printf(" \n b: ΔT_f = %d degree celsius ",delta_T_f_b);
printf(" \n T_f = %d degree celsius \n",T_f_b);
printf(" \n Yes,motor life is reduced at the 110 percent motor load because");
printf(" \n the allowable maximum hot-spot motor temperature for Class F");
printf(" \n insulation is 155 degree celsius.");
|
beddcbcb3f405e8aa9f66960656e765713eb9854 | 449d555969bfd7befe906877abab098c6e63a0e8 | /443/CH17/EX17.13/17_13.sce | ab34733e7a120dd41e68bbfb5323ca9ca741408e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 651 | sce | 17_13.sce | pathname=get_absolute_file_path('17_13.sce')
filename=pathname+filesep()+'17_13_data.sci'
exec(filename)
//Brake power(in kW)
bp=(W*g*N*C)/60000
//Brake thermal efficiency
nbth=(bp*60)/(mf*CV)
//Indicated thermal effciency
nith=(nbth/nm)*100
//Indicated mean effective pressure(in bar)
imep=(bp*60000)/(nm*L*0.25*%pi*D^2*0.5*N*K)*10^-5
//Brake specific fuel consumption(in kg/kWh)
bsfc=(mf*60)/bp
printf("\n\nRESULTS\n\n")
printf("\nBrake thermal effciency:%f\n",nbth*100)
printf("\nIndicated thermal effciency:%f\n",nith)
printf("\nIndicated mean effective pressure:%f\n",imep)
printf("\nBrake specific fuel consumption:%f\n",bsfc)
|
2093feda470e48045027728f834be79231f902af | 449d555969bfd7befe906877abab098c6e63a0e8 | /1418/CH27/EX27.4/EX27_4.sce | 6c81311923a89090c4c0d2fdfc26555a7527831b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,288 | sce | EX27_4.sce | //EXAMPLE 27.4
//4-POLE GENERATOR
clc;
funcprot(0);
//Variable Initialisation
P=4;...........//Total number of poles
Z=492;..........//Total number of conductors
Ia=143+10;...........//Armature current in Amperes(Current supplied + Shunt field current)
b=10;...........//Actual brush lead in degrees
Al=P;............//Number of parallel paths in a lap wound generator
Aw=2;...........//Number of parallel paths in a wave wound generator
I1=Ia/Al;.....//Current per path for lap wound in Amperes
I2 =Ia/Aw;.....//Current per path for wave wound in Amperes
ATd1=Z*I1*b/360;.......//Demagnetizing ampere-turns per pole for lap wound
y=round(ATd1);.....//Rounding of decimal places
sft1=y/b;........//Extra shunt field turns for lap wound
r=round(sft1);......//Rounding of decimal places
ATd2=Z*I2*b/360;.....//Cross-magnetizinfampere-turns per pole for wave wound
y1=round(ATd2);......//Rounding of decimal places
sft2=y1/b;..........//Extra shunt field turns for wave wound
r1=round(sft2);.......//Rounding of decimal places
disp(y,"Demagnetizing ampere-turns per pole for lap wound:");
disp(r,"Extra shunt field turns for lap wound:");
disp(y1,"Demagnetizing ampere-turns per pole for wave wound:");
disp(r1,"Extra shunt field turns for wave wound:");
|
7da69cfc1f895a1f233101fc84d3f22a9e2669e2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1697/CH3/EX3.6/Exa3_6.sce | 6863a07a58e0665cdd6e10553d5a0f7a58ee9318 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 953 | sce | Exa3_6.sce | //Exa 3.6
clc;
clear;
close;
//given data :
//l=lambda/15 meter
//Assume %pi^2 = 10
Rl=2;//in Ohm
//Gain :
Gain=5.33/4;//Unitless
//Directivity
Rr=80*10*(1/15)^2;//in Ohm
ETA=Rr/(Rr+Rl);//Unitless
Directivity=Gain/ETA;//unitless
//Beam solid angle
BSA=4*%pi/Directivity;//in steradian
disp(Directivity,"Directivity : ");
disp(Gain,"Gain = Pt/Pr = ");
//Effective aperture
disp("Effective aperture = G*lambda^2/(4*%pi) ");
disp(string(Gain/(4*%pi))+"lambda^2");
disp(BSA,"Beam Solid Angle in steradian : ");
disp("Radiation Resistance :")
disp("Rr=80*%pi^2*(dl/lambda)^2 in Ohm");
disp("dl/lambda = 1/15 : as l=lambda/10 ");
Rr=80*10*(1/15)^2;//in Ohm
disp(Rr,"Radiation Resistance in Ohm : ");
disp("Pt = Area of sphere * (E^2/(120*%pi))");
disp("Pt = ((4*%pi^2)/(120*%pi))*((60*%pi*I/r)*(dl/lambda)^2)");
disp("Pt=120*%pi^2*(lambda*15/lambda)*I^2");
disp("Pt = "+string(120*10/225)+"I^2");
disp("Pr = I^2*Rr = 4*I^2"); |
f0f354d45bb2215cc72257c1ba7b95cf5aa3eacd | 1b969fbb81566edd3ef2887c98b61d98b380afd4 | /Rez/bivariate-lcmsr-post_mi/bfas_nw_bfa_mt_d/~BivLCM-SR-bfas_nw_bfa_mt_d-PLin-VLin.tst | 1bd4521dda8bf4209a702ed4650dcc3c754b6e3e | [] | no_license | psdlab/life-in-time-values-and-personality | 35fbf5bbe4edd54b429a934caf289fbb0edfefee | 7f6f8e9a6c24f29faa02ee9baffbe8ae556e227e | refs/heads/master | 2020-03-24T22:08:27.964205 | 2019-03-04T17:03:26 | 2019-03-04T17:03:26 | 143,070,821 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 11,974 | tst | ~BivLCM-SR-bfas_nw_bfa_mt_d-PLin-VLin.tst |
THE OPTIMIZATION ALGORITHM HAS CHANGED TO THE EM ALGORITHM.
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 0.446554D+00
2 -0.603996D-02 0.363568D-02
3 0.837217D-01 -0.372349D-03 0.442359D+00
4 -0.622759D-03 0.793500D-03 -0.615097D-02 0.378185D-02
5 -0.305237D-03 -0.246094D-04 -0.170908D-02 0.134610D-03 0.205052D-02
6 -0.108578D-02 0.537074D-04 -0.364014D-03 0.630398D-04 -0.223168D-03
7 -0.889490D-03 0.473331D-04 0.896038D-03 0.637948D-04 0.376215D-04
8 -0.627418D-03 0.452553D-04 -0.464877D-03 0.347503D-04 -0.878718D-04
9 0.325154D+00 -0.385277D-01 -0.590432D+00 0.396028D-01 0.422219D-01
10 0.133200D+00 -0.351990D-02 0.474724D-01 0.744427D-02 0.120970D+00
11 0.255654D+00 -0.629146D-02 0.346275D+00 0.984033D-02 -0.381709D-01
12 0.735149D+00 0.637678D-02 0.687794D+00 0.256038D-01 0.116853D-01
13 -0.671869D-01 0.108680D-02 -0.125609D+00 0.128068D-01 0.243475D-01
14 0.829790D-01 0.143607D-01 0.115582D+00 0.128044D-02 -0.214376D-01
15 0.940914D+00 0.623077D-01 -0.126411D+01 -0.267787D-02 -0.685590D-01
16 0.594936D-01 0.429654D-03 -0.286092D-01 0.277099D-02 0.993696D-05
17 -0.692297D-02 0.392527D-03 0.112269D-01 0.458140D-04 -0.719068D-03
18 -0.151737D+01 0.962871D-02 -0.554150D+00 0.168005D-02 0.178898D-01
19 -0.439703D-01 0.371198D-02 -0.142844D+00 0.798105D-02 0.648895D-02
20 -0.618679D+00 -0.277829D-01 0.187578D+01 0.573564D-02 -0.651139D-01
21 -0.205419D-01 0.312844D-02 0.193483D+00 -0.121943D-01 -0.782754D-02
22 0.125365D-01 -0.420259D-04 0.698571D-03 0.520523D-03 -0.247123D-03
23 0.191147D-01 -0.169779D-03 -0.795397D-02 0.113609D-01 -0.934878D-03
24 0.370882D-03 0.455086D-03 0.189536D-02 -0.331469D-03 0.496257D-03
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 0.795916D-03
7 0.570980D-03 0.259026D-02
8 0.279169D-03 -0.152490D-03 0.298008D-02
9 -0.242087D-02 0.441478D-01 0.228235D-01 0.984704D+02
10 -0.794684D-03 0.603489D-02 0.628557D-02 0.986879D+00 0.257852D+02
11 0.168744D-01 0.270577D-01 0.366372D-01 0.180892D+02 -0.214298D+01
12 -0.297580D-01 0.926513D-02 0.892463D-01 0.724764D+01 0.469692D+01
13 0.629330D-01 0.113286D+00 0.391062D-01 0.211233D+01 0.373333D+01
14 0.485139D-01 0.420116D-01 0.372821D+00 0.257675D+01 0.579227D+01
15 -0.770249D-01 -0.502082D-01 0.575960D-01 -0.109193D+02 -0.966543D+01
16 -0.191756D-02 -0.167917D-02 0.698638D-04 0.667973D+00 -0.866122D-01
17 0.454282D-03 0.165975D-04 0.861438D-04 -0.198093D+00 -0.908065D-01
18 -0.565370D-01 -0.105162D+00 0.187626D-01 -0.604064D+01 -0.157424D+01
19 -0.103472D-01 0.820964D-02 0.483248D-02 0.134724D+01 0.445507D+00
20 -0.607430D-02 0.340376D-01 -0.330731D+00 -0.986809D+01 -0.439097D+00
21 0.848293D-02 -0.968132D-02 0.130298D-03 -0.574501D+00 -0.819533D+00
22 -0.580133D-04 -0.144477D-03 -0.697134D-03 -0.578047D-01 -0.104476D-01
23 0.566478D-03 0.264940D-02 -0.482727D-03 -0.579904D+00 -0.282075D-02
24 -0.282500D-03 -0.740634D-03 0.225061D-03 0.136321D+00 -0.528932D-02
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 0.608260D+02
12 0.233308D+02 0.169371D+03
13 -0.486318D+01 0.147377D+01 0.231822D+02
14 0.767926D+01 0.107678D+02 0.154113D+02 0.111028D+03
15 0.384778D+01 0.235240D+02 -0.102193D+02 0.759680D+00 0.524717D+03
16 -0.161516D+00 -0.278476D+00 -0.182740D+00 0.568621D-01 0.608309D+01
17 0.184308D-02 -0.531531D-01 0.405498D-01 0.226358D-01 -0.273133D+01
18 0.132742D+01 0.922296D+00 -0.991093D+01 -0.651085D+01 0.742367D+02
19 -0.204176D+01 0.534299D+00 0.255254D+00 0.196965D+01 -0.461994D+01
20 -0.137007D+01 -0.272456D+02 -0.103353D+02 -0.696184D+02 0.394933D+02
21 0.226858D+01 -0.630683D+00 -0.564888D+00 -0.140295D+01 0.568510D+01
22 -0.830013D-01 -0.206698D-01 -0.104559D-01 -0.109552D+00 -0.131256D+00
23 0.811688D+00 0.121186D+01 0.723904D-01 -0.274308D+00 0.194913D+00
24 -0.617498D-01 -0.137265D+00 -0.277725D-01 -0.301075D-01 -0.209093D+00
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 0.832346D+00
17 -0.760177D-01 0.306241D-01
18 0.100575D+01 -0.300308D+00 0.338718D+03
19 -0.960888D-01 0.520588D-01 -0.431900D+00 0.799625D+01
20 -0.200353D-01 -0.250478D+00 0.745457D+02 -0.823336D+01 0.557948D+03
21 0.444971D+00 -0.641802D-01 0.697041D+01 -0.737750D+01 0.932490D+01
22 -0.725739D-02 0.295562D-02 -0.165666D+01 -0.282041D-01 -0.276063D+00
23 0.931465D-01 -0.971502D-02 -0.170718D+00 -0.364094D+00 0.605966D+01
24 -0.689998D-02 0.281357D-02 -0.133769D+00 0.544085D-01 -0.250155D+01
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 0.918836D+01
22 -0.837541D-01 0.189302D-01
23 0.709126D+00 -0.769323D-02 0.919708D+00
24 -0.753576D-01 0.325364D-02 -0.840903D-01 0.267396D-01
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 1.000
2 -0.150 1.000
3 0.188 -0.009 1.000
4 -0.015 0.214 -0.150 1.000
5 -0.010 -0.009 -0.057 0.048 1.000
6 -0.058 0.032 -0.019 0.036 -0.175
7 -0.026 0.015 0.026 0.020 0.016
8 -0.017 0.014 -0.013 0.010 -0.036
9 0.049 -0.064 -0.089 0.065 0.094
10 0.039 -0.011 0.014 0.024 0.526
11 0.049 -0.013 0.067 0.021 -0.108
12 0.085 0.008 0.079 0.032 0.020
13 -0.021 0.004 -0.039 0.043 0.112
14 0.012 0.023 0.016 0.002 -0.045
15 0.061 0.045 -0.083 -0.002 -0.066
16 0.098 0.008 -0.047 0.049 0.000
17 -0.059 0.037 0.096 0.004 -0.091
18 -0.123 0.009 -0.045 0.001 0.021
19 -0.023 0.022 -0.076 0.046 0.051
20 -0.039 -0.020 0.119 0.004 -0.061
21 -0.010 0.017 0.096 -0.065 -0.057
22 0.136 -0.005 0.008 0.062 -0.040
23 0.030 -0.003 -0.012 0.193 -0.022
24 0.003 0.046 0.017 -0.033 0.067
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 1.000
7 0.398 1.000
8 0.181 -0.055 1.000
9 -0.009 0.087 0.042 1.000
10 -0.006 0.023 0.023 0.020 1.000
11 0.077 0.068 0.086 0.234 -0.054
12 -0.081 0.014 0.126 0.056 0.071
13 0.463 0.462 0.149 0.044 0.153
14 0.163 0.078 0.648 0.025 0.108
15 -0.119 -0.043 0.046 -0.048 -0.083
16 -0.075 -0.036 0.001 0.074 -0.019
17 0.092 0.002 0.009 -0.114 -0.102
18 -0.109 -0.112 0.019 -0.033 -0.017
19 -0.130 0.057 0.031 0.048 0.031
20 -0.009 0.028 -0.256 -0.042 -0.004
21 0.099 -0.063 0.001 -0.019 -0.053
22 -0.015 -0.021 -0.093 -0.042 -0.015
23 0.021 0.054 -0.009 -0.061 -0.001
24 -0.061 -0.089 0.025 0.084 -0.006
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 1.000
12 0.230 1.000
13 -0.130 0.024 1.000
14 0.093 0.079 0.304 1.000
15 0.022 0.079 -0.093 0.003 1.000
16 -0.023 -0.023 -0.042 0.006 0.291
17 0.001 -0.023 0.048 0.012 -0.681
18 0.009 0.004 -0.112 -0.034 0.176
19 -0.093 0.015 0.019 0.066 -0.071
20 -0.007 -0.089 -0.091 -0.280 0.073
21 0.096 -0.016 -0.039 -0.044 0.082
22 -0.077 -0.012 -0.016 -0.076 -0.042
23 0.109 0.097 0.016 -0.027 0.009
24 -0.048 -0.065 -0.035 -0.017 -0.056
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 1.000
17 -0.476 1.000
18 0.060 -0.093 1.000
19 -0.037 0.105 -0.008 1.000
20 -0.001 -0.061 0.171 -0.123 1.000
21 0.161 -0.121 0.125 -0.861 0.130
22 -0.058 0.123 -0.654 -0.072 -0.085
23 0.106 -0.058 -0.010 -0.134 0.268
24 -0.046 0.098 -0.044 0.118 -0.648
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 1.000
22 -0.201 1.000
23 0.244 -0.058 1.000
24 -0.152 0.145 -0.536 1.000
|
8b32ae7c219908f61ed379fbb9d1a8ef4ca495d2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /83/CH6/EX6.5/example_6_5.sce | 8e7eb917e3bd783d3fdd3d383c90dbc0cab5c4fa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 3,187 | sce | example_6_5.sce | //Chapter 6
//Example 6.5
//page 210
//To find bus voltages and Reactive power injected using GS iterations
clear;clc;
//Ybus matrix from the network
Ybus=[3-9*%i -2+6*%i -1+3*%i 0;
-2+6*%i 3.666-11*%i -0.666+2*%i -1+3*%i
-1+3*%i -0.666+2*%i 3.666-11*%i -2+6*%i
0 -1+3*%i -2+6*%i 3-9*%i]
//Case(i)
//////////////////////////////////////////////////////
//Pi Qi Vi Remarks Bus no//
P1=0; Q1=0; V1=1.04; //Slack bus 1
P2=0.5; Q2=0.2; V2=1.04; //PVbus 2
P3=-1.0; Q3=0.5; V3=1; //PQbus 3
P4=0.3; Q4=-0.1; V4=1; //PQbus 4
/////////////////////////////////////////////////////
printf('\nCase(i) When 0.2<Q2<1 pu and running for 1 iteration,we get \n\n');
Q2min=0.2;Q2max=1;
n=1;
for i=1:n
if Q2<Q2min then
Q2=Q2min;
V2=(1/Ybus(2,2))*(((P2-%i*Q2)/conj(V2))-Ybus(2,1)*V1-Ybus(2,3)*V3-Ybus(2,4)*V4);
elseif Q2>Q2max then
Q2=Q2max;
V2=(1/Ybus(2,2))*(((P2-%i*Q2)/conj(V2))-Ybus(2,1)*V1-Ybus(2,3)*V3-Ybus(2,4)*V4);
else
Q2=-imag(conj(V2)*Ybus(2,1)*V1+conj(V2)*(Ybus(2,2)*V2+Ybus(2,3)*V3+Ybus(2,4)*V4));
[mag,delta2]=polar((1/Ybus(2,2))*(((P2-%i*Q2)/(conj(V2)))-Ybus(2,1)*V1-Ybus(2,3)*V3-Ybus(2,4)*V4));
V2=abs(V2)*(cos(delta2)+%i*sin(delta2));
end
V3=(1/Ybus(3,3))*(((P3-%i*Q3)/conj(V3))-Ybus(3,1)*V1-Ybus(3,2)*V2-Ybus(3,4)*V4);
V4=(1/Ybus(4,4))*(((P4-%i*Q4)/conj(V4))-Ybus(4,1)*V1-Ybus(4,2)*V2-Ybus(4,3)*V3);
end
printf('Q2=');disp(Q2);printf('pu');
printf('\n\n\ndelta2=');disp(abs(delta2));printf('rad');
printf('\n\n\nV1=');disp(V1);printf('pu');
printf('\n\n\nV2=');disp(V2);printf('pu');
printf('\n\n\nV3=');disp(V3);printf('pu');
printf('\n\n\nV4=');disp(V4);printf('pu');
// case(ii)
printf('\n\n\nCase(ii) When 0.25<Q2<1 pu and running for 1 iteration,we get \n\n');
//////////////////////////////////////////////////////
//Pi Qi Vi Remarks Bus no//
P1=0; Q1=0; V1=1.04; //Slack bus 1
P2=0.5; V2=1.04; //PVbus 2
P3=-1.0; Q3=0.5; V3=1; //PQbus 3
P4=0.3; Q4=-0.1; V4=1; //PQbus 4
/////////////////////////////////////////////////////
Q2min=0.25;Q2max=1;
n=1;
for i=1:n
if Q2<Q2min then
Q2=Q2min;
V2=(1/Ybus(2,2))*(((P2-%i*Q2)/conj(V2))-Ybus(2,1)*V1-Ybus(2,3)*V3-Ybus(2,4)*V4);
elseif Q2>Q2max then
Q2=Q2max;
V2=(1/Ybus(2,2))*(((P2-%i*Q2)/conj(V2))-Ybus(2,1)*V1-Ybus(2,3)*V3-Ybus(2,4)*V4);
else
Q2=-imag(conj(V2)*Ybus(2,1)*V1+conj(V2)*(Ybus(2,2)*V2+Ybus(2,3)*V3+Ybus(2,4)*V4));
[mag,delta2]=polar((1/Ybus(2,2))*(((P2-%i*Q2)/(conj(V2)))-Ybus(2,1)*V1-Ybus(2,3)*V3-Ybus(2,4)*V4));
V2=abs(V2)*(cos(delta2)+%i*sin(delta2));
end
V3=(1/Ybus(3,3))*(((P3-%i*Q3)/conj(V3))-Ybus(3,1)*V1-Ybus(3,2)*V2-Ybus(3,4)*V4);
V4=(1/Ybus(4,4))*(((P4-%i*Q4)/conj(V4))-Ybus(4,1)*V1-Ybus(4,2)*V2-Ybus(4,3)*V3);
end
printf('Q2=');disp(Q2);printf('pu');
printf('\n\n\nV1=');disp(V1);printf('pu');
printf('\n\n\nV2=');disp(V2);printf('pu');
printf('\n\n\nV3=');disp(V3);printf('pu');
printf('\n\n\nV4=');disp(V4);printf('pu');
|
d5de45360ccec90cb981f0ac4d6c69ef6389842d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2507/CH8/EX8.11/Ex8_11.sce | 4015fbdd3af87ad05173666730a32b2808ee49e2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 192 | sce | Ex8_11.sce | clc
clear
printf("Example 8.11 | Page number 224 \n\n");
//This is a theoritical question.Refer textbook for solution
printf("This is a theoritical question.Refer textbook for solution")
|
b75340743521d28dae3debc878c61a4cdc9ecb93 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2084/CH16/EX16.16w/16_16w.sce | ac77d60c5476ca549ffe715a9ebf18f35661ccdd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 950 | sce | 16_16w.sce | //developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 16.16w
//calculation of the speed,wavelength in the rod,frequency,wavelength in the air
//given data
l=90*10^-2//length(in m) of the rod
rho=2600//density(in kg/m^3) of the aluminium
Y=7.80*10^10//Young modulus(in N/m^2)
vai=340//speed(in m/s) of the sound in the air
//calculation
v=sqrt(Y/rho)//speed of the sound in aluminium
lambda=2*l//wavelength....since rod vibrates with fundamental frequency
nu=v/lambda//frequency
lambdaai=vai/nu//wavelength in the air
printf('the speed of the sound in aluminium is %d m/s',v)//Textbook Correction : correct answer is 5477 m/s
printf('\nthe wavelength of the sound in aluminium rod is %d cm',lambda*10^2)
printf('\nthe frequency of the sound produced is %d Hz',nu)//Textbook Correction : correct answer is 3042 Hz
printf('\nthe wavelength of the sound in air is %3.1f cm',lambdaai*10^2)
|
a2757f715544903e082ce766fddb4c52b7827044 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1442/CH11/EX11.3/11_3.sce | 7eb9a96a75edcb7847b84ec20ed2bc0c8fa515aa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 866 | sce | 11_3.sce | clc
//initialisation of variables
h11= 2786.2 //kJ/kg
h12= 340.5 //kJ/kg
h7= 327.9 //kJ/kg
h6= 169.0 //kJ/kg
h10= 756.7 //kJ/kg
h9= 480.9 //kJkg
h14= 2818 //kJ.kg
h15= 762.8 //kJ/kg
h8= 462.7 //kJ/kg
h13= 2974.5 //kJ/kg
h5= 168.8 //kJ/kg
P= 150 //kW
v1= 0.02293 //m^3/kg
v= 40 //m/s
h1= 3448.6 //kJ/kg
h3= 3478.5 //kJ/kg
h2= 2818 //kJ/kg
h4= 2527.1 //kJ/kg
//CALCULATIONS
y1= (h10-h9)/(h14-h15)
y2= ((h8-h7)-y1*(h15-h7))/(h13-h7)
y3= (h7-h6)*(1-y1-y2)/(h11-h12)
qin= h1-h10+(1-y1)*(h3-h2)
qout= (h5-h4)*(1-y1-y2)+y3*(h4-h12)
wnet= qin+qout
n= wnet*100/qin
m1= P*1000/wnet
A1= m1*v1/v
D= sqrt(4*A1/%pi)
//RESULTS
printf (' quality= %.4f ',y1)
printf (' \n quality= %.4f ',y2)
printf (' \n quality= %.4f ',y3)
printf (' \n efficiency= %.2f percent',n)
printf (' \n mass flow rate= %.2f kg/s',m1)
printf (' \n diameter= %.3f m',D)
|
e11bb17c17da5898d39667833067bd13a1bb3928 | 647d696ffce30309ca818e60a7ce0311a6fe8f16 | /week#3/notes.tst | b492ef1d771715b4206970598e27cd3b7acd534f | [] | no_license | rahuljain81/CloudComputing_GL | c0aafeed8522e7db63ddc4da74089d1bb8f8c1fc | af2656fff6e1d42a685392c0fb425d7153f9dc9b | refs/heads/main | 2023-05-09T08:38:17.130740 | 2021-06-04T17:52:58 | 2021-06-04T17:52:58 | 368,904,102 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,899 | tst | notes.tst | Auto Scaling
- Self Healing/ Self Recovery Infrastructure
- Auto Scaling Group (ASG) - Ability to monitor existing resource utilization and when certain threshold is breached, they are able to take action.
- Implementation of elasticity from AWS.
- Terminate EC2 if required.
- Triggers
- Upper limit
- Lower Limit
- Minimum Size (minimum contribution to target should be 1 instance)
- Cloud Watch - monitoring capability which keeps an hawk eye on utiliztion and raises an alarm on which autoscaling group has to take action.
- Custom AMI & Boot Strap Scripts controlledwhen Instance is added by Auto Scaling Group.
- ASG - Launch Configuration or Template - these are used to spawn an EC2 instance and install required s/w to make it ready for ASG.
- Launch Template - 5 teams and want to make sure
Auto Scaing Guidance - we don't miss on mandatory parameters when Launch Template is being used.
ASG - Network Interface option will not be used
ASG and Lunch Template should not be looked in context of elasticity. It should also be very effective in maintaining the infrastructure.
launch template is immutable. only option is copy template with new version.
Launch Template is a regional resource and available only in a specific region.
A single Launch Template can be used by multiple ASG. 1:Many Relationship.
Configuration Dissodance/Configuration Drift - change in configuration in launch template than in production.
On Demand is always prioritized.
Min Size, Desired Capacity and Maximum Size (Artificial upper limit) where Desired Capacity >= Min Size.
Instance Scale-in protection -
* enable during my observation window. at no point, ASG will not remove any instance during my peak period. So, it will help me to justify my decision what is the max size of ASG.
* No SqL Instance - Horizontal Scaling.
That instance will hold some data. How can be arbitary remove the instance.
* Instances where you want to avoid Scale-In by ASG.
Target Tracking Scaling Policy.
Denial of Service Attack
Scaling Policy - Step scaling or simple scaling
AMI are region centric.
EFS - mounted across multiple EC2 instances.
- in AZ, multiple subnets can exist. One Mount Target in any of the subnet for all EC2 instances in that particular AZ.
- Mount Target will get an IP addres, EC2 has to open nfs port 2049 and atatch tht security group to EC2.
- Unlike EBS, amout is charged with data stored and expand file system at point of time.
- Lifecycle Management - moving the data to infrquently stored data.
- Performance Modes - General Purpose & Max I/O :for big data, mny I/O operation, so mode is Max I/O.
- Throughput Mode - Bursting or Provisioned.
- Migration will be required if you want to change performance mode of EFS.
- Credit Concept exist.
- It is not a cross region service.
S3 - Object Based storage.
- 100 soft limit buckets/account. Globally unique names.
- Minimum File Size is 0Bytes and Max 5 TB, chunk size is 5Gb for multi part upload.
- Once enabled versioning, disabled can't be done, only suspend versioning is possible.
- Content Creation (sunrise to sunset of content creation)
Lifecycle of content - Current -> Reduced Redundancy -> Infrquently Accessed ->Archival (Glacier Service) -> Auto Delete the content
- 99.999,999,999 (11 9s) durability. 10 copies of your data by default.
- Multi Region Replication.
- S3 source of data + CDN (Cloud Front) as cache.
- Reverse Syncronisation (update Cache and document travels back to S3. Bi Directional Data flow)
- Static Work of website goes to S3 which in front is CDN. If no dynamic content, then no application server required, no http server required.
- Eventual Consistency (Strong Read after write for a new file but for a old file, it is eventual consistency)
- Key Value (Key is file name)
- Object Lock - Write Once Read Many (WORM)
- Intelligent Tearing
- Storage Classes
- standard - replica >= 3
- infrequently accessed (not old enough to be archived) - min 30 days old
- Standard -> One Zone ->Reduced Redundancy -> Intelligent Tiering -> Glacier -> Glacier Deep Archive
- Transfer Acceleration (Data replicated. Customer can access and update document around the world)
- Once we create replication rule, exisitng content in bucket will not be replicated over.
- Delete Marker for soft delete of files deleted. Delete Marker + Delete => permanently deleting the file. Nice way of recovering the documents accidently deleted.
- Deleting the deleting marker doesn't delete on replica.
- CORS (Cross Origin Resource Sharing)
- Storage Lens - View across all buckets , Matrix View - only for a bucket. |
f2eeff959735e6f06bee3cfe6a99af96d0b1a18a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3733/CH2/EX2.1/Ex2_1.sce | efd2db49ef2843237eb8e83a8436a2d9662482c0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 425 | sce | Ex2_1.sce | // Example 2_1
clc;funcprot(0);
//Given data
R=6.2;//Rainfall in cm
A=2346;// Area in km^2
//Calculation
Tr=A*10^6*(R/100);// Total rainfall in m^2
V=(A*R*10^4)/86400;// Rainfall in day-sec-metre
R_k=(A*R*10^4)/10^6;// Rainfall in km^2-m
printf('\n Total rainfall=%0.4e m^3 \nVolume of rainfall=%0.0f day-sec-metre \nRainfall in km^2-m=%0.2f km^2-m',Tr,V,R_k);
// The answer provided in the textbook is wrong
|
b0cd8d95b93e251c4ce0bf2a9ed57bed71258aad | 449d555969bfd7befe906877abab098c6e63a0e8 | /2873/CH7/EX7.13/Ex7_13.sce | acad1c235d3df5f3d42dbc028409fdb6cdb50c54 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 498 | sce | Ex7_13.sce | // Display modeK
mode(0);
// Display warning for floating point exception
ieee(1);
clear;
clc;
disp("Engineering Thermodynamics by Onkar Singh Chapter 7 Example 13")
T_min=(20+273);//minimum temperature reservoir temperature in K
T_max=(500+273);//maximum temperature reservoir temperature in K
n=0.25;//efficiency of heat engine
disp("reversible engine efficiency,n_rev=1-(T_min/T_max)")
n_rev=1-(T_min/T_max)
disp("second law efficiency=n/n_rev")
n/n_rev
disp("in %")
n*100/n_rev
|
476b00e0ee114e3b9f873f64a4e17aa3420b16c5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1004/CH3/EX3.7/Ch03Ex7.sci | 5f3bf03acf9c3435f636053acd0eb7ddbdf791d6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 711 | sci | Ch03Ex7.sci | // Scilab code: Ex3.7: de-Broglie wavelength of electrons: Pg: 80 (2008)
L_1 = 3e-07; // Wavelength of ultraviolet light, m
L_0 = 4e-07; // Threshold wavelength of ultraviolet light, m
m = 9.1e-031; // Mass of an electron, kg
c = 3e+08; // Velocity of light, m/s
h = 6.624e-034; // Plancks constant, joule-second
U = h*c*(1/L_1-1/L_0); // Maximum Kinetic energy of emitted electrons, joule
// since U = m*v^2/2, Kinetic energy of electrons, joule
// Thus v = sqrt(2*U/m), so that L_2 becomes
L_2 = h/sqrt(2*m*U); // wavelength of electrons, m
printf("\nThe wavelength of the electrons = %3.1f angstorm", L_2/1e-010);
// Result
// The wavelength of the electrons = 12.1 angstorm |
9255a889aa32919801c73823bdc3edafdea5972a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2792/CH2/EX2.9/Ex2_9.sce | a12aa7b5def74c51908d613a9afa1ce80f2d8ff0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 2,164 | sce | Ex2_9.sce | clc
h=1.05*10^-34
disp("h = "+string(h)+"Js") //initializing value of reduced plancks constant or dirac constant or h-bar
mo = 9.1*10^-31
disp("mo = "+string(mo)+"kg") //initializing value of mass of electron
me = 0.067*mo
disp("me* = "+string(me)+"kg") //initializing value of effective mass of GaAs
kbT = 4.16*10^-21
disp("kbT = "+string(kbT)+"J/K") //initializing value of kbT at 300K
Nc=2*(((me*kbT)/(2*%pi*(h^2)))^(3/2))
disp("for GaAs conduction band case effective density of states is ,Nc = 2*(((me*kbT)/(2*%pi*(h^2)))^(3/2)) = "+string(Nc)+"m^-3")//calculation
ml = 0.98*mo
disp("ml* = "+string(ml)+"kg") //initializing value of longitudinal mass
mt = 0.19*mo
disp("mt*= "+string(mt)+"kg")//initializing value of transverse mass
mdos = (((6)^(2/3))*((ml)*((mt)^2))^(1/3))
disp("The conduction band density of states mass is (mdos* = (((6)^(2/3))*((ml*)*((mt*)^2))^(1/3)))= "+string(mdos)+"kg")//calculation
Nc1 = 2*((mdos*kbT)/(2*(%pi)*(h^2)))^(3/2)
disp("for silicon conduction band case effective density of states is ,Nc = 2*((mdos*kbT)/(2*(%pi)*(h^2)))^(3/2) = "+string(Nc1)+"m^-3")//calculation
// Note : due to different precisions taken by me and the author ... my answer differ
disp(" for silicon ")
mhh =0.5*mo
disp("mhh* = "+string(mhh)+"kg") //initializing value of heavy hole mass for silicon
mlh = 0.15*mo
disp("mlh*= "+string(mlh)+"kg")//initializing value of light hole mass for silicon
Nv1 =((kbT/(2*(%pi)*(h^2)))^(3/2))*2*(mhh^(3/2)+mlh^(3/2))
disp("for silicon valence band case effective density of states is ,Nv = 2*(mhh^(3/2)+mlh^(3/2))*(kbT/(2*(%pi)*(h^2)))^(3/2)= "+string(Nv1)+"m^-3")//calculation
disp("for GaAs ")
mhh1 =0.45*mo
disp("mhh* = "+string(mhh1)+"kg") //initializing value of heavy hole mass
mlh1 = 0.08*mo
disp("mlh*= "+string(mlh1)+"kg")//initializing value of light hole mass
Nv = 2*(mhh1^(3/2)+mlh1^(3/2))*((kbT/(2*(%pi)*(h^2)))^(3/2))
disp("for GaAs valence band case effective density of states is ,Nv = 2*(mhh1^(3/2)+mlh1^(3/2))*(kbT/(2*(%pi)*(h^2)))^(3/2)= "+string(Nv)+"m^-3")//calculation
// Answer given in the book for valence band case is wrong
|
dfc61f33a1c90a7f0600de1054f4fa153f6ca082 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2732/CH7/EX7.2/Ex7_2.sce | a974b4be407d3cc1af8fe83b9a61efe2dc79d789 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex7_2.sce | clc
//initialization of variables
clear
s=3 //m
n=60
p=50 //kg
// calculations
W=n*p
Rc=W*2/s
Rb=W-Rc
dx = 0.001;
x = 0:dx:s
n = s/dx +1;
for i = 1:n
Sx(i) = -Rb + Rc*x(i)^2/6;
Mx(i) = Rb*x(i) - Rc*x(i)^3 /18;
end
//Results
figure(1);plot(x,Sx);title("Shear force diagram");xlabel("X (in m)");ylabel("Shear force (in kg)");
figure(2);plot(x,Mx);title("Bending Moment diagram");xlabel("X (in m)");ylabel("Bending Moment (in kg-m)");
|
6eb00d29c9fba9d8ff4865c085bce3b2fb8b1bd8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1862/CH7/EX7.3/C7P3.sce | 605580344b57dc1f622bfc6561b7dedcdf7ece5f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,720 | sce | C7P3.sce |
clc
//to find location of second fragment
// GIVEN::
//refer to figure 7-11 fron page no. 145
//consider +ve x direction as our reference axis
//mass of projectile
M = 9.6//in kg
//initial velocity of projectile
v0 = 12.4//in m/s
//angle of projectile above horizontal
fi0 = 54//in degrees
//mass of first piece after explosion
m1 = 6.5//in kg
//time after which first piece id observed
t = 1.42//in seconds
//vertical distance at which first piece is observed
y1 = 5.9//in meters
//horizontal distance at which first piece is observed
x1 = 13.6//in meters
//acceleration due to gravity
g = 9.80//in m/s^2
// SOLUTION:
//refer to figure 7-11 from page no. 145
//mass of second piece
//by mass conservation
m2 = M-m1//in kg
//velocity of projectile in +ve x direction
v0x = v0*cosd(fi0)//in m/s
//velocity of projectile in +ve y direction
v0y = v0*sind(fi0)//in m/s
//using kinematic equation of motion
//x coordinate of position of original projectile
x = v0x*t//in m
//y coordinate of position of original projectile
y = (v0y*t)-(0.5*g*t^2)//in m
//applying center of mass formula
//x coordinate of posion of second piece
x2 = (M*x - m1*x1)/m2//in meters
//y coordinate of posion of second piece
y2 = (M*y - m1*y1)/m2//in meters
x = nearfloat("succ",10.4)
y = nearfloat("pred",4.3)
x2 = nearfloat("succ",3.7)
y2 = nearfloat("pred",0.9)
printf ("\n\n x coordinate of position of original projectile x = \n\n %.1f m",x);
printf ("\n\n y coordinate of position of original projectile y = \n\n %.1f m",y);
printf ("\n\n x coordinate of posion of second piece x2 = \n\n %.1f m",x2);
printf ("\n\n y coordinate of posion of second piece y2 = \n\n %.1f m",y2);
|
dcec18dca4ce033375cd73bdeebb1361880d5cf9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2417/CH5/EX5.26/Ex5_26.sce | 95c134f61d5dcc33ea283db53328a932d3cb81de | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 499 | sce | Ex5_26.sce | //scilab 5.4.1
clear;
clc;
printf("\t\t\tProblem Number 5.26\n\n\n");
// Chapter 5 : Properties Of Liquids And Gases
// Problem 5.26 (page no. 212)
// Solution
//The Mollier chart has lines of constant moisture in the wet region which correspond to (1-x).Therefore,we read at 20% moisture(80% Quality) and 120 psia,
printf("The enthalpy of a wet steam mixture at 120 psia having quality 80 percent is 1015 Btu/lbm\n");
//Which also agrees well with the calculated value in problem 5.7
|
ba0520580551d45bd63773867c872239ae91ea39 | 449d555969bfd7befe906877abab098c6e63a0e8 | /23/CH4/EX4.3/Example_4_3.sce | 46034aba8156ad48e5dbc9c1a59c8afe045d0286 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 647 | sce | Example_4_3.sce | clear;
clc;
//Example 4.3
//Caption : Program To Find the Final Temperature with Heat Given
function[Q]=MCPH(T0,T,A,B,C,D)
t=T/T0;
Q=(A+((B/2)*T0*(t+1))+((C/3)*T0*T0*((t^2)+t+1))+(D/(t*T0*T0)))
funcprot(0);
endfunction
//Given values for Ammonia
R=8.314;
T0=533.15;
A=3.578;
B=3.020*(10^-3);
C=0;
D=-0.186*(10^5);
Q=422*(10^3);
n=11.3;
del_H=Q/n;
//Solution
i=-1;
a=round(T0);//Initial
while (i==-1)
b=R*MCPH(T0,a,A,B,C,D);
c=b*(a-T0);
flag=del_H-c;
if(flag<=100) then
T=a-1;
i=1;
else
a=a+1;
i=-1;
end
end
disp('K',T,'Temperature Required(Approx)')
//End |
12984b3ebf0b20685443bd4d03264c25e5c0fe2b | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH6/EX6.20/20.sce | 2bf58487c5a6a57f04536ed07462d0491e5da5d1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 721 | sce | 20.sce | clc
I=0.62; //kg/m^2
N1=2500; //rpm
w1=2*%pi*N1/60; //rad/s
m=1.9; //kg; Water equivalent of shaft bearings
cp=4.18;
T0=293; //K
t0=20; //0C
disp("(i)Rise in temperature of bearings")
KE=1/2*I*w1^2/1000; //kJ
dT=KE/(m*cp); //rise in temperature of bearings
disp("dT=")
disp(dT)
disp("0C")
t2=t0+dT;
disp("Final temperature of the bearings =")
disp(t2)
disp("0C")
T2=t2+273;
disp("(ii)Final r.p.m. of the flywheel")
AE=integrate('m*cp*(1-T0/T)', 'T', T0, T2);
UE=KE - AE;
disp("Available energy =")
disp(AE)
disp("kJ")
UAE=KE-AE;
disp("Unavailable energy =")
disp(UAE)
disp("kJ")
w2=sqrt(AE*10^3*2/I);
N2=w2*60/2/%pi;
disp("Final rpm of the flywheel =")
disp(N2)
disp("rpm") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.