blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2
values | repo_name stringlengths 6 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 21
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 141k 586M ⌀ | star_events_count int64 0 30.4k | fork_events_count int64 0 9.67k | gha_license_id stringclasses 8
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 50
values | src_encoding stringclasses 23
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 5 10.4M | extension stringclasses 29
values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16bdaf8412c4062c5e4a945b2634e3bdabd282a4 | 7c4e0931bb85459599a2fde1bc9b9b0fdab7fb67 | /grayplot-accel.sce | a462579f08895a26d504b28da5dc99ecc9748afa | [] | no_license | jendralhxr/directional_fft | 8182b731666d2cdd94ec244aea20160bc9e6f1ef | 37861c23da94c95a39b712983e34900a2231b154 | refs/heads/master | 2020-04-18T02:01:30.600285 | 2019-05-28T03:53:41 | 2019-05-28T03:53:41 | 167,143,446 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,921 | sce | grayplot-accel.sce | // run it this way:
// $ scilab-adv-cli -f grayplot-accel.sce -args accelerometerdisplacementfile
clear;
exec('peak_detect.sci');
funcprot(0); // peaks() is redefined
args= sciargs();
displacement=csvRead(args(5), ascii(9), 'double');
threshold_ratio= 32;
sample_window= 240; // FFT sample_window window
sample_time= 2... |
117f7d7a3173deb2a22de73af2baddeb469a00c2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3401/CH2/EX2.3/Ex2_3.sce | 72edd006c2e8b0894eb8b16c103d0e887b955b97 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex2_3.sce | clc
a=5*10^-8// a=5A = 5*10^-8cm
h=1.054*10^-34// J*s Plank's constant
m=9.11*10^-31// kg*m/s
e=1.6*10^-19// eV
n=1
En=(h^2*n^2*%pi^2)/(2*m*a^2)
disp(En,"the value of En in J")
En=(En/e)
disp(En,"the value of En in eV")
n=2
E2=(h^2*n^2*%pi^2)/(2*m*a^2)
disp(En,"the value of E2 in J")
E2=(E2/e)
disp... |
29922b9c6803cab5c0f8be452b339f5b8381ef1a | 449d555969bfd7befe906877abab098c6e63a0e8 | /172/CH14/EX14.5/ex5.sce | e27cd050eb32bc9cda5995595f2f8872500497c1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 814 | sce | ex5.sce | //ques5
//adiabatic steady state processes
clear
clc
//from table A.2
P1=20;//pressure at state 1 in MPa
P2=2;//pressure at state 2 in MPa
T1=203.2;//Temperature at state 1 in K
Pr1=P1/3.39;//Reduced pressure at state 1
Pr2=P2/3.39;//Reduced pressure at state 2
Tr1=T1/126.2;//Reduced temperature
//from compr... |
c6b58a02c3f03a36e3a567fd5a45d7aa4dfb6bfd | 449d555969bfd7befe906877abab098c6e63a0e8 | /683/CH11/EX11.9/RJ_9.sce | ba5ad85f5b503a4843bdbdb9375788033e399129 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 391 | sce | RJ_9.sce | // sum 11-9
clc;
clear;
D=1200;
p=2.5;
sigba=110;
Pa=%pi*D^2*p/4;
nt=0.8;
sigta=80;
t=p*D/(2*sigta*nt);
t=24;
d=6*sqrt(t);
d=30;
Ta=55;
Ps=%pi*(d^2)*Ta/4;
Np=Pa/Ps;
Np=74;
nr=Np/2;
p=%pi*(D+t)/nr;
pb=2*d;
m=1.5*d;
Pt=(p-d)*t*sigta;
Ps=2*Ps;
Pb=2*d*t*sigba;
Pp=p*t*sigta;
n=Ps/Pp;
n=n*100;
... |
81d5c36037ce7576e1a8c90401e06720012a0ab1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /389/CH6/EX6.5/Example6_5.sce | d10ecdec17bd6ee8b49a3a2aef74b04671064fe8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,939 | sce | Example6_5.sce | clear;
clc;
// Illustration 6.5
// Page: 200
printf('Illustration 6.5 - Page: 200\n\n');
// solution
// ****Data****//
G = 0.80;// [cubic m/s]
P = 10^2;// [kN/square m]
XaG = 0.07;
Temp = 273+30;// [K]
L = 3.8;// [kg/s]
Density_L = 1235;// [kg/cubic m]
viscocity_L = 2.5*10^(-3);// [kg/m.s]
//*****... |
a4d29f4a89851393a517fb1e721bf95c19186b08 | efd8a524f4cb26e7523ef0e7211ba3ea3b60177d | /tests/test-bash-prefix2.tst | ee9ef4a31badca804273601a515477c0a57b4ece | [
"Apache-2.0"
] | permissive | archiecobbs/csvprintf | 2788ee5c236d0e3ea329c927f15464c09ecef118 | 270286b352559219b26127775238331e052150ec | refs/heads/master | 2023-08-03T18:32:23.588637 | 2023-07-31T21:45:54 | 2023-07-31T21:45:54 | 34,139,639 | 38 | 4 | null | 2015-12-05T20:53:45 | 2015-04-17T20:53:56 | C | UTF-8 | Scilab | false | false | 162 | tst | test-bash-prefix2.tst | FLAGS='-bi -p PA'
STDIN='aaa,TH,ccc\n"a1","b1","c1"\n"a2","b2","c2"\n'
STDOUT=$'PAaaa=\'a1\'; PAccc=\'c1\';\nPAaaa=\'a2\'; PAccc=\'c2\';\n'
STDERR=''
EXITVAL='0'
|
a10dfcfdbec66d6e05ac6a48d78143e840d22e60 | 3073307fa4b6da9371518f0718c199501b8c5c71 | /viejos/punto_fijo.sci | 9286d05dfc7f441f990ec7ac9ed08c4ea517d02e | [] | no_license | fern17/CalculoNumerico | 8b04abdf8e1da4b69a1256334a4bc58ff5c9180d | c793733ce17616361dd02f358ef63c1d9be5c99e | refs/heads/master | 2020-06-04T00:06:19.723655 | 2011-12-20T13:47:40 | 2011-12-20T13:47:40 | 2,929,202 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 332 | sci | punto_fijo.sci | function y = g(x)
y = (10/(4+x))^0.5;
endfunction
function [x,h] = punto_fijo(x0,kmax,tol)
h = zeros(kmax,1);
x = x0;
for i=1:kmax
res = abs(g(x) - x);
h(i) = res
if(res < tol)
return;
end
x = g(x);
end
disp("maximo iteraciones alcanzadas");
... |
9f2b539425548fc2d22ce0eee5ad69b972b3680e | 74bb03f2e01aa5dd6bab5f046efd1dcf6099d785 | /tests/test.sce | 32a42a4246668bcdbe29329566f241ecb5583a47 | [] | no_license | SitnPoo11/POO11-v0 | db70e9fcd914acd2b64b308f2a59607357d7ca38 | b736286dbce8b132b81b6c9b3c6cdc50966d65a7 | refs/heads/master | 2021-01-01T05:36:38.135804 | 2011-03-25T13:17:48 | 2011-03-25T13:17:48 | 1,362,729 | 3 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 333 | sce | test.sce | // Lecture des données
dat = read("/home/Bart/Documents/M2SITN/POO/github/Tests/data1.txt" , -1 , 7) ;
// Centrage des données
dat_barre = sum(dat,1)/size(dat,1) ;
dat = dat - dat_barre(ones(size(dat,1),:),:) ;
//
cor = dat'*dat/size(dat,1) ;
valP = spec(cor) ; //valeur propre
disp(valP) ;
[Ab,vectP]=bdiag(cor) ;
di... |
4b0dfbee661af407bbc5806d7bf98f5c992f0ed8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2015/CH9/EX9.17/9_17.sce | 097441e0e210e717a84fa6179b3087f488afeba8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 560 | sce | 9_17.sce |
clc
//initialisation of variables
p2=6 //prressure in bar
p1=1 //pressure in bar
t1=313 //temp in k
a1=45 //angle in degrees
a2=10 //angle in degrees
a3=55 //angle in degrees
r=1.4
cp=1.005 //kj/kg
ieff=0.85 //isentropic efficiency
c=200 //m/s
//CALCULATIONS
t2s=(t1*(p2/p1)^((r-1)/r))
t2=(((t2s-t1)/ieff... |
a59d384d4edcb0d2b6c6259ae0c9ea277cc83745 | 676ffceabdfe022b6381807def2ea401302430ac | /library/Demos/Python/FieldUtils/Tests/compositeid.tst | 3680bf5769518b6257ca4a8c39cf74ba4cb6a414 | [
"MIT"
] | permissive | mathLab/ITHACA-SEM | 3adf7a49567040398d758f4ee258276fee80065e | 065a269e3f18f2fc9d9f4abd9d47abba14d0933b | refs/heads/master | 2022-07-06T23:42:51.869689 | 2022-06-21T13:27:18 | 2022-06-21T13:27:18 | 136,485,665 | 10 | 5 | MIT | 2019-05-15T08:31:40 | 2018-06-07T14:01:54 | Makefile | UTF-8 | Scilab | false | false | 806 | tst | compositeid.tst | <?xml version="1.0" encoding="utf-8" ?>
<test>
<description>Add composite ID to field</description>
<executable python="true">compositeid.py</executable>
<parameters></parameters>
<files>
<file description="Session File">compositeid.xml</file>
</files>
<metrics>
<metric type="L2"... |
3f6f151be76b38cea8602f5cc15ac64741a2480b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1268/CH9/EX9.4/9_4.sce | f7b1ab67a16d8f3348d984f5cae3127b4b632935 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 268 | sce | 9_4.sce | clc;
disp("Example 9.4")
reading=9.7e-3 // of manometer in m
g=9.81
densitym=13600 /// in kg/m^3
density=1200 // of water in kg/m^3
delP=g*reading*(densitym-density)
U=84/60
b=0.333
c=U*((density*(1-b^4)/(2*delP))^0.5)
disp(c,"The venturi coefficient is ")
|
a772244161ccac08ed78b772a2aa326df4274138 | 380a2443dfa80d98cc88d7130a44653cb98ae4d5 | /test/MT01.prev.tst | 48b650b365ca146a5c9f2ac6f54235935613eb7e | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/gramword | c7f7fe036043799aa4faab9b6eaa543531620405 | ff66a01935dfdb6230aa8ec3a9d439f99ff80330 | refs/heads/master | 2022-02-13T20:38:14.321487 | 2022-01-28T20:18:06 | 2022-01-28T20:18:06 | 30,126,432 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 480 | tst | MT01.prev.tst | heute AvTime
ist VbSPr13 sein
das ArDetmNomvSgNt
das ArDetmAccvSgNt
das PnReltNomvSgNt
das PnReltAccvSgNt
Wetter SbSgNtMeto
Wetter SbSgNtMeto
schön AjRoot
und Cj
wir VbSIm12 werden
wir PnPlPersNomv1
wollen VbSIn0 wollen
wollen VbSPr91 wollen
wollen VbSPr93 wollen
wollen VbSIm91 wollen
wollen VbSCs91 wollen
wolle... |
ce13e6fb336d76952e5b8b2a6cb1423836de7c07 | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH45/EX45.04/45_04.sce | d71ea6b36989f5c4d6eb3e4b83368dec837c3897 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 657 | sce | 45_04.sce | //Problem 45.04: In the circuit shown in Figure 45.8, a current of 5 A flows from the supply source. Switch S is then opened. Determine (a) the time for the current in the 2 H inductor to fall to 200 mA, and (b) the maximum voltage appearing across the resistor.
//initializing the variables:
i = 5; // in Amperes
L = ... |
e902f9282890b0c2732443099f0b90c30df73562 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1658/CH34/EX34.6/Ex34_6.sce | e30986a737099be90f782e9e64b29c6790b6d64d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 168 | sce | Ex34_6.sce | clc;
//e.g 34.6
vs=30;
rs=240;
vz=12;
rl=500;
vl=vz;
disp('V',vl,"vl=");
Is=(vs-vz)/rs
Vd=Is*rs;
disp('V',Vd*1,"Vd=");
Iz=Is-(vl/rl)
disp('A',Iz*1,"Iz=");
|
29155b6ad9dc6bc5003289bee1e7430fceb49da0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /181/CH3/EX3.27/example3_27.sce | 78b6a80f62839ec3001ba5d6d7ec312c07cd05df | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 509 | sce | example3_27.sce | // Find currents and voltages
// Basic Electronics
// By Debashis De
// First Edition, 2010
// Dorling Kindersley Pvt. Ltd. India
// Example 3-27 in page 179
clear; clc; close;
// Given data
//Diode acts as short circuited.Both diodes are forward biased
V1=0; // Voltage at junction 1 in V
V2=0; // Voltage... |
c85461308cb7ab9f625355dccfcfe26da171153e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2273/CH3/EX3.6/ex3_6.sce | 7f10ffbbfeb3ca2277c031f52d08e6d23f15a065 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 479 | sce | ex3_6.sce | //Calculate the max sag
clear;
clc;
Wc=.85;//kg/m//Line conductor wieght
L=275;//meter//span of the line
U=8000;//kg//Ultimate strength
sf=2;//safety factor
P=39;//kg/m^2//Wind pressure
T=U/sf;//kg//max allowable tension
D=19.5;//mm//dia of copper
r=13;//cm//Radial thickness of ice
Wi=910*%pi*r*(D+r)*10^-6;
... |
230beb1e5be32d71a2436fc5a43b627211bf94e8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /991/CH15/EX15.9/Example15_9.sce | bf9e21fa33e3c3c02bec9d4cc1119cf1feb7209c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 528 | sce | Example15_9.sce | //Example 15.9.
clc
format(5)
fo=1/(2*3.142*10000*(0.01*10^-6)*sqrt(6+((4*2.2*10^3)/(10000)))) //in Hz
disp("The frequency of oscillations of a RC phase shift oscillator is")
disp(" fo = 1 / 2*pi*R*C*sqrt(6+(4*Rc/R))")
disp("Substituting the given values, we get")
disp(fo,"fo(Hz) =")
disp("For sustained oscill... |
3ea0663a7d82afabd1ec57e6b750e78c45908b38 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1163/CH4/EX4.11/example_4_11.sce | 3265c2daddafd2e8ed1ed39dcf2e4d5f207b8c79 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 316 | sce | example_4_11.sce | clear;
clc;
disp("--------------Example 4.11---------------")
bandwidth = 200; // 200 kHz
printf("\nThe minimum sampling rate cannot be determined in this case because we do not know where the bandwidth starts\nor ends or in order words we do not know the maximum frequency in the signal."); // display example
|
06f0fe05f0a44fe63b0f6421ef64bbf3f51841cd | 449d555969bfd7befe906877abab098c6e63a0e8 | /671/CH4/EX4.50/4_50.sce | 20125fddced8e44200a90b6c82307b583ac7bc34 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 242 | sce | 4_50.sce | function Zeq=parallel(Z1,Z2)
Zeq=Z1*Z2/(Z1+Z2)
endfunction
V=12*%i
Vth=4-12*%i/(4-12*%i+6+9*%i)*V
Zth=parallel(4-12*%i,6+9*%i)
I=Vth/(Zth+6+12*%i)
S=V*conj(I)
disp(S)
Zl=conj(Zth)
I=Vth/(Zth+Zl)
S=V*conj(I)
disp(Zth,S) |
ecc0b32a6a2ec4196241c72647b41a9e3793127f | e04f3a1f9e98fd043a65910a1d4e52bdfff0d6e4 | /New LSTMAttn Model/.data/lemma-split/GOLD-TEST/pus.tst | d0fd03261fa5429f6a7fffd7f32af97d7039d257 | [] | no_license | davidgu13/Lemma-vs-Form-Splits | c154f1c0c7b84ba5b325b17507012d41b9ad5cfe | 3cce087f756420523f5a14234d02482452a7bfa5 | refs/heads/master | 2023-08-01T16:15:52.417307 | 2021-09-14T20:19:28 | 2021-09-14T20:19:28 | 395,023,433 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 46,292 | tst | pus.tst | ژېړ ژېړه ADJ;NOM;FEM;SG
ژېړ ژېړو ADJ;non{NOM};MASC;PL
ژېړ ژېړو ADJ;non{NOM};FEM;PL
ژېړ ژېړ ADJ;NOM;MASC;PL
ژېړ ژېړو ADJ;VOC;FEM;PL
ژېړ ژېړه ADJ;VOC;MASC;SG
ژېړ ژېړې ADJ;VOC;FEM;SG
ژېړ ژېړ ADJ;NOM;MASC;SG
ژېړ ژېړې ADJ;NOM;FEM;PL
ژېړ ژېړ ADJ;non{NOM};MASC;SG
ژېړ ژېړې ADJ;non{NOM};FEM;SG
ژېړ ژېړو ADJ;VOC;MASC;PL
کتاب کتاب... |
7e9fb07f9d7b0fd8e3f98994f063d5cef6ae66fd | 449d555969bfd7befe906877abab098c6e63a0e8 | /3446/CH5/EX5.4/Ex5_4.sce | 93e22d03ffb4d826c18eb2644fa5a1d6f17e0aa8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 883 | sce | Ex5_4.sce | // Exa 5.4
// To find the number of calls per hour per cell site.
clc;
clear all;
spectrum=12.5*10^6; //in Hz
CHBW=200*10^3;//in Hz
N=4;//reuse factor
Blocking=0.02; // 2%
callHT=120;//average call holding time in sec
PPL=4;//propogation path loss coefficient
CntrlCH=3; //No of control channels
Ts=8; // ... |
f208ea606e913f8a0d9f3fa4183eb996e344181f | 639b656ae5f148719b152ae5b29a0352d39cd879 | /script1.sce | 984f97b17c42a82882ec10d6d118c025e55e6673 | [] | no_license | Abhishek262/scilab-assignment | 098458c4c8a41d5450aed515db7cbefe3193f359 | ddd32f846e096fa809ed6654361436e61f7bc08d | refs/heads/master | 2021-01-02T09:47:44.693034 | 2020-02-10T16:52:42 | 2020-02-10T16:52:42 | 239,563,032 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 416 | sce | script1.sce | a1 = [3 4 -2 2; 4 9 -3 5; -2 -3 7 6; 1 2 6 7]
b = [2;8;10;2]
a = [a1 b]
[m,n]=size(a)
for j = 1:m-1
for z = 2:m
if a(j,j)==0
t=a(j,:)
a(j,:)=a(z,:)
a(z,:)=t
end
end
for i = j-1:m
a(i,:)=a(i,:)-a(j,:)*(a(i,j)/a(j,j))
end
end
fo... |
4b953af7d42e59a3885a049a009c00aeb5900c3a | cbadadcbbbe2b7382efabd79dc819eaa13a706ee | /crea_imagen.sce | 87b38d229b8c7e38944ae0119342f32b8aa38204 | [] | no_license | jgpATs2w/uned-him-trabajo2 | 2f15ecb01060f9b0c0a37c33abfe21fa7377a179 | 1f0392233fbc6b490f5daaa8740ae602b671f081 | refs/heads/master | 2020-12-01T22:28:07.587741 | 2020-01-29T18:48:51 | 2020-01-29T18:48:51 | 230,792,092 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 426 | sce | crea_imagen.sce | imgFile='imagenRGB_T2.txt';
Img=read_csv(imgFile, ' ');
ImgIntegers= zeros(size(Img));
for i = 1 : size(Img,'r')
for j = 1 : size(Img,'c')
//Emplea el mapa de colores obtenido con getcolor()
ImgIntegers(i,j) = strindex('.BG.R', Img(i,j));
end
end
//TODO set right custom colormap: https://help.... |
81c0dd90ddef74eaef63e4e93a62fca80f5cffda | 449d555969bfd7befe906877abab098c6e63a0e8 | /2021/CH10/EX10.11/EX10_11.sce | c6d46e3a58562e178bd3d66dae9a3f8624bb8661 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 197 | sce | EX10_11.sce | //Finding of Slope
//Given
z=1;
y=0.225;
c=50;
q=0.04;
//To Find
A=z*y^2;
P=2*sqrt(2)*y;
x=sqrt(0.225/(2*sqrt(2)));
sb=q/(A*c*x);
sb1=sb^(2);
disp("Slope ="+string(sb1)+" no units");
|
92aed9da6a2b7499d349f0ace580f6ae5eac2826 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/DM3.prev.tst | 4910e8747d240cee952e63564273a4aaff376b90 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 50 | tst | DM3.prev.tst | ("a^4 + b^4 - c^4 - d^4").getDependantMap() = {}
|
8465549409203b61aa98d7056bbf0d942bdba3dd | 0896434fe17d3300e03ad0250029673ebf70bacc | /sheet_9/Scilab_codes/1a.sce | 30168cfe97fde968acc582a4a23b6478cb93a07a | [] | no_license | TheShiningVampire/EE324_Controls_Lab | 8ff1720b852bf24dca3c172082f5f898f80f69f3 | 9aea73eed3f5a4ac6c19a799f8aebe09f4af0be8 | refs/heads/main | 2023-07-09T17:30:38.041544 | 2021-08-23T12:14:29 | 2021-08-23T12:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 423 | sce | 1a.sce | clear
close
clc
s = poly(0,'s');
G = (10)/(s*(s/5 + 1 ) *(s/20 + 1) );
Gs = syslin('c',G);
C = (s+3)/(s+1);
GsCs = syslin('c' , G*C);
nyquist([Gs ; GsCs], 0.1 , 1e3 ,["G(s)" ; "G(s)C(s)"] );
gm=g_margin(Gs);
phm = p_margin(Gs);
disp(gm,"Gain Margin of G(s)");
disp(phm ,"Phase Margin of G(s)");
gm2 = g_margin(GsCs)... |
23f2ae93ce98db0e148be347052e0dc372d676c5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3472/CH17/EX17.9/Example17_9.sce | 0da2747b5fc16a0ea2ddccadb7518dd20819cee7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,264 | sce | Example17_9.sce | // A Texbook on POWER SYSTEM ENGINEERING
// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
// DHANPAT RAI & Co.
// SECOND EDITION
// PART II : TRANSMISSION AND DISTRIBUTION
// CHAPTER 10: POWER SYSTEM STABILITY
// EXAMPLE : 10.9 :
// Page number 275
clear ; clc ; close ; // Clear the work space and cons... |
7d8356bfe312a25f5d2989ea7196374c16353ff2 | 98efda43218be3d9e665771c28742517fd4f334f | /Ankur Mallick/dftmtx.sci | 0d8ab7735aaf3a7a28328c0447077417ffc03763 | [] | no_license | ankurmallick/Scilab_spt | bded5b3ed7c5618770ef4bb997b5f61aa7732cd9 | e35c986f70147ee773796c839153ed7adbda3941 | refs/heads/master | 2021-01-17T06:48:24.162281 | 2016-12-05T12:54:24 | 2016-12-05T12:54:24 | 43,445,584 | 0 | 2 | null | 2015-12-10T05:15:44 | 2015-09-30T16:47:57 | Scilab | UTF-8 | Scilab | false | false | 363 | sci | dftmtx.sci | function D=dftmtx(n)
// Developed by: Ankur Mallick
// Input arguments: Positive Integer n
// Output arguments: DFT matrix D of size nxn such that D*x=fft(x) for any vector x of length n
//Example for validation:
//a=(1:256)';
//n=length(a);
//D=dftmtx(n);
//y1=fft(a);
//y2=D*a;
//disp(norm(y1-y2));
//Output: 9.576D-12... |
3afa4d504f4e66e257244177c09786bf70b0217c | 449d555969bfd7befe906877abab098c6e63a0e8 | /343/CH4/EX4.28/ex4_28.sce | bf00fcb9c8122077173537d208dc7403fb227bad | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 287 | sce | ex4_28.sce | clc
kw=400 //Assigning values to parameters
pf=0.8
kva=kw/pf
cl1=4.5
kw=300
pf=0.75
kva=kw/pf
cl2=(kva/500)*(kva/500)*4.5
kw=400
pf=0.8
kva=kw/pf
cl3=(kva/500)*(kva/500)*4.5
tec=cl1*6+cl2*10+cl3*4
tei=84
eo=5800
n=eo*100/(eo+tei+tec)
disp(n,"The efficiency is") |
137bcc00cf833162f951a390f7c0f739a8cd3077 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2333/CH4/EX4.17/17.sce | 6e193b7f091b4465d220a9bf53f5be903cf3d3e0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 393 | sce | 17.sce | clc
// Given that
lambda = 5086 // Wavelength of light
s = 29.73 // Specific rotation of fluid in deg/mm
// Sample Problem 17 on page no. 219
printf("\n # PROBLEM 17 # \n")
del_mu = lambda*1e-7*s/180 // Calculation of differences in refractive index
printf("\n Standard formula used \n theta = pi*d*del_mu/lambda... |
92e2ef60355eda119f6efb26eb2a0f102969e0d5 | cc3b44b468ac7bd67411d3da67b2b928c6e84a59 | /sources/world/Realms/Beach/slur_script.tst | 1877d6386bf33e92c1fdf875864fc46a0c66aab2 | [
"MIT"
] | permissive | frandallfarmer/habitat | b22734f947eccf10e0ca5481f12e7e537d5200b3 | aa721b4b53c1708267f366436fd8ca2146dcef0b | refs/heads/master | 2021-01-16T21:47:56.072870 | 2017-04-29T07:44:09 | 2017-04-29T07:44:09 | 64,167,829 | 2 | 0 | null | 2016-07-25T21:03:22 | 2016-07-25T21:03:22 | null | UTF-8 | Scilab | false | false | 2,526 | tst | slur_script.tst | echo 0a
/u0/chip/microcosm/slur/slur regdir/0a.reg \
-o rdldir/0a.rdl \
-d FACE_WEST \
-r 0a \
-s 0f \
-n 0b \
-e 1a
echo 0b
/u0/chip/microcosm/slur/slur regdir/0b.reg \
-o rdldir/0b.rdl \
-d FACE_WEST \
-r capt_flag \
-s cave0 \
-n bar_int
echo 0c
/u0/chip/microcosm/slur/slur regdir/0c.reg \
-o r... |
1e83a0280bac5f5de98dbc2b7fc0a390a1d23bae | 449d555969bfd7befe906877abab098c6e63a0e8 | /1223/CH13/EX13.10/Ex13_10.sce | 03750db9b1d3b7f3f8a8de00e653b8af1f6b5b67 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 677 | sce | Ex13_10.sce | clear;
clc;
//Example 13.10
Iref=100;
Kn=80;
Kp=40;
//W/L=x
x=25;
//lambda=y
y=0.02;
Id=Iref/2;
gm1=2*sqrt(Kp*x*Id/2);
printf('\ntransconductance gm1=gm8=%.3f microA/V\n',gm1)
gm6=2*sqrt(Kn*x*Id/2);
printf('\ntransconductance=%.3f microA/V\n',gm6)
ro1=1/(y*Id);
ro8=ro1;
ro6=ro1;
ro10=ro1;
printf('\no... |
1beb4d3d02d70718467f6b26b47fcfc6e8128a1b | 1b7e3c400be0f40fb49518c742d1b291c533fc07 | /gauss.sce | cb9272deb326d40854f0faaaadb241efd1437854 | [] | no_license | conzmr/NumericalMethods | 5c4b8c97ed5957784c9abf668aa7dc29d0763dab | 56b3c5c329229b6a2e638c9c9699bb780fa99a4f | refs/heads/master | 2021-01-16T23:16:17.450581 | 2017-06-29T00:52:52 | 2017-06-29T00:52:52 | 95,723,757 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 408 | sce | gauss.sce | A = input("Enter A: ")
b = input("Enter b: ")
n=size(A,1);
for k=1:n-1
for i=k+1:n
fa=A(i,k)/A(k,k);
for j=k:n
A(i,j)=A(i,j)-fa*A(k,j);
disp(A(i,j))
end
b(i)=b(i)-fa*b(k);
disp([A b])
end
end
x(n)=b(n)/A(n,n);
for i=n-1:-1:1
sum=0;
for... |
f8609f881aaea7a9178011d7b4b6acc530cbda37 | 449d555969bfd7befe906877abab098c6e63a0e8 | /716/CH6/EX6.25/Solved_EX_6_25.sce | 1f151984a915fb4986aa028935ed1ba3fdd32fb8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 533 | sce | Solved_EX_6_25.sce | //Perform Circular convolution of two sequences is x1={0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6} and x2(n)={0.1,0.3,0.5,0.7,0.9,1.1,1.3,1.5}
clc;
clear;
n=1:1:16
x1={0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6,0.2,0.4,0.6,0.8,1.0,1.2,1.4,1.6};
x2={0.1,0.3,0.5,0.7,0.9,1.1,1.3,1.5,0.1,0.3,0.5,0.7,0.9,1.1,1.3,1.5};
subplot(1,3,1)
plot2... |
23858d41842633e981bd4b907aeb6624887ec011 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1460/CH2/EX2.4/2_4.sce | c0b35066da2adee1950b4cc7bc6f9691916c84a5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 246 | sce | 2_4.sce | clc
//initialization of variables
T1=500 //R
T2=1060 //R
w=1 //lbm
//calculations
function [cv]= v(T)
cv=0.258-120/T +40000/T^2
endfunction
Q=intg(T1,T2,v)
cvm=Q/(T2-T1)
//results
printf("Mean specific heat = %.3f B/lbm F",cvm)
|
367ddc86d22f9b97b5fbbeb6d8af16f4fb732493 | 449d555969bfd7befe906877abab098c6e63a0e8 | /273/CH12/EX12.3/ex12_3.sce | b4f96c7efdda21eff950afbd2e848413416f2310 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 351 | sce | ex12_3.sce | clc;clear;
//Example 12.3
//calculation of depth and wavelength
//given values
f=.07*10^6;//frequency in Hz
t=.65;//time taken for pulse to return
v=1700;//velocity of sound in sea water in m/s
//calculation
d=v*t/2;//
disp(d,'the depth of sea(in m) is');
l=v/f;//wavelenght of pulse in m
disp(l*10^2,'w... |
3c296576ac2e06a458a431390ece688c2248835a | 1f57c25951e0b065ae60f388372d92fb44f41e5c | /Practica 1/Jacobi.sce | c3310248c5f3ecfcc4f0001ace8366b09c85d8cb | [] | no_license | javilag/metodosNumericos | 1d93774d87a1bef50002089a51c5bfe961eb26de | 06dbc373351ff56c465896d47c89d5f896f249d8 | refs/heads/master | 2021-01-01T19:43:18.598387 | 2015-10-28T19:01:13 | 2015-10-28T19:01:13 | 42,838,717 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 620 | sce | Jacobi.sce | function jacobi(A,B,P,tol,itx)
//A es una matriz no singular N X N
//B es una matriz N x 1, osea el vector resultado
//P es una matriz N x 1, los supuestos iniciales
//err es la tolerancia para P
//itx es el numero maximo de iteraciones
N = length(B);
for k = 1:itx
for j = 1:N
X(j) = (B(j) - A(j, [1:j-1,... |
24dc4f14a162e6cb4a11d713cae6b38db097f112 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/TECD.prev.tst | e6b99f2fb386696dd09a9cbeab7122feaf1a0aff | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 7,520 | tst | TECD.prev.tst | Expanding for base=2, level=6, reasons+features=base,same,similiar invall,norm
Refined variables=x,y
[0+1x,0+1y]: unknown -> [1] [0,0] x²-y³+3
---------------- level 0
expanding queue[0]^-1,meter=[2,2]: x²-y³+3
[1+2x,0+2y]: unknown -> [1] [1,0] x+x²-2y³+1
[0+2x,1+2y]: unknown -> [2] [0,1] 2x²-3y-6y²-4y³+1
endexp[0]
---... |
f2df950e84928b5742270dba793972ce783d9775 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1784/CH40/EX40.3/example_3.sce | 81f74d0939b322a650a11727714987fbd21011f2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 184 | sce | example_3.sce | //chapter 40
//example 3
//clc()
l=15.6//in cm
n=8
lambda_g=(2*l)/n
disp(lambda_g,"lambda_g in cm=")
lambda=3.15//in cm
f=9.5*10^9//cycles/sec
c=lambda*f
disp(c,"value of c in m/sec=") |
5381b7dd7f5b3a2c36f8680ba9de2ff96dcb57db | 1573c4954e822b3538692bce853eb35e55f1bb3b | /DSP Functions/zpkrateup/test_2.sce | 174e8d76afb2eff168f7ddf263b36d73cc611393 | [] | no_license | shreniknambiar/FOSSEE-DSP-Toolbox | 1f498499c1bb18b626b77ff037905e51eee9b601 | aec8e1cea8d49e75686743bb5b7d814d3ca38801 | refs/heads/master | 2020-12-10T03:28:37.484363 | 2017-06-27T17:47:15 | 2017-06-27T17:47:15 | 95,582,974 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 151 | sce | test_2.sce | // Test # 2 : Excess Input Arguments
exec('./zpkrateup.sci',-1);
[z,p,k,n,d]=zpkrateup(3,7.2,8.7,5,6);
//!--error 58
//Wrong number of input arguments
|
8797cd04b7cd2788c36036f102690233dccfad9d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1382/CH5/EX5.20/EX_5_20.SCE | 1d0bf0adee36bd6c5b6d5823a23ee905c8ae2448 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 931 | sce | EX_5_20.SCE | // Example 5.19:corner frequency
clc;
clear;
close;
Rs=1;//series resistance in killo ohms
Rl=3.7;//load resistance in killo ohms
Rc=3.7;// Collector resistance in killo ohms
R1= 200;// in kilo ohms
R2= 200;// in kilo ohms
Vbe=0.7;// Base to emitter voltage in volts
Rb= (R1*R2)/(R1+R2);
rpi=2.5;//resistance... |
f6f27f576d3a1f4b2354e18e4d27889c0aaf4cea | 449d555969bfd7befe906877abab098c6e63a0e8 | /1958/CH7/EX7.1/Chapter7_example1.sce | b7929842eb59edcb7900d4e6ea0ebf9c1de9715a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 701 | sce | Chapter7_example1.sce | clc
clear
//Input data
f1=-12//Focal length of a converging lens in cm
f2=25//Focal length of a diverging lens in cm
d=8//Distance between the lens in cm
//Calculations
C=(1/f1)+(1/f2)+(d/(f1*f2))//Inverse of focal length in cm^-1
D=(d/f2)+1//Constant value
A=(d/f1)+1//Constant value
O1F1=(-D/C)//Poistion o... |
b7065eaf31c0a8fff48a156595e5a7305662c6dd | fdc5047b7bf8122bad1e621df236b0481226c36e | /exemplos/xls-link-0.5.0-src/macros/xls_SetColor.sci | c8f626c4b941b5ce65e60a861c7f1e4e88e5a33d | [] | no_license | jpbevila/virtualHartSci | aea3c6ba23d054670eb193f441ea7de982b531cc | a3f5be6041d230bd9f0fd67e5d7efa71f41cfca5 | refs/heads/main | 2023-07-26T23:05:28.044194 | 2021-09-09T11:50:59 | 2021-09-09T11:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,593 | sci | xls_SetColor.sci | // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2013 - Scilab Enterprises - Antoine ELIAS
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The... |
edfb1bd56851f46d84383e1c6bc254dffb10bd92 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2300/CH7/EX7.13.3/Ex7_3.sce | 7bbf4f5e75de29e798249edfbec26a11a74a6c0a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 638 | sce | Ex7_3.sce |
//scilab 5.4.1
//windows 7 operating system
//chapter 7:Junction Transistor Characteristics
clc;
clear;
//given data
a=0.975;//a=fraction of the emitter current contributed by the carriers injected into the base and reaching the collector
Ico=10*10^-6; //reverse saturation current in A
Ib=250*10^-6; //bas... |
54cf35085f4867f72662be8a2faafa9844f77407 | 717ddeb7e700373742c617a95e25a2376565112c | /249/CH21/EX21.1/21_01.sce | 71fe097bee9b9f3db134cd0a6d5e3e7772e048b2 | [] | 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,070 | sce | 21_01.sce | clear
clc
t=[0;2;4;6];
XA=[0.75;0.64;0.52;0.39];
t1=4000;//kg.s/m3
density_s=1500;//kg/m3
De=5*10^-10;
d=2.4*10^-3;
//Assuming -rA=kCA*a,-da/dt=kd*a
//For this rate a plot of ln(CAo/CA-1)vs t should give a straight line
for i=1:4
y(i)=log((1/(1-XA(i)))-1);
end
plot(y,t)
xlabel('t')
ylabel('ln(CAo/CA-... |
6896510554c0d10594ce9e6324f0aebf1807d377 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1172/CH3/EX3.10.2/Example3_10b.sce | 585b9c0cb6ea17b4063d43ef3d47470a387c70f2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 530 | sce | Example3_10b.sce | clc
//Given that
n = 2 // order
lambda = 5.2e-11 // wavelength in Angstrom
d = 2.98e-10 // interatomic separation in Angstrom
//Sample Problem 10b page No. 139
printf("\n\n\n # Problem 10b # \n")
printf("\n Standard formula Used \n 2 * d * sin(theta) = n * lambda ")
theta_rad = asin ( (n * lambda) / ( 2 * d))... |
45d86c16730453f6aaaea62b3df04a0294deb579 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1364/CH9/EX9.4.1/9_4_1.sce | e421751563d9956b035a06e38c3edf513bb7413f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 229 | sce | 9_4_1.sce | clc
//initialisation of variables
U= 30 //ft/sec
g= 32.2 //ft/sec^2
l= 500//ft
r= 1/25
//CALCULATIONS
F=(U^2/(l*g))
R= sqrt(r)
Um= U*R
//RESULTS
printf (' Froude number= %.4f ',F)
printf (' \n speed= %.f ft/sec',Um)
|
45eb6dcc661a8594c9f319ece21321e6f65c9039 | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH13/EX13.37/37.sce | bfa324954b62eb19668cc2ddb91c2f6e44ee1b05 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 637 | sce | 37.sce | clc
T1=300; //K
p1=1; //bar
rp=6.25;
T3=1073; //K
n_comp=0.8;
n_turbine=0.8;
cp=1.005; //kJ/kg K
y=1.4;
T2=T1*(rp)^((y-1)/y);
//Let T2'=T2a
T2a=(T2-T1)/n_comp + T1;
W_comp=cp*(T2a-T1);
disp("Compressor work =")
disp(W_comp)
disp("kJ/kg")
T4=T3/rp^((y-1)/y);
T4a=T3-n_turbine*(T3-T4);
W_turbin... |
ee174a2440bf43ab7bde09ec4ea4d430d85deeee | 449d555969bfd7befe906877abab098c6e63a0e8 | /116/CH5/EX5.3/exa5_3.sce | 6c501c2c0c1a611f7c6b34c3c7a5d04fcb5a98a4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 363 | sce | exa5_3.sce |
//Example 5.3
//Page 256
k=7//from equation 5.14 on page 256
disp('Using the value of k')
disp('Using the value of k, the number of crosspoint determined are')
2*7*16
disp('The number of bits of memory can be determined are')
N=[2*7*128*4]+[7*128*8]+[7*128*7]
//Result
//The composite implementation ... |
ab31d54f1f0b6370cabcb114f990c3b04c993758 | 449d555969bfd7befe906877abab098c6e63a0e8 | /213/CH11/EX11.5/11_5.sce | 80ba46d10efee8c66bedc76762fd600ec46a2129 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 11_5.sce | //To find force and power
clc
//Given:
W=9*1000, T1=W //N
d=300/1000 //m
N=20 //rpm
mu=0.25
//Solution:
//Force required by the man:
//Calculating the angle of contact
theta=2.5*2*%pi //rad
//Calculating the force required by the man
T2=T1/exp(mu*theta) //N
//Power to raise the casting:
//Calculating the ... |
498a254924ea7c4f2b709b32cd323f4d4d8d0a54 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set12/s_Hydraulics_And_Fluid_Mechanics_E._H._Lewitt_1466.zip/Hydraulics_And_Fluid_Mechanics_E._H._Lewitt_1466/CH1/EX1.3/1_3.sce | 5c19d6df80d84fd4fa83edbcd0dc2b1d265a290d | [] | 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 | 194 | sce | 1_3.sce | errcatch(-1,"stop");mode(2);
//initialisation of variables
w= 64 //lb
h= 7 //miles
//CALCULATIONS
p= w*h*5280/(144*2240)
//RESULTS
printf (' pressure = %.2f tons/in^2',p)
exit();
|
ab4796db7301b1d7fcbb45436ff0bab41dddc20f | 449d555969bfd7befe906877abab098c6e63a0e8 | /476/CH9/EX9.10/Example_9_10.sce | a8c007b8326aa431595646e33d9fb130b6c6e42c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Example_9_10.sce | //A Textbook of Chemical Engineering Thermodynamics
//Chapter 9
//Chemical Reaction Equilibria
//Example 10
clear;
clc;
//Given:
//Reaction: CO(g) + 2H2(g) --> CH3OH(g)
T = 600; //temperature in K
R = 8.314; //ideal gas constant
//Gibbs free energy at 600 K (J/mol K)
Gc = -203.81; //for CO
Gh = -1... |
2c5a6f829962b5661eb32be2ace06857ae1ff891 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/tests/matsys.tst | 293eb287d206b5514cc114372dc79396dc1589e2 | [
"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 | 4,422 | tst | matsys.tst | // test of matsys functions
clear
// debug
if debug()<>0 then pause,end
debug(4)
if debug()<>4 then pause,end
debug(0)
//who
a=33;bbb=-1;
vars=who('get');
if or(vars(1:2)<>['bbb';'a']) then pause,end
//lines
ln=lines();lines(30);ln1=lines();
if ln1(2)<>30 then pause,end
lines(45,70);ln1=lines();
if or(ln1<>[70,45]) ... |
450a6704a30f2d6188fd47c1d9dbcb3442986f24 | 4dd80e07c98afab68d53d3c1c1d50f713f8d4d90 | /UNIT1/gaus_jord.sce | 4cd2c577ab7c2737387eb604674f1b23318ac471 | [] | no_license | AnanyaV0308/SCILAB | 4df7069274ffd6a704c572f8b476ff21625122a5 | fd9498813a0c31f698e30557107f3840371cd18a | refs/heads/master | 2020-12-30T08:05:35.318270 | 2020-06-03T10:30:09 | 2020-06-03T10:30:09 | 238,921,232 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 756 | sce | gaus_jord.sce | clc
funcprot(0)
format('v',10)
mat1 = input("Enter matrix[NxN]:")
function gauss_jordan(mat1)
n = length(mat1(1,:));
aug_mat1 = [mat1,eye(n,n)];
//forward elimination
for j=1:n-1
for i=j+1:n
aug_mat1(i,j:2*n) = aug_mat1(i,j:2*n)-aug_mat1(i,j)/aug_mat1(j,j)*aug... |
1bc14982ea52257a91ff9bf5f95d1b7652dd1edb | 449d555969bfd7befe906877abab098c6e63a0e8 | /1484/CH5/EX5.7/5_7.sce | 5240b2997b27f3993ad8f5000ddaaf6dfb179221 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 250 | sce | 5_7.sce | clc
//initialisation of variables
A= 25 //miles^2
t= 24 //hr
p= 50 //per cent
l= 3 //in
h= 4 //ft
//CALCULATIONS
A1= 5280^2*A
V= A1*l/12
V1= V/(t*60*60)
V2= V1/2
L= (V2/(3.33*h*2))+0.2*4
//RESULTS
printf ('length of weir= %.1f ft',L)
|
528a654430086ef7356b11d7690b0166797f10b1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1382/CH7/EX7.3/EX_7_3.sce | 3988c56652f17e9ae5b30856138ada6925b216d7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 408 | sce | EX_7_3.sce | // Example 7.3:TRANSFORMER WINDING RATIO
clc;
clear;
close;
Vcc=12;//collector vltage
Po=88;//power output in milli watt
Ploss=8;//power losses in milli watt
Pi= Po+Ploss;//input power in milli watt
Ic= Pi/Vcc;//collector current in milli ampere
gm=10;//transconductance in milli ampere per volt
Vb= Ic/(gm);//... |
398538f0a4a184651aa2a2945468d2bdccbaf0e6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2837/CH18/EX18.6/Ex18_6.sce | ec2475041a9f7e7d80f3405b777be094513631c0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 353 | sce | Ex18_6.sce | clc
clear
//Initalization of variables
pa=14.7 //psia
p1=12 //psia
t1=560 //R
n=1.4 //gamma
J=778 //constant conversion
g=32.2 //ft/s^2
cp=0.24 //heat capacity
eff=0.7 //efficiency
m1=1.8
m3=1
//calculations
t5=t1*(pa/p1)^((n-1)/n)
v4=sqrt(2*g*J*cp*(t5-t1)/eff)
v3=(m1+m3)/m1 *v4
//results
printf("V... |
7b1a62ef1fcbe41a0a1600fd6945402c3ee0e85f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1322/CH19/EX19.14/170ex1.sce | 65380c3a22e39f9d7403260f8b2eb2df54137e5f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 114 | sce | 170ex1.sce |
//log50 to the base e
clear;
clc;
close;
log(50)//natural logarithm
// or, log50_base_e=log10(50)*2.3026
|
6bb1cddea4005767f87df041c37a037ceefdafa9 | 44a15e4bb1e6caceda9ee02880890d520e993306 | /Foundation Code/Audiovisual_Control_File_et.sce | 9efe30f059f8c088640ced1c75f60ac04925223d | [] | no_license | CNL-R/TripleSequences | 3ac8be0b491b3a77e3a5fd859c9580d6be650a78 | 46d75c6d074b4e011961916a908c1d21d8944784 | refs/heads/master | 2021-01-01T19:14:21.755538 | 2017-08-16T21:18:27 | 2017-08-16T21:18:27 | 98,548,330 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,589 | sce | Audiovisual_Control_File_et.sce | #Declaring parameters
active_buttons = 1; # Number of Buttons Used
button_codes = 1; # Button Code (Tag Number)
#refering the PCL file associated with this scenario file
pcl_file = "Audiovisual_Control_File_et.pcl";
#Duration of Port Code (Tag Number) in milliseconds
pulse_width = 5; ... |
223ab2587b4093544730931912187ad6a72e3db2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3472/CH22/EX22.1/Example22_1.sce | 83d63de1a921f20f04b25827fe51ba6869501353 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 917 | sce | Example22_1.sce | // A Texbook on POWER SYSTEM ENGINEERING
// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
// DHANPAT RAI & Co.
// SECOND EDITION
// PART II : TRANSMISSION AND DISTRIBUTION
// CHAPTER 15: INSULATION CO-ORDINATION
// EXAMPLE : 15.1 :
// Page number 398-399
clear ; clc ; close ; // Clear the work space an... |
8ece1e33af626800299c4eb57bd9c54d54b7f75e | 449d555969bfd7befe906877abab098c6e63a0e8 | /226/CH3/EX3.15/example15_sce.sce | 3fb89ad71f1a1dba69e8e972002b49d9dfd66da9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 205 | sce | example15_sce.sce | //chapter 3
//example 3.15
//page 105
printf("\n")
printf("given")
Eo=20
E0=20-19.7//load effect
loadregulation =(E0*100)/Eo//percentage
sourceeffect=20.2-20
lineregulation =(sourceeffect*100)/Eo |
e036de770e16195baa157a8f20ae1ac0543557a4 | 6be22cc470807d3b2d9a8042a18ccd96070d00ae | /propulsion/turbofan_engine/hw_8_p2.sce | 84cc3e68dce4d8f2941a91f38c73dc1e49cf71b4 | [] | no_license | ordinatorix/scilab_projects | a8e5096ddd0c343559bb06c1c05c0926e4f13fdc | 1f227a2bdf8e2ae7a7f1fa42788e9a346710fa40 | refs/heads/master | 2022-02-27T14:52:47.802082 | 2016-05-06T21:09:07 | 2016-05-06T21:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 7,863 | sce | hw_8_p2.sce | // Hw 8-------------------------------------------------------------------
// Close and clear all
clc; clear; close; close; close; close; close; close; close; close; close;
close;
// Using the optimal bypass ratio of 5.9 found in problem 1---------------
// Independant Parameters-------------------------------------... |
9448bdcba823c333b2d342b766c02d094506be10 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH6/EX6.3/Ex6_3.sce | 283399e2ea7e5f98a5b3e444a735b673685eaf0a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex6_3.sce | //Variable declaration
A=100. //high frquency response
Af=100 //gain
A1=A**2 //forward gain
A1new=50 //gain reduces to 50%
//Calculations
beta=((A1/Af)-1)/A1 //feedback f... |
0855bac90c3b69b04a7d5a737c78b5f91778123a | 449d555969bfd7befe906877abab098c6e63a0e8 | /995/CH2/EX2.30/Ex2_30.sce | fea6d8ecacfa245e50c43c5ba4aaa9a4b6e302aa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 149 | sce | Ex2_30.sce | //Ex:2.30
clc;
clear;
close;
//L=(L1*L2)/(L1+L2)
L_eq=5;//in millihenry
printf("Inductor of 10 mH wired in parallel would provide %d mH",L_eq); |
351852f716ee9aeb1264e45b9e7d115ce68217de | 1d7cb1dbfad2558a4145c06cbe3f5fa3fc6d2c08 | /Scilab/SparamToolBox/SparamToolbox/v1.0/x86/tests/Read_and_write.sce | 82575d43fa53e5f20b0724db90f9ea9b9af60765 | [] | no_license | lrayzman/SI-Scripts | 5b5f6a8e4ae19ccff53b8dab7b5773e0acde710d | 9ab161c6deff2a27c9da906e37aa68964fabb036 | refs/heads/master | 2020-09-25T16:23:23.389526 | 2020-02-09T02:13:46 | 2020-02-09T02:13:46 | 66,975,754 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,298 | sce | Read_and_write.sce | // ==========================S-parameter ToolBox=======================
// ====================== Read and Write Test =========================
//
// Simple function to test sptlbx_readtchstn() and sptlbx_writetchstn()
// functions.
//
// (c)2010 L. Rayzman
//
//
// Created : 02/06/2010
// Last Mo... |
33b8b13d7f331a17d5b601db563af9ee1c8f3441 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3137/CH6/EX6.3/Ex6_3.sce | a4dbea9351534180c6fc861cc709f19ff1dc2a9b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 531 | sce | Ex6_3.sce | //Initililization of variables
m=6.12 //kg
g=9.81//m/s^2
x1=3 //m
x2=4 //m
y=6 //m
z1=2 //m
z2=4 //m
AB=5
//Calculations
AD=sqrt(x1^2+y^2+z1^2)
AC=sqrt(x2^2+z1^2)
//Sum of forces in the y direction
T1=(m*g*AD)/6 //N
//sum of forces in the x and z direction
//Matrix solution of the folllowing simultaneou... |
bc7147f3978af4173f3a8ec6ce01de3304e5cb93 | fa96b6f7b84fc275c3bc6a2ec1413711285aa54a | /Morphological Operations/Morphological Operations.sce | ee915b24518b9d70d52667a97fa930a7778d48de | [] | no_license | Sid-149/Image-Processing-and-Machine-Vision | 9d4d4308b39d7bd3fb0ab8171531fbbfe4381de9 | 94bb83e4005b39c2f08d15e23c5be73cde01b364 | refs/heads/main | 2022-12-30T01:51:08.942675 | 2020-10-19T05:15:12 | 2020-10-19T05:15:12 | 302,541,282 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,511 | sce | Morphological Operations.sce | clc
clear
im=imread('bw1.jpg')
a=im2double(im)
[r c]=size(a)
padded=zeros(r+2,c+2)
a=padded(2:r+1,2:c+1)
a=padded
w=[1 1 1;1 1 1;1 1 1]
aa=find(w==1)
count=length(aa)
[r c]=size(a)
for i=2:r-1
for j=2:c-1
sum1=0
x=a(i-1:i+1,j-1:j+1)
sum1=sum(x.*w)
if sum1==count then
... |
70d80049e7190589b6fae5cf35667424780024a3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /620/CH6/EX6.1/example6_1.sce | dda7f0b288b39c3878940e576bdab3cca1aabb08 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 484 | sce | example6_1.sce | i1=10;
i2=0.5;
i3=1.5;
v=120;
disp("Part a");
i=i1+i2+i3;
disp("the total current (in A) supplied by the source is"); disp(i);
disp("Part b");
disp("voltage (in V) across the lamp is"); disp(v);
disp("Part c");
r=v/i;
disp("the combined resistance (in Ω) is");disp(r);
disp("Part d");
i4=15;
r4=v/(i4-i);
... |
dc8bd02708c0dc80eff3db17604960d6edc92c9c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3250/CH3/EX3.6/Ex3_6.sce | 7469536aba2c2a982057977688ecd9467dcfb8bc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 706 | sce | Ex3_6.sce | clc
// Given that
r = 150 // Radius of the circular disc of lead in mm
Ti = 50 // Initial thickness of the disc in mm
Tf = 25 // Reduced thickness of the disc in mm
mu = 0.25// Cofficient of friction between the job and the dies
K = 4 // Avg shear yield stress of the lead in N/mm^2
// Sample Problem 6 on page no. 122... |
69afcb309c0506c043888a6998887cde643644cd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2240/CH20/EX19.9/EX19_9.sce | a3824477e3027cad5c5263758cd0ff5d46c31c61 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 403 | sce | EX19_9.sce | // Grob's Basic Electronics 11e
// Chapter No. 19
// Example No. 19_9
clc; clear;
// Two 400-mH coils L1 and L2 have a coefficient of coupling k equal to 0.2. Calculate Lm.
// Given data
L1 = 400*10^-3; // L1=400 mH
L2 = 400*10^-3; // L2=400 mH
k = 0.2; // Coupling coefficient=0.2
Lm = k*sqrt(L1*L... |
30f44287f6c3fdfa8cb1807ae5c011ea3f231eed | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/tests/examples/left.man.tst | 98b163047d0cfd6a0cefe18494abbd3ff7d56230 | [
"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 | 116 | tst | left.man.tst | clear;lines(0);
[6.9,9.64; sqrt(-1) 0]
[1 +%i 2 -%i 3]
[]
['this is';'a string';'vector']
[u,s]=schur(rand(3,3))
|
8278189d1b3bf468b9c29475d79406f5d701985d | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4.1/macros/xdess/scaling.sci | 6326533104b4faeacc5afeb0df5126af2400a554 | [
"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 | 421 | sci | scaling.sci | function [xy]=scaling(xy,factor,orig)
// xy=xy*factor+orig
//
// xy : matrix with 2 rows
// factor : factor
// orig : origin, [0;0] if omitted
//!
// Copyright INRIA
[lhs,rhs]=argn(0)
select rhs
case 2 then orig=[0;0];
case 3 then orig=matrix(orig,2,1);
else error(39)
end;
//
[m,n]=size(xy)
if m<>2 then erro... |
e5d8d779179347733e17ff7d6a9f5dfacb3016cf | 449d555969bfd7befe906877abab098c6e63a0e8 | /3515/CH3/EX3.18/Ex3_18.sce | d2f0f2f13adeb086248b6ba8e4ebdb8f4129d055 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 539 | sce | Ex3_18.sce | // Exa 3.18
format('v',9);
clc;
clear;
close;
// Given data
VBE= 0.76;// in V
VT= 0.025;// in V
I_C= 10*10^-3;// in A
// Formula I_C= I_S*%e^(VBE/VT)
I_S= I_C/(%e^(VBE/VT));// in A
disp(I_S,"The value of I_S in amp is : ")
// Part(a) for VBE = 0.7 V
VBE= 0.7;// in V
I_C= I_S*%e^(VBE/VT)
disp(I_C*10^3,"... |
63081aecd767a3fb75bd0781807a97a9cc592aaf | 449d555969bfd7befe906877abab098c6e63a0e8 | /1301/CH10/EX10.12/ex10_12.sce | 4f7a65f1a0d232c42dfe9e1e36af503cf837b31b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 365 | sce | ex10_12.sce | clc;
o=16.00; //atomic mass of O
h=1.008; //atomic mass of H
mh2o=(o+2*h)*1.66*10^-27; //mass of H2O molecule
disp(mh2o,"Mass of H20 molecule in kg = "); //displaying result
c=12.01; //atomic mass of carbon
m=((2*c)+o+(6*h))*1.66*10^-27; //mass of C2H6O molecule
disp(m,"Mass of Ethyl Alcohol... |
aa2fd286e5421c20334db54e71bbd8583502b4bc | 449d555969bfd7befe906877abab098c6e63a0e8 | /1964/CH2/EX2.5/ex2_5.sce | 755889f780b1b93954c09154f18d62a193c57923 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,297 | sce | ex2_5.sce | //Chapter-2, Example 2.5, Page 92
//=============================================================================
clc;
clear;
//INPUT DATA
r=0.01;//radius in m
lg=10^-3;//length of air gap in m
Rm=(30/2)*10^-2;//mean radius in m
ur=800;//relative permeability of iron
ur2=1;//relative permeability of air gap
N... |
fb317e48b945a57a18568a77bcbe6b058f99b286 | 449d555969bfd7befe906877abab098c6e63a0e8 | /132/CH6/EX6.1/Example6_1.sce | 44d26c48f55ace44bd5f6e6d3ee90f5044072f1a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 586 | sce | Example6_1.sce | //Example 6.1
//Program to Plot the Characteristics and
//Determine Dynamic Plate Resistance
clear;
clc ;
close ;
//Given Circuit Data
V=[0 0.5 1 1.5 2]; //V
I=[0 1.6 4 6.7 9.8]; //mA
//Plotting
plot(V,I);
a= gca ();
xlabel ('Plate Voltage (in V)');
ylabel ('Plate Current (in mA)');
title ('STATIC CHARAC... |
a2eab41e87d54f89c12c0145c690720339a87bc6 | c4dc71508b28a2e15187e1b742173168eda9ab86 | /item_swap.sce | ae43d001436d7804abeba99043fa7a5b458c052c | [] | no_license | ximarx/calcolo-numerico | 103fc59093a2688e8d6224ecdf21d0ce9f3768e3 | bca493091417b8f27131a59a2b3a20c30e31b90f | refs/heads/master | 2020-06-06T05:34:35.065166 | 2012-06-23T06:39:27 | 2012-06-23T06:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 188 | sce | item_swap.sce | function A=item_swap(A,r,s,col)
// eseguo lo swap dell'elemento in posizione r,col con
// con quello in posizione s,col
tmp=A(r,col)
A(r,col)=A(s,col)
A(s,col)=tmp
endfunction |
12280129bc975e47e8e5ab6cc18434dba5ff1a90 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3532/CH1/EX1.7.1/Ex1_8.sce | 5d4c7f1183ea7d5ee7ee5e16ce96a97486a48ca7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 510 | sce | Ex1_8.sce | clc
clear
mprintf('Mechanical vibrations by G.K.Grover\n Example 1.7.1\n')
//given data
Po=25//amplitude of force in N
Xo=0.05//ampliyude of displacement in m
W=20*%pi
//calculations
//case 1
t0=0
t1=1
v1=integrate('sin(W*t)*cos(W*t-%pi/6)','t',t0,t1)
WD1=Po*Xo*W*v1
//case 2
t0=0
t1=1/40
v2=integrate('s... |
b7fff670dc41a023b70de445a9efb1600d94b47f | 8200349559e237758f87bc09a9eb4e0178932815 | /Magnet/Scilab/plotmagfield.sce | 6f4a33d20e81043b76c6952218b56861e65258f4 | [] | no_license | rmorenoga/Testing | 6e50ea8e5f334b6d69f25e56f81fd7a505c012bb | 06713e61ababad3fb738ec4ac9ea771772585a12 | refs/heads/master | 2021-05-25T09:31:54.351782 | 2020-08-08T20:55:59 | 2020-08-08T20:55:59 | 35,949,400 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,147 | sce | plotmagfield.sce | //Magnet attributes
Br = 13200
D = 1/2
t = 1/8
//Rotation Angle
angle = 0
//Rotation Axis
rotaxis = [1 0 0]
//Translation
tx = 0
ty = 0
tz = 0
//Points to plot
x = linspace(-0.5,1,30);
y = linspace(-0.5,1,30);
z = linspace(-0.5,1,30);
//Only 2D plots are possible the other dimension will be se... |
2a116813fb03f9f7bc93cf5e96a27ec45c9ab1dc | 573df9bfca39973c9bf2fa36f6e5af2643d7771e | /scilab/lib/subret.sci | 36f0af842d346d31313d3376dd6253095fbb7101 | [] | no_license | DCC-CN/152cn | ef92c691edabe211b1a552dbb963f9fd9ceec94a | 4fe0b02f961f37935a1335b5eac22d81400fa609 | refs/heads/master | 2016-08-13T01:34:17.966430 | 2015-04-07T07:31:58 | 2015-04-07T07:31:58 | 44,502,526 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 370 | sci | subret.sci | function x = subret(U, d, Exibe)
//
// Substituições sucessivas
//
n = length(d);
x = zeros(n,1);
x(n) = digitos(d(n) / U(n,n), Exibe);
for i = n-1:-1:1
Soma = 0;
for j = i+1:n
Soma = Soma + digitos(U(i,j) * x(j), Exibe);
end
x(i) = digitos((d(i)... |
1f3ec731250ec3d6d053673ce9d4089120ff8e32 | 449d555969bfd7befe906877abab098c6e63a0e8 | /770/CH1/EX1.4/1_4.sce | 15ba594d77eaf640942d415db6e14abc65064274 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 749 | sce | 1_4.sce | clear;
clc;
//Example - 1.4
//Page number - 17
printf("Example - 1.4 and Page number - 17\n\n");
//(a)
//Given
V = 9;// [m/s] - velocity
d = 1;//[m] - diameter
A = 3.14*(d/2)^(2);//[m^(2)] - area
P = 1;//[atm] - pressure
P = 101325;// [N/m^(2)]
T = 300;//[K] - Temperature
R = 8.314;//[J/mol*K] - Unive... |
28e301d1c44c0a27affe239dd011519e19c4d3c2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH5/EX5.21/Ch05Ex21.sce | 7051cfaf304bd39d3890ed06ac7b7c18c2ba5805 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 480 | sce | Ch05Ex21.sce | // Scilab Code Ex5.21: Page:307 (2011)
clc;clear;
lambda1 = 5890;....// Wavelength of the line, angstrom
lambda2 = 5896;....// Wavelength of the line, angstrom
d_lambda = lambda2 - lambda1;....// Wavelength difference, angstrom
n = 2;....// Order of diffraction
N = lambda2/(n*d_lambda); // Minimum no. of lines... |
6ecb325890b086aceb58e3e815e53eda22fee1b1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3869/CH7/EX7.19/Ex7_19.sce | bf2bde76834b79db50a0fdbbb79ef4dcb120c8c2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex7_19.sce | clear
//
//
//
//Variable declaration
d=3.04*10**-10 //lattice spacing(m)
lamda=0.79*10**-10 //wavelength(m)
n=3 //order
//Calculation
x=n*lamda/(2*d)
theta=asin(x)*180/%pi //glancing angle(degrees)
//Result
printf("\n glancing angle is %0.3f degrees",theta)
|
5ae38ae4a145ddbecaf5127f08a8e85379202d9b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2465/CH9/EX9.4/Example_4.sce | fbd6e46ab563c782ccfaf42a4fd84962159bd467 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 493 | sce | Example_4.sce | //Chapter-9,Example 4,Page 220
clc();
close();
R= 550 //resistance of the cell
K=0.002768 //specific conductivity
C_constant= R*K
p= 72.18 //observed resistance
Kv = C_constant*(1/p)
C= 0.2 //concentration
lamda_v= Kv*1000/C //equivalent conductivity
M= 0.1
lamda_m= 1000*Kv/M ... |
b691496377fb07c666d00915e3ec7a9f9c98b8d9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3685/CH20/EX20.10/Ex20_10.sce | 08f6361e20ff80c4bac8b716e834690a47d4c632 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 656 | sce | Ex20_10.sce | clc
// Given that
d = 25 // Throat diameter in mm
D = 1.2 // Main jet diameter in mm
c_d = 0.85 // Cofficient of discharge for the venturi
C_d = 0.65 // Cofficient of discharge for fuel jet
h = 6 // Height of the throat from gasoline surface in mm
p_1 = 1 // Ambient pressure in bar
T = 300 // Ambient temperatu... |
252226784dc46fb111d6ab47f8b86cb1d58617ad | 16152b808456a98fcb2d4303d5622c225109bcda | /basis.sce | e554949be60653fd9a85a198133948dd676adcc5 | [] | no_license | conradolega/131 | b1bcdc7097b661dcc0c503118ec199adffaabfc9 | fa0773433f66f485bf96a8adee35f00a1207861a | refs/heads/master | 2016-09-05T13:42:37.104466 | 2013-10-11T14:30:59 | 2013-10-11T14:30:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 474 | sce | basis.sce | function basis = basis(A)
n = size(A, 'r')
basis = []
for i=n:-1:1
if A(i, i) == 0 then
for j=i-1:-1:1
if A(j, i) <> 0 & isequal(A(j, 1:i-1), zeros(1, n-j+1)) then
A([j, i], :) = A([i, j], :)
end
end
end
end
... |
60ee65eaa33a08540a7ab3f70488f30b64d1ba7c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2858/CH12/EX12.8/Ex12_8.sce | f055b03b44d1c4450e3d8fc2108607b4d17c879e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 288 | sce | Ex12_8.sce | //example 12.8
clc; funcprot(0);
qu=3000;
Ds=3*12;
L=15*12;
FS=3;
Ecore=0.36e6;
f=min(2.5*qu^0.5,0.15*qu);
Qu=%pi*Ds*L*f/1000;
Emass=Ecore*(0.266*80-1.66);
Ec=17.9*Emass;
Ac=%pi/4*Ds^2;
If=0.35;
se=Qu*L/Ac/Ec+Qu*If/Ds/Emass;
Qall=Qu/FS;
disp(Qall,"allowed load in kN");
|
a2d8b6e0ba6079d568e35a2ae1f1ebf1cd686105 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1802/CH3/EX3.9/Exa3_9.sce | 4a3133036ae467994b0f610707ca19a6929c835f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 388 | sce | Exa3_9.sce | //Exa 3.9
clc;
clear;
close;
//Given Data :
format('v',5);
m=1/9;//unitless
EL=33;//in KV
EbyE1=1+(1+m)+(1+3*m+m^2);//assumed
E=EL/sqrt(3);//in KV
E1=E/EbyE1;//in KV
disp(E1,"E1(in KV) :");
E2=(1+m)*E1;//in KV
disp(E2,"E2(in KV) :");
E3=(1+3*m+m^2)*E1;//in KV
disp(E3,"E3(in KV) :");
E=E1+E2+E3;//in KV
... |
678391412c4bc90532c6b93af2c4dbab0c953135 | bdbafbcce90eb6b9aa54964c32057b8117961b58 | /Probleme_R.sce | fd2cd1967baf89956fe83d9f72e3d1602e9a98d6 | [] | no_license | Rachine/Tp_Optim | 617191c586b46d8d44fc1bd24b24e3d3b760c851 | 68cabcb55cd4f343796d6f0f3823e4aa03edbe25 | refs/heads/master | 2016-09-05T09:23:21.650931 | 2015-05-10T20:37:58 | 2015-05-10T20:37:58 | 34,060,544 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,060 | sce | Probleme_R.sce | ///////////////////////////////////////////////////////////////////////////////
// //
// DONNEES ASSOCIEES A LA RESOLUTION DES EQUATIONS D'UN RESEAU //
// //
... |
325cfd1bf75450b883b21e312b1a74c98c74c6c6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3535/CH9/EX9.3/Ex9_3.sce | 7344f0eac6a3ea0893638ca5025c4fd47056a9b2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 268 | sce | Ex9_3.sce | //Chapter 9, Example 9.3, Page 245
clc
clear
//Find fluence and H
Sp = 10**9
dt = 600
r = 1500
E = 0.03103
phi = Sp*dt/(4*%pi*r**2)
H = 1.602*10**-10*E*phi
printf("fluence = %e cm^2\n",phi)
printf(" H = %f microSv\n",H*10**8)
// Answer may vary due to round off error
|
18f9625a3a9dc2e2ed295a4ac44d6b6016cde138 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1172/CH1/EX1.29/Example1_29.sce | 3c3dcd310b18ab398bae6d706d2aa7790c9c6024 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 395 | sce | Example1_29.sce | clc
// Given That
theta = 60 // angle between plane of vibration of incident beam with optic axis
//Sample Problem 29 Page No. 859
printf("\n # Problem 29 # \n ")
printf("Standard formula used is \n I = A^2*cos^2(theta) \n")
ratio = (tan(theta*%pi /180))^2 // ratio of extraordinary and aordinary intensites
... |
24b86269ac9d29acc6e819498cab738c6540a000 | 449d555969bfd7befe906877abab098c6e63a0e8 | /167/CH7/EX7.18/ex18.sce | 96adbe115909db3de45cb6fe61dd9881e97baf48 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 307 | sce | ex18.sce | //ques18
//Entropy Generation during a Throttling Process
clear
clc
//state 1
P1=7;//MPa
T1=450;//C
//from table
h1=3288.3;//kJ/kg
s1=6.6353;//kJ/kg.K
//state 2
P2=3;//MPa
h2=3288.3;//h2=h1
s2=7.0046;//kJ/kg.K
sgen=(s2-s1);
printf('Entropy of generation per unit mass = %.4f kJ/kg.K',sgen); |
df9dd87efe13b683defb596baaab52bfd952dbe1 | 417f69e36190edf7e19a030d2bb6aa4f15bb390c | /SMTTests/tests/ok_globaldeclarations4.tst | 83ed9e3b52ad8d1d7a66a849b9b37e2bb840b976 | [] | no_license | IETS3/jSMTLIB | aeaa7ad19be88117c7454d807a944e8581184a66 | c724ac63056101bfeeb39cc3f366c8719aa23f7b | refs/heads/master | 2020-12-24T12:41:17.664907 | 2019-01-04T10:47:43 | 2019-01-04T10:47:43 | 76,446,229 | 1 | 0 | null | 2016-12-14T09:46:41 | 2016-12-14T09:46:41 | null | UTF-8 | Scilab | false | false | 181 | tst | ok_globaldeclarations4.tst | ; checks global declarations
(set-option :global-declarations true)
(set-logic QF_UF)
(declare-fun a () Bool)
(assert (not a))
(check-sat)
(reset-assertions)
(assert a)
(check-sat)
|
545b7a15648a2e3a0a9706ff800783849b57eee3 | 1573c4954e822b3538692bce853eb35e55f1bb3b | /DSP Functions/zpklp2hp/test_3.sce | 5e6c786c3c83a344e08592b8955db5ba93b5d93a | [] | no_license | shreniknambiar/FOSSEE-DSP-Toolbox | 1f498499c1bb18b626b77ff037905e51eee9b601 | aec8e1cea8d49e75686743bb5b7d814d3ca38801 | refs/heads/master | 2020-12-10T03:28:37.484363 | 2017-06-27T17:47:15 | 2017-06-27T17:47:15 | 95,582,974 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 274 | sce | test_3.sce | // Test # 3 : Checking the type for Input Argument #3
exec('./zpklp2hp.sci',-1);
[z,p,k,n,d]=zpklp2hp(0.3,0.2,[0.4 0.8],0.5,0.6);
// !--error 10000
//K must be a scalar
//at line 57 of function zpklp2hp called by :
//[z,p,k,n,d]=zpklp2hp(0.3,0.2,[0.7,0.9],0.5,0.6)
|
ffe5b0de03cc8471b73bcc156360fbd332676d66 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1364/CH3/EX3.5.2/3_5_2.sce | b7944b8406c016025b346bceda5f189bc1dec3e4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 180 | sce | 3_5_2.sce | clc
//initialisation of variables
p= 0.005 //lbf/in^2
w= 62.4 //lbf/ft^3
h= 1 //in
//CALCULATIONS
p= w*h/1728
//RESULTS
printf (' pressure difference = %.4f lbf/in^2 ',p)
|
34c026a71976cd0bef0628e4641d5754318d18ac | e223a3388730b3a8ab63f7565156d5bf7a65e44b | /scilab/spi_read.sci | 938c6214056aa8f3b134d48196a788fae9248ff5 | [] | no_license | YSBF/flight_control | 1cfef21947c9497659eea3cf631b4de207a0a851 | fc74021c2bd62819ea4f637b45936ab2edf9e7af | refs/heads/master | 2020-04-15T21:47:09.796455 | 2018-06-07T21:28:29 | 2018-06-07T21:28:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 123 | sci | spi_read.sci | function data = spi_read(addr,bytes)
r = ftdi('SPI',[bitand(addr,127),zeros(1,bytes)]);
data = r(2:bytes+1);
endfunction
|
8c9b53fc6922a0ecec06917d1440b870730c1bf4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2207/CH8/EX8.18.3/ex_8_18_3.sce | bbf3a66fddf5868ddfe7cf0eeb7800cee215d186 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,220 | sce | ex_8_18_3.sce | //Example 8.18.3: alphas,speed and delay angle
clc;
clear;
close;
//given data :
format('v',7)
v1=208;//
vsrms=v1/sqrt(3);//
n=1000;//rpm
w=n*(%pi/30);//in rad/s
ang=0;//
ef=((3*sqrt(3)*sqrt(2)*vsrms*cosd(ang))/%pi);//in volts
rf=140;//in ohms
If=ef/rf;//in amperes
t=120;//N-m
kv=1.2;//
ia=(t)/(kv*If);//in amperes
eg=... |
d152d773e5b52b4f4dd8e31eaba64b76a1b83035 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2399/CH2/EX2.5.2/Example2_5_2.sce | 85517bf99433b583c1946815dc9b54bfa531e581 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 612 | sce | Example2_5_2.sce | // Example 2.5.2
clc;
clear;
delta = 1.2/100; // Relative refractive difference index
n1=1.45; // Core refractive index
NA= n1*sqrt(2*delta); //computing numerical aperture
Acceptance_angle = asind(NA); //computing acceptance angle
si = %pi * NA^2; //computing solid acceptance angle
... |
98a4b8485fecaa2552284cfdf70cbd4a26731324 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1061/CH5/EX5.1/Ex5_1.sce | 555e416b71b354966c9bef7b44958b76e55940e4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 345 | sce | Ex5_1.sce | //Ex:5.1
clc;
clear;
close;
t=0.1*10^-6;// pulse broading in sec
d=12;// disance in km
B=1/(2*t);// max bandwidth MHz
ds=t/d;// dispersion in ns/km
bl=B*d;// bandwidth length product
printf("The max bandwidth =%d MHz", B/10^6);
printf("\n The dispersion =%f ns/km", ds*10^9);
printf("\n bandwidth length produ... |
239dc255667f9ce64f6250b3d8630f468c88c01b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1544/CH4/EX4.13/Ch04Ex13.sce | 583fbebcd84948517526e27a1d99ce611d36e177 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,205 | sce | Ch04Ex13.sce | // Scilab code Ex4.13: Pg 127-128 (2008)
clc; clear;
l_A = 0.25; // Mean length of cicuit A, m
l_B = 0.15; // Mean length of cicuit A, m
A_A = 11.5e-04; // Cross-sectional area of circuit A, metre-square
A_B = 12e-04; // Cross-sectional area of circuit ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.