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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c1a20b8a63dd491de3f4573701160f42750a138b | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set9/s_Engineering_Physics_K._V._Kumar_3537.zip/Engineering_Physics_K._V._Kumar_3537/CH7/EX7.21/Ex7_21.sce | 0ce0540373259874cad7cca3c57c2711c02d12a8 | [] | 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 | 192 | sce | Ex7_21.sce | errcatch(-1,"stop");mode(2);//Example 7_21
;
;
//To calculate the refractive index of core
delta=0.14
n2=1.3
n1=n2/(1-delta)
printf("The refractive index of core is %.2f",n1)
exit();
|
77a29e13479212b518bace808f2f720f4cf0ad1a | 0577305335a94b42b5326da932fa216f0a3be24b | /Assignment 1/LU_decomposition.sce | 8bc34ad8045bd73d61cf2bafcdc2b03f9e9f40aa | [] | no_license | RITIKHARIANI/Scilab-Assignment | 540ff67cce176b49c556e7d21cebbb03a8653e0f | b979fb6771f0e0855fa632a216a54aca892114ea | refs/heads/master | 2020-12-18T20:37:55.331452 | 2020-06-03T10:49:33 | 2020-06-03T10:49:33 | 235,514,808 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,128 | sce | LU_decomposition.sce | //LU decomposition
//To solve system of linear equations
format('v',5);
//Input of 3x3 matrix
disp('Please enter the matrix A');
a11=input("Enter a11: ");
a12=input("Enter a12: ");
a13=input("Enter a13: ");
a21=input("Enter a21: ");
a22=input("Enter a22: ");
a23=input("Enter a23: ");
a31=input("Enter a31: ");
a32=inp... |
c4f509f13c7a71894ab8dd2d6ca1adbd263044ea | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH2/EX2.5/Ex2_5.sce | 4cdb072f6f479f048edaf6cac41dc69f6cfb70e0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 491 | sce | Ex2_5.sce | //Variable declaration
Vgs=12 //gate to source voltage(V)
Vt=4 //threshold voltage(V)
Id=12.8 //drain current(mA)
K=0.0002 //device parameter
Vdd=24 //drain voltage(V)
Vds=8 //drain to source voltage(V)
Vgs=8
... |
014c58e98d0e9e7ecb113d928681846e20c69b43 | ed5e7aeae2745973cd8038caec7b1fce3cab8914 | /analyze/loadData.sce | b037dad17a4a1acc90cc30bd2b1a6ce16a41184b | [] | no_license | cmmurray/soccer | ff246d1a61cb6f6a43e7edd3f7b92802a48cb155 | 0a7b709e244db8d7cc56a5ee1361ecef7ae5da8b | refs/heads/master | 2020-05-09T18:09:04.531264 | 2015-01-05T23:13:52 | 2015-01-05T23:13:52 | 13,311,958 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 670 | sce | loadData.sce | clear;
clc;
stacksize('max');
data = read_csv('../getdata/Data/master.csv');
//split headers and data
headers = data(1,:);
data = data(2:$,:);
hg = round(strtod(data(:,5)));
ag = round(strtod(data(:,6)));
hgh = round(strtod(data(:,8)));
agh = round(strtod(data(:,9)));
tg = hg + ag;
tgh = hgh + agh;
//Fix some things... |
2a71d42080782f808c5c4e438a3bbe8c485b5a88 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1754/CH2/EX2.1/Exa2_1.sce | 8fb69a02a5ba24d457d527bb6e3e5cdc76635d8d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 301 | sce | Exa2_1.sce | //Exa 2.1
clc;
clear;
close;
//Given data
deltaIB=50;//in uA
deltaIC=1;//in mA
deltaIC=deltaIC*10^3;//in uA
Beta=deltaIC/deltaIB;//unitless
disp(Beta,"Current Amplification Factor,Beta :");
Alfa=Beta/(1+Beta);//unittless
disp("Current Amplification Factor,Alfa :"+string(Alfa)+" or 20/21"); |
1ab8dd6752e255f982c3fbb3c0df0fa031822c81 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3845/CH5/EX5.1/Ex5_1.sce | 118dad4436b122a82487d6dd541d8a2d3e97072e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 406 | sce | Ex5_1.sce | //Example 5.1
f_k=45;//Friction (N)
m=62;//Mass of skier (kg)
g=9.80;//Acceleration due to gravity (m/s^2)
theta=25;//Inclination of slope (deg)
N=m*g*cosd(theta);//Normal force perpendicular to slope (N)
mu_k=f_k/N;//Coefficient of kinetic friction
printf('Coefficient of kinetic friction = %0.3f',mu_k)
//Opens... |
3d571df89f6cda7cf2cc155be28a38a5a7da891a | 449d555969bfd7befe906877abab098c6e63a0e8 | /716/CH2/EX2.5/Solved_Ex2_5.sce | aeab012803e53693c4541cf23da5defab1203efd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Solved_Ex2_5.sce | //sketch x(-t) and x(2-t)
//for x(t)=t for 0<=t<=3 and x(t)=0 for t>3
clc;
clear;
clf;
t=-5:0.01:5;
x=t.*(t>=0&t<=3)+0.*(t>3);
subplot(131)
plot(t,x);//displays original function x(t)
xtitle('the original signal x(t)=t for 0<=t<=3','time t','signal x(t)');
t=-1*t;
subplot(132)
plot(t,x);//displays x(-t)
... |
e56595fb8737120f72ee1104d79dd711ea55f5cd | 7b040f1a7bbc570e36aab9b2ccf77a9e59d3e5c2 | /2-DOF_manual/2dof/cl3_pi_4.sce | 862b8dcee8b1caa7ac9af46d86f62e6e18058efc | [] | no_license | advait23/sbhs-manual | e2c380051117e3a36398bb5ad046781f7b379cb9 | d65043acd98334c44a0f0dbf480473c4c4451834 | refs/heads/master | 2021-01-16T19:50:40.218314 | 2012-11-16T04:11:12 | 2012-11-16T04:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 23,760 | sce | cl3_pi_4.sce | 0.000E+00 0.740E+01 0.390E+02 0.276E+02
0.500E+00 0.740E+01 0.390E+02 0.276E+02
0.100E+01 0.750E+01 0.390E+02 0.275E+02
0.150E+01 0.750E+01 0.390E+02 0.275E+02
0.200E+01 0.750E+01 0.390E+02 0.275E+02
0.250E+01 0.750E+01 0.390E+02 0.275E+02
0.300E+01 0.750E+01 0.390E+02 0.275E+02
0.350E+01 ... |
0d15b3145044460360b830ea1a36047197459a45 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2066/CH4/EX4.1/4_1.sce | 9d0180e9bfc369b1ce04ea9e64d0611a6984da1d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 355 | sce | 4_1.sce | clc
clear
//Initialization of variables
rho=1.5 //g/cc
g=32.2 //ft/s^2
dzds=-0.5
x1=0
x2=3
//calculations
function dpds = func(s)
dpds=-rho*g*dzds - rho*(3+9*s)*9
endfunction
r1=func(x1)
r2=func(x2)
//results
printf("At the upper end, dp/ds = %.1f lb/ft^2 per foot",r1)
printf("\n At the lower end, d... |
2f59c1eddba1ac2352cc960eb8b9a404b2abd632 | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects - Kopie/SCHI/DZ59LCP/ATWM1_Working_Memory_MEG_DZ59LCP_Session2/ATWM1_Working_Memory_MEG_Nonsalient_Cued_Run2.sce | 1d4de41778322e66d2e7db80673d91cc6e365cbe | [] | no_license | atwm1/Presentation | 65c674180f731f050aad33beefffb9ba0caa6688 | 9732a004ca091b184b670c56c55f538ff6600c08 | refs/heads/master | 2020-04-15T14:04:41.900640 | 2020-02-14T16:10:11 | 2020-02-14T16:10:11 | 56,771,016 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 49,599 | sce | ATWM1_Working_Memory_MEG_Nonsalient_Cued_Run2.sce | # ATWM1 MEG Experiment
scenario = "ATWM1_Working_Memory_MEG_salient_cued_run2";
#scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
scenario_type = trials; # for MEG
#scan_period = 2000; # TR
#pulses_per_scan = 1;
#pulse_code = 1;
pulse_width=6;
default_monito... |
251346a799d57d08c0697413a0659edceda7ed6b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3673/CH7/EX7.a.13/Example_a_7_13.sce | 4df712d540525872d2bb3c5f0310d3976ed218e6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 541 | sce | Example_a_7_13.sce | //Example_a_7_13 page no:280
clc;
V_abmag=20;
V_abang=0;
V_abreal=20;
V_abimag=0;
V__abmag=5*5;
V__abang=0+53.13;
V__abreal=15;
V__abimag=19.99;
V___abmag=0;
V___abang=0;
//calculating the voltage across AB
Vab=V_abreal+V__abreal+(V_abimag+V__abimag)*%i;
Vabmag=sqrt(real(Vab)^2+imag(Vab)^2)
Vabang=atand(... |
bc607a78af6916b1c80bfce6be51e23d13c1b690 | 4a1949be12fbe9a81d9308381b34c611e65877ca | /tests/execution/test_builtins.tst | 87a02a53333526a2bd5c6eb38e4885b27f94c24b | [] | no_license | ng88/trad | 26439d8fe2284ece19d6fbfaa397d3f6f0d13e78 | e4d3d4d56928539144d30c5c49e01e65c9b8729c | refs/heads/master | 2020-12-05T07:31:25.854231 | 2008-02-29T10:15:34 | 2008-02-29T10:15:34 | 67,351,952 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 493 | tst | test_builtins.tst |
class MaClasse
public MaClasse() {}
public void main()
{
VAR string s1, ret;
VAR integer n, f;
prints("Entrez une chaine :\n");
s1 := getchar();
prints("Entrez une position de depart :\n");
f := getint();
prints("Entrez une longueur :\n");
n := getint();
ret := substring(s1, f, n);
prints(... |
838818da5a62d90051cb1dc2c76ba05f3ff30f8b | 4ddcc4e4acac0192329e4214a1fe13e7db9341ee | /Morse2.sci | dc408543c0f2ea23f7928d83ea42506542b873ef | [] | no_license | Aditisharma1993/Introduction-to-Variational-Monte-Carlo-approach | ea9cf6c23061df50ba9db0d6fa023036a3957973 | 24a559cb8698ffa96617a5beb25ae3214464326c | refs/heads/main | 2023-02-04T08:38:25.562650 | 2020-12-27T15:21:30 | 2020-12-27T15:21:30 | 324,772,402 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,932 | sci | Morse2.sci | //Scilab code to determine model parameters for HCl molecule using VMC}
function [var_n] = VMCHCl(var_o,NumOfItns,I)
//Written by Aditi and O.S.K.S. Sastri
// var_o is an array consisting of model parameters given as input
// NumOfItns denotes number of iterations
// I defines limits of interval range [-I,I] in wh... |
211f01a63f00e3c72632b043c96577b9061d32a7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH15/EX15.11/11.sce | f80dd41a572c40ecb5f491b6f4e3559f28bfbead | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 445 | sce | 11.sce | clc
r1=0.06; //m
r2=0.08; //m
k_A=42; //W/m 0C
k_B=0.8; //W/m 0C
t_hf=150; //0C
t_cf=20; //0C
h_hf=100; //W/m^2 0C
h_cf=30; //W/m^2 0C
//Q=2.1*2*%pi*r*L kW
//Q=0.989*L*10^3 W
//Q=2*%pi*L*(t_hf-t_cf)/(1/h_hf/r1 + log(r2/r1)/k_A + log(r3/r2)/k_B + 1/h_cf/r3)
//By solving above equation, using hit and tria... |
fab36be2306a02cf37fafab5cd308230c75b046d | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.0/macros/elem/asin.sci | 5e9024cab13bf35a1e820cfcd6da82c1752eedcc | [
"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 | 493 | sci | asin.sci | function [t]=asin(x)
//Syntax : [t]=asin(x)
//
//Sine-inverse of x
//Entries of vector x must be in [-1,+1]
//Entries of t are in ]-pi/2,pi/2[ x ]-inf,+inf[
// -pi/2 x [0,+inf] and pi/2 x ]-inf,0] (real x imag)
//
//!
if type(x)<>1 then error(53),end
[m,n]=size(x)
if m<>n then t=-%i*log(%i*x+sqrt(o... |
28bd6a881a0ae7b148a78a8a3e4b957ecafd46f8 | 7c129ce7f747d44e6c7cedea4c007088e87aa90c | /Programs/Overlap_Save.sce | 11f18fe5336e596296c9f607f0f7e8f8f8c8c1c1 | [] | no_license | KilariSandhya/Digital-Signal-Processing | 08d97a6d46ff46c533c7a2114c19883980c85e38 | bad9dab8f5e02a8f1638ce20351e9eba1a0a11d0 | refs/heads/master | 2022-11-18T03:23:47.628061 | 2020-07-20T07:46:02 | 2020-07-20T08:00:23 | 281,047,630 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,187 | sce | Overlap_Save.sce | clc;close;clear;
[x,Fs,bits]=wavread("machali.wav");
Fs=8000;
bits=16
fm=3000 //freq of noise signal given
t=0.0001:1/Fs:length(x)*1/Fs;
xn=sin(2*%pi*fm*t);
y=x+xn;
h=[1 -2*cos(2*%pi*(3000/Fs)) 1]; //impulse response of filter
//overlap and save method
//getting values of x1,x2,x3.....
i=1; j=1;
r(1,1)=0;
r(1,2)=0;
j... |
7bd2419a65fd1581bb786692203062a09ecd1c8d | 449d555969bfd7befe906877abab098c6e63a0e8 | /260/CH6/EX6.7/6_7.sce | 6c10c1568825ad286ca1f47cd74d00e13ca21425 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 214 | sce | 6_7.sce | //Eg-6.7
//pg-290
clear
clc
//sorting data in ascending order
x=[233;216;229;238];
m1=median(x);
y=[56;62;51];
m2=median(y);
disp("medians of given data are as follows")
disp(m1)
disp(m2) |
65a39bc45b200d2558e82a07de0e1b6dd6749c4e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1475/CH1/EX1.16/Example_1_16.sce | d7c6b71b35fc934adf65fd97834726ce67113fdf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 241 | sce | Example_1_16.sce | //Example 1.16
clc;
clear;
N=10;
disp(N,"total No. of Balls (white+Black) (N)=");
M1=6;
disp(M1,"No. of (White Balls)= ");
M2=4;
disp(M2,"No. of (Black Balls)= ");
P1=M1/N;
disp(P1,"Probability of white ball to be drawn is=");
|
0262359c10304c7a841bfb98d6899d5d4c974e3e | 8458ae69238b4e9e89cec1f6bdb30f6d009e3053 | /filters/Bandpass.sci | 288ea17355c13222c093357e746f18f93fdd6528 | [] | no_license | keigorori/signal_processing | aa5f18bcb2be385ce3a4fef208d29b05a036faf9 | a30e41e3fd2c3287af43e0d4bd554020a5055ff3 | refs/heads/master | 2020-04-05T10:45:01.018660 | 2019-02-08T02:08:59 | 2019-02-08T02:08:59 | 156,809,290 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,280 | sci | Bandpass.sci | ////////////////////////
// bandpass filter
// FIR カイザー窓
// cutoffFreq:Hz
// stopBandAttenuation:dB(パワー)
// stansitionBand:Hz
////////////////////////
function [output, wfm, fr] = Bandpass(input, samplingRate, cutoffFreqLow, cutoffFreqHigh, stopBandAttenuation, transitionBand)
// 減衰量からカイザー窓のパラメータを求める
// ひとまず-50dBより大きい... |
ef0c128446832c1b5df32a57a101bc730aed6905 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3782/CH1/EX1.26/Ex1_26.sce | e3e3fe5ecb94ddb88b40d2e28cb17d12325b2044 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 236 | sce | Ex1_26.sce |
//CH-1 PAGE-43 PB-3
//
//
l=1.2 //length
al=30 //map length
al=al/100
sc=1000 //suitable scale
RF=(al)/(sc*l)
printf("\n RF= %0.3f ",RF)
cm1=(1/RF)/(100)
lsc=15
cm15=lsc*cm1
printf("\n length of scale is %0.3f meters',cm15)
|
c334d275def3a69973ca96afd002b8d72f31a818 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2489/CH10/EX10.10/10_10.sce | e797f013ef518dd5f93dbb5053ea4f3b9bca55e1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 655 | sce | 10_10.sce | clc
//Intitalisation of variables
clear
p1= 141 //mm
p2= 387 //mm
n1= 2 //moles
n2= 1 //moles
T1= 653 //K
T2= 693 //K
x1= 159.6 //mm
//CALCULATIONS
Phg= 2*p1/3
Po2= 0.5*Phg
Phg1= 2*p2/3
Po21= 0.5*Phg1
Kp1= Phg^2*Po2
Kp2= Phg1^2*Po21
dH= log10(Kp2/Kp1)*4.576*T1*T2/(T2-T1)
Kp3= (x1*2)^2*x1
T3= 1/((log1... |
d59284f577df620b862fe5df26d7e378fac072ce | 449d555969bfd7befe906877abab098c6e63a0e8 | /2288/CH2/EX2.15.3/ex2_15_3.sce | 8316237af741710e09b13a204d6090b92015493b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 344 | sce | ex2_15_3.sce | //Exa2.15.3
clc;
clear;
close;
// Given data
T1 = 300;// in K
T2 = 400;// in K
del_E = 0.27;// Fermi level in eV
KT = (0.0259) * (T2/T1);// in eV
N_v = 1.04 * 10^19;// in cm^-3
N_v = N_v * (T2/T1)^(3/2);// in cm^-3
p_o = N_v * exp(-(del_E)/KT);// in per cm^3
disp(p_o,"The thermal equilibrium hole concentra... |
ad512f108716bd466b2fc18e79f94459fdabb40f | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH25/EX25.4/Example25_4.sce | bcc811b19307e40f9b95256d9067781e2472e448 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 358 | sce | Example25_4.sce | exec('electrostatics.sci', -1)
//Given that
n = 12
qT = -n*e
R = 1 //(say)
//Sample Problem 25-4a
printf("**Sample Problem 25-4a**\n")
V = EPotential(qT, R)
printf("The electric potential at the center is equal to %e/R Volts", V)
//Sample Problem 25-4b
printf("**Sample Problem 25-4b**\n")
printf("It d... |
04a07345694052c8e582e7b39deb9a9c8e03187a | 89838d8f710d1bef8ebcf2fff7ff643f0edba610 | /PRG/getInformation.sci | 83feab05d16b29eaca867f9cfe6ecec809539b70 | [
"MIT"
] | permissive | Souilla-Luc/CPET_COSMED | a078c5e8ba2945a7e6d1f48690927e7cfa0eca7c | 9cb4d349d09ce147550a9adf1a0c1a1725bff275 | refs/heads/main | 2023-04-15T03:04:42.303339 | 2021-04-28T15:11:22 | 2021-04-28T15:11:22 | 360,626,406 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 633 | sci | getInformation.sci | // function to read a character string of interest
// Logic : we need to know the measure of interest, to find corresponding index
// measure = what we want to read (could be a matrix)
// namefile= Matrix of character string
// apply "getInformation" function
//endfunction
function [value]=getInformation(measure,name... |
90861dd8da981755b4fee2300b506c9aecdb2feb | c6515791fea5828996a3924a74b5358852bc69f0 | /ap5_rotacao/compressao.sci | 68e9cf350c7b9696cf5596a3f0d08e16d25c90f0 | [] | no_license | fernandascovino/fgv_math_modeling_3 | 366f05faa9fc657473acad8c1061b7c6feed8d4a | 11853e0bf2c05ad2df4fb369dfa922fc50c68ceb | refs/heads/master | 2023-02-24T23:03:18.431724 | 2021-01-31T18:08:16 | 2021-01-31T18:08:16 | 334,722,683 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 289 | sci | compressao.sci | function [B]=compressao(A,p);
[U,S,V]=svd(A)
v = find(S>0); // vetor que contém os valores não nulos de S
r = size(v,2); // valores singulares positivos (não nulos)
s = max(1:p*r), V = V';
B=U(:,1:s)*S(1:s,1:s)*V(1:s,:);
visualization(B)
endfunction
|
de2aa2526b12dbd096afc1f70146261a66534398 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3401/CH6/EX6.5/Ex6_5.sce | efb787d4e7bc136a0bfc598edb9731c9d06ff495 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 310 | sce | Ex6_5.sce | clc
k=8.617*10**-5//eV/K
e=1.6*10**-19 //C
un=1200
Nd=10^16 //cm^-3
esp0=8.85*10^-14
espr=11.7
sigma=e*un*Nd
disp(sigma,"conductivity in per ohm cm is= ")
esp=espr*esp0
disp(esp,"permittivity of silicon in F/cm")
taud=esp/sigma
disp(taud,"dielectric relaxtion time constant in sec is= ")
|
fe3f5ebd4b82b91472d82a18c4db6768bf6962f4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /716/CH9/EX9.2.m/MatLab_Prog9_2.sce | 93321c76e5f217e6199cfa4a2c3e81ae0f5dbe06 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 625 | sce | MatLab_Prog9_2.sce | //Perform 16 point DFT of x(n)=(1/3 1/3 1/3) and sketch magnitude and phase spectrum
clc;
clear;
N=16;
xn=zeros(1,16);
xn(1)=1/3;
xn(2)=1/3;
xn(3)=1/3;
for k=0:1:N-1
Xk(k+1)=0;
for n=0:1:N-1
Xk(k+1)=Xk(k+1)+xn(n+1)*exp(-%i*2*%pi*k*n/N);
end
end
wk=0:1:N-1;
disp(Xk,'16 point DFT of x(n... |
11e6f6262c318fa56239ed12b9cef889bd04a6b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /29/CH12/EX12.9/exa12_9.sce | 77dba4d2012dac7de7f9d1f39b1d90bbca5ba67f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 608 | sce | exa12_9.sce | //Caption:determine_peak_overshoot
//example 12.9
//page 523
s=%s;
syms t K;
CL=sym('(s+1)/(s^2+2*s+5)');
CL=K*CL;
disp(CL,"C(s)/R(s)=")
//for unit step response R(s)=1/s;
d=CL*(1/s)
Css=limit(s*d,s,0)
disp(Css,"Css=");
//since Css=0.8 (given)
K=0.8*5;
CL=eval(CL);
disp(CL,"C(s)/R(s)=");
//for unit step response R(s)=... |
9f8c91a463a85d7a2b5c9570fa142de6a6beb25f | fd56912428cdd6be1cdaaecf2b551af84d20cafa | /5.sce | 32ce6dc38f16acb37194b4ea9ff45d47b616ca0c | [] | no_license | prernams/LAA-Assignment | ebb528f06918c2b9a054376908c7f236bf3d97ec | c3bea5b3d3dd7edf93662cc92ee82c6919310fd6 | refs/heads/main | 2023-05-27T16:15:08.449010 | 2021-06-16T04:48:20 | 2021-06-16T04:48:20 | 377,373,595 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 365 | sce | 5.sce | clc;
clear;
close;
A=[1,2,0,1;0,1,1,0;1,2,0,1];
disp(A,'A=');
[m,n]=size(A);
disp(m,'m=');
disp(n,'n=');
[v,pivot]=rref(A);
disp(rref(A));
disp(v);
r=length(pivot);
disp(r,'rank=');
cs=A(:,pivot);
disp(cs,'Column Space=');
ns=kernel(A);
disp(ns,'Null Space=');
rs=v(1:r,:)';
disp(rs,'Row Space=');
lns... |
55249421ca01771c002eb0c158763382ac32d13a | 449d555969bfd7befe906877abab098c6e63a0e8 | /617/CH9/EX9.6/Example9_6.sci | c5e9b521ab4600fc8c1ffd9aff9277804cd2e373 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,044 | sci | Example9_6.sci | clc();
clear;
// To calculate temperature difference for heat exchanger
Tc1 = 120; // Inlet cold fluid temperature in degF
Tc2 = 310; // Outlet cold fluid temperature in degF
Th1 = 500; // Inlet hot fluid tempera... |
5eab4775d80328432cc1e0f7316b82d8d41373f0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1205/CH3/EX3.3/S_3_3.sce | 8dc4bbd8049d0d279bcc0bde9b8441d4357283a1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 558 | sce | S_3_3.sce | clc;
// Given data
P=40; // N , Force applied to shift lever
alpha=25;// degree, angle made by force P with -ve X axis
alpha=alpha*%pi/180;// Conversion of angle into radian
x=0.2;//m , Hirizontal distance of A from B
y=0.6;//m, Vertical distance of A from B
Px=P*cos(theta);// N , horizontal component
Py=P... |
4d216e40805ff0dfcd77c9c4ef1ca4b88dcd9fa7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2510/CH14/EX14.15/Ex14_15.sce | a18cc385fa308be27866325a9552a6653254dc71 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 608 | sce | Ex14_15.sce | //Variable declaration:
//From example 14.14:
Di = 0.825/12.0 //%pipe inside diameter (ft)
L = 1.0 //%pipe length (ft)
Ui = 0.7492 //Overall heat coefficient (Btu/h.ft^2.°F)
Ts = 247.0 //Steam temperature (°... |
0f0160415c9d17bc3666f5eaf7ce1e63ca771b86 | 2f7b1fa044c246ffe96b7e6e7b96aa95f9031cdf | /Anul 2/Anul_2/Metode_Numerice/Laborator/MN rezolvari/MN_Lab/lab6/reprezentări grafice în plan.sce | 1757a7c533beb3b4065ae28ff2e810d667b99a93 | [] | no_license | stickyrst/automatica | 1f902091376c0f65c08a66721de3185a70f88d26 | 2ac48ae78f45b787724fa90c0e7acd8052e6725c | refs/heads/master | 2020-06-11T18:39:23.768638 | 2018-05-30T19:55:38 | 2018-05-30T19:55:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 172 | sce | reprezentări grafice în plan.sce | //reprezentări grafice în plan
function [y]=f(x)
y=abs(x)
endfunction
x=linspace(-10,10,100);
plot2d(x,f(x))
xtitle('Reprezentarea grafica a functiei modul')
|
968ae7ca635c8e0904de88bb1cf156127fa3c2ff | 449d555969bfd7befe906877abab098c6e63a0e8 | /172/CH2/EX2.2/ex2.sce | a41434acc608dbde3f92f4f0c5b266e9c548c3e4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 796 | sce | ex2.sce | //example 2
//average volume and density
clear
clc
Vliq=0.2 //volume of liquid in m^3
dliq=997 //density of liquid in kg/m^3
Vstone=0.12 //volume of stone in m^3
Vsand=0.15 //volume of sand in m^3
Vair=0.53 //vo;ume of air in m^3
mliq=Vliq*dliq //mass of liquid in kg
dstone=2750 //density of stone in kg/m^3
... |
42f17a5f7dc7bb598b04fc459fa4370e3acd7e15 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3636/CH6/EX6.1/Ex6_1.sce | 5f08ffc3d5a52787526de947dcef9fdb838df63d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 254 | sce | Ex6_1.sce | clc;
clear;
ni=1.5*10^10 //in cm^-3
Nd=5*10^16 //doping density in cm^-3
V=0.55 //in V
Const=0.026 //constant for kT/e in V
//Calculation
Pn0=ni^2/Nd //in cm^-3
Pn=Pn0*exp(V/Const)
mprintf("minority carrier concentration= %1.2e cm^-3",Pn)
|
276aaa187d32c853f3a9be55fd7d33cd3651efa7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /413/CH5/EX5.2/Example_5_2.sce | 44202a68efff62937b7ab76e94465fe3252deaac | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 760 | sce | Example_5_2.sce | clc
clear
sumR2=0
sumR3=0
sumR4=0
function a=fun(x)
a=exp(-x.*x)
endfunction
A=[0.2 1.5]
M=(A(1,1)+A(1,2))/2
h=M-0.2
R1=(h)/2 *[fun(0.2)+fun(1.5)+2*fun(M)]
h1=h/2
for i=1:3
B(1,i)=0.2+i*h1
sumR2=fun(B(1,i))+sumR2
end
R2=h1/2 *[fun(0.2)+fun(1.5)+2*sumR2]
h2=h1/2
for i=1:7
C(... |
c3c9e28fcb09d03ee342b6079c47de70fc83fc01 | 449d555969bfd7befe906877abab098c6e63a0e8 | /629/CH6/EX6.1/example6_1.sce | 3cadf35873089d9cc4751eee6117643522dba9c1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 362 | sce | example6_1.sce | clear
clc
//Example 6.1 THRUST OF ROCKET
g=9.81; //[m/s^2]
m=0.04; //mass[kg]
D=0.01; //[m]
A=%pi*D^2/4 //area[m^2]
rho=0.5; //density[kg/m^3]
v=450; //[m/s]
//Sum of forces, Fz=-Fb-m.g
Mo=-rho*A*v^2 //momentum outflow[N]
Fz=Mo //[N]
Fb=-Fz-m*g //Force on beam[N]
printf("\n The force acting on the beam tha... |
f708737e3f495c95ef508b4903219b616d5a8f66 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1184/CH13/EX13.3/Ex13_3.sce | bfa195204598306504b0b7fbc7bcc1f056fdf750 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 268 | sce | Ex13_3.sce | //Example 13-3, Page No - 492
clear
clc
len = 165
attn_100ft = 5.3
pin = 100
attn_ft = 5.3/100
total_attn = attn_ft * len
pout = pin *0.1335
printf('The total attenuation of the cable is %.3f dB',total_attn)
printf('\n Output power is %.2f W',pout)
|
a8a534f7b833a7874481bc38f383fd19b52eb568 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1949/CH6/EX6.2/Ex6_2.sce | d58917af077c33e750e3e17ecb4fe2507cbf7332 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 547 | sce | Ex6_2.sce | //Chapter-6,Example 6_2,Page 6-26
clc()
//Given Values:
x=3.7*10^-3 //Susceptibility at T=300 K
T=300 //Temperature in kelvin
T1=250 //Temperature in kelvin
T2=600 //Temperature in kelvin
//Calculations:
C=x*T //Curie's law
ur1=C/T... |
6c77d19eff5b1a70070a8f04da951c26bc28585b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1019/CH5/EX5.25/Example_5_25.sce | a3c4734800bb8ce00dda055ae2899165c732ae47 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 697 | sce | Example_5_25.sce | //Example 5.25
clear;
clc;
//Given
p1=10;//vapour pressure in mm Hg at temperature T1 K
p2=40;//vapour pressure in mm Hg at temperature T2 K
T1=358.95;//initial temperature in K
T2=392.45;//final temperature in K
Ts=325.75;//surrounding temperature in K
R=8.314;//gas constant in J K^-1 mol^-1
ps=1;//
//To ... |
07619c4f06d7f3928ca1a5d31e8779953875db9b | 449d555969bfd7befe906877abab098c6e63a0e8 | /728/CH3/EX3.6/Ex3_6.sce | 3e2c5adf1ea21aab5c047d94bf6f01b9b71a0ce1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 399 | sce | Ex3_6.sce | //Caption:Determine point of attachment & length of stub.
//Exa 3.6
clc;
clear;
close;
Z_l=100;//in ohms
Z_o=600;//in ohms
f=100*10^6;//in Hz
wl=(3*10^8)/f;
//Position of stub is :
m=((Z_l*Z_o)/(Z_l-Z_o))^0.5;
pos={wl/(2*%pi)}*atan((Z_l/Z_o)^0.5);//in meters
l={wl/(2*%pi)}*{atan(m)};//in meters
disp(pos,"... |
cdd6edbc887c6564e73dccfa5838e61cded1802f | c0c48c5a363ac2c0bf21e72833d72a99771dc6ce | /Simulation_Codes/lab09_18i190002/ex1c.sce | 619e22b8b9f818e507c97737e9462fb591ebd4eb | [] | no_license | shubham1166/Operarions_Research_Projects | 3b6664b83d89b2a005b5194489bfd0d95cafe3d8 | 8f28eea93d9e4ff3d6a8e95160c3f9464ce2fc34 | refs/heads/main | 2023-03-14T02:48:42.359247 | 2021-03-03T05:51:28 | 2021-03-03T05:51:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,180 | sce | ex1c.sce | //Defining a function that will give the profit vector when the stock is n units for 500 days
clc,clear
exec('milk.sce',-1)
function profit=f(n)
to_be_sold=zeros(500,1)
//to_be_sold be the column vector that will tell us the amount of milk Akbar will decide to sell
//we want to know the expected profit of... |
81e14327076423e043903578042ab51c53210d01 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2252/CH23/EX23.6/Ex23_6.sce | 7f6e6c72fd4b4317f2d52c1629f8aa0a2320d092 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,344 | sce | Ex23_6.sce |
function[r,theta]=rect2pol(A)
x=real(A)
y=imag(A)
r=sqrt(x^2+y^2)
theta=atand(y/x)
endfunction
function[r]=mag(A)
x=real(A)
y=imag(A)
r=sqrt(x^2+y^2)
endfunction
j=%i
R2_dash=.16
s=.03
X2=.4
Z2_dash=R2_dash/s+X2*j//effective rotor impedance referred to stator
R0=200
Xm=20*... |
ab902946a947265db7c05f635659d20f777a8d61 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2381/CH1/EX1.21/ex_21.sce | beef3e44823a12ed059262495f05d64e9d1e8256 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 491 | sce | ex_21.sce | //Example 21 // frequency ,energy and maximum velocity
clc;
clear;
close;
c=1;//N-m
m1=6;//gm
m2=2;//gm
mu=((m1*m2)/(m1+m2))*10^-3;//kg
fr=((1/(2*%pi))*sqrt(c/mu));//vibrations/sec
disp(fr,"frequency of oscillations is ,(vibrations/s)=")
td= 1+(1/3);//cm
e=((1/2)*c*(td*10^-2)^2);//joule
disp(e,"energy is,(joule)=")
y=... |
4afadafc428f2e955b4d10934559a99f3e1e6810 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1238/CH8/EX8.5/8_5.sce | d102e3bcd3b5ab29f6971250bb471f5f6ea252be | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 897 | sce | 8_5.sce | //calculating required data//
//example 5//
clc
//clears the command window//;
clear
//clears//
LSB1=10;//change in output voltage due to LSB//
LSB2=2*LSB1;//change in output voltage due to second LSB//
LSB3=4*LSB1;//change in output voltage due to third LSB//
LSB4=8*LSB1;//change in output voltage due to fou... |
3ec9f05356ea72f9e379cb19fd51093534d4d767 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2885/CH6/EX6.12/ex6_12.sce | 3873d7513ed15a36e215376b02ac0e4ff89044d3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,328 | sce | ex6_12.sce |
//Solve the voltage divider accurately by applying thevenin's theorem
clear;
clc;
//soltion
//given
B=100; //dc beta
Rc=2*10^3;//ohm //resistor connected to collector
R1=10*10^3;//ohm //voltage divider resistor 1
R2=1*10^3;//ohm //voltage divider resistor 2
Re=200;//ohm //resis... |
6e00f703e6fa3a96cff306af9a034267561f2311 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2015/CH1/EX1.1/1_1.sce | 23105c915e894085ed1a09d2f34c1a5181cd3dd1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 377 | sce | 1_1.sce |
clc
//initialisation of variables
clear
t1=300 //K
t3=1900 //K
r=15
g=1.4
p1=1 //bar
cp=1.005
cv=0.718
R=0.287 //kj/kgk
//CALCULATIONS
t2=t1*r^(g-1)
p2=p1*r^(g)
p3=p2
t4=t3*0.143^(g-1)
p4=p3*(0.143)^(g)
qs=cp*(t3-t2)
qr1=cv*(t4-t1)
wo=qs-qr1
ef=wo/qs
v1=R*t1/p1
v2=v1/r
sv=v1-v2
cl=v2/(v1-v2)
... |
c897a15bd2c2268ededbf4c783672b2cda7d84aa | 449d555969bfd7befe906877abab098c6e63a0e8 | /3020/CH11/EX11.6/ex11_6.sce | b37253aaa5cd2d7f2d35bda8022f80b3916c5284 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 464 | sce | ex11_6.sce | clc;
clear all;
lambda = 6328e-10; // Wavelength of the laser beam
p = 2.3e-3; // Energy emitted by the laser in Joule/second
p1 = 2.3e-3*60; // Energy emitted by the laser in Joule/minute
c = 3e8; // Velocity of light in air
h = 6.626e-34 ; // Planck's constant
v = c/lambda; // Frequency of photon emitted by la... |
a7412fa4a5a7afe65065677e7a8cb87f6ee7293d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1949/CH6/EX6.23/Ex6_23.sce | 08b42e3f42d5c5b8b2e6899e3e74f50dc2599b24 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 693 | sce | Ex6_23.sce | //Chapter-6,Example 6_23,Page 6-38
clc()
//Given Values:
l=1.2 //length of circuit in meter
u=7.3*10^-3 //permeability of silicon sheet
A=100 //cross sectional area in cm^2
N=150 //No of turns
B=0.3 //magmetic field in Wb/m^2
//Calculations:
//We know... |
482deb565bb70cec355c77a275cbb64ead6e0fc6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3840/CH6/EX6.1/Ex6_1.sce | b9441fe3ec4c33a6c08feeb66cfe2a54c612ba4f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 231 | sce | Ex6_1.sce | clear
//
//
//
//Variable declaration
alpha_e=10**-40 //polarisability(Fm**2)
N=3*10**28 //density of atoms
epsilon0=8.85*10**-12
//Calculation
epsilonr=(N*alpha_e/epsilon0)+1 //dielectric constant
//Result
|
71e6eeb5f7aaac1783b1fb966f8f63962d62aa33 | 449d555969bfd7befe906877abab098c6e63a0e8 | /416/CH20/EX20.2/example20_2.sce | cf9cf3567ceb929ec286957c4e8bb9ee682b8115 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,470 | sce | example20_2.sce | clc
clear
disp('example 20.2')
ee=5*10^16 //electrical energy requirement
eer=0.1 //energy requirement
i=5*10^6 //investement
n=20 //life time
ec=4.1 //energy cost
r=0.13 //interest rate
dr=r/((1+r)^(n)-1) //depreciation rate
dr=round(dr*10^5)/10^5
tfc=r+dr //total fixed cost
ace=i*tfc //ann... |
73db4ae5676fb8ffac9759fec0e9ae06a340d250 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1754/CH3/EX3.11/Exa3_11.sce | ed6d0a254370417555a0cae0a58838e108cafc5e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 428 | sce | Exa3_11.sce | //Exa 3.11
clc;
clear;
close;
//Given data :
Po_dc=10;//in watt
Po_ac=3.5;//in watt
//Part (i) :
ETAcollector=Po_ac/Po_dc;//unitless
ETAcollector=ETAcollector*100;//collector efficiency in %
disp(ETAcollector,"Collector Efficiency(in %) : ");
//Part (ii)
disp(Po_dc,"Zero signal condition represents maximum... |
1227000d1e9956ca9ad9bd0f5c5fe3541de47a60 | 449d555969bfd7befe906877abab098c6e63a0e8 | /662/CH13/EX13.15/ex_13_15.sce | de02f3405d9ed5f3a7994b6a4ec2359f4cd20932 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 507 | sce | ex_13_15.sce |
warning('off');
fstream1=mopen('output1.dat','w');
for k=65:90
k=ascii(k);
// printf("%c",k);
mfprintf(fstream1,'%c',k );
end
mclose(fp);
//Read the 11th character and last character of the file using mseek function
fstream1=mopen('output1.dat','r');
mseek(10,fstream1,'set');
ch=mfscanf(fstrea... |
9d4e489017f62c21bffd7ad2ca1d77ac590c5db9 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4.1/Unix-Windows/scilab-2.4.1/macros/tdcs/mineInit.sci | e10147adef817a9eb513ca2a42b6dd567009c0ff | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 4,095 | sci | mineInit.sci | function []=mineInit()
// Macro qui initialise les donnees du
// td3
//!
// Copyright INRIA
n1=30
n2=40;
te=n2/2;
xe=n1/2;
k0=1;
kc=0.01;
[n1,n2,te,xe,k0,kc]=resume(...
n1,n2,te,xe,k0,kc);
function [cout,feed]=mine(n1,n2,uvect)
//[cout,feed]=mine(n1,n2,uvect)
// extraction optimale d'un minerai d'une mine a ci... |
a6232add803576670af2c6ea5dc1671c40e22d11 | 2e676e3b1cebfbb9d20f9b935ceacd507c57d36a | /Octave/octave-4.2.1/share/octave/4.2.1/etc/tests/fixed/bug-31371.tst | bc7b0d2626ce6c7b41a9300b777e467e15d4db2b | [] | no_license | vohrahul/ML-ang-coursera | 239469e763b290aa178b7aa8a86eda08e4e7f4be | 4c24fd2ecfb9f3de7df15e3a9f75627f782f9915 | refs/heads/master | 2022-12-28T03:45:54.810173 | 2020-10-16T12:33:25 | 2020-10-16T12:33:25 | 304,620,441 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,183 | tst | bug-31371.tst | %!test
%! % Work around MATLAB bug where f(x)(y) is invalid syntax
%! % (This bug does not apply to Octave)
%!
%! C = @(fcn,x) fcn(x);
%! C2 = @(fcn,x,y) fcn(x,y);
%!
%! % Church Booleans
%! T = @(t,f) t;
%! F = @(t,f) f;
%!
%! % Church Numerals
%! Zero = @(fcn,x) x;
%! One = @(fcn,x) fcn(x);
%! Two = @(fcn,x) fcn... |
92a02dee2d77c366dad297f0cdf7a7a8e5795180 | cab1992a709a3eb977bef46f17eadab0c7bbbc5f | /modeling_simulation/ofc_reaching_task.sce | 22df6f4afe5a0b5c5ff23457058fdd424b1f7773 | [] | no_license | andreinakagawa/neuroscience | 80ab70cfc2c7df7d7891373cc9c889b4b8f83dd6 | 681125f0e1248269665749ed8bf17d5cfe6c2fda | refs/heads/master | 2021-06-07T09:37:51.810764 | 2017-10-05T11:32:03 | 2017-10-05T11:32:03 | 15,914,740 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,619 | sce | ofc_reaching_task.sce | //------------------------------------------------------------------------------
// FEDERAL UNIVERSITY OF UBERLANDIA
// Faculty of Electrical Engineering
// Biomedical Engineering Lab
// Uberlandia, Brazil
//------------------------------------------------------------------------------
// Author: Andrei Nakagawa, MSc
/... |
fb100cea7b6016a438658af2f67e96ac6ffca542 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH24/EX24.15/24_15.sce | b7b180215d45c6bacac065b89d42a5a3cb5df5b4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 404 | sce | 24_15.sce | //ques-24.15
//Calculating amount of a substance extracted by ether
clc
w1=16;//weight of solute in 1L aqueous solution (in g)
w2=12;//amount extracted by 100 mL ether (in g)
w3=w1-w2;//amount left in 1L (in g)
K=(w2/100)/(w3/1000);//partition coefficient
//K = (x/100)/((4-x)/1000)
x=(w3*K)/(10*w3);
printf("Th... |
45c3ecd477c7624f48e7058fca25e47b4f6de63f | a32ca14eb7efc53e65f80974ac55e96683ea6c24 | /TP1/tp1.sce | 3b0d1b66c442ac08501c4cec1c11c27cb7819b61 | [] | no_license | GHLH/RO05_TP | 3187b861713a2314501a56838b698d49445c9199 | 3eaf94b7114babf849df70e094855929071b8e3b | refs/heads/master | 2021-07-10T21:04:33.226067 | 2017-10-06T21:18:47 | 2017-10-06T21:18:47 | 105,623,668 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 841 | sce | tp1.sce | N = 1000; //le nombre des réalisations
T = 1; // le temps de l'exercice de l'option
h = 0.05;
S0 = 1;
mu = 0.05;
sigma = 0.3;
M = T / h; //nombre de subdivision de l'intervalle [0,T]
t = 0; //la valeur de l'actif aux instants
somme = 0; //la somme de S(t)
Nb = N / M; //nombre de réalisation dans chaque intervalle [0... |
112101ba2c898158540c8995bc30adacc9920208 | 463377b6374a24bbe111707a34e24949f3bd2543 | /iv.sci | a819a4e57ae264e355b630cabfe900f495affcc7 | [] | no_license | solothinker/Scilab-Identification | 3a46c0f3b8b1a7430f8a799be5e1310e2723b535 | cdad0d7292c31c29d377b640f6966a7c3bb81bb9 | refs/heads/master | 2022-01-05T12:39:07.410803 | 2019-06-15T02:18:13 | 2019-06-15T02:18:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,359 | sci | iv.sci | function varargout = iv(varargin)
[lhs , rhs] = argn(0);
if ( rhs < 2 || rhs > 3) then
errmsg = msprintf(gettext("%s: Unexpected number of input arguments : %d provided while should be 2 or 3"), "iv", rhs);
error(errmsg)
end
plantData = varargin(1)
if typeof(plantData) == 'iddata' then
Ts... |
3f6f151be76b38cea8602f5cc15ac64741a2480b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1268/CH9/EX9.4/9_4.sce | f7b1ab67a16d8f3348d984f5cae3127b4b632935 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 268 | sce | 9_4.sce | clc;
disp("Example 9.4")
reading=9.7e-3 // of manometer in m
g=9.81
densitym=13600 /// in kg/m^3
density=1200 // of water in kg/m^3
delP=g*reading*(densitym-density)
U=84/60
b=0.333
c=U*((density*(1-b^4)/(2*delP))^0.5)
disp(c,"The venturi coefficient is ")
|
58702e1717b53e125609f65b6dc4ef3cbc347765 | c557cd21994aaa23ea4fe68fa779dd8b3aac0381 | /test/multiroot.tst | df0a52340753cfe6bba8167215c7901e469fbaa4 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | dougsong/reposurgeon | 394001c0da4c3503bc8bae14935808ffd6f45657 | ee63ba2b0786fa1b79dd232bf3d4c2fe9c22104b | refs/heads/master | 2023-03-09T15:22:45.041046 | 2023-02-25T08:33:06 | 2023-02-25T08:33:06 | 280,299,498 | 1 | 0 | NOASSERTION | 2023-02-25T08:33:08 | 2020-07-17T01:45:32 | Go | UTF-8 | Scilab | false | false | 182 | tst | multiroot.tst | ## Test unite of multiple copies of a repo mapped to branches
read <bzr.fi
path ^(.*) rename foo/\1
rename foo
read <bzr.fi
path ^(.*) rename bar/\1
rename bar
unite foo bar
write -
|
596e167ba0ed804bf59c5460209da81895d4f522 | 449d555969bfd7befe906877abab098c6e63a0e8 | /593/CH4/EX4.2/ex4_2.sce | e1857709ff560762821ba7348414588823e268c4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,409 | sce | ex4_2.sce | clear;
//clc();
// Example 4.2
// Page: 77
printf("Example-4.2 Page no.-77\n\n");
//***Data***//
// let we denote graphite by 'g' and diamond by 'd'
// Gibb's free energies of graphite and diamond are given by
g_g = 0.00;//[kJ/mol]
g_d = 2.90;//[kJ/mol]
// Specific volumes of graphite and diamond a... |
dec8edbd4ffa35d18d8606110fbc5a1b182c3bd7 | 7f053b29173fd886cfb3520199a442fe76b4f8bb | /Sala 18.sce | 6c0d42f70b619d174b80015b4c12a80965cc7af5 | [] | no_license | erickcampos50/HVAC | 26052b9720b79400c15afb9ea5fdf1c17c00da78 | c9544ebb4911461e3c996bbfd6278c47946991dc | refs/heads/master | 2019-01-02T01:46:06.365422 | 2015-02-02T19:30:33 | 2015-02-02T19:30:33 | 29,926,761 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 8,204 | sce | Sala 18.sce | clear
//Carregando arquivos contendo funcoes e tabelas
exec('tabelas.sce',-1) //O parametro -1 suprime informacoes na tela
exec('iluminacao.sce',-1)
exec('paredes.sce',-1)
exec('radiacaof.sce',-1)
exec('ocupacao.sce',-1)
exec('janelas.sce',-1)
//Lista Valores de entrada
entradas = [23.0 0.4 7 18 1 52 7 18 13 6.5 0 1... |
0a4f26b0f9a0de6effd03cd0689b11cee5a5001e | 1db0a7f58e484c067efa384b541cecee64d190ab | /macros/slewrate.sci | 5b833276a118bf24c69af1f14e91f107346b6fcf | [] | 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 | 14,094 | sci | slewrate.sci | function [s, lowercrossvalue, uppercrossvalue, lowerreference, upperreference]=slewrate(x, varargin)
// This function estimate slew rate of bilevel waveform transitions
// Calling Sequence
// s=slewrate(x)
// s=slewrate(x, t)
// s=slewrate(x, Fs)
// s=slewrate(x, t, 'PercentReferenceL... |
539ff92f59ce1892451e24475b3348cb0dc6fdb9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1382/CH6/EX6.23/EX_6_23.sce | 259340485fd3514d3b312e5df7f31ac9606f21be | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 430 | sce | EX_6_23.sce | // Example 6.23;// feedback factor and change in overall gain
clc;
clear;
close;
Zo=12.6;//output impedance in killo ohms
Zofb=600;//output impedance in ohms with feedback
Ad= 60;//gain in dB
A= 10^(Ad/20);//gain
Beta= ((Zo*10^3/Zofb)-1)/A;//feedback factor
dA= 10;// open voltage gain
dAf= (1/(1+Beta*A))*dA;/... |
76a46ed2e8cc0299584e822f604f07f3046f2bb9 | 5f48beee3dc825617c83ba20a7c82c544061af65 | /tests/s/21.tst | 47bf56c667381d6d67e4dedd18ed5188b409c971 | [] | no_license | grenkin/compiler | bed06cd6dac49c1ca89d2723174210cd3dc8efea | 30634ec46fba10333cf284399f577be7fb8e5b61 | refs/heads/master | 2020-06-20T12:44:17.903582 | 2016-11-27T03:08:20 | 2016-11-27T03:08:20 | 74,863,612 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 28 | tst | 21.tst | static int x;
typedef int y; |
fdddc4872d066a94b0aee7d7135ff8bffb278e00 | c7186ce0b8c965fd38aeb032841ed02b231a9371 | /projects/02/Neg16.tst | 42a4ef59e7df1f9f3807e94f1fd9b6aa72286504 | [] | no_license | kendai912/nand2tetris | 8d4ddead6046975302f53af0b638a409603d13c9 | 0a54a3278f8c81edc6a59338c164f2a4fa723a3b | refs/heads/master | 2023-07-29T19:22:57.421565 | 2021-09-03T14:34:05 | 2021-09-03T14:34:05 | 280,770,807 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 315 | tst | Neg16.tst | load Neg16.hdl,
output-file Neg16.out,
compare-to Neg16.cmp,
output-list a%B1.16.1 neg%D2.1.2 out%B1.16.1;
set a %B0000000000000000,
set neg 0,
eval,
output;
set a %B0000000000000000,
set neg 1,
eval,
output;
set a %B1110101010101010,
set neg 0,
eval,
output;
set a %B1110101010101010,
set neg 1,
eval,
output;
|
0baa14574f566b3b101153b09b609ade6b010a2e | 449d555969bfd7befe906877abab098c6e63a0e8 | /564/DEPENDENCIES/26_2data.sci | dc24cd5c37368226d6d734190f46b00c7e615f5a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 85 | sci | 26_2data.sci | R=200;//given,in mm
Load=20000;//given,in N
G=70000;//in N/mm^2
t=2;//thickness in mm |
ab54246e14f7d5bafa793ee007e5c3fe5fa234dd | f2635c3a10a2508720f5d231581bbcf58664cf12 | /pl/math/test/testcases/directed/erfcf.tst | 719baccb2e452b28434615dcbed489d4c7164d22 | [
"LLVM-exception",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | xboxfanj/optimized-routines | 9ed0fef9346076e3eaf952cecd9b6c39cca8d92b | e312306d13daf9c044145ca26fb34ef7704fae81 | refs/heads/master | 2023-01-21T08:14:26.298438 | 2022-12-21T00:02:54 | 2023-01-10T16:39:37 | 232,194,104 | 0 | 0 | MIT | 2020-01-06T22:07:31 | 2020-01-06T22:07:30 | null | UTF-8 | Scilab | false | false | 617 | tst | erfcf.tst | ; erfcf.tst - Directed test cases for erfcf
;
; Copyright (c) 2007-2023, Arm Limited.
; SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
func=erfcf op1=7fc00001 result=7fc00001 errno=0
func=erfcf op1=ffc00001 result=7fc00001 errno=0
func=erfcf op1=7f800001 result=7fc00001 errno=0 status=i
func=erfcf op1=... |
4f4e04be86aacfd9de9eb4241556f1d04bec2d26 | 449d555969bfd7befe906877abab098c6e63a0e8 | /764/CH6/EX6.3.b/solution6_3.sce | b50d7d732801c0b264423c2a1fb19495a8344494 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,126 | sce | solution6_3.sce |
//Obtain path of solution file
path = get_absolute_file_path('solution6_3.sce')
//Obtain path of data file
datapath = path + filesep() + 'data6_3.sci'
//Clear all
clc
//Execute the data file
exec(datapath)
//Calculate lead of the screw l (mm)
l = n * p
//Calculate the mean diameter of the screw dm (mm)
dm ... |
da5203a99ff636ad3bb8ca3864709926d56f91d4 | e04f3a1f9e98fd043a65910a1d4e52bdfff0d6e4 | /New LSTMAttn Model/.data/form-split/SURPRISE-LANGUAGES/Turkic/aze.tst | 987265f2eab38cb576340980d37b8d1ffbaf6446 | [] | no_license | davidgu13/Lemma-vs-Form-Splits | c154f1c0c7b84ba5b325b17507012d41b9ad5cfe | 3cce087f756420523f5a14234d02482452a7bfa5 | refs/heads/master | 2023-08-01T16:15:52.417307 | 2021-09-14T20:19:28 | 2021-09-14T20:19:28 | 395,023,433 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 33,664 | tst | aze.tst | dünya N;ABL;SG;PSS3P
uşaqlıq N;LOC;PL;PSS3P
dünya N;LOC;PL;PSS3P
düşmən N;NOM;PL;PSS3P
qardaş N;ACC;SG;PSS3P
lüğət N;GEN;DEF;PL
kəfgir N;ABL;PL
yemiş N;ACC;PL;PSS3P
məktəb N;NOM;SG;PSS2S
rəhbər N;NOM;SG;PSS3P
namaz N;ACC;PL;PSS3P
onurğa N;DAT;PL;PSS3P
amfiteatr N;ABL;SG
pilləkən N;LOC;PL
qan N;NOM;PL
əqrəb N;LOC;SG;PSS... |
318fbf92bdbf113229d5884a9e469fff31063df3 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4.1/macros/m2sci/lhsvarsnames.sci | 126a581a01c81ba3cf553086b7c548b12ebee5bd | [
"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 | 369 | sci | lhsvarsnames.sci | function varargout=lhsvarsnames()
// Copyright INRIA
varargout=list([])
lhs0=lhs
[lhs,rhs]=argn(0)
for k=1:lhs0
varname=lst(ilst+lhs0+1-k)(2)
p=find(varname==vnms(:,2))
if p<>[] then
varname=vnms(p,1),
else
if funptr(varname)<>0 then varname='%'+varname,end
end
if lhs>1 then
varargout(k)=varnam... |
cc090f7add8fcd6847d3eafbdf35f6c14e869d8d | 449d555969bfd7befe906877abab098c6e63a0e8 | /29/CH3/EX3.2.4/exa3_2_4.sce | 7713c55212b95332f4bc9b54f5ec7e6996d03f64 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 480 | sce | exa3_2_4.sce | //Caption:transfer_function
// example 3.2.4
//page 36
// we have defined parallel and series function which we are going to use here
//exec parallel.sce;
//exec series.sce;
syms G1 G2 G3 H1 H2;
//shift the take off point placed before G1 to after block G1
a=G3/G1;
b=parallel(a,G2);
//shift the take off point... |
5ebe7caec1932a359e809c6d8424cb2a37d379f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH9/EX9.5/5.sce | 350304629e298ba7b9d28e00bfcadceff84ee372 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 425 | sce | 5.sce | clc
p=1*10^5; //Pa
T=298; //K
M_H2=2;
M_O2=32;
R0=8314;
// ratio = V_H2/V_O2=2;
ratio=2;
disp("(i) The mass of O2 required")
//Let the mass of O2 per kg of H2 = x kg
m_H2=1; //kg
n_H2=m_H2/M_H2;
// n_O2=x/M_O2
x=M_O2*n_H2/ratio;
disp("Mass of O2 per kg of H2=")
disp(x)
disp("kg")
disp("(ii) T... |
38ee341db2642c6ad82b8806f5e0d55f9dd03a2f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1052/CH23/EX23.7/237.sce | b7d224c84983069bfc08a61cb371b77d652489f6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,215 | sce | 237.sce | clc;
//Example 23.7
//page no 340
printf("\n Example 23.7 page no 340\n\n");
// In a plant manufacturing ivory soap detergent explodes one windy day
//we have to calculate the distance from the plant where the soap particles will start to deposit and where they will cease to deposit
//the smallest particle wll tr... |
5ecb8db9fe0e1af178186a6a36aab5076dd8f97c | 449d555969bfd7befe906877abab098c6e63a0e8 | /767/CH1/EX1.5.5/Ch1Exa1_5_5.sci | c54e3213d59cefc0365b2e9f1ab294b736a4e9dd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 627 | sci | Ch1Exa1_5_5.sci | // Scilab code Exa1.5.5 : Calculation of mass defect and packing fraction from given data Page : 38 (2011)
amu = 931.49; // Atomic mass unit, MeV
M_p = 1.007825; // Mass of proton, amu
M_n = 1.008663; // Mass of neutron, amu
A = 2; // Mass number of deutron, amu
M_D = 2.014103; // Mass of deuteron nucleu... |
57b7137a5033c0973b6608bb717b304cd47513b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1217/CH5/EX5.11/Exa5_11.sce | bbea9bf96e0c74c7fcd8d9954ffb4fbfdf327da6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 280 | sce | Exa5_11.sce | // Exa 5.11
clc;
clear;
close;
// given data
T=100;// in uSec
C=15;//in
R=T*10^-6/(1.1*C*10^-9);//in ohm
disp(R/1000,"To obtain a output pulse at 100uSec rsistor required in Kohm is :")
//Note : in the question 15uF is given but in the solution 15nF is used in the book |
291e1e2fd1adb2019b4d88e1db2d97a6e31afcbc | c90039f74887835096a93884110d643c4823e530 | /doc/oficial/dados para treinamento RNA/RNA_ANALISE_TECNICA/Indicador/Volume/OBV/RNA_OBV.sce | 67ab74e38485164efd96b285b1c841f27e59f665 | [] | 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 | 254 | sce | RNA_OBV.sce | path_rna_obv = get_absolute_file_path('RNA_OBV.sce');
N_OBV = getN( path_rna_obv + "\N_OBV.txt" );
W_OBV = getW( path_rna_obv, "OBV" );
function saida_da_rna = rna_obv( alpha_obv )
saida_da_rna = ann_FF_run( [alpha_obv], N_OBV, W_OBV );
endfunction
|
72cd10cd4f89cc5a72be80a201610fac65d73519 | 449d555969bfd7befe906877abab098c6e63a0e8 | /278/CH14/EX14.12/ex_14_12.sce | ebf3d3d4cc409c13842c0670edec6d54ebd06306 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 855 | sce | ex_14_12.sce | //determine dia of the shaft
clc
//solution
//given
P=20000//W
N=200//rpm
W=900//N
L=2500//mm
t=42//N/mm^2
fb=56//N/mm^2
T=P*60000/(2*%pi*200)//N-mm
M=W*L/4//N-mm//max monet
Te=sqrt(T^2 + M^2)//N-mm
//Te=(%pi/16)*t*d^3
d1=(Te/8.25)^(1/3)//mm
printf("the dia of shaft is,%f mm",d1)
Me=0.5*[M + sqrt(M^2 + T^2)]//N-mm
//Me... |
eb8a36823462876a5ff45b7e58c7f7780961b4b6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /69/CH10/EX10.18/10_18.sce | be0d4189ae7113b6d886367e6d1cc3dece94565c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 124 | sce | 10_18.sce | clear; clc; close;
B1 = 1*10^(6);
Avd = 20*10^3;
f1 = B1;
fc = f1/Avd;
disp(fc,'Cutoff frequency(Hertz) = ');
|
4aa8b4e2e1d5c89304af3c5d131d93c06bf14320 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set4/s_College_Physics(volume_2)_R._A._Serway_And_J._S._Faughn_2072.zip/College_Physics(volume_2)_R._A._Serway_And_J._S._Faughn_2072/CH18/EX18.6/Ex18_6.sce | 6b96af6d4b03a901262bc4fa44e65eb4658ccc29 | [] | 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 | 233 | sce | Ex18_6.sce | errcatch(-1,"stop");mode(2);//Example 18.6
R=8*10^5//in ohms
C=5*10^-6//in Farad
t=R*C
disp(t,"Constant of the circuit in s=")
Q=C*12
disp(Q,"Charge in columb=")
q=0.632*Q
disp(q,"Charge in columb when capacitance 63.2%=")
exit();
|
438d3663b18aedaa7b816500d5bf197baea46012 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3137/CH1/EX1.19/Ex1_19.sce | 7c468e6049706347e4d7e727dd9d2de9ae181834 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 632 | sce | Ex1_19.sce | //Initilization Of Variables
a=1 //Lower Limit oF the Integral
b=3 //Upper Limit of the Integral
n=10 //Interval of the integral
//Calculation
//Using Trapezoidal Rule for Intergration
function[I1]=Trap_Composite1(f,a,b,n)
h=(b-a)/n
t=linspace(a,b,n+1)
I1=(h/2)*((2*sum(f(t)))-f(t(1))-f(t(n+1)))
e... |
9225acd2d8b6da58243fcc5a945477a3285ac52d | 449d555969bfd7befe906877abab098c6e63a0e8 | /503/CH7/EX7.47/ch7_47.sci | c584d629e992b1aac58bb9c7dc0457c9ffecea1b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sci | ch7_47.sci | //to calculate armature current,speed and value of external resistance in field ckt
clc;
V=250;
Ia=5;
Ra=.6;
n=1000;
k=(V-Ia*Ra)/(2*%pi*n/60);
T=100;
Ia=T/k;disp(Ia,'armature current(A)');
w_m=(V-Ia*Ra)/k;
n=(60*w_m)/(2*%pi);disp(n,'speed(rpm)');
Rf=150;
If=V/Rf;
kk=k/If;
Iaa=44.8;
nn=1200;
Iff=(V-I... |
db6caabc2e56706fedd04b2b0b13c8db149e4936 | 845c8ae1a329364b6568f3529318bf19080ab941 | /hdl/Match256.tst | 2818f0e6012282bcfe6ed9c4ff090efff8e71ffd | [
"Apache-2.0"
] | permissive | DChristianson/FPGA_lpu | 133a843e4b1df4f225aee01438930d7c42659d08 | 86f6cdc9b0aecfbdccd6ed23b73a5026776db18f | refs/heads/main | 2023-02-26T04:53:41.561411 | 2021-02-04T23:52:08 | 2021-02-04T23:52:08 | 336,049,181 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,806 | tst | Match256.tst | load Match256.hdl,
output-file Match256.out,
compare-to Match256.cmp,
output-list time%S1.4.1 in%D1.3.1 caddr%D1.3.1 load%B2.1.2 cmp%B2.1.2 test%B2.1.2 match%B2.1.2;
set in 48,
set caddr 0,
set cmp 1,
tick,
eval,
output;
tock,
eval,
output;
set in 48,
set caddr 1,
set cmp 1,
tick,
eval,
output;
tock,
eval,
output;
... |
35c84068f97397fbbf117353a4a8ae9c6685797a | 449d555969bfd7befe906877abab098c6e63a0e8 | /626/CH3/EX3.6/3_6.sce | aa688b9a3a738443a1f6a5f4fd33a57696bfe838 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 143 | sce | 3_6.sce | clear;
clc;
close;
disp("Example 3.6")
V9=250 //in m/s
V0=200 //in m/s
//Calculations:
e=2/(1+(V9/V0))
disp(e,"Propulsive efficiency:") |
6e398af246d5eed5772188ca77c0571359ce6f5e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3720/CH7/EX7.6/Ex7_6.sce | c9f93e1369431257f369cb554866263c45223514 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 619 | sce | Ex7_6.sce | //Example 7_6
clc;clear;
// Given values
// Properties
//For air at atmospheric pressure and at T = 25°C
T=25;//degree celsius
rho_p=1.184;//kg/m^3
mu_p=1.849*10^-5;//kg/m.s
V_p=50;//Speed in mi/h
//Similarly,at T=5°C
T=5;//degree celsius
rho_m=1.269;//kg/m^3
mu_m=1.754*10^-5;// kg/m.s
V_m=221;//mi/h
// (... |
06882aea2607d0cbb689d3195f45be13d548e291 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2219/CH3/EX3.13/Ex3_13.sce | 53e00a22dd7c86bc97a968547f9e537d91d79e83 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 611 | sce | Ex3_13.sce | // Chapter 3 example 13
//------------------------------------------------------------------------------
clc;
clear;
// Given data
f = 1*10^9; // frequency in Hz
a = 5*10^-2; // wall separation
c = 3*10^8; // velocity of EM wave in m/s
m = 1; // for TE10
n = 0; ... |
bb51c6759b8db037a457d986d9c7490e79b24ad9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1958/CH13/EX13.8/Chapter13_example8.sce | 24512ac0f3e7bf3bcbcb4b9538ab663f18bfc707 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 313 | sce | Chapter13_example8.sce | clc
clear
//Input data
L=(20*10^-3)//Inductance in H
Q=8//Q factor
f=1000//Frequency in Hz
//Calculations
R=(2*3.14*f*L)/Q//Resistance in ohms
C=(1/((2*3.14*f)^2*L))/10^-6//Capacitance in microF
//Output
printf('Capacitance and resistance of coil is %3.2f micro F and %3.1f ohms respectively',C,R)
|
9fdbf98b2144cbe18d76d785bf7b99e486e6f016 | 1489f5f3f467ff75c3223c5c1defb60ccb55df3d | /tests/test_diff_3_g.tst | 984b424d3c0f66e0665da57913abb533896d4bc4 | [
"MIT"
] | permissive | ciyam/ciyam | 8e078673340b43f04e7b0d6ac81740b6cf3d78d0 | 935df95387fb140487d2e0053fabf612b0d3f9e2 | refs/heads/master | 2023-08-31T11:03:25.835641 | 2023-08-31T04:31:22 | 2023-08-31T04:31:22 | 3,124,021 | 18 | 16 | null | 2017-01-28T16:22:57 | 2012-01-07T10:55:14 | C++ | UTF-8 | Scilab | false | false | 100 | tst | test_diff_3_g.tst | <<<<<< (0)
a
>>>>>> (1)
x0
x1
>>>>>> (2)
======
b
<<<<<< (0)
c
>>>>>> (1)
>>>>>> (2)
y0
y1
======
d
|
ada048c586a30608f843e9a188b47c6e7d4a46b9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2657/CH2/EX2.18/Ex2_18.sce | cbbcf28995213f00fe18f02e2d7469ca43ed62ac | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,206 | sce | Ex2_18.sce | //Calculations on dual combustion cycle
clc,clear
//Given:
r=15 //Compression ratio
P1=1,P3=55 //Pressure at 1, 3 in bar
T1=27+273 //Temperature at 1 in K
g=1.4 //Specific heat ratio(gamma)
cp=1.005 //Specific heat at constant pressure in kJ/kgK
cv=0.718 //Specific heat at constant volume in kJ/kgK
//Solution:... |
bed1224d6bd118e1770fa4143b0a1bfbf95dabc8 | 527c41bcbfe7e4743e0e8897b058eaaf206558c7 | /Positive_Negative_test/Netezza-Base-DataMining/SP_LinRegrFB-NZ-01.tst | 66c9d50f2da30ed44de96cfd22d3772fb88584e9 | [] | 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 | 14,146 | tst | SP_LinRegrFB-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.
-... |
527f186400954700dad524115ea1f5787c11dbe4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3673/CH1/EX1.16/Ex1_16.sce | 91557b9cfdff2325e53bc21f510445d41fd62c40 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 211 | sce | Ex1_16.sce | //Example 1_16 page no:18
clc
R1=10;//Resistance in ohm
R2=20;//Resistance in ohm
R3=30;//Resistance in ohm
R4=40;//Resistance in ohm
R=(1/R1+1/R2+1/R3+1/R4)
Rt=1/R
disp(Rt,"Total resistance (in ohm)")
|
ad18ef2ce7c26fca84b345fd6d1b5470d3bbd493 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4.1/macros/mtlb/mtlb_hold.sci | 1829e72dde2fe8eebddba5772f3d8d8c077309c7 | [
"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 | 245 | sci | mtlb_hold.sci | function mtlb_hold(flag)
[lhs,rhs]=argn(0)
if rhs==0 then
if exists('%MTLBHOLD')==0 then
%MTLBHOLD=%t
else
%MTLBHOLD=~%MTLBHOLD
end
elseif convstr(flag)=='on' then
%MTLBHOLD=%t
else
%MTLBHOLD=%f
end
%MTLBHOLD=resume(%MTLBHOLD)
|
18d43400c890cac77304861b1646d631546ae0a6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2420/CH2/EX2.10/2_10.sce | 076fb48a0f57b0ce7defc2a05a67f285fa60bc40 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 2_10.sce | clc
clear
//Initialization of variables
Gf=11.57 //lb per lb of fuel
H=4.4/100
M=13.5/100
mr=700
mf=10000
mc=1 //lb
//calculations
pro=M+9*H
mrf=mr/mf
Aa=Gf+pro+mrf-mc
At=8.83
ea=(Aa-At)/At *100
//results
printf("Excess air = %.1f percent",ea)
|
d6e2285e509b465f0a9b94e26af844642a340d2e | 3cbdc2f272df05cfe8c6636d4504e9e3d2e4fe3f | /lib/drivers/hist2d.sce | 7428200ff5d381c714bcf3d516a4e9cb4a7029d9 | [] | no_license | bozhink/Code-Chunks | 74355eb4c0d423c2f6484226e564030dff798678 | 860b7b8f53089ed96fd0ebead2e3eec16fa377cb | refs/heads/master | 2020-12-24T06:19:04.343239 | 2019-11-13T14:09:15 | 2019-11-13T14:09:15 | 42,819,484 | 0 | 1 | null | 2019-11-13T14:09:16 | 2015-09-20T16:09:09 | HTML | UTF-8 | Scilab | false | false | 376 | sce | hist2d.sce | Lib = home + '/tmp/libhist2d.so'
ulink();
link(Lib,['hist2d','bhist2d','hist2ds','bhist2ds','bool2d'],'f');
m = 10000;
X = linspace(-%pi,%pi,m);
Y = sin(X);
nx = 15; ny = nx;
[Xmin,Xmax,Ymin,Ymax,bordX,bordY,iCount] = call('bhist2d',nx,1,'i',ny,2,'i',m,3,'i',X,4,'d',Y,5,'d','out',[1,1],6,'d',[1,1],7,'d',[1,1],8,'d',... |
acb4be71fc0a55c3c86eb370ef4ff90aeffd9d09 | 27be2dd7284eb8d71ea19e6b077993d7ff6afd16 | /ResolucaoRetroativa.sce | 95698afcf5f5425750d9ebfb97e33a470c3d026e | [] | no_license | mtxslv/numericalcomputation | 3b0ec7d1183c03c91c145de0fb1db9fff0a75e61 | 15ce639e5e370fb21fb1ce9878004270ee814e73 | refs/heads/master | 2020-03-26T06:10:14.116677 | 2019-11-14T11:41:38 | 2019-11-14T11:41:38 | 144,592,787 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 570 | sce | ResolucaoRetroativa.sce | /* Resolução Retroativo, por Mateus de Assis
Tal solução foi explicada e desenvolvida em sala de aula
Disciplina de Computação Numérica - ECT2401
*/
function x = ResRet(A,b) //resolução retroativa com matriz A e vetor independente b
[l,c] = size(A) //quantidade de linhas e colunas da matriz A
f... |
83ad12339e4531cbc420d3b06ec866102a9ba468 | 449d555969bfd7befe906877abab098c6e63a0e8 | /278/CH4/EX4.9/ex_4_9.sce | 4f79dd5cdd2a8c294d6435972508206081c1ca51 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex_4_9.sce |
clc
//solution
//given
d=25//mm/diameter
P=2500//N/force
p=5//(N/mm^2)//bearing pressure
//A=l*d =l*25//(mm^2)//projected area of bearing
//p=P/A//pressure=force/area
//therefore
l=(P/(25*5))//mm//length
printf("the required length is,%f mm",l)
|
00f5b7938be2c12788981666d204a531927fe740 | 717ddeb7e700373742c617a95e25a2376565112c | /3460/CH3/EX3.8/ex3_8.sce | faf1df1e786042242ef6f87ac11d819248b1f756 | [] | 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 | 286 | sce | ex3_8.sce | Ic=8;//given carrier current
It=8.95;//given current
//part a
M=((2*It*It)/(Ic*Ic))-2;//temporary variable
m=sqrt(M);//modulation factor
disp(m,'modulation factor is=');
//part b
x=(m*m/2)+1;//temporary variable
It=Ic*sqrt(x);//total current
disp(It,'total current is=');
|
c204aa8e67c45c4cefca96c7e31ad4f2068c4383 | bacd6919260d728f4316702bbe1edf811810bede | /legacy/37.one.good/console/Untitled3_response.sce | 916c22424064745b03f348fd79d4b000b17eb3b1 | [] | no_license | vopl/sp | 332d8c2ff536fc5d8772ff2f3fbeca9b50c47641 | a4313f4d7af47cc3132d7546947d4d668c7e487e | refs/heads/master | 2020-04-16T02:09:36.036424 | 2016-10-05T18:08:30 | 2016-10-05T18:08:30 | 65,293,458 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 414 | sce | Untitled3_response.sce | stacksize('max');
r1 = read("P:\finance\spectrumSeparator\nhel.Composite\20.1.win.10.test3cos\console\response", -1, 3);
clf;
//plot(r1(:,1),sqrt(r1(:,2).^2 + r1(:,3).^2),'m');
c1 = read("P:\finance\spectrumSeparator\nhel.Composite\20.1.win.10.test3cos\console\convolution", -1, 3);
plot(c1(:,1),sqr... |
8464be967dce2e913159b48339090802790e03cf | 449d555969bfd7befe906877abab098c6e63a0e8 | /2939/CH4/EX4.36/Ex4_36.sce | cea45b2be05e15007df1b0cfbfe6c002eed2426b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 232 | sce | Ex4_36.sce |
//Ex4_36
clc;
// Given:
tPo=138;// days
n=24.86;// days
// Solution:
kPo = 0.693/tPo;
// using simplification logx=2(x-1)/(x+1)
kBi=((2 * 2.303)-(n*kPo))/n;
tBi=0.693/kBi;
printf("The half life of Bi is %f days",tBi)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.