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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9bca77b2f9cea8039bbdf19560609c6fb2bcc1b7 | 623a9dd972dc78dbde5d5b8dc187acd6a1eb5910 | /TP4/newton.sci | 6c18f82f6b65fff4737f67318f1633a7c5ea05f6 | [] | no_license | gtessi/CN2012-FICH | 0daad054ceb6c36636ee5e8b174a676b9e0acb9b | 4024384653b61b5af9e1c11ffb575e154025ee47 | refs/heads/master | 2020-03-27T05:53:04.684505 | 2018-08-25T03:03:15 | 2018-08-25T03:03:15 | 146,059,800 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 305 | sci | newton.sci | function [x,h] = newton(f,df,x0,kmax,tol)
h=zeros(1,kmax);
i=1;
p0=x0;
while(i<kmax)
p=p0-(f(p0)/df(p0));
r=abs(p-p0);
h(1,i)=r;
i=i+1;
if (r<tol) then
x=p;
return;
end
p0=p;
end
endfunction |
2bc6e901410b4e7d18416a765d8ad4c735e9c2ba | c90039f74887835096a93884110d643c4823e530 | /doc/oficial/dados para treinamento RNA/RNA_ANALISE_TECNICA/Indicador/Sinal/HISTOGRAMA/RNA_HISTOGRAMA.sce | 6948e066359a8ac6a6496d96f6d489a7419379b4 | [] | no_license | igorlima/CellInvest | da991366b329b5d8021e9b949d7b726023489ec8 | c5411247e504b8a8d0ad77d32d41bbd2aee39930 | refs/heads/master | 2020-04-06T03:40:05.614164 | 2012-10-23T12:58:20 | 2012-10-23T12:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 331 | sce | RNA_HISTOGRAMA.sce | path_rna_HISTOGRAMA = get_absolute_file_path('RNA_HISTOGRAMA.sce');
N_HISTOGRAMA = getN( path_rna_HISTOGRAMA + "\N_HISTOGRAMA.txt" );
W_HISTOGRAMA = getW( path_rna_HISTOGRAMA, "HISTOGRAMA" );
function saida_da_rna = rna_HISTOGRAMA( alphaHIST )
saida_da_rna = ann_FF_run( [alphaHIST], N_HISTOGRAMA, W_HISTOGRAMA );
en... |
4d0b80d399e5202682d518638f9236936cf3e881 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2081/CH9/EX9.2/Ex9_2.sce | 546f5f399efbea3f30c0230f2b6073e6a22af27c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 383 | sce | Ex9_2.sce | n1=17;n2=16;n3=14;n4=12;n5=11;n6=10;n7=7;n8=5;n9=3;n10=2
t1=51;t2=47;t3=43;t4=39;t5=34;t6=28;t7=22;t8=15;t9=9;t10=6
tncphr=n1+n2+n3+n4+n5+n6+n7+n8+n9+n10//no. of calls/hr.
Y=tncphr/60//rate of calls/min.
toct=t1+t2+t3+t4+t5+t6+t7+t8+t9+t10//total system occupied time in min.
H=toct/tncphr//avg. holding time/call in mi... |
db733148c2f068164457f14a7e8cf62c238e5df5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1904/CH5/EX5.3/5_3.sce | e00c47d1f63ca0dcd6b1a535899dd25293c74192 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,694 | sce | 5_3.sce | //To find voltge drop percents for a self supporting aerial messenger cable
//Page 263
clc;
clear;
//Terms taken from Example two
Il=72;
Im=144;
C=5280; //Length Constant
Ll=5760/C; //Lateral Length
Lm=3300/C; //Main Length
//From Tables
//Lateral
rl=4.13; //Resistance per mile
xLl=0.258; //Reactance... |
43f2314adf4b3f4014b3e41b668f5caf0905416a | d145a801b8f64afaf9dd0330b93936ca3343cbdb | /test_suite/tls.tst | 6d4ddc2e9cb3b6a6f60cd1c46b40a2529287b969 | [] | no_license | ChemCryst/crystals | 0fff27ff8576b7c7199e1eaa671407d50132b98e | 8087c68d7f05b903473cee1cb131c06f819dc660 | refs/heads/master | 2023-08-17T16:36:03.675124 | 2023-06-26T10:54:29 | 2023-06-26T10:54:29 | 152,602,292 | 2 | 0 | null | 2023-06-26T10:54:30 | 2018-10-11T14:09:45 | Roff | UTF-8 | Scilab | false | false | 992 | tst | tls.tst | #
# This test takes cyclo and tests TLS calculations
#
\set time slow
\rele print CROUTPUT:
\use cyclo.in
# Do a pretty picture:
\MOLAX
ATOM FIRST UNTIL LAST
PLOT
END
# FSQ, ANOM
\LIST 23
MODIFY EXTINCTION=YES ANOM=YES
MINIMISE F-SQ=YES
END
\USE cycloref.dat
\LIST 12
FULL X'S... |
b4b6a8722a83decc21d379fc1cd3e516a85e6c30 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1319/CH10/EX10.3/10_3.sce | 8dfe7ebb20539fb31d16e3c679a468e34b6b1495 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 709 | sce | 10_3.sce | //Detemine the load and pf of the other machine
clc;
clear;
Pa=3000*(10^3);// Lighting load
Pma=5000*(10^3); // Aggregate Motor load
pfm=0.71; // power factor of motor load
P1a=5000*(10^3); // One Machine load
pf1=0.8;// Power factor machine 1 (lagging)
Pta=Pa+Pma; // Total load active power requirement... |
b1c7888458809a3d882b2b7758018440dc273547 | 1573c4954e822b3538692bce853eb35e55f1bb3b | /DSP Functions/zpklp2bpc/test_6.sce | 34d95ffe38f902f1d75859aa28221e6fe29886c5 | [] | 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 | 297 | sce | test_6.sce | // Test # 6 : Range test for Input Argument #4 or Input Argument #5
exec('./zpklp2bpc.sci',-1);
[z,p,k,n,d]=zpklp2bpc(7.3,5.2,7,0.62,[0.4,3.8]);
//!--error 10000
//Wt must lie between 0 and 1
//at line 53 of function zpklp2bpc called by :
//[z,p,k,n,d]=zpklp2bpc(7.3,5.2,7,0.62,[0.4,3.8]);
|
48204910040597ba450289b905363aad7cf1346d | 464ce6326e71577dfbaa32e2c881306849780844 | /sci_gateway/cpp/loader.sce | bda7169d228558ca436cd2061dc734b174f7c11c | [] | no_license | tripathiaishwarya/itpp_module | 43bfd0fea477eb6c687dc7468c25140102096d72 | f701b8e0fe065dbdf55da14b821aa45a56499135 | refs/heads/master | 2021-01-10T21:54:18.914097 | 2015-07-06T10:19:02 | 2015-07-06T10:19:02 | 38,388,403 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,985 | sce | loader.sce | // This file is released under the 3-clause BSD license. See COPYING-BSD.
// Generated by builder.sce : Please, do not edit this file
// ----------------------------------------------------------------------------
//
libitpp_cpp_path = get_absolute_file_path('loader.sce');
//
// ulink previous function with same name
[... |
23a0a71c10945fd0def67dd433a05849df0cae6e | 592b1b7dfaefd62d755737ac7b6e81f44f7786ba | /1b Program to calculate the roots of a quadratic equation using the formula.sce | 5ce0e6ef01cf10c6f5b2b14cbaac7284819573d8 | [] | no_license | muitnet/Numerical-and-Statistical-Methods-sem2-fybscit-mumbai-university | 841143b72d52229c68bcd0666ed10c844c02f507 | 2d1c638b881f3e418a982baa02632effd03ae5fe | refs/heads/master | 2021-01-19T07:23:05.463429 | 2017-04-07T11:54:24 | 2017-04-07T11:54:24 | 87,540,712 | 6 | 5 | null | null | null | null | UTF-8 | Scilab | false | false | 824 | sce | 1b Program to calculate the roots of a quadratic equation using the formula.sce |
responce=1;
while responce==1
a=input("input the value of a:")
b=input("input the value of b:")
c=input("input the value of c:")
if a==0 then
if b~=0 then
r1=-c/b;
disp(r1,"the root:")
else disp("trival solution")
end
else
... |
f99a3a5b1038de3d2947e36bdcdbf99265b12897 | 449d555969bfd7befe906877abab098c6e63a0e8 | /767/CH5/EX5.7.6/Ch05Exa5_7_6.sci | 7a66dd48b037ee6300ca12c4c97176bfb4717350 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 402 | sci | Ch05Exa5_7_6.sci | // Scilab code Exa 5.7.6 : To calculate the scattering angle of X-rays Page.no. 235 (2011)
E_s = 180; // Energy of the scattered X-rays, KeV
E_i = 200; // Energy of the incident X-rays, KeV
a = acosd(1-[{1/E_s-1/E_i}*511]); //
A = round(a); // Scattering angle of X-rays, degree
printf("\n Scattering angle of X-r... |
5011abf493950d9a80b41855e592ed7c2d85e7c1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1109/CH12/EX12.27/12_27.sce | d0e4752fec77028c851ed651f83a7a24d0b78b80 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 166 | sce | 12_27.sce | clear;
clc;
V1=6;V2=6;R1=2;R2=1;R3=2;
Y1=1/R1;Y2=1/R2;
Vm=((V1*Y1)+(V2*Y2))/(Y1+Y2);
Zm=1/(Y1+Y2);
I=Vm/(Zm+R3);
printf("Current in resistor R3 = %f Amp",I);
|
feda692612e0789d4fab4a708f5592b6c05896cc | aeb79afbe5c031a224f37fdd86c5e2f02577e025 | /qtproject/brass.tst | 090efec733ce72073cd33b667892bb2716dd785f | [] | no_license | kanhar/bottleneck_shortest_path | b4093caf5a9d40b8de346322c6fc8beb500233ca | 22709c642d83d456087b6ea5dc4e442385fa0c37 | refs/heads/master | 2021-06-25T03:31:40.579447 | 2021-01-19T03:33:53 | 2021-01-19T03:33:53 | 5,651,882 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,220 | tst | brass.tst | [-20,420]x[0,240]
P ( 25, 55)
P (400,170)
P ( 0, 10)
P ( 10, 0)
P ( 20, 20)
P ( 30, 10)
P ( 50, 0)
P ( 80, 20)
P (100, 20)
P (120, 40)
P (100, 80)
P ( 0, 40)
P (-10, 50)
P (-18, 70)
P ( 80, 15)
P ( 20,120)
P ( 60, 90)
P (100,120)
P ( 30,100)
P ( 40,140)
P ( 10,220)
P ( 20,220)
P ( 30,220)
P ( 40,220)
P ( 50,220)
P ... |
c8bc661767877984078f37bbc3d0d9b7132dfc00 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1979/CH3/EX3.9/Ex3_9.sce | f4b7eaa82e9c463a487aea4dd8b2f0326d0d855b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 787 | sce | Ex3_9.sce | //chapter-3 page 52 example 3.9
//==============================================================================
clc;
clear;
Z0=600;//Characteristic Impedance in ohms
Zs=50;//Generator impedance in ohms
l=200;//Length of transmission line in met
Zl=500;//Load impedance in ohms
//CALCULATIONS
p=((Zl-Z0)/(Zl... |
df611c5d7949270507e1b0cb53c8db7ec02684db | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/macros/m2sci/%log2sci.sci | d15b2cf223291e1d707cf9ecdd46fa2e05160a00 | [
"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 | 906 | sci | %log2sci.sci | function [stk,txt,top]=%log2sci()
//
//!
// Copyright INRIA
txt=[]
iop=evstr(op(2))
s2=stk(top);s1=stk(top-1);top=top-1
if s2(2)=='2'|s2(2)=='3' then s2(1)='('+s2(1)+')',end
if s1(2)=='2'|s1(2)=='3' then s1(1)='('+s1(1)+')',end
if s1(5)=='4'&s2(5)<>'4' then
if s2(1)=='1' then
s2(1)='%t'
elseif s2(1)=='0' th... |
a270c349eedc985c7579fe293567f24ae7791a74 | b26239033e0d21476c77ff50326b32231c2a3b00 | /Scripts/intervalle_niveaux.sci | 7ea4752f290da32ee03f00b53312b4f88adbc882 | [] | no_license | SmartGuyy/Exolife | 1c9a5bfdb8b16523e9681170fe4cb2cb12613e3a | eb477766dffe7edd9022d0cf46028980489c6277 | refs/heads/master | 2021-06-17T03:56:00.785128 | 2017-03-17T09:39:04 | 2017-03-17T09:39:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 644 | sci | intervalle_niveaux.sci | //Fonction qui permet d'isoler les intervalles de gris
//img_input : l'image source
//valeur_mini : valeur minimum
//valeur_max : valeur maximum
function img_vierge_intervalle=intervalleColor(img_input,valeur_mini,valeur_max)
//Largeur-hauteur de l'image
[wd,he]=size(img_input);
//Création image vierge
... |
96a8afffbf150a82cf6f1e718f01b9102091419e | 449d555969bfd7befe906877abab098c6e63a0e8 | /60/CH4/EX4.16/ex_16.sce | 8b7bf5dbd2ce3cd59d2fcced61837e2ef5fd0b8e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 111 | sce | ex_16.sce | //Example (pg no.186)
//(1)
A=[1 4;2 3]
det(A)
//(2)
A=[4 1;3 2]
det(A)
|
5dc0f86d7174e895786e16c6cc6796a5cc01f4fa | 449d555969bfd7befe906877abab098c6e63a0e8 | /1418/CH27/EX27.10/EX27_10.sce | 11418721e95e890cebc03870a2eea9ac81448426 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 811 | sce | EX27_10.sce | //EXAMPLE 27.10
//DC MACHINE
clc;
funcprot(0);
//Variable Initialisation
P=4;.......//Total number of poles
N=1500;.......//Speed in rpm
Cd=30;.........//Commutator distance in Centi Meter
Ia=150;......//Armature current in Amperes
Wb=1.25;.......//Thickness of brush in Centi Meter
L=0.07;.......//Self in... |
f6d9d7fe10d1f63bc87c424995a47a3fc8324408 | 449d555969bfd7befe906877abab098c6e63a0e8 | /317/CH24/EX24.6/example6.sce | 664d3483def26daf51f8d9279d42647248e81ea7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 564 | sce | example6.sce | // find load regulation and line regulation
// Electronic Principles
// By Albert Malvino , David Bates
// Seventh Edition
// The McGraw-Hill Companies
// Example 24-6, page 956
clear; clc; close;
// Given data
Vnl=9.91;// in volts
Vfl=9.81;// in volts
Vhl=9.94;// in volts
Vll=9.79 ;// in volts
// Cal... |
d375b4666bbbe2951b676e11f9ea35617878a7ca | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH15/EX15.27/15_27.sce | 083544e0e8867f5ac592a39d0e8faee603f80723 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 416 | sce | 15_27.sce | //Problem 15.27: A transformer has a rated output of 200 kVA at a power factor of 0.8. Determine the rated power output and the corresponding reactive power.
//initializing the variables:
VI = 200000; // in VA
pf = 0.8; // power factor
//calculation:
P = VI*pf
Q = VI*sin(acos(pf))
printf("\n\n Result \n\n"... |
2f5f1a7374d8e47ef19cffd7cdd33e4ce4470cd4 | e41b69b268c20a65548c08829feabfdd3a404a12 | /3DCosmos/Data/Scripts/_MarsProject/startup.SCI | a88ab76e488441f330921df8b0f10ec61d226a48 | [
"LicenseRef-scancode-khronos",
"MIT"
] | permissive | pvaut/Z-Flux | 870e254bf340047ed2a52d888bc6f5e09357a8a0 | 096d53d45237fb22f58304b82b1a90659ae7f6af | refs/heads/master | 2023-06-28T08:24:56.526409 | 2023-03-01T12:44:08 | 2023-03-01T12:44:08 | 7,296,248 | 1 | 1 | null | 2023-06-13T13:04:58 | 2012-12-23T15:40:26 | C | UTF-8 | Scilab | false | false | 567 | sci | startup.SCI |
store("Cmd","c");
while true do {
kbst=Recall("Cmd");
scriptname="";scriptarg="";
if kbst=="a" then scriptname="mars";
if kbst=="b" then scriptname="VallisMarineris";
if kbst=="c" then scriptname="solarsys";
if kbst=="d" then scriptname="hohman";
if kbst=="e" then { scriptname="ShowModel"; scrip... |
8309ccbd54009a19487ad90795a42783d8f3d183 | 449d555969bfd7befe906877abab098c6e63a0e8 | /125/CH3/EX3.3/Example3_3.sce | b7e620e548e85c5c68fdceac293819b219ac81f6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Example3_3.sce | //Caption: 2-D Linear Convolution
//Example3.3 & Example3.6 & Example3.10
//page 100 & page 109 & page 119
clc;
x =[1,2,3;4,5,6;7,8,9];
h = [3,4,5];
y = conv2d2(x,h);
disp(y,'Linear 2D convolution result y =')
//Result
//Linear 2D convolution result y =
//
// 3. 10. 22. 22. 15.
// 1... |
37efaeda19e9709c07177d5865e86984c6cd8923 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1475/CH7/EX7.6/Example_7_6.sce | 7cba49da2f8790c88ed79dd52b504bf98cc03bd7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 329 | sce | Example_7_6.sce | // Example 7.6 Calculate price index numbers from the following data,
clc;
clear;
BP=[80 10 40 50 12];
CP= [110 15 56 95 18];
W=[14 20 35 15 16];
PR= (CP./BP)*100;
WAI=((sum(CP.*W)/sum(BP.*W))*100);
WAM=(sum(PR.*W)/sum(W));
disp(WAM,"Weighted Arithmetic Mean",WAI,"Weighted Aggregrative Index",PR, "Price Relati... |
ee44d71f55fa08de1c04e911ca778fac3722f74d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2102/CH5/EX5.9/exa_5_9.sce | f7ca923b87aeaa65fd570ac82f442486a921807e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 392 | sce | exa_5_9.sce | // Exa 5.9
clc;
clear;
close;
// Given data
V1= 5;// in V
V2 = V1+1;// in V
C_T1= 20;// in pF
// C_T2/C_T1 = sqrt(V1/V2)
C_T2= C_T1* sqrt(V1/V2);
disp(C_T2,"The capacitance for 1-V increase in bias in pF is : ")
disp(C_T1-C_T2,"Therefore, the decrease in capacitance in pF is :")
// NOTE: The answer in the... |
075d7ae52d5911c129eecb27a956d5ba95e0337d | 2eac84edf941c64588fef76f10d02309aabcb2fb | /Library/Basic/Scilab/x2c_ModelTransformation.sci | 889b0a0f09c18764170897edf7c3786348997121 | [
"BSD-3-Clause"
] | permissive | AlexisTM/X2C | fdd93bd33b931ea448ba516f5e3f9af6a5149a6a | 31f39b598afe271a7fd46ef1ee9e06c410b1120c | refs/heads/master | 2021-08-07T04:26:24.391617 | 2017-11-07T14:34:33 | 2017-11-07T14:34:33 | 109,844,123 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,820 | sci | x2c_ModelTransformation.sci | // Copyright (c) 2014, Linz Center of Mechatronics GmbH (LCM) http://www.lcm.at/
// All rights reserved.
//
// This file is licensed according to the BSD 3-clause license as follows:
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the followin... |
1543b1a63a61b4753f88ceff87ecaff5b3935e74 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.3/macros/util/g_exp.sci | 2684d1fe803b4ac753e3f8395d3c16937420e6db | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | 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 | 65 | sci | g_exp.sci | function sp=g_exp(a)
[ij,v,mn]=spget(a)
sp=sparse(ij,exp(v),mn)
|
77f2c91197a0d89207fa2595cc2a02ff86b77b1c | 449d555969bfd7befe906877abab098c6e63a0e8 | /257/CH8/EX8.31/example_8_31.sce | c1aaabd7462fdaa3f43864f08cdbb35a72c7865d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 410 | sce | example_8_31.sce | syms s K
G=(10+s)*K/(s^2*(s^2+2*s+10))
H=1
Ka=limit(s^2*G*H,s,0)
disp(Ka, " Ka = ")
Ess=0.1 //given
K=1/Ess //A=1
disp(K,"K=")
s=%s
F=s^4+2*s^3+10*s^2+10*s+100
disp(routh_t(F))
r=coeff(F)
routh=routh_t(F)
n=length(r)
c=0;
for i=1:n
if (routh(i,1)<0)
c=c+1;
end
end
if(c>... |
627abb35535257ff539586578b7a5ea4550148e5 | f3921ba261cdd9c9c4201d85a3b3bcbc42a26421 | /protobuflib/pblib_helpers_iff.sci | addffab9118c1dd74d3192f3eaf0e57bd6b4c31b | [] | no_license | manojgudi/protobuf-scilab | 9bbe77a52ad8bd50d762a6e4a388236f88dacc0c | d5a8e967848b48c1628859f3f52fb59ac3502429 | refs/heads/master | 2020-12-02T15:54:15.894328 | 2015-01-08T19:04:45 | 2015-01-08T19:04:45 | 28,736,110 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,434 | sci | pblib_helpers_iff.sci | function val = pblib_helpers_iff(condition, if_true, if_else)
//pblib_helpers_iff Simulates an iff statement.
// function val = pblib_helpers_iff(condition, if_true, if_else)
//
// Helper functions that turns the if else construct into one expression to be
// used in an anonymous function
//
// If given an arra... |
b328594c42b9a72a031f3d5f85787093332bab5b | 449d555969bfd7befe906877abab098c6e63a0e8 | /275/CH5/EX5.5.10/Ch5_5_10.sce | 903318ed3219f35e5f7e43f02dd1f8f99533a131 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 474 | sce | Ch5_5_10.sce | clc
disp("Example 5.10")
printf("\n")
disp("Calculate overall voltage gain in db & output voltage when input voltage is 1uV for cascaded amplifier")
printf("Given\n")
//Voltage gain of amplifier
Av1=10
Av2=100
Av3=1000
//input voltage
Vi=10^-6
//overall voltage gain
Av=Av1*Av2*Av3
//in db
Avdb=20*log10(Av... |
5268e228d4b412a9bf57e82ffb0cd9e284e67a2f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2066/CH11/EX11.4/11_4.sce | dc97a63d01d421cfc78ec55c88d1fee6c7b5e55e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 379 | sce | 11_4.sce | clc
clear
//Initialization of variables
S0=0.0009
n=0.018
w=20 //ft
d=0.5 //ft
Q=400 //ft^3/s
g=32.2 //ft/s^2
//calculations
y2=4 //ft
V2=Q/(w*y2)
Nf2=V2/sqrt(g*y2)
yr=0.5*(sqrt(1+ 8*Nf2^2) -1)
y1=yr*y2
L1=32.5
L2=37.1
L3=51.4
L=L1+L2+L3
//results
printf("distance from vena contracta = %.1f ft and ... |
b1f38eade76c0b5ed6bf6b95d75fd7ab1b034cca | 717ddeb7e700373742c617a95e25a2376565112c | /1766/CH4/EX4.4/EX4_4.sce | 5acd4d3851748ef23d31df4e025588c143e8151e | [] | 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,244 | sce | EX4_4.sce | clc;funcprot(0);......//Example 4.4
//Initialization of variables
l=2;........//Vertical height of the plate in m
w=1;......//Width of the plate in m
Tw=60;....//Temperature of the plate in degree celsius
Ta=20;....//Temperature of air in degree celsius
v=0.657*10^-6;.......//Viscosity in m^2/s
K=0.628;.......//... |
2f6ec5a6aedc727490824382ea28bf35b318d3e5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /821/CH4/EX4.34/4_34.sce | 4a1d7b14a05aecd2c6199f45656957deb6a2d6bd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 4_34.sce | D=80.36;//dielectric constant//
V=0.01;//viscosity of suspension in dyn sec per cm^2//
P=40;//potential gradient in volt per cm//
r=0.05;//radius of capillary in cm//
u=90000;
ZP=0.05;//Zeta potential of the catalyst in volts//
FW=(P*ZP*D*3600*r^2)/(4*V*u);//amount of flow of water in cc per hour//
printf('Amoun... |
16d3cd0814443347bf54bba5a7cf83faab3e1513 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/ngram/5.7_15.tst | 0a519cdd5416fa6e2bc0fd7a8715b093a5175b68 | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 504,418 | tst | 5.7_15.tst | 7 392:1 463:1 624:1 1186:1 1425:1 1759:1 1978:1 2188:1 2326:1 2537:1 2570:1 2605:1 2706:1 2712:1 2871:1 3166:1 3251:1 3343:1 3362:1 3545:2 4004:1 4090:1 4613:1 5163:1 5564:1 5704:1 5845:1 6017:1 6038:1 6039:1 7223:1 7707:1 7742:1 8046:2 8632:1 9303:1 9401:1 9424:2 9761:1 9909:1 9949:1 9973:2 10550:1 10815:1 10869:2 117... |
16de0fce6f4278bbf516bc8c62b6423feab2e361 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3137/CH7/EX7.7/Ex7_7.sce | b6af48a0116f7c04de9faaeb7e76cef64eec3f0b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 366 | sce | Ex7_7.sce | //Initilization of variables
w=800 //lb/ft
a=600 //ft
d=40 //ft
//Calculations
T=0.5*w*a*(sqrt(1+(a^2/(16*d^2)))) //lb
H=(w*a^2)/(8*d) //lb
//Taking the first two terms of the series
l=a(1+(8/3)*(d/a)^2-(32/5)*0.00002) //ft
//Result
clc
printf('The value of T=%flb and that of H=%flb,Also l=%fft',T,H,l)
//De... |
fb722a53453b98be0f6987ccc67065d857ed4ba7 | 5f2ca8e18735204f5995ac7e44a6e301eb23ea0b | /scripts/eqm/stability_deriv_body.sci | 4742f5fdf7bf9b63afeef57f42a9136cccab7c49 | [] | no_license | Jettanakorn/mcflight | 4e7d4e20976e8f3621bf13fec2a8b522ecfc49a9 | e6579a11e10c5e9ae9ee558f464a6b88e1ae7a26 | refs/heads/master | 2023-03-17T10:49:28.906700 | 2019-10-30T20:20:58 | 2019-10-30T20:20:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,345 | sci | stability_deriv_body.sci | function [long, lat] = stability_deriv_body(eqm_fun, X0, controls, params, dX)
[out, inp] = argn(0);
if(inp<5) then
onedeg_rad = 1/180*%pi;
dX = [
.1 //(1)u_ftps
.1 //(2)v_ftps
.1 //(3)w_ftps
onedeg_rad //(4)phi_rad
onedeg_rad... |
8dd99f651ee9b8c96e4259865d3762a775cece9d | ef7da921e1289d3deaaf9727db2b6f025656e8d9 | /LinspaceDemo.sce | 69e52ec0c10931e8c9682b513553b3c102e8cc10 | [] | no_license | PrayagS/SciLab_Exercises | ea88438207f2dc5d3f211c9abfe137a4bd43f68f | 0495ba76e693750980fefb386c28209a6fd6563e | refs/heads/master | 2020-09-08T01:52:22.914681 | 2019-11-16T05:39:29 | 2019-11-16T05:39:29 | 220,977,317 | 2 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 143 | sce | LinspaceDemo.sce | clear; clf; clc;
y1 = linspace(0,6,20)
y2 = linspace(5.7,3,10)
y3 = 3*ones(1,100)
y4 = linspace(3,0,20)
y = [y1,y2,y3,y4]
disp(y)
plot2d3(y) |
400070a74c844dbea9b2486408041ab41f9faf06 | 1db0a7f58e484c067efa384b541cecee64d190ab | /macros/firpmord.sci | c72f76ec6114b8d47410386d58c345a5a742aeb0 | [] | no_license | sonusharma55/Signal-Toolbox | 3eff678d177633ee8aadca7fb9782b8bd7c2f1ce | 89bfeffefc89137fe3c266d3a3e746a749bbc1e9 | refs/heads/master | 2020-03-22T21:37:22.593805 | 2018-07-12T12:35:54 | 2018-07-12T12:35:54 | 140,701,211 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 8,151 | sci | firpmord.sci | function [n, fo, ao, w] = firpmord(f, a, dev, varargin)
// Parks-McClennan optimal FIR filter order estimation
//
//
// Calling sequence
// [n,fo,ao,w] = firpmord(f,a,dev)
// [n,fo,ao,w] = firpmord(f,a,dev,fs)
//
//
// Parameters
// f: double - positive - vector
// Frequency band edges (between 0 and F... |
ee3a913f8c0ce317f1a8776f11dcd0d057a3dab4 | f4926a8f50cb258aa4b1095151575a86c7412e72 | /projects/08/ProgramFlow/BasicLoop/BasicLoop.tst | f9eee190aa83905899677b153d12e644058b9883 | [] | no_license | svigne1/nand2tetris | b8b0b333887e4316d36b4452993afaeaf91b1100 | 4c5306a8cf3d7bca13fad3d731cdf58975670f2c | refs/heads/master | 2020-08-12T00:46:28.857563 | 2020-07-14T09:49:49 | 2020-07-14T09:49:49 | 214,658,619 | 0 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 645 | tst | BasicLoop.tst | // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/08/ProgramFlow/BasicLoop/BasicLoop.tst
load BasicLoop.asm,
output-file BasicLoop.out,
compare-to BasicLoop.cmp,
output-list RAM[0]%D1.6.1 RAM[256]%D1.6.1;
... |
72ebc43e084b373830e83e983f42d0225fa726b0 | 3c47dba28e5d43bda9b77dca3b741855c25d4802 | /microdaq/macros/mdaq_get_ip.sci | a7f18651dc6cd0982b998ee7e826185d0b2b9ed1 | [
"BSD-3-Clause"
] | permissive | microdaq/Scilab | 78dd3b4a891e39ec20ebc4e9b77572fd12c90947 | ce0baa6e6a1b56347c2fda5583fb1ccdb120afaf | refs/heads/master | 2021-09-29T11:55:21.963637 | 2019-10-18T09:47:29 | 2019-10-18T09:47:29 | 35,049,912 | 6 | 3 | BSD-3-Clause | 2019-10-18T09:47:30 | 2015-05-04T17:48:48 | Scilab | UTF-8 | Scilab | false | false | 381 | sci | mdaq_get_ip.sci | function [mdaq_ip, result] = mdaq_get_ip()
mdaq_ip = [];
ip_config_file_path = mdaqToolboxPath()..
+ "etc"+filesep()+"mlink"+filesep()+"ip_config.txt";
[ip_config_file, result] = mopen(ip_config_file_path, 'r');
if result == 0 then
tmp = mgetl(ip_config_file);
mdaq_ip = stri... |
bd3d89fc950ffef80e08f48e8539a12ef2c3ab2e | 3c47dba28e5d43bda9b77dca3b741855c25d4802 | /microdaq/macros/mdaq_code_gen.sci | 71348e5cd588bf7fadc385509eb568bc3d047ad4 | [
"BSD-3-Clause"
] | permissive | microdaq/Scilab | 78dd3b4a891e39ec20ebc4e9b77572fd12c90947 | ce0baa6e6a1b56347c2fda5583fb1ccdb120afaf | refs/heads/master | 2021-09-29T11:55:21.963637 | 2019-10-18T09:47:29 | 2019-10-18T09:47:29 | 35,049,912 | 6 | 3 | BSD-3-Clause | 2019-10-18T09:47:30 | 2015-05-04T17:48:48 | Scilab | UTF-8 | Scilab | false | false | 2,988 | sci | mdaq_code_gen.sci | function mdaq_code_gen(load_dsp_app)
if check_mdaq_compiler() == %F then
messagebox("Can''t locate compiler for compiling generated code. To solve this problem run microdaq_setup() function", "Settings error", "error");
return;
end
standalone = %f;
debug_build = %t;
profiling = %f... |
68f482e0a6dfe8b9c5ed7a14fbee73d6c1b464aa | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH5/EX5.38/Ex5_38.sce | ccc9ed7408680fa2bace7b8255ddfa086c5479ff | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 269 | sce | Ex5_38.sce | clear
//Given
R1=3 //ohm
R2=3
R3=6
//Calculation
Rad=(R1+R2)*R3/(R1+R2+R3)
Rae=(Rad+R1)*R3/(Rad+R1+R3)
Raf=(Rae+R1)*R3/(Rae+R1+R3)
Rab=(Raf+R1)*R2/(Rae+R1+R2)
//Result
printf("\n the effective resistance between the point A and B is %0.3f Ohm", Rab)
|
affbaa9ca178edc7da63142b0138d7d41ec39442 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3773/CH25/EX25.2/Ex25_2.sce | 789d4a66d5901ee748c2d56100f885c5e7a70989 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 740 | sce | Ex25_2.sce | //Chapter 25: Sky Wave Propagation
//Example 25-5.2
clc;
//Variable Initialization
fE = 3e6 //Critical frequency for E layer (Hz)
fF1 = 5e6 //Critical frequency for F1 layer (Hz)
fF2 = 9e6 //Critical frequency for F2 layer (Hz)
//Calculations
N_E = (fE**2)/81 //Concentration of electrons in E la... |
72312fbe54528a529e00b0f9b00bada10cfd55a5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2498/CH4/EX4.7/ex4_7.sce | 8afcd829cdbc085102667157d10bb244d2ad524e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex4_7.sce | // Exa 4.7
clc;
clear;
close;
format('v',6)
// Given data
Alpha = 0.98;
I_CO = 5;// in µA
I_CO = I_CO * 10^-3;// in mA
I_B = 100;// in µA
I_B = I_B * 10^-3;// in mA
Beta = Alpha/(1-Alpha);
// The collector current
I_C = Beta*I_B + (1+Beta)*I_CO;// in mA
disp(I_C,"The collector current in mA is");
// The... |
ee4e877c08b1757bd53981cc20f56b1fcba1ac30 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2135/CH1/EX1.16/Exa_1_16.sce | 4e65b53dd92f207c28ee6771b7a7f049ec31a750 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 257 | sce | Exa_1_16.sce | //Exa 1.16
clc;
clear;
close;
format('v',7);
//Given Data :
//F=2*C;
FbyC=2;
disp("(F-32)/9=C/5");
C=32/(FbyC-9/5);//degree C
F=C*FbyC;//degree F
disp(F+460,"Temperature fluid in degree R : ");
disp(C+273,"Temperature fluid in degree K : ");
|
d9e000aadab14cc0ead8e6c6f07cdc35dcf09ee5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1964/CH2/EX2.4/ex2_4.sce | da142973f30a663905a02bc69dfd18d9dfb5e4a7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 751 | sce | ex2_4.sce | //Chapter-2, Example 2.4, Page 91
//=============================================================================
clc;
clear;
//INPUT DATA
li=0.5;//iron path length in m
lg=10^-3;//length of air gap in m
phi=0.9*10^-3;//flux in wb
a=6.66*10^-4;//area of cross-section of iron in m^2
N=400;//no of turns
//CALC... |
8df96949dd06a1a87da81d7dd4eebe5a64b94385 | 72d7c10733e74eafb60961874dedea7fa2a43569 | /10.Control_Systems/Step_Response.sce | f59f4c9e6f685f5da032083e27f9d181c5b74083 | [] | no_license | AkshayNachappa/Scilab-Workshop | 8dc448c41a2e768f3d93bbed928705445b9c007b | 056436f38a1f3aad7d1e3669595718839108c40e | refs/heads/master | 2023-01-02T00:20:19.968404 | 2020-10-20T17:04:44 | 2020-10-20T17:04:44 | 297,102,650 | 2 | 2 | null | 2020-10-20T17:04:46 | 2020-09-20T15:12:27 | Scilab | UTF-8 | Scilab | false | false | 595 | sce | Step_Response.sce | //STEP RESPONSES OF A 2ND ORDER SYSTEM
clc;
clear all;
t=0:0.000001:0.0002;
zeta=input('Enter the values for zeta =')//[0.4 1 1.6];
cv=[1 2 3];
s=%s;
wn = input('Enter the value for wn =')//10^5;
for n=1:3
den = s^2 + 2*zeta(n)*(wn)*s+(wn^2);
P = syslin('c',wn,den);
Ps=csim('step',t,P); // change 'step... |
e7b07df64c05dc6d9c6a961109452046c7f03997 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1802/CH3/EX3.7/Exa3_7.sce | 9eee8092e964c47e21af9ce779c10c013886ec88 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Exa3_7.sce | //Exa 3.7
clc;
clear;
close;
//Given Data :
format('v',5);
L=220;//in meter
W=0.604;//in Kg/m
T_strength=5758;//in Kg
SafetyFactor=2;//unitless
T=T_strength/SafetyFactor;//in Kg
S=W*L^2/(8*T);//in meter
disp(S,"Sag(in meter) : "); |
da35940ac1cecbf846e6e248e6aabc2071c76029 | e2ae697563b1b764d79ea1933b555ab0d5e3849c | /macros/loadplant.sci | d1383d53134f7f5d3881ea394ad0f54fff9b4588 | [] | no_license | gq-liu/IPDesignLab | c49b760740f47ec636232a6947aecb3c0626518a | b2f9a9eecad6616c99a2ec20fcceb14fb3ed0c3f | refs/heads/master | 2022-01-18T13:30:55.972779 | 2019-05-06T17:23:12 | 2019-05-06T17:23:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,636 | sci | loadplant.sci | function loadplant()
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in... |
9b58396e94487218f0497a10d790ddf523c813c7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1628/CH8/EX8.6/Ex8_6.sce | a0a9d66dee2a22ab4b7996a1ef4b36e87d60c4c6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 980 | sce | Ex8_6.sce |
// Examle 8.6
Vo=3; // Supply voltage
vo=0; // Voltage at V(o+) {Because instantly capacitor can't charge }
disp(' Voltage across capacitor at V(o+) = '+string(vo)+' Volt');
R=1500; // Resistance
Io=Vo/R; // Current of... |
094c6ba157ee79eeb367c8e7e22e947670654a2d | b23687e2eb02bcb6d0f581b7975f42c496faeda1 | /Fast_Fourier_Transform.sce | f77391714f658e8d81b0b5eada89609a822392e1 | [
"MIT"
] | permissive | harvishj/Scilab | bd3fbd3e679eb07aa088ff2bab40d491c6499770 | 9daada512f42ea6f52199a34d6b18e64b107af94 | refs/heads/master | 2021-07-14T15:06:03.621923 | 2020-10-05T06:35:43 | 2020-10-05T06:35:43 | 213,328,984 | 1 | 3 | MIT | 2020-10-05T06:35:44 | 2019-10-07T08:16:52 | Scilab | UTF-8 | Scilab | false | false | 345 | sce | Fast_Fourier_Transform.sce | clear;
clf;
clc ;
N = 20;
n = 0:N-1;
k = 0:N-1;
fd = k/N;
x = sin(2 * (%pi) * n/5);
xf = fft(x)/N;
xf1 = abs(xf);
r = real(xf);
i = imag(xf);
disp(r);disp(i);
subplot(4,1,1);
plot2d3(n,x);
plot(n,x);
subplot(4,1,2);
plot2d3(fd,xf1);
plot(fd,xf1);
subplot(4,1,3);
plot2d3(fd,r);
plot(fd,r);
subplot(4,1,4);
pl... |
7afc98f0954144d0bd8ea8360ec8523f6603f1a8 | 931df7de6dffa2b03ac9771d79e06d88c24ab4ff | /Viper Strafe Gallery.sce | e74a2c2e114a4b7226c27f28c13b1d723ab48623 | [] | no_license | MBHuman/Scenarios | be1a722825b3b960014b07cda2f12fa4f75c7fc8 | 1db6bfdec8cc42164ca9ff57dd9d3c82cfaf2137 | refs/heads/master | 2023-01-14T02:10:25.103083 | 2020-11-21T16:47:14 | 2020-11-21T16:47:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 78,994 | sce | Viper Strafe Gallery.sce | Name=Viper Strafe Gallery
PlayerCharacters=Strafer
BotCharacters=Watcher Bot Long Strafes.bot
IsChallenge=true
Timelimit=61.0
PlayerProfile=Strafer
AddedBots=Watcher Bot Long Strafes.bot;Watcher Bot Long Strafes.bot;Watcher Bot Long Strafes.bot;Watcher Bot Long Strafes.bot;Watcher Bot Long Strafes.bot
PlayerMaxL... |
0a874e48613f921e494182224e583a5e2fb766f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2438/CH4/EX4.2/Ex4_2.sce | f3c37dcb25f51ec7bf289100a7e70f29d1d766ce | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 543 | sce | Ex4_2.sce | //========================================================================
// chapter 4 example 2
clc;
clear;
//input dta
alpha = 1.8*10^-40; //polarisability of argon in F*m^2
E = 2*10^5; // in V/m
z = 18;
e = 1.6*10^-19;
//formula
//p=18*e*... |
591e6092c4e3569599f59785e0c04c57f4a59705 | 449d555969bfd7befe906877abab098c6e63a0e8 | /323/CH4/EX4.5/ex4_5.sci | b73a2f2fca27e80a7ae97fd2ac6ab3aed71faae3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,570 | sci | ex4_5.sci | funcprot(0)
function [polar] = rect2polar(x,y) //Function to convert rectangular coordinates to polar coordinates
polar=ones(1,2)
polar(1)=sqrt((x^2)+(y^2))
polar(2)=atan(y/x)
polar(2)=(polar(2)*180)/%pi
endfunction
function [rect] = polar2rect(r,theta) //Function to convert polar coordinates to ... |
08d17869e987cbeab3fc7eaef08f1c7a5d5eb4a7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /770/CH16/EX16.2/16_2.sce | e6f449a4d3e773f852127ed514457a73b054c242 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,342 | sce | 16_2.sce | clear;
clc;
// Example - 16.2
// Page number - 566
printf("Example - 16.2 and Page number - 566\n\n");
// Given
x_C2H6_1 = 0.33*10^(-4);// Solubility of ethane in water at 25 C and 1 bar
//componenet 1 : ethane (1)
//componenet 2 : water (2)
// Z = 1 - 7.63*10^(3)*P - 7.22*10^(-5)*P^(2)
//The phase ... |
885a8d86b8ff47e88958747bbb1bb3d5d9f5cbda | 449d555969bfd7befe906877abab098c6e63a0e8 | /1322/CH21/EX21.6/193ex2.sce | 3bd920570bc50ed48225a45baf5e02e8d9bf136d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 173 | sce | 193ex2.sce |
//volume of mass os gas at const. temp. varies inversly as pressure on it
clear
clc
close
//v=volume
//T=absolute temperature
//P=pressure
mprintf("\n v=k*T/P \n")
|
d67015d68c3ae1e3296469e1dccf0f55b21c7423 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1619/CH1/EX1.15.2/Example1_15_2.sce | 10eae776874c5f6429c5346aaa972a2b20b05701 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 419 | sce | Example1_15_2.sce | //Example 1.15.2
// to find maximum core diameter for single mode..
clc;
clear;
n1= 1.5; //RI of core..
del= 0.01; //Relative RI difference...
lamda= 1.3; //Wavelength of operation...
V= 2.4*sqrt(2); // Maximum value of V for GRIN...
a= V*lamda/(2*%pi*n1*sqrt(2*del)); //radius of core..
printf('The... |
c433679afda67453612cd307221e379c0db82e2c | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpicscifiles6/Anglemark.sci | 6deb302c07d4aaa59b4e0b6c05c2401bf04902f5 | [] | 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 | 703 | sci | Anglemark.sci | // 08.06.05
// 16.12.29 ( for too short segment )
function Out=Anglemark(varargin)
Nargs=length(varargin);
Eps=10^(-3);
PA=varargin(1); PB=varargin(2); PC=varargin(3);
r = 0.5;
if Nargs>=4
r = varargin(4)*r;
end
Out=[]; // 16.12.29
if r>min(norm(PA-PB),norm(PC-PB)) then
return;
end;
Cir=... |
383af6ad92df23b8da78b9d8514322b60b2b7f25 | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/qscatter/qscateasa2.sce | 98d8755a6f9063eb7ecf0b315ddbe9c2f13e9259 | [] | 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 | 2,155 | sce | qscateasa2.sce | //qscatter
exec('v.sce');
exec('f.sce');
exec('u.sce');
exec('tdl.sce');
exec('sigma.sce');
exec('numerov.sce');
jobname='wjob';
env=getenv('SGE_TASK_ID')
//env='1';
sgetid=msscanf(env,"%d");
outfile='job'+env+'.out';
matfile='results'+env+'.mat'
//partial wave analysis of scattering
deltah=0.01;
nsteps=200;
globa... |
17cb0b392ca7cb93fccd53c17324e60688e13b60 | eb7eeb04a23a477e06f3c0e3d099889caee468b4 | /src/examples/scilab/IoGenericScilabSimulation.sce | a242a0ebe20800ec51118ac5c2016958ba51c453 | [] | no_license | mikeg64/iome | 55699b7d7b3d5c1b006d9c82efe5136b8c909dfd | cc1c94433133e32776dcf16704ec4ec337b1b4a0 | refs/heads/master | 2020-03-30T15:57:33.056341 | 2016-04-13T09:24:27 | 2016-04-13T09:24:27 | 151,387,236 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 64,951 | sce | IoGenericScilabSimulation.sce | //To use these functions make sure the location of the IOME iogs application
//is on the path
//Linux export IOME_HOME=PATHTOIOME
//Linux export PATH=$PATH":$IOME_HOME/bin"
//Windows set IOME_HOME=PATHTOIOME
//Windows set PATH=%PATH%;$IOME_HOME/bin
function [vec]=stringtovec(stringvar, vsize, separator)
vec=... |
f78e7688388952bb26f0061df195059bb5b7d167 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2066/CH5/EX5.5.a/5_5a.sce | a8d707371485285347138a3e4bf7f6968f447e07 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 369 | sce | 5_5a.sce | clc
clear
//Initialization of variables
spg=0.93
mu=3.1e-3 //lb-sec/ft^2
gam=62.4
z=50 //m
p1=60 //psia
p2=25 //psia
//calculations
p1g=144*p1
p2g=144*p2 + spg*gam*z
dp=p1g-p2g
//results
if p1g>p2g then
printf("The flow is in upward direction")
else
printf("The flow is in downward direction")
... |
7b8af7534634b04148f68f40bf06f569421e700f | 096d61bcd0b0245a09367b8db59a879da7556131 | /SEM 4 Batch 2017/STUDY MATERIAL/CS/2.introducton to scilab/2.Introduction to scilab.sce | 0d29ba4c1ff0e817032c0f52690bc84ec97e5450 | [] | no_license | yash2032/College-Material-And-Assignments | 9f284cecf5ff29fa652e8d69bdbeab96cc5ff180 | d71d6305d64a3e1c91c0582f16b78f02df2ef548 | refs/heads/main | 2023-04-30T11:17:39.645415 | 2021-05-27T17:21:50 | 2021-05-27T17:21:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 617 | sce | 2.Introduction to scilab.sce | //sine function
x=0:0.1:10;
subplot(5,1,1);
y=sin(x);
xlabel('x');
ylabel('sin(x)');
plot(x,y);
//cosine function
z=cos(x);
subplot(5,1,2);
xlabel('x');
ylabel('cos(x)');
plot(x,z);
//tangent function
x=0:0.01:10
k=tan(x);
subplot(5,1,3);
xlabel('x');
ylabel('tan(x)');
plot(x,k);
//unit step function
i=1;
x=-20:0.01... |
b80f488afd3c35cf73e9c3018f637e504f7c461b | cb885e915b1817d0e57e8e2919ce696aeb263c6f | /ascii-20_views-olympus-turntable/src/comprehensive_notation/synthdata_trifocal.sce | 9d0c360331ec5bfdc07123513615ebeccfc25f58 | [
"CC-BY-4.0",
"CC-BY-2.0"
] | permissive | rfabbri/synthcurves-multiview-3d-dataset | abd044f6d71e3370c7eb32bf1b9c1c8dfb023eda | cc1cce7f68301f2b30ecb103847b8b13a93efed2 | refs/heads/master | 2020-03-29T10:16:29.944334 | 2019-10-31T01:22:13 | 2019-10-31T01:22:13 | 149,797,021 | 2 | 4 | null | null | null | null | UTF-8 | Scilab | false | false | 3,111 | sce | synthdata_trifocal.sce | cd /Users/rfabbri/lib/data/synthcurves-multiview-3d-dataset/ascii-20_views-olympus-turntable
// read 3 views
gama__1_vec_img=read('frame_0003-pts-2D.txt',-1,2)';
gama__2_vec_img=read('frame_0011-pts-2D.txt',-1,2)';
gama__3_vec_img=read('frame_0017-pts-2D.txt',-1,2)';
RC_1 = read('frame_0003.extrinsic',-1,3);
RC_2 = r... |
9f11909dd53d8a14d85b60ddaa6e8c965e3f461e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3311/CH8/EX8.12/Ex8_12.sce | c0b4a3973f938f46dea9155e16eb1ddb3da4a7d2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 458 | sce | Ex8_12.sce | // chapter 8
// example 8.12
// Determine the ON time of the chopper
// page-465
clear;
clc;
// given
Edc=230; // in V (dc source)
F=400; // in Hz (chopping frequency)
E0=150; // in V
// calculate
// Siince E0=alpha*Edc, therefore we get,
alpha=E0/Edc;
T=1/F;
// Since alpha=Ton/T, therefore we get,
Ton=alpha*T;
printf(... |
408c84a07b907f64716f82c13290f15b1514223c | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH26/EX26.4/Example26_4.sce | 2a4e2a6177c533ad552e8ab169c941adac7c3b5a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 405 | sce | Example26_4.sce | exec('electrostatics.sci', -1)
//Given that
R = 6.85*10^-2 //in m
q = 1.25*10^-9 //in C
//Sample Problem 26-4a
printf("**Sample Problem 26-4a**\n")
C = 4*%pi*Eo*R
U = q^2/(2*C)
printf("The electric energy stored is equal to %eJ\n", U)
//Sample Problem 26-4b
printf("\n**Sample Problem 26-4b**\n")
E = ... |
3277a383c0a081e42e7aea633cbe852588bf50be | 27701e67a76e2ffdea252af5f7d86bda74444744 | /exp1.sce | 82277c4dc3b1de200c0d9f72b4fa0d19ea0ecdb6 | [] | no_license | Madhus12/OS-lab | 34b5b130e911ffb6619b357187a31cf88e39660d | 3548c6b18e267007b587c51a1b0b76455bc1c7e6 | refs/heads/master | 2020-07-27T10:22:11.614419 | 2019-09-17T13:47:06 | 2019-09-17T13:47:06 | 209,058,110 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 756 | sce | exp1.sce | clc; clear; close;
disp ('NAME: Madhu ks' ) ;
disp ('SRN:PES1201802478' ) ;
n=input(enter the number of rows)
m=input(enter the number of columns)
for i=1:n
for j=1:m
A=input(enter the elements of metrix)
end
for i=1:n
B=input(enter the augmented metrix)
end
C=[A B]
a=c
for i=2:n
... |
4cab40d8c7b29db903cf7f451421e822b5bf8a70 | 449d555969bfd7befe906877abab098c6e63a0e8 | /683/CH21/EX21.2/VBELT_2.sce | 5e2bdc5d5027c94a93c83b65c3e07f584c379098 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 786 | sce | VBELT_2.sce | // sum 21-2
clc;
clear;
D=0.6;
d=0.3;
C=0.9;
m=0.193;
n=2;
N=1500;
u=0.3;
v=2*%pi*N/60*d/2;
P=150*10^3;
Tc=m*v^2;
//let T1-T2=T
T=P/(n*v);
thetaA=%pi/180*(180-(2*asind((D-d)/(2*C))));
thetaB=((2*%pi)-thetaA);
//Groove angle=b
b=17.5*%pi/180;
x=u*thetaA/sin(b);
y=exp(x);
c=(Tc*(1-y));
T2=(T+(Tc*(1-... |
b49c2fb0b3b247ecccde83fb4e3b2daa6841b406 | 449d555969bfd7befe906877abab098c6e63a0e8 | /10/CH6/EX5/cha6_5.sce | 9e01b753fa5a4ef47ab1e2dc8a7aaf3b6ae7c6c7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 889 | sce | cha6_5.sce | V=460;Phase=3;N=1200;Hp=125;
Ra=0.078;Xal=0.15;Xar=1.85;Nre=28.2;Nse=28.2;
Ia=sqrt(Phase)*V
Ia=121.4
Vt=V/sqrt(Phase)
Ea=Vt-(Ia*Ra)
Xs=Xal+Xar
function[x,y]=polar2rect(r,theta)
x=r*cos(theta*%pi/180);
y=r*sin(theta*%pi/180);
endfunction
[x1,y1]=polar2rect(Ea,0)
[x2,y2]=polar2rect(Xs,90)... |
085f3c45f3deb4ddbe939b638d30dc2cb6ecb67e | e813a70328417f198807f4d0e03258444276cbbc | /projects/vmtranslator/tests/GD/GD.tst | 3ed3a6bb5f8dc9fca310d19e66850760dd587844 | [] | no_license | gpdoud/nand2tetris | e604e92e36e21af52980c86a57154053b9284e78 | 3588ce229b1d3d83f1d6fdb9809ef61bc98cb7fa | refs/heads/master | 2021-07-09T20:55:48.391829 | 2020-08-26T12:43:29 | 2020-08-26T12:43:29 | 185,586,019 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 265 | tst | GD.tst | load GD.asm,
output-file GD.out,
compare-to GD.cmp,
output-list RAM[0]%D1.6.1 RAM[1]%D1.6.1 RAM[2]%D1.6.1
RAM[3]%D1.6.1 RAM[4]%D1.6.1;
set RAM[0] 256,
set RAM[1] 300,
set RAM[2] 400,
set RAM[3] 500,
set RAM[4] 510,
repeat 300 {
ticktock;
}
output; |
d7c106857c0676c2e7d130ec28b6ef328caa7c80 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3788/CH4/EX4.6.1/Ex4_6_1.sce | d5ea32ff08c94f3ea1ea9168b6af5f0a3999431f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 420 | sce | Ex4_6_1.sce | //Example 4.6.1
//Calculate the power op of an uplink transmitter
//Variables
clc
clear
Pr = -127
Gt = 50
Gr = 26
Lp = 207.2
Lta = 1.5
Lat = 0.5
Lpt = -2
Pin = 0-127
//Result
Pt = Pr - Gt - Gr + Lp + Lat + Lta - Lpt
printf("The transmitter output power is %f dBW \n",Pt)
Rainattenuation = 7
Ptrain = P... |
f04d0e68fb76b61354fbc8bc4dc69a7e844b94cc | 449d555969bfd7befe906877abab098c6e63a0e8 | /446/CH2/EX2.3/2_3.sce | c03b6bf6502cd115c57e2bed30d2d9710ddb02ee | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 276 | sce | 2_3.sce | clear
clc
disp('Exa-2.3'); // The problem is entirely theoretical hence following the standard procedure we obtain
printf('The time required for round trip is 2*L/(c*(1-(u/c)^2)). \n');
printf('The time required to swim across and return is 2*L/(c*sqrt((1-(u/c)^2)))'); |
4954263e55e36eaab64db1f674cafe6fb5427d6d | 91bba043768342a4e23ee3a4ff1aa52fe67f7826 | /cs/142/4/tests/test7.tst | bb2a46700cd6c2ae9dc8d5183431bc441019bd05 | [] | 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 | 62 | tst | test7.tst | type t1 = array 10 of int;
main()
{
var a : t1;
b = 1;
} |
63b89018840a838dc77d8458eaf773aebae545c6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2858/CH4/EX4.4/Ex4_4.sce | c6d83542920fca15197ebf321909530eea39b459 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 411 | sce | Ex4_4.sce | //example 4.4
clc; funcprot(0);
B=1;
L=1.5;
c2=48;
ca=108;
D=1;
H=1;
Gamma=16.8;
FS=4;
qu=(1+0.2*B/L)*5.14*c2+(1+B/L)*2*ca*H/B+Gamma*D;
c1=120;
gamma1=16.8;
Df=1;
qt=(1+0.2*B/L)*5.14*c1+gamma1*Df;
disp(qt,"qt in kN/m^2");
disp("no need to calculate qt since it is not useful for calculation")
disp(qu/FS... |
745fe536530015f9c996f359718abc83ff9ae5f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1631/CH4/EX4.20/Ex4_20.sce | 3ab4857925acb50904ef0b0bbc79b58733626261 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 400 | sce | Ex4_20.sce |
//Caption: Quantizing noise ratio
//Example 4.20
//page no 196
//find signal to noise ratio
clc;
clear;
SNR=40;
SNRO=10^(SNR/10);
//SNR=3(q^2)/2, Signal to Quantization noise ratio
q=sqrt((2*SNRO)/3);
q=ceil(q);
v=log2(q);//q=2^v Quantization levels
v=ceil(v);
snr=1.76+6.02*v;//output Signal to Quanti... |
8199950cd85bf2cd18bd0f62daee5e08c5f806fb | 449d555969bfd7befe906877abab098c6e63a0e8 | /98/CH10/EX10.13/example10_13.sce | ba13ac8ef34da82648469ffb77f91f7f899db0ba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,125 | sce | example10_13.sce | //Chapter 10
//Example 10_13
//Page 247
clear;clc;
f=50;
ll=150;
r=0.1;
xl=0.5;
y=3*1e-6;
pd=50*1e6;
v_r=110*1e3;
pfr=0.8;
tr=r*ll;
ty=y*ll;
txl=xl*ll;
z=tr+%i*txl;
vr=v_r/sqrt(3);
ir=pd/sqrt(3)/v_r/pfr;
ir_p=ir*(pfr-%i*sin(acos(pfr)));
ic1=vr*%i*ty/2;
il=ir_p+ic1;
vs=vr+il*z;
ic2=vs*%i*ty/2;
is=il+ic2;
printf("To... |
3c99bdd6137e5b9f499a43b9745e29067e4e8e05 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3492/CH1/EX1.10/Ex1_10.sce | 55b46cae68ed9f6f4a4313003fc77c9e99e5e253 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 532 | sce | Ex1_10.sce | clc
//Chapter1
//Ex_1.10
//Given
NA=6.023*10^23 //mol^-1
d=2.33 //density of Si in g/cm3
Mat=28.09//g/mol
Ev=2.4 //ev/atom
Ev=2.4*1.6*10^-19 //J/atom
k=1.38*10^-23 //J/K
T=300 //kelvin
T1=1000//degree celcius
T1=T1+273 //in kelvin
N= (NA*d)/Mat
//at room temperature
nv=N*exp(-(Ev/(k*T)))
disp(nv,"concen... |
f0e5160f45d1c56ebd19e84ee5a78cfdba34c32c | e3c27edbd2f0a8e733cee84b90a906c0a6d7c176 | /sem_3/c/olimp/provoda_71_2.tst | 17885228ce11b2cdd5fd14e1d0307f356b2076db | [] | no_license | dmitryhd/dmitryhd_code | c32223da5506156a068bbb0f20ad4cd06fdf2166 | 5173f6f74d4fa1c9c5fba9ffc4fc9134c56f4b0c | refs/heads/master | 2021-01-17T11:56:50.221745 | 2011-04-26T18:31:58 | 2011-04-26T18:31:58 | 1,650,576 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 19 | tst | provoda_71_2.tst | 6 6
1 2 3 5 8 13
|
431d12304470bd66e3c729a41c81ae1affe12596 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set7/s__elelectronics_instrumentation_and_measurements_U._S._Shah_2195.zip/_elelectronics_instrumentation_and_measurements_U._S._Shah_2195/CH2/EX2.3.4/ex_2_3_4.sce | 6d607b9b23dd568e1a65d59830d5caa8506ac32b | [] | 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 | 260 | sce | ex_2_3_4.sce | errcatch(-1,"stop");mode(2);//Example 2.3.4: sensitivity and deflection error
;
;
//given data :
C=4;// change in output in mm
M=8;// magnitude of input in ohm
S=C/M;
disp(S,"sensitivity,S(mm/ohm) = ")
D=M/C;
disp(D,"deflection factor,D(ohm/mm) = ")
exit();
|
95336cdedbbd8967735364642d2bb9677d85fda7 | d1a2737ec744ffbba1165afa7b05f26a4076f513 | /Lab 3/Q3.sce | fc30631fa7cadf21caa20fde698e1919ae4bac83 | [
"MIT"
] | permissive | ipsitmantri/EE-324-Control-Systems-Lab | 4e37a3de51f4114ba0ea281cbb1da78a6c4815bb | b34c45efc3539005603b2e76c1665d6636f80f88 | refs/heads/master | 2023-04-03T10:42:34.548542 | 2021-04-13T14:11:21 | 2021-04-13T14:11:21 | 357,540,595 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,228 | sce | Q3.sce | clc; clear;
function [rise_time, pos] = TrnPos(t, sl)
outputs = csim('step', t, sl);
ss_val = outputs(size(outputs, 2));
peak_val = max(outputs);
rise_time_low = 0;
rise_time_high = 0;
for i=1:size(outputs, 2)
if(outputs(i) - (0.1 * ss_val)>= 5*1e-4)
rise_time_low = t(i);
... |
d1e3b5aeaefd0feb8aa194eee1bae82516624a79 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3557/CH13/EX13.4/Ex13_4.sce | df74c7af5854f176c96264ebf9458c9cd907828b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex13_4.sce | //Example 13.4//
S=32.06;//amu //atomic mass of sulphur //(From Appendix 1)
C=12.01;//amu //atomic mass of carbon //(From Appendix 1)
H=1.008;//amu //atomic mass of hydrogen //(From Appendix 1)
a=5;//Number of atoms
b=8;//Number of atoms
ms=S/((a*C)+(b*H))*100
mprintf("ms = %f ",ms)
c=20;//g //amount of sulphur... |
4b443d695487159beae8654aae0cc616be0612d2 | e223a3388730b3a8ab63f7565156d5bf7a65e44b | /scilab/monitor_sensor.sce | e98491a693d04724a0dd19a503e57724295a426a | [] | 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 | 1,454 | sce | monitor_sensor.sce | n0 = 4096;
n1 = 256;
gx_hist = zeros(1,n0);
gy_hist = zeros(1,n0);
gz_hist = zeros(1,n0);
ax_hist = zeros(1,n0);
ay_hist = zeros(1,n0);
az_hist = zeros(1,n0);
figure(1);
clf()
subplot(211)
plot2d([],rect=[1,-2^15,n0,2^15])
xpoly([],[]);
line_gx = gce();
line_gx.foreground = 2;
xpoly([],[]);
line_gy = gce();
line_gy.f... |
24d6b345d05f58b4b4743670ab92db97d5991ec5 | 931df7de6dffa2b03ac9771d79e06d88c24ab4ff | /123.sce | 8d462256aa627de85cdce05c1203e4a4bc1c0190 | [] | no_license | MBHuman/Scenarios | be1a722825b3b960014b07cda2f12fa4f75c7fc8 | 1db6bfdec8cc42164ca9ff57dd9d3c82cfaf2137 | refs/heads/master | 2023-01-14T02:10:25.103083 | 2020-11-21T16:47:14 | 2020-11-21T16:47:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 54,187 | sce | 123.sce | Name=123
PlayerCharacters=Character Profile
BotCharacters=Shinji Bot.bot;Pigeon.bot;Pigeon.bot;Pigeon.bot
IsChallenge=true
Timelimit=60.0
PlayerProfile=Character Profile
AddedBots=Pigeon.bot;Pigeon.bot;Pigeon.bot;Pigeon.bot
PlayerMaxLives=0
BotMaxLives=0;0;0;0
PlayerTeam=1
BotTeams=2;2;2;2
MapName=boxer.map
... |
13101c2c2f169d9f3f92d111106ba970dc51b380 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2417/CH9/EX9.10/Ex9_10.sce | 778440a3ea0c8f9d5c1b5b532c60366eabf3589f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 545 | sce | Ex9_10.sce | //scilab 5.4.1
clear;
clc;
printf("\t\t\tProblem Number 9.10\n\n\n");
// Chapter 9 : Gas Power Cycles
// Problem 9.10 (page no. 470)
// Solution
//For four cycle,six cylinder engine,
//Using the results of problem 9.5,
hp=100; //Horsepower //Unit:hp
L=4/12; //Unit:ft //stroke is 4 in.
A=(%pi/4)*(3)^2*6; ... |
9cb17934498e69ae73c7a47f1748fbd3f3247d04 | bf63c70e054c641e89a6f7a4623a7634ce9a8a9d | /legacy/bofor_2005/test/SEP1.prev.tst | 2f645bf4dff10a92887cfd2415288b112a6fa1f0 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gfis/jextra | 9c8c030faf35f0834843ed8f07cc061ca9d65a64 | bdad8fd33fdf633cf2ff4c1879e1f61935c3d636 | refs/heads/master | 2022-03-13T21:31:56.132450 | 2022-02-12T21:27:40 | 2022-02-12T21:27:40 | 30,127,957 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,054 | tst | SEP1.prev.tst | STASUB= 256 , STASUH= 10
<SEPUSH val="17 10 256 " />
<SEPUSH val="18 17 256 " />
SETPOP: 17
SETPOP: 18
<SEPUSH val="17 18 256 " />
<SEPUSH val="18 17 256 " />
<sets>
<set name="EMITS " head="2 " tail="2 > </set>
<set name="EMITT " head="3 " tail="3 > </set>
... |
14f2373da3a3050075049fc703c48be3a477671b | 449d555969bfd7befe906877abab098c6e63a0e8 | /14/CH8/EX8.4/example_8_4.sce | 9b23260a1e957a7141bf41b18e21975bdf5dff5e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,283 | sce | example_8_4.sce | //Chapter 8
//Page 221
//Example 8.4
//Tapchange
clear;clc;
//Given
Z = 0.8 + %i * 0.6;
V2 = 1;
Z_Ta = %i * 0.1;Z_Tb = %i * 0.1;
Z1_Tb = %i*0.1;Z2_Tb = %i*0.1;
a=1 * (cos(3*%pi/180) + %i * sin(3*%pi/180));
I2 = - V2 / Z;
Y21_Ta = - 1/Z_Ta;Y22_Ta = 1/Z_Ta;
Y21_Tb = Y21_Ta / a';Y22_Tb = Y22_Ta / (abs(a))^2;
printf("\n Y2... |
3a6a25e26ebd157ff6bbc35b809d26c72854f4aa | d088ae9e719eeef13286d537a52c3c2f5163f1e4 | /ehl_pruefstand/kupferklebeband.tst | 721e0869731dab4e8aeef00feef56d6437724085 | [] | no_license | ngocminhdao88/dao_masterarbeit | a83fa0d1bcab9b08d40e1bf7d6f22d7c7cd6c8a5 | e9f4207a1d86d92ed84f3facefe187c735d24541 | refs/heads/master | 2018-09-21T16:26:09.667374 | 2018-06-15T10:28:45 | 2018-06-15T10:28:45 | 106,830,933 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 114 | tst | kupferklebeband.tst | Varianten_Name des Modells Regenerierungsstatus
KUPFERKLEBEBAND_FLATKUPFERKLEBEBAND Erfolgreich
|
bb36d099e9e85a051af31b5cc779f5908f3794fa | 449d555969bfd7befe906877abab098c6e63a0e8 | /2024/CH12/EX12.2/12_2.sce | 4b88e03ee19d6fbf8c7349a42eea650c5903a00b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 420 | sce | 12_2.sce | clc
//Initialization of variables
dhab=-122.6
ha=348.5
eta=0.85
hf=471.6
hfg=731.6
hc=1203.2
dhcd=384.4
hf2=28.06
hfg2=1059.9
//calculations
hbd= ha - dhab/eta
x=(hbd-hf)/hfg
sbd=0.6944
hdd=hc- dhcd/eta
xdd=(hdd-hf2)/hfg2
sdd=1.5768
Qa=hc-hbd
etat=(dhcd+dhab/eta)/Qa
W=dhcd+dhab/eta
rw= W/dhcd
//re... |
0228c57ecdf2959614a80d69ee6f1e32569a4b20 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3768/CH12/EX12.3/Ex12_3.sce | fce20d66469cec22a70a134efb5ec74f12baa4b8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex12_3.sce | //Example number 12.3, Page number 264
clc;clear;
close;
//Variable declaration
n1=1.55; //Core refractive index
n2=1.50; //Cladding refractive index
//Calculation
NA=sqrt(n1**2-n2**2); //numerical aperture
//Result
printf("numerical aperture is %.2f",NA)
|
25cd2d2992aeddc9031fc24e950f9bbce45323d4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /68/CH2/EX2.1/ex1.sce | 7398cc421f935e58b2b082306be416d3d2b5ca6a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 881 | sce | ex1.sce | // Example 2.1 : Closed loop and open loop gain
// Consider inverting configuration
// 2.1a
R_1=1000; // (ohm)
R_2=100*10^3; // (ohm)
A=10^3; // (V/V)
disp(A,"A (V/V)")
G=-R_2/R_1/(1+(1+R_2/R_1)/A);
disp(-G,"G")
e=(-G-(R_2/R_1))/(R_2/R_1)*100;
disp(e,"e (%)")
v_1=0.1; // (V)
v_1=G*v_1/A;
disp(v_1,"v_1 (V... |
67ff1224b2c663d00f557b3a6950fcb6cec7c86d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2513/CH5/EX5.6/5_6.sce | a50a1c54cd44d99549755c604987ae9f7ac9e3d3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 226 | sce | 5_6.sce | clc
//initialisation of variables
r=48//in
A=450//gpd/acre
B=8000//gpd/mile
S=5280/350//manholes/mile
//CALCULATIONS
C=(B-S*100)/12//gpd/mile
//RESULTS
printf('the ground a quarter of it eventually =% f gpd/mile',C)
|
97e0397259e2c9f4b15c6d93d4113a3979686561 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4.1/Unix-Windows/scilab-2.4.1/examples/link-examples/ext1f.sce | dcf49124cf02e62c3a20bf9729b61454bc02cdc2 | [
"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 | 236 | sce | ext1f.sce | //Copyright INRIA
//(very) simple example 1
files=G_make(['/tmp/ext1f.o'],'ext1f.dll');
link(files,'ext1f');
a=[1,2,3];b=[4,5,6];n=3;
c=call('ext1f',n,1,'i',a,2,'d',b,3,'d','out',[1,3],4,'d');
if norm(c-(a+b)) > %eps then pause,end
|
0295a6d391f49a7867d71b206ab5eb958d9adb05 | 449d555969bfd7befe906877abab098c6e63a0e8 | /896/CH12/EX12.1/1.sce | ecdf40dd03d2704496b7db2fd42c8ef75515c952 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 335 | sce | 1.sce | clc
//Example 12.1
//Calculate the eta and slip velocity
ratio_Q=10//dimentionless (ratio of Qg to Ql)
x=3.5/ratio_Q//dimentionless
eta=1/(1+x)//dimentionless
printf("Eta = %f\n",eta);
Vl=2.06//ft/s
Vl_avg=Vl/(1-eta)//ft/s
Vg_avg=ratio_Q*Vl/eta//ft/s
V_slip=Vg_avg-Vl_avg//ft/s
printf("The slip velocity is %f... |
6b880aac2b9ca2f42e04eac55e827f6733dc103c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1370/CH7/EX7.30/exp7_30.sce | 4b0dd348ddff47c27f30b44965b46c73a38839f1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 175 | sce | exp7_30.sce | //example7.30
clc
disp("(I_01)=0.1 uA, (T_1)=20 degree celcius, (T_2)=40 degree celcius")
i=(0.1)*(2^(20/10))
disp(i,"Therefore, (I_02)[in uA]=(I_01)*(2^(delta(T))/10)")
|
2f89487cc91a3d1574c161d3f25980665049eeda | b23687e2eb02bcb6d0f581b7975f42c496faeda1 | /SignalPlusNoise.sce | 646f1042a145d5d3f6cf219f33f5e4ef3d4ad0d8 | [
"MIT"
] | permissive | harvishj/Scilab | bd3fbd3e679eb07aa088ff2bab40d491c6499770 | 9daada512f42ea6f52199a34d6b18e64b107af94 | refs/heads/master | 2021-07-14T15:06:03.621923 | 2020-10-05T06:35:43 | 2020-10-05T06:35:43 | 213,328,984 | 1 | 3 | MIT | 2020-10-05T06:35:44 | 2019-10-07T08:16:52 | Scilab | UTF-8 | Scilab | false | false | 551 | sce | SignalPlusNoise.sce | clear;
clf;
dt = 1/10000;
// This function adds noise to a normal wave and plots it
t = -0.01:dt:0.01;
noise = 1.*rand(t);
x = cos(200.*(%pi).*t);
y = noise + x;
subplot(3,1,1);
plot(t,noise);
xgrid(1);
xlabel("T", "fontsize", 3);
ylabel("X", "fontsize", 3);
title("Noise", "fontsize", 3);
subplot(3,1,2);
plot(t,x... |
29d6517e72808269bf28c3422bd383122aad2573 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3554/CH13/EX13.6/Ex13_6.sce | 03a3a4fd852d666520121ed88db11808196cacba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex13_6.sce | // Exa 13.6
clc;
clear all;
// Given data
K=0.32; // Coupling co efficient
Op=1;// Output in oz.in.
// Solution
// 1 oz.in.= 1 oz.in. * (1 ft/12 in.) * (1 lb/16 oz) * (1.3561/1 ft lb) = 7.06*10^-3 J ;
Elec_mech= 7.06*10^-3; // Electrical energy converted to mechanical energy(J)
Ee=Elec_mech/K; // A... |
6bb4df17b0289b24005a2ae24e7c82faada45d56 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/macros/percent/%s_a_hm.sci | 075ac69724b2568eb7962654af44b220e1b66e2f | [
"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 | 288 | sci | %s_a_hm.sci | function M1=%s_a_hm(M1,M2)
// Copyright INRIA
// hypermatrix + scalar
if and(size(M1)==[1 1]) then
M2('entries')=M1+M2('entries')
else
dims=M2('dims')(:)
dims(find(dims==1))=[]
if and(dims'==size(M1)) then
M2('entries')=M1(:)+M2('entries')
else
error(9)
end
end
|
6a77902e3474ea0c71d39f979ddafdc59d49ab6d | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/CreatingPlots/testparam3d.sce | 45091dfcb7ec6977854970c6e99dd520bdbd70f6 | [] | no_license | markusmorawitz77/Scilab | 902ef1b9f356dd38ea2dbadc892fe50d32b44bd0 | 7c98963a7d80915f66a3231a2235010e879049aa | refs/heads/master | 2021-01-19T23:53:52.068010 | 2017-04-22T12:39:21 | 2017-04-22T12:39:21 | 89,051,705 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 258 | sce | testparam3d.sce | function [x,y,z]=helix(t)
x=cos(t)
y=sin(t)
z=t
endfunction
// compute coordinates of points
t=[-5*%pi:0.02:5*%pi];
[x,y,z]=helix(t);
// display the curve
clf;
param3d(x,y,z,alpha=15,theta=50)
E=gce();E.foreground=5 // modify the curve's color
|
2afd99466beac16012867ab15e8d4173cd01bb0a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1322/CH2/EX2.6/23ex2.sce | 7c9c7a0b8157d971eea211af8e0a83f85a9700fe | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 83 | sce | 23ex2.sce |
//3x^4/6x^6
clear;
clc;
close;
x=poly(0,'x');
p1=3*x^4;
p2=6*x^6;
p=p1/p2
|
5158e025ced5d245238b0e70e4bc2f4792d692e4 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4/Unix-Windows/scilab-2.4/macros/util/%sp_sum.sci | f10e24a0f73c0b78db7b032c2d139d0cf926b7f5 | [
"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 | 170 | sci | %sp_sum.sci | function a=%sp_sum(a,flag)
// Copyright INRIA
[m,n]=size(a);
if flag==2|flag=='c' then
a=sparse(a*ones(n,1))
end
if flag==1|flag=='r' then
a=sparse(ones(1,m)*a);
end
|
adc9eba878097c89cd5006805c9b860215476daf | 449d555969bfd7befe906877abab098c6e63a0e8 | /443/DEPENDENCIES/20_2_data.sci | 62d25eed75e60bcafbae45f3052e42f0c271e7b9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 373 | sci | 20_2_data.sci | //bore ratio
br=1.2;
//compression ratio
cr=16;
//Speed of engine(in rpm)
s=1500;
//exhaust pressure(in Pascal)
ep=(1.05)*(10^5);
//Inlet Air temperature(in degree)
atemp=37;
//Fuel flow rate(in kg/h)
ffr=3;
//Air assumed(in kg/h)
a=130;
//Diameter (in m)
d=0.1;
//Fuel to air ratio
far=0.045;
//Ambien... |
b1670424b28a88fffc42875430fa6a118e689266 | be70eb1ce95e82a3041bedbc88c6a0fe9500cf24 | /functions/imread/code/Test.sce | 32965f3d8a74bf36de3a136dc7f588243a5bfbfc | [] | 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 | 135 | sce | Test.sce | clear
clc
exec builder_gateway_cpp.sce
exec loader.sce
bl = aimread('color.tif')
disp("XXXXXXX")
disp(bl(1))
disp(bl(2))
disp(bl(3))
|
38cc1442539d6af77df0db9523da459dfb58491f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2006/CH12/EX12.7/ex12_7.sce | 084b6534d7c562783dc2d77abcab2f5f76987834 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,307 | sce | ex12_7.sce | clc;
y1=0.5; // Molecular mass of CH4 in kmol
y2=0.5; // Molecular mass of C3H8 in kmol
T=363; // Temperature of gas in kelvin
p=5.06; // Pressure of gas in MPa
v=0.48; // volume of cylinder in m^3
R_1=8.3143; // Universal gas constant of air in kJ/kmol K
// (a).Using kay’s rule
// let component 1 refer to me... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.