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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cac0447537ef1770d69fe6c44320eb7169b9f500 | 8667898fde492ddc28b1a13f691abc256f30e1cb | /lab2.sce | 20918976fe7bb4d668f58a4c76443bc976c01aa3 | [] | no_license | lainys/tsisa | f269a87516470d14cebc1d13365980030f9258a5 | 15c07d1f4fa4d73b876d63982eba4de323b44b84 | refs/heads/master | 2020-08-02T15:34:16.743889 | 2019-09-30T18:58:14 | 2019-09-30T18:58:14 | 211,411,674 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,650 | sce | lab2.sce | function [p,err]=approx(f,G,Z,p0)
[p,err]=datafit(G,Z,p0)
xgrid;
xlabel('x');
ylabel('y');
scatter(X,Y);
x = -5:0.1:10;
plot2d(x,f(x,p),12);
endfunction
X = [1.28,2.00,2.91,4.07,5.00,6.00,7.01,7.89];
Y = [2.36,3.15,3.55,4.00,4.41,5.08,5.49,6.12];
Z = [X;Y];
scf();clf();
p0=[1;1;1;1;1];
//f... |
f5d3c6b829e041ac7fe7cb456678339b3781a094 | e2cee73f9682b79c4a5d6a1e6381cf6679dc1094 | /TP_AN/TP3/MethodeSecante.sci | 0ebada62ddf583921d4b6ea3a4b15f6540d39643 | [] | no_license | melurne/TP_ANgit | b1b91e444aef30706fef0cac4da9355d4d04e1aa | 59c1aa6a5261f9753e108877079a495d5b95fb50 | refs/heads/master | 2023-04-19T09:23:02.045251 | 2021-05-17T14:56:34 | 2021-05-17T14:56:34 | 350,416,537 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 305 | sci | MethodeSecante.sci | function approx = MethodeSecante(f, x_0, x_1, N)
xn_1 = x_0;
xn = x_1;
approx = xn - f(xn)/((f(xn)-f(xn_1))/(xn-xn_1));
n = 1;
while n < N
xn_1 = xn;
xn = approx;
approx = xn - f(xn)/((f(xn)-f(xn_1))/(xn-xn_1));
n = n+1;
end
return;
endfunction
|
7767d72d1f82064977285f6e55f45f5e6488cb13 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3556/CH1/EX1.4/Ex1_4.sce | ab343032ec0c67c6b3e8b670fda62c78ea09d128 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex1_4.sce | clc
// Fundamental of Electric Circuit
// Charles K. Alexander and Matthew N.O Sadiku
// Mc Graw Hill of New York
// 5th Edition
// Part 1 : DC Circuits
// Chapter 1 : Basic Concepts
// Example 1 - 4
clear; clc; close;
//
// Given data
i = 2.0000;
delta_t = 1... |
eeeccb6fd028c9a5a9e13b8e538a247b316f47f9 | c565d26060d56f516d954d4b378b8699c31a71ef | /mpc/mpc_init.sce | 9a4ab9248e4d83e61de3cf3036eda49247d847bc | [] | no_license | rupakrokade/sbhs-manual | 26d6e458c5d6aaba858c3cb2d07ff646d90645ce | 5aad4829d5ba1cdf9cc62d72f794fab2b56dd786 | refs/heads/master | 2021-01-23T06:25:53.904684 | 2015-10-24T11:57:04 | 2015-10-24T11:57:04 | 5,258,478 | 0 | 0 | null | 2012-11-16T11:45:07 | 2012-08-01T11:36:17 | Scilab | UTF-8 | Scilab | false | false | 1,081 | sce | mpc_init.sce | // For scilab 5.1.1 or lower version users,
//use scicos command to open scicos diagrams instead of xcos
global fdfh fdt fncr fncw m err_count y p q xk_old
p = 40; //prediction horizon
q = 4; // control horizon
xk_old = zeros(8,1);
fncr = 'clientread.sce';
fdt = mopen(fncr);
mseek(0);
err_count = 0; //initialis... |
c1ed66c5068be0086627b3d6c69101df897cea59 | 449d555969bfd7befe906877abab098c6e63a0e8 | /257/CH7/EX7.7/example_7_7.sce | bfb158cc888ad1e90976e5a3880b0dfd3757ed35 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 520 | sce | example_7_7.sce | q=poly([0 0 6 5 1],'s','coeff');
G=1/q //gain FACTOR=k
H=1
y=G*H
disp(y)
syms s
Kp=limit(s*y/s,s,0) //Kp= position error coefficient
Kv=limit(s*G*H,s,0) //Kv= velocity error coefficient
Ka=limit(s^2*G*H,s,0) //Ka= accelaration error coefficient
disp(Ka ,"Ka = ")
disp(Kv ,"Kv = ")
disp(Kp ,"K... |
626d072ffb849807f61a89554bc7f854f79425a7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH15/EX15.17/15_17.sce | 49d8cb090894d28236ed57df3fc35083f699fa14 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 794 | sce | 15_17.sce | //Problem 15.17: Determine the p.d.’s V1 and V2 for the circuit shown in Figure 15.17 if the frequency of the supply is 5 kHz. Draw the phasor diagram and hence determine the supply voltage V and the circuit phase angle.
//initializing the variables:
R1 = 4; // in ohms
C = 1.273E-6; // in Farads
L = 286E-6; // in Henr... |
4f7f74f9daff7e04e3206d01ca7671be10b1ae30 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2150/CH2/EX2.20/ex2_20.sce | 45e0a2d36f273f1413630f487f56ae1d27ae4e3b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 272 | sce | ex2_20.sce | // Exa 2.20
clc;
clear;
close;
// Given data
V1 = 10;// in V
V2 = 0.7;// in V
V3 = V2;// in V
V = V1-V2-V3;// in V
R1 = 1;// in ohm
R2 = 48;// in ohm
R3 = 1;// in ohm
R = R1+R2+R3;// in ohm
I = V/R;// in A
I = I * 10^3;// in mA
disp(I,"Current in mA is");
|
122b3c8bf2c0d45a478cbce43c7be9049bd17373 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3492/CH7/EX7.2/Ex7_2.sce | 68abb4f36c2aea75976040c16b62a81eceaee591 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 486 | sce | Ex7_2.sce | clc
//Chapter7
//Ex_2
//Given
N=5*10^28 //in m^-3
e=1.6*10^-19 // in coulombs
Z=4
me=9.1*10^-31 //in Kg
epsilon_o=8.85*10^-12//F/m2
epsilon_r=11.9
//part(a)
alpha_e=(3*epsilon_o/N)*((epsilon_r-1)/(epsilon_r+2))
disp(alpha_e,"Electronic polarizability in F/m2")
//part(b)
//let x=E_loc/E
x=(epsilon_r+2)/3
... |
bf2e0703e4a51a2ea57ee756130f46be874b044f | e176c804d3e82d065a9c9635dad92da21c1483a9 | /libs/readpbm.sci | e8e1983785f14d2e427bd8efc8f22e67b42ed9f5 | [
"MIT"
] | permissive | Exia-Aix-2016/ExoLife | 38f7d5e54a1fd26333f19d99a8b63f0d64cc4c4c | a88d4bc3b852f8a85b6c8cc0979ced29fb28b751 | refs/heads/master | 2021-09-07T01:47:04.742247 | 2018-02-15T11:57:47 | 2018-02-15T11:57:47 | 120,471,380 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 443 | sci | readpbm.sci | // reading image PGM RAW (8 bits) (PBM)
// usage: img = readpbm('image.pbm');
function image=readpbm(filename)
[u,err]=mopen(filename,'rb')
if err<>0 then error('Error opening file '+filename), end
if mgetl(u,1)~='P5' error('Unrecognized format'), end
z=mgetl(u,1), while part(z,1)=='#', z=mgetl(u,1), end
n... |
877f103c46b2a1f47447b71bb3328e35f47e9509 | 66106821c3fd692db68c20ab2934f0ce400c0890 | /test/disassembler/subi.instr.tst | 4329ca41b3740c87f0f5e7d603013a9f519af99b | [] | no_license | aurelf/avrora | 491023f63005b5b61e0a0d088b2f07e152f3a154 | c270f2598c4a340981ac4a53e7bd6813e6384546 | refs/heads/master | 2021-01-19T05:39:01.927906 | 2008-01-27T22:03:56 | 2008-01-27T22:03:56 | 4,779,104 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,234 | tst | subi.instr.tst | ; @Harness: disassembler
; @Result: PASS
section .text size=0x00000054 vma=0x00000000 lma=0x00000000 offset=0x00000034 ;2**0
section .data size=0x00000000 vma=0x00000000 lma=0x00000000 offset=0x00000088 ;2**0
start .text:
label 0x00000000 ".text":
0x0: 0x0f 0x57 subi r16, 0x7F ; 127
0x2: 0x1... |
b94905832e9180e0736d1ec28dca5fd2dd940556 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3763/CH10/EX10.10/Ex10_10.sce | e81356d3ec35e9ef32b81225b9fc66526ee9e868 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 348 | sce | Ex10_10.sce | clear
//
//
//
//Variable declaration
a=50
n2=1.5 //refractive index of cladding
n1=1.53 //refractive index of core
lamda0=1 //wavelength(micro m)
//Calculation
V_number=(2*%pi*a*sqrt(n1**2-n2**2)/lamda0) //V number
n=V_number**2/2 //maximum number of modes
//Result
printf("\n maximum num... |
793d01f63fd551d2eec227d6835760c9b68a1bdd | caafd05eb866a2bd249681ceeb5734ca2df71833 | /TP7/construct.sci | c5a58019da64baabba03c90f0d0ce6f31e888901 | [
"MIT"
] | permissive | mmewen/MT09-numerical-analysis | 5fb1f251e86f9d43d7eeb23ce7bcc91d6ca3fa8b | cde3871aa885811bc31166e778b2a4f052e74b64 | refs/heads/master | 2021-01-11T22:11:18.631204 | 2017-01-14T10:59:23 | 2017-01-14T10:59:23 | 78,934,966 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 455 | sci | construct.sci | function [A] = construct (t, tau)
exec("place.sci", -1);
m = length(tau);
n = length(t);
A = zeros(m, n);
for i = 1 : m
j = place(t, tau(i)); // localise t dans la suite de pts T
// disp(i);
// disp(m);
// disp(j);
// disp(n);
// disp("--");
... |
84290327ffc8411f7174d0e923bbf3a9f699f606 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2084/CH13/EX13.4/13_4.sce | 34e1719251eb4be27220db4c417e09d9a85b3830 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 635 | sce | 13_4.sce | //developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 13.4
//calculation of the difference in the pressures at A and B point
//given data
A1=1*10^-4//area(in m^2) at point A of the tube
A2=20*10^-6//area(in m^2) at point B of the tube
v1=10*10^-2//speed(in m/s) of the i... |
22c61dd5088d6c037556b5f75e4731ef68c8d598 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2048/CH3/EX3.2/conv2.sce | f3945a6d3923667034e63c02bb7bb41634504cde | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 90 | sce | conv2.sce | // Convolution of two sequences
// 3.2
h = [1 2 3];
u = [4 5 6];
y = convol(u,h)
|
8c14c9290b33513e413acfcf3bfefe3998b7ff25 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set4/s_Digital_Communications_S._Sharma_1631.zip/Digital_Communications_S._Sharma_1631/CH9/EX9.12/Ex9_12.sce | 4b5fae1052fc8f19f9c70f2ed798782a6ea59faf | [] | 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 | 313 | sce | Ex9_12.sce | errcatch(-1,"stop");mode(2);//Caption: rate of information
//Example 9.12
//page no 401
//Find Average rate of information
;
;
m=16;
pxi=1/16;
elements=2*10^6;
n=32
HX=0;
for(i=1:16)
HX=HX+(-(pxi*log2(pxi)));
end
r=elements*n;
R=r*HX
printf("Average rate of information\n \n \t R = %d Mbs",R/10^6);
exit();
|
3ea89267b098c972a064b29602692c5ddde5e528 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH19/EX19.17/19_17.sce | 41c301fd9bbaf5a3eeb8bbe0138f15f4e3940fa0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 252 | sce | 19_17.sce | //ques-19.17
//Calculating mass of a particle
clc
dx=9.54*10^-10;//uncertainity in position (in m)
dv=5.5*10^-20;//uncertainity in velocity (in m/s)
h=6.6*10^-34;//(in Js)
m=h/(4*%pi*dx*dv);
printf("The mass of the particle is %d mg.",m*10^6);
|
f63a6631df9dd7968f28dab58f538d594b14f20a | 449d555969bfd7befe906877abab098c6e63a0e8 | /998/CH29/EX29.52/Ex52.sce | a12fd28fff42f8bcd4abc722442c7dbb5e8c45ab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 287 | sce | Ex52.sce | //Ex:52
clc;
clear;
close;
e=0.5;//orbital eccentricity
a_e=14000;//dis b/w center of ellipse to the center of earth in km
a=a_e/e;//semi major axis in km
r_a=a*(1+e);//apogee in km
r_p=a*(1-e);//perigee in km
printf("The apogee=%d km",r_a);
printf("\n The perigee=%d km",r_p); |
1ac338d3b2c9d30772cc00bd567236b7b8d6835b | 449d555969bfd7befe906877abab098c6e63a0e8 | /536/CH4/EX4.2/Example_4_2.sce | 5b57ce4dcceb6aafc1f58077bede59529e7fadd1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Example_4_2.sce | clc;
printf("\n Example 4.2\n");
l=30;//Length of the tube
d=150e-3;//Diameter of the tube
P1=0.4e3;//Initial Pressure
P2=0.13e3;//final Pressure
//X=e/d, Relative roughness
//Y=R/(rho*u^2) = 0.004
X=0.003;
Y=0.005;
v1=21.15e1;
G_A=poly([0],'G_A');
f=(G_A^2*log(P1/P2))+((P2^2-P1^2)/(2*P1*v1))+(4*(Y*l/... |
6194d377236bd7156c3e3843d781c6ad04c049ca | 449d555969bfd7befe906877abab098c6e63a0e8 | /3041/CH3/EX3.15/Ex3_15.sce | e536272f2e50dcba0195de7258172c61e74efb2b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex3_15.sce | //Variable declaration
Vcc=6 //supply voltage(V)
R=1.2 //resistance(k ohms)
Vbe=0.7 //base to emitter voltage(V)
beeta=100. //current gain
//Calculations
//Part a
Ir=(Vcc-Vbe)/R //current(mA)
I=(beeta/(beeta+3))*Ir //current(... |
9dcf7a82364f1969d8a3a50b961a049a67d4d7c2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3710/CH8/EX8.6/Ex8_6.sce | 608b297f538b2b5d96aed5dd3458318d84d36167 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 415 | sce | Ex8_6.sce | //Example 8.6, Page Number 380
//Intermodal Dispersion in step index fibers
clc;
n1=1.48//refractive index
n2=1.46//refractive index
L=1*(10**3) //Length of Fiber in kilometer
c=3*(10**8) //Speed of Light in meters per second
//Using equation 8.24
td=((L*n1)/(c*n2))*(n1-n2) //t is the time difference due t... |
bad06692e1b85c7e3e52348a8400f5ab8a335a97 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1634/CH1/EX1.30/example1_30.sce | 3705698b454411c1de5e3af7b8cb8179d0ba925b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 551 | sce | example1_30.sce |
//exapple 1.30
clc; funcprot(0);
// Initialization of Variable
longP=85+20/60;//longitude of place
GST=18+30/60;//standard time
gst=6+32/60+12/3600;//GST at GMN
dot=longP/15;//difference in time
GMT=GST-dot-12;
i=GMT*9.8565/3600;//error
GMT=GMT+i;//SI time
LST=GMT+dot+gst;//LST at LMT
disp("local standar... |
faa3ff5b186f6e31b7e1068e8702a798a2f4b8d5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH10/EX10.5/5.sce | 4c727bf4206e98cd564041067c2df7957dc583e6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 933 | sce | 5.sce | clc
//For the air at 35 0C DBT and 60% R.H.
p_vs=0.0563; //bar; Corresponding to 35 0C from stem tables
phi=0.6;
p_t=1.0132; //bar
cp=1.005;
t_db=35; //0C
h_g=2565.5; //kJ/kg
m1=1; //kg
m2=2; //kg
m=m1+m2;
p_v=phi*p_vs;
W1=0.622*p_v/(p_t-p_v);
//Corresponding to 0.0388 bar, from steam tables
t_dp=... |
9dd0b3ead48eba65bcd46ce78d542cfb63e3a6ba | 449d555969bfd7befe906877abab098c6e63a0e8 | /527/CH9/EX9.3/9_4exam.sce | fc9515672dba4dc70e01a3c89f54918d64a6cd76 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,558 | sce | 9_4exam.sce | //Engineering and Chemical Thermodynamics
//Example 9.4
//Page no :447
clear ; clc ;
//Given
del_gf_0_CH2O = -110.0 ; //[kJ/mol],From Appendix A.2 & A.3
del_gf_0_H2 = 0 ; //[kJ/mol],From Appendix A.2 & A.3
del_gf_0_CH4O = -162.0 ; //[kJ/mol],From Appendix A.2 & A.3
del_hf_0_CH2O = -116.0 ; //[kJ/mol],From Ap... |
da662c7780c22705071925954d6efeb905bc131c | 717ddeb7e700373742c617a95e25a2376565112c | /278/CH23/EX23.23/ex_23_23.sce | 440d976d74f9a3e01ac9d8e0a10cbbead59731c6 | [] | 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 | 491 | sce | ex_23_23.sce | //find
clc
//solution
//given
tL=140000//N
ns=4
n=10
L=500//mm
dx=80//mm
E=200000//N/mm^2
f=600//N/mm^2
W=tL/8//N
//let t be thickness and b be th width
//f=6WL/(nbt^2)
//nbt^2=87.5*1000...eq1
//dx=6WL^3/(nEbt^3)
//nbt^3=0.82*10^6....eq2
//from eq1 and eq2 ,we get
t=10//mm
b1=87.5*1000/(n*t^2)
print... |
86d77b31de1930976d5e1c45c6d29fe0fd6dd122 | cb4516492965c75d14c9d499c387d3cd0b883bc4 | /X3/Section 7 -Tools Environmental Effects/7.1 Joachim Diepstraten, Mike Eißele/arithmetic_sparly.tst | b153790e3a6e48e743eaf1c04cff58b7576865b7 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | nedma/ShaderX | 48367dfc1153e4e6ad6bb5c205777285b06376c5 | 0503dd6ae16f3d288f2e27b0f93ebdfbaf1f4436 | refs/heads/master | 2020-04-08T01:51:11.173038 | 2018-11-24T08:37:42 | 2018-11-24T08:37:42 | 158,911,553 | 0 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 245 | tst | arithmetic_sparly.tst | \shader\cmp.psh
\shader\cmp_4x.psh
\shader\cmp_pp.psh
\shader\frc.psh
\shader\frc_4x.psh
\shader\lrp.psh
\shader\lrp_4x.psh
\shader\rcp.psh
\shader\rcp_pp.psh
\shader\rcp_4x.psh
\shader\rsq.psh
\shader\rsq_pp.psh
\shader\rsq_4x.psh
|
1d868d164e6b8ff2936e476d2c80e93d295c9721 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH2/EX1.2.13/Ex1_2_13.sce | e3b53deb03e431b783b2e87f2707bb97dd42256d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 227 | sce | Ex1_2_13.sce | //Section-1,Example-3,Page no.-AC.182
//To calculate the percentage of sulphur in the given coal sample.
clc;
W_BaSO4=0.01
W_coal=0.1
P_S=(W_BaSO4*32*100)/(W_coal*233)
disp(P_S,'Percentage of sulphur in the given coal sample')
|
009e83a1a404dc0f9e43b97b9673f9ee0fd861a2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1529/CH16/EX16.11/16_11.sce | 94f677feb968b26e8fb6a6dd74da0a2367eb9d24 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 448 | sce | 16_11.sce | //Chapter 16, Problem 11, Fig 16.13(a)
clc;
f = 50; // in ohm
V = 240; // in Volts
pf = 0.6 // power factor
Im = 50; // in amperes
//calculation:
phi = acos(pf)
phid = phi*180/%pi
Ic = Im*sin(phi)
I = Im*cos(phi)
printf("\n\n (a)T... |
06494a4a048f6fddf2d498da217aa0f397eabebb | 449d555969bfd7befe906877abab098c6e63a0e8 | /659/CH12/EX12.6/exm12_6.sce | 17cf059fc435ddd1454ba7701c31b6b2603b4c6e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,554 | sce | exm12_6.sce | // Example 12.6
//Write a program to append additional items to the file INVENTORY
//created in Example 12.3 and print the total contents of the file.
funcprot(0);
warning('off');
function[item] =append(product,fp)
printf("Item name:\n");
product.name=scanf("%s");
printf("Item n... |
499e86251f460b07d71220226d52b0a60df12e1b | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/macros/percent/%r_n_s.sci | 03ea45042fa9a6d407f1848df927f4a7f2b20acf | [
"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 | 183 | sci | %r_n_s.sci | function [r]=%r_n_s(l1,l2)
// l1<>l2 rational<>constant
// Copyright INRIA
r=degree(l1('num'))==0°ree(l1('den'))==0
if r then r=coeff(l1('num'))./coeff(l1('den'))==l2,end
r=~r
|
7ffec1a0c25055001a96b832f13f53a717212e0e | 1db0a7f58e484c067efa384b541cecee64d190ab | /macros/poly2rc.sci | cfdbec63369cb59c683bd5d0753c438b07fad2ab | [] | no_license | sonusharma55/Signal-Toolbox | 3eff678d177633ee8aadca7fb9782b8bd7c2f1ce | 89bfeffefc89137fe3c266d3a3e746a749bbc1e9 | refs/heads/master | 2020-03-22T21:37:22.593805 | 2018-07-12T12:35:54 | 2018-07-12T12:35:54 | 140,701,211 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,862 | sci | poly2rc.sci | function [kr, R0]=poly2rc(a, efinal)
//poly2rc function convert prediction polynomial to reflection coefficients.
// Calling Sequence
// kr = poly2rc(a)
// [kr, R0] = rc2poly(a, efinal)
// Parameters
// a: prediction polynomial.
// efinal: final prediction error.
// kr: Return refelection coefficient.
// R0: Re... |
6d12c5e9a498f42553ec0bca01bfb39cffd84d58 | 637fcd60a4e2a98ebbeaaa9551554a13e1ebfdba | /quad/ctrl/paparazzi/sw/airborne/firmwares/vor/sci_gen_c_filters.sce | d25cf76236de45a5c23af2e894f388082acf9624 | [] | no_license | zoomx/lxyppc-tetrix | b7079c07aee9b85a34207245f526e1613fdb0498 | 884027f37594f9f006f88d634c4392a60c482491 | refs/heads/master | 2021-01-10T21:04:54.219013 | 2015-05-10T08:45:33 | 2015-05-10T08:45:33 | 35,362,463 | 12 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,523 | sce | sci_gen_c_filters.sce | //
//
// Generates C file and corresponding headers for filters used in
// C implementation
//
clear();
exec('sci_vor_filters.sci');
[filters] = vor_get_filters();
filter_name = [ "BP_VAR"
"BP_REF"
"LP_DECIM"
"LP_VAR"
"LP_REF"
"LP_FM" ];
f... |
71da0e6856c4cdcd99fc145178acab3995139a20 | 449d555969bfd7befe906877abab098c6e63a0e8 | /617/CH5/EX5.2/Example5_2.sci | 94959c09a5c6a7f3e0bfc96cc55a2f0568eb8fb2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,139 | sci | Example5_2.sci | clc();
clear;
// to find tempearture difference between inner and outer surface
r=1/4; // radius in inches
to=300; // outer surface temperature of cylinder in degF
q0=10; // i2r heat loss in Btu-in^2/hr
k... |
4bcfb4c62dd1abd786cb817c280e954273740a66 | 449d555969bfd7befe906877abab098c6e63a0e8 | /992/CH3/EX3.3/Ex3_3.sce | 3c0d6618056a35ae0c41a736f2ad601c0040e3bd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 261 | sce | Ex3_3.sce |
//Exa:3.3
clc;
clear;
close;
//Given:
Bw=12;//in KHz
Mod_mn=300;
Mod_mx=3000;
dev=6;//in KHz
m1={(Bw-dev)*1000}/Mod_mn;
m2={(Bw-dev)*1000}/Mod_mx;
printf("\n 1)modulation indexat 300Hz = %f ",m1);
printf("\n 2)modulation indexat 3000Hz = %f ",m2); |
27df9d67dff8a34e13e6e841f1e203344b98fd0a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2015/CH9/EX9.3/9_3.sce | 9cf6e611641f2c3b537f8cc617d34bc032e4147a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 698 | sce | 9_3.sce | clc
//initialisation of variables
p2=3.24 //pressure in bar
p1=1 //pressure in bar
v1=16 //volume in m*m*m
n=1.35
rp=3.24 //pressure
r=10.5
t1=294 //temparature in k
t2=294 //temparature in k
cp=1.005 //kj/kg
rx=0.287
//CALCULATIONS
w1=(2*n/(n-1))*p1*v1*100*0.35630 //(3.24)^0.2592-1
w2=(n/(n-1))*p1*v1*10... |
bc88b13b031af013aaaacd28b28d87ec57c2f760 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2966/CH1/EX1.6.10/1_6_10.sce | 11a1fc2ebd7542d618029489514314f61560678d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 791 | sce | 1_6_10.sce | //water//
//page 1.10 example 6//
clc
W1=14.6;//Mg(HCO3)2 in water in mg/L//
W2=8.1;//Ca(HCO3)2 in water in mg/L//
W3=29.6;//Mg(NO3)2 in water in mg/L//
W4=19;//MgCl2 in water in mg/L//
W5=24;//MgSO4 in water in mg/L//
M1=100/146;//multiplication factor of Mg(HCO3)2//
M2=100/162;//multiplication factor of Ca(H... |
1f1f0d862924a9c8c9d954e2a1cf09e2c401d3d3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /887/CH3/EX3.2/3_2.sce | 91f1a7b233b4a343e54068311758433a0f88c890 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 542 | sce | 3_2.sce | clc
//ex3.2
C=0.1*10^-6;
//symbolic integration cannot be done in scilab
t=[0:0.001*10^-3:3*%pi*10^-4];
i=0.5*sin((10^4)*t);
//on integrating 'i' w.r.t t
q=0.5*10^-4*(1-cos(10^4*t));
C=10^-7;
V=q/C;
subplot(221)
plot(t,q*10^6)
xtitle('charge vs time','time in seconds','charge in Mc') //Mc=micro coulomb... |
914ffb6302d71769947198082f83a6cc3e367352 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2708/CH22/EX22.3/ex_22_3.sce | be4bc92e803eb72783389f3f0f56bec908899fb5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 343 | sce | ex_22_3.sce | //Example 22.3 // critical current density
clc;
clear;
//given data :
d=1D-3;//diameter of wire in m
Ho=6.5D4;//critical field at temperature at 0k
Tc=7.18;// critical temperature in kelvin
T=4.2;//temperature in kelvin
Hc=Ho*(1-(T/Tc)^2);//critical field at T kelvin
Jc=4*Hc/d;//formula
disp(Jc,"critical curr... |
bea620e4b35a2388ee35fe29974a33179423a764 | 449d555969bfd7befe906877abab098c6e63a0e8 | /10/CH10/EX2/cha10_2.sce | 2bd67fa6823c9ea3b0868d9532eea0a0d1e03b45 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 152 | sce | cha10_2.sce | Vp=120;Angle=60;
t0=%pi/2
t1=t0:0.01:(210/360*2*%pi);
integrate('2^.5*120*sin(t)','t',t0,t1)
Vo=((3*sqrt(6))/(2*%pi))*120*cos(%pi*Angle/180) |
7f1279af38b699c0081f38a4ec3545e55aeec7e4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /876/CH5/EX5.8/Ex5_8.sce | 58314059744669a040e53a09d242f6a4b374fd55 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 630 | sce | Ex5_8.sce | //caption:Find the value of multiplier resistance for the range(a)0-10V(b)0-50V(c)0-100V(d)0-200V
//Ex5.8
clc
clear
close
V1=10//maximum voltage range(in V)
V2=50//maximum voltage range(in V)
V3=100//maximum voltage range(in V)
V4=200//maximum voltage range(in V)
I=0.002//deflection current(in A)
R=100//inter... |
0fa967178c361c76a9403b93cc07d5139c56bce4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2858/CH7/EX7.2/Ex7_2.sce | 16251be18d2cb73a634e10d83398638e0b9fb0a3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 601 | sce | Ex7_2.sce | //example 7.2
clc; funcprot(0);
c=14.36;
Gamma=17.4;
H=6;
phi=26*%pi/180;
Ka=(tan(%pi/4-phi/2))^2;
sigma0=Gamma*H*Ka-2*c*sqrt(Ka);
Pa=1/2*Gamma*H^2*Ka-2*c*H*sqrt(Ka);
disp(Pa,"active force before which tensile crack appeared in kN/m");
zbar=(244.32-323.1)/14.46;
disp(zbar,"the line of action on which net for... |
605cbf92fc751add620ca2d99405971de9cccd60 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3760/CH1/EX1.52/Ex1_52.sce | e8cc26cc34ecba71c4a1af02ee739f447795cfab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,146 | sce | Ex1_52.sce | clc;
// two transformers are connected in parallel and has following data
P1=100; // rated KVA of transformer 1
E11=6600; // rated primary voltage for transformer 1
E21=230; // rated secondary voltage for transformer 1
z1=1.5+4*%i // percentage leakage impedance for transformer 1
P2=200; // rated KVA of transform... |
b4730669570cf442f21f192aa19bbef51022f5a8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3311/CH2/EX2.4/Ex2_4.sce | d68ebf75b4de3d1c18be5da5057e6126d35ac081 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 799 | sce | Ex2_4.sce | // chapter 2
// example 2.4
// Find the value of series resistor and average power
// page-31
clear;
clc;
// given
// Vg=1.5+8*Ig; // relation between Vg and Ig
Vgs=12; // in V
t=50; // in us
D=0.2; // duty cucle
P=5; // in W
// calculate
// since Vgs=Ig*Rg+Vg=Ig*Rg+1.5+8*Ig or
// Vgs=(Rg+8)*Ig+1.5, (i)
// since P=Vg*... |
ac19f5036221bdd05464c9e4fc9146569be0e660 | 449d555969bfd7befe906877abab098c6e63a0e8 | /869/CH13/EX13.9/13_9.sce | eb7b4293fe91904ed3511f878d288854d08d9f2b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 160 | sce | 13_9.sce | clc
//initialisation of variables
I= 1.5 //in^4
Da= 0.5 //in
E= 30*10^6
l= 60 //in
//CALCULATIONS
F= 6*Da*E*I/(l^3)
//RESULTS
printf ('F= %.2f lb',F)
|
d5b31e786887b097adab0a216da64ce868586ce6 | 51e9b626c77bd433b81b6b9830d2db2518806582 | /task1/kadai3.sce | b876b50f2213d71df5eb37255abb995857cba4e4 | [] | no_license | hama1185/IinteractiveSystem | 1e005fd92fa4b89e4f75926a4f872595aa831a8f | fb880fc82fa8e477306695f5abd7d6b0e0f0a24c | refs/heads/master | 2022-12-19T12:48:36.368503 | 2020-05-30T08:18:55 | 2020-05-30T08:18:55 | 268,037,754 | 0 | 0 | null | 2020-06-11T05:37:25 | 2020-05-30T08:16:47 | Scilab | UTF-8 | Scilab | false | false | 763 | sce | kadai3.sce | fs = 44100;//サンプリングレート
T = 0.25;//音の生成時間(この値の2倍の長さ)
t = [0 : T * fs - 1] / fs;//時間軸の設定
//音の周波数リスト
C = 1046.502;//周波数ド(C)
D = 1174.659;//周波数レ(D)
E = 1318.510;//周波数ミ(E)
F = 1396.913;//周波数ファ(F)
G = 1567.982;//周波数ソ(G)
A = 1760.000;//周波数ラ(A)
B = 1975.533;//周波数シ(B)
//石焼き芋の歌
c = sin(2 * %pi * C * t);
d = sin(2 * %pi * D * t)... |
113352484765d6ee378de60c69a57206f7bc9783 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4.1/macros/elem/tanh.sci | 4b26e72ce1e17857cf6be5d732305dd50f76ff5d | [
"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 | 186 | sci | tanh.sci | function t=tanh(x)
//Element wise Hyperbolic tangent
// Copyright INRIA
if type(x)<>1 then error(53),end
t1=exp(x);t2=exp(-x);
t=(t1-t2)./(t1+t2);
k=find(isnan(t))
t(k)=sign(real(x(k)))
|
70d51276cb5a83035995e34d723fc78a1978364e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3269/CH4/EX4.6/Ex4_6.sce | 3b82cb570402e6bb6527a908ef40c6530fcd73e6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,473 | sce | Ex4_6.sce | // Example 4.6
clear;
clc;
// Given data
A_U = 238; // Atomic Mass number of Uranium
A_O = 16; // Atomic Mass number of Oxygen
amt_UO2 = 33000; // Amount of Uranium dioxide (UO2) present in kilogram(kg)
x_P = 0.032; // Enrichment of 3.2 w/o uranium product
x_T = 0.002; ... |
f4196307a8bee06675713462596e975c3e261c3c | f0919c8ea73f22939a890aa4f8327f8200344d2b | /html/tcp_rec.tst | a57c6ed7d118548a0ab0bbb333be19b2189ba3e0 | [] | no_license | kalex375/OVC | af5e91f90754454b90f339e846c5b9112d38d6c8 | f4b47dfc497299c4944b4ff9b93253c279012454 | refs/heads/master | 2021-05-31T07:55:44.326597 | 2013-12-02T14:15:52 | 2013-12-02T14:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,248 | tst | tcp_rec.tst | PL/SQL Developer Test script 3.0
28
DECLARE
c utl_tcp.connection; -- TCP/IP connection to the Web server
ret_val pls_integer;
BEGIN
c := utl_tcp.open_connection(remote_host => '192.168.100.2',
remote_port => 8084,
charset => 'US7ASCII'); -- op... |
9063220c0524a449f6a81bccd4638ca19aa41099 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2138/CH11/EX11.4/ex_11_4.sce | 98a3ab6b4efc7a6ba3cdef389e3c7b2261fc3ba0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 229 | sce | ex_11_4.sce | //Example 11.4 // current flowing
clc;
clear;
close;
//given data :
f=50; // frequency in Hz
C=100*10^-6;// capacitor in Farad
V=210; // voltage in volts
pi=22/7;
XC=(1/(2*pi*f*C));
Z=XC;
I=V/Z;
disp(I,"current flowing,I(A) = ")
|
5e09e04542df6cb02cb43e8512312b734bde8477 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1787/CH3/EX3.8/Exa3_8.sce | 74d7965fdee713d85ea0a55bcfab17e5e0cfe613 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 347 | sce | Exa3_8.sce | //Exa 3.8
clc;
clear;
close;
//given data
ND=10^21;//in m^-3
NA=10^22;//in m^-3
De=3.4*10^-3;//in m^2-s^-1
Dh=1.2*10^-3;//in m^2-s^-1
Le=7.1*10^-4;//in meters
Lh=3.5*10^-4;//in meters
ni=1.6*10^16;//in m^-3
e=1.602*10^-19;//constant
IoA=e*ni^2*(Dh/(Lh*ND)+De/(Le*NA));
disp(IoA*10^6,"Reverse saturation cur... |
9713e883dd26c0a19efefee8b6fb4069b3e5014c | 449d555969bfd7befe906877abab098c6e63a0e8 | /965/CH7/EX7.50/50.sci | 964f2eebaffe0df8192037390a0e1c68394fe352 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 484 | sci | 50.sci | clc;
clear all;
disp("heat transferred per meter")
ta=15+273;//K air temperature
ts=605+273;//K plate temperature
U=6.5;// m/s velocity of air
x=0.35;//m distance
tf=(ts+ta)/2;// mean film temperature
rho=0.614;//kg/m^3
cp=1046;//J/kg.K
k=0.04593;// W/m.C
mu=29.7*10^(-6);//kg/m.s
Pr=0.675;,
Re=rho*U*x/mu;
... |
b7c359bd9325b1dc25e0ec3f0f27e004b6ed2892 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3681/CH9/EX9.10/Ex9_10.sce | 3fa502598f9010fa2f091dd3ad09bfc0cfec0c42 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 862 | sce | Ex9_10.sce | // Calculating the demagnetizing and cross magnetizing mmf per pole
clc;
disp('Example 9.10, Page No. = 9.38')
// Given Data
P = 500;// Power rating (in kW)
rpm = 375;// Speed in r.p.m.
p = 8;// Number of poles
flux = 0.0885;// Flux per pole (in Wb per meter)
// Calculation of the demagnetizing and cross magnet... |
c0f7d2cb15cff611c8f230270806348910109b3f | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.13_10.tst | 9ae346527cf2b30fc51c7bd1d5dd096bb1b7db20 | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 4,457 | tst | bow.13_10.tst | 13 8:0.5 13:1.0 32:0.25 81:1.0 222:1.0 1005:1.0
13 8:0.5 37:0.5 130:0.5 624:0.25
13 4:0.3333333333333333 12:0.5 22:0.16666666666666666 29:0.18181818181818182 36:0.1 114:0.14285714285714285 118:1.0 165:1.0 180:0.3333333333333333 198:1.0 279:1.0 582:1.0 963:1.0 1353:1.0
13 8:0.5 12:0.5 32:0.25 153:0.3333333333333333 171:... |
f50c5126fc6102ca16fa645e91a865beaaf7f6f5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2795/CH7/EX7.4/Ex7_04.sce | 822ae93e63b9ed36dc6ca5381bdb824017ada7f9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,087 | sce | Ex7_04.sce | // Scilab Code Ex7.4: Page-252 (2014)
clc; clear;
n = 3; // Principal quantum number
Total = 0;
printf("\nn l m_l 2(l + 1)");
printf("\n------------------------------------");
for l = 0:1:n-1
printf("\n%d", n);
printf(" %d ", l);
if l > 0 then
count = 0... |
59beaa89ffcfe61b932f6c056a2bdf59d1685caf | 449d555969bfd7befe906877abab098c6e63a0e8 | /479/CH1/EX1.6/Example_1_6.sce | f64b60019fc0cfc8ce18201e9c7581c99c44d19f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 539 | sce | Example_1_6.sce | //Chemical Engineering Thermodynamics
//Chapter 1
//Introduction
//Example 1.6
clear;
clc;
//Given
n = 1;//n is the Kg mole of ideal gas.
P1 = 700*(10^4);//P1 is the initial pressure of the system in N/(m^2)
P2 = 638*(10^4);//P2 is the final pressure of the system in N/(m^2)
T = 300;//T is temperature of ... |
12a745f32050ece600e54318a97f731418cd5b3c | 449d555969bfd7befe906877abab098c6e63a0e8 | /3860/CH1/EX1.8/Ex1_8.sce | 77e476d08c953ce3ff2bbbf9bc35539c924b0567 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 196 | sce | Ex1_8.sce | //Example 1.8 Conversion from decimal number to binary number.
clc;
x = dec2bin(105); // binary equivalent of decimal number
disp('The binary number is = ');
disp(x) // answer in binary form
|
001ed070f1c45fe7f8a9415a74a4c3ee18a2da3c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2084/CH18/EX18.18w/18_18w.sce | d1bec7ace70ac24ec2fdeacd4ed823141d7d8d53 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,575 | sce | 18_18w.sce | //developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 18.18w
//calculation of position of image due to refraction at the first surface and position of final image
//given data1
//u=infinite object distance (in cm)
R=2; //radius of curvature of the spherical convex sur... |
6c84ecb479cfa71e1b3caaf3756581b070face03 | 449d555969bfd7befe906877abab098c6e63a0e8 | /257/CH11/EX11.13/example_11_13.sce | 737a1e969465544961967dba06052a7c8bdbf156 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 668 | sce | example_11_13.sce | s=poly(0,'s');
F=syslin('c',[(1+0.2*s)*(1+0.025*s)/((1+0.001*s)*s^(3)*(0.005*s+1))])
fmin=0.1; //Min freq in Hz
fmax=20; //Max freq in Hz
scf(1);clf;
bode(F,fmin,fmax); //Plots frequency response of open-loop system in Bode diagram
[GainMargin,freqGM]=g_margin(F) //Calculates gain margin [dB] and correspo... |
5ddcd8251d869bf74064ca1da71d81268879afe7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2135/CH6/EX6.34/Exa_6_34.sce | a765be5fb8db897eeca26df860322b83ae8414e2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 535 | sce | Exa_6_34.sce | //Exa 6.34
clc;
clear;
close;
format('v',7);
//Given Data :
p1=80;//bar
Tsup3=350;//degree C
pb=712.5/760*1.01325;//bar
mdot=2;//Kg/s
//mdot=1;//Kg
h3=2964;//KJ/Kg(Molliers diagram)
h4=2184;//KJ/Kg(Molliers diagram)
WT=h3-h4;//KJ/Kg
WTdot=mdot*WT;//KW
disp(WTdot,"Total turbine work in KW : ");
wp=(p1-... |
631bad3344f6b4755697e6b8ec4e2baad2bde043 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2660/CH11/EX11.1/Ex11_1.sce | b4678572676342ef75837861f06c7fa5285427e8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 554 | sce | Ex11_1.sce | clc
v = 15000 // vertical magnification
h = 100 // horizontal magnification
l = 0.8 // sampling length in mm
a1 = 160 // area above datum line in mm^2
a2 = 90 // area above datum line in mm^2
a3 = 180 // area above datum line in mm^2
a4 = 50 // area above datum line in mm^2
a5 = 95 // area below datum line in m... |
471c457288567366e7e4465b8271e39f5082e317 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2201/CH3/EX3.5/ex3_5.sce | 8fbfa883673dfefbfc33304baeb5a2c5866a248e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sce | ex3_5.sce | // Exa 3.5
clc;
clear;
close;
// Given data
Miu_n = 0.15;// in m^2/v-s
K = 1.38*10^-23;
T = 300;// in K
e = 1.6*10^-19;// in C
D_n = Miu_n*((K*T)/e);// in m^2/s
Torque_n = 10^-7;// in s
L_n = sqrt(D_n*Torque_n);// in m
disp(L_n,"The diffusion length in m is");
del_n = 10^20;// in electrons/m^3
J_n = (e*D_... |
46b83971f3e66265eba1eb77328085603d7c92b5 | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/CreatingPlots/testmatrixhandle.sce | d3f0efb662f64473b7f63a7e37a3de72c81538d4 | [] | 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 | 159 | sce | testmatrixhandle.sce | lines(10) //to delete
plot() // commande graphique Scilab
E=gce() // handle de type Compound
E.children(1) // 1er des 41 descendants de E
|
79ec0c7639ccd7c74bbe996bee36a52eb0516dbd | 449d555969bfd7befe906877abab098c6e63a0e8 | /3035/CH14/EX14.2/Ex14_2.sce | 73898c397fd912455ef5c437253561db39169234 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,217 | sce | Ex14_2.sce |
// Variable Declaration
I_f_A = 6000.0 //3-phase fault current of substation A(A)
I_f_B = 5000.0 //3-phase fault current of substation B(A)
I_f_C = 3000.0 //3-phase fault current of substation C(A)
I_f_D = 2000.0 //3-phase fault current of substation D(A)
I_L_max = 100.0 //Maximum load cuurent(... |
d74287bacb02dc2f1b4de89f536e10113f2ed69b | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/rc2lar/rc2lar6.sce | 3d4de991eeb198605df8f40059400b9070808646 | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 219 | sce | rc2lar6.sce | //check o/p when i/p is a matrix
k = [0.3090 0.9801; 0.0031 0.0082; -0.0082 0.54365];
g = rc2lar(k);
disp(g);
//output
//
// 0.6388789 4.6001829
// 0.0062000 0.0164004
// - 0.0164004 1.218645
//
|
aabf82de2c7e09b21cc16ce57ad2e741da715f73 | 668ca4e9ddcb0e4af73b341adf7dc544e552980d | /笔记/java笔记1.tst | 19c15446f21eca5093c8e96d94a947b7bb45d891 | [] | no_license | ysily8817/biji | 6d5c70e681d9753597557a3204d8b6f69a5b2d7b | 15ff1b882a6e107caea02401bc384a38ceb1c4d6 | refs/heads/master | 2022-06-25T07:41:45.485965 | 2019-09-30T04:14:12 | 2019-09-30T04:14:12 | 199,145,828 | 0 | 0 | null | 2022-06-21T01:36:05 | 2019-07-27T09:44:03 | Scilab | UTF-8 | Scilab | false | false | 46,202 | tst | java笔记1.tst | 一、数组
常用方法说明
1、copy数组
公式:Arrays.copyOf(original, newLength);
说明:original:源数组,newLength:copy的长度
例:
int[] a = new int[]{1, 3, 6, 22, 31, 4};
int[] c = Arrays.copyOf(a, 10);
结果:打印数组c--》[1, 3, 6, 22, 31, 4, 0, 0, 0, 0]
如果源数组a长度不够,则补零;
2、copy数组
公式:Arrays.copyOfRange(original, from, to);
说明:original:源数组,from:从第几位开始,to:到第... |
eda3dec24c7a5d3920e18a547e403b4a9c7bfc43 | 449d555969bfd7befe906877abab098c6e63a0e8 | /965/CH2/EX2.72/72.sci | 07e63fedb5f1b5148209fc9129276669dc2f827a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 502 | sci | 72.sci | clc;
clear all;
disp("heat flow through wire")
k=0.12;// W/(m*C)
r1=2/2;//mm
r2=r1+0.8;//mm
ho=35;// W/(m^2*K)
rc=1000*k/ho;//mm
disp("mm",rc,"critical radius of insulation =")
disp("i) heat flow through an insulated wire")
Rthcd=(log(r2/r1))/k;
Rthcv=1000/(ho*r2);
Rth12=Rthcd+Rthcv;
//Q12=2*pi*L*(t1-t... |
53a1c9bcdb326ab7ee43b5e3a91dd4fd8411798d | d63acd02651109079a842c5d5f44fa51a23a2e12 | /test.tst | 0d77becc2c1467464411780ea5156a8185a177a7 | [] | no_license | HeroNani/mycode | 3cae27f7120b8447b3108df94eaf041a625a0ed3 | 258a9e9dbe4a6affed687e8898bd4bd3afec32e4 | refs/heads/master | 2021-05-02T07:51:39.339128 | 2019-02-20T15:48:08 | 2019-02-20T15:48:08 | 120,840,073 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 211 | tst | test.tst | sd lkjasd l;kajsd lkasd
sdg
sdf g
dsf gs
df gs
df
g
df gsdf g
sdf
g
sd
fgs
df g
spp
-- test.lua 文件末尾注释-- test.lua 文件末尾注释-- test.lua 文件末尾注释-- test.lua 文件末尾注释 |
1b4b865adb40fb03b4853158e7c9365676cd8f4a | 449d555969bfd7befe906877abab098c6e63a0e8 | /476/CH7/EX7.10/Example_7_10.sce | 4f86bae7f1f94cb54a3ccced3ce791d9187a8b7e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Example_7_10.sce | //A Textbook of Chemical Engineering Thermodynamics
//Chapter 7
//Properties of Solutions
//Example 10
clear;
clc;
//Given:
K = 4.4*10^4; //Henry's law constant (bar)
pp = 0.25; //partial pressure of oxygen in bar
M_O2 = 32; //molecular wt of oxygen
M_water = 18; //molecular wt of water
//To estima... |
4383ef1fed2a7101fc03c139d77dad7bdb88a937 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1052/CH20/EX20.7/207.sce | 355a45fa030a5f76c58c09d6534754d7b3843505 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 618 | sce | 207.sce | clc;
//Example 20.7
//page no 276
printf("\n Example 20.7 page no 276\n\n");
//refer to illustrative Example 20.5
//(1)
//we have to calculate minimum air ventilation flow rate into the room containing 10 ng/m^3 of a toxic chemical
//ng means nanograms
rV=250//chemical generated in the laboratory,ng/min
c_o=10... |
958c0a9f0a504593d7cd13b0493ae1972ddbb387 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3137/CH3/EX3.11/Ex3_11.sce | 20ed04db39207834647ea1dfa62221ed3ee8ba4b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 510 | sce | Ex3_11.sce | //Initilization of variables
F1=150 //lb
F2=80 //lb
F3=100 //lb
F4=50 //lb
theta1=((45*%pi)/180) //radians
r=3 //units
//Calculations
Fh=F1-F3*cos(theta1) //lb
Fv=F4-F2-F3*sin(theta1) //lb
R=sqrt(Fh^2+Fv^2) //lb
//Applying the Varignons Theorem
a=(F4*r-F1*r+F2*r-F3*r)/R //units
//Result
clc
printf('The ... |
565b5f38e1969325ac0b5e687d42616cba7bc8e1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1529/CH13/EX13.5/13_05.sce | 53c53829bc05e9a2493ebcea26aabd3a00009022 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,501 | sce | 13_05.sce | //Chapter 13, Problem 5, figure 13.16
clc;
E1=4; //e.m.f source 1
E2=2; //e.m.f source 2
R=4 //resistor
r1=2; //internal resistance 1
r2=1; //internal resistance 2
Rr2=(R*r2)/(R+r2); //equival... |
b9fb408193698f0b5a90367f1e3cc8f2334dadf9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2921/CH12/EX12.2/Ex12_2.sce | 5ef68a3f67d6f45c04c3158a42d29e661bdd6a88 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 193 | sce | Ex12_2.sce | clc;
clear;
mprintf('MACHINE DESIGN \n Timothy H. Wentzell, P.E. \n EXAMPLE-12.2 Page No.256\n');
//Surface speed
Dp=2.5;
n=1725;
Vm=%pi*Dp*n/12;
mprintf('\n Surface speed = %f ft/min.',Vm);
|
8082eda5599d34ad209471d4effb2b4906231d48 | 717ddeb7e700373742c617a95e25a2376565112c | /40/CH8/EX8.24/Exa_8_24.sce | 5ad54e146c76bd05ab8d1b548fc101feccee2c21 | [] | 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 | 422 | sce | Exa_8_24.sce | //The importance of Periodic extension
//(a)For M=3
x=[1 2 1];
XDFT=dft(x,-1)
w=exp(-%i*2*%pi/3);
for i=1:3
for j=1:3
WN(i,j)=w^((i-1)*(j-1));
end
end
WI=WN';
xn=1/3*WI*XDFT
//The result is periodic with M=3 & 1 period equals x[n]
//(b)For M=4
y=[1 2 1 0];
YDFT=dft(y,-1)
w=exp(-%i*%pi/2)... |
2c4cbd58c6b4f4eed979dc7ab5e1562d284970a4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /620/CH12/EX12.6/example12_6.sce | 94a7330d31f413bd47c348e1f36063b0af7850ea | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 227 | sce | example12_6.sce | im=0.05;
v=5;
rm=3;
disp("Part a");
rt=v/im;
disp("the total resistance (in kΩ) of the meter is"); disp(rt);
disp("Part b");
rs=rt-rm;
disp("the necessary resistance (in kΩ) of the voltmeter multiplier is"); disp(rs); |
d9e1f5ed5f1fcb422050af5ce543571fc86e3823 | 0812f3bb6f3cc038b570df68ccee4275da04b11f | /models/complexity_1000/Applied_Thermodynamics_and_Engineering/CH3/EX3.10/3_10.sce | 799ad9a4172257f1e3215e3874c2b1ab3223361a | [] | no_license | apelttom/20-semester_PhD_thesis | edc0b55580bae9d364599932cd73cf32509f4b7a | ff28b115fcf5e121525e08021fa0c02b54a8e143 | refs/heads/master | 2018-12-26T22:03:38.510422 | 2018-12-14T20:04:11 | 2018-12-14T20:04:11 | 106,552,276 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 255 | sce | 3_10.sce | clc;
h3=2716.4;//kJ/kg
hf2=640;
h_fg2=2109;
x2=(h3-hf2)/(h_fg2);
flow_rate=9;
m_w2=(1-x2)*(flow_rate);
mass_water=0.5;
m_w1=m_w2+mass_water
flow_rate_dry=mass_water+flow_rate-m_w1;
x1=flow_rate_dry/(mass_water+flow_rate);
disp("fraction is:");
disp(x1)
|
a3e088050327e91800a2a97cd2f8a0fb6492f7bc | 383d7e4e7497262c502a37604756a2305bd9c1d1 | /root_calculation_methods.sce | 6bf35bfd5e9d3be261724a0baa064cd12ed20583 | [] | no_license | JoaoMagal/Scilab-Math-Functions | 3dce9c494c6ff99266425cbf25a4c8229a17e02d | 350350bbf015eb758f14687622091da28a33da77 | refs/heads/master | 2022-02-17T23:37:06.786756 | 2019-09-02T13:13:51 | 2019-09-02T13:13:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,485 | sce | root_calculation_methods.sce | function bissect(func, a, b, errmargin, maxn)
if (sign(func(a)) ~= sign(func(b))) then // If f(a) and f(b) have opposite signs
n = 1
x_n = (a + b) / 2
if (func(x_n) == 0) then // If the first X is root
disp("found on the first midpoint", string(x_n), "Absolute root of f:")
... |
2be306a40d399ba6957115b602b6b0bfb8b2b662 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3472/CH44/EX44.4/Example44_4.sce | a70a815817f915aa29fefba613cdbcd350f76063 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 940 | sce | Example44_4.sce | // A Texbook on POWER SYSTEM ENGINEERING
// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
// DHANPAT RAI & Co.
// SECOND EDITION
// PART IV : UTILIZATION AND TRACTION
// CHAPTER 6: MOTORS FOR ELECTRIC TRACTION
// EXAMPLE : 6.4 :
// Page number 791
clear ; clc ; close ; // Clear the work space and conso... |
e11162a34416888b6f5f4e73f201e2b01358d716 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1655/CH4/EX4.3.1/Example_4_3_1.sce | 3af0966493203b14af50733b288c0abfa898b347 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 810 | sce | Example_4_3_1.sce |
// Example 4.3.1 page 4.4
clc;
clear;
L=10; //fiber length in km
Pin=150d-6; //input power
Pout=5d-6; //output power
len=20; //length of optical link
interval=1; //splices after interval of 1 km
l=1.2; //loss due to 1 splice
attenuation=10*log10(Pin/Pout);
alpha=attenu... |
ebb685363440394a347d425246c0584124469e58 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3204/CH14/EX14.22/Ex14_22.sce | 8aad11eba987b7796fcc97208778bdb223952b86 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 483 | sce | Ex14_22.sce | // Initilization of variables
P=50 // N // Weight of the car
Q=100 // N // Weight of the rectangular block
g=9.81 // m/s^2 // acc due to gravity
b=25 // cm // width of the rectangular block
d=50 // cm // depth of the block
// Calculations
a=(Q*g)/(4*P+2*Q) // m/s^2 // from eq'n 4
W=(Q*(P+Q))/(4*P+Q) // N // fro... |
023e1c8faaf334fce8e14bed60ad167292d3a5ac | 449d555969bfd7befe906877abab098c6e63a0e8 | /3542/CH4/EX4.1/Ex4_1.sce | 0c86541db13612d470da0c74df8443858387b0a6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex4_1.sce | // Example 4.1
// To find far field distance for antenna with maximum dimensions and operating frequency
// Page No.109
clc;
clear all;
// Given data
D=1; // Maximum dimension in m
f=900*10^6; // Operating frequency in Hz
C=3*10^8; // Speed of light in m/sec
lamb... |
db3472303e0121286d907a288e21065d0a79ff1b | 449d555969bfd7befe906877abab098c6e63a0e8 | /3648/CH26/EX26.3/Ex26_3.sce | e08d3b89bab948e17aac987c71964c5ca04e837a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 620 | sce | Ex26_3.sce | //Example 26_3
clc();
clear;
//To draw the energy level diagram and the find the first line of balmer type series
n=1
e1=-54.4/n^2 //units in ev
n=2
e2=-54.4/n^2 //units in ev
n=3
e3=-54.4/n^2 //units in ev
printf("The energy associated with line 1 is E1=%.1f eV\nThe energy associated with line 2 is ... |
48e64ce5ee9852b750e175bfeda732f4445c798b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1187/CH2/EX2.1/1.sce | 86f554e5dcd8b522c480d171d4c6c745a33eb2b4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 453 | sce | 1.sce | clc
d=1.5; // m
m=1.2; // kg
rate=0.0065; // K/m
R=287; // J/(kg.K)
T_0=288.15; // K
p_0=101*10^3; // Pa
g=9.81; // m/s^2
rho=m/(%pi*d^3/6);
rho_0=p_0/R/T_0;
// log(rho/rho_0)=(g/R*rate - 1)*log((T_0-rate*z)/T_0)
z=1/rate*(T_0-T_0*exp(log(rho/rho_0)/(g/R/rate-1)));
disp("The height above sea level t... |
33ddfd6bd588db60951a4b441da0bbe9cdfcdd3f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2858/CH11/EX11.4/Ex11_4.sce | 3dc05a2822ebe31a967a03a46da1dc0e83878c70 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 898 | sce | Ex11_4.sce | //example 11.4
clc; funcprot(0);
FS=4;
Ap=0.1295;
Nc=9;
cu2=100;
Qp=Ap*Nc*cu2;
D=[5, 10, 30];
avgD=[2.5, 7.5,20];
sigma=[45, 110.5, 228.5];
cu=[30, 30, 100];
alpha=[0.6 0.9 0.725];
L=[5, 5, 20];
p=%pi*0.406;
Qs=0;
disp(Qp,"bering capacity in kN");
printf("depth (m)\t avg Depth(m)\t avgVerticalStress(kN/... |
ac7d0719b476acf7f9a8dc61b50e4ede3a08e07a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3754/CH30/EX30.12/30_12.sce | 34e4ec5061e0fbf924e4147a2cbbb11d4e9e9116 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 695 | sce | 30_12.sce | clear//
//Variables
RD = 100.0 * 10**3 //Drain resistance (in ohm)
gm = 1.6 * 10**-3 //Transconductance (in Ampere per volt)
rd = 44.0 * 10**3 //Resistance (in ohm)
Cgs = 3.0 * 10**-12 //Capacitance gate-to-source (i... |
6ce273c5ae16044beae2dfa4374683aab9df13b4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /998/CH29/EX29.66/Ex66.sce | dc767d22493ad15f0567e3803518d11f5b0da1b1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 446 | sce | Ex66.sce | //Ex:66
clc;
clear;
close;
r=6378;//radius of earth in km
h=35786;// in km
r_h=r+h;//height in km
E_min=0;// in degree
P=cos(E_min*3.14/180);
Q=(r/(r_h)*P);
a_mx=(asin(Q))*(180/3.14);//the theoretical max coverage angle in degree
D=(r^2)+(r_h^2)-2*r*r_h*sin(a_mx*3.14/180);
d=sqrt(D);// in km
d1=ceil(d);//m... |
cfa58936a7790ab931deb8737c98e131196f4355 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1583/CH4/EX4.6/FSNT_Ex_4_6.sce | 5784c48a64de5f93be1cd2e5bb48e725d542527e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 521 | sce | FSNT_Ex_4_6.sce | clc
//Chapter 4:Frequency selective networks and transformers
//example 4.6 paga no 130
//given
Rs=10//source resistance
L=0.2*10^-6//inductor
f=20*10^6//given frequency
XL=(2*%pi*f*L)//inductive reactance
Rp=50//input impedance
Xs=sqrt(Rp*Rs-Rs^2)//series reactance
Xcs=5.1//series capacitive reactance
CS=(... |
e0e012513d304c3a0c712fa6569c3efb5b3169c9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2417/CH9/EX9.14/Ex9_14.sce | 5e2c4933f197921791715791aad5e2c22c05283f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,621 | sce | Ex9_14.sce | //scilab 5.4.1
clear;
clc;
printf("\t\t\tProblem Number 9.14\n\n\n");
// Chapter 9 : Gas Power Cycles
// Problem 9.14 (page no. 489)
// Solution
//A Brayton cycle
rc=7; //Compression Ratio Rc=v2/v3
k=1.4; //It is apparent incerease in compression ratio yields an increased cycle efficiency
cp=0.24; //Unit... |
c1308179ea24b357984dd784cfa8965864c71a2a | 449d555969bfd7befe906877abab098c6e63a0e8 | /23/CH11/EX11.10/Example_11_10.sce | f63a78f3701743565e6619f29e48303fbc3208c4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 775 | sce | Example_11_10.sce | clear;
clc;
//To find Approx Value
function[A]=approx(V,n)
A=round(V*10^n)/10^n;//V-Value n-To what place
funcprot(0)
endfunction
//Example 11.10
//Caption : Program to Find the Excess Properties for a mixture
T0=298.15;//[K]
T=323.15;//[K]
Cp_E=-2.86;//[J/mol/K]
Ho_E=897.9;//[J/mol]
Go_E=384... |
10a1192fa257b03d61700a9c031d92a760f9d60d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3886/CH12/EX12.2/12_2.sce | 9e1744a7672d669ed432136e5a9c20813ac96f39 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 12_2.sce | //Steel ball shot vertically up
//refer fig.12.6
//For upward motion
au=18 //m/sec
av=0
aa=-9.81 //m/sec^2
//s=h
//let t1 be the time required to reach maximum height
t1=1.83 //sec
h=(18^2)/(2*9.81) //m
//total height from the ground
ah=25+h //m
//Downward motion
bu=0
bs=41.51 //m
ba=9.81 //m/sec^... |
7a196582cb0d5f2a264e49c16160d78190da23be | 449d555969bfd7befe906877abab098c6e63a0e8 | /3717/CH12/EX12.6/Ex12_6.sce | 9d1f23a6faea2bcf8f5e398c377445ca63b14e77 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 345 | sce | Ex12_6.sce | // Ex12_6 Page:248 (2014)
clc; clear;
e = 1.6e-019; // Charge on an electron, C
n = 5e+028; // Number of atoms per unit volume of Cu, per metre-cube
R_H = -1/(n*e); // Hall coefficient, metre-cube/C
printf("\nThe Hall coefficient for Cu = %4.2e metre-cube/C", R_H);
// Result
// The Hall coefficient for Cu = ... |
cf5d8e39aa0669dccd0a15bd955591f610e5b499 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/macros/m2sci/replace_brackets.sci | bda3be0340496c72e305b567767aaef9f1b03c0f | [
"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 | 313 | sci | replace_brackets.sci | function txt=replace_brackets(txt)
// Copyright INRIA
for k=1:size(txt,'r')
tk=txt(k)
ko=strindex(tk,'{')
if ko<>[] then
kf=strindex(tk,'}')
//create matching pairs
kw=[ko,kf]
for kk=1:size(ko,'*')
pchar=abs(str2code(part(tk,ko(kk)-1)))
if pchar<36 then // extraction
end
end
|
229f840aaac25aa26995c2acc46891515c1ba848 | 8965236683cecafded4c307c22f5b917ce36263f | /java-src/emulator/assembler/go.tst | 43e3f3b23979653e1772110d664edb53c39cc99d | [] | no_license | artagesw/FROIDZ | 67f484f6938fd16cb9e2e0aa7770b67dbfba2041 | 9498ba04651cc30053274f622d43ae20b03524f6 | refs/heads/master | 2016-09-06T13:50:26.181686 | 2012-05-21T22:59:49 | 2012-05-21T22:59:49 | 3,656,428 | 1 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 360 | tst | go.tst | 0100 0011 0000 0000 0001 0000 0100 1000
0100 0110 0000 0000 1000 0111 0001 0000
0100 0011 0000 0000 0001 0001 1111 1111
0100 0001 0000 0000 0001 0100 0001 0001
0100 0011 0000 0000 0001 0100 0000 0000
0100 0001 0000 0000 0001 1000 0001 0100
0100 0011 0000 0000 0001 0010 1111 1111
0100 0001 0000 0000 0001 1000 0001 0010
... |
e06b4c88683b85d4b928a097eae185c651b746d7 | 01ecab2f6eeeff384acae2c4861aa9ad1b3f6861 | /sci2blif/sci2blif_added_blocks/pad_out.sce | 7ad8f5a88a7aaf7bfd9245c26232602db4d25e49 | [] | no_license | jhasler/rasp30 | 9a7c2431d56c879a18b50c2d43e487d413ceccb0 | 3612de44eaa10babd7298d2e0a7cddf4a4b761f6 | refs/heads/master | 2023-05-25T08:21:31.003675 | 2023-05-11T16:19:59 | 2023-05-11T16:19:59 | 62,917,238 | 3 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 1,255 | sce | pad_out.sce | //**************************** IO PAD OUT ******************************
if(blk_name.entries(bl)=='pad_out') then
fd_io= mopen (fname+'.pads','a+'); // DEDICATED PADS code
for ss=1:scs_m.objs(bl).model.ipar(1)
tmp_pad = strsplit(iopad_loc(loc_num,scs_m.objs(blk_objs(bl)).model.rpar(ss)).entries," ")
... |
785f1fa8dac0bd4bd6e8c251c9f3caa2527335be | cc3bff70280a1ee19aaf881e852ab1d5a8a1014d | /Experiment No.3 - PDF of different random variable.sce | b273b9104b67990b09206ceb85c49fe21ebf8306 | [] | no_license | imdeepak27/Digital-Communication-Systems | 814380444ff466fdbd693318fdc25815abd85347 | e35a99437a63bb023e2d6468ecfb92633d6049e5 | refs/heads/master | 2022-06-18T01:07:37.718079 | 2020-05-13T04:26:12 | 2020-05-13T04:26:12 | 263,524,581 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 661 | sce | Experiment No.3 - PDF of different random variable.sce | clc;
clear;
u=input(" ");
v=input(" ");
disp("GAUSSIAN RANDOM VARIABLE");
disp("MEAN = "+string(u));
disp("VARIANCE = "+string(v));
x=-10:0.001:10;
N=1/sqrt(2*3.14*v)*exp(-(x-u)^2/(2*v));
figure(1);
plot(x,N);
xlabel("x");
ylabel("PROBABILITY DENSITY");
title("GAUSSIAN PDF");
a=input(" ");
b=input(" ")... |
4c1d99a8b1d21ccc61d7b38486f81ce135c3ead5 | 127061b879bebda7ce03f6910c80d0702ad1a713 | /bin/PIL_read_mat.sci | e2a914427e10fcb3e6b066a40a85e7c9e9f4effe | [] | no_license | pipidog/PiLib-Scilab | 961df791bb59b9a16b3a32288f54316c6954f128 | 125ffa71b0752bfdcef922a0b898263e726db533 | refs/heads/master | 2021-01-18T20:30:43.364412 | 2017-08-17T00:58:50 | 2017-08-17T00:58:50 | 100,546,695 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 3,348 | sci | PIL_read_mat.sci | // **** Purpose ****
// This is a read function of the standard output format of my library
// This format also consistent with my Fortran output format
// **** Variables ****
// [fid]: 1x1, integer
// <= your file ID
// [read_range]: 2x2, integer, default: read all data
// <= specify the range you want to read,ex:[3,1... |
fa755cd6be41d1623420aa7c9bf8a5ec42b27edc | 013fbb3c74956eb0dd76e916566c11e5823feef4 | /projects/02/Ng16.tst | ca722267888510757fa1c5c28c8e587f09246519 | [] | no_license | btesf/nand_to_tetris | f0831cbaa41bacedacdef8975d1497f224c0ac55 | 5f418a3e191b89c7f32e35f3ae6180c3b506ce73 | refs/heads/master | 2023-05-28T00:08:37.728944 | 2021-06-19T17:09:22 | 2021-06-19T17:09:22 | 356,931,420 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 296 | tst | Ng16.tst | load Ng16.hdl,
output-file Ng16.out,
compare-to Ng16.cmp,
output-list a%B1.16.1 out%B1.1.1;
set a %B0000000000000000,
eval,
output;
set a %B1111111111111111,
eval,
output;
set a %B1010101010101010,
eval,
output;
set a %B0011110011000011,
eval,
output;
set a %B0001001000110100,
eval,
output; |
54f984ef1fe097442047d873d5aa88696ed8513b | 2c2dc93267283e4aebcffffd5bd76e19ddcf5cc7 | /output/KNN/resultadoKNN4.tst | ed9ef972743369f923c019f46ccc0437eaa6f645 | [] | no_license | joseangeldiazg/probabilistic_keel | c9cf4ddc2cf750cbbeca88e6f84218084892ae1f | 6c5ddf8c98cc7431d523b291e521d1e8607dc662 | refs/heads/master | 2020-05-21T12:26:41.754863 | 2017-01-08T10:29:44 | 2017-01-08T10:29:44 | 55,733,275 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 787 | tst | resultadoKNN4.tst | @relation ecoli
@attribute Mcg real [0.0, 89.0]
@attribute Gvh real [1.0, 88.0]
@attribute Lip real [1.0, 48.0]
@attribute Chg real [1.0, 5.0]
@attribute Aac real [0.0, 88.0]
@attribute Alm1 real [1.0, 94.0]
@attribute Alm2 real [0.0, 99.0]
@attribute Site {cp, im, imS, imL, imU, om, omL, pp}
@data
cp cp
cp cp
cp cp ... |
54ae549ce5fcdf559b6c6f79cc6b0bd83b9a4e00 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1184/CH2/EX2.13/Ex2_13.sce | ccab0150561a3b4f23c03d5c8d37cd0c2a077ad3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 148 | sce | Ex2_13.sce | //Example 2-13, Page No - 40
clear
clc
pout_db =12.3
pout_mW = 0.001*10^(12.3/10)
printf('The output power is %.1f mW',pout_mW*10^3)
|
9914a8719bfbe47d31b7600c915db3a90d4e7fa4 | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/final/wave_intro/wave1d.sce | 7274ee5e5bb816eba1735681469ff5c6ca0cedde | [] | 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 | 509 | sce | wave1d.sce | //1d wave
//return a 1d vector of wave amplitudes
function [wave1d]=wave1d(time, wavetype, maxamplitude, wavenumber, wavefreq,delta, n)
wave1d=zeros(n);
k=wavenumber;
//stationary/standing wave
if wavetype == 0 then
for i=1:n
wave1d(i)=maxamplitude*sin((k*i*delta))*sin(wavefreq*time);
... |
0961d1b9d6382c24a88e0fbdf17e4897997820f7 | 18137e490b85726a353b3039386d13ce07cee8d6 | /Hack Computer/Assembly Language Programs/Program1/Program1.tst | 3ff25a6ed30fc9031e06c74201b372bffc613adc | [] | no_license | saha-nab2001/Hack-ALU-and-Hack-CPU-in-HDL | 087c9d59a9032ac4a145b8f899364ee9d6a6d74d | 3b1c461aa0f331ce7d7505b6ad9b0eab70f102e3 | refs/heads/main | 2023-06-15T16:59:24.758610 | 2021-07-19T15:50:45 | 2021-07-19T15:50:45 | 387,511,878 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 681 | tst | Program1.tst | load HackComputer.hdl,
output-file Program1.out,
output-list time%S1.4.1 reset%B2.1.2 ARegister[0]%D1.7.1 DRegister[0]%D1.7.1 PC[]%D0.4.0 RAM64[16]%D1.7.1 RAM64[17]%D1.7.1 RAM64[18]%D1.7.1 RAM64[19]%D1.7.1;
ROM32K load Program1.hack,
output;
// First run (at the beginning PC=0)
set RAM64[16] 3,
set RAM64[17]... |
673a192e6e7cdfe1001e57b560a520cd88960be0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1962/CH2/EX2.6/example2_6.sce | 2b5636d78e6e1f41acec712f4ae12b19f75db922 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 319 | sce | example2_6.sce | //example 2.6
//page 66
clc; funcprot(0);
//initialisation of variable
Gamma=9810;
ybar=5+0.5;
pi=3.14;
theta=90/180*pi;
Ig=pi*1^4/64;//moment of Inertia
A=pi*1^2/4;
F=Gamma*A*ybar;//force
hbar=ybar+Ig*(sin(theta))^2/A/ybar;//centroid
F1=F*(hbar-5);
disp(F1,"Force required to open the gate (N)");
clear
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.