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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dbe0107c364bbdec781ba6624d9349009292eafd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2153/CH3/EX3.5/ex_3_5.sce | e1c7d58d40eb63b992e38ba92aade2200abfc2eb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 368 | sce | ex_3_5.sce | //Example 3.5: miller indices
clc;
clear;
close;
//given data
x1=1;//
x2=1;//
x3=0;//
h1=1/x1//
h2=1/x2;//
h3=%inf;//
disp("Miller indices of the plane (110) are: "+string(h1)+","+string(h2)+","+string(h3))
x11=1;//
x21=1;//
x31=1;//
h11=1/x11;//
h21=1/x21;//
h31=1/x31;//
disp("Miller indices of the plane (111) are : ... |
b355388cadc08801b5e5ef65043c6e966350c2cd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2240/CH32/EX31.4/EX31_4.sce | 33f61e938efa1b855aeb885695b71e7821cfbc83 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 595 | sce | EX31_4.sce | // Grob's Basic Electronics 11e
// Chapter No. 31
// Example No. 31_4
clear; clc;
// Calculate the following quantities Pl, Pcc & percent efficiency
// Given data
Rl = 8; // Load Resistor=8 Ohms
Vopp = 50; // Output Voltage(p-p)=50 Volts(p-p)
Vcc = 30; // Supply Voltage(Collec... |
12bb791d96296eb4df16f9e57128481591c666c2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /149/CH1/EX1.25/ex25.sce | adcc38d188590d01a3208b550f3875048b77b3b4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 258 | sce | ex25.sce | clear
clc
xset('window',3)
xtitle("My Graph","X axis","Y axis")
x=linspace(0,3,30)
y1=-sec(x)
y2=cosh(x)
plot(x,y1,"o-")
plot(x,y2,"+-")
legend("-sec(x)","cosh(x)")
disp("from the graph,it is clear that the point of intersection is nearly x=2.3 ") |
e8ea4be1cad1525c4be42c85871fe46824998440 | 449d555969bfd7befe906877abab098c6e63a0e8 | /929/CH13/EX13.8/Example13_8.sce | ea67bcd689462d66ef2b2ee6e6ba6addec1eb00f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 906 | sce | Example13_8.sce | //Example 13.8
clear;
clc;
fOmin=1*10^6;
fI=1*10^3;
fOmax=2*10^6;
Nmin=fOmin/fI;
Nmax=fOmax/fI;
f0=(fOmin+fOmax)/2;
fR=f0/2;
vEmax=3.9;
vEmin=1.1;
Ko=(2*%pi*2*fR)/(vEmax-vEmin);
R1=28*10^3;
R2=287*10^3;
C=110*10^(-12);
VDD=5;
Kd=5/(4*%pi);
Kv=10^4;
Nmean=sqrt(Nmi... |
7739f91a92341448b38b18b4c3bae1915f182649 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH25/EX25.18/Ex25_18.sce | 57dd880fdca49616ad53101b209afbda88796bb7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 325 | sce | Ex25_18.sce | clear
//Given
T=30.0
//Calculation
//
l=0.693/T
T1=1/l
t=log(4)/l
t1=log(8)/l
//Result
printf("\n (i) average life is %0.4f /day",l)
printf("\n (ii) The time taken for 3/4 of the original no. to disintegrate is %0.2f days",T1)
printf("\n (iii) Time taken is %0.0f days",t)
printf("\n (iv) Time taken is %0.0f days"... |
e4536651189421b5e4a4a6e191f16692c91518eb | 449d555969bfd7befe906877abab098c6e63a0e8 | /2792/CH9/EX9.10/Ex9_10.sce | 5d86ffe8803a433c4d7562b9c629d2306466ee31 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,254 | sce | Ex9_10.sce | clc
kbT = 0.026
disp("kbT = "+string(kbT)+"eV") //initializing value of kbT at 300K
apsilen = 11.9*8.85*10^-14
disp("apsilen = "+string(apsilen)+"F/cm") //initializing value of relative permitivity
e = 1.6*10^-19
disp("e= "+string(e)+"C")//initializing value of charge of electron
Na=2*10^16
disp("Na = "+string(... |
2a34d3dd5135e0618021dddad6a2c5de35da26b2 | abd7728083df51a785c94e61999237380b32c4f8 | /examples/Presentation Packs/Cognitive Psychology Experiments III (Version 3)/Vigilance/Scenarios/Vigilance.sce | 0029a2ae34025559e333faaf7e33f8361ed5bea2 | [] | no_license | LCTO-TLCO/UAVpresentation | 93b0c0e0eb123b550218bbae4e0bb1db8c30cb5e | 83e0f22cfdc2b7172bf0b90a9a14ddf77e6ccf2a | refs/heads/master | 2023-07-25T14:03:39.874916 | 2021-09-07T07:19:38 | 2021-09-07T07:19:38 | 301,918,691 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 17,061 | sce | Vigilance.sce | # -------------------------- Header Parameters --------------------------
scenario = "Vigilance";
write_codes = EXPARAM( "Send ERP Codes" );
default_font_size = EXPARAM( "Default Font Size" );
default_background_color = EXPARAM( "Default Background Color" );
default_text_color = EXPARAM( "Default Font Color" );
defa... |
cb42d3344cc29a31d9c63a60b6803986b3f8132d | df9b25ceab5916f0a9256bce2d326a82f8daa2b8 | /app/public/views/home.sce | 151e46e2c57fa50694205e8a0b21434f048ed0b9 | [] | no_license | TheBrenny/SAD-assignment2 | 6625611ebde9619ca45bdb7996ef51a653868059 | 1f2b247c275b2d3327e58b8752d3e2e5a0cc5823 | refs/heads/master | 2023-01-21T16:46:45.535129 | 2020-11-02T01:22:18 | 2020-11-02T01:22:18 | 297,238,799 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 675 | sce | home.sce | [[i= partials/header ]]
<pre>
✅ Add a student to the DB
🔄 Record attendance (present in backend - UI not designed)
🔄 Record activity completed (present in backend - UI not designed)
✅ Search for students
✅ By Name
⬛ By Student number
⬛ By Age
⬛ By Activities Completed
⬛ By Activ... |
98fdf873b3db41ffea6118171c338a5e2b8fac94 | 4be0defdbe24271cce8f61cece32e7a4b15c65af | /signal_s1/ldussouc_tdimage/ldussouc.sce | e75cc9457c06346f00317fffcf3958551d0194d2 | [] | no_license | imac2018/tds | 2c41830e26435bb2b8c4a40b3700c9f166bba4dc | 8712438b81088d2f2d9c691b3c689e0926c597f5 | refs/heads/master | 2020-05-30T07:19:34.709677 | 2017-05-24T09:42:23 | 2017-05-24T09:42:23 | 69,675,399 | 2 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 1,094 | sce | ldussouc.sce | y = imread("M:\Documents\c++\tds\signal_s1\ldussouc_tdimage/koala.jpg")
y_mono = y(:,:, 1)
function ret = moyenneur(img)
ret = img
for i = [2:1:299]
for j = [2:1:299]
moyenne = img(i,j) /9 + img(i+1,j) /9 + img(i-1,j) /9 + img(i,j+1) /9 + img(i,j-1) /9 + img(i-1,j-1) /9 + img(i+1,j+1)... |
1c9f3aaa580acf5989dee04be1400bc0a57376dc | 449d555969bfd7befe906877abab098c6e63a0e8 | /3685/CH8/EX8.6/Ex8_6.sce | e035ba4f858f296d0abe3f2cf79eabf96a791e5c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,001 | sce | Ex8_6.sce | clc
T1_ = 80 // Initial temperature of air in degree Celsius
T2_ = 5 // Final temperature of air in degree Celsius
V2 = 2 // Assumed final volume
V1 = 1 // Assumed initial volume
P0 = 100 // Final pressure of air in kPa
P1 = 500 // Initial pressure of air in kPa
R = 0.287 // Gas constant
cv = 0.718 // Specifi... |
98c54a99133db66d1372de3e395c1467a1c305ab | 449d555969bfd7befe906877abab098c6e63a0e8 | /1736/CH1/EX1.4/Ch01Ex4.sce | e45d0ae38eac0887e8add1ee9b924c7ba1f01bad | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 894 | sce | Ch01Ex4.sce | // Scilab Code Ex1.4 : Page-17 (2006)
clc; clear;
c_by_a_ratio = 1.633; // Ideal c/a ratio
A = cell(2,4); // Declare a cell
// Assign values to the elements of the cell from the table
A(1,1).entries = 'Mg';
A(2,1).entries = 'Cd';
A(1,2).entries = 5.21;
A(2,2).entries = 5.62;
A(1,3).entries = 3.21;
A(2,3).e... |
732197fd65c8bdec132001146f96ec85d5eec244 | 683d2599aa2be1a5f74b928d545b20e7ea656cd1 | /microdaq/macros/microdaq_macros/mdaq_hs_ai_init.sci | 1835fcc1edd367624a77cc9a0cf799a0f1cecbfe | [
"BSD-3-Clause"
] | permissive | pj1974/Scilab | 5c7fb67d5cae5ac0cdf78e3dd66b97ba50f9fc95 | cd54f1bd8502d6914ad6ff5271ca0e6e3d323935 | refs/heads/master | 2020-12-25T17:12:56.934984 | 2015-10-06T17:16:11 | 2015-10-06T17:16:11 | 41,862,822 | 0 | 0 | null | 2015-09-03T14:00:56 | 2015-09-03T14:00:56 | null | UTF-8 | Scilab | false | false | 319 | sci | mdaq_hs_ai_init.sci | function mdaq_hs_ai_init(link_id)
if link_id < 0 then
disp("Wrong link ID!")
return;
end
result = call("sci_mlink_hs_ai_init",..
link_id, 1, "i",..
"out",..
[1, 1], 2, "i");
if result < 0 then
mdaq_error(result)
end
endfunction
|
5f6565ae2160d9119c3128c064663cd645f9bedb | 449d555969bfd7befe906877abab098c6e63a0e8 | /2660/CH2/EX2.17/Ex2_17.sce | 36df9be0ffcf302c9bcc45a375b78299b386ff76 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 621 | sce | Ex2_17.sce | clc
// from figure 2.75 (a)
r1 = 30 // radius in mm
t = 10 // thickness in mm
h1 = 300 // height in mm
ir1 = r1-t // inner radius of bends in mm
L1 = h1-(ir1+t) // mm
alpha1 = 90 // degree
r2 = 2*t // mm
k = 0.33*t // mm
L2 = alpha1*2*%pi*(r2+k)/360 // mm
w = 200 // mm
L3 = w-2*(t+ir1)// mm
L4 = L2 //mm
h... |
1db0fc7e455d9e4cce0cf2d55c31d09ddf1f7591 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3850/CH31/EX31.3/Ex31_3.sce | 13673936d4388812d0a7d83a3e512735103551bc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex31_3.sce |
//To Calculate the Capacitance of a parallel plate capacitor
//Example 31.3
clear;
clc;
a=20*10^-2;//Length of Side of Parallel Plate Capacitor
A=a^2;//Area of the Capacitor Plate
d=1*10^-3;//Separation between the two plates
e0=8.85*10^-12;//Permitivity in farad/meter
C=e0*A/d;//Formula for fi... |
8d2f964ee1d03e0b860ed01fa5b965c0ac38a0b0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3733/CH17/EX17.5/Ex17_5.sce | 0ee28a1b9e37aa8562ce37463e2945e00c9e1db4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,037 | sce | Ex17_5.sce | // Example 17_5
clc;funcprot(0);
//Given data
T_s=56;// Temperature of steam entering the condenser in °C
T_a=46;// Temperature at the air pump suction in °C
P_b=76;// The barometer reading in cm of Hg
Q=90;// The discharge of dry air pump in m^3/min
R=287;// J/kg.k
//Calculation
//(a)
//From steam tables,a... |
0cf05633cfbfc84b3b351eb825b0ea16acadb30b | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/1.1/Unix/scilab-1.1/macros/metanet/concomp.sci | 462a9a6cd40b46e8636b075b74a684ca4270a4e5 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 107 | sci | concomp.sci | function ns=concomp(i,g)
[lhs,rhs]=argn(0), if rhs==1 then g=the_g, end
[l,nc]=connex(g)
ns=concom(i,nc,g)
|
72286673557c9e59b4308c38a7980c5fb258a2f6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1247/CH6/EX6.15/example6_15.sce | 0194f7e1028feeaca3af58e4aac658c5056a9bb0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,021 | sce | example6_15.sce | clear;
clc;
// Stoichiometry
// Chapter 6
// Stoichiometry and Unit Operations
// Example 6.15
// Page 385
printf("Example 6.15, Page 385 \n \n");
// solution
//basis 1kg of dry air entering the air washer
//from fig 6.15
H1 = 11.8 //g/kg dry air
H2 = 17.76 //g/kg dry air
H = H2-H1 // moisture... |
c6e6a395c3bc7e01ac318fed75dac752f1f88cda | 449d555969bfd7befe906877abab098c6e63a0e8 | /1691/CH2/EX2.6/exmp2_6.sce | 21b3f66c30e444ca1c4be4c8f5721df3dfb9d231 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 470 | sce | exmp2_6.sce | //exmaple 2.6
clc
disp("The circuit is Wien bridge oscillator using op-amp. The gain of the op-amp is")
a=1+3
disp(a,"A = 1 + R3/R4 =")
disp("So A > 3")
disp("This satisfies the required oscillating condition. The feedback is given to non-inverting terminal ensuring the zero phase shift. Hence the circuit will w... |
71aadcbab4a844a95fbb59781c7019d9a5123818 | 449d555969bfd7befe906877abab098c6e63a0e8 | /767/CH2/EX2.2.2/CH02Exa2_2_2.sci | 5185c7810b19bc5d60e4c3af8478a5d9b5bd5d89 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,569 | sci | CH02Exa2_2_2.sci | // Scilab code Exa2.2.2 To calculate the difference in coulomb energy and nucleons' mass difference for mirror nuclei and show in agreement with actual mass difference Page 67 (2011)
// Calculation of coulomb energy for mirror nuclei : N-7 and O-8
// For N-7 nucleus
a_c = 0.7; // Coulomb energy constant, MeV
Z_N ... |
388eb2136606dfc4486c82bcb07fe7faa26f1466 | 449d555969bfd7befe906877abab098c6e63a0e8 | /812/CH12/EX12.03/12_03.sce | 23bf28dac64ea6d3e8ec50cacde42165848b458b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 767 | sce | 12_03.sce | //mass and area//
pathname=get_absolute_file_path('12.03.sce')
filename=pathname+filesep()+'12.03-data.sci'
exec(filename)
//Saturation pressure(in psia):
p0=p1*(1+(k-1)/2*M1^2)^(k/(k-1))
//Checking for choking:
x=pb/p0;
if(x>0.528)
//Not choked
else
//choked
end
//As there is choking:
Mt=1;
//Veloci... |
3c425cd2f926ba4a7142f594aa383ddb56fd584e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1208/CH1/EX1.4/Exa4.sce | 893e745999284db2212815884202f31e4fddb565 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 305 | sce | Exa4.sce | //Exa4
clc;
clear;
close;
//given data :
Vo=500;//in Rs
r=16;//in % per annum
i=r/100;
n=5;//in years
//interest is calculated in quarterly basis
m=4;
//formula Vn=Vo*(1+i/m)^(m*n)
Vn=Vo*(1+i/m)^(m*n)
disp(Vn," The amount will be(in Rs.) : ")
//Note: answer given in the book is not accurate |
0fcc34b258b2afe50750fe1efb11c547d228ec93 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1847/CH1/EX1.10/Ch01Ex10.sce | 6d516d389e0fa4ae3cc53f8c1c9300e43f58a687 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ch01Ex10.sce | // Scilab Code Ex1.10: Page-1.8 (2009)
clc; clear;
m = 1.67e-027; // Mass of the proton, kg
c = 3e+08; // Speed of light, m/s
v = 1/20*c; // Velocity of the proton, m/s
h = 6.626e-034; // Planck's constant, Js
lambda = h/(m*v); // de Broglie wavelength of the neutron, m
printf("\nThe de Br... |
0d7d7ae85af6473fdaba9d03ff4717b70c0f23b2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3446/CH6/EX6.6/Ex6_6.sce | 2a311c759e3d97c0659933b6bb7e99e87e125cc2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,045 | sce | Ex6_6.sce | // Exa 6.6
// To calculate capacity and spectral efficiency of the DS-CDMA system.
clc;
clear all;
nb=0.9;//bandwidth efficiency
nf=0.45;//frequency reuse efficiency
Cd=0.8; //capacity degradation factor
Vf=0.4;//voice activity factor
Eb_I0=7; // desired energy-to-interference ratio in dB
L=1;// efficiency... |
d06e88fd6b68fa0dda7b2f30a7d2565d0a719e4c | 3ce792f7690822183802ad8d56e9e15e620aac2f | /L2q1.sce | a202e54a80534cc851ce38a309234a82204fd557 | [] | no_license | ruhi2001/Problem_sheet2_EE324_codes | 2da2b07ac2cf64f012d2f5a01bb448471fa45e4d | 0c678d0ac115d3bbd556ad6b1fd5fc5f4f2767d1 | refs/heads/main | 2023-02-27T15:39:49.122724 | 2021-01-24T13:29:23 | 2021-01-24T13:29:23 | 332,431,794 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 783 | sce | L2q1.sce | s=poly(0,"s")
//roll no. = 18d070046, esha
G1 = 46/(s+5)
sys1 = syslin("c",G1)
disp(G1)
//q1b
t = 0:0.01:5
y = csim("step",t,sys1)
z = 9.016
plot2d(t,y)
xlabel("t")
ylabel("y")
title("Step Response")
xpts = [0 5];
ypts = [9.016 9.016];
plot(xpts, ypts);
xpts = [0.2 0.2];
ypts = [0 10];
plot(xpts, y... |
fadd293c37456050533bbb63b159c707a5a0b2c2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1523/CH3/EX3.17/3_17.sce | 1febbb4e43cecf09223f5dd54c59792ac32d0028 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 925 | sce | 3_17.sce | //Network Theorem 2
//pg no 3.18
//example 3.17
disp("removing the 3 Ohm resistor from the network");
disp("Applying KVL to mesh 1");
disp("11*I1-9*I2=50");....//equation 1
disp("Applying KVL to mesh 2");
disp("-9*I1+18*I2=0");....//equation 2
A=[11 -9;-9 18];//solving the equations in matrix form
B=[50 0]'
... |
6e1313f55fcc6c966a9665d57fb77b1391f4f689 | 449d555969bfd7befe906877abab098c6e63a0e8 | /587/CH4/EX4.3/example4_3.sce | 8de8e73d6c38ba77327a66dee06158fd9e644615 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,016 | sce | example4_3.sce | clear;
clc;
//Example4.3[Boiling Eggs]
//Given:-
T1=5;//Initial temperature of egg[degree Celcius]
T2=95;//Temperature of Boiling Water[degree Celcius]
h=1200;//Convection heat transfer coefficient of egg[W/m^2.degree Celcius]
r=0.025;//Radius of egg[m]
T3=70;//Final temperature attained by centre of egg[degr... |
3c4feea5394f4194a118169d50cfee56c19164fd | 449d555969bfd7befe906877abab098c6e63a0e8 | /3689/CH6/EX6.17/6_17.sce | ec9f7fb232cfd9a113f12ea14887ba99f2e7a37c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 6_17.sce | ////Variable Declaration
T = 298.15 //Std. Temperature, K
P = 1.0 //Initial Pressure, bar
[Hm0,Sm0] = (0.0,154.8)
[Sm0H2,Sm0O2] = (130.7,205.2)
dGfH2O = -237.1 //Gibbs energy of formation for H2O(l), kJ/mol
[nH2,nO2] = (1,1/2)
//Calculations
Gm0 = Hm0 - T*Sm0
d... |
4ef0f6dd72ef2dc3a4ae1d4099cf699b99ad6cab | 449d555969bfd7befe906877abab098c6e63a0e8 | /564/DEPENDENCIES/5_6data.sci | 16e25e8ada9269dc4befd87518f62b4cd01b85ee | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 32 | sci | 5_6data.sci | r=1000;//in mm
M0=1000;//in N.mm |
5937838563b1e28b11c7a7678114086bba442092 | 449d555969bfd7befe906877abab098c6e63a0e8 | /343/CH2/EX2.4/ex2_4.sce | d91003de30482422e99a34aae6ce1ea617fb01ee | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 152 | sce | ex2_4.sce | function y=f(t),y=20*sin(t),endfunction //defining the voltage function
T=2*%pi;
Res=intg(0,%pi,f)/(T);
disp("Volts",Res,"Average voltage value"); |
407da04d0b1281679c7764b2a17b4fb5d0fd0ed4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3537/CH2/EX2.22/Ex2_22.sce | 0886d74575f8b8cefd92f929fd1089949aa30972 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 426 | sce | Ex2_22.sce | //Example 2_22
clc();
clear;
//To calculate slit width
lemda=6000 //units in angstrom
x=4.2 //units in millimeters
x=4.2*10^-3 //units in meters
D=60 //units in centimeters
D=60*10^-3 ... |
d28fbb92dfeb69484761ae6ce4452b2062faa5ff | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH18/EX18.16/18_16.sce | 0e1b7a81adabbf067612e4c496fe9a8bb2b9f242 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 279 | sce | 18_16.sce | //ques-18.16
//Calculating increase in entropy
clc
v1=2.8;//volume of O2 (in L)
v2=19.6;//volume of H2 (in L)
n1=v1/22.4; n2=v2/22.4;//(in moles)
x1=n1/(n1+n2); x2=n2/(n1+n2);
S=-8.314*2.303*(x1*log10(x1)+x2*log10(x2));
printf("The increase in entropy is %.3f J/K.",S);
|
1d6c1487621881c1f6bab5372f78f80b60d1036a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1847/CH2/EX2.61/Ch02Ex61.sce | 2c35a0cb2ffa22f27aeed9fcc12906d7c0dcb3ae | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 595 | sce | Ch02Ex61.sce | // Scilab Code Ex2.61:: Page-2.48(2009)
clc; clear;
R1 = 200; // Radius of curvature of the convex surface, cm
R2 = 250; // Radius of curvature of the concave surface, cm
lambda = 5500e-008; // Wavelength of light used, cm
n = 15; // Order of interfernce Newton ring
// As r_n^2*(1/R1-1/R2) = (2*n-1)*lam... |
0ab6a048bbbbc09e8e99de717757ee407c16196f | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/load.man.tst | b53dffdcf5645c9c9cdee1b0698b8fe4b4af3c6b | [
"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 | 102 | tst | load.man.tst | clear;lines(0);
a=eye(2,2);b=ones(a);
save('vals.dat',a,b);
clear a
clear b
load('vals.dat','a','b');
|
66579969c4002d743b566f1e7f7b7ff3e96f4a03 | 449d555969bfd7befe906877abab098c6e63a0e8 | /830/CH10/EX10.5.2/FIR_INTERPOLATION_5.sce | 1720e5155358660a7f52799236041e41fcdd5a5c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,242 | sce | FIR_INTERPOLATION_5.sce | //Graphical//
//Example 10.5.2
//Interpolation by 5, Filter Length = 30
//Cutoff Frequency Wc = %pi/5
//Pass band Edge frequency fp = 0.1 and a Stop band edge frequency fs = 0.16
// Choose the number of cosine functions and create a dense grid
// in [0,0.1) and [0.16,0.5)
//magnitude for pass band = 1 & stop ba... |
821fc0f76579bd4633b40364f07f8a26830e866a | 449d555969bfd7befe906877abab098c6e63a0e8 | /845/CH3/EX3.1/Ex3_1.sce | cc74f2226b24b736d0a4ecab4d9d989cf7df50f4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 568 | sce | Ex3_1.sce | //Example 3.1
clc
clear
A = [2 3 -1; 4 4 -3; -2 3 -1]; //Coefficient Matrix
B = [5; 3; 1]; //Constant Matrix
n = length(B);
Aug = [A,B];
// Forward Elimination
for j = 1:n-1
for i = j+1:n
Aug(i,j:n+1) = Aug(i,j:n+1) - Aug(i,j) / Aug(j,j) * Aug(j,j:n+1);
end
end
// Backward Substit... |
d637c98431311ee4117b8cc6fb7742ee3fc915f8 | 91bba043768342a4e23ee3a4ff1aa52fe67f7826 | /cs/142/2/tests/test16.tst | 14d88459654253589dfc63a1b7979b1fcb166aba | [] | no_license | MaxNanasy/old-homework | 6beecc3881c953c93b847f1d0d93a64ec991d6de | 48b7997a49a8f111344f30787c178e1661db04bd | refs/heads/master | 2016-09-08T04:37:44.932977 | 2010-03-02T00:48:59 | 2010-03-02T00:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 63 | tst | test16.tst | type t = array 100 of array 100 of array 100 of int;
main() {} |
83bb5e145ba5240c59b7f3992855d3bf6f4435f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /671/CH6/EX6.12/6_12.sce | 6316ff84b54276a479e9e21e1be9fdad0fa03325 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 311 | sce | 6_12.sce | V=400
w=2*50*%pi
P=25000
pf1=0.7
theta1=acos(pf1)
Il1=P/(sqrt(3)*V*pf1)*exp(-%i*theta1)
Ip1=Il1/sqrt(3)
pf2=0.85
theta2=acos(pf2)
Il2=P/(sqrt(3)*V*pf2)*exp(-%i*theta2)
Ip2=Il2/sqrt(3)
Ic=Ip2-Ip1 ////calculation mistake in the book at this step
C=real(Ic/(V*w*%i))
disp(C) |
f10db10df359292c35af5047ec06e6d4d0dd6ce9 | f934e15695c77d0a1015c230c5ed65c4f16a2425 | /bp.sce | 6617fb6bad4d8349357e7f71aa168575f0f1c00a | [] | no_license | manasdas17/Scilab-for-Signal-Processing- | 6efc5adb507243c7302f7b4f3f12d12060112038 | 5f6e6ce941c0a11212a83674b5d35d97a2cf4396 | refs/heads/master | 2021-01-10T07:49:58.006357 | 2016-04-07T07:45:26 | 2016-04-07T07:45:26 | 55,673,271 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 249 | sce | bp.sce | //By Manas,FOSSEE,IITB
hz=iir(3,'bp','ellip',[.15 .25],[.08 .03]);
[hzm,fr]=frmag(hz,256);
plot2d(fr',hzm')
xtitle('Discrete IIR filter band pass);
q=poly(0,'q'); //to express the result in terms of the delay operator q=z^-1
hzd=horner(hz,1/q)
|
bf3e56b0f51784d064daa31862d1c548c280e944 | 449d555969bfd7befe906877abab098c6e63a0e8 | /545/CH5/EX5.3/ch_5_eg_3.sce | a72e58cb1a13c34cade4961015da8e0f76436967 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 571 | sce | ch_5_eg_3.sce | clc
disp("the solution of eg 5.3 -->Discretization in 1-D space");
//given the source term f(x)=4x^2-2x-4
//given eqn d2y/dx2-2y=f(x)
y_1=0
y_4=-1
delta_x=1/3 //since given 3 parts and length=1
for i=0:3,j=0:delta_x:1;
end
//given to divide the line in 3 parts
//at node 2
//y_3-2*y_2
function d=fx... |
0e3ae318985c4fbba8c9380391ff8cbb4c099601 | c9e04373e33a2721547c7ae2be20ee84f115be1c | /evaluationData/tempcostrevenue.sce | 5d1d7bc29144a6f9a24be707358cb8a137286f03 | [] | no_license | lspxian/junsp | f944ce163267608cb9cdb939a0ac809f724fb396 | ca1571bbc30e6a9a183fa8d675567e169288acf4 | refs/heads/master | 2021-01-23T14:10:34.141815 | 2017-10-06T17:03:10 | 2017-10-06T17:03:10 | 34,068,408 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 116 | sce | tempcostrevenue.sce | tempcost= read("tempCostRevenue.txt",-1,2);
time = tempcost(:,$-1);
tempcost= tempcost(:,$);
plot2d(time,tempcost);
|
73a1368ae3c345145c6f83513e5afe44b6e615a3 | 5523237709a6b6082f723934030bd36314a3b267 | /frontend/animation.sce | 2f73f65225e71ae4b1f641195f538ee24050e8a9 | [] | no_license | mode777/retrolove | 54d8bd852ed67f4b6c27cdee63f35a5195fadc8c | 4626062c98797f3d4b3c7510ce4d5de1cf3b66e2 | refs/heads/master | 2021-06-01T22:36:42.600874 | 2017-12-18T09:40:50 | 2017-12-18T09:40:50 | 19,409,879 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,311 | sce | animation.sce | local scene = {}
local cfg = require("frontend/config")
function scene:onLoad()
local color_bg, color1, color2 = cfg.bgColor, cfg.color1, cfg.color2
love.graphics.setBackgroundColor(unpack(color_bg))
local sw,sh = love.window.getDimensions()
local layer = cine.layer.new()
local sprite = cine.sprite... |
711930bbcc1257a3b59725b5e532786cf9d3deab | 449d555969bfd7befe906877abab098c6e63a0e8 | /55/CH11/EX11.4/11ex4.sci | 85aaa29d3fcfa2cae47cdf592277a3a563ee6792 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 206 | sci | 11ex4.sci | disp('Divisibility and Primes')
x=50;
disp('prime numbers less than 50 are')
y=primes(x)
disp('the prime factorisation of 21,24 and 1729 respectively are:')
k=factor(21)
l=factor(24)
n=factor(1729) |
fdaabd661431db866087912c916c8e13d1c11bbd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2321/CH7/EX7.10.1/EX7_10_1.sce | 2092864e6ecdc02efb0e9a23627cb1d428f41367 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | EX7_10_1.sce | //Example No. 7.10.1
clc;
clear;
close;
format('v',6);
A=1;//m²(Area of loop)
N=400;//no. of turns
Q=100;//Quality factor
theta=60;//degree(angle)
Erms=10;//µV/m(field strength)
f=1;//MHz(tuned frequency)
c=3*10^8;//m/s////Speed of light
lambda=c/(f*10^6);//m(Wavelength)
Vr=Q*2*%pi*A*N*cosd(theta)*Erms*10^... |
ce51f00b11b202514250653a83352fd6bf8c918c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2087/CH10/EX10.3/example10_3.sce | e0a24bb35d0087554518cfab169362029f364db5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 631 | sce | example10_3.sce |
//example10.3
//calculate factor of safety for slope
clc;funcprot(0);
//given
x=4; //given scale
An=14.4; //area of N rectangle
At=6.4; //area of T rectangle
Au=4.9; //area of U rectangle
L=12.6; //length of arc;
gamma_m=19; //unit weigth of soil
gamma_w=9.81; //u... |
01f5dfccae0146ccd1da8f51296ea92ed011f495 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3547/CH2/EX2.8/Ex2_8.sce | a35a8ec89764e4672c9f11f6c1f89a68350023de | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 885 | sce | Ex2_8.sce | // Example no 2.8
// To find the total loss and output power in mW and dBm in fiber
// Page no. 72
clc;
clear;
// Given data
losscoe=0.046; // Loss coefficient in km^-1
L=80; // Length of fiber in km
PindBm=3; ... |
d040693851de21341b9a1df2fac75cd609c58ce6 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4.1/macros/scicos/do_color.sci | 4d4b7e54b2de7f3ef041806d6f06380dc660451b | [
"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 | 947 | sci | do_color.sci | function scs_m=do_color(scs_m)
// do_block - edit a block icon
// Copyright INRIA
while %t
[btn,xc,yc,win,Cmenu]=getclick()
if Cmenu<>[] then
Cmenu=resume(Cmenu)
end
K=getobj(scs_m,[xc;yc])
if K<>[] then break,end
end
o=scs_m(K)
if o(1)=='Link' then
[nam,pos,ct]=o(5:7)
c=getcolor('Choose a color',ct(1... |
e5bc56f087ed90de2096187f9fec95e85147f634 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1913/CH1/EX1.12/ex12.sce | 007619899ef11925688a468ccb2628cd2a12f6b6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 338 | sce | ex12.sce | clc
clear
//Input data
Z=70;//Vaccum gauge reading in cm of Hg
Pa=101.325;//Atmospheric pressure in kPa
d=13.6*10^3;//Density of Hg in kg/m^3
g=9.81;//Gravity in m/sec^2
//Calculations
Pv=(d*g*Z)/10^5;//Vaccum pressure in kPa
Pab=Pa-Pv;//Absolute pressure in kPa
//Output
printf('Absolute pressure Pab = ... |
1f310e1d80c89d4cfb17a9d0c1cde62c0814a967 | b32474ae2727233775f44c71edfe1f10b6a3430f | /EliminacaoGaussiana.sci | 1159680e8302b949360639c11d30140c28c37a91 | [] | no_license | lucaslyon96/scilab | 8400b98c25dafa13069dd64bd391c15218323575 | 8fe45fd3bd27ab21490682874f72f9c20c8717e1 | refs/heads/master | 2020-03-18T12:25:20.253687 | 2018-05-24T14:49:08 | 2018-05-24T14:49:08 | 134,725,468 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,652 | sci | EliminacaoGaussiana.sci | function u=EliminacaoGaussiana(a)
[l,c]=size(a)
u=[a]
np=1 //numero do pivo
disp(a)
for n=1:c // numero da coluna a ser escalonada
if np==l+1 then // numero do pivo e menor ou igual ao numero de linhas
break
end
//
if u(np,n)==0 then
for i=np+1:... |
a8b0bfb7d067c283f611c26ca8448453cc92da3e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1514/CH4/EX4.7/4_7.sce | 7c19c81894be0b4b54f8307acdcf09271f8f1e70 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 506 | sce | 4_7.sce | //chapter 4
//example 4.7
//page 112
clear all;
clc ;
//given
Vcc=15;//supply voltage
Vce=5;//collector to emitter voltage
Ic=5;//mA
hfe=100;Vbe=0.7;
//drop across RE & RC
Vrc=Vcc-Vce;
VRC=Vrc/2;
Ve=VRC;
Rc=VRC/Ic;
printf("\nRc=%d kohm,standard value 1 kohm",Rc);
Ie=Ic;
Re=Ve/Ic;
printf("\nRe=%d kohm,... |
48355d9f702f0f1caff8c7d463225370bbd11063 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/tests/examples/ui_observer.man.tst | adf574273664ca6132fa4e6bd930befdbba142e7 | [
"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 | 744 | tst | ui_observer.man.tst | clear;lines(0);
A=diag([3,-3,7,4,-4,8]);
B=[eye(3,3);zeros(3,3)];
C=[0,0,1,2,3,4;0,0,0,0,0,1];
D=[1,2,3;0,0,0];
rand('seed',0);w=ss2ss(syslin('c',A,B,C,D),rand(6,6));
[A,B,C,D]=abcd(w);
B=[B,matrix(1:18,6,3)];D=[D,matrix(-(1:6),2,3)];
reject=1:3;
Sys=syslin('c',A,B,C,D);
N1=[-2,-3];C1=-N1*C;D1=-N1*D;
nw=length(reject);... |
521f1cc52b46e8db3cfab4d68df1fe439115448b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3547/CH9/EX9.2/EX9_2.sce | 089134582ddda648cfdc770d2ef529967aca52fc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 490 | sce | EX9_2.sce | // Example 9.2
// Calculation of the total power at the fiber output.
// Page no 393
clc;
clear;
close;
//Given data
p=0; // Power per channel
fl=0.2; // Fiber loss
f=50; // Wavelength
// The total power at the fiber output.
pc=10^(0.1*p);
tp=pc*11;
tp1=10... |
ddce0de3f3159a50e4db6e514109590092e39e87 | 5c808b0f55fefd29b91c7cb73f2f3a08093c5033 | /Code/Scilab Code/Convert2DIndexTo1D.sci | cbc3538812e51ad256b5a3d410fd12815f01c44a | [] | 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 | 133 | sci | Convert2DIndexTo1D.sci | function OneDIndx = Convert2DIndexTo1D(rowNum, colNum, numberOfCols)
OneDIndx = rowNum * numberOfCols + colNum;
endfunction |
6a8f3d5d31d1b379fe05035c7e63a66dc901b7a0 | 527c41bcbfe7e4743e0e8897b058eaaf206558c7 | /Positive_Negative_test/Netezza-Base-StatisticalFunctions/FLRank-NZ-01.tst | 658a687041f88ba2dfdd603ce518f210b0c56a47 | [] | no_license | kamleshm/intern_fuzzy | c2dd079bf08bede6bca79af898036d7a538ab4e2 | aaef3c9dc9edf3759ef0b981597746d411d05d34 | refs/heads/master | 2021-01-23T06:25:46.162332 | 2017-07-12T07:12:25 | 2017-07-12T07:12:25 | 93,021,923 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 8,331 | tst | FLRank-NZ-01.tst | -- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Netezza
--
-- Copyright (c): 2014 Fuzzy Logix, LLC
--
-- NOTICE: All information contained herein is, and remains the property of Fuzzy Logix, LLC.
-- The intellectual and technical concepts contained herein are proprietary to Fuzzy Logix, LLC.
-... |
7a69d6d00d97f86ebcb0298f507777ab142c338d | 7778eeb8ad33a5ddb1ec9149b6426edcd724a98b | /machine-learning-ex4/ex4/codeSwap.sce | d38e51f9a92031ab17dca6212dbcea33d66c27b3 | [] | no_license | swap2ag/coursera-ML-assignments | ec9ad9c1c1303644476b5dd9c6a99ccb70040e24 | 593565dca6a9a82c851ee0af99a72305f32afb2d | refs/heads/master | 2020-06-19T13:28:57.633218 | 2019-07-13T14:53:06 | 2019-07-13T14:53:06 | 196,726,038 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,222 | sce | codeSwap.sce | clc;
clear;
close;
function g = sigmoid(z)
//SIGMOID Compute sigmoid functoon
// J = SIGMOID(z) computes the sigmoid of z.
g = 1.0 ./ (1.0 + exp(-z));
end
function theta = thetaInit(m,n)
theta = rand(m,n,'normal')
endfunction
function val = sigmoidDiff(net)
val = sigmoid(net).*(1-sigmoid(net))
endfunct... |
e1f6614eba747891bf763707ca583ff686373102 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1919/CH5/EX5.5/Ex5_5.sce | de758a411d228e31b3078b8023b3875c968c4842 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 576 | sce | Ex5_5.sce |
// Theory and Problems of Thermodynamics
// Chapter 5
// Second law of Thermodynamics
// Example 5
clear ;clc;
//Given data
n = 0.6 //n = efficiency of carnot engine
COP_R = 5 //TH = High temperature of reservoir
// To find the energy absorbed from the cold body by the refrigerator for each kJ
... |
ebf6060d10fd8cfcdd2d13a6ac90fe581c7dc2a4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3808/CH2/EX2.16/Ex2_16.sce | 23615d90ae16642ee554ddd8eabc3bf018d84627 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 800 | sce | Ex2_16.sce | //Chapter 02:Basic Structures: Sets, Functions, Sequences, Sums and Matrices
clc;
clear;
matA=[]
mprintf("Enter the dimensions of MATRIX A:")
row=input("Enter the no. of rows:")
col=input("Entet the no.of columns:")
mprintf("Enter the elements:")
for i=1:row
for j=1:col
mprintf('\nInput for Row %d , Colum... |
a3431eb87ede2bb068d7eaaafef3b2b283b3592b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2129/CH4/EX4.12.1/ex4_12_1.sce | b723c4475572c017d39537fd41ad8ae7d54ccd6b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 658 | sce | ex4_12_1.sce | //Exa 4.12.1
clc;
clear;
close;
// Given data
q = 1.6 * 10^-19;// in C
N_D = 10^15;// in electrons/cm^3
N_D = N_D * 10^6;// in electrons/m^3
epsilon_r = 12;
epsilon_o = (36 * %pi * 10^9)^-1;
epsilon = epsilon_o * epsilon_r;
a = 3 * 10^-4;// in cm
a = a * 10^-2;// in m
V_P = (q * N_D * a^2)/( 2 * epsilon);/... |
cb5375768a5ee9cc9392c1b3561fa40662786b9a | 2f14b5754bf00d8f425d930813ec9fbb37443f20 | /Fibo.sce | 10d182c072679ff282f76c7ce2eb645e3c3c98d9 | [] | no_license | sohamkan/Sci-projects | 9f14b01e4937ccf3cf59732fc19d495d566bfaae | 5baf7456498ba0075760095655826b7ddcae471e | refs/heads/master | 2022-11-22T04:03:53.155413 | 2020-07-12T04:31:34 | 2020-07-12T04:31:34 | 278,990,043 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 87 | sce | Fibo.sce | //fibo
clc
s=zeros(1,10)
s(1)=1;
s(2)=1;
for i=3:10
s(i)=s(i-2)+s(i-1)
end
disp(s)
|
e5ccf29549519d42788fe3f029e4da689a6a0835 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2339/CH8/EX8.5.1/Ex8_5.sce | 5ed415f52a78dd614955da46af1a33b29e1ec0fa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 249 | sce | Ex8_5.sce | clc
clear
n=1.2;
P1=1;
P2=6;
Vs=1.5/60;
IP=[n/(n-1)]*[P1*100*Vs]*[((P2/P1)^((n-1)/n))-1];
printf('Indicated Power= %2.1f kW',IP);
printf('\n');
MP=6.55;
Em=IP/MP;
printf('Mechanical Efficiency= %2.1f Percent',Em*100);
printf('\n');
|
36356bd6780bc1b1e87a75c54a6ff91a6326f86f | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH2/EX2.17/17.sce | 22257a89b81849b138b58e57311b9247e835b575 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 216 | sce | 17.sce | clc
T=1.25; //N.m
N=9500;
W1=2*%pi*N*T/1000; //kJ
p=101.3; //kPa
d=0.65; //m
A=%pi/4*d^2; //m^2
L=0.6; //m
W2=p*A*L; //kJ
Wnet=(-W1)+W2;
disp("The net work transfer for the system=")
disp(Wnet)
disp("kJ") |
ec4426a5c606b6b7c599c32958367533ade0251c | 4ebea1be375a38f07d1b8536e25cd91584882389 | /src/test/example017.tst | 967062943bc1765ea5b1255fc83b187c57187330 | [
"MIT"
] | permissive | robertsmeets/rjhg-pl | f5c2d850ba7a5e3daa0d4147357d37a275c7100a | 87721b77f92d5180c34123265fac70dcf54c77a9 | refs/heads/master | 2021-05-22T06:46:14.395448 | 2021-02-21T05:54:35 | 2021-02-21T05:54:35 | 32,521,807 | 1 | 1 | MIT | 2020-05-17T16:48:51 | 2015-03-19T13:07:49 | C | UTF-8 | Scilab | false | false | 55 | tst | example017.tst | false
false
false
true
false
true
true
true
true
false
|
aa4224d309b9bea83cae61a42467525b96e6c652 | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpicscifiles6/Unscaling.sci | 74910ceb2c323c2f9dd1d47ac2ea785e854bdbd2 | [] | no_license | ketpic/ketcindy-scilab-support | e1646488aa840f86c198818ea518c24a66b71f81 | 3df21192d25809ce980cd036a5ef9f97b53aa918 | refs/heads/master | 2021-05-11T11:40:49.725978 | 2018-01-16T14:02:21 | 2018-01-16T14:02:21 | 117,643,554 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 230 | sci | Unscaling.sci | function Out=Unscaling(G)
global LOGX LOGY SCALEX SCALEY;
GLg=[G(:,1)/SCALEX,G(:,2)/SCALEY];
Out=GLg;
if LOGX==1
Out=[10^(GLg(:,1)),GLg(:,2)];
end;
if LOGY==1
Out=[GLg(:,1),10^(GLg(:,2))];
end;
endfunction;
|
ea4168701c4d4badf60ac60f2d179652145f8c26 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3311/CH9/EX9.19/Ex9_19.sce | 583cb654f9f13af6c6cfbc9cec1d41774c56eafc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,183 | sce | Ex9_19.sce | // chapter 9
// example 9.19
// Design a self-commutated invertor circuit and compute output power
// page-608-609
clear;
clc;
// given
f0=3; // in KHz
R=5; // in ohm (load resistance)
L=5; // in mH
Edc=100; // in V (dc source)
// calculate
f0=f0*1E3; // changing unit from KHz to Hz
fr=1.35*f0; // calculation of resona... |
963292c3c1a341d2b5a998cf4eeb341cc76ec39e | 449d555969bfd7befe906877abab098c6e63a0e8 | /2582/CH5/EX5.8/Ex5_8.sce | 84407b96692402dbc71d1d97517432f8e054e313 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex5_8.sce | //Ex 5.8
clc;clear;close;
format('v',5);
//vo/v1=1+R2/R1;//
//For v2/v1 i.e. gain=2, R1 & R2 should be equal
Vpp=10;//V
R1=10;//kohm
R2=10;//kohm
//Avg=1/T*integrate('Vpp*sin(2*%pi*t/T)','t',0,T/2);
Avg=-Vpp/(2*%pi)*[cos(%pi)-cos(0)];
disp(Avg,"Average output voltage(V) : ");
|
b9db646f4a552a93bd0918a01f949cb7388b6e5a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2534/CH2/EX2.7/Ex2_7.sce | 6ad62d0548b58dab04b556d8305ee33a430103de | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 382 | sce | Ex2_7.sce | //Ex2_7
clc
C = 0.2*10^-6
f1 = 1.0*10^3
f2 = 50
disp("C = "+string(C)+"F")//capacitance
disp("at... f = "+string(f1)+"Hz")//frequency
disp("Xc = 1/(2*pi*f*C) = "+string(1/(2*%pi*f1*C))+"ohm")//calculation for capacitive reactance
disp("at... f = "+string(f2)+"Hz")//frequency
disp("Xc = 1/(2*pi*f*C) = "+string(... |
bb5eb7a1fa1309936ecb822526b4b27fd47beecc | 449d555969bfd7befe906877abab098c6e63a0e8 | /26/CH2/EX2.2.7/2_2_7.sce | 3df602ad4427b521c770a09dad1e03537088d0dd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 162 | sce | 2_2_7.sce | disp('the co-efficient matrix is:')
a=[1 2;5 12]
disp(a)
disp('inverse of the matrix is:')
disp(inv(a))
disp('solution is:')
b=[-1;3];
c=inv(a);
disp(c*b) |
fc2187081004f071236969574dcfc59023d94982 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.1/Unix/scilab-2.1/macros/util/g_eye.sci | b4b588b4b27e3466f3c83eaf48739fa8b99ba885 | [
"MIT",
"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 | 336 | sci | g_eye.sci | function x=g_eye(a)
// only to be called by function eye
//!
select type(a)
case 1 then
x=eye(a)
case 2 then
x=eye(a)
case 5 then
[m,n]=size(a)
x=sparse([],[],[m,n])
case 15 then
if a(1)=='r' then
x=eye(a(2));
elseif a(1)='lss' then
x=eye(a(5))
end
case 10 then
[m,n]=size(a)
x=eye(m,n)
else
... |
33fdc1bc47bd9699ff70e53f6dd47b8a23444fbe | c711f1c2ec6f58422bb04ec3b5227f34c623d872 | /visualizacion/func.sce | 9b1667e430636e32432534b0aaf7142cfe4b53a8 | [] | no_license | bleudp/machine-learning | 4150c37242964c79afaeba31ee1388de79204cab | 4281d6aeb32bcfe38c0b681f18b8fb50e4d0560d | refs/heads/master | 2022-03-22T16:31:56.444228 | 2019-12-31T20:16:39 | 2019-12-31T20:16:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 72 | sce | func.sce | function y=f(x)
y = (x^2+5*x+1)
endfunction
x=linspace(-1,8)
plot(x, f)
|
d4f2d774b55e11ba859a149d8f1dcd84a2197bdf | 139d4a83f28a14dc04c48d99a492bec7abcc3229 | /lab3_v8/support.sce | 507be1e28381f7e562ee509251b0ec0532d285c7 | [
"MIT"
] | permissive | s-kostyuk/labs_alg | 0f78d0a5df7b94f9190bc3b45a077fb3e68e74fb | 320902e94d9bfde9d7a13a427b315605929dec17 | refs/heads/master | 2021-01-10T03:54:40.483782 | 2015-12-03T22:52:39 | 2015-12-03T22:56:46 | 44,764,651 | 0 | 2 | null | 2015-12-01T15:07:01 | 2015-10-22T18:20:28 | Scilab | UTF-8 | Scilab | false | false | 833 | sce | support.sce | exec( get_absolute_file_path('support.sce') + "0_bisection.sce", -1 );
exec( get_absolute_file_path('support.sce') + "1_chord.sce", -1 );
exec( get_absolute_file_path('support.sce') + "2_tangent.sce", -1 );
exec( get_absolute_file_path('support.sce') + "3_simple_iter.sce", -1 );
function [ a, b ] = askBorders( fun )
... |
f13b15d03ef329b9f5919dfd4b833cc95a1e445f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2021/CH19/EX19.2/EX19_2.sce | 0b746ef96d24572f733c2cb99a1e396f0a7378cc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 478 | sce | EX19_2.sce | //Finding of vane angle , Work done , Efficiency
//Given
D1=0.6;
D=0.3;
a=30;
b=0.05;
N=1200;
g=9.81;
Hm=75;
Vf=3;
rho=1000;
B1=1;
//To Find
u=(%pi*D*N)/60;
u1=(%pi*D1*N)/60;
Q=%pi*D1*B1*Vf;
a=atand(Vf/u);disp(u1);
Vw1=((u1*tan(%pi/6))-Vf)/tan(%pi/6);
W=(rho*g*Q*u1*Vw1)/g;
W1=W/1000;
E=((g*Hm)/(u1*V... |
0f8afe273c41c8c99b146f92f5f7dc37d76b1135 | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/solar-coupling1/generalhl_shootingmethod/test.sci | 895a4951484844dd4a97bd28107968b098d68724 | [] | no_license | mikeg2105/matlab-old | fe216267968984e9fb0a0bdc4b9ab5a7dd6e306e | eac168097f9060b4787ee17e3a97f2099f8182c1 | refs/heads/master | 2021-05-01T07:58:19.274277 | 2018-02-11T22:09:18 | 2018-02-11T22:09:18 | 121,167,118 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 762 | sci | test.sci | exec('myfunc.sci');
//y=ode("rk",y0,t0,t,f)
//initial condition at r=0
//chidashi
//chii
//final condition at tub wal r=R (tube radius)
//chidashf
//chif
n=200;
tchi(1:n)=zeros(n);
tpi(1:n)=zeros(n);
rw(1:4)=zeros(4);
d... |
8ef109271ccd3a9c571a6c8f433eb5c9d703972d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2330/CH11/EX11.4/ex11_4.sce | 450fcfb1229653b6d732519d9f0c0aad1a243fd2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 297 | sce | ex11_4.sce | // Example 11.4
format('v',5)
clc;
clear;
close;
// given data
h_fe= 120;// unit less
h_ie= 3.5*10^3;//in Ω
r_L= 2*10^3;// in Ω
h_oe= 8.5*10^-6;// in S
h_re= 1.3*10^-4;// unit less
// The voltage gain
A= h_fe*r_L/(h_ie*(1+h_oe*r_L)-h_re*h_fe*r_L)
disp(A,"The voltage gain is : ")
|
8f7714a1a4203a35eca272d0d59214922127121b | 734830c483d7180158343b9b5599994878b8b197 | /make-tests/autograder_make09.tst | a1cf3e5c8f036d8bd3c3bb6f60016e5317a0b7cd | [] | no_license | aykamko/proj61b | b53a3b569f82522144e010505859aa3ab66585bb | 5f6688b70f907107512267712a325f907e5e627b | refs/heads/master | 2021-01-16T22:08:56.235971 | 2013-12-12T09:19:39 | 2013-12-12T09:19:39 | 13,669,280 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 89 | tst | autograder_make09.tst | java -ea make.Main -f make-tests/autograder_make09.mk -D make-tests/autograder_file09 T1
|
1497c7102283bba4cd08c38061bd36a25a504d23 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1367/CH14/EX14.1/14_1.sce | 59d18e05606d2cede24e2c2a93fd7b6ab294030c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 332 | sce | 14_1.sce | //Find relative permeability and Intensity of magnetisation
//Ex:14.1
clc;
clear;
close;
x=1500;//susceptibility
h=2400;//mafnetic field in A/m
u_r=1+x;
disp(u_r,"relative permeability = ");
m=x*h;//in A/m
disp(m,"Intensity of magnetisation (in A/m)");
u_0=4*3.14*10^-7;
b=u_0*u_r*h;//in T
disp(b,"Remanance... |
d5ba2aa60e54d76c59c6f15d5ba872e36a2574c6 | b9117a375dfd4994834bffe24f28414f4599c02e | /test/simple.tst | fc5c6016d992d048bbbafca5acca76c1f9e5b191 | [] | no_license | mdolgun/NLPParser | 2a7e1ab5f820c902ecb7ecd05a90a9caca7fb4bf | 54d8494a8799efb94ff0dfa21c8c46292dd9cb22 | refs/heads/master | 2021-07-16T08:32:55.973580 | 2020-10-17T20:28:51 | 2020-10-17T20:28:51 | 218,727,320 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,656 | tst | simple.tst | ###grammar
S -> NP VP
S -> S PP
NP -> i
NP -> the man
NP -> the telescope
NP -> the house
NP -> NP PP
PP -> in NP
PP -> with NP
VP -> saw NP
###input
i saw the man in the house with the telescope
###pformat
S(
S(
S(
NP(i)
VP(
saw
NP(the man)
... |
901cf578a76299676308f2fb8764f4ef6ba8ac53 | 449d555969bfd7befe906877abab098c6e63a0e8 | /626/CH2/EX2.9/2_9.sce | e84bb02f4f8b238a7d30b5bbe2f0184386affd7a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 707 | sce | 2_9.sce | clear;
clc;
close;
disp("Example2.9")
d=0.2 //diameter in meters.
l=0.2 //length in meters.
Cf=0.005 //average wall friction coefficient.
M1=0.24 //inlet mach no.
gm=1.4 //gamma.
//From FANNO tbale
L1cr=(9.3866*d/2)/(4*Cf);
L2cr=L1cr-l;
//from FANNO table
M2=0.3;
x=2.4956;
y=2.0351;
a=4.5383;
b=3.6191;... |
e52ec924ec597cdad77b164515f5fed654ac56bf | 449d555969bfd7befe906877abab098c6e63a0e8 | /291/CH2/EX2.3d/eg2_3d.sce | 7aab989e144bcc4e46da8c35a3ec4785d998927e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 529 | sce | eg2_3d.sce | germ_free_mice = [158 192 193 194 195 202 212 215 229 230 237 240 244 247 259 301 301 321 337 415 434 444 485 496 529 537 624 707 800];
conventional_mice = [159 189 191 198 235 245 250 256 261 265 266 280 343 356 383 403 414 428 432];
disp (mean(germ_free_mice), "Sample mean for germ-free mice is ");
disp (median(ge... |
dd8c1d96a0cbcb8b6e904ae2806eae8bc9de6179 | 449d555969bfd7befe906877abab098c6e63a0e8 | /43/CH4/EX4.6/ex4_6.sce | dbfd70dda108bb62f407e5ab74ad900624d7d8b5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 96 | sce | ex4_6.sce | clc;
clear;
Wo=2*%pi/3;
n=-8:8;
for i=1:length(n)
x(i)=cos(Wo*n(i));
end
X=fft(x,-1); |
f0b779c22c37215c1ce6762f1c4f562259551f6c | 29778da8b2321b9b111665ee097446f393795813 | /automatique/Td/td5/calculs(quentin).sce | 31bd66d82ba5dd08c041a6d598d177b8d9b29ba7 | [] | no_license | RomainCocogne/Elec3 | 947fe8590fcc084f496e0934c2bda195adb4d33f | 47833a7112d50c6278898ee388044d5364fb482c | refs/heads/master | 2020-04-27T02:23:00.159518 | 2019-08-26T22:29:00 | 2019-08-26T22:29:00 | 173,992,180 | 2 | 0 | null | 2019-05-16T14:59:40 | 2019-03-05T17:37:22 | Jupyter Notebook | UTF-8 | Scilab | false | false | 557 | sce | calculs(quentin).sce | t = linspace(0,1,1000)
p = poly(0,'p')
R=0.8;
L=400E-6;
Kc=20.52E-3;
J=18E-5;
Cr=9.23E-3;
taum=R*J/Kc^2;
taue=L/R;
Krpm=60/(2*%pi);
Kci=1;
Kd=0.001;
Kdrad = Kd*Krpm
Gi = 1;
K1 = Gi*taum/(R*taue + Kci*Gi*taum);
tau1 = taum/(1+Kci*Gi*taum/R/taue);
Gw = J/(4*(0.7)^2*Kc*Kdrad*K1*tau1)
//AI = sysl... |
7a1b050e0dba6208c975d12b2153e769edb6f0ec | 449d555969bfd7befe906877abab098c6e63a0e8 | /764/CH11/EX11.6.b/solution11_6.sce | 8949422e82e7ca535a9b7c5f8ea6dc3b550304ad | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,606 | sce | solution11_6.sce |
//Obtain the path of solution file
path = get_absolute_file_path('solution11_6.sce')
//Obtain the path of data file
datapath = path + filesep() + 'data11_6.sci'
//Clear all
clc
//Execute the data file
exec(datapath)
//Step1: Clutch being brand new, apply uniform-pressure theory
//Consider torque transmission... |
31be6a04f2ef9b527aaa1072d952e3b70781028e | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set6/s_Electrical_Measurements_And_Measuring_Instruments_N._V._Suryanarayana_1376.zip/Electrical_Measurements_And_Measuring_Instruments_N._V._Suryanarayana_1376/CH4/EX4.8/4_8.sci | c346556c242434f9d5a3ff8fb39862ce1f26107f | [] | 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 | 197 | sci | 4_8.sci | errcatch(-1,"stop");mode(2);//4.8
;
Q=100.5;
M=300;
q=100.6;
m=300.25;
r=0.1;
S=0.0045;
X=((M*S/Q)+((r)/(r+m*q))*((M*q/Q)-(m)))*10^6;
printf("Unknown resistance=%.2f micro-ohm",X)
exit();
|
826237d3702228a08a01dc0d84145a45bae6d913 | 449d555969bfd7befe906877abab098c6e63a0e8 | /61/CH7/EX7.3/ex7_3.sce | 4950f6718e0a1862a117d38f25c12e1c903b9904 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex7_3.sce | //ex7.3
I_DSS=9*10^-3;
V_GS_off=-8;
V_GS=0;
I_D=value_of_I_D(9*10^-3,0,-8);
disp(I_D,'Value of I_D for V_GS=0V')
I_D=value_of_I_D(9*10^-3,-1,-8);
disp(I_D,'Value of I_D for V_GS=-1V')
I_D=value_of_I_D(9*10^-3,-4,-8);
disp(I_D,'Value of I_D for V_GS=-4V') |
bd4b8bf050c950b4c5be2e9af7c09226c08c4263 | d03450e9645c09cb7389514ec5d4d8d9c06bdf4d | /Least-Squares Data Fitting/newton.sce | 55f899c2ace3deedb2966427e345d0ff86262c7f | [] | no_license | amiedemmel/Optimization-Projects | 29f3d11950c19f89aa2295d316888e4c6fa36ab4 | bc574f4311d6fc1534e7c4892dbadb52f5e4213f | refs/heads/master | 2021-01-01T05:47:41.682448 | 2015-05-08T15:56:59 | 2015-05-08T15:56:59 | 35,288,132 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 541 | sce | newton.sce | //Newton's Method
//Amie Demmel
//4/1/15
//model to be fitted contained in myfuncn.sci
exec myfuncn.sci;
disp('Newton Method: ')
maxiter=100;
tol=10^-6;
iter=0;
x=input('enter x vector: ');
t=input('time vector: ');
y=input('y vector: ');
[f,g,h]=myfuncn(x,t,y)
h0=h;
titl=[' iter' ' f(x)' ' df(x)/dx1' ' df(... |
41fc2c6553a739d1a627b9c0409d1ab037ced713 | b67defe3c1cae63dd1a79578f840d069568034e6 | /scilab/normalluck.sci | 7cb6ada8c589cb94327b8f924dabd6e4bea1f173 | [] | no_license | wmacevoy/luck | bf5d93ce00e8136634d715057a97706d3aa804b3 | 47e5c8eb1782a1b4f3f5b9e7583290d9a842532e | refs/heads/master | 2023-05-03T14:46:51.353817 | 2023-04-25T03:13:44 | 2023-04-25T03:13:44 | 33,452,250 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 134 | sci | normalluck.sci | exec("zluck.sci",-1);
function [L,U]=normalluck(x,mu,Sigma)
zl=zluck(x,mu,Sigma);
L=0.5*erfc(-zl);
U=0.5*erfc(zl);
endfunction
|
e44c06fb28db2d435a2512455cfa1ca7c7473867 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1247/CH5/EX5.50/example5_50.sce | c927ee4fbf396305dc2d6839ddbdb02769d1f001 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 769 | sce | example5_50.sce | clear;
clc;
// Stoichiometry
// Chapter 5
// Energy Balances
// Example 5.50
// Page 302
printf("Example 5.50, Page 302 \n \n");
// solution
// from fig 5.18
Ta = 379.5 // K
dH = -274-(-106.5) // kJ/kg sol
Cm = 2.05 // kJ/kg K
dHc = Cm*(Ta-298.15)
// basis 100 kg of 93 % acid
// acid balance
x... |
2fb27270778e5d6ce24468fab4072abfb36039cc | 449d555969bfd7befe906877abab098c6e63a0e8 | /3760/CH4/EX4.2/Ex4_2.sce | 84878809e717c6f7e61af33c12748afe15a2f3e4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 486 | sce | Ex4_2.sce | clc;
l=0.3;//core length
r=0.2;//radius
n=20;//speed in r.p.s.
Ia=20;//armature current
Z=500;//total conductors
Bav=0.5;//avg. flux density
a=4;//lap-wound
P=4;//no of poles
Wm=2*%pi*n
phi=((0.5*2*%pi*0.2*0.3)/4);
Ea=((P*n*Z*phi)/a);//generated emf
Pm=Ea*Ia;//gross mechanical power developed
Te=((Ea*Ia)/W... |
44c862343813a12af5ab66e34970b7ed8b8cfc33 | f891f5aed2e66371488173c2b9c4e8f977a9f64a | /UL 1741 SA/Tests/Normal Ramp Rate/RR.tst | 76cb1d49c7291eaaac59339670a1c218b78772ba | [] | no_license | jakedm/svp_directories | d9b85c41b45a3ded7572f9f730e8d1efc8515099 | 19272f8784baabf83e197778768933aef015432c | refs/heads/master | 2021-01-18T18:08:29.224016 | 2017-01-16T20:09:35 | 2017-01-16T20:09:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,104 | tst | RR.tst | <scriptConfig name="RR" script="RR">
<params>
<param name="invt.pretest_delay" type="int">0</param>
<param name="rr.RRnorm_up_min" type="float">2.0</param>
<param name="rr.MSARR" type="float">2.5</param>
<param name="rr.t_dwell" type="float">3.0</param>
<param name="comm.slave_id" type="int">5</pa... |
12f4df239f962cb73d0fb63ca0b6d16127cd7e69 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1646/CH1/EX1.17/Ch01Ex17.sce | eb8357765900181e6da16b00276ad108fd3a2a5a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 704 | sce | Ch01Ex17.sce | // Scilab Code Ex1.17: Page:35 (2011)
clc;clear;
c = 3e+008; // Speed of light in vacuum, unit
m0 = 9.1e-031; // Rest mass of the electron, kg
E_k = 0.1*1e+006*1.6e-019; // Kinetic energy of the electron, J
v = sqrt(2*E_k/m0); // Classical speed of the electron, m/s
printf("\nThe classical speed of t... |
398260051d8b08beac942f1868725dde40d49a04 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1847/CH1/EX1.2/Ch01Ex2.sce | 9e91a4e192c37bcad04a4a5fb667bdf4711b6183 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 469 | sce | Ch01Ex2.sce | // Scilab Code Ex1.2: Page-1.5 (2009)
clc; clear;
m = 1.67e-027; // Mass of the particle, kg
h = 6.626e-034; // Planck's constant, Js
e = 1.6e-019; // Energy equivalent of 1 eV, J/eV
E = 1e+011*e; // Energy of the particle, J
lambda = h/sqrt(2*m*E); // de Broglie wavelength of the particle, m
... |
2ad3a1a5dc14f4bd74538caa2df4f23dadc8a98a | be70eb1ce95e82a3041bedbc88c6a0fe9500cf24 | /functions/Laplacian/Scilab/testing.sce | acea9d1575b290d513a3ba6fb9b2256be9830f70 | [] | no_license | BhavaniKJ/IPT-Testing | 7e120a63dee91c987ac8a43027336871be8974b4 | 11cde33484f8123748d93d58c98343bc1cb90f8e | refs/heads/master | 2020-04-10T20:01:40.086780 | 2015-10-06T17:39:57 | 2015-10-06T17:39:57 | 42,509,792 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,258 | sce | testing.sce | clear all;
clc;
cd /home/lavitha/Scilab-Image-Processing-Toolbox-master
exec builder.sce
exec loader.sce
diary("Read_image.txt")
A_jpeg=imread("color.jpeg")
A_png=imread("color.png")
A_bmp=imread("color.bmp")
A_tif=imread("color.tif")
diary(0)
diary("scilab_laplacian.txt")
//JPEG
B_jpeg_64F=laplacian(A_jpeg, "CV_... |
163c6c2583af7c338eb05078fda987dc91e2ac10 | d7232d0b1a2442e91e35d2358ae5ff781a611588 | /pre_amp_e_passa_alta/filtro PA.sce | 4395bc3179bca55fb6de7fc476115d1cac1f6ae6 | [] | no_license | gutovsk49/MyoLab | 2f178c0bced6866b45b8f1ddc8be13601811a918 | d75d6309e994af14e108f11d966cdea6c51471bc | refs/heads/master | 2020-11-25T21:32:20.851108 | 2019-12-18T14:22:11 | 2019-12-18T14:22:11 | 228,855,879 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 98 | sce | filtro PA.sce | f = 25;
w = 2*%pi*f;
G = 51;
R1 = 1000;
C = sqrt((-1)/((w^2)*(((sqrt(2) + 2*sqrt(2))/G)-(R1^2))))
|
63a5ca211bd276575c674ccaa938070b22b25a26 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1309/CH1/EX1.7/ch1_7.sce | 07e10a8c18d3a12a680c0adaceeaba00db617124 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,319 | sce | ch1_7.sce | clear;
clc;
printf("\t\t\tchapter1_example7\n\n\n");
// Identification of all resistances and their values
// Estimation of heat transfer per unit area
// Determination of the inside and outside wall temperatures
printf("\n\t\t\tSolution to part (b)\n");
A=1; // assuming A=1 m^2 for convenience
hc1_avg=(5+25)/2... |
3af8107cf4f2100fae413e9dcc892a5a41273de4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1022/CH9/EX9.4/9_4.sce | dde1269d1f9f54b8f7cfe7f8b1b6687769dad4d6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 381 | sce | 9_4.sce | clc
//initialisation of variables
m= 0.45 //kg
v1= 0.03 //m^3
v2= 0.06 //m^3
P= 6.9*10^5 //Pa
K= 1.4
R= 287.1 //J/Kg K
//CALCULATIONS
T1= (P*v1)/(m*R)
T2= T1
P2= P*v1/v2
T3= T2*(v2/v1)^(K-1)
P3= P2*(v2/v1)^K
//RESULTS
printf ('T1 = %.f K ',T1)
printf (' \n T2= %.f K',T2)
printf (' \n T3= %.f K',T3)
p... |
6e258cbff02d3031e92e50156dc6a566c17fb8ae | 449d555969bfd7befe906877abab098c6e63a0e8 | /3014/CH6/EX6.3/Ex6_3.sce | 51313c93d96255019762d48beba4e6124ce8a69e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 225 | sce | Ex6_3.sce |
clc
//Given that
T =40 // Thickness of steel bar in cm
t1 = 40 // Time in ms
t2 = 80 // Time in ms
printf("Example 6.3\n")
X = T*t1/t2 // Calculation of depth of defect
printf("Depth of defect is %d cm.\n\n\n",X)
|
fdc82832d5e0c5d8cb87d56c0a1deec0b6f4f7bb | 449d555969bfd7befe906877abab098c6e63a0e8 | /2126/CH8/EX8.1.40/8_1_40.sce | 8f0ae91370f14dde04938a348660490ca0e5a23d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 267 | sce | 8_1_40.sce | clc
clear
//Input data
To=15+273 //Air Temperature in K
Cp=1005 //Specific heat capacity at constnat pressure in J/kg-K
//Calculation
Cmax=sqrt(2*Cp*To) //Highest possible velocity in m/s
//Output
printf('Highest possible velocity is %3.2f m/s',Cmax)
|
9fbb07b39bcd89fddcd5aa099adccfc33126fa4d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3869/CH1/EX1.42/Ex1_42.sce | b80dbac8167561d6be4d8549e48dee76e2401251 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 294 | sce | Ex1_42.sce | clear
//
//
//
//Variable declaration
lamda=5000*10**-8 //wavelength(cm)
D=50 //separation between screen and slit(cm)
d=0.05 //separation between slits(cm)
//Calculation
beta1=lamda*D/d //fringe width(cm)
//Result
printf("\n fringe width is %0.3f cm",beta1)
|
2ee38d4b18b73016b3ebc9862bf6fb8c5edc9402 | 23573b967e8324d44226379d70559b8f0ea34905 | /code/fminunc/SStemperature.sce | cdbd08d96dfc47085d5c8d3d2564ebb4e20d8e17 | [] | no_license | FOSSEE/FOT_Examples | 91c8b8e9dc58545604b2c2af41a7e22f702b78f3 | 75947a7aa5a3955fe5a72e09f55bbdc05e3b8751 | refs/heads/master | 2020-03-22T09:00:48.306061 | 2018-07-24T04:49:25 | 2018-07-24T04:49:25 | 139,807,736 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,255 | sce | SStemperature.sce | //Reference: S.S. Rao,Engineering Optimization Theory and Practice, 3rd enlarged edition, New age international publishers,2011,chapter 6
// The steady state temperature (t1 and t2) at two points (mid point and the free end) of the one dimensional fin correspond to the minimum of the function.
// f(t1,t2) = 0.6382*t... |
ce2604504c2d983a8cedd5dc911f33fbaf17fb0a | 89dea31a969e428f3ba6bbe7e01abe63875ecc6e | /scilab/sqr_2.sce | 5133a659059870b2c265cf86a8e3bad11b4f1041 | [] | no_license | arvinsingh/b_tech | 9603a83121f8b6beb7ee7d4aae9c2a27599b6f92 | 40e4d29ddfbe13d613709d8303faaccd9bb2db33 | refs/heads/master | 2020-03-19T14:40:00.460378 | 2018-06-08T15:25:19 | 2018-06-08T15:25:19 | 136,634,452 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 180 | sce | sqr_2.sce | a_count = 0
for i = 0:1000
x = grand(1,1,"unf",0,2)
f = x * x
if sign(2 - f) == 1 then
a_count = a_count + 1
end
end
z = (a_count / 1000.0) * 2
disp(z)
|
b06ff6878652ab7e7bd33e20ac13d8b161055805 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2993/CH2/EX2.3/Ex2_3.sce | e9b485d87829a4a74785f0e178463f031d82934e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 375 | sce | Ex2_3.sce |
clc;
close;
Num_of_pixels_in_width = 2400; // Given width of the image in pixels
Num_of_pixels_in_height = 2400;//Given height of the image in pixels
Resolution = 300 // Scanning resoltuion in DPI
//The Physical size of the Image
disp(string(Num_of_pixels_in_width/Resolution)+" inches x "+ string(Num_of_pixels_in_wi... |
3dc8737b44341b7e719933948416deba683cce17 | d2b4190265ddc2ddd6f63bacfdafae9504390fd0 | /SimpsonOneThird.sce | b5f0393e9a661ba5a8753be7d254e91a4365778f | [] | no_license | santushtisharma10/AppliedMathematics_with_Scilab | 8dd80f3a36298d844a42a37619e309b53022204d | 28b4de4244768c0bb0eba1daea86d69021d89400 | refs/heads/main | 2023-05-29T04:40:42.507269 | 2021-06-04T13:25:58 | 2021-06-04T13:25:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 258 | sce | SimpsonOneThird.sce | clc;
clear;
close;
deff('y=f(x)','y=sin(x)')
x0=0;
xn=%pi;
n=10; //n should be even
h=(xn-x0)/n;
s=0;
for i=1:2:n
s=s+f(x0+(i-1)*h)+4*f(x0+i*h)+f(x0+(i+1)*h);
end
integral=(h*s)/3;
printf('\nThe value of integral is=%g\n',integral)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.