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
92fde7c4fc305e65167599b67824b80d4220982b
1db0a7f58e484c067efa384b541cecee64d190ab
/macros/cheb2ord.sci
815ba0de3c900a016e2853094bf38875a78f1e5c
[]
no_license
sonusharma55/Signal-Toolbox
3eff678d177633ee8aadca7fb9782b8bd7c2f1ce
89bfeffefc89137fe3c266d3a3e746a749bbc1e9
refs/heads/master
2020-03-22T21:37:22.593805
2018-07-12T12:35:54
2018-07-12T12:35:54
140,701,211
2
0
null
null
null
null
UTF-8
Scilab
false
false
1,668
sci
cheb2ord.sci
function [n, Wc] = cheb2ord(Wp, Ws, Rp, Rs) //This function computes the minimum filter order of a Chebyshev type II filter with the desired response characteristics. //Calling Sequence //n = cheb2ord(Wp, Ws, Rp, Rs) //[n, Wc] = cheb2ord(Wp, Ws, Rp, Rs) //Parameters //Wp: scalar or vector of length 2, all elements must be in the range [0,1] //Ws: scalar or vector of length 2, all elements must be in the range [0,1] //Rp: real value //Rs: real value //Description //This is an Octave function. //This function computes the minimum filter order of a Chebyshev type II filter with the desired response characteristics. //Stopband frequency ws and passband frequency wp specify the the filter frequency band edges. //Frequencies are normalized to the Nyquist frequency in the range [0,1]. //Rp is measured in decibels and is the allowable passband ripple and Rs is also measured in decibels and is the minimum attenuation in the stop band. //If ws>wp then the filter is a low pass filter. If wp>ws, then the filter is a high pass filter. //If wp and ws are vectors of length 2, then the passband interval is defined by wp and the stopband interval is defined by ws. //If wp is contained within the lower and upper limits of ws, the filter is a band-pass filter. If ws is contained within the lower and upper limits of wp, the filter is a band-stop or band-reject filter. //Examples //cheb2ord([0.25,0.3],[0.2,0.8],0.3,0.4) //ans = 1 rhs = argn(2) lhs = argn(1) if(rhs~=4) error("Wrong number of input arguments.") end select(lhs) case 1 then n = callOctave("cheb2ord",Wp,Ws,Rp,Rs) case 2 then [n,Wc] = callOctave("cheb2ord",Wp,Ws,Rp,Rs) end endfunction
ebcbed729cae2e87deeb6628ccb09cde70a5b797
449d555969bfd7befe906877abab098c6e63a0e8
/98/CH7/EX7.5/example7_5.sce
d41d6f92c3a279ef293b2b9cadeeb236540c44c3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
744
sce
example7_5.sce
//Chapter 7 //Example 7_5 //Page 149 clear;clc; l=50; mva=5; pf=0.8; kv=33; n=0.9; sr=2.85*1e-8; p=mva*1e6*pf; w=0.1*p; //Single phase 2-wire system i1=mva*1e6/kv/1000; area1=2*sr*i1^2*l*1000/w; vol1=2*area1*l*1000; //3-phase 3-wire system i2=mva*1e6/sqrt(3)/kv/1000; area2=3*i2^2*sr*l*1000/w; vol2=3*area2*l*1000; printf("(I) SINGLE PHASE, 2-WIRE SYSTEM: \n"); printf("Line current = %.1f A \n", i1); printf("Area of cross section = %.3f*10^-4 m^2 \n", area1*1e4); printf("Volume of conductor required = %.2f m^3 \n\n", vol1); printf("(II) 3-PHASE, 3-WIRE SYSTEM: \n"); printf("Line current = %.1f A \n", i2); printf("Area of cross section = %.3f*10^-4 m^2 \n", area2*1e4); printf("Volume of conductor required = %.2f m^3 \n\n", vol2);
a5498b072df76e3e0a5985fb32851624c0fc89ca
d49f4b041e71932c0c76308f9187cea6df054556
/ptclassic/src/tst/makefile.tst
9a0c77d3d4d6bfe80c95e609f329d8c11c4b2824
[ "MIT-Modern-Variant" ]
permissive
bryanchance/ptclassic
c25c0d6fb481c7398a782ec4e7280fe4ea82d503
9ce6a2e0553b064172367418a10d35b792801a70
refs/heads/master
2023-07-18T19:03:38.125401
2009-11-06T01:16:35
2009-11-06T01:16:35
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,531
tst
makefile.tst
# Makefile common to all domain test makefiles # Version identification: # $Id$ # Copyright (c) %Q% The Regents of the University of California. # All rights reserved. # # Permission is hereby granted, without written agreement and without # license or royalty fees, to use, copy, modify, and distribute this # software and its documentation for any purpose, provided that the # above copyright notice and the following two paragraphs appear in all # copies of this software. # # IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY # FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES # ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF # THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE # PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF # CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, # ENHANCEMENTS, OR MODIFICATIONS. # # PT_COPYRIGHT_VERSION_2 # COPYRIGHTENDKEY # Programmer: Christopher Hylands # Date of creation: 4/24/95 # The makefiles in the domain tests include two makefiles, this file should # be included at the top of the makefile for the domain tests. # If you want to run with purify, do: # make USE_PURIFY=yes # Note that the ifeq is a GNU make extension. ifeq ($(USE_PURIFY),yes) # Name of purified ptcl binary to use PTCL= $(PTOLEMY)/obj.$(PTARCH)/ptcl/ptcl.debug.purify else # Name of ptcl binary to run PTCL= $(PTOLEMY)/bin.$(PTARCH)/ptcl endif SRC = $(PTOLEMY)/src TST_SBINDIR = $(PTOLEMY)/src/tst/sbin # Clean up the .pt file. Most of these problems have to do with # 'targetparam' in cgc # -e 's/\{Destination Directory\}/directory/' FIXPT4TEST= sed -e 's=\$$PTOLEMY/bin.\$$PTARCH/==' \ -e 's=\$$HOME/PTOLEMY_SYSTEMS=PTOLEMY_SYSTEMS=' \ -e 's=destDirectory=directory=' \ -e 's=hostMachine=host=' \ -e 's=loopingLevel=\{Looping Level\}=' \ -e 's=doCompile=compile?=' \ -e 's=^wrapup=wrapup; flush stdout=' # Binary that converts oct facets to ptcl OCT2PTCL=$(PTOLEMY)/bin.$(PTARCH)/oct2ptcl #VERBOSE=1 ifdef VERBOSE OCT2PTCLARGS = -rgcv # Tee the output from ptcl to stdout so the user has feedback VERBOSE_TEE = | tee else OCT2PTCLARGS = -rgc # Just take the output from ptcl and place it in a file VERBOSE_TEE = > endif #usage: /users/ptdesign/obj.sol2/octtools/tkoct/oct2ptcl/oct2ptcl [-=V] # [-=E on_error] [-rgtv] facet # -=V: disable tracing with design manager VOV # -=E: cause fatal errors to core dump (on_error = "core") or exit # (on_error = "exit") # -r: recursive translation # -g: append run/wrapup command (go) # -t: don't xlate facets with tcltk stars # -v: verbose # facet: facet to translate #oct2ptcl v0.1 translates an OCT facet to ptcl. #The PTOLEMY environment variable must reference the root #of the ptolemy tree, and defaults to ~ptolemy. .PRECIOUS: %.pt # Convert demo palettes to ptcl files. %.pt: %.pal @if [ -f $(TST_DOMAIN)/`basename $@ .pt`.base ]; then \ echo "Found $@.base, using it instead of running oct2ptcl"; \ cp $(TST_DOMAIN)/`basename $@ .pt`.base $@; \ echo "Running oct2ptcl to see what the diffs are"; \ $(OCT2PTCL) $(OCT2PTCLARGS) $< | $(FIXPT4TEST) > /tmp/pttst.tmp; \ diff /tmp/pttst.tmp $@; \ true; \ else \ echo "Running $(OCT2PTCL) $< ... > $(notdir $@)"; \ $(OCT2PTCL) $(OCT2PTCLARGS) $< | $(FIXPT4TEST) > $(notdir $@); \ $(TST_SBINDIR)/pxgraph.chk $(notdir $@); \ fi # Run files containing ptcl commands through ptcl, running the universes, # producing output and data files. # *.pxgraph contains a script that will plot the pxgraphs # we sort this script since the order that the pxgraphs are run is # non-deterministic %.pout: %.pt @echo "Running $(PTCL) on $^" @echo "$^ contains: Universes: `grep newuniverse $^ | wc -l ` Galaxies: `grep defgalaxy $^ | wc -l` Stars: `egrep '[ ]*star' $^ | wc -l `" @echo "$^" >pxfilename @rm -f $^.pxgraph @(PATH=$(TST_SBINDIR):$$PATH; export PATH; \ PT_DISPLAY="echo %s"; export PT_DISPLAY; \ echo "source $(TST_PREAMBLE); source $^" | $(PTCL) $(VERBOSE_TEE) $@) @sleep 2 @if [ -f $^.pxgraph ]; then \ sort $^.pxgraph > $^.pxgraph.tmp; \ mv $^.pxgraph.tmp $^.pxgraph; \ fi # End of implicit rules
526d61a5d60431b569835bd1c7d3a67c14dfa385
449d555969bfd7befe906877abab098c6e63a0e8
/2744/CH12/EX12.1/Ex12_1.sce
a7193e465436877eece72e44e7796967a4e5ba4d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
423
sce
Ex12_1.sce
clear; clc; d = 3;//inches HP = 120;//horse power RPM = 180; l = 25;//feet N = 12*10^6;// lb/in^2 T = 33000*HP/(2*%pi*RPM);// lb-feet f_s = 16*T*12/(%pi*d^3);// lb/in^2 theta = f_s*l*12/(0.5*d*N);// radian printf('The maximum intensity of shear stress induced is f_s = %.d lb/in^2',f_s); printf('\n The angle of twist in degrees is theta = %.2f',theta*180/%pi); //there is a minute error in the answer given in textbook.
605d40b411e08485ec2eea43fd1e117e1ca46677
5a05d7e1b331922620afe242e4393f426335f2e3
/macros/sgolay.sci
09062a7c8becfbd84f98a4f0d5b871033666fe21
[]
no_license
sauravdekhtawala/FOSSEE-Signal-Processing-Toolbox
2728cf855f58886c7c4a9317cc00784ba8cd8a5b
91f8045f58b6b96dbaaf2d4400586660b92d461c
refs/heads/master
2022-04-19T17:33:22.731810
2020-04-22T12:17:41
2020-04-22T12:17:41
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,393
sci
sgolay.sci
function F = sgolay (p, n, m, ts) //This function computes the filter coefficients for all Savitzsky-Golay smoothing filters. //Calling Sequence //F = sgolay (p, n) //F = sgolay (p, n, m) //F = sgolay (p, n, m, ts) //Parameters //p: polynomial //n: odd integer value, larger than polynomial p //m: positive integer less than 2^31 or logical //ts: real or complex value //Description //This function computes the filter coefficients for all Savitzsky-Golay smoothing filters of order p for length n (odd). //m can be used in order to get directly the mth derivative; ts is a scaling factor. //Examples //y = sgolay(1,3,0) //y = // 0.83333 0.33333 -0.16667 // 0.33333 0.33333 0.33333 // -0.16667 0.33333 0.83333 if(argn(2)<2 | argn(2)>4) then error("Wrong number of input arguments.") elseif ((n-fix(n./2).*2)~=1) then error ("sgolay needs an odd filter length n"); elseif (p>=n) then error ("sgolay needs filter length n larger than polynomial order p"); end if (argn(2)==2) then m=0; ts=1; end if (argn(2)==3) then ts=1; end if length(m) > 1, error("weight vector unimplemented"); end F = zeros (n, n); k = floor (n/2); for row = 1:k+1 C = ( [(1:n)-row]'*ones(1,p+1) ) .^ ( ones(n,1)*[0:p] ); A = pinv(C); F(row,:) = A(1+m,:); end F(k+2:n,:) = (-1)^m*F(k:-1:1,n:-1:1); F = F * ( prod(1:m) / (ts^m) ); endfunction
e0c8841c7fa69046df8bceafe2170734bc6a4415
2eac84edf941c64588fef76f10d02309aabcb2fb
/System/Scilab/Scripts/createLibraryBuilder.sci
3676d2a48dd5313f27f91a5e286ac189c70a8380
[ "BSD-3-Clause" ]
permissive
AlexisTM/X2C
fdd93bd33b931ea448ba516f5e3f9af6a5149a6a
31f39b598afe271a7fd46ef1ee9e06c410b1120c
refs/heads/master
2021-08-07T04:26:24.391617
2017-11-07T14:34:33
2017-11-07T14:34:33
109,844,123
1
0
null
null
null
null
UTF-8
Scilab
false
false
11,243
sci
createLibraryBuilder.sci
// Copyright (c) 2017, Linz Center of Mechatronics GmbH (LCM) http://www.lcm.at/ // All rights reserved. // // This file is licensed according to the BSD 3-clause license as follows: // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // * Neither the name of the "Linz Center of Mechatronics GmbH" and "LCM" nor // the names of its contributors may be used to endorse or promote products // derived from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. // IN NO EVENT SHALL "Linz Center of Mechatronics GmbH" BE LIABLE FOR ANY // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // This file is part of X2C. http://www.mechatronic-simulation.org/ // $LastChangedRevision: 1111 $ // $LastChangedDate:: 2017-02-28 14:18:07 +0100#$ // // Function to create 'builder.sce' for X2C libraries // Parameters: // libName - Library name // varargin - (optional) project root directory for external blocks function [] = createLibraryBuilder(libName, varargin) funcprot(0); // import necessary java classes jimport at.lcm.x2c.utils.LibraryUtils; jimport at.lcm.x2c.core.structure.ControlBlock; jimport at.lcm.x2c.core.structure.Block; // get file separator fs = filesep(); // get system architecture arch = getArchitecture(); // get operating system os = getos(); // get XML file names if length(varargin) == 0 then // internal library xmlPath = jinvoke(LibraryUtils, "getXmlDirectory", libName); else // external library libRoot = jinvoke(LibraryUtils, "getLibraryRootDirectory", varargin(1)) libRoot = jinvoke(libRoot, "toString"); xmlPath = jinvoke(LibraryUtils, "getXmlDirectory", libName, libRoot); end xmlDir = jinvoke(xmlPath, "toString"); // get/create scilab directory ScilabDir = strsubst(xmlDir, ["XML" + fs], ["Scilab" + fs]); if ~isdir(ScilabDir) then mkdir(ScilabDir) end // get XML files xmlFiles = dir(xmlDir + "*.xml"); xmlFiles = xmlFiles(2)'; xmlList = []; // go through XML list for curXML = xmlFiles temp = part(curXML, $-3:$) convstr(temp,"l") if ~strcmp(temp, ".xml") then // add file name with *.xml ending xmlList = [xmlList, curXML]; end end // check if library already has a builder file if isfile([ScilabDir + fs + "builder_" + arch + ".sce"]) then mprintf("Creation of builder file skipped (builder already exists).\n") return; end // create X2C_Utils.c file err = createX2CUtils(ScilabDir); if err ~= 0 then mprintf("Error: Couldn''t create x2c_Utils.c in %s\n!", ScilabDir) end try // open/create file fileID = mopen(ScilabDir + ["builder_" + arch + ".sce"], "wt"); // print header time = datevec(datenum()); mfprintf(fileID, "// This file was generated by %s on %02d-%02d-%04d %02d:%02d\n\n", "createLibraryBuilder.sce", time(3), time(2), time(1), time(4), time(5)); // TODO: expand file header // print compiler stuff mfprintf(fileID, "funcprot(0);\n"); mfprintf(fileID, "jimport at.lcm.x2c.utils.Utils;\n"); mfprintf(fileID, "msvc = findmsvccompiler();\n"); mfprintf(fileID, "if(msvc ~= '"unknown'") then \n"); mfprintf(fileID, " bOK = configure_msvc();\n"); mfprintf(fileID, "end\n"); mfprintf(fileID, "if ~haveacompiler() then\n"); mfprintf(fileID, " mprintf('"Building %s library for %s system skipped (no compiler found).\\n'");\n", libName, arch); mfprintf(fileID, " [compileCompFDone] = return(%%f)\n"); mfprintf(fileID, "end\n\n"); mfprintf(fileID, "X2C_ROOT = jinvoke(jinvoke(Utils, '"getRootDirectory'"), '"toString'");\n"); mfprintf(fileID, "X2C_LIB_PATH = get_absolute_file_path('"builder_%s.sce'");\n", arch); mfprintf(fileID, "X2C_LIB_PATH = dirname(X2C_LIB_PATH);\n\n"); mfprintf(fileID, "// delete '"is-compiled'" marker\n") mfprintf(fileID, "mdelete('"Library_is_compiled_for_%s.txt'");\n\n", arch); // go through all blocks in library names = ""; files = "'"x2c_Utils.c'""; for curXml=xmlList try // read block XML file clear x2cBlock blockType BlockName x2cBlock = jinvoke(Block, "loadBlockXML", curXml); blockType = jinvoke(jinvoke(x2cBlock, "getClass"), "toString"); BlockName = jinvoke(x2cBlock, "getName"); // check block type if ~strcmp(blockType, "class at.lcm.x2c.core.structure.ControlBlock") then // normal Block // get implementation names ImplNames = jinvoke(x2cBlock, "getExistingImplementationNames"); // Scilab restriction: variable or function names can't be longer than 24 characters, otherwise name will be truncated if length(varargin) == 0 then // internal library BlockName = getXcosBlockName(libName, BlockName); else // external library BlockName = getXcosBlockName(libName, BlockName, varargin(1)); end else // IO-Block ImplNames = getIODataTypes(); BlockName = ["x2c_" + BlockName] end // fill arrays with function and file names for curImpl=ImplNames if isfile(ScilabDir + fs + BlockName + "_" + curImpl + "_C.c") names = names + " '"" + BlockName + "_" + curImpl + "_C'""; files = files + " '"" + BlockName + "_" + curImpl + "_C.c'""; end end catch // XML could not be read -> don't add block to library end end mfprintf(fileID, "names = [%s];\n", names); mfprintf(fileID, "files = [%s];\n", files); mfprintf(fileID, "flag = '"c'";\n"); mfprintf(fileID, "loadername = '"loader_%s.sce'";\n", arch); mfprintf(fileID, "libname = '"%s_%s'";\n", libName, arch); mfprintf(fileID, "ldflags = SCI + '"%sbin%sscicos.lib'";\n", fs, fs); if (os == "Linux") then mfprintf(fileID, "cflags = '"-I%susr%sinclude%sscilab'" + '" -I'" + X2C_ROOT + '"%sController%sCommon'" + '" -I'" + X2C_LIB_PATH + '"%sController%ssrc'" + '" -I'" + X2C_LIB_PATH + '"%sController%sinc'" + '" -include string.h'";\n", fs, fs, fs, fs, fs, fs, fs, fs, fs); // string.h is needed by gcc for memcpy else mfprintf(fileID, "cflags = '"-I'" + SCI + '"%smodules%sscicos_blocks%sincludes'" + '" -I'" + SCI + '"%smodules%sscicos%sincludes'" + '" -I'" + X2C_ROOT + '"%sController%sCommon'" + '" -I'" + X2C_LIB_PATH + '"%sController%ssrc'" + '" -I'" + X2C_LIB_PATH + '"%sController%sinc'";\n", fs, fs, fs, fs, fs, fs, fs, fs, fs, fs, fs, fs); end //TODO: support for other os mfprintf(fileID, "ilib_for_link(names, files, [], flag, '"'", loadername, libname, ldflags, cflags);\n\n"); mfprintf(fileID, "// delete temporary files\n"); mfprintf(fileID, "if isdir('"Debug'") then\n"); mfprintf(fileID, " rmdir('"Debug'",'"s'");\n"); mfprintf(fileID, "end\n"); mfprintf(fileID, "if isdir('"Release'") then\n"); mfprintf(fileID, " rmdir('"Release'",'"s'");\n"); mfprintf(fileID, "end\n"); mfprintf(fileID, "mdelete('"cleaner.sce'")\n"); mfprintf(fileID, "mdelete('"Makelib.mak'")\n\n"); mfprintf(fileID, "// create '"is-compiled'" marker\n") mfprintf(fileID, "currentTime=clock();\n"); mfprintf(fileID, "save('"Library_is_compiled_for_%s.txt'", '"currentTime'");\n\n", arch); mfprintf(fileID, "mprintf('"Library %s for %s system built.\\n'");\n", libName, arch); // close file mclose(fileID); mprintf("Builder for library %s succesfully created.\n", libName); catch // some error creating the file occured mclose(fileID); mprintf("Error creating builder for library %s: %s\n", libName, lasterror()); end endfunction function [err] = createX2CUtils(Dir) // Function to create 'x2c_Utils.c' for compilation of X2C libraries // // $LastChangedRevision: 1111 $ // // Copyright (c) 2013, Linz Center of Mechatronics GmbH (LCM) http://www.lcm.at/ // All rights reserved. try // open/create file fileID = mopen(Dir + "x2c_Utils.c", "wt"); // print header time = datevec(datenum()); mfprintf(fileID, "// This file was generated by %s on %02d-%02d-%04d %02d:%02d\n\n", "createLibraryBuilder.sce", time(3), time(2), time(1), time(4), time(5)); // TODO: expand file header // print compiler stuff mfprintf(fileID, "#define SCILAB_SIM_FILE\n\n"); mfprintf(fileID, "/* include scicos / xcos headers */\n"); mfprintf(fileID, "#include <scicos.h>\n"); mfprintf(fileID, "#include <scicos_block4.h>\n"); mfprintf(fileID, "#include <scicos_malloc.h>\n"); mfprintf(fileID, "#include <scicos_free.h>\n\n"); mfprintf(fileID, "#ifdef DEBUG\n"); mfprintf(fileID, " #include <stdio.h>\n"); mfprintf(fileID, "#endif\n\n"); mfprintf(fileID, "/* include X2C utility files */\n"); mfprintf(fileID, "#include <CommonFcts.h>\n"); mfprintf(fileID, "#include <CommonFcts.c>\n"); mfprintf(fileID, "#include <Atan_Data.h>\n"); mfprintf(fileID, "#include <Atan_Data.c>\n"); mfprintf(fileID, "#include <Exp_Data.h>\n"); mfprintf(fileID, "#include <Exp_Data.c>\n"); mfprintf(fileID, "#include <Sin_Data.h>\n"); mfprintf(fileID, "#include <Sin_Data.c>\n"); mfprintf(fileID, "#include <Sin2_Data.h>\n"); mfprintf(fileID, "#include <Sin2_Data.c>\n"); mfprintf(fileID, "#include <Sqrt_Data.h>\n"); mfprintf(fileID, "#include <Sqrt_Data.c>\n"); // close file mclose(fileID); err = 0; catch // some error creating the file occured err = 1; end endfunction
e1536d076e88e9e55ae151add96a117070c28510
381be712cd10ab88d51ef144b1781befee729ab9
/Project1/DMux4Way.tst
8e1d08c6e420bafbb4ee8babfc74fe082a73977f
[]
no_license
ryoua/OS
125846d9c121124f6487ea043db43c22e6aafd79
1b6de0cc2fbf2e432a552b9c99b0be63a4fdb6c9
refs/heads/master
2020-03-26T21:40:05.884264
2018-11-19T12:37:00
2018-11-19T12:37:00
145,401,691
14
0
null
null
null
null
UTF-8
Scilab
false
false
366
tst
DMux4Way.tst
load DMux4Way.hdl, output-file DMux4Way.out, output-list in%B2.1.2 sel%B2.2.2 a%B2.1.2 b%B2.1.2 c%B2.1.2 d%B2.1.2; set in 0, set sel %B00, eval, output; set sel %B01, eval, output; set sel %B10, eval, output; set sel %B11, eval, output; set in 1, set sel %B00, eval, output; set sel %B01, eval, output; set sel %B10, eval, output; set sel %B11, eval, output;
2bb992f8972012da9eb1e5180d4c816d7cf87df4
449d555969bfd7befe906877abab098c6e63a0e8
/1049/CH4/EX4.27/ch4_27.sce
1d1b4e777115a70ad78e584b2f29b08ef2e0215b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
743
sce
ch4_27.sce
clear; clc; R1=1000; C=.5*10^-6; f=50; w=2*%pi*f; V_s=230; X_c=1/(w*C); v_c=30; R=0; Z=sqrt((R+R1)^2+X_c^2); phi=atand(X_c/(R+R1)); I1=V_s/(Z*complex(cosd(-phi),sind(-phi))); V_c=I1*X_c*complex(cosd(-90),sind(-90)); a=abs(V_c); //magnitude of V_c b=-atand(imag(V_c)/real(V_c)); //argument of V_c //v_c=sqrt(2)*a*sind(a1-b) a1=asind(v_c/(sqrt(2)*a))+b; printf("min angle=%.1f deg",a1); R=25000; Z=sqrt((R+R1)^2+X_c^2); phi=atand(X_c/(R+R1)); I1=V_s/(Z*complex(cosd(-phi),sind(-phi))); V_c=I1*X_c*complex(cosd(-90),sind(-90)); a=abs(V_c); //magnitude of V_c b=-atand(imag(V_c)/real(V_c)); //argument of V_c //v_c=sqrt(2)*a*sind(a2-b) a2=asind(v_c/(sqrt(2)*a))+b; printf("\nmax angle=%.2f deg",a2);
ec092e83d33db30f560474d8c667aaa0991491a1
449d555969bfd7befe906877abab098c6e63a0e8
/2252/CH14/EX14.8/Ex14_8.sce
7ab99ca18af7fe666376c81e8c44e7bf42e3f394
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,422
sce
Ex14_8.sce
Wi=1100//iron losses Wcu=400//copper losses at 50% load Is=100*1000/10000//secondary full load current //calculating efficiency at 25% load, unity pf Is1=Is/4//secondary current Wcu1=(25/50)^2*400//copper losses Pout=.25*100*1000//output e=Pout/(Pout+Wcu1+Wi)*100 mprintf("Efficiency at 25 percent load, unity pf=%f percent\n",e) //calculating efficiency at 25% load, 0.8 pf e=(Pout*.8)/(Pout*.8+Wcu1+Wi)*100 mprintf("Efficiency at 25 percent load, .8 pf=%f percent\n",e) //calculating efficiency at 50% load,unity pf Pout=.5*100*1000//output e=Pout/(Pout+Wi+Wcu)*100 mprintf("Efficiency at 50 percent load, unity pf=%f percent\n",e) //calculating efficiency at 50% load, 0.8 pf e=Pout*.8/(Pout*.8+Wi+Wcu)*100 mprintf("Efficiency at 50 percent load, 0.8 pf=%f percent\n",e) //calculating efficiency at full load, unity pf Pout=100*1000//output Wcu3=(10/5)^2*400//copper losses e=Pout/(Pout+Wcu3+Wi)*100 mprintf("Efficiency at full load, unity pf=%f percent\n",e) //calculating efficiency at full load, .8 pf e=(Pout*.8)/(Pout*.8+Wcu3+Wi)*100 mprintf("Efficiency at full load, 0.8 pf=%f percent\n",e) //calculating load for max efficiency at unity pf x=sqrt(Wi/Wcu3) mprintf("Load for max efficiency=%f kVA\nLoad for max efficiency will remain the same irrespective of power factor",x*Pout/1000) //error in the textbook answer for efficiency at 50 % load at unity pf as well as at .8 pf
6e04c2bd45328ceda1c9adfdaedcf1b9bce2b63e
449d555969bfd7befe906877abab098c6e63a0e8
/1073/CH5/EX5.15/5_15.sce
af5b0d8376cccc1a93fdd1d0af17559d66004fd8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,466
sce
5_15.sce
clc; clear; //Example 5.15 //CASE I: Cp=4*10^3; //[J/kg.K] t1=295; //[K] t2=375; //[K] sp=1.1; //Specific gravity of liquid v1=1.75*10^-4; //Flow of liquid in [m^3/s] rho=sp*1000 //[kg/m^3] m_dot=v1*rho //[kg/s] Q=m_dot*Cp*(t2-t1) //[W] T=395; //[K] dT1=T-t1 //[K] dT2=T-t2 //[K] dTlm=(dT1-dT2)/log(dT1/dT2) //[K] U1A=Q/dTlm //[W/K] //CASE-II v2=3.25*10^-4 //Flow in [m^3/s] T2=370 //[K] m_dot=v2*rho //[kg/s] Q=m_dot*Cp*(T2-t1) //[W] dT1=T-t1 //[K] dT2=T-T2 //[K] dTlm=(dT1-dT2)/log(dT1/dT2) //[K] U2A=Q/dTlm //[W/K] //since u is propn to v //hi =C*v^0.8 U2_by_U1=U2A/U1A ho=3400 //Heat transfer coeff for condensing steam in [W/sq m.K] C=poly(0,"C") //Let C=1 and v=v1 //C=1; v=v1; //=1.75*10^-4 m^3/s hi=C*v^0.8 U1=1/(1/ho+1/hi) // //When v=v2 v=v2; hi=C*v^0.8 U2=1/(1/ho+1/hi) // //Since U2=1.6U1 //On solving we get: C=142497 v=v1 hi=C*v^0.8 U1=1/(1/ho+1/hi) // A=U1A/U1 //Heat transfer area in [sq m] printf("\n Overall heat transfer coefficient is %f W/sq m.K and\n\nHeat transfer area is %f sq m",U1,A);
da33267076076ca15dc490d427f51b13b41dccc8
fe33c0b16926678447c084c04df084926a9ca29a
/paraboloide1.sce
4d4571a3138b08fc0bf9fa8ffd0d4c7f86287344
[]
no_license
askmrsinh/SEM2_AM
bbcf34ce205abe763cb5c85df5f01544cdcdfca5
da613da5c22f20ab1a814f28315e34b0c2c59a13
refs/heads/master
2021-09-28T03:09:19.415553
2016-08-18T15:14:23
2016-08-18T15:14:23
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
268
sce
paraboloide1.sce
//((x^2)/(a^2))+((y^2)/(b^2))=(2*(z^2)/(c^2)) (PARABOLOIDE) a=1; b=2; c=3; x=-5:0.1:5; y=-3:0.1:3; deff('z=f1(x,y)','z=sqrt((c^2/2)*((x^2)/(a^2)+(y^2)/(b^2)))'); fplot3d(x,y,f1) deff('z=f2(x,y)','z=-sqrt((c^2/2)*((x^2)/(a^2)+(y^2)/(b^2)))'); fplot3d(x,y,f2)
e051cb734283d79c7baa279ee958c444093f073b
449d555969bfd7befe906877abab098c6e63a0e8
/3511/CH9/EX9.9/Ex9_9.sce
eaf44d8502079dd5f2629385f5f87e943b40737c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
594
sce
Ex9_9.sce
clc; rp=1.35; // Actual pressure ratio DelT_rise=30; // Actual temperature rise in K beta_1=47; // Inlet blade angle in degree beta_2=15; // Outlet blade angle in degree u=225; // Peripheral velocity in m/s ca=180; // Axial velocity in m/s T01=27+273; // Ambient temperature in kelvin Cp=1.005; // Specific heat in KJ/kg K r=1.4; // Specific heat ratio R=287; // Characteristic gas constant in J/kg K eff_s=(rp^((r-1)/r)-1)*T01/DelT_rise; wf=(DelT_rise*Cp*10^3)/(u*ca*(tand(beta_1)-tand(beta_2))); disp ("%",eff_s*100,"Stage Efficiency = "); disp (wf,"Work done factor = ");
f3a01bef7a6ec1d44f280d845298a1cbc47ba7b3
449d555969bfd7befe906877abab098c6e63a0e8
/3433/CH4/EX4.1/Ex4_1.sce
cb2cd0855453ef99596c17b550577c2a08a6c402
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,347
sce
Ex4_1.sce
clear; clc; funcprot(0); //given data n = 5;//number of stages T01 = 1200;//Turbine inlet stagnation temperature in K p01 = 213;//inlet stagnation pressure in kPa mdot = 15;//mass flow rate in kg/s P = 6.64;//Mechanical power in MW alpha1 = 15;//in deg alpha2 = 70;//in deg rm = 0.46;//turbine mean radius in m N = 5600;//rotational speed in rpm gamma = 1.333; R = 287.2;//in J/(kg.K) Cp = 1150;// in J/(kg.K) //Calculations U = rm*N*2*%pi/60; psi = P*(10^6)/(mdot*n)/(U^2); phi = psi/(tan(alpha1*%pi/180) + tan(alpha2*%pi/180)); R = 1-0.5*psi+phi*tan(alpha1*%pi/180); k1 = phi*U/sqrt(Cp*T01); k2 = 0.3663; //iteration to find out Mach number i = 1; M = 0.0;//initial guess of Mach number while (i>0), i = i+1 res = M*(sqrt(gamma-1))*(1 + 0.5*(gamma-1)*(M^2))^(-0.5)- k1; if res > 0 then M = M - 0.0001; elseif res < 0 M = M + 0.0001; end if abs(res)<0.000001 then break; end end Ax = mdot*sqrt(Cp*T01)/(k2*p01*1000); H = Ax/(2*%pi*rm); HTR = (rm-0.5*H)/(rm+0.5*H); //Results printf('(a) The turbine stage loading coefficient = %.3f',psi); printf('\n The flow coefficient = %.3f',phi); printf('\n The reaction = %.1f',R); printf('\n (b) The annulus area at inlet to the turbine = %.3f m^2',Ax); printf('\n The blade height = %.4f',H); printf('\n The hub-to-tip ratio, HTR = %.3f',HTR);
23eb8bbcf6b6bd537415ae8d61f69394bbb66225
449d555969bfd7befe906877abab098c6e63a0e8
/284/CH3/EX3.6/ex_6.sce
3bc5c6f3efb428ae0294481460ebd9012fdb317d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
383
sce
ex_6.sce
// Chapter 3_The Semiconductor in Equilibrium //Caption_Extrinsic Semiconductor //Ex_6//page 104 nf=2 //nf=(Ef-Ec)/kT Fe=52 //Fermi energy is above the conduction band by Fe meV T=300; Nc=2.8*(10^19); F(nf)=2.3 // Value of fermi dirac integral from the graph no=(2/((%pi)^0.5))*Nc*F(nf) printf('Electron concentration using fermi dirac integral is %fd per cm cube ',no)
58a1c8e2f68145be30aaa9f0f3abf3551c1e2232
449d555969bfd7befe906877abab098c6e63a0e8
/43/CH3/EX3.2/ex3_2.sce
8ee035f298620b197b77dd5e25619659ae8e24af
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
232
sce
ex3_2.sce
clc; //k=2; r=1; k=0:1:2; h=0.5^(k); l1=convol(h,r); s1=sum(l1); disp(s1); n=2; subplot(2,1,1),plot2d3(n,s1); //k=3; r=1; k=0:1:3; h=0.5^(k); l2=convol(h,r); s2=sum(l2); disp(s2); m=3; subplot(2,1,2),plot2d3(m,s2);
52c2bb16877f0044bd461afe4b80b4b9d10e4908
449d555969bfd7befe906877abab098c6e63a0e8
/116/CH8/EX8.1/exa8_1.sce
a672daf52b77b0bf1b2d4db7888fa31d016673e3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
465
sce
exa8_1.sce
//Caption:Program to determine the loss limit and the multimode dispersion limit of a graded index FOC //Example 8.1 //Page 388 //Refer to figure 8.2 on page 385 Pin=42//input power = 42dB A=3//attenuation LL=(Pin/A)//Loss Limit disp('Using 2 Gbps-km as typical BDP of graded index multimode fiber, the multimode dispersion distance is determined as') Dl=(2000/90)//Dispersion limit //Result //Loss Limit = 14 km //Dispersion Limit = 22.2 km
11382918f930f0eece40fa2fbc677e22c4c49d1c
c9cea368728effc50ef3a05f10679bcc5c63382a
/Clase_03-05/clase_03-05.sce
358837182516164203b8187a70667bbe629f6681
[]
no_license
juancllanos/Optimizacion
dbb30315da1b6b3bfac0d1ace5d8e468557565d3
ef85b725af392290dd46febc839f27944a5ed9d7
refs/heads/master
2020-04-28T05:46:38.128903
2019-05-21T21:59:16
2019-05-21T21:59:16
175,032,693
0
0
null
null
null
null
UTF-8
Scilab
false
false
622
sce
clase_03-05.sce
function g1x = g1(x) g1x =x(1)**2 + x(2)**2 - 2 endfunction function g2x = g2(x) g1x =x(1)**2 + x(2)**2 - 2 endfunction function gx = gxc(x) gx(1) =x(1)**2 + x(2)**2 - 2 - x(3) gx(2) =x(1)**2 + x(2)**2 - 2 - x(3) endfunction function xnew = xn(x) xnew = max(x)+0.1 endfunction x0 = [2;-1] g1x = g1(x0) g2x = g2(x0) disp(g2x,g1x) x1 = max([g1x;g2x]) + 0.1 xnew = [x0;x1] disp(xnew) disp(gxc(xnew)) gmpp = [2 0 0 ; 0 2 0 ; 0 0 0] g1mp = [2*xnew(1);2 * xnew(2); -1 ] g2mp = [2*(xnew(1) - 2);2 * xnew(2); -1 ] Bp = - g1mp(xnew)/(g1(xnew)-x1) - g2mp(xnew)/(g2(xnew)-x1) disp(Bp)
ac0d75046b5376c3e947efe66811dce601dda092
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set6/s_Electronic_Circuits_M._H._Tooley_995.zip/Electronic_Circuits_M._H._Tooley_995/CH2/EX2.23/Ex2_23.sce
4fd185c439fb62f888c43e58707a00402d3ee98e
[]
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
98
sce
Ex2_23.sce
errcatch(-1,"stop");mode(2);//Ex:2.23 ; ; printf("Capacitance = 10000 pF of 10%%"); exit();
479af3419aeba0bfa76f3767f08113f9cc46f056
449d555969bfd7befe906877abab098c6e63a0e8
/1466/CH22/EX22.4/22_4.sce
b27d89884123806843e94e6629f6f3971819c891
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
387
sce
22_4.sce
clc //initialisation of variables p=0.1 g=32.2//ft/sec^2 H=120//ft d=5//ft d1=6//ft n=200//rpm b=9//ft //CALCULATIONS V1=sqrt(p*2*g*H) v=%pi*d*n/60 v1=v*d/d1 Vf=n/(%pi*d*b/12) Vf1=Vf*d1/d be=asind(Vf1/v1) Vw1=V1*cosd(be) si=atand(Vf1/(v1+Vw1)) Vw=(((1-p)*H*g)-(Vw1*v1))/v al=atand(Vf/Vw) th=atand(Vf/(Vw-v))+200 //RESULTS printf ('Angle= %.1f degrees',th+0.8)
107f232b35b1bbbdcb0d6b3f92e7f8f8b8e8ad4d
449d555969bfd7befe906877abab098c6e63a0e8
/3289/CH7/EX7.3/Ex7_3.sce
7514e4a64120fd9841709b7e9a9c1eef7235fd74
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
627
sce
Ex7_3.sce
clc a=15 //mm b=10 //mm h=5 //mm h1=4.4 //mm h2=2.45 //mm h3=3 //mm x=[2 0 0 0 2 -4;0 2 0 1 -4 1;0 0 2 -4 1 0;-4 2 0 0 0 1;1 -4.27 1 0 1.06 0;0 1.25 -7.41 1.34 0 0] disp(x) y=[-2 ;-2; -2; -2; -2; -2] disp(y) z=inv(x)*y printf('fi=%f G*h^2*theta \n',z) dfi=2.075 d3fi=-0.001 d2fi=-1.383 d4fi=0.002 //tauB=derivative(fi,y)B tauB=(dfi+(d2fi/2)-(d3fi/3)+(d4fi/4)) printf('tauB=%f G*thetab\n',tauB) dfi=1.536 d2fi=-0.613 d3fi=-0.002 d4fi=0.001 d5fi=0.001 d6fi=-0.002 //tauA=derivative(fi,x)A tauA=(dfi+(-d2fi/2)-(d3fi/3)-(d4fi/4)+(d5fi/5)+(d6fi/6)) printf('tauA=%f G*thetaa\n',tauA)
021b2948b3928e35535216caeeee78abbcdc2886
449d555969bfd7befe906877abab098c6e63a0e8
/3869/CH1/EX1.19/Ex1_19.sce
782778393682af3e9491dbbde621ae141704b33c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
326
sce
Ex1_19.sce
clear // // // //Variable declaration D4=0.4 //diameter of 4th ring(cm) D12=0.7 //diameter of 12th ring(cm) p1=16 p2=8 n=4 //Calculation x=n*p1/(n*p2) D20=sqrt((D4**2)+(x*((D12**2)-(D4**2)))) //diameter of 20th dark ring(cm) //Result printf("\n diameter of 20th dark ring is %0.3f cm",D20)
74901be063a002572c53a56de2a8ea4b7e5756e5
449d555969bfd7befe906877abab098c6e63a0e8
/608/CH42/EX42.03/42_03.sce
a1cc9809d65c3005019c0de05ffd9a69549da420
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
753
sce
42_03.sce
//Problem 42.03: The nominal impedance of a low-pass pi section filter is 500 ohm and its cut-off frequency is at 100 kHz. Determine (a) the value of the characteristic impedance of the section at a frequency of 90 kHz, and (b) the value of the characteristic impedance of the equivalent low-pass T section filter. //initializing the variables: R0 = 500; // in ohm fc = 100000; // in Hz f = 90000; // in Hz //calculation: //characteristic impedance of the pi section Zpi = R0/(1 - (f/fc)^2)^0.5 //characteristic impedance of the T section Zt = R0*(1 - (f/fc)^2)^0.5 printf("\n\n Result \n\n") printf("\ncharacteristic impedance of the pi section is %.0f ohm",Zpi) printf("\ncharacteristic impedance of the T section is %.0f ohm",Zt)
5d8d0d38806e54d9396ca24558a88e787df6df83
449d555969bfd7befe906877abab098c6e63a0e8
/2318/CH3/EX3.46/ex_3_46.sce
80b9e9292ad091d6483059a0ab9eb63e6e300a70
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
342
sce
ex_3_46.sce
//Example 3.46:insulation resistance clc; clear; close; v=170;//volts e=250;//volts t=20;//seconds cr1=t/(log(e/v));// v1=110;//volts e=250;//volts t=20;//seconds cr2=t/(log(e/v1));// x=cr1/cr2;// r1=25;//M-ohm r2=70;//M-ohm y=((r1*r2)/(r1+r2));// R=((x*r2*(r1*r2))-(r2*r1*r2))/((r2*(r1+r2))-((r1*r2*x)));// disp(R,"resistance is ,(M-ohm)=")
330681da482b6a350d1857345b3cea720bfcbb56
449d555969bfd7befe906877abab098c6e63a0e8
/3784/CH4/EX4.17/Ex4_17.sce
4bae4711b50c22e3f038144ea8884a5e30717788
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
513
sce
Ex4_17.sce
clc //Variable Initialisation Ea=220//Input Voltage of motor in volts Ia=100//Armature Current in Ampere Ra=0.01//Armature resistance in ohm N1=1000//Rated Speed of Motor in rpm N2=500//Rated Speed of Motor in rpm //Solution Eb1=Ea-(Ia*Ra) Eb2=(N2/N1)*Eb1 Ea2=Eb2+(Ia*Ra) d1=Ea2/Ea Ea3=Eb2-(Ia*Ra) d2=Ea3/Ea printf('\n\n Duty Ratio of Chopper in motoring operation=%0.1f\n\n',d1) printf('\n\n Duty Ratio of Chopper in breaking operation=%0.1f\n\n',d2) //The answers vary due to round off error
b7913e28c8df5ae277f0852b8c8a959fe6c198f5
449d555969bfd7befe906877abab098c6e63a0e8
/2495/CH2/EX2.9.1/Ex2_9_1.sce
a37a968458849a54f0e995f517fdfa4bcb2f3496
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
491
sce
Ex2_9_1.sce
clear clc x1=[0.0200,0.0150,0.0100,0.0075,0.0050,0.00025] y2=[0.104,0.101,0.099,0.098] x2=[0.0200,0.0150,0.0100,0.0050] y1=[0.585,0.440,0.300,0.230,0.18,0.140] plot(x1,y1,'go-',x2,y2,'ro-') [m1,c1]=reglin(x1,y1) [m2,c2]=reglin(x2,y2) R=82.0;//in cm^2atm/Kmol T=298;//in K M=R*T/c2;//molar mass of polyisobutylene in gm/mol printf('M=%.1d gm/mol',M) //There is some error in the solution given in textbook //There are some errors in the solution given in textbook //page 68
5a77651c7c631598319de953b0893deb40a59e55
08bfc8a1f8e44adc624d1f1c6250a3d9635f99de
/SDKs/swig/Examples/test-suite/scilab/empty_runme.sci
d115bf3ced1973fd587801859863dffaf2137f7b
[]
no_license
Personwithhat/CE_SDKs
cd998a2181fcbc9e3de8c58c7cc7b2156ca21d02
7afbd2f7767c9c5e95912a1af42b37c24d57f0d4
refs/heads/master
2020-04-09T22:14:56.917176
2019-07-04T00:19:11
2019-07-04T00:19:11
160,623,495
0
0
null
null
null
null
UTF-8
Scilab
false
false
127
sci
empty_runme.sci
version https://git-lfs.github.com/spec/v1 oid sha256:66f46840cbe3a6c88db952ce8e0a3cf5fd413d40d673733ddabc32c3fa1a74ba size 56
5711320df24644300c48f7c76a41ec0f65e30839
449d555969bfd7befe906877abab098c6e63a0e8
/3020/CH13/EX13.14/ex13_14.sce
9a8b45f861954e183599abaa4829e8fe3fd17825
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
747
sce
ex13_14.sce
clc; clear all; a = 1; // Lattice constant in meters suppose h1 = 1; //Miller indices of diffracted plane case1 k1 = 0; //Miller indices of diffracted plane case1 l1 = 0;// Miller indices of diffracted plane case1 d1 = a/sqrt(h1^2+k1^2+l1^2);// Lattice constant h2 = 1; //Miller indices of diffracted plane case2 k2 = 1; //Miller indices of diffracted plane case2 l2 = 0;// Miller indices of diffracted plane case2 d2 = a/sqrt(h2^2+k2^2+l2^2);// Lattice constant h3 = 1; //Miller indices of diffracted plane case3 k3 = 1; //Miller indices of diffracted plane case3 l3 = 1;// Miller indices of diffracted plane case3 d3 = a/sqrt(h3^2+k3^2+l3^2);// Lattice constant disp(' ',[d1,d2,d3],'The ratio of d(1,0,0):d(1,1,0):d(1,1,1)) is')
8b93ed8083a49de561b927f63de5f299a9d9968a
717ddeb7e700373742c617a95e25a2376565112c
/668/CH4/EX4.6/eg4_6.sce
07e16583bb08e6bb22d195b3b6330920d6930b8e
[]
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
681
sce
eg4_6.sce
t0 = 0.6*10^-9; tnr = 10^-7; p = 10^22; kT = 26*10^-3; //in eV m0 = 0.91 * 10^-30; //in kg m1 = 0.067*m0; m2 = 0.45*m0; tri = (0.5*p/t0)*(2*%pi*h*h/kT/q/(m1+m2))^1.5; tr1 = 1/tri; disp(tr1,"When the p-type doping is 10^16 cm−3, the hole density is low and the e-h recombination time (in s) for the injected electrons = ") tr2 = t0*((m1+m2)/m1)^1.5; disp(tr2,"In the case where the p-doping is high, the recombination time(in s) = ") nqr1 = (1+tr1/tnr)^-1; disp(nqr1,"For the low-doping case, the internal quantum efficiency for the diode = ") nqr2 = (1+tr2/tnr)^-1; disp(nqr2,"For the more heavily doped p region, the internal quantum efficiency for the diode = ")
a9c3594ad451d5bdbcd4fe1690770e0a9d3b72a0
449d555969bfd7befe906877abab098c6e63a0e8
/1205/CH2/EX2.1/S_2_1.sce
357f8c861cba6daa41bcb848cc320be35bcf49f1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
695
sce
S_2_1.sce
clc; //Getting resultant of two vectors P=40; // N Magnitude of vector P Q=60 // N Magnitude of vector Q // imagine triangle for triangle law of vectors B=180-25;// degree , Angle between vector P and vector Q //R- Resultant vector B=B*%pi/180;// conversion into radian //R^2=P^2+Q^2-2*P*Q*cos(B); Cosine Law R=sqrt(P^2+Q^2-2*P*Q*cos(B));// N printf("Maginitude of Resultant is R= %.2f N\n",R); //A- Angle between Resultant and P vector, Unknown // sin(A)/Q == sin(B)/R sine law A=asin(Q*sin(B)/R);// radian A=A*180/%pi;//// Conversion into degree alpha=A+20;// degree printf("Angle of Resultant vector R with x axis is %.2f Degrees\n",alpha);
faa5fc222d80b4cceeada72e120c02be800c5cc7
449d555969bfd7befe906877abab098c6e63a0e8
/629/CH7/EX7.2/example7_2.sce
6d2594101271b630cd31212a655195b20f8cf205
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
596
sce
example7_2.sce
clear clc //Example 7.2 PRESSURE IN A PIPE //Energy equation, (p1/gamma)+(alpha1*V1^2/2g)+hp=(p2/gamma)+(alpha2*V2^2/2g)+ht+hL p1=0; //pressure at top of reservoir is p_atm=0 ht=0; hp=0; V1=0; Gamma=9810; //specific weight[N/m^3] alpha2=1; z1=100; //[m] z2=20; //[m] L=2000; //[m] D=0.2; //diameter[m] A=%pi*D^2/4 //area[m^2] Q=0.06; //rate of flow[m^3/s] g=9.81; //[m/s^2] V2=Q/A //[m/s] hL=(0.02*(L/D)*V2^2)/(2*g) //head loss[m] p2=p1+Gamma*((z1-z2)+hp-ht-hL-(alpha2*V2^2)/(2*g))/10^3 //pressure at L[kPa] printf("\nThe pressure in the pipe at L=2000m is = %.f kPa.\n",p2)
4f506f5936cd51cb0a6317dc699b3a7b7c854efb
717ddeb7e700373742c617a95e25a2376565112c
/1766/CH2/EX2.9/EX2_9.sce
76cebeb1c8429752886df3eede3169c0f05992be
[]
no_license
appucrossroads/Scilab-TBC-Uploads
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
refs/heads/master
2021-01-22T04:15:15.512674
2017-09-19T11:51:56
2017-09-19T11:51:56
92,444,732
0
0
null
2017-05-25T21:09:20
2017-05-25T21:09:19
null
UTF-8
Scilab
false
false
1,032
sce
EX2_9.sce
clc;funcprot(0);//Example 2.9 //Initilisation of Variables T1=290;.........//inner surface temparature of hallow spherein degrees celcius T3=20;.........//outer tempatarure of hallow sphere in degrees celcius r1=0.05;.......//inner radius of hollow sphere in m r2=0.15;......//radius of interface between 2 layers in m r3=0.2;....//outer raius of hallow sphere in m K1=70;....//thermal conductivity of inner layer of insulation in W/m*K K2=15;....//thermal conductivity of outer layer of insulation in W/m*K t2=5;....//thickness of outer layer of hallow sphere in cm //Calculations R1=(r2-r1)/(4*%pi*r1*r2*K1);....//resistance of inner layer in degrees celcius /W R2=(r3-r2)/(4*%pi*r3*r2*K2);.....//resistance of outer layer in degrees celcius /W Q=(T1-T3)/(R1+R2);.....//Heat transfer rate in kW T2=T1-(Q*R1);...//interface temparature between two layers in K disp(Q/1000,"a.conduction heat transfer rate through hallow sphere in kW:") disp(T2,"interface temparature between the layers in degrees celcius in k:")
46788276bcef3d52b7f6fd5a15cec3465e862cba
449d555969bfd7befe906877abab098c6e63a0e8
/2789/CH6/EX6.12/Ex6_12.sce
21e276997d31648564f57fe27cf34b54bd305f7e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
790
sce
Ex6_12.sce
clear; clc; //page no. 204 r1 = 3;//in r2 = 10;//in beta1 = 120;//degrees beta2 = 135;//degrees t = 1;//in Q = 4;//cfs gam = 0.434; V1 = Q*144/(2*%pi*r1); V_r1 = V1; V_r2 = Q*144/(2*%pi*r2); u1 = V1*tan((beta1-90)*%pi/180); omega = u1/(r1/12); u2 = omega*(r2/12); V_t2 = u2 - V_r2/tan((180-beta2)*%pi/180); T = Q*1.935*(V_t2*(r2/12)); P = T*omega/547.561;//hp E_P = P*550/(Q*62.4); V2 = sqrt(V_r2^2 + V_t2^2); del_p = E_P*gam + (gam/(2*32.2))*(V1^2 - V2^2); printf('Rotational speed = %.1f rad/sec = %d rpm',omega,omega*60/(2*%pi)); printf('\n T = %d ft-lb,\n P = %.1f hp',T,P); printf('\n The energy given to each pound of water = %d ft',E_P); printf('\n The pressure rise = %.1f psi',del_p); //there are small errors in the answer given in textbook
2550612e8fefb3ad0e5d7423d7218c75812dc1f1
262ac6443426f24d5d9b13945d080affb0bd6d9b
/opgaves/vpw-balans/edit-me.sce
c8be853741528158846d3030368d843a156454f8
[]
no_license
slegers/Scilab
9ebd1d486f28cf66e04b1552ad6e94ea4bc98a0b
1b5dc3434def66355dafeb97c01916736a936301
refs/heads/master
2021-01-12T01:42:01.493578
2017-01-09T10:54:09
2017-01-09T10:54:09
78,420,343
0
0
null
null
null
null
UTF-8
Scilab
false
false
941
sce
edit-me.sce
function [sum] = solve(ns,goal) // Gegeven een rijmatrix ns en een getal goal, // tel hoeveel sommen a + b == goal je kan vinden // waarbij a en b uit ns komen. // // De sommen moeten uniek zijn: 3 + 5 en 5 + 3 tellen als // een enkele som. // // Bijvoorbeeld, stel ns = [1, 1, 2, 3, 4] en goal = 5. // De mogelijke sommen zijn dan 1 + 4 en 2 + 3, m.a.w. 2 unieke sommen. //remove doubles if size > 1 if length(ns) > 1 then seen = zeros(1,max(ns)) for (i = 1:length(ns)) //disp (ns,i,seen) if (seen(ns(i)) == 1 ) then ns(i) = %inf else seen(ns(i)) = 1 end end end sum = 0 for (i = 1:length(ns)) for (j = 1:length(ns)) if (ns(i) + ns(j) == goal) then sum = sum + 1 end end end sum = int((sum/2) + 0.5) disp ( sum,"sum") endfunction
c24421d7c11b6cdc36e2c6a571a51a35c2738fad
449d555969bfd7befe906877abab098c6e63a0e8
/1730/CH2/EX2.3/Exa2_3.sce
eec2ba30cb92383333a00d04284d8a7787d7b0ef
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
383
sce
Exa2_3.sce
//Exa2.3 clc; clear; close; //given data : miu_e=7.04*10^-3; //in m^2/V-s n=5.8*10^28 ; // in /m^3 e=1.6*10^-19; // in coulomb m=9.1*10^-31;//in kg //(i) Relaxation time, tau=miu_e/e*m; disp("Relaxation time is : "+string(tau)+" second"); sigma=(n*e*miu_e); //(ii) Resistivity of conductor, rho=1/sigma; disp("Resistivity of conductor is : "+string(rho)+" ohm-meter");
d1d7afb7383bf41f9ac43317c59440ca8a6eff89
449d555969bfd7befe906877abab098c6e63a0e8
/3504/CH2/EX2.20/Ex2_20.sce
3b3475ac043e47f4a2840dbd365e6b06867b3547
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
140
sce
Ex2_20.sce
//To find the equivalent inductive reactance. clc; Z=%i*(3+5+6)-%i*2-%i*3+%i*4-%i*2-%i*3+%i*4 disp(Z,'Equivalent inductive reactance(ohm)')
a7e8650e49e80f71a690462a5a061f3b7d2067fa
449d555969bfd7befe906877abab098c6e63a0e8
/2318/CH5/EX5.17/ex_5_17.sce
f0c0fee31378fa4326fb3a460f6434a30b4a318a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
280
sce
ex_5_17.sce
//Example 5.17 // fluxmeter clc; clear; close; //given data : N1=800;// turns I=5;// in A l=1;// in m A=5*10^-4;// in m^2 N=500;// turns theta=25;// divisions H=(N1*I)/l; B=(4*%pi*10^-7*H); fi=B*A*10^8; K=((2*N*fi*10^-8)/(theta)); disp(K*10^-3,"Constant is,(Wb-turn/scale-div)=")
05f6b37651e40252536cc39ca869c9b95b0a1ec2
449d555969bfd7befe906877abab098c6e63a0e8
/3830/CH4/EX4.7/Ex4_7.sce
8359d25d7a998e6da497c7105966a9cb8dbc097e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
565
sce
Ex4_7.sce
// Exa 4.7 clc; clear; // Given // Two sinusoidal voltage signals are applied to vertical and horizontal plates of CRO // Solution printf('Theta = asin(dvo/DV'); // Referring fig(a) Theta_a = asind(0) ; // dvo = 0 printf(' Theta for trace shown in fig(a) = %d degrees\n',Theta_a); // Referring fig(b) Theta_b = asind(3/6) ; // dvo = 3 and DV =6 printf(' Theta for trace shown in fig(b) = %d degrees\n',Theta_b); // Referring fig(c) Theta_c = asind(1/1) ; // dvo = DV = 1 printf(' Theta for trace shown in fig(c) = %d degrees\n',Theta_c);
c64a4c30a762684c20bd7cec3683ff178ca1b897
0b933bd2623c74cae8a4da69fc33f0828c27ca65
/progs/scilab/analysecl.sce
77d5124e2e65c6a0126d564d7e28fde1cd12345c
[]
no_license
gaetanbahl/IRL_MongeAmpere_OptimalTransport
dcc694cc2471c20b68958c9fd0d72065acb5271a
abf56fa34c36d9440e0ec8b25bd0bce41c0480b4
refs/heads/master
2021-01-01T03:48:20.062779
2016-05-27T09:32:06
2016-05-27T09:32:54
59,815,804
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,855
sce
analysecl.sce
u = fscanfMat("/home/blacky/Documents/2A/IRL/progs/ClImplem/rescl.txt") [Npoints,mhh] = size(u) matDy = zeros(Npoints, Npoints) matDx = zeros(Npoints, Npoints) matDxx = zeros(Npoints, Npoints) matDyy = zeros(Npoints, Npoints) matDxy = zeros(Npoints, Npoints) rhoYmat = zeros(Npoints, Npoints) detmat = zeros(Npoints, Npoints) xmin = -1 xmax = 1 ymin = -1 ymax = 1 h = (xmax - xmin)/Npoints x = linspace(xmin, xmax, Npoints) y = linspace(ymin, ymax, Npoints) matDxx(2:(Npoints-1), 2:(Npoints-1)) = (1/h^2) * (u(3:Npoints,2:(Npoints-1)) + u(1:(Npoints-2),2:(Npoints-1)) - 2*u(2:(Npoints-1),2:(Npoints-1))); matDyy(2:(Npoints-1), 2:(Npoints-1)) = (1/h^2) * (u(2:(Npoints-1),3:Npoints) + u(2:(Npoints-1),1:(Npoints-2)) - 2*u(2:(Npoints-1),2:(Npoints-1))); matDxy(2:(Npoints-1), 2:(Npoints-1)) = (1/(4 *h^2)) * (u(3:Npoints,3:Npoints) + u(1:(Npoints-2),1:(Npoints-2)) - u(1:(Npoints-2),3:Npoints) - u(3:Npoints,1:(Npoints-2))); matDx(2:(Npoints-1), 2:(Npoints-1)) = (1/(2*h)) * (u(3:Npoints,2:(Npoints-1)) - u(1:(Npoints-2),2:(Npoints-1))); matDy(2:(Npoints-1), 2:(Npoints-1)) = (1/(2*h)) * (u(2:(Npoints-1),3:Npoints) - u(2:(Npoints-1),1:(Npoints-2))); function z = rhoY(x,y) // z = 1 z = exp(- norm([x+0.3,y-0.3]) ^2 / 0.1) +0.1; //z = (Npoints^2)/66.051535 * exp(- norm([x,y]) ^2 / 0.1) +1; //z = 0.1 + exp(- norm([x,y]) ^2 / 0.1); // // if sqrt((x+0.2)^2 + (y-0.2)^2) < 0.3 then // z = 2 // else // z = 1 // end // endfunction for i = 2:(Npoints-1) for j = 2:(Npoints -1) rhoYmat(i,j) = rhoY(matDx(i,j), matDy(i,j)) ; detmat(i,j) = det([Dxx(u,i,j,h) Dxy(u,i,j,h) ; Dxy(u,i,j,h) Dyy(u,i,j,h)]); end end clf() res = rhoYmat .* detmat plot3d(x(2:(Npoints-1)),y(2:(Npoints-1)),res((2:(Npoints-1)),(2:(Npoints-1)))) //clf() //champ1(x,y,matDx, matDy)
6ae3a1194f1aba2e37c1ccc9282e8a18eef9c1a7
449d555969bfd7befe906877abab098c6e63a0e8
/770/CH11/EX11.12/11_12.sce
b2827518a20f8af7ae47d873c385371fd3375482
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
487
sce
11_12.sce
clear; clc; //Example - 11.12 //Page number - 401 printf("Example - 11.12 and Page number - 401\n\n"); //This problem involves proving a relation in which no mathematics and no calculations are involved. //For prove refer to this example 11.12 on page number 401 of the book. printf(" This problem involves proving a relation in which no mathematics and no calculations are involved.\n\n"); printf(" For prove refer to this example 11.12 on page number 401 of the book.")
7bfcc2321f764969b1b8952b987981f1af97e1cc
449d555969bfd7befe906877abab098c6e63a0e8
/1442/CH11/EX11.11/11_11.sce
2c0a490dd9d38d6f844c0d287cdfbd2e48e126da
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
441
sce
11_11.sce
clc //initialisation of variables h1= 1404.6 //kJ/kg h2s= 1748.9 //kJ/kg ec= 0.8 h4= 322.9 //kJ/kg h2= 1835 //kJ/kg Q= 100 //kW h21= 1649.2 //kJ/kg h22= 1515 //kJ/kg h23= 1678.8 //kJ/kg //CALCULATIONS h2= h1+((h2s-h1)/ec) COP= (h1-h4)/(h2-h1) W= Q/COP COP1= (h1-h4)/(h21-h1+h23-h22) W1= Q/COP1 //RESULTS printf (' COP= %.3f ',COP) printf (' \n COP= %.3f ',COP1) printf (' \n W= %.1f kW',W) printf (' \n W= %.1f kW',W1)
becfd9af005f19194e32dde2c478d90c07ccc042
449d555969bfd7befe906877abab098c6e63a0e8
/2921/CH13/EX13.3/Ex13_3.sce
9f5096f421628dc3cf3307ce58f9f300765a613f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
745
sce
Ex13_3.sce
clc; clear; mprintf('MACHINE DESIGN \n Timothy H. Wentzell, P.E. \n EXAMPLE-13.3 Page No.286\n'); Np=24; Ng=36; Pd=8; Yp=33.7*%pi/180; Yg=56.3*%pi/180; theta=14.5*%pi/180; //Pitch diameter Dp=Np/Pd; mprintf('\n Pitch diameter = %f in.',Dp); //Transmitted force n=2200; P=8; T=63000*P/n; Ft=2*T/Dp; mprintf('\n Transmitted force = %f lb.',Ft); //Separating force - Pinion Fnp=Ft*tan(theta)*cos(Yp); mprintf('\n Separating force-Pinion = %f lb.',Fnp); //Separating force-Gear Fng=Ft*tan(theta)*cos(Yg); mprintf('\n Separating force = %f lb.',Fng); //Axial force-Pinion Fap=Ft*tan(theta)*sin(Yp); mprintf('\n Axial force-Pinion= %f lb.',Fap); //Axial force-Gear Fag=Ft*tan(theta)*sin(Yg); mprintf('\n Axial force-Gear = %f lb.',Fag);
ebebe547e2d2090d5207ce1e5a4c96bbc91a6ad3
84ea66af72ab1c482a1a03fd2d8bdc74e9ad1668
/Tutorial03-Curve_fitting/Scilab_code/Tutorial3_curve_fitting.sce
a289ca3f1e2355f024a03c16fbd5f0b0a77eed29
[]
no_license
FOSSEE/scilab-tutorials
c4a9464a5b163074566234e42659f99e2012ecc0
301609f6ef1653dee4fa2ed74bca3e6f7abc1308
refs/heads/master
2020-03-26T23:48:04.178016
2018-10-08T00:44:39
2018-10-08T00:44:39
145,567,949
0
0
null
null
null
null
UTF-8
Scilab
false
false
994
sce
Tutorial3_curve_fitting.sce
//This function is for curve fitting using least-square clear clc //The function to be fitted exec fit_function.sci; //The error function exec errorfun.sci; //Read measured data Data = csvRead('../Data/Tut3_Data.csv') //Time stamp time = Data(:,1); //Measured output measured_data = Data(:,2); // initial parameters guess initial_condition = [1 ; 1]; //Call least square function, //Output is function value (func_value_xopt) at optimal coefficients (x_optimal)) [func_value_xopt,coeff_optimal] = leastsq(list(errorfun,time,measured_data),initial_condition) error = errorfun(coeff_optimal,time,measured_data) disp(error,'The error after least square approximation') // Plot of measured data and fitted data versus time // a small graphic fit_time = 0:0.01:15; fitted_data = fit_function(fit_time, coeff_optimal); plot2d(time, measured_data, -1) plot2d(fit_time, fitted_data, 2) legend(["measure points", "fitted curve"],[-1,2],"ur"); xtitle("a simple fit with leastsq","time","data")
af18f40ca26c1ead6668f5e369e09beb9f598bba
449d555969bfd7befe906877abab098c6e63a0e8
/2195/CH6/EX6.17.3/ex_6_17_3.sce
eb7372e2e60fc0dfb13eb563e06e66eef0be0502
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
263
sce
ex_6_17_3.sce
//Example 6.17.3 // Accuracy clc; clear; close; //given data : format('v',9) f=400;//Hz time_accuracy=10^-8;//sec display_accuracy=1;//(+ve or -Ve) t=10;//sec period=1/f ;//ms Accuracy= 1+((period*10^3)/10);//ms disp(Accuracy,"accuracy in ms (±)")
4d9d182341c0a25f5b5713c41e602dca115dad05
449d555969bfd7befe906877abab098c6e63a0e8
/257/CH8/EX8.27/example_8_27.sce
d1a4ff4966d36e01dbc1969f38e34244b251fe57
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
596
sce
example_8_27.sce
s=%s //P=s^4+2*s^3+3*s^2+s+1 s'=%s P=(s'-1)^4+2*(s'-1)^3+3*(s'-1)^2+(s'-1)+1 //putting s=s'-1 routh=routh_t(P) disp(routh) r=coeff(P) n=length(r) c=0; for i=1:n if (routh(i,1)<0) c=c+1; end end if(c>=1) printf("there are 2*%d roots to the right of s=-1",c) //2 terms with negetive signs implies 4 sign changes// else printf("system is stable") end F=(s'-0.5)^4+2*(s'-0.5)^3+3*(s'-0.5)^2+(s'-0.5)+1 disp(routh_t(F)) r=coeff(F) rouths=routh_t(F) n=length(r) printf("there are 2 sign changes.so there are 2 roots to the right of s=-0.5")
4f01e7a17f99bd303abd47c43dac554dd48fad07
449d555969bfd7befe906877abab098c6e63a0e8
/3669/CH9/EX9.7/7.sce
b2f904e3cc5da60616727cd990cdd8edee4807a4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
272
sce
7.sce
//Variable declaration T=5; //temperature(K) H0=6.5*10**3; //critical field(amp/m) Tc=7.2; //transition temperature(K) //Calculation Hc=H0*(1-(T/Tc)**2); //critical field(Tesla) //Result printf('critical field is %0.3f *10**3 A/m \n',(Hc/10**3))
7035c86adcffb48b5dcd5fb6c3facaabd174a98f
449d555969bfd7befe906877abab098c6e63a0e8
/2006/CH14/EX14.8/ex14_8.sce
33622f7c9d20be8778c9dee1f4f0ee45805d4d80
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
439
sce
ex14_8.sce
clc; Ha_H1=6220; // From example 14.7 in kJ/kmol del_Ho=-2039.7; // From example 14.7 LHV in MJ/kmol Hb_H2=-del_Ho+Ha_H1; // For adiabatic combustion of C3H8 // Hb_H2=3*h1333_CO2+4*h1333_H2O+18.8*h1333_N2 By iteration process and making use of the values from Table A.3, A.13, A.15 we can get the adiabatic flame temperature is Tad=2300;// The adiabatic flame temperature in kelvin disp ("K",Tad,"The adiabatic flame temperature");
d1607e4f329a515867d7fee427749f8a30a8a185
372033bab042bbc9406b52cfc39a678bb377bfeb
/projects/07/MemoryAccess/CustomTest/CustomTest.tst
76d3e5cd008abeee21fd2c28209c21580c7bcaf3
[]
no_license
captn3m0/nand2tetris
f9f51371fc74000d667735d335c3089d8a36e510
3b541898e260251a92cbae2e68df287f0f3f8668
refs/heads/master
2022-11-12T08:49:04.027554
2020-07-08T14:26:28
2020-07-08T14:26:28
265,303,574
1
4
null
2020-05-29T22:21:35
2020-05-19T16:39:10
VHDL
UTF-8
Scilab
false
false
832
tst
CustomTest.tst
load CustomTest.asm, output-file CustomTest.out, compare-to CustomTest.cmp, output-list RAM[20]%D0.2.0 RAM[41]%D0.2.0 RAM[61]%D0.2.0 RAM[51]%D0.2.0 RAM[31]%D0.2.0 RAM[40]%D0.2.0 RAM[60]%D0.2.0 RAM[50]%D0.2.0 RAM[30]%D0.2.0 RAM[21]%D0.2.0 RAM[22]%D0.2.0 RAM[23]%D0.2.0 RAM[24]%D0.2.0 RAM[25]%D0.2.0 RAM[26]%D0.2.0 RAM[27]%D0.2.0 RAM[28]%D0.2.0 RAM[29]%D0.2.0, set RAM[0] 20, // stack pointer set RAM[1] 30, // base address of the local segment set RAM[2] 40, // base address of the argument segment set RAM[3] 50, // base address of the this segment set RAM[4] 60, // base address of the that segment repeat 150 { // enough cycles to complete the execution ticktock; } // Outputs the stack base and some values // from the tested memory segments output;
8e6c64db87cf02abd6f1ced2989a51ee40510ba7
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set6/s_Electronic_Circuits_M._H._Tooley_995.zip/Electronic_Circuits_M._H._Tooley_995/CH2/EX2.17/Ex2_17.sce
9100591c1aa6582c25dbe7fc67e59db2e4cc360d
[]
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
242
sce
Ex2_17.sce
errcatch(-1,"stop");mode(2);//Ex:2.17 ; ; r_o=40;//resis at 0 degree r_t=44;//at 100 degree t=100;//temperature diff. temp_coeff=(1/t)*((r_t/r_o)-1); printf("Temperature Coefficient = %f per degree centigrade",temp_coeff); exit();
68a3e2ce5e341b8c1fbc377e1dbf13286808b095
449d555969bfd7befe906877abab098c6e63a0e8
/2519/CH16/EX16.2/Ex16_2.sce
6a610fae156452059a0ca311187ce2651d101089
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
161
sce
Ex16_2.sce
clc clear //Initialization of variables per=0.071 //calculations O2=8.74 N2=per/2 + 3.76*O2 //results printf("Oxygen = %.2f and Nitrogen = %.2f",O2,N2)
24f29d5e6525d248952b14e92ca4fc1b39faa65f
449d555969bfd7befe906877abab098c6e63a0e8
/3665/CH2/EX2.12/Ex2_12.sce
c5873c5b043881abf06793fbf01b001a4fb35402
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
453
sce
Ex2_12.sce
clc// // // //Variable declaration mw=23+35.5; //molecular weight of NaCl(gm/mol) N=6.023*10^23; //avagadro number(per mol) d=2.18; //mass of unit volume //Calculation M=mw/N; //mass of NaCl molecule(gm) n=2*d/M; //number of atoms per unit volume(atoms/cm^3) a=(1/n)^(1/3); //distance between 2 adjacent atoms(cm) //Result printf("\n distance between 2 adjacent atoms is %e cm = %0.2f angstrom ",a,a*10^8)
9de209958c66019be99818a4067f2149c5957aa6
6e257f133dd8984b578f3c9fd3f269eabc0750be
/ScilabFromTheoryToPractice/CreatingPlots/testmove.sce
c1de0aaa6a5651372d4c29e834426499d132bea5
[]
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
515
sce
testmove.sce
clf; dt=0.01 // time step z=[0:0.01:2*%pi]; // to plot the trajectory A=gca();A.data_bounds=[-1.2,-1.2;1.2,1.2];A.isoview="on"; plot(cos(z),sin(z),'-b') // trajectory in blue plot(1,0,'.r') // initial position of the red dot E=gce(); // handle of the red dot for t=0:dt:1 // loop to increment the time dx=-2*%pi*sin(2*%pi*t)*dt; // displacement in x dy=2*%pi*cos(2*%pi*t)*dt; // displacement in y move(E,[dx,dy]); // move the E handle sleep(10) // to have enough time to see the figure end
0c6160b8c05119c9685c6e26a2828c1e59c16d65
8d551e72c6940ca7341e78e63c9e6288225be46e
/algorithmes/Q5_Exemple_Cholesky.sce
b863f28e7b8d9ff4cac6dd1020036fbef047b703
[]
no_license
aurelienpepin/Ensi_MethodesNumeriques
8c3199d810285f610d060360ccbd23edee5abfcf
c80f9ad3da32aa0e65f62d5d1a327da40f01b5e8
refs/heads/master
2021-03-27T09:08:50.259386
2017-05-20T08:23:02
2017-05-20T08:23:02
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,560
sce
Q5_Exemple_Cholesky.sce
// ::::::::::::::::::::::::::::::::::::::::: // :: :: // :: Question 5. Cholesky, exemple :: // :: :: // ::::::::::::::::::::::::::::::::::::::::: funcprot(0); exec("Q3_Factorisation_Cholesky.sce"); exec("Q4_Descente_Cholesky.sce"); exec("Q5_Remontee_Cholesky.sce"); // On résout le système MX = B // où M, X et B sont les matrices définies dans // la réponse à la question 5 du compte-rendu. function exemple5() matrice_M_diag = [1, 2, 2, 2, 2]; matrice_M_inf = [-1, -1, -1, -1]; matrice_B = [10, 20, 30, 40, 50]; // On procède classiquement en trois phases : // - Factorisation (rapide car M est tridiagonale) ; // - Descente (idem, facilitée par la structure de la factorisation) ; // - Remontée (idem, facilitée par la structure de la factorisation) ; [matrice_F_diag, matrice_F_inf] = factorise(matrice_M_diag, matrice_M_inf); m_descente = descente(matrice_F_diag, matrice_F_inf, matrice_B); matrice_X = remonte(matrice_F_diag, matrice_F_inf, m_descente); disp("La matrice résultat est : "); disp(matrice_X); disp("Le résultat attendu en comparaison est :"); disp([350; 340; 310; 250; 150]); // Vérification sommaire sur une calculatrice externe. // Taper la ligne ci-dessous sur WolframAlpha : // {{1, -1, 0, 0, 0}, {-1, 2, -1, 0, 0}, {0, -1, 2, -1, 0}, {0, 0, -1, 2, -1}, {0, 0, 0, -1, 2}} . {{a}, {b}, {c}, {d}, {e}} = {{10}, {20}, {30}, {40}, {50}} endfunction exemple5()
a435d6353e3b716670732ec1d3725b513c04913d
449d555969bfd7befe906877abab098c6e63a0e8
/1823/CH5/EX5.1/SolEx5_1.sce
e1e447d3891e96f4f42ea0d0ebf22b0e9edb3ca8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
166
sce
SolEx5_1.sce
//find its leakage current at 90 degree C. //Example 5.1 page no 143 clear clc Icbo=(500*(2^((90-25)/10)))/1000 printf("\n The value of Icbo=%0.3f mA" ,Icbo)
0b2405e9ce884e1305efcf52db920556191b4f66
717ddeb7e700373742c617a95e25a2376565112c
/2474/CH11/EX11.12/Ch11Ex12.sce
92876f47d19afef5c805b5ac743a315c2b2d245b
[]
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
519
sce
Ch11Ex12.sce
// Scilab code Ex11.12: Pg.503 (2008) clc; clear; M_P = 39.964000; // Atomic mass of Parent nucleus, u M_D = 39.962384; // Atomic mass of daughter nucleus, u m_e = 5.4858e-04; // Mass of electron, u // For simplicity assume velocity of light be unity c = 1; // Velocity of light, m/s Q = (M_P - (M_D + 2*m_e))*931.5; // Maximum decay energy, MeV/c^2 printf("\nThe maximum energy of emitted positrons = %5.3f MeV/c^2", Q); // Result // The maximum energy of emitted positrons = 0.483 MeV/c^2
0c8978d44cfc9e24ce77a38913c55df1c99281eb
449d555969bfd7befe906877abab098c6e63a0e8
/3845/CH14/EX14.4/Ex14_4.sce
b204b659fdd920d249df657d93af0905133101ef
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
617
sce
Ex14_4.sce
//Example 14.4 m_ice=3*6;//Mass of ice cubes (g) m_ice=m_ice/1000;//Mass of ice cubes (kg) L_f=334000;//Latent heat of fusion of water (J/kg) c_W=4186;//Specific heat of water (and soda) (J/kg.C) T_ice=0;//Initial temperature of ice cubes (C) m_soda=0.25;//Mass of soda (kg) T_soda=20;//Initial temperature of soda (C) T_f=[(m_soda*c_W*T_soda)-(m_ice*L_f)]/[(m_soda+m_ice)*c_W];//Final temperature after derivation (C) printf('Final temperature = %0.2f C',T_f) //An error of more than 2% due to round off error //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest
8ba37df80f08ac023b576dfea23d8568da543aac
449d555969bfd7befe906877abab098c6e63a0e8
/149/CH9/EX9.7.1/example7_1.sce
cddb35a42ecbeb2b1163fc513f8b8585f69af0b0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
example7_1.sce
clc syms n disp('u=((n+1)^0.5-1)/((n+2)^3-1)=>') //put n=1/n u=((1+1/(1/n))-(1/n)^(-0.5))/(((1/n)^5/2)*((1+2/(1/n))^3-(1/n)^(-3))) v=(1/n)^(-5/2) disp(limit(u/v,n,0)); //disp('=1') disp('since , v is convergent,so u is also conzavergent.')
a545bb41e46fafd92d6289540d156f3b6de6bcd8
449d555969bfd7befe906877abab098c6e63a0e8
/401/CH2/EX2.4/Example2_4.sce
a99de94dcc95e92b40b086d82375100ed0127629
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
732
sce
Example2_4.sce
//Example 2.4 //Program to estimate //(a) Normalized frequency for the fiber //(b) The Number of guided modes clear; clc ; close ; //Given data n1=1.48; //CORE REFRACTIVE INDEX delta=0.015 //RELATIVE REFRACTIVE INDEX DIFFERENCE d=80*10^(-6); //metre - CORE DIAMETER lambda=0.85*10^(-6); //metre - OPERATING WAVELENGTH a=d/2; //CORE RADIUS //(a) Normalized frequency for the fiber V=2*%pi/lambda*a*n1*sqrt(2*delta); //(b) The Number of guided modes Ms=(V^2)/2; //Displaying the Results in Command Window printf("\n\n\t The Normalized frequency for the fiber is %0.1f.",V); printf("\n\n\t The Number of guided modes of the fiber is %d.",ceil(Ms));
c6a41ebc66e01b0237d6e589db1568e1812842bb
449d555969bfd7befe906877abab098c6e63a0e8
/3557/CH4/EX4.2/Ex4_2.sce
27c20033017a8257d36dcadba9933b4d0c11dfcc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
427
sce
Ex4_2.sce
//Example4.2// a=4;//body-centered cubic as given in table 3.3 b=sqrt(3); //body-centered cubic as given in table 3.3 c=1;// as we take R common from the equation ri=(1/2)*(a/b)-c mprintf("ri = %f R",ri) //from the appendix 2, R=0.124nm giving R=0.124;//nm //atomic radius of iron ri1=ri*R mprintf("\nri1 = %f nm",ri1) rC=0.077;//nm //atomic radius of carbon from the appendix 2 R1=rC/ri1 mprintf("\nR1 = %f ",R1)
6ca4b1c89956e6dad1269b7988319305a0697c48
449d555969bfd7befe906877abab098c6e63a0e8
/409/CH11/EX11.1/Example11_1.sce
a0779b0723432b48229c7372bdc3bb68196e8192
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,009
sce
Example11_1.sce
clear ; clc; // Example 11.1 printf('Example 11.1\n\n'); // Page no. 311 // Solution // Composition of each stream w_A1 = 1 ;//concentration of A in 1 w_B2 = 1 ;// concentration of B in 2 w_A3 = 0.8 ;// concentration of A in 3 w_B3 = 0.2 ;// concentration of B in 3 w_C4 = 1 ;// concentration of C in 4 w_A5 = 0.571 ;//concentration of A in 5 w_B5 = 0.143 ;//concentration of B in 5 w_C5 = 0.286 ;//concentration of C in 5 w_D6 = 1;// concentration of D in 6 w_A7 = 0.714 ;// concentration of A in 7 w_B7 = 0.286 ;// concentration of B in 7 w_B8 = 0.333 ;//concentration of B in 8 w_C8 = .667 ;//concentration of C in 8 us1 = 2 ;// Species involved in unit 1 us2 = 3 ;// Species involved in unit 2 us3 = 4 ;// Species involved in unit 3 total_sp = us1+us2+us3 ;// Total species in system // Element balance of all systems printf('Number of possible equations are 9, they are as follows- \n'); printf(' Subsystem 1\n'); printf(' A: F1*w_A1+F2*0 = F3*w_A3 (a)\n'); printf(' B:F1*0 + F2*w_B2 = F3*w_B3 (b)\n'); printf(' Subsystem 2\n'); printf(' A: F3*w_A3+F4*0 = F5*w_A5 (c)\n'); printf(' B:F3*w_B3 + F4*0 = F5*w_B5 (d)\n'); printf(' C: F3*0+F4*w_C4 = F5*w_C5 (e)\n'); printf(' Subsystem 3\n'); printf(' A: F5*w_A5+F6*0 = F7*w_A7+F8*0 (f)\n'); printf(' B:F5*w_B5 + F6*0 = F7*0+F8*w_B8 (g)\n'); printf(' C: F5*w_C5+F6*0 = F7*0+F8*w_C8 (h)\n'); printf(' D:F5*w_C5+F6*0 = F7*0+F8*w_C8 (i)\n'); printf('\n The above equations do not form a unique set\n'); // By inspection we can see that only 7 equations are independent //Independent Equations are: // Subsystem 1 //A: F1*w_A1+F2*0 = F3*w_A3 (a) //B:F1*0 + F2*w_B2 = F3*w_B3 (b) //Subsystem 2 //A: F3*w_A3+F4*0 = F5*w_A5 (c) // C: F3*0+F4*w_C4 = F5*w_C5 (e) // Subsystem 3 //A: F5*w_A5+F6*0 = F7*w_A7+F8*0 (f) //B:F5*w_B5 + F6*0 = F7*0+F8*w_B8 (g) //D:F5*w_C5+F6*0 = F7*0+F8*w_C8 (i) printf('\n Number of independent equations are 7 \n');
63fd1c57ab9017f2dbf737142f9d5fb5ce6f09f8
449d555969bfd7befe906877abab098c6e63a0e8
/3830/CH1/EX1.30/Ex1_30.sce
b16287b92e3d018590cb6e85debf75d3b0a05d61
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,362
sce
Ex1_30.sce
// Exa 1.30 clc; clear; // Given // Various Inductance Measurements L1 = 1.003; // First reading in mH L2 = 0.998; // second reading in mH L3 = 1.001; // third reading in mH L4 = 0.991; // fourth reading in mH L5 = 1.009; // Fifth reading in mH L6 = 0.996; // sixth reading in mH L7 = 1.005; // seventh reading in mH L8 = 0.997; // eight reading in mH L9 = 1.008; // nineth reading in mH L10 = 0.994; // tenth reading in mH n = 10; // total no of readings // Solution AM = (L1+L2+L3+L4+L5+L6+L7+L8+L9+L10)/n; printf('The arithmatic mean = %.4f mH \n',AM); // Deviation for each reading will be - d1 = L1 - AM; // deviation for 1st reading d2 = L2 - AM; // deviation for 2nd reading d3 = L3 - AM; // deviation for 3rd reading d4 = L4 - AM; // deviation for 4th reading d5 = L5 - AM; // deviation for 5th reading d6 = L6 - AM; // deviation for 6th reading d7 = L7 - AM; // deviation for 7th reading d8 = L8 - AM; // deviation for 8th reading d9 = L9 - AM; // deviation for 9th reading d10 = L10 - AM; // deviation for 10th reading Avg_deviation = (d1+d2+d3+d4+d5+d6+d7+d8+d9+d10)/n; printf(' The average deviation = %d mH \n',Avg_deviation); SD = sqrt((d1^2+d2^2+d3^2+d4^2+d5^2+d6^2+d7^2+d8^2+d9^2+d10^2)/(n-1)); printf(' The standard deviation = %.3f mH \n',SD); //The answer provided in the textbook is wrong
3a9bce68cba23e5f5b051b20f0da9e0087720ec8
449d555969bfd7befe906877abab098c6e63a0e8
/3293/CH4/EX4.7/Ex4_7.sce
1771164faf5c170024a3b1f3a2e3ba7ce5e50e54
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
361
sce
Ex4_7.sce
//page 131 //Example 4.7 clc; clear; close; x = poly(0,"x"); p1 = x + 2; p2 = x^2 + 8*x + 16; disp('M = (x+2)F[x] + (x^2 + 8x + 16)F[x]'); disp('We assert, M = F[x]'); disp('M contains:'); t = p2 - x*p1; disp(t); disp('And hence M contains:'); disp(t - 6*p1); disp('Thus the scalar polynomial 1 belongs to M as well all its multiples.') //end
cc6b2475c5e384bd85d4f2e7724f05bdf17d13a0
36c5f94ce0d09d8d1cc8d0f9d79ecccaa78036bd
/robLongRangeHs.sce
42a1a3e08b7e25b95817894e71e1e6e77ad764d6
[]
no_license
Ahmad6543/Scenarios
cef76bf19d46e86249a6099c01928e4e33db5f20
6a4563d241e61a62020f76796762df5ae8817cc8
refs/heads/master
2023-03-18T23:30:49.653812
2020-09-23T06:26:05
2020-09-23T06:26:05
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
30,913
sce
robLongRangeHs.sce
Name=robLongRangeHs PlayerCharacters=Gamer BotCharacters=Quaker Bot Fast Strafes.bot IsChallenge=true Timelimit=60.0 PlayerProfile=Gamer AddedBots=Quaker Bot Fast Strafes.bot PlayerMaxLives=0 BotMaxLives=0 PlayerTeam=2 BotTeams=1 MapName=longrange.map MapScale=3.8125 BlockProjectilePredictors=true BlockCheats=true InvinciblePlayer=true InvincibleBots=false Timescale=1.0 BlockHealthbars=false TimeRefilledByKill=0.0 ScoreToWin=1000.0 ScorePerDamage=3.0 ScorePerKill=0.0 ScorePerMidairDirect=0.0 ScorePerAnyDirect=0.0 ScorePerTime=0.0 ScoreLossPerDamageTaken=0.0 ScoreLossPerDeath=0.0 ScoreLossPerMidairDirected=0.0 ScoreLossPerAnyDirected=0.0 ScoreMultAccuracy=false ScoreMultDamageEfficiency=true ScoreMultKillEfficiency=false GameTag= WeaponHeroTag= DifficultyTag=5 AuthorsTag=Rob BlockHitMarkers=false BlockHitSounds=false BlockMissSounds=true BlockFCT=false Description=Fast Tracking GameVersion=2.0.2.0 ScorePerDistance=0.0 MBSEnable=false MBSTime1=0.25 MBSTime2=0.5 MBSTime3=0.75 MBSTime1Mult=1.0 MBSTime2Mult=2.0 MBSTime3Mult=3.0 MBSFBInstead=false MBSRequireEnemyAlive=false LockFOVRange=false LockedFOVMin=60.0 LockedFOVMax=120.0 LockedFOVScale=Clamped Horizontal [Aim Profile] Name=At Feet MinReactionTime=0.3 MaxReactionTime=0.4 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=15.0 TrackSpeed=3.5 TrackError=3.5 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=40.0 ShootFOV=15.0 VerticalAimOffset=-200.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 AimingStyle=Original ScanSpeedMultiplier=1.0 MaxSeekPitch=30.0 MaxSeekYaw=30.0 AimingSpeed=5.0 MinShootDelay=0.3 MaxShootDelay=0.6 [Aim Profile] Name=Low Skill At Feet MinReactionTime=0.35 MaxReactionTime=0.45 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=20.0 TrackSpeed=3.0 TrackError=5.0 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=60.0 ShootFOV=25.0 VerticalAimOffset=-200.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 AimingStyle=Original ScanSpeedMultiplier=1.0 MaxSeekPitch=30.0 MaxSeekYaw=30.0 AimingSpeed=5.0 MinShootDelay=0.3 MaxShootDelay=0.6 [Aim Profile] Name=Low Skill MinReactionTime=0.35 MaxReactionTime=0.45 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=20.0 TrackSpeed=3.0 TrackError=5.0 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=60.0 ShootFOV=25.0 VerticalAimOffset=0.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 AimingStyle=Original ScanSpeedMultiplier=1.0 MaxSeekPitch=30.0 MaxSeekYaw=30.0 AimingSpeed=5.0 MinShootDelay=0.3 MaxShootDelay=0.6 [Aim Profile] Name=Default MinReactionTime=0.3 MaxReactionTime=0.4 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=15.0 TrackSpeed=3.5 TrackError=3.5 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=40.0 ShootFOV=15.0 VerticalAimOffset=0.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 AimingStyle=Original ScanSpeedMultiplier=1.0 MaxSeekPitch=30.0 MaxSeekYaw=30.0 AimingSpeed=5.0 MinShootDelay=0.3 MaxShootDelay=0.6 [Bot Profile] Name=Quaker Bot Fast Strafes DodgeProfileNames=Long Strafes DodgeProfileWeights=1.0 DodgeProfileMaxChangeTime=5.0 DodgeProfileMinChangeTime=1.0 WeaponProfileWeights=1.0;1.0;2.0;1.0;1.0;1.0;1.0;1.0 AimingProfileNames=At Feet;Low Skill At Feet;Low Skill;Default;Default;Default;Default;Default WeaponSwitchTime=3.0 UseWeapons=false CharacterProfile=Quaker SeeThroughWalls=false NoDodging=false NoAiming=false AbilityUseTimer=0.1 UseAbilityFrequency=1.0 UseAbilityFreqMinTime=0.3 UseAbilityFreqMaxTime=0.6 ShowLaser=false LaserRGB=X=1.000 Y=0.300 Z=0.000 LaserAlpha=1.0 [Character Profile] Name=Gamer MaxHealth=800.0 WeaponProfileNames=LG;;;;;;; MinRespawnDelay=0.6 MaxRespawnDelay=1.1 StepUpHeight=70.0 CrouchHeightModifier=0.5 CrouchAnimationSpeed=2.0 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=true DamageKnockbackFactor=0.1 MovementType=Base MaxSpeed=900.0 MaxCrouchSpeed=700.0 Acceleration=8500.0 AirAcceleration=16000.0 Friction=6.0 BrakingFrictionFactor=1.0 JumpVelocity=800.0 Gravity=3.0 AirControl=0.25 CanCrouch=true CanPogoJump=false CanCrouchInAir=true CanJumpFromCrouch=false EnemyBodyColor=X=0.016 Y=0.440 Z=0.072 EnemyHeadColor=X=0.000 Y=0.894 Z=0.012 TeamBodyColor=X=0.000 Y=0.000 Z=255.000 TeamHeadColor=X=255.000 Y=255.000 Z=255.000 BlockSelfDamage=false InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=800.0 MainBBType=Cuboid MainBBHeight=230.0 MainBBRadius=55.0 MainBBHasHead=true MainBBHeadRadius=45.0 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Cuboid ProjBBHeight=230.0 ProjBBRadius=55.0 ProjBBHasHead=true ProjBBHeadRadius=45.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.2 JetpackFullFuelTime=4.0 JetpackFuelIncPerSec=1.0 JetpackFuelRegensInAir=false JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=false AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.1 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=100.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.25 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 TerminalVelocity=0.0 CharacterModel=None CharacterSkin=Default SpawnXOffset=0.0 SpawnYOffset=0.0 InvertBlockedSpawn=false ViewBobTime=0.0 ViewBobAngleAdjustment=0.0 ViewBobCameraZOffset=0.0 ViewBobAffectsShots=false IsFlyer=false FlightObeysPitch=false FlightVelocityUp=800.0 FlightVelocityDown=800.0 [Character Profile] Name=Quaker MaxHealth=300.0 WeaponProfileNames=;;LG;;;;; MinRespawnDelay=1.0 MaxRespawnDelay=5.0 StepUpHeight=75.0 CrouchHeightModifier=0.5 CrouchAnimationSpeed=2.0 CameraOffset=X=0.000 Y=0.000 Z=80.000 HeadshotOnly=true DamageKnockbackFactor=4.0 MovementType=Base MaxSpeed=2200.0 MaxCrouchSpeed=500.0 Acceleration=9000.0 AirAcceleration=16000.0 Friction=4.0 BrakingFrictionFactor=2.0 JumpVelocity=800.0 Gravity=3.0 AirControl=0.25 CanCrouch=true CanPogoJump=false CanCrouchInAir=true CanJumpFromCrouch=false EnemyBodyColor=X=0.771 Y=0.000 Z=0.000 EnemyHeadColor=X=1.000 Y=1.000 Z=1.000 TeamBodyColor=X=1.000 Y=0.888 Z=0.000 TeamHeadColor=X=1.000 Y=1.000 Z=1.000 BlockSelfDamage=false InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=0.0 MainBBType=Cylindrical MainBBHeight=220.0 MainBBRadius=58.0 MainBBHasHead=true MainBBHeadRadius=45.0 MainBBHeadOffset=0.0 MainBBHide=true ProjBBType=Cylindrical ProjBBHeight=230.0 ProjBBRadius=55.0 ProjBBHasHead=false ProjBBHeadRadius=45.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.2 JetpackFullFuelTime=4.0 JetpackFuelIncPerSec=1.0 JetpackFuelRegensInAir=false JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=false AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.5 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 TerminalVelocity=0.0 CharacterModel=Ecto CharacterSkin=Default SpawnXOffset=0.0 SpawnYOffset=0.0 InvertBlockedSpawn=false ViewBobTime=0.0 ViewBobAngleAdjustment=0.0 ViewBobCameraZOffset=0.0 ViewBobAffectsShots=false IsFlyer=false FlightObeysPitch=false FlightVelocityUp=800.0 FlightVelocityDown=800.0 [Dodge Profile] Name=Long Strafes MaxTargetDistance=2500.0 MinTargetDistance=750.0 ToggleLeftRight=true ToggleForwardBack=false MinLRTimeChange=0.5 MaxLRTimeChange=1.5 MinFBTimeChange=0.2 MaxFBTimeChange=0.5 DamageReactionChangesDirection=true DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=50.0 DamageReactionResetTimer=0.5 JumpFrequency=0.2 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.0 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 WaypointLogic=Ignore WaypointTurnRate=200.0 MinTimeBeforeShot=0.15 MaxTimeBeforeShot=0.25 IgnoreShotChance=0.0 ForwardTimeMult=1.0 BackTimeMult=1.0 DamageReactionChangesFB=false [Weapon Profile] Name=LG Type=Hitscan ShotsPerClick=1 DamagePerShot=6.0 KnockbackFactor=2.0 TimeBetweenShots=0.046 Pierces=false Category=FullyAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=2.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=0.5 ReloadTimeFromPartial=0.5 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=7.0 DelayBeforeShot=0.0 ProjectileGraphic=Ball VisualLifetime=0.05 BounceOffWorld=false BounceFactor=0.0 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=1.0 CanAimDownSight=true ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-80.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=4.0 RecoilNegatable=false DecalType=0 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=true AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=true AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=true MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=70.0 ADSFOVScale=Quake/Source ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.1 WeaponModel=Heavy Surge Rifle WeaponAnimation=Primary UseIncReload=false IncReloadStartupTime=0.0 IncReloadLoopTime=0.0 IncReloadAmmoPerLoop=1 IncReloadEndTime=0.0 IncReloadCancelWithShoot=true WeaponSkin=Default ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000 SpreadDecayDelay=0.0 ReloadBeforeRecovery=true 3rdPersonWeaponModel=Pistol 3rdPersonWeaponSkin=Default ParticleMuzzleFlash=None ParticleWallImpact=None ParticleBodyImpact=None ParticleProjectileTrail=None ParticleHitscanTrace=Tracer ParticleMuzzleFlashScale=1.0 ParticleWallImpactScale=1.0 ParticleBodyImpactScale=1.0 ParticleProjectileTrailScale=1.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=0.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,0.0 SpreadSCA=1.0,1.0,-1.0,0.0 SpreadMSA=1.0,1.0,-1.0,0.0 SpreadMCA=1.0,1.0,-1.0,0.0 SpreadSSH=1.0,1.0,-1.0,0.0 SpreadSCH=1.0,1.0,-1.0,0.0 SpreadMSH=1.0,1.0,-1.0,0.0 SpreadMCH=1.0,1.0,-1.0,0.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=false TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=0.05 AAMaxSpeed=1.0 AADeadZone=0.0 AAFOV=30.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.095 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Map Data] reflex map version 8 global entity type WorldSpawn String32 targetGameOverCamera end UInt8 playersMin 1 UInt8 playersMax 16 brush vertices -576.000000 0.000000 256.000000 448.000000 0.000000 256.000000 448.000000 0.000000 -768.000000 -576.000000 0.000000 -768.000000 -576.000000 -16.000000 256.000000 448.000000 -16.000000 256.000000 448.000000 -16.000000 -768.000000 -576.000000 -16.000000 -768.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 0.000000 1280.000000 448.000000 0.000000 1280.000000 448.000000 0.000000 256.000000 -576.000000 0.000000 256.000000 -576.000000 -16.000000 1280.000000 448.000000 -16.000000 1280.000000 448.000000 -16.000000 256.000000 -576.000000 -16.000000 256.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 0.000000 -768.000000 448.000000 0.000000 -768.000000 448.000000 0.000000 -1792.000000 -576.000000 0.000000 -1792.000000 -576.000000 -16.000000 -768.000000 448.000000 -16.000000 -768.000000 448.000000 -16.000000 -1792.000000 -576.000000 -16.000000 -1792.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 272.000000 -1792.000000 448.000000 272.000000 -1792.000000 448.000000 272.000000 -1808.000000 -576.000000 272.000000 -1808.000000 -576.000000 0.000000 -1792.000000 448.000000 0.000000 -1792.000000 448.000000 0.000000 -1808.000000 -576.000000 0.000000 -1808.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 272.000000 1296.000000 448.000000 272.000000 1296.000000 448.000000 272.000000 1280.000000 -576.000000 272.000000 1280.000000 -576.000000 0.000000 1296.000000 448.000000 0.000000 1296.000000 448.000000 0.000000 1280.000000 -576.000000 0.000000 1280.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 448.000000 272.000000 1280.000000 464.000000 272.000000 1280.000000 464.000000 272.000000 -1792.000000 448.000000 272.000000 -1792.000000 448.000000 0.000000 1280.000000 464.000000 0.000000 1280.000000 464.000000 0.000000 -1792.000000 448.000000 0.000000 -1792.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -592.000000 272.000000 1280.000000 -576.000000 272.000000 1280.000000 -576.000000 272.000000 -1792.000000 -592.000000 272.000000 -1792.000000 -592.000000 0.000000 1280.000000 -576.000000 0.000000 1280.000000 -576.000000 0.000000 -1792.000000 -592.000000 0.000000 -1792.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 704.000000 1296.000000 448.000000 704.000000 1296.000000 448.000000 704.000000 1280.000000 -576.000000 704.000000 1280.000000 -576.000000 272.000000 1296.000000 448.000000 272.000000 1296.000000 448.000000 272.000000 1280.000000 -576.000000 272.000000 1280.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 704.000000 -1792.000000 448.000000 704.000000 -1792.000000 448.000000 704.000000 -1808.000000 -576.000000 704.000000 -1808.000000 -576.000000 272.000000 -1792.000000 448.000000 272.000000 -1792.000000 448.000000 272.000000 -1808.000000 -576.000000 272.000000 -1808.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -592.000000 704.000000 1280.000000 -576.000000 704.000000 1280.000000 -576.000000 704.000000 -1792.000000 -592.000000 704.000000 -1792.000000 -592.000000 272.000000 1280.000000 -576.000000 272.000000 1280.000000 -576.000000 272.000000 -1792.000000 -592.000000 272.000000 -1792.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices 448.000000 704.000000 1280.000000 464.000000 704.000000 1280.000000 464.000000 704.000000 -1792.000000 448.000000 704.000000 -1792.000000 448.000000 272.000000 1280.000000 464.000000 272.000000 1280.000000 464.000000 272.000000 -1792.000000 448.000000 272.000000 -1792.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 720.000000 1280.000000 448.000000 720.000000 1280.000000 448.000000 720.000000 -1792.000000 -576.000000 720.000000 -1792.000000 -576.000000 704.000000 1280.000000 448.000000 704.000000 1280.000000 448.000000 704.000000 -1792.000000 -576.000000 704.000000 -1792.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 32.000000 528.000000 448.000000 32.000000 528.000000 448.000000 32.000000 512.000000 -576.000000 32.000000 512.000000 -576.000000 0.000000 528.000000 448.000000 0.000000 528.000000 448.000000 0.000000 512.000000 -576.000000 0.000000 512.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 704.000000 528.000000 448.000000 704.000000 528.000000 448.000000 704.000000 512.000000 -576.000000 704.000000 512.000000 -576.000000 32.000000 528.000000 448.000000 32.000000 528.000000 448.000000 32.000000 512.000000 -576.000000 32.000000 512.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip brush vertices -576.000000 32.000000 -1024.000000 448.000000 32.000000 -1024.000000 448.000000 32.000000 -1040.000000 -576.000000 32.000000 -1040.000000 -576.000000 0.000000 -1024.000000 448.000000 0.000000 -1024.000000 448.000000 0.000000 -1040.000000 -576.000000 0.000000 -1040.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -576.000000 704.000000 -1024.000000 448.000000 704.000000 -1024.000000 448.000000 704.000000 -1040.000000 -576.000000 704.000000 -1040.000000 -576.000000 32.000000 -1024.000000 448.000000 32.000000 -1024.000000 448.000000 32.000000 -1040.000000 -576.000000 32.000000 -1040.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 internal/editor/textures/editor_clip 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 internal/editor/textures/editor_clip entity type PlayerSpawn Vector3 position -64.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type CameraPath UInt32 entityIdAttachedTo 5 UInt8 posLerp 2 UInt8 angleLerp 2 entity type Effect Vector3 position 0.000000 256.000000 0.000000 String64 effectName internal/misc/reflectionprobe entity type Target Vector3 position 320.000000 256.000000 320.000000 Vector3 angles -135.000000 30.000000 0.000000 String32 name end entity type PlayerSpawn Vector3 position -64.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -128.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -192.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -256.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -320.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -384.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -448.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position -512.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 0.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 64.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 128.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 192.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 256.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 320.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 384.000000 0.000000 1248.000000 Vector3 angles 180.000000 0.000000 0.000000 Bool8 teamB 0 entity type PlayerSpawn Vector3 position 0.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 64.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 128.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 192.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 256.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 320.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 384.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -128.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -192.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -256.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -320.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -384.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -448.000000 0.000000 -1760.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -512.000000 0.000000 -1760.000000 Bool8 teamA 0
fc1338289fc5532f3144f3707e3a1b59328084e1
449d555969bfd7befe906877abab098c6e63a0e8
/2873/CH13/EX13.1/Ex13_1.sce
2979fd6dc2ddcd52473a9322cfde7ee43b501563
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,193
sce
Ex13_1.sce
// Display mode mode(0); // Display warning for floating point exception ieee(1); clear; clc; disp("Engineering Thermodynamics by Onkar Singh Chapter 13 Example 1") To=(27+273);//stagnation temperature in K P=0.4*10^5;//static pressure in pa m=3000/3600;//air flowing rate in kg/s d=80*10^-3;//diameter of duct in m R=287;//gas constant in J/kg K y=1.4;//expansion constant disp("mass flow rate(m)=rho*A*C") disp("so rho*C=4*m/(%pi*d^2)") 4*m/(%pi*d^2) disp("so rho=165.79/C") disp("now using perfect gas equation,p=rho*R*T") disp("T=P/(rho*R)=P/((165.79/C)*R)") disp("C/T=165.79*R/P") 165.79*R/P disp("so C=1.19*T") disp("we know,C^2=((2*y*R)/(y-1))*(To-T)") disp("C^2=(2*1.4*287)*(300-T)/(1.4-1)") disp("C^2=602.7*10^3-2009*T") disp("C^2+1688.23*C-602.7*10^3=0") disp("solving we get,C=302.72 m/s and T=254.39 K") C=302.72; T=254.39; disp("using stagnation property relation,") disp("To/T=1+(y-1)*M^2/2") disp("so M=sqrt(((To/T)-1)/((y-1)/2))") M=sqrt(((To/T)-1)/((y-1)/2)) M=0.947;//approx. disp("stagnation pressure,Po=P*(1+(y-1)*M^2/2)in bar") Po=P*(1+(y-1)*M^2/2)/10^5 disp("so mach number=0.947,stagnation pressure=0.472 bar,velocity=302.72 m/s")
928cd36f4df67870682ad1cf8857f9fe357a7be6
449d555969bfd7befe906877abab098c6e63a0e8
/2303/CH4/EX4.1/4_1.sce
d6e230d20a1eb6b0e56d6eb913e13c05ab17aae2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
281
sce
4_1.sce
//Example 4.1 //MAXIMA SCILAB TOOLBOX REQUIRED FOR THIS PROGRAM clear; clc ; close ; syms n z; f = 1; F= symsum (f*(z^(-n)),n ,0, %inf ); //Display the result in command window disp (F,"Z-transform of f(n)=1 for all n>=0 with is:"); disp('ROC is the Region |Z|>1 ');
8d69bb1090d669eed6e7113b04aae2ebba256868
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.5/Unix-Windows/scilab-2.5/macros/percent/%r_r_s.sci
7af15d575e36a52d569c7245606babf9d1f5581b
[ "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
574
sci
%r_r_s.sci
function a=%r_r_s(a,b) // a/b a rational matrix, b scalar matrix //! // Copyright INRIA if size(b,'*')==0 then a=[],return,end [ma,na]=size(a('num')) [mb,nb]=size(b); if mb*nb==1 then a(2)=a(2)/b, if ma==-1|mb==-1 then a(3)=a(3)*eye(),end return, end na=abs(na);ma=abs(ma) mb=abs(mb);nb=abs(nb) if na==1 then a=rlist(num/b,ones(nb,mb)*den,a('dt')) else [num,den]=a(['num','den']); dd=[];nn=[] for i=1:ma, [y,fact]=lcm(den(i,:)), nn=[nn;(num(i,:).*fact)/b]; dd=[dd;y] end [num,den]=simp(nn,dd*ones(1,mb)) a=rlist(num,den,a('dt')) end
4048ad31b0e409e28badacf376700446ac2cddee
449d555969bfd7befe906877abab098c6e63a0e8
/854/CH4/EX4.2/Example4_2.sce
4c60ee76bc9daf6ec1a6a39cb3884809be492245
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
985
sce
Example4_2.sce
//clear// //Caption: Program to find the work involved 'W' in moving a charge 'Q' along straight line //Example4.2 //page 84 clc; x = sym('x'); y = sym('y'); z = sym('z'); y1 = sym('y1'); y = -3*(x-1); Q = 2; //charge in coulombs Edot_dL1 = integ(y,x); disp(Edot_dL1,'E.dx*ax =') Edot_dL1 = limit(Edot_dL1,x,0.8)-limit(Edot_dL1,x,1); disp(Edot_dL1,'Value of E.dx*ax =') Edot_dL2 = 0; disp(Edot_dL2,'Value of E.dz*az=') x = (1-y1/3); Edot_dL3 = integ(x,y1) disp(Edot_dL3,'E.dy*ay=') Edot_dL3 = limit(Edot_dL3,y1,0.6)-limit(Edot_dL3,y1,0); disp(Edot_dL3,'Value of E.dy*ay =') W = -Q*(Edot_dL1+Edot_dL2+Edot_dL3); disp(W,'Work done in moving a point charge along shorter arc of circle in Joules, W=') //Result //E.dx*ax = -3*(x^2/2-x) //Value of E.dx*ax = -3/50 //Value of E.dz*az = 0. //E.dy*ay = y1-y1^2/6 //Value of E.dy*ay = 27/50 //Work done in moving a point charge along shorter arc of circle in Joules, W = -24/25 = -0.96 Joules
75ef8e0bb627f949308a329490ddc350f0d4c338
449d555969bfd7befe906877abab098c6e63a0e8
/1016/CH10/EX10.5/ex10_5.sce
730d7a45bc6734e39c6b3e733dc9bea214d050a5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
303
sce
ex10_5.sce
clc;clear; //Example 10.5 //given data m1=1.008665;//mass of 0n1 in a.m.u m2=1.007825;//mass of 1H1 in a.m.u m3=34.9800;//mass 17Cl35 in a.m.u n=17+18; //calculations dm=(17*m2)+(18*m1)-m3; Q=dm*931; disp(Q,'Binding energy in MeV'); BEn=Q/n; disp(BEn,'Binding energy per nucleon in MeV')
dbdd2b5bfd8c37b46f20c39b3d082814827dfc92
449d555969bfd7befe906877abab098c6e63a0e8
/1808/CH1/EX1.4/Chapter1_Example4.sce
99132bb8e080b10caaa221728841edc33b85aed0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
784
sce
Chapter1_Example4.sce
clc clear //INPUT DATA BP=17;//Brake power in kW mf=6;//Mass flow rate in kg/h cv=44200;//calorific value in kJ/kg L=0.1;//Stroke in m d=0.06;//bore in m Rc=8;//copression ratio n=2;//for four cylinders nc=4;//number of cylinders N=50;//speed in rps //CALCULATIONS nbt=(BP/((mf/3600)*cv))*100;//Brake thermal efficiency in percentage vs=(3.14*d^2*L)/4;//swept volume in m^3 vc=vs/7;//Clearance volume in m^3 pmb=((BP*n)/(L*(3.14*d^2/4)*N*nc));//brake ean pressure in kPa no=(1-(1/(Rc^(1.4-1))))*100;//Air standard efficiency in percentage //OUTPUT printf('(i)Brake thermal efficiency is %3.2f percentage \n (ii)clearance volume is %3.9f m^3 \n (iii)Brake mean effective pressure is %3.2f kPa \n (iv)air standard efficiency is %3.2f percentage',nbt,vc,pmb,no)
e40460b19d0c516761b9c206d75521d7d57401e3
449d555969bfd7befe906877abab098c6e63a0e8
/2795/CH2/EX2.15/Ex2_15.sce
cff1da8edd511bdc803160509f59747ff0e3a326
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
441
sce
Ex2_15.sce
// Scilab Code Ex2.15: Page-71 (2013) clc; clear; E_d = 1875.6; // Rest mass energy of the deuterium, MeV E_pi = 139.6; // Rest mass energy of the pion, MeV E_p = 938.3; // Rest mass energy of the proton, MeV K = 1/2*(E_d + E_pi - 2*E_p); // Minimum kinetic energy of the protons, MeV printf("\nThe minimum kinetic energy of the protons = %2d MeV", K); // Result // The minimum kinetic energy of the protons = 69 MeV
4c8ba7e84553e5ae61224a6f76356ccd288d9718
449d555969bfd7befe906877abab098c6e63a0e8
/275/CH2/EX2.2.21/Ch2_2_21.sce
3a98b6c2a18d20be9b41cdce15c3546573b04904
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
401
sce
Ch2_2_21.sce
clc disp("Example 2.21") printf("\n") disp("Find the load current and rms value of input current") printf("Given\n") V2=100 Rf=50 RL=950 //secondary voltage Vm=sqrt(2)*V2 //DC load current Idc=(2*Vm)/(%pi*(Rf+RL)) //RMS input current is same as RMS load current Im=(Idc*%pi)/2 Irms=Im/sqrt(2) printf("The load current=\t%f ampere\n",Idc) printf("RMS load current=\t%f ampere\n",Irms)
7ebf086f06a13f89a4d43ecc90fa59756080fc3b
449d555969bfd7befe906877abab098c6e63a0e8
/3014/CH8/EX8.10/Ex8_10.sce
1fdbe6fd0e46f57b5e3cff9bd13bfc692c6b4380
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex8_10.sce
clc // Given that T_1 = 3.5 // Temperature in kelvin T_c = 4.153 // Critical temp in kelvin lambda_t = 750 // Penetration depth at T_1 in angstrom printf("Example 8.10\n") printf("Standard formula used \nlambda_0 = lambda_t*sqrt(1-(T_1/T_c)^4) \n") lambda_0 = lambda_t*sqrt(1-(T_1/T_c)^4) // Calculation of penetration depth at 3.5K printf("\n Penetration depth at 0 K is %f angstrom.\n\n\n",lambda_0)
6bef0d72d31a4e78e0efa3d2d75db4e3b1c29bd3
449d555969bfd7befe906877abab098c6e63a0e8
/2144/CH8/EX8.11/ex8_11.sce
64488761e2cb46074e35eecb22897e4197acecb7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,905
sce
ex8_11.sce
// Exa 8.11 clc; clear; close; // Given data Cp= 1;// in kJ/kg H= 2.7*10^3;// total heat of vaport in flue gas in kJ/kg CoalCalorific= 32.82*10^3;// in kJ/kg T1= 310;// final gas flue temp. in °C T2= 25;// boiler house temp. in °C mC= 0.84;//mass of carbon in kg mH2= 0.05;//mass of H2 in kg O2_mass= 2.66*mC + 9*mH2;// in kg Air_mass= O2_mass/0.23;// in kg Air_mass= 1.5*Air_mass;// in kg (as 50% excess air is supplied) disp(Air_mass,"Actual mass of air required per kg of fuel for complete combustion in kg is : ") // Analysis of dry flue gas by weight CO2= 3.08;// in kg N2= 13.24;// in kg O2= 1.32;// in kg total_mass= CO2+N2+O2;// in kg CO2_per_by_mass= CO2/total_mass*100;// in % O2_per_by_mass= O2/total_mass*100;// in % N2_per_by_mass= N2/total_mass*100;// in % disp(CO2_per_by_mass,"Percentage of CO2 by mass is : ") disp(O2_per_by_mass,"Percentage of O2 by mass is : ") disp(N2_per_by_mass,"Percentage of N2 by mass is : ") M_wt_CO2= 44; CO2_Per_M_com_M_wt= CO2_per_by_mass/M_wt_CO2;// % Mass composition molecular weight M_wt_O2= 32; O2_Per_M_com_M_wt= O2_per_by_mass/M_wt_O2;// % Mass composition molecular weight M_wt_N2= 28; N2_Per_M_com_M_wt= N2_per_by_mass/M_wt_N2;// % Mass composition molecular weight total= CO2_Per_M_com_M_wt + O2_Per_M_com_M_wt + N2_Per_M_com_M_wt; CO2_per_by_vol= CO2_Per_M_com_M_wt/total*100;// in % O2_per_by_vol= O2_Per_M_com_M_wt/total*100;// in % N2_per_by_vol= N2_Per_M_com_M_wt/total*100;// in % disp(CO2_per_by_vol,"Percentage of CO2 by volume is : ") disp(O2_per_by_vol,"Percentage of O2 by volume is : ") disp(N2_per_by_vol,"Percentage of N2 by volume is : ") H_w_v= 9*mH2*H;//heat carried away by water vapour in kJ H_dry_flue= total_mass*Cp*(T1-T2);// in kJ H_total= H_w_v+H_dry_flue;// in kJ H_available= CoalCalorific-H_total;// in kJ disp(H_available,"Heat available for steam generation in kJ is : ")
1f7b795f7c464013c716498c7846044f54b39a62
c559c06fd4e5638a51e9bb8b35f28ceffd7d38fc
/Optimisation/Code/OraclePH.sci
6912cabf72ea272584f09451881e24d266b6cd04
[]
no_license
constantinidan/Optimisation-and-control
0b933d37bbb7a130373d661c418f36b19b21a20c
1692b7614ab51ea1271e47080fccc95b0f33f232
refs/heads/master
2021-01-17T17:26:32.353921
2016-08-03T08:54:11
2016-08-03T08:54:11
59,370,331
0
0
null
null
null
null
UTF-8
Scilab
false
false
442
sci
OraclePH.sci
function [F,G,H] = OraclePH(qc,ind) if ind == 2 | ind == 3 | ind == 4 then [F,G] = OraclePG(qc,ind) H = 0 elseif ind == 5 then H = 2*B'*diag(r.*(abs(q0+B*qc)))*B F = 0 G = 0 elseif ind == 6 then [F,G] = OraclePG(qc,3) H = 2*B'*diag(r.*(abs(q0+B*qc)))*B elseif ind == 7 then [F,G] = OraclePG(qc,4) H = 2*B'*diag(r.*(abs(q0+B*qc)))*B end endfunction
e88f8471559eeb2fb487b75f46fb7eac903c23ad
449d555969bfd7befe906877abab098c6e63a0e8
/3020/CH13/EX13.7/ex13_7.sce
d169121f3e959c1e885eb117bba44adc5d142840
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
300
sce
ex13_7.sce
clc; clear all; a = 4.12e-10; // Lattice constant in meters h = 3; //Miller indices of diffracted plane k = 2; //Miller indices of diffracted plane l = 1;// Miller indices of diffracted plane d = a/sqrt(h^2+k^2+l^2);// Lattice constant disp('m',d,'The lattice spacing for plane (1,1,0) is')
c1eaa7fd199668323dedc38801700c0c71d50d1b
449d555969bfd7befe906877abab098c6e63a0e8
/2411/CH9/EX9.1.2/Ex9_1_2.sce
f99411addfaf2d8e6887e48d5f2d7e8c715e2ca1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
642
sce
Ex9_1_2.sce
// Scilab Code Ex9.1.2:Page-411 (2008) clc; clear; e = 1.6e-013; // Energy equivalent of 1 MeV, J m_p = 1.672e-027; // Mass of a proton, kg m_n = 1.675e-027; // Mass of a neutron, kg M_D = 3.343e-027; // Mass of a deutron, kg c = 3.00e+008; // Speed of light in vacuum, m/s delta_m = m_p + m_n - M_D; // Mass defect, kg E_B = delta_m*c^2/e; // Binding energy for the deutron, MeV BE_bar = E_B/2; // Binding energy per nucleon for the deutron, MeV printf("\nThe binding energy per nucleon for the deutron = %5.3f MeV/nucleon", BE_bar); // Result // The binding energy per nucleon for the deutron = 1.125 MeV/nucleon
8166e5886a365a8fcf1b5a080401188b65c72487
449d555969bfd7befe906877abab098c6e63a0e8
/3137/CH3/EX3.5/Ex3_5.sce
2ff383b515d0156d37fcf5a11c81b1c02ef18f70
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
418
sce
Ex3_5.sce
//Initilization of variables F1=-100 //lb F2=200 //lb F3=-200 //lb F4=400 //lb F5=-300 //lb //Distance with respect to point O x1=0 //ft x2=2 //ft x3=5 //ft x4=9 //ft x5=11 //ft //Calculation R=F1+F2+F3+F4+F5 //lb M_O=(F1*x1)+(F2*x2)+(F3*x3)+(F4*x4)+(F5*x5) //N-m //Result clc printf('The resultant of the force system is:%i lb \n',R) //lb printf('The moment about point O is:%i lb-ft',M_O) //lb-ft
87b3a22df7d05e7a742faedef430269f3eb48505
449d555969bfd7befe906877abab098c6e63a0e8
/2318/CH3/EX3.59/ex_3_59.sce
39b489ef3d3cc40d5270e0d8716551b78b2e091d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
286
sce
ex_3_59.sce
//Example 3.59: capacitance and resistance clc; clear; close; e1=5000;//volts r1=500;//ohm l1=0.18;//H r2=1000;//ohm r4=r2;//ohms x=(r1/(e1^2*l1));// y=((r2*r2)/(1+((e1^2)*x^2)));// c3=((l1/y));//F r3=(x/c3);// disp(c3*10^6,"capacitance is,(micro-F)=") disp(r3,"resistance is,(ohm)=")
ca5c428b795bb86957a928efd7b31efe4387c6a6
089894a36ef33cb3d0f697541716c9b6cd8dcc43
/NLP_Project/test/blog/bow/bow.12_8.tst
ea93fd589aeabc8d90b1fab8677d6d34ef5fc5e2
[]
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,489
tst
bow.12_8.tst
12 47:0.16666666666666666 55:1.0 68:0.4 80:0.15384615384615385 100:1.0 332:1.0 436:1.0 614:1.0 681:0.3333333333333333 735:1.0 794:1.0 849:2.0 1332:1.0 12 20:0.2 55:0.5 58:0.017543859649122806 68:0.2 187:1.0 363:1.0 445:1.0 632:1.0 757:1.0 849:1.0 1519:1.0 12 6:1.0 12:0.5 20:0.8 22:1.0 27:0.5 38:1.5 44:0.25 46:0.25 47:0.8333333333333334 48:4.0 49:1.0 50:1.0 51:1.0 52:0.14285714285714285 58:0.12280701754385964 64:0.07692307692307693 80:0.15384615384615385 101:1.0 105:0.6666666666666666 107:0.25 122:0.5 123:1.0 133:0.047619047619047616 137:2.0 147:2.0 187:1.0 195:0.14285714285714285 202:0.5 267:1.0 332:2.0 339:1.0 356:1.0 416:1.0 430:1.0 445:1.0 460:1.0 530:0.16666666666666666 534:1.0 578:1.0 672:1.0 677:0.5 729:1.0 753:0.5 931:1.0 1083:1.0 1092:1.0 1133:1.0 1216:1.0 1244:1.0 1321:1.0 1390:1.0 1507:1.0 12 2:1.0 47:0.16666666666666666 54:1.0 55:0.5 58:0.017543859649122806 120:0.16666666666666666 221:1.0 270:1.0 348:1.0 608:1.0 872:1.0 1119:1.0 12 58:0.017543859649122806 735:1.0 1052:1.0 12 12:0.5 80:0.07692307692307693 1119:1.0 1181:1.0 12 12:1.0 44:0.25 47:0.3333333333333333 74:0.5 267:1.0 997:1.0 1181:1.0 12 6:1.0 27:0.5 43:1.0 54:1.0 58:0.017543859649122806 80:0.07692307692307693 156:1.0 1181:1.0 12 2:1.0 22:1.0 43:1.0 55:0.5 88:1.0 133:0.047619047619047616 156:1.0 12 46:0.25 58:0.017543859649122806 84:1.0 217:1.0 277:1.0 336:1.0 532:1.0 1037:1.0 12 5:0.05 12:0.5 47:0.16666666666666666 64:0.07692307692307693 74:0.5 312:1.0 1181:1.0 12 6:1.0 12:0.5 27:0.5 49:1.0 55:1.0 58:0.017543859649122806 80:0.07692307692307693 106:0.25 123:1.0 133:0.047619047619047616 140:1.0 142:1.0 191:0.3333333333333333 753:0.5 1039:1.0 1216:1.0 12 2:1.0 20:0.2 47:0.16666666666666666 55:1.5 71:0.25 80:0.07692307692307693 103:1.0 147:1.0 157:1.0 176:1.0 217:2.0 849:2.0 872:1.0 1014:1.0 12 5:0.05 12:0.5 38:0.5 47:0.16666666666666666 52:0.14285714285714285 71:0.25 76:1.0 80:0.07692307692307693 221:1.0 460:1.0 1216:1.0 12 48:1.0 55:0.5 76:1.0 485:1.0 12 22:2.0 54:1.0 55:0.5 58:0.017543859649122806 12 12:0.5 22:1.0 47:0.16666666666666666 52:0.14285714285714285 58:0.03508771929824561 64:0.07692307692307693 74:0.5 80:0.07692307692307693 101:0.5 166:1.0 271:0.5 309:1.0 436:1.0 450:1.0 632:1.0 1272:1.0 12 20:0.2 22:1.0 54:1.0 58:0.017543859649122806 80:0.07692307692307693 88:1.0 197:1.0 350:0.1 607:1.0 623:1.0 849:1.0 1272:1.0 1328:1.0 12 20:0.2 49:1.0 58:0.05263157894736842 64:0.07692307692307693 119:1.0 350:0.1 623:1.0 632:1.0 1272:1.0 1398:1.0 12 12:0.5 64:0.07692307692307693 361:0.3333333333333333 1459:1.0 12 20:0.2 22:1.0 58:0.03508771929824561 116:0.5 357:1.0 632:1.0 924:1.0 1202:1.0 12 22:1.0 64:0.07692307692307693 142:1.0 339:1.0 354:0.5 729:1.0 981:1.0 1177:1.0 12 20:0.2 22:1.0 38:0.5 50:1.0 148:1.0 312:1.0 838:1.0 12 8:1.0 20:0.2 38:0.5 46:0.25 48:1.0 55:0.5 58:0.017543859649122806 71:0.25 76:1.0 80:0.07692307692307693 171:1.0 186:0.25 354:0.5 482:1.0 530:0.16666666666666666 857:1.0 12 47:0.16666666666666666 140:1.0 142:1.0 221:1.0 997:1.0 12 22:1.0 38:0.5 47:0.16666666666666666 48:2.0 58:0.017543859649122806 64:0.07692307692307693 74:0.5 80:0.07692307692307693 88:1.0 133:0.047619047619047616 217:1.0 221:1.0 230:1.0 350:0.2 523:0.14285714285714285 532:1.0 614:1.0 849:1.0 1397:1.0 12 22:1.0 46:0.25 48:2.0 80:0.07692307692307693 133:0.047619047619047616 221:1.0 350:0.1 482:1.0 523:0.14285714285714285 530:0.16666666666666666 570:0.3333333333333333 1161:1.0 1509:1.0 12 48:1.0 58:0.03508771929824561 80:0.23076923076923078 106:0.25 188:1.0 356:1.0 416:1.0 671:1.0 12 6:1.0 43:1.0 55:1.0 58:0.017543859649122806 1026:1.0 12 20:0.2 142:1.0 186:0.25 482:1.0 770:1.0 12 22:1.0 38:0.5 47:0.16666666666666666 74:0.5 76:1.0 80:0.07692307692307693 145:1.0 176:1.0 230:1.0 997:1.0 12 47:0.16666666666666666 52:0.14285714285714285 321:1.0 361:0.3333333333333333 523:0.2857142857142857 1192:1.0 1202:1.0 12 22:1.0 47:0.3333333333333333 101:0.5 339:1.0 1202:1.0 12 22:1.0 27:0.5 38:0.5 47:0.5 48:2.0 52:0.14285714285714285 58:0.03508771929824561 64:0.07692307692307693 140:1.0 729:1.0 1067:1.0 1085:1.0 12 20:0.2 47:0.16666666666666666 221:1.0 997:2.0 1178:1.0 12 27:0.5 47:0.16666666666666666 48:1.0 80:0.07692307692307693 133:0.047619047619047616 175:1.0 430:1.0 1045:1.0 12 20:0.2 22:1.0 38:0.5 48:1.0 50:1.0 58:0.017543859649122806 71:0.25 221:1.0 356:1.0 924:1.0 1178:1.0 1419:1.0 12 20:0.2 22:1.0 54:1.0 55:0.5 178:1.0 221:1.0 809:0.16666666666666666 872:1.0 1135:1.0 1181:1.0 12 47:0.16666666666666666 54:1.0 58:0.03508771929824561 71:0.25 74:0.5 230:1.0 905:1.0
d178478d6b17771b217eaa5dd546159f3911fe8a
449d555969bfd7befe906877abab098c6e63a0e8
/1484/CH3/EX3.9/3_9.sce
49f1bf6f894928b0950edd3a006bece5aded9121
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
709
sce
3_9.sce
clc //initialisation of variables clear R= 4 //in r= 0.5 //in c= 0.007 K= 33.96 w= 62.4 //lb/ft^3 pa= 12.13 //lb/in^2 pb= 14.7 //lb/in^2 w1= 2.5 //lbs Q= 40 //gals/min h= 1.86 //CALCULATIONS va= Q*4*(2*r*12)^2/(6*w*%pi) vb= Q*(2*r*12)^2/(6*w*2*R*%pi*0.32) vx= vb*R/2 pu= 2*%pi*w*h pd= pb*%pi*R^2 RP= pb*%pi*R^2-2*%pi*w*(0.5*K*((R/12)^2-(r/12)^2)-c*log(R/r))-pa*%pi*r^2+w1 //RESULTS printf ('velocity = %.1f ft/sec',va) printf ('\n velocity = %.2f ft/sec',vb) printf ('\n velocity = %.2f ft/sec',vx) printf ('\n pressure = %.1f lbs/in^2',pb) printf ('\n upward pressure = %.1f lbs',pu) printf ('\n downward pressure = %.1f lbs',pd) printf ('\n Resultant pressure = %.1f lbs',RP)
5402abc351bfb4058b443eb4a5b20a9fe7746720
449d555969bfd7befe906877abab098c6e63a0e8
/68/CH5/EX5.3/ex3.sce
4ddb957ef83402a7e5c2dc502bd00203ae0b0e23
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
413
sce
ex3.sce
// Example 5.3 :Determine R_B // transistor is specified to have B value in the range of 50 to 150 V_C=0.2; // V_C=V_CEsat V_CC=10; // (V) R_C=10^3; // (ohm) V_BB=5; // (V) V_BE=0.7; // (V) bmin=50; // range of bete is 50 to 150 I_Csat=(V_CC-V_C)/R_C; I_BEOS=I_Csat/bmin; // I_B(EOS)=I_BEOS I_B=10*I_BEOS; // base current for an overdrive factor 10 R_B=(V_BB-V_BE)/I_B; disp(R_B,"Value of R_B (ohm)")
4f18254c44440adda0d60109c60f75c6f00c249e
e424e40d906c9eb8f8034d6f8e2cd4647334387e
/Corto 1/Ejercicios con Nand/Or.tst
25855f367e1c33b64d9cecfec1c391ac56c9ff6f
[]
no_license
EzioAARM/practicas-arqui-nand2tetris
ef20358ea414875178bb26b4a552552d6ccd32dc
0e1b424fa02d3cc2d79984808450224926936323
refs/heads/master
2020-04-29T19:11:03.560135
2019-03-18T18:32:32
2019-03-18T18:32:32
176,346,289
0
0
null
null
null
null
UTF-8
Scilab
false
false
189
tst
Or.tst
load Or.hdl, output-file Or.out, output-list a b out; set a 0, set b 0, eval, output; set a 0, set b 1, eval, output; set a 1, set b 0, eval, output; set a 1, set b 1, eval, output;
69deb0e8a681f2e5beb328e39e3cde626ee5a7da
6e257f133dd8984b578f3c9fd3f269eabc0750be
/ScilabFromTheoryToPractice/CreatingPlots/testlinestyle.sce
fde1f556a64f259247fb2390400e4398018fd5c3
[]
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
338
sce
testlinestyle.sce
exec('testplot.sce',-1) //to delete A=gca(); // figure axes A.children(1).children.line_style // 5 for dotted line A.children(2).children.line_style // 2 for dashes A.children(3).children.line_style // 1 for solid A.children(3).children.foreground // 5 for color red A.children(1).children.mark_style // 9 for o markers
70b549e33a4681a66e55f5ada8b4c2d44125545f
449d555969bfd7befe906877abab098c6e63a0e8
/1946/CH2/EX2.21.b/Ex_2_21_b.sce
37bcb83f85686f5586422f5a603aacf186974997
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
412
sce
Ex_2_21_b.sce
// Example 2.21.b:Multipath dispersion per unit length clc; clear; close; c=3*10^8 ;// Speed of lignt in m/s v=2*10^8;//speed of ligh in fiber in m/s Oc=75;// Critical angle in degree n1=c/v;//cORE Refractive Index n2=n1*(sind(Oc));// Cladding Refrative index d= n1-n2;// differnce in refractive index Md1=(n1/n2)*(d/c);// Md= Md1*10^9; disp(Md,"Multipath dispersion in microsecond per kilometer ")
1fbf409ef07e456903268e3b33c6a3e4cf6f7f65
5c808b0f55fefd29b91c7cb73f2f3a08093c5033
/Code/Scilab Code/GetStageFilterCoeffs.sci
3477ee3892119acc239033b4cfa5ffcb2e1a87b8
[]
no_license
JOfTheAncientGermanSpear/Filter-Bank-Guitar-Note-Chord-Detection
a01e2ce521561dfea555a588d6bb1e0f1deca18e
cb0d54c74275a990dcb984c4ec349e6ca4e72a1a
refs/heads/master
2021-01-20T12:00:42.472605
2013-06-14T03:04:33
2013-06-14T03:04:33
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,171
sci
GetStageFilterCoeffs.sci
function [b, a] = GetStageFilterCoeffs(rangeIndex) //function [b, a] = GetFreqRangeCoefficients(rangeIndex) //designs a low pass filter where a frequency range from 0 //to the cutoff frequency that corresponds to rangeIndex //possible values for rangeIndex are 0 - 2 //rangeIndex 2 - fc is 630 //rangeIndex 1 - fc is 315 //rangeIndex 0 - fc is 158 //all filters are low-pass elliptical with ripples at .08 and .1 //for passband and stopband respectively //Fs assumed to be 3675 select rangeIndex case 2 then //fc is 630 b = [0.1346513 -0.0539332 0.1426512 0.1426512 -0.0539332 0.1346513]; a = [1 -2.3010585 3.3686574 -2.6991839 1.3921251 -0.3138015]; case 1 then //fc is 315 b = [0.0668468 -0.1503192 0.0926022 0.0926022 -0.1503192 0.0668468]; a = [1 -4.0087999 6.8624017 -6.1735136 2.9095708 -0.5713992]; case 0 then //fc is 158 b = [0.03565792842704717 -0.09996242515106925 0.0646364 0.0646364 -0.0999624 0.03565792842704716]; a = [1 -4.6079808 8.6127032 -8.1517869 3.9041338 -0.7564055]; else print('not a valid input'); break; end endfunction
0612e01f6d66b26a9d962b9ab297d12f98c9ff21
449d555969bfd7befe906877abab098c6e63a0e8
/3176/CH6/EX6.13/Ex6_13.sce
c49f9a0cbd54a423f38d28d09780565a8abf33ea
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,146
sce
Ex6_13.sce
//Ex6_13 //Sharpning with the Laplacian // Version : Scilab 5.4.1 // Operating System : Window-xp, Window-7 //Toolbox: Image Processing Design 8.3.1-1 //Toolbox: SIVP 0.5.3.1-2 //Reference book name : Digital Image Processing //book author: Rafael C. Gonzalez and Richard E. Woods clc; close; clear; xdel(winsid())//to close all currently open figure(s). rgb=imread("Ex6_13.tif"); [nr nc]=size(rgb2gray(rgb)); // find the size of image //figure,ShowColorImage(rgb,'Gray Image'); //title('Original Image'); R=rgb(:,:,1);//Separation of red component from image G=rgb(:,:,2);//Separation of green component from image B=rgb(:,:,3);//Separation of blue component from image mask=fspecial('laplacian'); // Generate laplacian mask Filtered_Image1(:,:,1)=imfilter(R,mask); Filtered_Image1(:,:,2)=imfilter(G,mask); Filtered_Image1(:,:,3)=imfilter(B,mask); figure,ShowColorImage(Filtered_Image1,'Average Color image');//ShowColorImage() is used to show color image, figure is command to view images in separate window. title('RGB image after Sharpning','color','blue','fontsize',4);//title() is used for providing a title to an image. HSI=rgb2hsv(rgb); H=HSI(:,:,1);//Separation of Hue component from image S=HSI(:,:,2);//Separation of Saturation component from image I=HSI(:,:,3);//Separation of Intensity component from image HSI(:,:,3)=imfilter(I,mask); Filtered_Image2=hsv2rgb(HSI); // Convert HSI to RGB Image figure,ShowColorImage(Filtered_Image2,'Average Color image');//ShowColorImage() is used to show color image, figure is command to view images in separate window. title('RGB image after Sharpning Intensity Component','color','blue','fontsize',4);//title() is used for providing a title to an image. gray1=im2double(rgb2gray(Filtered_Image1)); gray2=rgb2gray(Filtered_Image2); difference=gray1-gray2; // Difference Image figure,ShowImage(difference,'Difference Color image');//ShowColorImage() is used to show color image, figure is command to view images in separate window. title('Image after Subtraction','color','blue','fontsize',4);//title() is used for providing a title to an image.
7addc8f834c1295b1bd1876ee767533f5f0ce4ae
449d555969bfd7befe906877abab098c6e63a0e8
/3705/CH7/EX7.4/Ex7_4.sce
dbccb8b377b60c05ea5b69c68d494209f8e1e43b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
495
sce
Ex7_4.sce
clear// // //Variable Declaration w=60 //Continous Load in lb/ft L1=3 //Length in ft L2=9 //Length in ft //Calculations //After carrying out the variable computations we get A=([[1,1,0,0;(L1+L2),0,1,1;0.5*(L1+L2)**2,0,-(L1+L2),0;6**-1*(L1+L2)**3,0,-0.5*(L1+L2)**2,0]]) B=([w*L2;w*L2*0.5*L2;L2**3*10;L2**4*2.5]) C=linsolve(A,B) //Result printf("\n The values are as follows") printf("\n Ra= %0.0f lb Ma= %0.0f lb.ft Rb= %0.0f lb and Mb= %0.0f lb.ft",-C(1),-C(2),-C(3),-C(4))
88b1b396f48b743f3e3cfdbbbb33a512c8be4d9d
449d555969bfd7befe906877abab098c6e63a0e8
/2198/CH2/EX2.10.2/Ex2_10_2.sce
e4c49a9c535b8d982c09e0e9becb1369d0d8128c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
495
sce
Ex2_10_2.sce
//Ex 2.10.2 clc;clear;close; format('v',8); //Given : rho_n=10;//ohm-cm rho_p=3.5;//ohm-cm ni=1.5*10^10;//per cm^3 Vj=0.56;//volt q=1.6*10^-19;//Coulomb mu_n=1500;//cm^2/V-s mu_p=500;//cm^2/V-s sigma_p=1/rho_p;//(ohm-cm)^-1 NA=sigma_p/q/mu_p;//per cm^3 sigma_n=1/rho_n;//(ohm-cm)^-1 ND=sigma_n/q/mu_n;//per cm^3 VT=Vj/log(NA*ND/ni^2);//V T=11600*VT;//K disp(T,"Temperature of junction in degree K : "); t=T-273;//degree C disp(t,"Temperature of junction in degree C : ");
2ee09d2b269d31835770b22c8ececa9be3f062c4
449d555969bfd7befe906877abab098c6e63a0e8
/1538/CH19/EX19.13/Ex19_13.sce
74f01e12230598d61e60cf846c6eb46bf07325ca
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
563
sce
Ex19_13.sce
//example-19.13 //page no-583 //given //electron mobility mue=1.065*10^-3 //m^2/V s //relaxation time tau=6*10^-15 //s //charge on electron e=1.6*10^-19 //C //no of electrons n=1 //mass of electron me=9.1*10^-31 //kg //as we know that //mue=sigma*HC and sigma=n*e^2*tau/me //so //mue=n*e^2*tau*HC/me //from above equation we can get HC=mue*me/n/e^2/tau //V m^3/A Wb //condustivity sigma=mue/HC //per ohm m (calculation mistake in book) printf ("the hall coefficient is %e V m^3/A Wb and conductivity is %e per ohm m",HC,sigma)
0d2f4f274316fd3d3a6136d27acf6dfa6a78c996
449d555969bfd7befe906877abab098c6e63a0e8
/1442/CH5/EX5.5/5_5.sce
a6e44b2bac889de8f8699e9fe87fca1d9189a00f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
334
sce
5_5.sce
clc //initialisation of variables p1= 300 //kPa V1= 0.03 //m^3 V2= 0.08 //m^3 T1= 27 //C //CALCULATIONS1 T2= T1+273 p2= p1*(V1/V2)*(T2/(T1+273)) W= 0 Q= 0 //RESULTS printf (' final temperature = %.2f K',T2) printf (' \n final pressure = %.1f kPa',p2) printf (' \n work = %.f kJ',W) printf (' \n energy = %.f kJ',Q)
8a85138427dfd2142c559f01d0a18a1faf6eb4c5
449d555969bfd7befe906877abab098c6e63a0e8
/2855/CH3/EX3.7/Ex3_7.sce
de43ad6f2827f210f5d8dc1616b8205de1191839
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
664
sce
Ex3_7.sce
//Chapter 3 //page no 74 //given clc; clear all; //calculate Tf If=120; //in mAmps Vf=1.8; //in Volts Ta=80; //in deg C //calculate Tj W=150; //in C/W for hermetric led Pd=0.5*If*Vf; Tj=75+W*Pd/1000; printf("\n Value of Tj is %0.1f degree cel \n",Tj); TF=8.01*10^12 *%e^-(8111/(Tj+273)); printf("\n Value of TF is %0.0f \n",TF); //calculate RF BF=6.5*10^-4; //from table QF=0.2; //from table EF=0.75; //from table RF=BF*TF*EF*QF*1/10^6; printf("\n Value of RF is %0.3f*10^6 \n",RF*10^6); printf("\n Value of MTBF is %0.0f*10^6 hours \n",1/RF/10^6);
8dc7ae42655d5ab1c24e829961c66fe3949f918b
449d555969bfd7befe906877abab098c6e63a0e8
/764/CH8/EX8.25.a/data8_25.sci
d46fab178329f7dc8849f119f7f010c23a5310cd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
sci
data8_25.sci
//(Welded and Riveted Joints) Example 8.25 //Refer Fig.8.68 on page 323 //Eccentric force acting on the bracket P (kN) P = 15 //Permissible shear stress tau (N/mm2) tau = 60 //Number of rivets n n = 2 //Distance between two rivet centres dist (mm) dist = 100
12512454a6084e5202e5b08b53b569c42556564e
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set11/s_Fundamentals_Of_Electronics_Devices_K._C._Nandi_2288.zip/Fundamentals_Of_Electronics_Devices_K._C._Nandi_2288/CH3/EX3.21.19/ex3_21_19.sce
4f085e8a349bd62db4ec7973ff1b4c8fe000411b
[]
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
170
sce
ex3_21_19.sce
errcatch(-1,"stop");mode(2);// Exa 3.21.19 ; ; // Given data t_d = 3;// total depletion in µm D = t_d/9;// in µm disp(D,"Depletion width in µm is"); exit();
6fe4dfe3e7adea0afea8c76c0bef280405411c2f
449d555969bfd7befe906877abab098c6e63a0e8
/764/CH10/EX10.3.b/solution10_3.sce
ae81322b8b685ca67a8b88d8ea6268b373edac67
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
856
sce
solution10_3.sce
//Obtain path of solution file path = get_absolute_file_path('solution10_3.sce') //Obtain path of data file datapath = path + filesep() + 'data10_3.sci' //Clear all clc //Execute the data file exec(datapath) //Calculate the permissible shear stress for the spring tau (N/mm2) tau = (30/100)*Sut //Calculate the factor K * (C^3) fac fac = (%pi * (D^2) * tau)/(8 * P * 1000) //Get appropriate values of C and K for i = 1:1:length(fact)-1 if (fac > fact(1, i) & fac < fact(1, (i+1))) then C = Cval(1, (i+1)) K = Kval(1, (i+1)) end end //Calculate the wire diameter d (mm) d = D/C dround = ceil(d) //Calculate the number of active coils N N = (G * (dround^4))/(8 * (D^3) * k) //Print results printf("\nWire diameter(d) = %f or %f mm\n",d,dround) printf("\nNumber of active coils(N) = %f or %f\n",N,ceil(N))
a28617fc8507c28f03f53cff576974d5e9c0bc72
449d555969bfd7befe906877abab098c6e63a0e8
/2175/CH1/EX1.5/1_5.sce
e84398b7a04d1dcb80e4e01069509eea669147d3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
126
sce
1_5.sce
clc; W=-100;//kJ/kg u2=200;//kJ/kg u1=420;//kJ/kg Q=u2-u1-W; disp("heat rejected by the air is:"); disp("kJ/kg",-Q);
90fa31a43b581b17e69d3d0172f3c5d598dbcb92
29cfe7e83274e757dc406cdc2a855f7e76fdb698
/scilab/least_squares_homogeneous.sce
7e77801bb6210eb72242f30419cbc65a5848306e
[]
no_license
andreucm/essential_maths_roboticists
2eb637afe3f46be6eb6c697eba7ada1d9406f482
95530267db0890be1e76778062d8eafd41d451dd
refs/heads/master
2022-07-16T05:18:15.976563
2022-07-01T08:36:47
2022-07-01T08:36:47
47,470,143
1
12
null
null
null
null
UTF-8
Scilab
false
false
301
sce
least_squares_homogeneous.sce
//data xy=[1 2; 2 4; 3 7; 5 14]; //each row is a data point D = [xy [1;1;1;1]]; //SVD decomposition [U,S,V]=svd(D); // last column of V is least squares solution for this model and data p = V(:,$); v = [-p(2);p(1)]; //plot r=[-20:0.1:20]; plot(v(1)*r,v(2)*r, 'r' ); plot(xy(:,1),xy(:,2), 'b.' );
1916d4eec3cf81f362b7b26a4ab3a27f72fc14ae
c6196553a0199f808a6ec5cdb7c257bffc4e1832
/TP_EDP/div2.sci
97bc75d3b5f1ec6ff091f2669efb31dadd1c35ff
[]
no_license
rianaR/T.I.A
034b5e503145e54460fa17404c4b51524e269dd8
b1a3011f4d4101cbe163399c9f46abd31c4977e5
refs/heads/master
2021-01-10T05:09:03.931399
2015-11-05T08:55:45
2015-11-05T08:55:45
43,305,164
0
0
null
null
null
null
UTF-8
Scilab
false
false
374
sci
div2.sci
// divergence du gradiant function [d] = div2 (g) [M,N,K] = size(g); div1=zeros(M,N); div2=zeros(M,N); div1(:,1) = g(:,1,1); div1(:,$) = -g(:,$-1,1); div1(:,2:$-1) = g(:,2:$-1,1) - g(:,1:$-2,1); div2(1,:) = g(1,:,2); div2($,:) = -g($-1,:,2); div2(2:$-1,:) = g(2:$-1,:,2) - g(1:$-2,:,2); d = div1 + div2; endfunction
c79580bea5cd6c8bcdf0964651d190e55a54b84a
449d555969bfd7befe906877abab098c6e63a0e8
/1299/CH15/EX15.27/example15_27.sce
3abe9bb89f3bc4112f66d625e8b20e4f5f3a43da
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
241
sce
example15_27.sce
// Example 15.27 // To check whether the system is reachable or not clear;clc xdel(winsid()); mode(0); A=[1 0;0 1] B=[1;1] Wc=[A*B B] disp("The rank of Wc=(1*1-1*1)=0,and not equal to 2. Thus the given system is not reachable ")
92735654f5e19c60aef8846b89ec73ad25d50ffc
4bbc2bd7e905b75d38d36d8eefdf3e34ba805727
/ee/contrib/dspic/macros/misc/bb_step.sci
b9ddf1d4bb8ecc9f46a5757a8e3dcf4f4bd2c82d
[]
no_license
mannychang/erika2_Scicos-FLEX
397be88001bdef59c0515652a365dbd645d60240
12bb5aa162fa6b6fd6601e0dacc972d7b5f508ba
refs/heads/master
2021-02-08T17:01:20.857172
2012-07-10T12:18:28
2012-07-10T12:18:28
244,174,890
0
0
null
null
null
null
UTF-8
Scilab
false
false
249
sci
bb_step.sci
function []=bb_step(sl,tf,index,str) // Step response for the system "sl" from 0 to final time "tf" [lhs,rhs]=argn(0); t=0:0.001:tf; y=csim('step',t,sl); plot2d(t,y);xgrid(4); if rhs==4 then xstring(t(index),y(index),str) end endfunction
911493531b0e94c297f8a4104cdf3fe9488edfcc
449d555969bfd7befe906877abab098c6e63a0e8
/2534/CH11/EX11.2/Ex11_2.sce
a11d053502c9df83338b9bf9ae359c15bde55c18
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
437
sce
Ex11_2.sce
//Ex11_2 clc Po_ac = 64//output power eta = 0.3//efficiency Pi_dc = Po_ac/eta//input power disp("Po_ac = "+string(Po_ac)+"W") disp("eta = "+string(eta)) disp("Pi_dc = Po_ac/eta = "+string(Pi_dc)+"W") power_losses = Pi_dc - Po_ac//power losses disp("Power losses = Pi_dc - Po_ac = "+string(power_losses)+"W") // note : has modifed variables: // using Po_ac instead of Po(ac) // and Pi_dc instead of Pi(dc).
8ecbd2859f6301a85c86d3c07aab4c96ff491c81
449d555969bfd7befe906877abab098c6e63a0e8
/3872/CH11/EX11.10/Ex11_10.sce
62761ea11f306838a5379ed4998846ad50c5dcbc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,065
sce
Ex11_10.sce
//Book - Power system: Analysisi & Design 5th Edition //Authors - J. Duncan Glover, Mulukutla S. Sarma, and Thomas J.Overbye //Chapter-11 ;Example 11.10 //Scilab Version - 6.0.0; OS - Windows clc; clear; P=1.0 //Infinite bus received real power in per unit Vbus=1.0 //Infinite bus voltage in per unit Vr=1.0 //system voltage in per unit pf=0.95 //Lagging power factor Ra=0 //Machine resistance in per unit Xd=2.1 //direct axis reactance in per unit Xq=2.0 //qadrature axis reactance in per unit Xdt=0.3 //direct axis transient reactance in per unit Xqt=0.5 //qadrature axis transient reactance in per unit X=%i*0.22 theta=acos(pf); I=(P/(Vbus*pf))*exp(-%i*theta); //generator output current in per unit VT=Vr+X*I //genertor terminal voltage in per unit Ireal=1 //generator real output current in per unit Iimag=-0.3287 //Generator imaginary output voltage in per unit Vreal=1.0723 //generator real terminal voltage in per unit Vimag=0.220 //Generator imaginary terminal voltage Ei=VT+(%i*Xq)*I //Steady state angle of internal voltage in per unitge del=52.1*%pi/180 Vdq=[sin(del) -cos(del);cos(del) sin(del)]*[Vreal;Vimag]; //d-q reference voltage Idq=[sin(del) -cos(del);cos(del) sin(del)]*[Ireal;Iimag]; //d-q reference current Eqs=Vdq(2)+Xdt*Idq(1) //Quadrature axis transient voltage Eds=Vdq(1)-Xqt*Idq(2) //Direct axis transient voltage Efd=Eqs+(Xd-Xdt)*Idq(1) //field voltage printf('The generator output current is %.4f%.4fi per unit\n',real(I),imag(I)); printf('The genertor terminal voltage is %.4f+%.4fi per unit\n',real(VT),imag(VT)); printf('The magnitude of Steady state angle of internal voltage in per unit is %.4f and its angle is %.4f degrees\n',abs(Ei),atand(imag(Ei),real(Ei))); disp(Vdq,'The d-q reference voltage in per unit is'); disp(Idq,'The d-q reference current in per unit is'); printf('The Quadrature axis transient voltage is %.4f per unit\n',Eqs); printf('The Direct axis transient voltage is %.4f per unit\n',Eds); printf('The field voltage is %.4f per unit\n',Efd);