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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8aab11ac3d4bfc3b64389125721f0e65f14e948c | 717ddeb7e700373742c617a95e25a2376565112c | /806/DEPENDENCIES/83.sci | 342d67414541d824ddf55048092c4d5251639e57 | [] | 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 | 82 | sci | 83.sci | s1=0.2//m^3(strength of source)
s2=1//m^3(strength of vortex)
x=1//m
y=0.5//m
|
93b3d7ea67f58101e1ad80ebbc3b7de593a081c2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /132/CH7/EX7.5/Example7_5.sce | d602d6fafcc929e4dafd35e29d919a3f80b7a39d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Example7_5.sce | //Example 7.5
//Program to Calculate
//(a)Ie
//(b)Vc
clear;
clc ;
close ;
//Given Circuit Data
Vcc=10; //V
Rc=500; //Ohms
Rb=500*10^3; //Ohms
Beeta=100;
//Calculation
Ib=Vcc/(Rb+Beeta*Rc);
Ic=Beeta*Ib;
Ie=Ic;
Vce=Vcc-Ic*Rc;
Vc=Vce;
//Displaying The Results in Command Window
printf("The Different Parameters are :");
printf("\n\t Ie = %f mA .",Ie/10^(-3));
printf("\n\t Vc = %f V .",Vc); |
0f5420dfc453eb15f1854b420d9d2dbc0b64812a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3472/CH10/EX10.17/Example10_17.sce | c42013cca32dfaae6a56b6b2087e48eb6d2dcee6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,456 | sce | Example10_17.sce | // A Texbook on POWER SYSTEM ENGINEERING
// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
// DHANPAT RAI & Co.
// SECOND EDITION
// PART II : TRANSMISSION AND DISTRIBUTION
// CHAPTER 3: STEADY STATE CHARACTERISTICS AND PERFORMANCE OF TRANSMISSION LINES
// EXAMPLE : 3.17 :
// Page number 147-148
clear ; clc ; close ; // Clear the work space and console
// Given data
f = 50.0 // Frequency(Hz)
L = 160.0 // Line length(km)
r = 0.15 // Resistance(ohm/km/phasemag)
l = 1.2*10**-3 // Inductance(H/km/phasemag)
c = 0.008*10**-6 // Capacitance(F/km/phasemag)
g = 0.0 // Conductance(mho/km/phasemag)
// Calculations
// Case(i) Using convergent series(Complex angles) method
z = r+%i*2*%pi*f*l // Impedance(ohm/km)
Z = z*L // Total series impedance(ohm)
y = g+%i*2*%pi*f*c // Shunt admittance(S/km)
Y = y*L // Total shunt admittance(S)
A = 1+(Y*Z/2)+((Y*Z)**2/24) // Constant
B = Z*(1+(Y*Z/6)+((Y*Z)**2/120)) // Constant(ohm)
C = Y*(1+(Y*Z/6)+((Y*Z)**2/120)) // Constant(mho)
D = A // Constant
// Case(ii) Using convergent series(Real angles) method
gamma_l = (Z*Y)**0.5 // γl
alpha_l = real(gamma_l) // αl
beta_l = imag(gamma_l) // βl
Z_c = (Z/Y)**0.5 // Surge impedance(ohm)
A_2 = cosh(gamma_l) // Constant
B_2 = Z_c*sinh(gamma_l) // Constant(ohm)
C_2 = (1/Z_c)*sinh(gamma_l) // Constant(mho)
D_2 = A_2 // Constant
// Results
disp("PART II - EXAMPLE : 3.17 : SOLUTION :-")
printf("\nCase(i): Using convergent series(Complex Angles) method")
printf("\nA = D = %.3f∠%.1f° ", abs(A),phasemag(A))
printf("\nB = %.f∠%.1f° ohm", abs(B),phasemag(B))
printf("\nC = %.4f∠%.1f° mho \n", abs(C),phasemag(C))
printf("\nCase(ii): Using convergent series(Real Angles) method")
printf("\nA = D = %.3f∠%.1f° ", abs(A_2),phasemag(A_2))
printf("\nB = %.1f∠%.1f° ohm", abs(B_2),phasemag(B_2))
printf("\nC = %.4f∠%.1f° S \n", abs(C_2),phasemag(C_2))
printf("\nNOTE: Slight change in obtained answer from that of textbook is due to more precision")
|
5fdea2b3a7a7aef6782a56448008e2bfe66ae4e5 | c85cd177767bb7028f15fecb201143f86b35ae94 | /pathplan.sce | 1cc61b6d15b917bf70a4c055ac45669bc007f1c2 | [] | no_license | Neucrede/Dummy | c879b8b8f2e32da33d53576ce4f56b4638da7df7 | 7f3f158c78620d66abd089dca658297fac0da069 | refs/heads/master | 2021-06-18T00:47:59.632096 | 2021-03-31T09:19:08 | 2021-03-31T09:19:08 | 179,017,060 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,716 | sce | pathplan.sce |
function plot_stencil(d)
scf();
a = gca();
// [xmin,ymin; xmax,ymax]
a.data_bounds = [ min(d(1,:))-2, min(d(2,:))-2;
max(d(1,:))+2, max(d(2,:))+2 ];
plot(d(1,:), d(2,:), 'O');
yy = unique(d(2,:));
yy = yy(:)'; // now, yy is a row vector
X = repmat([min(d(1,:))-2; max(d(1,:))+2], 1, length(yy));
Y = repmat(yy, 2, 1);
plot(X, Y, 'blue');
endfunction
function out = unfold(d, n, min_gap)
batches = [];
y_group = gsort(unique(d(2,:)), 'g', 'i');
y_weight = [];
for i = 1 : length(y_group)
y_weight = [y_weight, length(find(d(2,:) == y_group(i)))];
end
out = [];
endfunction
function out = sort_by_y_coord(d)
d_swapped = [d(2,:); d(1,:)];
d_swap_and_sorted = gsort(d_swapped, 'lc', 'i');
d_sorted = [d_swap_and_sorted(2,:); d_swap_and_sorted(1,:)];
out = d_sorted;
endfunction
function out = find_y_interval_of_adjacent_y_groups(d)
d_sorted_by_y_coord = sort_by_y_coord(d);
y1 = d_sorted_by_y_coord(2,:);
if length(y1) < 2 then
out = [];
return;
end
y1 = unique(y1);
y2 = [y1(2:$), 0];
y_diff = [y2; (y2 - y1)];
y_diff(:, find(y_diff(2,:) <= 0)) = [];
out = y_diff;
endfunction
function out = penalty(s, y, w_total, w_avg, w, a, b, c)
out = a * abs(y - s) + b * (w_total + w - w_avg) + c;
endfunction
function out = pp(d, m, min_gap, l)
y = gsort(unique(d(2,:)), 'g', 'i');
// number of distinct y values
n = length(y);
// weight vector
w = [];
for i = 1 : n
w = [w, length(find(d(2,:) == y(i)))];
end
// range of movement of tip number i under the situation that all other
// tips been moved to both ends of the rack.
limits = [];
for i = 1 : m
limits = [limits; (i - 1) * min_gap, l - ((m - i) * min_gap)];
end
mprintf("limits: \n %e \n\n", limits);
dp = list();
wtotal = list();
for i = 1 : n
dp_i = list();
wtotal_i = list();
for j = 1 : m
A_j = zeros(n, n);
next = find(y > limits(j,1) && y < limits(j,2));
mprintf("available next(j=%d): \n %d \n\n", j, next);
for r = 1 : n
p = [next; %nan * ones(next)];
for s = next
if ()
end
end
dp_i(j) = A_j;
end
dp(i) = dp_i;
wtotal(i) = wtotal_i;
end
out = [];
endfunction
|
a436543d51c7096b4fdee2522e66d524a28f3cd6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2780/CH6/EX6.4/Ex6_4.sce | 90b091c797d75553aeafcefa7e1a5a602e802661 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 407 | sce | Ex6_4.sce | clc
//to calculate cut-off wavelength of the fibre
//(2*del)^(1/2)=(2*(n1-n2)/n1)^(1/2)=(0.005)^(1/2)=0.071
a=5*10^-6 //radius in micrometre
n1=1.46 //core refractive index in micrometre
Vc=2.405 //cut-off value of V parametre for single mode operation
//formula is LAMBDAc=(2*%pi*a*n1*(2*del)^(1/2))/Vc
lambdac=(2*%pi*a*n1*0.071)/Vc
disp("cut-off wavelength is LAMBDAc="+string(lambdac)+"metre")
|
cfde35e892b3483cdcb369c30db8f8447a4195a0 | b80969c9d72c732b0153d0de2b8fd28dc10d8a16 | /Biologie/Site/sauvegarde/28.07.2016/www/Documents/simulation/equationDifferentielle/chapitre3/ex11.sci | e6cd3a03d163209d6e5ee8012247b7ba518861b2 | [] | no_license | adamdepossylux/stem_cells | 6a2596a0734e3604b570cfdaa1e6cb798d13d7b7 | e1ffdf24a223fea3a3606a0bd262067edc81f5b9 | refs/heads/master | 2020-04-01T17:26:21.772875 | 2017-05-10T15:15:09 | 2017-05-10T15:15:09 | 61,795,551 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 224 | sci | ex11.sci | clf
clear
function[y]=f11(t,u)
y(1)=u(2);
y(2)=g-(r/m)*u(2);
endfunction
global g;
global m;
global r;
m=1;g=9.8;r=0.1;
N=101;
t=linspace(0,5,N);
y=ode([-100;-100],0,t,f11);
comet(t,y(1,:))
plot2d(t,y(1,:),5)
|
7f2846fb548bd89333a67b774ce7f084bc91923d | c557cd21994aaa23ea4fe68fa779dd8b3aac0381 | /test/merge.tst | 1c284a149eacc9c7ee592f82c88e75fa05558baf | [
"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 | 140 | tst | merge.tst | ## Testing merge and unmerge commands
set echo
read <sample1.fi
:31 inspect
:31 unmerge
:31 inspect
:29 inspect
:25,:29 merge
:29 inspect
|
f9a5e73b8ae0968d2722b4502bac94bb0dd640eb | 449d555969bfd7befe906877abab098c6e63a0e8 | /3753/CH2/EX2.3/Ex2_3.sce | 23791e88703c313dd1ab2f1385c2576c8f9d30bb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 390 | sce | Ex2_3.sce | //Example number 2.3, Page number 2.33
clc;clear;close
// Variable declaration
d=1*10**-3 // in m
lamda=6000*10**-10 // in m
nd=0.01 // difference between the refractive indices(n1 - n2)
// Calculation
phi=(2*%pi*d*nd)/lamda // radian
// Result
printf("phi=%.1f radian",phi)
printf("\n\nSince the phase difference should be with in 2pi radius, we get phi=4.169 rad.")
|
2ef21784b14f8a09ea4c4821ef971c549973df58 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3537/CH1/EX1.37/Ex1_37.sce | 3e2b1b3fec64f1971f8e52de815c91bf0c2d1a3e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 383 | sce | Ex1_37.sce | //Example 1_37
clc();
clear;
//To find the separation between the slits
lemda=5100 //units in angstroam
lemda=5100*10^-8 //units in cm
D=200 //units in cm
betaa=0.01 //units in mts
betaa=0.01*10^-3 //units in cm
d=(lemda*D)/betaa*10^-3
printf("The separation between the slits is %.2f mts",d)
|
30e97239c95c29d41cc76f7b05d4af0285ce245b | 17bac8e399d9ac12fc4c3b7b96facb45fdd7cfe4 | /simplegraph.sce | 56a3d614210aaed81a8285a2049bce41e0b47e6a | [] | no_license | macabdul9/scilab-programming | 1e404c50322e24aac861b6d91d6eb4377ac798ca | b337c0f45a5d3f6f9ef702ce59c90ea018e642ac | refs/heads/master | 2020-05-04T19:25:13.903631 | 2019-04-05T16:22:42 | 2019-04-05T16:22:42 | 179,392,441 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 94 | sce | simplegraph.sce | clc
x = [1 -1 2 3 4 -2 ];
y = [2 0 3 -2 5 -3 ];
plot2d(x,y)
xlabel(’x’);
ylabel(’y’);
|
f295b8b4d17cf93a42cd21109364290d0fd77536 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2660/CH2/EX2.1/Ex2_1.sce | dea6080712b12023844f40448921032115a0bfec | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 718 | sce | Ex2_1.sce | clc
D = 50 // Diameter of washer in mm
t = 4 // thickness of material in mm
d = 24 // diameter of hole in mm
p = 360 // shear strength of material in N/mm^2
F1 = %pi*D*t*p // blanking pressure in N
F2 = %pi*d*t*p // piercing pressure in N
F = F1 + F2 // total pressure in N
d1 = d + 0.4 // piercing die diameter in mm
d2 = D - 0.4 // blank punch diameter in mm
c = 0.8*F // press capacity in N
printf("\n Blanking pressure = %d kN\n Piercing pressure = %0.3f KN\n Total pressure required = %0.1f KN" ,F1/1000,F2/1000,F/1000)
printf("\n piercing punch diameter = %0.2f cm\n blanking punch diametre = %0.2f cm \n press capacity = %0.2f KN\n", d1/10 , d2/10 , c/1000)
// Answers vary due to round off error
|
d1a3aedfebe3174dd7c8ba53a7201de2906249f5 | 4f670294d6de9b3dff4c0eb15980b23d1ffaa629 | /macros/getgaussiankernel.sci | 466a5ee01732b1716a777c43ab45d943041bcd4e | [] | no_license | avinashr175/FOSSEE-Image-Processing-Toolbox | 49cb1352c88f9a5c7d7e984a42e3ba4ed60b059d | ff4afb9f614c2dd401d56fa8b5ad35cf5427a5cc | refs/heads/master | 2020-12-02T16:17:03.873509 | 2017-07-10T09:21:12 | 2017-07-10T09:21:12 | 96,529,053 | 0 | 0 | null | 2017-07-07T10:43:02 | 2017-07-07T10:43:01 | null | UTF-8 | Scilab | false | false | 1,059 | sci | getgaussiankernel.sci | // Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
// Author: Shubheksha Jalan
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
function output = getgaussiankernel(ksize, sigma, ktype)
//Returns Gaussian filter coefficients
//
//Calling Sequence
//output = getgaussiankernel(ksize, sigma, ktype)
//
//Parameters
//ksize : Aperture size. It should be odd and positive.
//sigma : Gaussian standard deviation.
//ktype : Type of filter coefficients. It can be CV_32f or CV_64F.
//
//Description
//The function computes and returns the ksize x 1 matrix of Gaussian filter coefficients.
//
//Examples
//output = getgaussiankernel(3,1,'CV_32F');
//Authors
// Shubheshka Jalan
output = raw_getgaussiankernel(ksize, sigma, ktype)
endfunction
|
e8e80d54ca89f017e5d7969fb608bfa5db11e350 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1475/CH1/EX1.23/Example_1_23.sce | f5f8d110d1d02ae81fedf539271c51703849eb62 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 727 | sce | Example_1_23.sce | //Example 1.23 If 10 persons are arranged at random
clear;
clc;
N1=factorial(10);
disp(N1,"total no. of ways in which 10 persons are arranged in a line =");
M1= factorial(9)* factorial(2);
disp(M1,"No. of favourable cases such that two persons will be next to each other in a line= ");
N2= factorial(9);
disp(N2,"total no. of ways in which 10 persons are arranged in a ring =");
M2= factorial(8)* factorial(2);
disp(M2,"No. of favourable cases such that two persons will be next to each other in a ring= ");
P1=M1/N1;
P2=M2/N2;
disp(P2,"Probability that two persons will be next to each other in a ring of 10 persons= ",P1,"Probability that two persons will be next to each other in a line of 10 persons= ");
|
f60e9bb453146cb3830361a59f90531c3aa044ac | e0124ace5e8cdd9581e74c4e29f58b56f7f97611 | /3913/CH12/EX12.14/Ex12_14.sce | b65dac6cd517fb8ec26d3bd7aa3324018a241b68 | [] | no_license | psinalkar1988/Scilab-TBC-Uploads-1 | 159b750ddf97aad1119598b124c8ea6508966e40 | ae4c2ff8cbc3acc5033a9904425bc362472e09a3 | refs/heads/master | 2021-09-25T22:44:08.781062 | 2018-10-26T06:57:45 | 2018-10-26T06:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 457 | sce | Ex12_14.sce | //Chapter 12 : Solutions to the Exercises
//Scilab 6.0.1
//Windows 10
clear;
clc;
//Solution for 3.8
A=[1 -1 0 -1 -5 -1;2 1 -1 -4 1 -1;1 1 1 -4 -6 3;1 4 2 -8 -5 8;]
disp(A)
A(2,:)=A(2,:)-2*A(1,:)
A(3,:)=A(3,:)-1*A(1,:)
A(4,:)=A(4,:)-1*A(1,:)
A(2,:)=A(2,:)*(1/3)
A(3,:)=A(3,:)-2*A(2,:)
A(4,:)=A(4,:)-5*A(2,:)
A(3,:)=A(3,:)*(3/5)
A(4,:)=A(4,:)-(11/3)*A(3,:)
A(4,:)=round(A(4,:))
A(2,:)=A(2,:)+(1/3)*A(3,:)
A(1,:)=A(1,:)+A(2,:)
disp(A)
|
5fe0110a0ae7203bf5caa288925f328362507f2a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3782/CH1/EX1.25/Ex1_25.sce | 7584b240455388b16a5b7a9844c57449d5f5fed9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 292 | sce | Ex1_25.sce |
//CH-1 PAGE-42,43 PB-2
//
//
sc=100 //scale length
area=93750 //area
l=6.0 //length
b=6.25 //bredth
cm2=(area)/(l*b) // 1 cm^2
cm=sqrt(cm2)
RF=1/(sc*cm)
printf("\n RF= %0.3f ",RF)
leng=14 // assumme length of scale
leng=leng*cm
printf("\n length of final scale is %0.3f ",leng)
|
3ed9c5e36f0d5e9605352a2dc7045750799ee104 | c34cdc974263b166a6f9f6a8d043f8e0630181b1 | /negatyw.sce | 6b0c1909e4159625399a103575faab9e568cfd0b | [] | no_license | BartusZak/WDGM_3 | adffa505744c6612a8bed4b85a8bd17fa4f33458 | 932dfd0b3e124dcadbc80d48c69ce12ff618da3c | refs/heads/master | 2021-05-08T04:31:02.725849 | 2017-10-27T12:37:35 | 2017-10-27T12:37:35 | 108,414,880 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 842 | sce | negatyw.sce | function negatyw(img) //deklarujemy funckję negatyw z parametrem img
img = uint16(img); //konwertujemy img do uint16
img = rgb2gray(img); //zastępujemy obraz RGB obrazem w odcieniach szarości
[h w] = size(img); //przypisujemy wielkość obrazu pod parametrem img zmiennym h i w
X = [0:1:255]'; //tworze tablice z transponowaniem od 0 do 255 co 1
for i=1:256 //rozpoczynamy petle
LUT(i) = 256-i; //kod
end
for i=1:h
for j=1:w
out(i,j) = LUT(img(i,j));
end
end
out = uint8(out); //wracamy do uint8 zeby wyswietlic obrazek
imshow(out); //wyswietlamy obrazek
endfunction //zamykamy funkcję
img = imread('lena.jpg'); //przypisujemy zmiennej img obraz
negatyw(img); //wysołujemy funkcję negatyw z argumentem img
|
69764e5d15d3776cc0a77e3d9a94527476f88ce4 | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/ofemdemo/d_ubeam.sce | cf064ccc134869870c34c602584c46d9b0000814 | [] | 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 | 1,885 | sce | d_ubeam.sce | // this example illustrates the use of the FEMESH preprocessor to build a
// solid model of a U-beam, compute the associated modes, and display strain
// energy levels
FEnode=[1 0 0 0 -.5 -.5 0;2 0 0 0 -.5+1/6 -.5 0;3 0 0 0 -.5 .5-1/6 0
4 0 0 0 -.5+1/6 .5-1/6 0;5 0 0 0 -.5 .5 0;6 0 0 0 -.5+1/6 .5 0
7 0 0 0 .5-1/6 .5 0;8 0 0 0 .5 .5 0;9 0 0 0 .5-1/6 .5-1/6 0
10 0 0 0 .5 .5-1/6 0;11 0 0 0 .5-1/6 -.5 0;12 0 0 0 .5 -.5 0];
FEelt=[%inf ascii('quad4');4 6 5 3 1 1;9 10 8 7 1 1];
FEel0=[%inf ascii('quad4');1 2 4 3 1 1];
femesh(';divide 5 1;addsel;');
FEel0=[%inf ascii('quad4');11 12 10 9 1 1];
femesh(';divide 5 1;addsel;');
FEel0=[%inf ascii('quad4');4 6 7 9 1 1];
femesh(';divide 4 1;addsel;');
femesh('join group 1:4');
femesh(';selgroup1;extrude 10 0 0 .25;orientel0');
// This section is to impose a cantilevered boundary condition
pl = [1 1 2e11 .30 7800 (190e9/2/(1+.29))];
mdof = femesh('finddof group1',FEel0);
i1 = femesh('findnode z==0');
[mdof] = fe_c(mdof,i1,'dof',2);
// This section is to assemble, compute modes and show the result
[m,k,mdof] = fe_mk(FEnode,FEel0,pl,[],[],mdof,[0 1]);
[md1,f1] = fe_eig(m,k,[1 10 0 11]);
StrainEnergy = fe_stres('ener',FEnode,FEel0,pl,[],md1,mdof);
feplot(FEnode,FEel0,md1,mdof,[],StrainEnergy);
// Now we will apply a load on the edge
model=struct('Node',FEnode,'Elt',FEel0,'pl',pl,'il',[],'DOF',mdof);
data=struct('sel','x==-.5', ...
'eltsel','withnode {z>1.25}','def',1,'DOF',.19);
Case1=struct('Stack',makecell([1 1],makecell([1 3],'Fsurf','Surface load',data)));
// view load
Load = fe_load(model,Case1);
feplot(FEnode,FEel0,Load.def,Load.DOF,2);
// view response
def = k\Load.def;
Stress = fe_stres('stress mises',FEnode,FEel0,pl,[],def,mdof);
feplot(FEnode,FEel0,def,mdof,1,Stress);
// Etienne Balmes
// Copyright (c) 1996-2002 by SDTools
// All Rights Reserved.
|
8dc261fc7141c0936bbbabe97873b8449da57472 | 449d555969bfd7befe906877abab098c6e63a0e8 | /74/CH8/EX8.3/example3_sce.sce | 8a552a0397a27ca491d3d8d3b70e1f1d9e7368f5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 195 | sce | example3_sce.sce | //chapter8
//example 8.3
//page300
Ton=5;//given
C=10*10^-6;//let assume
R=Ton/(1.1*C);//using Ton=1.1RC
disp(R)//this not standard value but we can adjust by connecting variable resistance |
6d645e3b6c4e127239be7039ffd9ec31a2247dbd | 449d555969bfd7befe906877abab098c6e63a0e8 | /3204/CH2/EX2.16/Ex2_16.sce | 58c115e105ae70cfc9d0eecdb525614ce5718897 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 440 | sce | Ex2_16.sce | //Initilization of variables
Soa=1000 //N (tension)
alpha=45 //degree //where alpha=(360/8)
theta=67.5 //degree //angle made by bar AO with AB &AH
//Calcultions
Sab=Soa*(sind(theta)/sind(alpha)) // N // Using law of sines
Sah=Sab //N
Sob=(Sab*sind(180-2*(theta)))/sind(theta) //N
//Results
clc
printf('The axial force in the bar AB is %f N \n',Sab) //Compression
printf('The axial force in the bar OB is %f N \n',Sob) //Tension
|
3eeaa711788a98390c0ebecd7827ef5ca326008c | 449d555969bfd7befe906877abab098c6e63a0e8 | /887/CH5/EX5.5/5_5.sce | 4a2566d301c0d0f2f039e8c57e05cab8ab624612 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,032 | sce | 5_5.sce | clc
//ex5.5
V_s_max=10; //peak value of source voltage
phi=-%pi/2; //phase of source voltage
V_s=complex(10*cos(%pi/2),10*sin(%pi/2)); //phasor of source voltage
W=1000; //angular frequency
R=100;
L=0.1;
C=10*10^-6;
Z_L=%i*W*L; //impedance of inductance
Z_C=-%i/(W*C); //impedance of capacitance
Z_RC=1/((1/R)+(1/Z_C)); //R and Z_C in parallel combination
V_C=V_s*Z_RC/(Z_L+Z_RC); //voltage division principle
I=V_s/(Z_L+Z_RC); //current through source and inductor
I_R=V_C/R; //current through resistance
I_C=V_C/Z_C; //current through capacitor
//cos(t)=cos(180-t)
disp(sqrt((real(V_C)^2)+(imag(V_C)^2)),'peak value of Vc in volts')
disp((atan(imag(V_C)/real(V_C)))*180/%pi,'phase angle of Vc in degrees')
////result : V_C=Vcos(wt+phi) V-peak voltage
disp(I,'current through source and inductor in amperes')
disp(I_R,'current through resistance in amperes')
disp(I_C,'current through capacitance in amperes')
disp('phasor diagram cannot be plotted')
|
a4d342457bf6effb73c147b2b2513a37c6b79c3a | 15bd78a2bf248cadb3f74988a5a1ddd53a2d129a | /LangFiles/Level.01D/SCINC/localmenu.sci | 9cf36aa13f8be91e3c0d2a1068a5e5fb1ab37b94 | [] | no_license | Marisa-Chan/RR2NW_ENG | e5bc85cd570b72ad60969811a626192be5a02bd5 | d0868db86db46ab1fe55cd80c85b67a299b95b24 | refs/heads/master | 2022-11-17T20:16:26.503539 | 2020-07-17T12:21:59 | 2020-07-17T12:21:59 | 280,207,135 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,587 | sci | localmenu.sci | func void CreateLocalPointMenu( int pColor, int afColor, int abColor)
var int vehicleID, vehicleCP;
{
s_SearchObjectID(vehicleID, vehicleCP, "Vehicle.Default");
s_AddMenuText("/Game/Cheats", "Points", -1, -1, 0, 5, 100, pColor, 128, afColor, 128, abColor, 128, "Font.p_menu.fnt", "Font.a_menu.fnt", "MAIN WAYPOINTS", "WAYPOINTS");
s_AddMenuText("/Game/Cheats/Points", "Point0", vehicleID, vehicleCP, s_Menu_Point0, 5, 60, pColor, 128, afColor, 128, abColor, 128, "Font.p_menu.fnt", "Font.a_menu.fnt", "PORTAL", "Portal");
s_AddMenuText("/Game/Cheats/Points", "Point1", vehicleID, vehicleCP, s_Menu_Point1, 5, 60, pColor, 128, afColor, 128, abColor, 128, "Font.p_menu.fnt", "Font.a_menu.fnt", "FLYERS", "Flyers Recruitment Office");
s_AddMenuText("/Game/Cheats/Points", "Point2", vehicleID, vehicleCP, s_Menu_Point2, 5, 60, pColor, 128, afColor, 128, abColor, 128, "Font.p_menu.fnt", "Font.a_menu.fnt", "TANKERS", "Tankers Recruitment Office");
s_AddMenuText("/Game/Cheats/Points", "Point3", vehicleID, vehicleCP, s_Menu_Point3, 5, 60, pColor, 128, afColor, 128, abColor, 128, "Font.p_menu.fnt", "Font.a_menu.fnt", "ROBOTICS", "Robotics Recruitment Office");
s_AddMenuListItem("/Game/RestartL/Restart", "POST WAR");
s_AddMenuListItem("/Game/RestartL/Restart", "MEDIEVAL DAY");
s_AddMenuListItem("/Game/RestartL/Restart", "MEDIEVAL NIGHT");
s_AddMenuListItem("/Game/RestartL/Restart", "ISLANDS");
s_AddMenuListItem("/Game/RestartL/Restart", "AZTEC vs CONQUERORS");
s_AddMenuListItem("/Game/RestartL/Restart", "HI-TECH DAY");
} |
6ec2354a5c79476ca6e68acae7ef77dcba94c9ef | 449d555969bfd7befe906877abab098c6e63a0e8 | /3456/CH2/EX2.3/Ex2_3.sce | 4c0b75afb54366ad0f4a2efe86a79cbd131d1f60 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 497 | sce | Ex2_3.sce | //Example 2.3
//Calculation of Stresses from elastic strains
//Page No. 52
clc;clear;close;
E=200; //in GPa
nu=0.33; //no unit
e1=0.004; //no unit
e2=0.001; //no unit
sigma1=E*(e1+nu*e2)/(1-nu^2);
sigma2=E*(e2+nu*e1)/(1-nu^2);
sigma1=sigma1*1000; //conversion to MPa
sigma2=sigma2*1000; //conversion to MPa
printf('\nsigma1 = %g MPa\nsigma2 = %g MPa\n',sigma1,sigma2);
printf('\nNote: Slight calculation errors in Book')
|
1bf1a830746b5d964a7aaf28ed41981eab5b7f13 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2066/CH4/EX4.4/4_4.sce | 6fb3b8a1590c5d216ba784e8f341e993eedf08c0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 330 | sce | 4_4.sce | clc
clear
//Initialization of variables
r0=1
ri=0
//calculations
function v= func1(y)
v= 2*y^(1/7) *(y-1)
endfunction
V=intg(ri,r0,func1)
function alpha= func2(y)
alpha= 1/ (%pi*V^3) *2*%pi *(y)^(3/7) *(y-1)
endfunction
a2=intg(ri,r0,func2)
//results
printf("Kinetic energy correction factor = %.2f",a2)
|
71e824a61f081180b78302fea7eff6b807d490b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2021/CH8/EX8.6/Ex8_6.sce | 7211abd8f0d928d2d5e2ee37ba7eba83ebd0bf9c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 223 | sce | Ex8_6.sce | //Finding of Dischage through Rectangular orifice
//Given
H1=4;
H2=6;
Cd=0.62;
g=9.81;
//To Find
a=H2^(3/2)-H1^(3/2);
b=sqrt(2*g);
q=Cd*2*b*a;
disp("Dischage through Rectangular orifice ="+string(q)+" m^3/sec");
|
892b3fdf3963c1abb90b2e3fdd1f641ae5fdd712 | 449d555969bfd7befe906877abab098c6e63a0e8 | /371/CH13/EX13.2/13_2.sci | e139e2af5fd10293dea8fb29f46464e358fcf022 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 420 | sci | 13_2.sci | //Choppers and Transportation System Application//
//Example 13.2//
f=1;//operating frequency in KHZ//
E=220;//dc supply voltage in volts//
El=165;//Load voltage in volts//
Ton=El/(E*f);//conduction period in ms//
printf('Conduction period=Ton=%fms',Ton);
T=1/f;//total time period in ms//
printf('\nTotal time period=T=%fms',T);
Toff=T-Ton;//blocking period in ms//
printf('\nBlocking period=Toff=%fms',Toff); |
07e1e28eaab0ed1ba9338d77d7275cd585a853bd | 1b969fbb81566edd3ef2887c98b61d98b380afd4 | /Rez/bivariate-lcmsr-post_mi/bfi_a6_vrt_ind_d/~BivLCM-SR-bfi_a6_vrt_ind_d-PLin-VLin.tst | a68f2e1998e6bf35cd2dc41be62c642cdcfb4910 | [] | no_license | psdlab/life-in-time-values-and-personality | 35fbf5bbe4edd54b429a934caf289fbb0edfefee | 7f6f8e9a6c24f29faa02ee9baffbe8ae556e227e | refs/heads/master | 2020-03-24T22:08:27.964205 | 2019-03-04T17:03:26 | 2019-03-04T17:03:26 | 143,070,821 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 11,974 | tst | ~BivLCM-SR-bfi_a6_vrt_ind_d-PLin-VLin.tst |
THE OPTIMIZATION ALGORITHM HAS CHANGED TO THE EM ALGORITHM.
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 0.353507D+00
2 -0.277366D-02 0.306623D-02
3 -0.965676D-01 -0.934198D-04 0.404086D+00
4 0.835661D-03 -0.950217D-03 -0.702849D-02 0.338984D-02
5 0.227652D-03 0.144089D-03 -0.158765D-02 0.930539D-04 0.282113D-02
6 0.199479D-03 0.762341D-05 0.103774D-03 0.392265D-04 0.130616D-04
7 0.270784D-03 0.137888D-04 0.165099D-03 0.762816D-04 -0.408355D-03
8 0.251946D-03 0.650521D-04 0.122833D-02 0.111471D-03 -0.204758D-03
9 -0.132042D+00 0.170736D-01 0.163598D-01 -0.171503D-01 0.116686D+00
10 -0.101369D+00 0.154103D-01 0.177800D+00 -0.319268D-02 0.198516D+00
11 -0.156712D+00 0.409335D-02 0.243914D+00 0.230123D-01 -0.530772D-01
12 -0.249990D-01 0.971824D-02 0.905160D-01 -0.637828D-01 0.571236D-01
13 0.100624D+00 0.808073D-02 -0.157643D+00 0.391615D-03 -0.215636D-01
14 0.153849D+00 -0.136681D-01 0.386380D+00 0.185675D-01 -0.437820D-02
15 -0.962805D+00 0.732967D-01 -0.122256D+00 -0.290433D-01 -0.127239D+00
16 -0.335364D-01 -0.128267D-01 0.165871D-01 0.383489D-02 0.909608D-03
17 -0.118551D-01 -0.194625D-02 0.639725D-02 0.890608D-03 -0.758345D-03
18 -0.116596D+00 -0.460579D-01 0.140539D+00 0.243172D-01 0.742304D-01
19 -0.491224D-01 0.101534D-01 0.727347D-02 -0.186210D-01 0.244723D-03
20 -0.344725D+00 -0.123635D-01 -0.881959D+00 -0.758521D-01 0.386182D-01
21 0.790299D-01 -0.158529D-02 0.199538D-01 0.116055D-01 -0.499607D-02
22 0.598866D-02 0.871790D-03 -0.668183D-02 -0.318636D-03 0.350302D-03
23 0.399465D-02 -0.414244D-02 0.836793D-02 -0.611400D-03 0.233873D-02
24 -0.172924D-02 0.121218D-03 0.489447D-02 0.122477D-02 -0.381200D-03
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 0.826547D-03
7 0.421142D-03 0.215605D-02
8 -0.159459D-03 0.462355D-03 0.278300D-02
9 -0.219126D-01 0.366965D-01 -0.355958D-01 0.832444D+02
10 0.201375D-02 -0.399505D-01 -0.134295D-01 0.570664D+01 0.324581D+02
11 0.518583D-01 0.152296D-01 -0.327545D-01 -0.247687D+02 -0.396987D+00
12 -0.227772D-01 -0.399426D-01 0.618172D-01 0.225918D+02 0.562188D+01
13 0.570403D-01 0.101772D+00 0.193163D-01 0.177238D+01 -0.577288D+01
14 -0.258681D-02 0.181290D-01 0.230428D+00 -0.659142D+00 0.407950D+01
15 0.493830D-01 0.688479D-01 0.335555D-01 -0.123790D+02 -0.204520D+02
16 0.919948D-03 -0.601240D-03 -0.365011D-03 0.595080D+00 -0.273942D-01
17 -0.285822D-03 -0.442768D-03 -0.116337D-03 -0.212128D+00 -0.348197D-01
18 -0.563242D-01 -0.103713D+00 0.201428D-01 -0.697796D+01 0.937870D+01
19 -0.165335D-01 0.527120D-02 -0.171449D-02 0.146431D+01 0.565758D+00
20 0.671594D-02 0.767725D-03 -0.205329D+00 0.132512D+02 0.376282D+01
21 0.140492D-01 -0.641182D-02 0.264369D-02 -0.194936D+01 -0.567945D+00
22 0.895027D-04 0.146529D-03 -0.473554D-05 0.106764D+00 0.131013D-01
23 0.561075D-04 -0.807760D-03 -0.174072D-02 0.615951D+00 -0.265227D-01
24 0.110937D-03 0.218766D-03 -0.128264D-03 -0.106996D+00 -0.325121D-01
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 0.709819D+02
12 -0.586018D+02 0.197041D+03
13 -0.879267D+00 -0.271799D+01 0.172089D+02
14 -0.317803D+01 0.101342D+02 -0.412423D+01 0.821345D+02
15 0.973893D+01 0.451226D+01 0.653755D+01 0.100271D+01 0.356612D+03
16 -0.350770D+00 -0.157666D+00 0.119866D+00 0.453916D+00 0.835662D+00
17 0.312704D-01 -0.713355D-01 -0.471076D-01 -0.270854D-01 -0.171198D+01
18 -0.179431D+01 0.791060D+01 -0.744320D+01 0.134055D+02 -0.932289D+02
19 0.696062D-01 -0.269265D+01 -0.641523D+00 -0.132392D+01 0.110667D+01
20 -0.362528D+01 -0.175357D+02 0.171546D+01 -0.516118D+02 0.161565D+02
21 0.327660D+00 0.163023D+01 0.328453D+00 0.155913D+01 -0.744095D+00
22 -0.924333D-01 0.838780D-01 0.923103D-02 -0.528115D-01 0.445857D+00
23 -0.663029D+00 0.114389D+01 -0.431118D-02 -0.106272D+00 -0.337089D+00
24 0.123686D+00 -0.292723D+00 0.151308D-01 0.447737D-01 -0.830366D-01
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 0.541867D+00
17 -0.209976D-01 0.210400D-01
18 0.654496D-01 0.511543D+00 0.225548D+03
19 -0.192867D+00 -0.113509D-01 0.128363D+01 0.635173D+01
20 -0.149629D+00 -0.144626D+00 -0.817355D+02 0.484837D+01 0.383761D+03
21 -0.105455D-02 0.648297D-02 0.123382D+01 -0.569468D+01 -0.613600D+01
22 -0.218781D-02 -0.550137D-02 -0.108760D+01 -0.162646D-01 0.340049D+00
23 0.443843D-01 -0.206833D-02 -0.513217D+00 -0.609013D-01 0.264679D+01
24 -0.204913D-02 0.187320D-02 0.322329D+00 -0.260770D-01 -0.159072D+01
ESTIMATED COVARIANCE MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 0.655701D+01
22 -0.441739D-01 0.124998D-01
23 -0.146086D+00 0.609615D-02 0.639525D+00
24 0.421013D-01 -0.303100D-02 -0.606639D-01 0.176446D-01
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
1 2 3 4 5
________ ________ ________ ________ ________
1 1.000
2 -0.084 1.000
3 -0.256 -0.003 1.000
4 0.024 -0.295 -0.190 1.000
5 0.007 0.049 -0.047 0.030 1.000
6 0.012 0.005 0.006 0.023 0.009
7 0.010 0.005 0.006 0.028 -0.166
8 0.008 0.022 0.037 0.036 -0.073
9 -0.024 0.034 0.003 -0.032 0.241
10 -0.030 0.049 0.049 -0.010 0.656
11 -0.031 0.009 0.046 0.047 -0.119
12 -0.003 0.013 0.010 -0.078 0.077
13 0.041 0.035 -0.060 0.002 -0.098
14 0.029 -0.027 0.067 0.035 -0.009
15 -0.086 0.070 -0.010 -0.026 -0.127
16 -0.077 -0.315 0.035 0.089 0.023
17 -0.137 -0.242 0.069 0.105 -0.098
18 -0.013 -0.055 0.015 0.028 0.093
19 -0.033 0.073 0.005 -0.127 0.002
20 -0.030 -0.011 -0.071 -0.067 0.037
21 0.052 -0.011 0.012 0.078 -0.037
22 0.090 0.141 -0.094 -0.049 0.059
23 0.008 -0.094 0.016 -0.013 0.055
24 -0.022 0.016 0.058 0.158 -0.054
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
6 7 8 9 10
________ ________ ________ ________ ________
6 1.000
7 0.315 1.000
8 -0.105 0.189 1.000
9 -0.084 0.087 -0.074 1.000
10 0.012 -0.151 -0.045 0.110 1.000
11 0.214 0.039 -0.074 -0.322 -0.008
12 -0.056 -0.061 0.083 0.176 0.070
13 0.478 0.528 0.088 0.047 -0.244
14 -0.010 0.043 0.482 -0.008 0.079
15 0.091 0.079 0.034 -0.072 -0.190
16 0.043 -0.018 -0.009 0.089 -0.007
17 -0.069 -0.066 -0.015 -0.160 -0.042
18 -0.130 -0.149 0.025 -0.051 0.110
19 -0.228 0.045 -0.013 0.064 0.039
20 0.012 0.001 -0.199 0.074 0.034
21 0.191 -0.054 0.020 -0.083 -0.039
22 0.028 0.028 -0.001 0.105 0.021
23 0.002 -0.022 -0.041 0.084 -0.006
24 0.029 0.035 -0.018 -0.088 -0.043
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
11 12 13 14 15
________ ________ ________ ________ ________
11 1.000
12 -0.496 1.000
13 -0.025 -0.047 1.000
14 -0.042 0.080 -0.110 1.000
15 0.061 0.017 0.083 0.006 1.000
16 -0.057 -0.015 0.039 0.068 0.060
17 0.026 -0.035 -0.078 -0.021 -0.625
18 -0.014 0.038 -0.119 0.098 -0.329
19 0.003 -0.076 -0.061 -0.058 0.023
20 -0.022 -0.064 0.021 -0.291 0.044
21 0.015 0.045 0.031 0.067 -0.015
22 -0.098 0.053 0.020 -0.052 0.211
23 -0.098 0.102 -0.001 -0.015 -0.022
24 0.111 -0.157 0.027 0.037 -0.033
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
16 17 18 19 20
________ ________ ________ ________ ________
16 1.000
17 -0.197 1.000
18 0.006 0.235 1.000
19 -0.104 -0.031 0.034 1.000
20 -0.010 -0.051 -0.278 0.098 1.000
21 -0.001 0.017 0.032 -0.882 -0.122
22 -0.027 -0.339 -0.648 -0.058 0.155
23 0.075 -0.018 -0.043 -0.030 0.169
24 -0.021 0.097 0.162 -0.078 -0.611
ESTIMATED CORRELATION MATRIX FOR PARAMETER ESTIMATES
21 22 23 24
________ ________ ________ ________
21 1.000
22 -0.154 1.000
23 -0.071 0.068 1.000
24 0.124 -0.204 -0.571 1.000
|
761732e99f947aa34f217a783dc97f568710f90e | fefad5173ecf4ad969ad099f049914ffbce3f491 | /IDK.sci | 7244bb7794ceba2fa41d027d551b77e94ab7a7da | [] | no_license | manojgudi/yelp | a5335a8eb0981aaed4170d7869bd4cc0e36c08c0 | 0a12e0c9f2e045317224638b19136dac1a8f9396 | refs/heads/master | 2020-05-03T05:04:35.128422 | 2013-06-18T08:56:42 | 2013-06-18T08:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 108 | sci | IDK.sci |
exec abc.sce
function [someargs] = never_used_function(function_var)
random_var = cols_sum+9
endfunction
|
8c0632073ff8cb89635bbf70559fc0f5f3d90389 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2048/CH3/EX3.1/energy.sce | ca16729bddf821233490d5ebc5bf0b7d7b786593 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 123 | sce | energy.sce | // Energy of a signal
// 3.1
u = [4 5 6];
Eu = norm(u)^2;
ruu = xcorr(u);
Lu = length(ruu);
Eu = ruu(ceil(Lu/2));
|
747bcee3f31df3bb0fcf52ad9e95c6ec4d17380e | 8293f7c8800a04665e23ea5814feac83786d8b75 | /VRD_multi/multi2/grafico.sce | 20ccafe97cf876d9ab9149d1dab46db85f051069 | [] | no_license | gusplatt/paper_libotte | 6deb983260bc62b0645f3c3f4b674162829b6e02 | 249eae1595b581e350c6479fcdda4446c9f2c54e | refs/heads/master | 2021-01-19T19:18:46.392726 | 2017-10-03T23:21:22 | 2017-10-03T23:21:22 | 101,187,042 | 0 | 0 | null | null | null | null | ISO-8859-1 | Scilab | false | false | 2,159 | sce | grafico.sce | // desenha gráfico
matraiz1 =[5007.2606 5006.0772 5004.6137 5002.7037 4999.9336 4994.1345 4993.6218 4993.0099 4992.2213;
4931.2241 4944.5254 4954.8961 4964.0604 4973.0374 4984.3056 4985.0246 4985.8419 4992.2213;
4859.462 4842.6 4828.8698 4816.7114 4805.5178 4794.9772 4794.5662 4794.156 4793.7466];
matraiz2 = [5008.2496 5008.0646 5007.8735 5007.6761 5007.472;
4902.6823 4913.4803 4919.4052 4923.979 4927.8331;
4891.6817 4880.1414 4873.4772 4868.1675 4863.5811] ;
vy1 = [0.998966 0.998971 0.998976 0.998981 0.998986 0.998991 0.9989912 0.9989914 0.9989916;
0.998966 0.998971 0.998976 0.998981 0.998986 0.998991 0.9989912 0.9989914 0.9989916;
0.998966 0.998971 0.998976 0.998981 0.998986 0.998991 0.9989912 0.9989914 0.9989916];
vy2 = [0.998961 0.998962 0.998963 0.998964 0.998965;
0.998961 0.998962 0.998963 0.998964 0.998965;
0.998961 0.998962 0.998963 0.998964 0.998965];
matfim1 = [];
matfim2 = [];
for k = 1:9
matfim1 = [matfim1 ; matraiz1(:,k) vy1(:,k)];
end
for k = 1:5
matfim2 = [matfim2 ; matraiz2(:,k) vy2(:,k)];
end
matfim = [matfim1 ; matfim2];
matfim = lex_sort(matfim);
plot(matfim(:,2),matfim(:,1))
novaparte = [4793.7466;
4792.9297;
4790.8997;
4788.8861;
4786.8879;
4784.9043;
4782.9344;
4780.9775;
4779.0329;
4777.1;
4775.178;
4773.2665;
4771.3648;
4769.4725 ];
novoy = [ 0.9989916;
0.998992;
0.998993;
0.998994;
0.998995;
0.998996;
0.998997;
0.998998;
0.998999;
0.999;
0.999001;
0.999002;
0.999003;
0.999004 ];
plot(novoy,novaparte)
// parte de baixa pressão
load('dados.dat')
plot(vy,vp)
load('dados2.dat')
plot(vy3,vp3)
// a parte final
vy4 = [0.999433 ; 0.99944 ; 0.99945; 0.99947; 0.99948; 0.999482 ; 0.999483 ; 0.999484 ; 0.9994845 ; 0.9994845];
vp4 = [3362.4312 ; 3298.648 ; 3196.8723; 2929.1597 ; 2712.4424 ; 2645.7968; 2603.8133; 2549.0617 ; 2510.0961 ; 2333.9874];
plot(vy4,vp4)
|
59681efa4272532300b9fca3b5784cd53fe9a1bd | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set6/s_Electronic_Circuits_M._H._Tooley_995.zip/Electronic_Circuits_M._H._Tooley_995/CH5/EX5.8/Ex5_8.sce | 466295ea54c88db04097bedb23051067e7287d27 | [] | 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 | 245 | sce | Ex5_8.sce | errcatch(-1,"stop");mode(2);//Ex:5.8
;
;
dV_gs=0.025;
g_fs=-0.5;
dI_d=dV_gs*g_fs;//in mA
I_d1=50*10^-3;//in mA
I_d2=dI_d+I_d1;
printf("Change in drain current = %f A",dI_d);
printf("\nNew value of drain current = %f A",I_d2);
exit();
|
aebc1faca42539ddb3c36c602a319fc503a7aaa8 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/macros/percent/%s_n_r.sci | 320fda58ed8cbdf2bdd75c4f61a345d4b4459b2d | [
"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 | 244 | sci | %s_n_r.sci | function [r]=%s_n_r(l1,l2)
//%s_n_r(l1,l2) <=> l1<>l2 l1 constant l2 rational
// et l2 une fraction rationnelle
//!
// Copyright INRIA
r=degree(l2('num'))==0°ree(l2('den'))==0
if r then r=coeff(l2('num'))./coeff(l2('den'))==l1,end
r=~r
|
f0cd88beba0544f6ad1255cbd40c18bc972b6f27 | 0e1b45c07f0938ba9c8a003d6ae1cf2d8315efdb | /acmp.ru/423, Message/java/test-01.tst | b173bdd80e9ceb32247277c81b498dbf5434c6ba | [] | no_license | Kot-Angens/acm | c85d8582c3e84f218415321743864b9680e01f2e | 05472eaa0fff7abb6679826085da5e0c990df4cb | refs/heads/master | 2021-01-24T22:36:05.159612 | 2012-10-02T13:51:56 | 2012-10-02T13:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 34 | tst | test-01.tst | 1025
~~~~~~~~~~~~~~~~~~~~~~~~~~
4
|
cfec01c951c52e6792bc11b4e9a27c934d85fad4 | 717ddeb7e700373742c617a95e25a2376565112c | /3044/CH5/EX5.6/Ex5_6.sce | cb5e08520419e97181214957e715c6ec735fe834 | [] | 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 | 430 | sce | Ex5_6.sce | // Variable declaration
Mean = 10.1 // dB
std_dev = 2.7 // dB
// Calculation
// Part(a)
Lower = (8.5-Mean)/std_dev
Upper = (13.0-Mean)/std_dev
// We need to calculate F- Value for lower & Upper values.
// F(1.07) = 0.8577 & F(-0.59) = 0.2776
// Part(b)
val = 1 - 0.9678 // 1 - F(1.85)
// Result
printf ( "Part(a): %.4f",(0.8577-0.2776))
printf ( "Part(b): %.4f",(0.8577-0.2776))
printf ( "Part(c): %.4f",(1-0.9678))
|
910767813a4e875d2125fcb9309414289f892acd | 527c41bcbfe7e4743e0e8897b058eaaf206558c7 | /Positive_Negative_test/Netezza-Base-StatisticalFunctions/FLShuffleCorrelWin-NZ-01.tst | c257492a96c035297ab76777e69738ac5b65595a | [] | 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 | 1,954 | tst | FLShuffleCorrelWin-NZ-01.tst | -- Fuzzy Logix, LLC: Functional Testing Script for DB Lytix functions on Teradata
--
-- 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.
-- and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade
-- secret or copyright law. Dissemination of this information or reproduction of this material is
-- strictly forbidden unless prior written permission is obtained from Fuzzy Logix, LLC.
-- Functional Test Specifications:
--
-- Test Category: Basic Statistics
--
-- Test Unit Number: FLShuffleCorrelWin-Netezza-01
--
-- Name(s): FLShuffleCorrelWin
--
-- Description: Aggregate function which calculates the mode of a data series
--
-- Applications:
--
-- Parameters: See Documentation
--
-- Last Updated: 04-21-2017
--
-- Author: <Diptesh.Nath@fuzzylogix.com>
--
-- BEGIN: TEST SCRIPT
-- .run file=../PulsarLogOn.sql
-- .set width 2500
-- SELECT COUNT(*) AS CNT,
-- CASE WHEN CNT = 0 THEN ' Please Load Test Data!!! ' ELSE ' Test Data Loaded ' END AS TestOutcome
-- FROM fzzlSerial a;
-- BEGIN: POSITIVE TEST(s)
---- Positive Test 1: Find ShuffleCorrel
--- Returns expected result
SELECT p.*
FROM(SELECT a.TickerSymbol,
FLShuffleCorrelWin(a.closeprice, a.Volume)
OVER(PARTITION BY a.TickerSymbol) AS ShuffleCorrel
FROM FINSTOCKPRICE a) AS p
WHERE p.ShuffleCorrel IS NOT NULL
ORDER BY 1
LIMIT 20;
-- END: POSITIVE TEST(s)
-- BEGIN: NEGATIVE TEST(s)
---- Negative Test 1: Less Argument
--- Retun error
SELECT p.*
FROM(SELECT a.TickerSymbol,
FLShuffleCorrelWin(a.closeprice)
OVER(PARTITION BY a.TickerSymbol) AS ShuffleCorrel
FROM FINSTOCKPRICE a) AS p
WHERE p.ShuffleCorrel IS NOT NULL
ORDER BY 1
-- END: NEGATIVE TEST(s)
-- END: TEST SCRIPT |
0a2024ac37ee9d8aa32f38f785d5d3621dc7eca1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1640/CH1/EX1.1/1_1.sce | 97d97ff125111f91e82c72e7a2936ce12ead87cc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 224 | sce | 1_1.sce | clc
//initialisation of variables
h1= 2 //in
h2= 2 //in
wn= 13.6 //g/cc
w= 1 //g/cc
W= 62.4 //lbs/ft^3
//CALCULATIONS
ha= ((h2*wn/w)-h1)/12
pa= ha*W/144
//RESULTS
printf ('Pressure of water= %.2f lb/sq in ',pa)
|
626059724b719352cad376b63f6c65fd30e77632 | 449d555969bfd7befe906877abab098c6e63a0e8 | /845/CH7/EX7.8/Ex7_8.sce | 0318b5ee7de1b1c1792b75bfe6ed228c4493430c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,380 | sce | Ex7_8.sce | //Example 7.8
clc
clear
function [I] = trap (fun,a,b,n)
// Integrate the function over the interval using Trapezoidal Formula
// trap (fun,a,b,n)
// fun - function to be integrated
// a - lower limit of integration
// b - upper limit of integration
// n - No. of times trapezoidal rule needs to be performed
N = n + 1; // N - total no. of points
h = (b-a) / (N-1);
x = linspace(a,b,N);
y = fun(x);
sum1 = y(1) + 2 * sum(y(2:N-1)) + y(N);
I = h * sum1 / 2; // Trapezoidal Integral Value
endfunction
function [I] = simp13 (fun,a,b,n)
// Integrate the function over the interval using Simpson's 1/3rd rule
// simp13 (fun,a,b,n)
// fun - function to be integrated
// a - lower limit of integration
// b - upper limit of integration
// n - No. of times simpson's 1/3rd rule needs to be performed
N = 2 * n + 1; // N - total no. of points
h = (b-a) / (N-1);
x = linspace(a,b,N);
y = fun(x);
sum1 = y(1) + 4 * sum(y(2:2:N-1)) + 2 * sum(y(3:2:N-2)) + y(N);
I = h* sum1 / 3; // Simpson's 1/3rd Integral Value
endfunction
function [f] = fun1(x)
f = 1 ./(1+x^2);
endfunction
n = 4;
ntrap = n;
ns13 = n/2;
I = [trap(fun1,0,1,ntrap); simp13(fun1,0,1,ns13)];
I = round(I*10^4)/10^4;
true = intg(0,1,fun1);
disp(I(1),"y_trap = ")
disp(I(2),"y_simp13 = ")
disp(I(2)*4,"Approx pi = ")
|
6ce284e3a4b358a5ef1c6013a06a3399e54cdff2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /273/CH25/EX25.13/ex25_13.sce | 1152138b032a72e609c2ae2e0c707d714cf3ce82 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 729 | sce | ex25_13.sce | clc;clear;
//Example 25.13
//calculation of sum of hexadecimal numbers
//given values
X1='C';
X2='A';
X3='E';
Y1='3';
Y2='2';
Y3='D';
//calculation
x1=hex2dec(X1);//decimal equivalent
x2=hex2dec(X2);//decimal equivalent
x3=hex2dec(X3);//decimal equivalent
y1=hex2dec(Y1);//decimal equivalent
y2=hex2dec(Y2);//decimal equivalent
y3=hex2dec(Y3);//decimal equivalent
z1=x1+y1;
z2=x2+y2;
z3=x3+y3;
Z1=dec2hex(z1);//binary equivalent of sum
Z2=dec2hex(z2);//binary equivalent of sum
Z3=dec2hex(z3);//binary equivalent of sum
disp(Z1,'sum of the first set of hexadecimal numbers is');
disp(Z2,'sum of the second set of hexadecimal numbers is');
disp(Z3,'sum of the thirdm set of hexadecimal numbers is');
|
67a1b51681abafe831c71ddbeb501063ba048060 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1682/CH6/EX6.1/Exa6_1.sce | d7bb4307d0b341e7fd150fe97efa0cd01fa9995c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,225 | sce | Exa6_1.sce | //Exa 6.1
clc;
clear;
close;
//GIVEN DATA :
disp("Average No. of Km run/year = 20000 Km");
disp("No. of Km/litre of petrol = 9 Km");
disp("Therefore,");
disp("Petrol consumption/year = 20000/9 = 2222.2 litre");
disp("Cost/litre of petrol for the 1st year = Rs. 21 ");
disp("Cost/litre of petrol for the 2nd year = Rs. 21 + Re. 1 = Rs. 22 ");
disp("Cost/litre of petrol for the 3rd year = Rs. 22 + Re. 1 = Rs. 23 ");
disp("Cost/litre of petrol for the 4th year = Rs. 23 + Re. 1 = Rs. 24 ");
disp("Fuel expenditure for 1st year = 2222.2 * 21 = Rs. 46666.20");
disp("Fuel expenditure for 2nd year = 2222.2 * 22 = Rs. 48888.40");
disp("Fuel expenditure for 3rd year = 2222.2 * 23 = Rs. 51110.60");
disp("Fuel expenditure for 4th year = 2222.2 * 24 = Rs. 53332.80");
disp("The annual equal increment of the above expendiyure is Rs. 2222.20(G)");
A1=46666.20;//in Rs.
G=2222.20;//in Rs.
i=18;//in % per annum
n=4;//in years
A=A1+G*(((1+i/100)^n)-i*n/100-1)/(((i/100)*(1+i/100)^n)-i/100) ;
disp(A,"Annual equal amount spending for petrol in Rs. : ");
disp("This amoount is less than the annual rental value of Rs. 60000. Therefore, the company should continue to provide its own car to its executive. "); |
4c8db6dbbe6af2bfb3a973f0132000ee14ce1635 | cb85e23a93890cfe63382a9e043a178c7058cd4d | /launch_INPSCILAB.sce | 1f10ac2291eac30abccdf73d268db6404a8fc487 | [] | no_license | FINESCE/INP-SCILAB | ae06d33a4e159c6bc154700f5c7b88759caf6004 | 0006a42b67e269d7ce28729dba870306d564bcf5 | refs/heads/master | 2016-08-06T21:46:16.111774 | 2015-07-15T10:39:06 | 2015-07-15T10:39:06 | 37,849,688 | 1 | 1 | null | 2015-07-15T10:39:07 | 2015-06-22T10:35:26 | Scilab | UTF-8 | Scilab | false | false | 922 | sce | launch_INPSCILAB.sce | //Copyright [2015] [FINESCE Consortium]
//
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing, software
//distributed under the License is distributed on an "AS IS" BASIS,
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//See the License for the specific language governing permissions and
//limitations under the License.
//Developped by: José Sanchez Torres
//Last version : 02/03/2015
function launch_INPSCILAB()
tstart=now();
dateVector = datevec(tstart+1/3600);//Simulation starts in 1 minute
exec('simulator_INP.sce',-1);
simulator_INP(900, dateVector(1), dateVector(2), dateVector(3), dateVector(4), dateVector(5), 1)
endfunction
|
3ea57957c7193045102abf735a155afd2729bd83 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set14/s_Material_Science_V._Rajendran_1826.zip/Material_Science_V._Rajendran_1826/CH19/EX19.7/ex19_7.sce | c6903bf83126295b257003e53144b538d14210df | [] | 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 | 184 | sce | ex19_7.sce | errcatch(-1,"stop");mode(2);// Example 19.7, page no-545
mu=9.4*10^-24
H=2
k=1.38*10^-23
T=2*mu*H/(k*log(2))
printf("The temperature of the system T is %.1f K",T)
exit();
|
4deae7f76958a9493c73ce9c70129a5528f8b11d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2780/CH1/EX1.26/Ex1_26.sce | dda3f18746177a971191fa1f725c66b4824b97a1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 237 | sce | Ex1_26.sce | clc
//to calculate proton gain in mass
c=3*10^8 //light speed(m/s)
K=500*10^6*1.6*10^-19 //kinetic energy (J)
deltam=K/c^2
disp("proton gain in mass is delm="+string(deltam)+"kg")
//answer is given wrong in the book=8.89*10^28 kg
|
76c6bb842dc4e80b5b4685eaac98374923b14d8a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3756/CH9/EX9.1/Ex9_1.sce | fb6f83c63577073e8ad92c56c5f4ba93e1105a4e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 364 | sce | Ex9_1.sce | clc
//
//
//
//Variable declaration
k=3
E0=8.854*10**-12
E=10**6
//Calculations
P=(E0*(k-1)*E)*10**6
D=(E0*k*E)*10**6
Ed=0.5*E0*k*(E**2)
//Result
printf("\n (a) The Polarization in the Dielectric is %2.2f *10**-6 coul/m**2",P)
printf("\n (b) The Displacement Current Density is %2.2f *10**-6 coul/m**2",D)
printf("\n (c) The Energy Density is %0.3f J/m**3",Ed)
|
2133b521c4bb32a3c3bcd0e4122314bb99dadffe | 638e584c816a7bd11ec96d6be4e933243edfcb1d | /Fortran/divers/spy.sci | 65808438357cfac94511e2229f3479a30df992c7 | [] | no_license | sgibout/M2S | f7c3ba5a7b37a4bb3ab0ce34e6b14ea1a4e47b6f | 7614c676373747cb609b88bccd02133da097366b | refs/heads/master | 2022-10-22T14:10:02.950774 | 2022-10-19T14:54:53 | 2022-10-19T14:54:53 | 23,542,373 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 177 | sci | spy.sci |
function spy(A)
[i,j] = find(A~=0)
[N,M] = size(A)
xsetech([0,0,1,1],[1,0,M+1,N])
xrects([j;N-i+1;ones(i);ones(i)],ones(i));
xrect(1,N,M,N);
endfunction
|
7034e4e00006d9c8bbcb74678aa8f706782bc303 | 449d555969bfd7befe906877abab098c6e63a0e8 | /620/CH2/EX2.1/example2_1.sce | 1f2e5277b154da14068ef10aa850fbc983c2fe10 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 218 | sce | example2_1.sce | disp("Part a");
q1=0.25*10^(-6);
q2=q1;
k=9*10^9;
r=3*10^(-2);
f=k*q1*q2/r^2;
disp("the force of repulsion (in N) is "); disp(f);
disp("Part b");
f1=f/4.45;
disp("the force of repulsion (in lb) is"); disp(f1); |
6d1f189f1c228cea2ed9e49a3023c2e8ec50c4fc | 446aae2100be19be6950fe030959e4ae6ebf75d3 | /laboratorios/laboratorio 2/laboratorio2.sce | 79e208f907b05bd489322ad9431233363a9a75cb | [] | no_license | jhont285/metodos-numericos | 492dcc5893707393d066ecc53ca6c5f82faaee66 | 388248e2df5a8c73069dfba53cd439f62bb14476 | refs/heads/master | 2021-06-07T18:27:18.337510 | 2016-07-21T22:17:24 | 2016-07-21T22:17:24 | 62,011,812 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,247 | sce | laboratorio2.sce | clc
format(5)
A1 = [
1 2 -2 1 1 -2
0 -15 5 12 11 4
0 0 -2 0 1 0
0 0 0 -2/5 -1/5 11/5
0 0 0 0 2 9
0 0 0 0 0 -2
];
B1 = [-4 112 -1 53/5 64 -12]';
X1 = UN_sustitucion_regresiva(A1,B1)'
disp(X1)
A2 = [
24/527 0 0 0 0 0
-167/122 527/122 0 0 0 0
4/13 -11/26 -61/26 0 0 0
-5/14 121/28 -187/28 -13/7 0 0
10 -37 -9 52 56 0
0 -3 1 2 2 1
];
B2 = [-144/527 -1633/122 251/26 359/28 -107 0]';
X2 = UN_sustitucion_progre(A2,B2)'
disp(X2)
A3 = [
0 -18 0 14 16 7
1 2 -2 1 1 -2
8 16 -18 8 9 -16
9 3 -13 21 20 -14
0 -3 1 2 2 1
10 -1 -21 28 32 -12
];
B3 = [142 -4 -33 76 21 145]';
[U,C] = UN_eliminacion_gauss(A3,B3)
disp(U)
disp(C')
X3 = UN_sustitucion_regresiva(U,C)'
disp(X3)
A4 = [
1 2 -2 1 1 -2
9 3 -13 21 20 -14
8 16 -18 8 9 -16
0 -18 0 14 16 7
10 -1 -21 28 32 -12
0 -3 1 2 2 1
];
[L,U] = UN_factorizacion_LU(A4)
disp(L)
disp(U)
B4 = [-4 76 -33 142 145 21]';
B5 = [-11 -106 -82 9 -107 0]';
X4 = UN_solucion_LU(L,U,B4)
disp(X4')
X5 = UN_solucion_LU(L,U,B5)
disp(X5')
|
21caf0631c67c4464c978171f83db86cd9781114 | 449d555969bfd7befe906877abab098c6e63a0e8 | /494/CH3/EX3.15/3_15.sce | 83fd1c29f1b810b420cd994489d60e72d508a79e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 962 | sce | 3_15.sce | //All the quantities are expressed in SI units
theta = [180-asind(-5/4/%pi) 360+asind(-5/4/%pi)]; //location of the stagnation points
printf("\nRESULTS\n--------\nThe angular location of the stagnation points are\n theta = %3.1f, %3.1f degrees",theta(1),theta(2))
function temp = Cp(thet)
temp = 0.367 -3.183*sind(thet) - 4*(sind(thet)^2); //Cp written as a function of theta
endfunction
printf("\nRESULTS\n--------\nThe value of Cp on top of the cylinder is\n Cp = %1.2f",Cp(90))
[k] = roots([-4 -3.183 0.367]);
theta_2 = 180/%pi*[%pi-asin(k(1)) 2*%pi+asin(k(1)) asin(k(2)) %pi-asin(k(2))];
printf("\nRESULTS\n--------\nThe angular location of points on the cylinder where p = p_inf is\n theta = %3.1f, %3.2f, %1.2f, %3.1f",theta_2(1),theta_2(2),theta_2(3),theta_2(4))
printf("\nRESULTS\n--------\nThe value of Cp at the bottom of the cylinder is\n Cp = %1.2f",Cp(270)) |
2cab8fc2d59094d3c37ab21c18c3bed490f17c22 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2123/CH4/EX4.13/Exa_4_13.sce | 42b7ec603644117201654831e32fc0914cfe29b2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 561 | sce | Exa_4_13.sce | //Example No. 4.13
clc;
clear;
close;
format('v',7);
//Given Data :
P=6;//poles
f=50;//Hz
MoI=9.5;//Kg-m^2
Tr=550;//N-m
S=5/100;//Slip
Tmax=720;//N-m
T_LH=1020;//N-m
th=12;//sec
Tmin=220;//N-m
Snl=3/100;//No load slip
Ns=120*f/P;//rpm
Nnl=Ns-Ns*Snl;//rpm
Nrated=Ns-Ns*S;//rpm
omega_mo=Nnl*2*%pi/60;//rad/s
omega_mr=Nrated*2*%pi/60;//rad/s
J=[Tr/(omega_mo-omega_mr)]*[th/log((T_LH-Tmin)/(T_LH-Tmax))];//Kg-m^2
MoI_flywheel=J-MoI;//Kg-m^2
disp(MoI_flywheel,"Moment of inertia of flywheel in Kg-m^2 : ");
//Answer in the book is wrong.
|
55c3a351b49d70173c952d5fb786d96be01b43fa | 449d555969bfd7befe906877abab098c6e63a0e8 | /1703/CH10/EX10.8/10_8.sce | ea40900057aac16be21d49f626fddfa6dc257220 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 10_8.sce | clear
clc
//initialisation of variables
d= 8 //in
w= 2 //in
di= 12 //in
wi= 3 //in
a= 24 //degrees
p= 88 //per cent
a1= 85 //degrees
a2= 30 //degrees
p1= 94 //per cent
h= 180 //ft
d1= 18 //in
Cd= 0.92
g=32.2
n1= 111 //rpm
//RESULTS
r1= 1/tand(a)
r2= (1/tand(a1))+r1
r3= 2*r2/3
r4= (1/tand(a2))-r3
a3= atand(1/r4)
r5= sind(a3)
f= sqrt(g*h*(p/100)/(r1*r2+r3*r4+(r5^2/2)))
A= r2*f/(d/12)
N= (A*60/(2*%pi))-n1
W= (r1*r2+r3*r4)*f^2/g
Q= %pi*(d1/12)*(w/12)*Cd*f*62.08
whp= W*Q/550
bhp= p1*whp/100
//RESULTS
printf ('Speed = %.f rpm',N)
printf ('\n output horsepower = %.f hp',bhp)
|
dc7533b9e36e91f334346f042c5377f0d1110d8a | cd3baacb9aa523e8ac4f10406c5fb62c9c60998a | /gate/MyOr8Way.tst | 837debce1f661ca2b23913a0c34d151169451269 | [] | no_license | wangkekekexili/cuddly-octo-pancake | f8bbebc043417af9662712de610b390f062545f8 | 67b3d4c3d15c5877644221b6d987dd911101d013 | refs/heads/master | 2023-03-06T12:49:54.668374 | 2021-02-14T14:53:07 | 2021-02-14T14:53:07 | 338,038,595 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 211 | tst | MyOr8Way.tst | load MyOr8Way.hdl,
output-file MyOr8Way.out,
output-list in%B2.8.2 out%B2.1.2;
set in %B00000000, eval, output;
set in %B00000001, eval, output;
set in %B10101010, eval, output;
set in %B11111111, eval, output;
|
1c716ed348e68d7e46208712b8b50157b51c3ba5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2885/CH10/EX10.4/ex10_4.sce | 93a3e630dce4a7cd98fa1f0d31e853ad843fdea9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 390 | sce | ex10_4.sce | //Calculate the internal gain and percentage of output fed back to input
clear;
clc;
//soltion
//given
Af=80; //gain of feedback amplifier
Vi=0.05;//V //input with feedback
Vi_=4*10^-3;//V //input without feedback
Vo_=Af*Vi;
A=Vo_/Vi_;
printf("The internal gain is %.0f\n",A);
B=(A/Af-1)/A;
printf("The percentage of output fed back to input= %.2f percent",B*100);
|
c143a7cb601391d6cc1c6ddc370d4aa0d75993bf | 717ddeb7e700373742c617a95e25a2376565112c | /3424/CH10/EX10.3/Ex10_3.sce | e09d67b41774d5846ecd8c773d5afe54811a78d4 | [] | 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 | 570 | sce | Ex10_3.sce | clc
//Initialization of variables
th=40 //degrees
h=5 //ft
b=12 //ft
Q=10.0 //m^3/s
k=3.281 // ft to m conversion
So=0.0014
th=th*%pi/180
b=b/k
h=h/k
ka=1
eta=0.030
y= poly(0,'y');
A=y*(y/tan(th))+b*y
P=b+2*(y/sin(th))
Rh=A/P
// Q=10=ka/eta * A*Rh^(2/3) * So^(1/2)
// Calculations
lambda=roots((A)^5 - 515*(P)^2)
for j=1:10
if (real(lambda(j))>0 & imag(lambda(j))==0)
remember=j
end
end
// results
printf("The roots are")
disp(lambda)
printf ("\n The only positive real root gives us the solution which is y = %.2f m",lambda(remember))
|
ea7d2ba131c56042e68d5325f3c55e09b4b7434a | f3f881644657ef90a25b7fde9be7d1a8f04d29bf | /04/04/Part B/Sum.tst | 10dd53a497a4bc46f69ca9986b79ad205725fee6 | [] | no_license | ThompsonNJ/CSC242-Computer-Organization | 9da71fa5d024935637b2dbd1c732c1952e3eadd7 | 46eec94a0381db128af0d2340a588907568583ed | refs/heads/master | 2020-08-10T08:04:24.779446 | 2019-10-10T23:36:54 | 2019-10-10T23:36:54 | 214,301,258 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 722 | tst | Sum.tst | load Sum.asm,
output-file Sum.out,
compare-to Sum.cmp,
output-list RAM[0]%D2.6.2 RAM[1]%D2.6.2;
set RAM[0] 1; // Test that program initialized sum to 0
repeat 50 {
ticktock;
}
set RAM[0] 1, // Restore arguments in case program used them as loop counter
output;
set PC 0,
set RAM[0] 2,
repeat 75 {
ticktock;
}
set RAM[0] 2, // Restore arguments in case program used them as loop counter
output;
set PC 0,
set RAM[0] 10,
repeat 250 {
ticktock;
}
set RAM[0] 10, // Restore arguments in case program used them as loop counter
output;
set PC 0,
set RAM[0] 32,
repeat 600 {
ticktock;
}
set RAM[0] 32, // Restore arguments in case program used them as loop counter
output;
|
16e81a5405b290396d78f095e30748b597f1002f | 449d555969bfd7befe906877abab098c6e63a0e8 | /575/CH9/EX9.1.1/9_1_1.sce | 8077c9f341b2472ea0838c69fbe14cbd08c3f68c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 511 | sce | 9_1_1.sce | clc
pathname=get_absolute_file_path('9_1_1.sce')
filename=pathname+filesep()+'911.sci'
exec(filename)
printf(" All the values in the textbook are Approximated hence the values in this code differ from those of Textbook")
disp("Part 1")
E1= ndot/4
deltaH1=E1*Hr1
printf("enthalpy change=%E Kj/s",deltaH1 )
disp("part2")
Hr2=2*Hr1
E2=ndot/8
deltaH2=E2*Hr2
printf("Enthalpy change=%E kj/s",deltaH2)
disp("part 3")
Hr3=Hr1+5*HvWater+HvButane
deltaH3=E1*Hr3
printf("Enthalpy change=%E kj/s",deltaH3) |
4188072b8c1dc15e90cd6c9678947ddad5af0733 | 449d555969bfd7befe906877abab098c6e63a0e8 | /27/CH5/EX5.1.1/Example_5_1_1.sce | 9e90eccc55f92090a8b940310993938835dbf21f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,728 | sce | Example_5_1_1.sce | clear;
clc;
close;
mtlb_hold on
circle([0 0],4,50) //Circle is drawn with (0,0)as center, radius=4.
circle([0,0],2,50)
a=get("current_axes"); //get the handle of the newly created axes
a.data_bounds=[-5,-5;5,5];
for x = -4:2:4
for v = -4:2:4
if(x==0) & (v==0)
plot2d(x,v,style=-4) //if x=0 and v=0 then x(dot)and v(d ot) are also zero, thus Fixed point.
end
if(x==0) & (v>0)
plot2d(x,v,style=-12)
end
if(x==0) & (v<0)
plot2d(x,v,style=-13)
end
if(v==0) & (x>0)
plot2d(x,v,style=-7)
end
if(v==0) & (x<0)
plot2d(x,v,style=-6)
end
end
end
a=get("current_axes"); //get the handle of the newly created axes
a.data_bounds=[-5,-5;5,5];
xtitle("Vector Field","X - Axis ( X )","Y - Axis ( V )")
set(gca(),"grid",[2,5]) //Grid on
figure
function xd=linear511(t,x)
xd(1)=x(2); //x(dot); x(2) means v.
xd(2)=-50*x(1); //v(dot); x(1) means x.; Taking w^2=50;
endfunction
bound=[-4,-4,4,4]; //Bounds of x-axis and y-axis as [xmin ymin xma x ymax], change them according to your needs.
nrect=15; //increase it to get more number of curves, i.e . more information will be available.
set(gca(),"auto_clear","off") //hold on
x=linspace(bound(1),bound(3),nrect);
y=linspace(bound(2),bound(4),nrect);
x0=[];
for i=1:15
x0=[x(i);y(i)];
t0=0;
t=0:0.01:3000;
xout=ode(x0,t0,t,linear511);
plot2d(xout(1,:),xout(2,:));
end |
fb407a3d8065a8fabbeeb6656794c9812b553044 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3841/CH7/EX7.1/Ex7_1.sce | 82896f0d7b4eb0dcba9d11fbb9cc76e88a553a17 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 225 | sce | Ex7_1.sce | clear
//given
//
//find the brake horse power
N=1150.
Wt=151.
l=4.
Wo=22.
//finding netforce
//f=Wt-Wo
F=Wt-Wo
//then as
R=4.
//calculating Brake horse power
Bhp=F*R*N/(5250.)
printf("\n \n braking horse power %.2f bhp",Bhp)
|
cb4b8f6abcec70916822b93a717a11ac45fc9259 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1736/CH8/EX8.2/Ch08Ex2.sce | 70f21611f268a6ab3fa32fae880faae532905328 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 505 | sce | Ch08Ex2.sce | // Scilab code Ex8.2 Page:241 (2006)
clc; clear;
n = 3e+028; // Spin density of electrons in a ferromagnetic material, per cubic meter
mu = 3e-023; // spin magnetic moment of a ferromagnetic material, Square Ampere
M_s = n*mu; // Saturation magnetization of a ferromagnetic material, Per Ampere
printf("\nSaturation magnetization of a ferromagnetic material = %1.0e ampere per meter", M_s);
// Result
// Saturation magnetization of a ferromagnetic material = 9e+005 ampere per meter
|
ae248bf6daa859c2658520dd371044a5ef8d3a39 | 5c808b0f55fefd29b91c7cb73f2f3a08093c5033 | /Code/Scilab Code/LoadAudioSample.sci | 6bfb2ea64ba2c2127d3aac43abb132d4d9447ec7 | [] | no_license | JOfTheAncientGermanSpear/Filter-Bank-Guitar-Note-Chord-Detection | a01e2ce521561dfea555a588d6bb1e0f1deca18e | cb0d54c74275a990dcb984c4ec349e6ca4e72a1a | refs/heads/master | 2021-01-20T12:00:42.472605 | 2013-06-14T03:04:33 | 2013-06-14T03:04:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,937 | sci | LoadAudioSample.sci | function audioSample = LoadAudioSample(stageIndex, noteIndex)
if(~IsStage3sDsharp(stageIndex, noteIndex)) then
stageFolderName = GetStageFolderName(stageIndex);
noteFileName = GetNoteFileName(noteIndex);
fullAudioFileName = CreateFullAudioFileName(stageFolderName, noteFileName);
audioSample = loadwave(fullAudioFileName);
else
audioSample = CreateStage3DsSignal();
end
endfunction
function Stage3DsSignal =CreateStage3DsSignal()
Stage3DsSignal = CreateChord([3 11], 44100, 22050);
endfunction
function isStage3Ds = IsStage3sDsharp(stageIndex, noteIndex)
isStage3Ds = (stageIndex==3 & noteIndex ==11);
endfunction
function stageDirectory = GetStageFolderName(stageIndex)
stageRankLabel = GetStageLabelFromIndex(stageIndex);
stageDirectory = strcat([stageRankLabel, 'Stage']);
endfunction
function stageRankLabel =GetStageLabelFromIndex(stageIndex)
select stageIndex
case 0, stageRankLabel = 'Lowest';
case 1, stageRankLabel = 'SecondLowest';
case 2, stageRankLabel = 'SecondHighest';
case 3, stageRankLabel = 'Highest';
end
endfunction
function noteFileName = GetNoteFileName(noteIndex)
select noteIndex
case 0, noteFileName = 'E';
case 1, noteFileName = 'F';
case 2, noteFileName = 'Fs';
case 3, noteFileName = 'G';
case 4, noteFileName = 'Gs';
case 5, noteFileName = 'A';
case 6, noteFileName = 'As';
case 7, noteFileName = 'B';
case 8, noteFileName = 'C';
case 9, noteFileName = 'Cs';
case 10, noteFileName = 'D';
case 11, noteFileName = 'Ds';
end
noteFileName = strcat([noteFileName,'.wav']);
endfunction
function fullAudioFileName = CreateFullAudioFileName(stageFolderName, noteFileName)
fullAudioFileName = strcat(['..\..\Audio Samples\',stageFolderName,'\',noteFileName]);
endfunction |
46207c498a2ae709fb10f43d044f214079631182 | 1dac2a6137d9897db9e7a1beeb16b87b63ba98e1 | /Measurements/gauss.sce | 3abc2f4dba3c4c1386165c035ed84424da697a1a | [] | no_license | MUsamaJaved/OSPJ | b7a52c77a92c2981731fe72ff3e6930e6ba29512 | b9734dd95b1ac02c62eb4e3c90b394e43d287222 | refs/heads/master | 2020-05-20T14:30:33.358720 | 2015-04-30T11:10:16 | 2015-04-30T11:10:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 874 | sce | gauss.sce | // ------ init -----
clc;
clear;
xdel(winsid())
// ------ init-end ----
//measuredValues= [122; 125; 123; 121; 119; 119; 117; 124; 120; 116];
measuredValues= [70200; 71000; 69200; 69000; 68700; 71400; 70400];
function f = gauss_distribution(x, mu, s)
p1 = -.5 * ((x - mu)/s) .^ 2;
p2 = (s * sqrt(2*%pi));
f = exp(p1) ./ p2;
endfunction
N=size(measuredValues,1);
arithMean = sum(measuredValues)/N;
mu = arithMean;
stdDev=sqrt(1/(N-1)*sum((measuredValues-arithMean).^2));
s = stdDev;
x=linspace(mu-3*s, mu+3*s, 1000); //start, end, number of values
f = gauss_distribution(x, mu, s);
plot2d(x,f, style=2); // change style-nr to change color, you can add several plot2d's too
plot2d(x,2*f, style=5); // change style-nr to change color, you can add several plot2d's too
//grid on;
title('Gaussian distribution');
xlabel('measured values');
ylabel('Gauss Distribution');
|
2d571b67190af631161e1d8a18c816ed2e8412ba | 449d555969bfd7befe906877abab098c6e63a0e8 | /2939/CH2/EX2.16/Ex2_16.sce | de63eebda5697fb53e66422fc2538426715e75b2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 212 | sce | Ex2_16.sce |
// Ex2_16
clc;
// Given:
Er=2.551;// in meV
m=119;// atomic wt of Sn
// Solution:
E=sqrt(2.551*10^-3*119/536);// energy emitted by nucleus
printf("The energy emtted by the nucleus is = %f MeV",E)
|
78de85a715b1f41df0fa475272cdd4d813de1c9a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2489/CH16/EX16.5/16_5.sce | daca247067c035c5c478ab11daa9a4fad5a299dc | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 290 | sce | 16_5.sce | clc
//Intitalisation of variables
clear
pH= 7
c1=1 //M
c2= 0.155 //M
c3= 0.25 //m
c4= 0.05 //M
c5= 0.62 //M
pka= 7.21
//CALCULATIONS
ph1= pka+log10((c5+c4)/(c1-c4))
ph2= pka+log10((c2+c4)/(c3-c4))
//RESULTS
printf ('final pH = %.2f ',ph1)
printf ('\n final pH = %.2f ',ph2)
|
2c1ba90fb54cbe4a8c12bb695ff4347059cee8ca | 449d555969bfd7befe906877abab098c6e63a0e8 | /1670/CH2/EX2.4/2_4.sce | f54d07389a7fbc81cdf2d4494d89f028fa0aa30c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 643 | sce | 2_4.sce | //Example 2.4
//Regula Falsi Method
//Page no. 18
clc;clear;close;
deff('y=f(x)','y=x*log10(x)-1.2')
x1=2;x2=3;e=0.000001
printf('n\tx1\t\tf(x1)\t\tx2\t\tf(x2)\t\tx3\t\tf(x3)')
printf('\n-------------------------------------------------------------------------------------------------\n')
for i=0:19
x3=x2*f(x1)/(f(x1)-f(x2))+x1*f(x2)/(f(x2)-f(x1))
printf(' %i\t%f\t%f\t%f\t%f\t%f\t%f\n',i,x1,f(x1),x2,f(x2),x3,f(x3))
if f(x1)*f(x3)>0 then
x1=x3
else
x2=x3
end
if abs(f(x3))<e then
break
end
end
printf('\n\nThus the root is %.3f correct upto three places of decimal',x3) |
a9879dcf3b73ca3774f222383e821f92483e8e10 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3176/CH6/EX6.7/Ex6_7.sce | 3ddf5f862697960171ba9646d7fd71e18b756b9c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 840 | sce | Ex6_7.sce | //Ex6_7 :
//Computing Color Image Components.
// Version : Scilab 5.4.1
// Operating System : Window-xp, Window-7
//Toolbox: Image Processing Design 8.3.1-1
//Toolbox: SIVP 0.5.3.1-2
//Reference book name : Digital Image Processing
//book author: Rafael C. Gonzalez and Richard E. Woods
clc;
close;
clear;
xdel(winsid())//to close all currently open figure(s).
Color=imread("Ex6_7.tif");
Color=imresize(Color,0.5);
[nr nc]=size(Color);
figure,ShowColorImage(Color,'Gray Image');
title('Original Image');
Slice_Image=[];
for i=1:nr
for j=1:nc
Slice_Image(i,j,1)=255-Color(i,j,1);
Slice_Image(i,j,2)=255-Color(i,j,2);
Slice_Image(i,j,3)=255-Color(i,j,3);
end
end
ShowColorImage(Slice_Image,'RGB Image');;
title('RGB Mapped image');
|
34caf3053e2707ba5fb4e512230e1e178b1d0b63 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1592/CH1/EX1.3.a/Example1_3_a.sce | 5d73e18f9e7b09c1e242a824415d2a5b772be747 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 451 | sce | Example1_3_a.sce | //Scilab Code for Example 1.3(a) of Signals and systems by
//P.Ramakrishna Rao
//Determine whether the given signal is periodic or not
//x(t)=3*cos(0.4*pi*t)+2*sin(0.66*t)
clc;
clear;
syms t;
x=3*cos(0.4*%pi*t)+2*sin(0.66*t);
disp(x,'x(t)');
t=0:1/50:50;
x=3*cos(0.4*%pi*t)+2*sin(0.66*t);
t=0:1/50:50;
plot(t,x);
title('x(t)');
xlabel('Time in seconds');
disp('plotted the signal and shown that it is not periodic and is increasing');
|
62a7b56fc7afe6ab87fc08be7a4f2a2251ee9da3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /575/DEPENDENCIES/422.sci | 18c4a832ab3cf2d1af9d37f48e5f94f487e3927d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 106 | sci | 422.sci | inputBenzene=500 //kg/h
inputToluene=500 //kg/h
UpStreamBenzene=450 //kg/h
DownStreamToluene=475 //kg/h |
6288639e08478189e8ab5b1de211e8396ac5a5cd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2048/DEPENDENCIES/tfvar.sci | 424624d9fea083d705d92abf0c512501367cd2de | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 495 | sci | tfvar.sci | // Cancellation of common factors and determination of covariance
// 11.7
// function [N,dN,D,dD,yvar] = tfvar(N,dN,D,dD)
// N and D polynomials in z^{-1} form; discrete case
function [N,dN,D,dD,yvar] = tfvar(N,dN,D,dD)
[N,dN,D,dD] = l2r(N,dN,D,dD);
N = N/D(1); D = D/D(1);
LN = length(N); LD = length(D);
D1 = D;
if LD<LN, D1 = [D zeros(1,LN-LD)]; dD1 = dD+LN-LD; end
H = tf(N,D1,1);//TS=1 (sampling time) has been taken constant in tfvar
yvar = covar_m(H,1);
endfunction;
|
09188be9566ffe728937997cb3ebd31d71606e3b | 36c5f94ce0d09d8d1cc8d0f9d79ecccaa78036bd | /Fortnite Thin Aim.sce | 11866d322561cddb5577f170e485a7ac1f13728a | [] | no_license | Ahmad6543/Scenarios | cef76bf19d46e86249a6099c01928e4e33db5f20 | 6a4563d241e61a62020f76796762df5ae8817cc8 | refs/heads/master | 2023-03-18T23:30:49.653812 | 2020-09-23T06:26:05 | 2020-09-23T06:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 10,787 | sce | Fortnite Thin Aim.sce | Name=Fortnite Thin Aim
PlayerCharacters=FortniteMain
BotCharacters=Thin very long strafe.bot
IsChallenge=false
Timelimit=60.0
PlayerProfile=
AddedBots=
PlayerMaxLives=0
BotMaxLives=
PlayerTeam=0
BotTeams=
MapName=
MapScale=3.8125
BlockProjectilePredictors=true
BlockCheats=true
InvinciblePlayer=false
InvincibleBots=false
Timescale=1.0
BlockHealthbars=false
TimeRefilledByKill=0.0
ScoreToWin=1000.0
ScorePerDamage=1.0
ScorePerKill=0.0
ScorePerMidairDirect=0.0
ScorePerAnyDirect=0.0
ScorePerTime=0.0
ScoreLossPerDamageTaken=0.0
ScoreLossPerDeath=0.0
ScoreLossPerMidairDirected=0.0
ScoreLossPerAnyDirected=0.0
ScoreMultAccuracy=false
ScoreMultDamageEfficiency=false
ScoreMultKillEfficiency=false
GameTag=Fortnite
WeaponHeroTag=LG
DifficultyTag=3
AuthorsTag=Whoever made thin aiming and PumpkinAtom
BlockHitMarkers=false
BlockHitSounds=false
BlockMissSounds=true
BlockFCT=false
Description=enjoy this mode, pls dont take n1 spot
GameVersion=1.0.6.1
ScorePerDistance=0.0
[Aim Profile]
Name=Default
MinReactionTime=0.3
MaxReactionTime=0.4
MinSelfMovementCorrectionTime=0.001
MaxSelfMovementCorrectionTime=0.05
FlickFOV=30.0
FlickSpeed=1.5
FlickError=15.0
TrackSpeed=3.5
TrackError=3.5
MaxTurnAngleFromPadCenter=75.0
MinRecenterTime=0.3
MaxRecenterTime=0.5
OptimalAimFOV=30.0
OuterAimPenalty=1.0
MaxError=40.0
ShootFOV=15.0
VerticalAimOffset=0.0
MaxTolerableSpread=5.0
MinTolerableSpread=1.0
TolerableSpreadDist=2000.0
MaxSpreadDistFactor=2.0
[Bot Profile]
Name=Thin very long strafe
DodgeProfileNames=Long Strafes_very
DodgeProfileWeights=1.0
DodgeProfileMaxChangeTime=5.0
DodgeProfileMinChangeTime=1.0
WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0
AimingProfileNames=Default;Default;Default;Default;Default;Default;Default;Default
WeaponSwitchTime=3.0
UseWeapons=false
CharacterProfile=Thin
SeeThroughWalls=false
[Character Profile]
Name=FortniteMain
MaxHealth=100.0
WeaponProfileNames=test lg;;;;;;;
MinRespawnDelay=1.0
MaxRespawnDelay=5.0
StepUpHeight=16.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=1.0
CameraOffset=X=0.000 Y=0.000 Z=0.000
HeadshotOnly=false
DamageKnockbackFactor=0.0
MovementType=Base
MaxSpeed=300.0
MaxCrouchSpeed=133.0
Acceleration=1000.0
AirAcceleration=16000.0
Friction=7.0
BrakingFrictionFactor=2.0
JumpVelocity=550.0
Gravity=1.5
AirControl=0.3
CanCrouch=false
CanPogoJump=false
CanCrouchInAir=true
CanJumpFromCrouch=false
EnemyBodyColor=X=255.000 Y=0.000 Z=0.000
EnemyHeadColor=X=255.000 Y=255.000 Z=255.000
TeamBodyColor=X=0.000 Y=0.000 Z=255.000
TeamHeadColor=X=255.000 Y=255.000 Z=255.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=270.0
MainBBType=Cylindrical
MainBBHeight=83.0
MainBBRadius=9.0
MainBBHasHead=true
MainBBHeadRadius=6.0
MainBBHeadOffset=1.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=65.0
ProjBBRadius=10.0
ProjBBHasHead=true
ProjBBHeadRadius=8.0
ProjBBHeadOffset=-8.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.2
JetpackFullFuelTime=4.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=false
JetpackThrust=6000.0
JetpackMaxZVelocity=400.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=Run.abilsprint;;;
HideWeapon=false
AerialFriction=0.0
StrafeSpeedMult=0.7
BackSpeedMult=0.5
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.5
AllowBufferedJumps=false
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=1.0
ForwardSpeedBias=1.0
HealthRegainedonkill=0.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=true
TPSArmLength=155.0
TPSOffset=X=0.000 Y=20.000 Z=-5.000
BrakingDeceleration=2048.0
VerticalSpawnOffset=0.0
[Character Profile]
Name=Thin
MaxHealth=200.0
WeaponProfileNames=Railgun;Rocket Launcher;LG;;;;;
MinRespawnDelay=1.0
MaxRespawnDelay=5.0
StepUpHeight=75.0
CrouchHeightModifier=0.5
CrouchAnimationSpeed=2.0
CameraOffset=X=0.000 Y=0.000 Z=80.000
HeadshotOnly=false
DamageKnockbackFactor=4.0
MovementType=Base
MaxSpeed=1300.0
MaxCrouchSpeed=500.0
Acceleration=9000.0
AirAcceleration=16000.0
Friction=6.0
BrakingFrictionFactor=2.0
JumpVelocity=800.0
Gravity=3.0
AirControl=0.25
CanCrouch=true
CanPogoJump=false
CanCrouchInAir=true
CanJumpFromCrouch=false
EnemyBodyColor=X=0.771 Y=0.000 Z=0.000
EnemyHeadColor=X=1.000 Y=1.000 Z=1.000
TeamBodyColor=X=1.000 Y=0.888 Z=0.000
TeamHeadColor=X=1.000 Y=1.000 Z=1.000
BlockSelfDamage=false
InvinciblePlayer=false
InvincibleBots=false
BlockTeamDamage=false
AirJumpCount=0
AirJumpVelocity=0.0
MainBBType=Cylindrical
MainBBHeight=300.0
MainBBRadius=20.0
MainBBHasHead=false
MainBBHeadRadius=45.0
MainBBHeadOffset=0.0
MainBBHide=false
ProjBBType=Cylindrical
ProjBBHeight=300.0
ProjBBRadius=20.0
ProjBBHasHead=false
ProjBBHeadRadius=45.0
ProjBBHeadOffset=0.0
ProjBBHide=true
HasJetpack=false
JetpackActivationDelay=0.2
JetpackFullFuelTime=4.0
JetpackFuelIncPerSec=1.0
JetpackFuelRegensInAir=false
JetpackThrust=6000.0
JetpackMaxZVelocity=400.0
JetpackAirControlWithThrust=0.25
AbilityProfileNames=;;;
HideWeapon=false
AerialFriction=0.0
StrafeSpeedMult=1.0
BackSpeedMult=1.0
RespawnInvulnTime=0.0
BlockedSpawnRadius=0.0
BlockSpawnFOV=0.0
BlockSpawnDistance=0.0
RespawnAnimationDuration=0.5
AllowBufferedJumps=true
BounceOffWalls=false
LeanAngle=0.0
LeanDisplacement=0.0
AirJumpExtraControl=0.0
ForwardSpeedBias=1.0
HealthRegainedonkill=0.0
HealthRegenPerSec=0.0
HealthRegenDelay=0.0
JumpSpeedPenaltyDuration=0.0
JumpSpeedPenaltyPercent=0.0
ThirdPersonCamera=false
TPSArmLength=300.0
TPSOffset=X=0.000 Y=150.000 Z=150.000
BrakingDeceleration=2048.0
VerticalSpawnOffset=0.0
[Dodge Profile]
Name=Long Strafes_very
MaxTargetDistance=2500.0
MinTargetDistance=750.0
ToggleLeftRight=true
ToggleForwardBack=false
MinLRTimeChange=1.0
MaxLRTimeChange=2.5
MinFBTimeChange=0.2
MaxFBTimeChange=0.5
DamageReactionChangesDirection=true
DamageReactionChanceToIgnore=0.5
DamageReactionMinimumDelay=0.125
DamageReactionMaximumDelay=0.25
DamageReactionCooldown=1.0
DamageReactionThreshold=50.0
DamageReactionResetTimer=0.5
JumpFrequency=0.0
CrouchInAirFrequency=0.0
CrouchOnGroundFrequency=0.0
TargetStrafeOverride=Ignore
TargetStrafeMinDelay=0.125
TargetStrafeMaxDelay=0.25
MinProfileChangeTime=0.0
MaxProfileChangeTime=0.0
MinCrouchTime=0.3
MaxCrouchTime=0.6
MinJumpTime=0.3
MaxJumpTime=0.6
LeftStrafeTimeMult=1.0
RightStrafeTimeMult=1.0
StrafeSwapMinPause=0.0
StrafeSwapMaxPause=0.0
BlockedMovementPercent=0.5
BlockedMovementReactionMin=0.125
BlockedMovementReactionMax=0.2
[Weapon Profile]
Name=test lg
Type=Hitscan
ShotsPerClick=1
DamagePerShot=7.0
KnockbackFactor=2.0
TimeBetweenShots=0.05
Pierces=false
Category=FullyAuto
BurstShotCount=1
TimeBetweenBursts=0.5
ChargeStartDamage=10.0
ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000
ChargeTimeToAutoRelease=2.0
ChargeTimeToCap=1.0
ChargeMoveSpeedModifier=1.0
MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000
MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000
InheritOwnerVelocity=0.0
OriginOffset=X=0.000 Y=0.000 Z=0.000
MaxTravelTime=5.0
MaxHitscanRange=100000.0
GravityScale=1.0
HeadshotCapable=false
HeadshotMultiplier=2.0
MagazineMax=0
AmmoPerShot=1
ReloadTimeFromEmpty=0.5
ReloadTimeFromPartial=0.5
DamageFalloffStartDistance=100000.0
DamageFalloffStopDistance=100000.0
DamageAtMaxRange=7.0
DelayBeforeShot=0.0
HitscanVisualEffect=Tracer
ProjectileGraphic=Ball
VisualLifetime=0.05
WallParticleEffect=None
HitParticleEffect=None
BounceOffWorld=false
BounceFactor=0.0
BounceCount=0
HomingProjectileAcceleration=0.0
ProjectileEnemyHitRadius=1.0
CanAimDownSight=true
ADSZoomDelay=0.0
ADSZoomSensFactor=0.7
ADSMoveFactor=1.0
ADSStartDelay=0.0
ShootSoundCooldown=0.08
HitSoundCooldown=0.08
HitscanVisualOffset=X=0.000 Y=0.000 Z=-80.000
ADSBlocksShooting=false
ShootingBlocksADS=false
KnockbackFactorAir=4.0
RecoilNegatable=false
DecalType=0
DecalSize=30.0
DelayAfterShooting=0.0
BeamTracksCrosshair=true
AlsoShoot=
ADSShoot=
StunDuration=0.0
CircularSpread=true
SpreadStationaryVelocity=0.0
PassiveCharging=false
BurstFullyAuto=true
FlatKnockbackHorizontal=0.0
FlatKnockbackVertical=0.0
HitscanRadius=0.0
HitscanVisualRadius=6.0
TaggingDuration=0.0
TaggingMaxFactor=1.0
TaggingHitFactor=1.0
ProjectileTrail=None
RecoilCrouchScale=1.0
RecoilADSScale=1.0
PSRCrouchScale=1.0
PSRADSScale=1.0
ProjectileAcceleration=0.0
AccelIncludeVertical=true
AimPunchAmount=0.0
AimPunchResetTime=0.05
AimPunchCooldown=0.5
AimPunchHeadshotOnly=false
AimPunchCosmeticOnly=true
MinimumDecelVelocity=0.0
PSRManualNegation=false
PSRAutoReset=true
AimPunchUpTime=0.05
AmmoReloadedOnKill=0
CancelReloadOnKill=false
FlatKnockbackHorizontalMin=0.0
FlatKnockbackVerticalMin=0.0
ADSScope=No Scope
ADSFOVOverride=72.099998
ADSFOVScale=Clamped Horizontal
ADSAllowUserOverrideFOV=true
ForceFirstPersonInADS=true
Explosive=false
Radius=500.0
DamageAtCenter=100.0
DamageAtEdge=0.0
SelfDamageMultiplier=0.5
ExplodesOnContactWithEnemy=false
DelayAfterEnemyContact=0.0
ExplodesOnContactWithWorld=false
DelayAfterWorldContact=0.0
ExplodesOnNextAttack=false
DelayAfterSpawn=0.0
BlockedByWorld=false
SpreadSSA=1.0,1.0,-1.0,0.0
SpreadSCA=1.0,1.0,-1.0,0.0
SpreadMSA=1.0,1.0,-1.0,0.0
SpreadMCA=1.0,1.0,-1.0,0.0
SpreadSSH=1.0,1.0,-1.0,0.0
SpreadSCH=1.0,1.0,-1.0,0.0
SpreadMSH=1.0,1.0,-1.0,0.0
SpreadMCH=1.0,1.0,-1.0,0.0
MaxRecoilUp=0.0
MinRecoilUp=0.0
MinRecoilHoriz=0.0
MaxRecoilHoriz=0.0
FirstShotRecoilMult=1.0
RecoilAutoReset=false
TimeToRecoilPeak=0.05
TimeToRecoilReset=0.35
AAMode=0
AAPreferClosestPlayer=false
AAAlpha=0.05
AAMaxSpeed=1.0
AADeadZone=0.0
AAFOV=30.0
AANeedsLOS=true
TrackHorizontal=true
TrackVertical=true
AABlocksMouse=false
AAOffTimer=0.0
AABackOnTimer=0.0
TriggerBotEnabled=false
TriggerBotDelay=0.0
TriggerBotFOV=1.0
StickyLock=false
HeadLock=false
VerticalOffset=0.0
DisableLockOnKill=false
UsePerShotRecoil=false
PSRLoopStartIndex=0
PSRViewRecoilTracking=0.45
PSRCapUp=9.0
PSRCapRight=4.0
PSRCapLeft=4.0
PSRTimeToPeak=0.095
PSRResetDegreesPerSec=40.0
UsePerBulletSpread=false
PBS0=0.0,0.0
[Sprint Ability Profile]
Name=Run
MaxCharges=1.0
ChargeTimer=0.001
ChargesRefundedOnKill=0.0
DelayAfterUse=0.5
FullyAuto=false
AbilityDuration=0.0
BlockAttackWhileSprinting=false
AbilityBlockedWhenAttacking=true
SpeedModifier=1.5
45DegreeSprint=true
90DegreeSprint=true
135DegreeSprint=true
180DegreeSprint=true
TapToSprint=false
Block45DegreesWhenSprinting=false
AIUseInCombat=true
AIUseOutOfCombat=false
AIUseOnGround=true
AIUseInAir=true
AIReuseTimer=1.0
AIMinSelfHealth=0.0
AIMaxSelfHealth=100.0
AIMinTargHealth=0.0
AIMaxTargHealth=100.0
AIMinTargDist=0.0
AIMaxTargDist=2000.0
AIMaxTargFOV=15.0
AIDamageReaction=true
AIDamageReactionIgnoreChance=0.0
AIDamageReactionMinDelay=0.125
AIDamageReactionMaxDelay=0.25
AIDamageReactionCooldown=1.0
AIDamageReactionThreshold=0.0
AIDamageReactionResetTimer=0.1
[Map Data]
|
e894351c8b19bb165a27f334a5f502056a4c8509 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3760/CH2/EX2.26/Ex2_26.sce | 48bcb514d8dfef0fced80f354862ed710a18eaff | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 277 | sce | Ex2_26.sce | clc;
de=110*(%pi/180); // pole pitch
g=0.4*10^-2; // air gap length
B=0.5; // air gap flux density
d=0.3; // armature diameter
uo=4*%pi*10^-7; // free space permeability
fe=(B^2*d*de*g)/(2*uo);
printf('Force that tends to pull the armature into alignment is %f N',fe)
|
0d3ff639c665cd3e935b91be6fed330fb0aa9f6d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3886/CH12/EX12.4/12_4.sce | cc04c1e0fe30f1957a35ae94142e3b6ae93dc2c8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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_4.sce | //Crossing of balls
//refer fig. 12.8
//1.for motion of first ball
au=0
//1s=30-h
aa=9.81 //m/sec^2
//2.for motion of second ball
bu=15 //m/sec
//s=h
ba=-9.81 //m/sec^2
//30-h=0*t+(9.81*t^2)/2 ...(1)
//h=15*t-(9.81*t^2)/2 ...(2)
//solving (1) and (2)
t=30/15
h=15*2-(9.81*2^2)/2 //m
//at t=2
//downward velocity of first ball
v1=0+9.81*2 //m/sec
//Upward velocity of second ball
v2=15-9.81*2 //m/sec
//relative velocity vr
vr=v1-(-v2) //m/sec
printf("\nt=%.2f sec\nh=%.2f m\nvr=%.2f m/sec",t,h,vr)
|
d3256aec81dcc67533bce5a98bb963885c6b0187 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2234/CH5/EX5.5/ex5_5.sce | e1be4f504434deaf38dcd584c987bbf086946522 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 188 | sce | ex5_5.sce | clc;
l=0.1; //length in m
A=10^-4; //area in m square
R=0.01; //resistance in Ohm
p=(A*R)/l; //calculating resistivity
disp(p,"Resistivity in Ohm metre = "); //displaying result |
20f68294b9bbd5b86fc70dd2a792dbcc491fa52b | 25033eda4e7cd13f945f94c5dc35f15825066b42 | /ExactCure/triangle.sce | 753b6ab546dfb065f1b64ae749fff067813edc0b | [] | no_license | julienguegan/Internships | a26cb9efa2f1715832511a7aa94d25bfc675388b | ad51d5845ed8fd41e29259c95e8beff80bac65cf | refs/heads/master | 2020-12-20T21:54:29.099157 | 2020-01-25T19:20:10 | 2020-01-25T19:20:10 | 236,217,889 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 300 | sce | triangle.sce | /* triangle equilateral centre (x0,y0) et longueur l */
function triangle(x,l)
x0 = x(1)
y0 = x(2)
uy = y0 - sqrt(3)/6 ; ux = x0 - l/2
vy = y0 - sqrt(3)/6 ; vx = x0 + l/2
wx = x0 ; wy = y0 + sqrt(3)/3
plot(x0,y0,'k.')
plot([ux vx],[uy vy])
plot([ux wx],[uy wy])
plot([vx wx],[vy wy])
endfunction
|
f7453c1233a62bf75f0727301337dc3d44fee652 | 449d555969bfd7befe906877abab098c6e63a0e8 | /23/CH12/EX12.1/Example_12_1.sce | b230eb6c2c93abf4e90ed29645db24ecc209d59f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,513 | sce | Example_12_1.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 12.1
//Caption : Program to Reduce the set of VLE Data and Plot the Graphs
P=[90.15,91.78,88.01,81.67,78.89,76.82,73.39,66.45,62.95,57.70,50.16,45.70,29.00];
x1=[0.000,0.063,0.248,0.372,0.443,0.508,0.561,0.640,0.702,0.763,0.834,0.874,1.000];
y1=[0.000,0.049,0.131,0.182,0.215,0.248,0.268,0.316,0.368,0.412,0.490,0.570,1.000];
x2=1-x1;
y2=1-y1;
P1_sat=P(13);
P2_sat=P(1);
K=zeros(1,13);
for(i=1:13)
if(i ~= 1)
ln_V1(i)=approx(log(y1(i)*P(i)/(x1(i)*P1_sat)),3);
end
if(i ~= 13)
ln_V2(i)=approx(log(y2(i)*P(i)/(x2(i)*P2_sat)),3);
end
end
ln_V1(1)=%nan;
ln_V2(13)=%nan;
for(i=2:12)
K(i)=approx(((x1(i)*ln_V1(i))+(x2(i)*ln_V2(i)))/(x1(i)*x2(i)),3); //K=G_E/(x1*x2*R*T)
k(i)=approx(((x1(i)*ln_V1(i))+(x2(i)*ln_V2(i))),3); //K=G_E/(R*T)
end
K(1)=%nan;
k(1)=%nan;
K(13)=%nan;
k(13)=%nan;
A21=0.70;
A12=1.35;
K_new=approx((A21.*x1)+(A12.*x2),3);
//Using Eqn (12.10(a) and 12.10(b))
ln_V1_new=approx((x2.*x2).*(A12+(2*(A21-A12).*x1)),3);
V1_new=approx(exp(ln_V1_new),3);
ln_V2_new=approx((x1.*x1).*(A21+(2*(A12-A21).*x2)),3);
V2_new=approx(exp(ln_V2_new),3);
//Using Eqn (12.11)
P_new=(x1.*V1_new*P1_sat)+(x2.*V2_new*P2_sat);
A21_new=0.596;
A12_new=1.153;
K_new1=approx((A21_new.*x1)+(A12_new.*x2),3);
//Using Eqn (12.10(a) and 12.10(b))
ln_V1_new1=approx((x2.*x2).*(A12_new+(2*(A21_new-A12_new).*x1)),3);
V1_new1=approx(exp(ln_V1_new1),3);
ln_V2_new1=approx((x1.*x1).*(A21_new+(2*(A12_new-A21_new).*x2)),3);
V2_new1=approx(exp(ln_V2_new1),3);
//Using Eqn (12.11)
P_new1=(x1.*V1_new1*P1_sat)+(x2.*V2_new1*P2_sat);
subplot(1,2,1)
plot(x1,P,'bo')
plot(y1,P,'gs')
plot(x1,P_new,'b-')
plot(y1,P_new,'g-')
plot(x1,P_new1,'b--')
plot(y1,P_new1,'g--')
legend('Actual(P vs x1)','Actual(P vs y1)','By Gibbs Duhem(P vs x1)','By Gibbs Duhem(P vs y1)','By Barkers Method(Accurate)')
xtitle('(a)','x1,y1','P/kPa')
subplot(1,2,2)
plot(x1,ln_V1,'bs')
plot(x1,ln_V2,'gv')
plot(x1,K,'ro')
plot(x1,K_new,'r-')
plot(x1,ln_V1_new,'b-')
plot(x1,ln_V2_new,'g-')
plot(x1,K_new1,'r--')
plot(x1,ln_V1_new1,'b--')
plot(x1,ln_V2_new1,'g--')
legend('Actual(ln V1 vs x1)','Actual(ln V2 vs x1)','G_E/x1x2RT vs x1','By Gibbs Duhem(G_E/x1x2RT vs x1)','By Gibbs Duhem(ln V1 vs x1)','By Gibbs Duhem(ln V2 vs x1)','By Barkers Method(Accurate)')
xtitle('(b)','x1')
//End |
a4ecbeed5a741e4544f0ad0a7cd1b8af4a110189 | e806e966b06a53388fb300d89534354b222c2cad | /macros/dilate.sci | 0c215115bc6c9f3f173b58ffb6243ed87fbf905c | [] | no_license | gursimarsingh/FOSSEE_Image_Processing_Toolbox | 76c9d524193ade302c48efe11936fe640f4de200 | a6df67e8bcd5159cde27556f4f6a315f8dc2215f | refs/heads/master | 2021-01-22T02:08:45.870957 | 2017-01-15T21:26:17 | 2017-01-15T21:26:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 316 | sci | dilate.sci | function [out]=dilate(input_image,actualkernel,anchor_x,anchor_y,iteration)
input_image1=mattolist(input_image);
a=opencv_dilate(input_image1,actualkernel,anchor_x,anchor_y,iteration);
dimension=size(a)
for i = 1:dimension
out(:,:,i)=a(i);
end
endfunction;
|
d22b60d0a519e1fe87bf9d5d86a4587fe1508a7f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2300/CH13/EX13.16.16/Ex13_16.sce | cc53992ed9f6adf187236f3d38350ba4af366f6c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex13_16.sce | //scilab 5.4.1
//Windows 7 operating system
//chapter 13 Field-Effect Transistors
clc
clear
//In a FET used in a CS amplifier
IDSS=4//IDSS=drain saturation current in mA for gate-to-source voltage (VGS)=0V
Vp=-3//Vp=pinch-off voltage
RL=10//RL=load resistance in kilo ohms
VGS=-0.7//VGS=gate-to-source voltage
gmo=-(2*IDSS)/Vp//gmo=transconductance in A/V of a JFET when VGS=0V
gm=gmo*(1-(VGS/Vp))//gm=transconductance
AV=-gm*RL//AV=the small signal voltage gain
disp(AV,"The small signal voltage gain is =")
//Decimal term in the answer displayed in textbook is incorrect as 2.04*10=20.4 and not 20.04.
|
106b5dddec05527ae53f9f241c3f8a308be04d20 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3850/CH39/EX39.3/Ex39_3.sce | d989ae8b3768f3b40053841f118dcbb72ca4b7ea | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 829 | sce | Ex39_3.sce |
//To Find the Peak Value of Current and the Instantaneous Voltage of the source when the current is at its peak value
//Example 39.3
clear;
clc;
f=50;//Frequency of AC source in Hz
L=200*10^-3;//Self Inductance of Inductor in Henry
Xl=2*%pi*f*L;//Reactance of the Inductor in ohms
E0=210;//Peak EMF Value of AC source in Volts
i0=E0/Xl;//Peak Value of Current in Amperes
printf("Peak Value of current = %.1f A",i0);
i=i0;//Instantaneous Value of Current when current attains its peak value
phi=-%pi/2;//Phase Difference in Radians for a purely Inductive Circuit
t=(asin(i/i0)-phi)/(2*%pi*f);//Time at which current attains its peak value
E=E0*sin(2*%pi*f*t);//Instantaneous Voltage for a purely inductive circuit
printf("\n Instantaneous voltage at peak value of Current = %.0f V",E);
|
9ea187e6ce825a59b190ec5155e31cfec1407aee | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set4/s_Concise_Physics_H._Matyaka_1991.zip/Concise_Physics_H._Matyaka_1991/CH7/EX7.7/7.sce | f48625c0b5601adf74785081b0cfbd76decc5b85 | [] | no_license | hohiroki/Scilab_TBC | cb11e171e47a6cf15dad6594726c14443b23d512 | 98e421ab71b2e8be0c70d67cca3ecb53eeef1df6 | refs/heads/master | 2021-01-18T02:07:29.200029 | 2016-04-29T07:01:39 | 2016-04-29T07:01:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 260 | sce | 7.sce | errcatch(-1,"stop");mode(2);
//input
l1=82.3//balance length with switch open
l2=75.8//balance length with switch d
R=9//resistance
//calculation
r=(R*l1/l2)-R//internal resistance
//output
printf("the internal resistence is %3.3f ohm",r)
exit();
|
0fefc683e57ef32f8cfc37f5d352a6cadcffb6a2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2795/CH2/EX2.18/Ex2_18.sce | 11397f1761eafc25362174fbcf0f314a4e7d8d5d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,119 | sce | Ex2_18.sce | // Scilab Code Ex2.18: Page-72 (2013)
clc; clear
c = 1; // For simplicity assume speed of light in vacuum to be unity, m/s
E0_n = 940; // Rest energy of a neutron, MeV
E0_pi = 140; // Rest energy of a pion, MeV
p_n = 4702; // Momentum of the neutron, MeV/c
p_pi = 169; // Momentum of the pion, MeV/c
E_n = sqrt((p_n*c)^2+E0_n^2); // Total energy of the neutron, MeV
E_pi = sqrt((p_pi*c)^2+E0_pi^2); // Total energy of the pion, MeV
E = E_n + E_pi; // Total energy of the reaction, MeV
p_sigma = p_n + p_pi; // Momentum of the sigma particle, MeV/c
E0_sigma = sqrt(E^2 - (p_sigma*c)^2); // Rest mass energy of the sigma particle, MeV
m_sigma = E0_sigma/c^2; // Rest mass of sigma particle, MeV/c^2;
K = E - E0_sigma; // Kinetic energy of sigma particle, MeV
printf("\nThe rest mass of sigma particle = %4d MeV/c^2", ceil(m_sigma));
printf("\nThe kinetic energy of sigma particle = %4d MeV", ceil(K));
// Result
// The rest mass of sigma particle = 1192 MeV/c^2
// The kinetic energy of sigma particle = 3824 MeV
// The answers are given wrongly in the textbook |
0a289d47a677c66470ef9ea841ee2275dc1de2e4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3543/CH7/EX7.43/EX7_43.sce | ef2770a1f2b71dcce943bb5c21b9c0b8d20bc616 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 948 | sce | EX7_43.sce | // Example 7.42
// Calculation of a)excess loss,b)insertion loss,c)crosstalk and d)split ratio for the device.
// Page no 497
clc;
clear;
close;
//Given data
P1=100*10^-6; // Power launched in port 1
P2=0.005*10^-6; // Power launched in port 2
P3=30*10^-6; // Power launched in port 3
P4=35*10^-6; // Power launched in port 4
// a)Excess loss
E=10*log10(P1/(P3+P4));
// b)Insertion loss
I1=10*log10(P1/P3);
I2=10*log10(P1/P4);
//c)Crosstalk
C=10*log10(P2/P1);
//d)Split ratio
S=(P3/(P3+P4))*100;
//Displaying results in the command window
printf("\n Excess loss(in dB) = %0.2f ",E);
printf("\n Insertion loss(in dB) = %0.3f ",I1);
printf("\n Insertion loss (in dB)= %0.2f ",I2);
printf("\n Crosstalk (in dB)= %0.1f ",C);
printf("\n Split ratio(in percentage) = %0.2f ",S);
// The cross talk answer computation is wrong in the book
|
132d0dd8d0c475d4da49ed05be55a1fa02e14be1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1373/CH7/EX7.12/Chapter7_Example12.sce | b2b81abba536d402f6f687792a41b2911c70f732 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,169 | sce | Chapter7_Example12.sce | //Chapter-7, Example 7.12, Page 302
//=============================================================================
clc
clear
//INPUT DATA
n=7;//Number of rows of tube
Ta=15;//Temperature of air in degree C
v=6;//Velocity of air in m/s
ST=0.0205;//Transverse pitch in m
SD=0.0205;//Longitudinal pitch in m
D=0.0164;//Outside diameter of the tube in m
Ts=70;//Surface temperature in degree C
//CALCULATIONS
Tf=(Ta+Ts)/2;//Film temperature in degree C
k=0.0274;//Thermal conductivity of air at 42.5 degree C
Pr=0.705;//prant number of air at 42.5 degree C
v1=(17.4*10^-6);//Kinematic viscosity of air at 42.5 degree C
p=1.217;//Density in kg/m^3
vmax=(v*ST)/(ST-D);//Maximum velocity in m/s
Re=(vmax*D)/v1;//Reynolds number
Nu=(1.13*0.518*Re^0.556*Pr^(1/3))*0.97;//Nusselts number
h=(Nu*k)/D;//Heat transfer coefficent in W/m^2.K
f=0.4;//From Fig. 7.10 on page no 303
g=1.04;//From Fig. 7.10 on page no 303
dp=(n*f*p*vmax^2*g)/2;//Pressure drop in N/m^2
//OUTPUT
mprintf('Heat transfer coefficent is %3.2f W/m^2.K \nPressure drop is %3.0f N/m^2',h,dp)
//=================================END OF PROGRAM==============================
|
b9b6ed1d5923ccd34949d772f44e09b221d66957 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/tests/examples/unix_s.man.tst | e3579499d05f0a77052613e9407ae8f51e42f8b5 | [
"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 | 76 | tst | unix_s.man.tst | clear;lines(0);
if MSDOS then unix_s("del foo");
else unix_s("rm foo"); end
|
bc5208d7c28647cb0c613ce198bd8d91476aa4ed | 364f7d17c4f024c39c47c99bda284bacb913d470 | /macros/pana.sci | 0dad1106909ffb3b81dc63391ca3358ae7ebf36c | [] | no_license | msharsha/FOSSEE-Image-Processing-Toolbox | 6ce7bafc187b99b9e01d1eedcc09a11c3a80370d | f8b16bc3329f9186a3b362f29d9a40d20b48cfd4 | refs/heads/master | 2020-12-02T07:55:57.553927 | 2017-07-10T07:41:21 | 2017-07-10T07:41:21 | 96,747,260 | 0 | 0 | null | 2017-07-10T07:14:37 | 2017-07-10T07:14:37 | null | UTF-8 | Scilab | false | false | 3,193 | sci | pana.sci | // Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
// Author: M Avinash Reddy & Manoj Sree Harsha & Ebey Abraham
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
function [out]=pana(img1,varargin)
//Creates the output panorama image using two or more images
//
//Calling Sequence
//stacksize('max')
//img1=imread('path of the image file')
//img2=imread('path of the image file')
//out = pana(img1,img2)
//img3=imread('path of the image file')
//out = pana(img1,img2,img3)
//img4=imread('path of the image file')
//out = pana(img1,img2,img3,img4)
//img5=imread('path of the image file')
//out = pana(img1,img2,img3,img4,img5)
//img6=imread('path of the image file')
//out = pana(img1,img2,img3,img4,img5,img6)
//
//Parameters
//img1 : an image
//img2 : an image
//img3 : an image
//img4 : an image
//img5 : an image
//img6 : an image
//
//Description
//The images pass through a stiching pipeline before the final panorama is formed.
//Features are extracted from each image and matching is done on two consecutive images to ensure the continuity in images.
//After this camera parameters are estimated which is required to do particular type of warping.
//After warping is done exposure is compensated in all images so as to get a uniform exposure throughout the panaroma.
//Seam estimation is done next to get the exact portions of images to be blended.
//Finally, the images are blended to form the panorama.
//
//Examples
//stacksize('max');
//img1=imread('images/campus_017.jpg');
//img2=imread('images/campus_016.jpg');
//img3=imread('images/campus_015.jpg');
//img4=imread('images/campus_014.jpg');
//img5=imread('images/campus_013.jpg');
//img6=imread('images/campus_012.jpg');
//out=pana(img1,img2,img3,img4,img5,img6);
//
//Examples
//stacksize('max');
//a=imread('images/s1.jpg');
//b=imread('images/s2.jpg');
//c=imread('images/s3.jpg');
//y=pana(a,b,c);
//Authors
// M Avinash Reddy , Manoj Sree Harsha , Ebey Abraham
[lhs rhs]=argn(0)
if lhs>1
error(msprintf(" Too many output arguments"))
end
if rhs>6
error(msprintf(" Too many input arguments,maximum number of arguments is 6"))
end
if rhs<2
error(msprintf("the function needs atleast 2 arguments"))
end
image=mattolist(img1)
for i=1:rhs-1
varargin(i)=mattolist(varargin(i))
end
if rhs==2
res=raw_panorama(image,varargin(1))
elseif rhs==3
res=raw_panorama(image,varargin(1),varargin(2))
elseif rhs==4
res=raw_panorama(image,varargin(1),varargin(2),varargin(3))
elseif rhs==5
res=raw_panorama(image,varargin(1),varargin(2),varargin(3),varargin(4))
elseif rhs==6
res=raw_panorama(image,varargin(1),varargin(2),varargin(3),varargin(4),varargin(5))
end
channel=size(res)
for i = 1: channel
out(:,:,i) = (res(i))
end
out=double(out)
endfunction
|
797178243caa920f53129349f70eca8a2894c650 | 7411fe89ce8ad5b919ddca183c5b47c8b31010cd | /macros/pythonEvaluate.sci | 68f17049e35ebe42b4331492a2050e03825d3dfc | [] | no_license | sengupta/Scilab-Python | ce07c1f272d0eabeeef77ac5d8bef2e261214c6b | 7141c5ef93880138619e91774fc71af9a7913e20 | refs/heads/master | 2021-01-25T04:52:57.198542 | 2011-05-05T19:32:31 | 2011-05-05T19:32:31 | 1,707,951 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 111 | sci | pythonEvaluate.sci | function pythonEvaluate(expression)
call("py_evaluate_expression",expression, 1, 'c', "out")
endfunction
|
6f2f5f0a575713a3c60d148ce7e04a46a2f6b1a2 | d5bd4b5a4760efd0a3d16d7c39c7b495c5874d28 | /AnalogDigtitalCommunication/HammingDistance.sci | 08ffb95b3e58843989e73f1db2a8c1765256ac53 | [] | no_license | APU-PhasedArrayBeamForming/Array-Based-Beam-Forming | 27a61bc3cf93e544364121e508dc4d140b7e0cb1 | 4cde46b7aa3f4e995297ac72fc5038fa0cdf083d | refs/heads/master | 2021-01-25T08:01:17.468481 | 2017-06-15T18:47:40 | 2017-06-15T18:47:40 | 93,699,808 | 1 | 1 | null | 2017-06-15T18:47:40 | 2017-06-08T02:36:01 | Scilab | UTF-8 | Scilab | false | false | 680 | sci | HammingDistance.sci | function[Hamming_Distance] = HammingDistance(code1,code2)
//Caption: Hamming Weight and Hamming Distance
//H(7,4)
//Code Word Length = 7, Message Word length = 4, Parity bits =3
//Getting Code Words
function [value] = xor(A,B)
if(A==B)
value = 0;
else
value = 1;
end
endfunction
//code1 = input('Enter the first code word');
//code2 = input('Enter the second code word');
Hamming_Distance = 0;
for i = 1:length(code1)
Hamming_Distance =Hamming_Distance+xor(code1(i),code2(i));
end
disp(Hamming_Distance,'Hamming Distance')
endfunction
//Result
//Enter the first code word [0,1,1,1,0,0,1]
//Enter the second code word[1,1,0,0,1,0,1]
//Hamming Distance 4.
|
bc7fdb88b19c685c2113a28d1ec326de5acda4c9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2201/CH1/EX1.16/ex1_16.sce | 2edbfd232820285a99dab433ea444c97e9fd568f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 276 | sce | ex1_16.sce | // Exa 1.16
clc;
clear;
close;
// Given data
M = 55.85;
a = 2.9;// in Å
a = a * 10^-8;// in cm
Rho = 7.87;// in gm/cc
N_A = 6.023*10^23;
n = (Rho*N_A*((a)^3))/M;// atom per unit
disp("A lattice having "+string(round(n))+" atom per unit cell is a BCC structure");
|
228bff8e0a01c7ba7eb3813ce897d7c8f5794b94 | 337f9a673603d008cbd1b3cef9500ae806fef452 | /artigo/mamografias.sce | da73712dcc09bf98b3c5bc2360d5e4b6c7f344a8 | [] | no_license | Gervaes/PDI | 6608e3ce8dcde1373512429039e3e51de32de2d1 | 912a9f1b6e40facdbef75d8c298a52127f5403e7 | refs/heads/master | 2021-04-12T04:31:13.241166 | 2018-06-21T14:01:39 | 2018-06-21T14:01:39 | 125,973,311 | 0 | 2 | null | 2018-03-29T19:52:56 | 2018-03-20T06:48:59 | Scilab | UTF-8 | Scilab | false | false | 7,196 | sce | mamografias.sce | //Leitura da imagem
mammogram = imread('D:\github\PDI\artigo\mammogram.png');
mammogram = rgb2gray(mammogram);
//image size
[rows,columns] = size(mammogram);
w = 3; //window
u = 0.3; //k
R = 1;
//Binarization of the input image
function [value]=Binarization(i,j)
if mammogram(i,j)<= TH(i,j) then
value = 0;
else
value = 255;
end
endfunction
//for each pixel T(i,j) = m(i,j)[1+k{(s(i,j)/R)-1}]
function [value]=Threshold(i,j)
value = double(LM(i,j)*(1+(u*(double(SD(i,j)/(R))-1))));
endfunction
//local mean m(i,j) = Is(i+w/2,j+w/2) + Is(i-w/2,j-w/2)- Is(i+w/2,j-w/2) - Is(i-w/2,j+w/2)
function [value]=LocalMeanx(i,j)
value = 0;
value = double(value);
if i > 1 then
end
m(i,j) = II(i+w/2,j+w/2) + II(i-w/2,j-w/2)- II(i+w/2,j-w/2) - II(i-w/2,j+w/2);
endfunction
function [value]=LocalMean(i,j)
value = 0;
count = 0;
value = double(value);
for k=ceil(i-w/2):i+w/2
for l=ceil(j-w/2):j+w/2
if k >=1 & k < rows+1 & l >= 1 & l < columns+1 then
value = value + double(mammogram(k,l));
count = count + 1;
end
end
end
value = double(value/(count));
endfunction
//standard deviation s²(i,j) = 1/w² EE I²(k,l) - m²(i,j)
// ^^(Somatórios com k=i-w/2 até i+w/2
// l=j-w/2 até j+w/2 )
function [value]=StardardDeviation(i,j)
value = 0;
count = 0;
value = double(value);
for k=ceil(i-w/2):i+w/2
for l=ceil(j-w/2):j+w/2
if k >= 1 & l >= 1 & k < rows+1 & l < columns+1 then
value = value + double(double(mammogram(k,l))*double(mammogram(k,l)));
count = count + 1;
end
end
end
value = double(double(value)/double(count));
value = value - double(floor(LM(i,j))*floor(LM(i,j)));
if(value > 0) then sqrt(double(value));
else value = 0; end
endfunction
//Integral image(i,j) = EE I(k,l)
// ^^(Somatórios de k=0 até i e l=0 até j)
function [value]=IntegralImage(i,j)
value = 0;
value = double(value);
value = double(value + double(mammogram(k,l)));
if k > 1 & l > 1 then
value = double(value - double(II(k-1,l-1)));
end
if k > 1 then
value = double(value + double(II(k-1,l)));
end
if l > 1 then
value = double(value + double(II(k,l-1)));
end
value = double(value);
endfunction
//mammogram = [100,90,80
// 100,90,70
// 90,80,70]
//Displaying Input image
mprintf('\nInputImage:\n');
for k=1:rows
for l=1:columns
mprintf('%7i ',mammogram(k,l));
end
//mprintf('(%i,%i)\n',k,l);
mprintf('\n');
end
//Calculating IntegralImage for the whole image and putting it on the II matrix
mprintf('\nIntegralImage:\n');
for k=1:rows
for l=1:columns
II(k,l) = IntegralImage(k,l);
mprintf('%7i ',II(k,l));
end
mprintf('\n');
end
//Calculating LocalMean for the whole image with window size 3 and putting it on the LM matrix
mprintf('\nLocalMean:\n');
for k=1:rows
for l=1:columns
LM(k,l) = round(LocalMean(k,l));
mprintf('%10.2f ',LM(k,l));
end
mprintf('\n');
end
//Calculating StandardDeviation for the whole image
mprintf('\nStandartDeviation:\n');
for k=1:rows
for l=1:columns
SD(k,l) = double(round(StardardDeviation(k,l)));
mprintf('%10.2f ',SD(k,l));
end
mprintf('\n');
end
//Searching for the biggest value from SD matrix
for k=1:rows
for l=1:columns
if SD(k,l) >= R then
R = SD(k,l);
end
end
end
mprintf('\nR = %10.2f\n',R);
//Calculating Threshold for the whole image
mprintf('\nThreshold:\n');
for k=1:rows
for l=1:columns
TH(k,l) = double(round(Threshold(k,l)));
mprintf('%10.2f ',TH(k,l));
end
mprintf('\n');
end
//Binarization
mprintf('\nBinarization:\n');
for k=1:rows
for l=1:columns
B(k,l) = Binarization(k,l);
mprintf('%10i ',B(k,l));
end
mprintf('\n');
end
//figure;
//imshow(mammogram);
//figure;
//imshow(B);
//inicialização do processo de suavização de contorno usando morfologia matemática (operação fechamento: dilatação e depois erosão)
x = rows+6;
y = columns+6;
//criação de matriz extendida com borda de 3px, para aplicar o elemento estruturante
for i=1:x
for j=1:y
imgExt(i,j) = 0;
end
end
for i=4:(x-3)
for j=4:(y-3)
imgExt(i,j) = B(i-3,j-3);
end
end
//se a origem do elemento estruturante pertencer ao objeto, realiza a união entre objeto e elemento (dilatação)
for i=1:x
for j=1:y
imgExt2(i,j) = 0;
end
end
for k=4:(x-3)
for l=4:(y-3)
if imgExt(k,l) == 255 then
for m=(k-3):(k+3)
for n=(l-3):(l+3)
imgExt2(m,n) = 255;
end
end
end
end
end
//Dilatada
//figure;
//imshow(imgExt2);
count = 0;
//erosão
for k=4:(x-3)
for l=4:(y-3)
if imgExt2(k,l) == 255 then
for m=(k-3):(k+3)
for n=(l-3):(l+3)
if imgExt2(m,n) == 255 then
count = count + 1;
end
end
end
end
if count == 49 then
for m=(k-3):(k+3)
for n=(l-3):(l+3)
if imgExt2(m,n) == imgExt2(k,l) then
imgExt3(m,n) = 255;
else
imgExt3(m,n) = 0;
end
end
end
else
for m=(k-3):(k+3)
for n=(l-3):(l+3)
imgExt3(m,n) = 0;
end
end
end
count = 0;
end
end
//Erodida
//figure;
//imshow(imgExt3);
//------------------------Processo de extração de borda---------------------------
for i=1:x
for j=1:y
imgExt4(i,j) = 0;
end
end
count = 0;
//processo por dilatação ((A+B)-A)
for k=2:(x-1)
for l=2:(y-1)
if imgExt3(k,l) == 255 then
for m=(k-1):(k+1)
for n=(l-1):(l+1)
imgExt4(m,n) = 255;
end
end
end
end
end
//figure;
//imshow(imgExt4);
for i=1:x
for j=1:y
contorno(i,j) = imgExt4(i,j) - imgExt3(i,j);
end
end
figure;
imshow(contorno);
//cálculo de DFT
count = 1;
printf("\nVetor de DFT: ");
//calcula os coeficientes para toda a matriz
dftVec = fft(contorno);
//cada ponto com valor 1 recebe seu valor correspondente em um vetor
for i=1:x
for j=1:y
if contorno(i,j) == 255 then
v(count) = dftVec(i,j);
printf("%d ", v(count));
count = count + 1;
end
end
end
plot(v);
//for i=1:count
// nComplex(i) = 0;
//end
//
//count = 0;
//
////calculando vetor de números complexos
//for i=1:x
// for k=1:y
// if contorno(i,j) == 255 then
// nComplex(count) = complex(i,j);
// count = count + 1;
// end
// end
//end
//
//dftVec = fft(contorno);
|
b9c95f8f5aaf50636780feeddbb75bb6a53a2510 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2855/CH2/EX2.2/Ex2_2.sce | 56a0f3d8b079c214e638d3e4ec4a1c4968253909 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 882 | sce | Ex2_2.sce | //Chapter 2
//page no 45
//given
clc;
clear ;
//Given for silicon for temp 0-400K
Eg0_Si=1.17; //in eV
A=4.73*10^-4; //in eV/K
B=636;
for i=1:8
T=50*i; //degree/Kelvin
Eg_Si=Eg0_Si-(A*T^2)/(B+T);
printf("\n Band gap energy of silicon at %.0f K is %.3f eV ",T,Eg_Si);//result
end
//Given for Germanium for temp 0-400K
disp("");
Eg0_Ge=0.7437; //in eV
A_Ge=4.774*10^-4; //in eV/K
B_Ge=235;
for i=1:8
T=50*i; //degree/Kelvin
Eg_Ge=Eg0_Ge-(A_Ge*T^2)/(B_Ge+T);
printf("\n Band gap energy of germanium at %.0f K is %.3f eV ",T,Eg_Ge);//result
end
//Given for GaAs for temp 0-400K
disp("");
Eg0_Ga=1.519; //in eV
A_Ga=5.405*10^-4; //in eV/K
B_Ga=204;
for i=1:8
T=50*i; //degree/Kelvin
Eg_Ga=Eg0_Ga-(A_Ga*T^2)/(B_Ga+T);
printf("\n Band gap energy of GaAs at %.0f K is %.3f eV ",T,Eg_Ga);//result
end
|
84f38cc4324c54fb099dc581d6d4c92013d41790 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.13_12.tst | 9e225d3611bb015a412d36e06e12cb190c28b92c | [] | 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,906 | tst | bow.13_12.tst | 13 12:0.3333333333333333 38:1.0 55:0.2 61:0.5 155:0.5 618:1.0
13 32:0.5 60:0.25 61:0.5 240:0.5
13 18:0.5 31:0.3333333333333333 35:0.09090909090909091 47:0.1111111111111111 49:0.2857142857142857 91:0.16666666666666666 112:0.09090909090909091 114:1.0 122:1.0 129:0.25 238:1.0 356:1.0 516:1.0
13 12:0.3333333333333333 18:0.5 61:0.5 84:0.3333333333333333 98:0.14285714285714285 389:1.0 454:1.0 480:1.0 632:1.0
13 840:1.0
13 3:0.5 5:0.01818181818181818 68:1.0 130:0.16666666666666666 274:1.0 575:1.0
13 3:0.5 5:0.01818181818181818 10:1.0 23:1.0 28:0.16666666666666666 31:0.3333333333333333 38:1.0 89:1.0 91:0.16666666666666666 192:1.0 289:0.06666666666666667 422:1.0 455:1.0 458:1.0 553:0.5 650:1.0 888:1.0
13 5:0.01818181818181818 28:0.16666666666666666 56:0.07142857142857142 122:1.0 123:1.0 246:0.3333333333333333 296:1.0 572:1.0 712:1.0
13 21:0.3333333333333333 29:1.0 296:1.0
13 5:0.01818181818181818 12:0.6666666666666666 28:0.08333333333333333 31:0.3333333333333333 61:0.5 98:0.14285714285714285 105:1.0 122:1.0 130:0.16666666666666666 143:1.0 196:1.0 251:1.0
13 5:0.01818181818181818 9:1.0 21:0.3333333333333333 31:0.3333333333333333 91:0.16666666666666666 192:1.0 502:1.0 615:1.0 688:1.0
13 5:0.01818181818181818 18:1.0 28:0.25 56:0.14285714285714285 60:0.25 98:0.14285714285714285 113:1.0 116:0.5 289:0.06666666666666667 623:1.0 646:1.0 673:0.5 679:1.0 790:1.0 927:1.0 1086:1.0
13 12:0.3333333333333333 31:0.3333333333333333 60:0.25 61:0.5 116:0.25 196:1.0 240:0.5
13 5:0.03636363636363636 12:0.3333333333333333 18:0.5 23:1.0 28:0.3333333333333333 31:0.3333333333333333 56:0.07142857142857142 71:1.0 116:0.25 143:1.0 236:1.0 246:0.3333333333333333 468:1.0 493:1.0 494:0.5 495:0.5 749:1.0 790:1.0 840:1.0 1115:1.0
13 5:0.03636363636363636 9:1.0 12:0.6666666666666666 23:1.0 28:0.08333333333333333 31:0.3333333333333333 116:0.25 196:1.0 289:0.06666666666666667 910:1.0 966:1.0 998:1.0 1037:1.0 1060:1.0 1115:1.0 1194:1.0
13 3:0.5 9:1.0 12:0.3333333333333333 18:0.5 28:0.08333333333333333 35:0.045454545454545456 68:1.0 85:1.0 615:1.0 768:1.0 783:1.0 789:0.5 903:1.0 994:0.5 1223:1.0
13 17:0.5 18:1.5 28:0.08333333333333333 29:1.0 31:1.0 32:0.5 56:0.07142857142857142 140:0.5 246:0.3333333333333333 289:0.26666666666666666 553:0.5 1014:1.0 1030:1.0
13 2:1.0 9:2.0 18:0.5 69:0.25 91:0.16666666666666666 289:0.06666666666666667 294:2.0 296:1.0 520:1.0 693:1.0 788:1.0 789:0.5 917:1.0
13 12:0.3333333333333333 23:1.0 28:0.08333333333333333 56:0.07142857142857142 289:0.06666666666666667 670:1.0 966:1.0
13 5:0.03636363636363636 8:0.3333333333333333 9:1.0 12:0.3333333333333333 32:0.5 236:1.0 389:1.0 618:1.0 930:0.5 951:0.3333333333333333 1037:1.0
13 5:0.03636363636363636 17:0.5 18:0.5 21:0.3333333333333333 23:1.0 26:1.0 28:0.08333333333333333 31:0.6666666666666666 38:3.0 71:1.0 85:1.0 98:0.14285714285714285 192:1.0 207:1.0 253:1.0 289:0.06666666666666667 296:1.0 299:1.0 330:1.0 492:1.0 559:1.0 782:1.0 783:1.0 917:1.0 997:1.0 1016:0.5 1019:1.0 1085:1.0 1086:1.0 1087:1.0 1088:1.0
13 18:1.5 32:0.5 38:1.0 114:1.0 289:0.06666666666666667 788:1.0 1055:1.0 1265:1.0
13 3:0.5 17:0.5 38:1.0 374:1.0 596:1.0 1044:1.0 1208:1.0
13 5:0.03636363636363636 12:0.3333333333333333 23:1.0 25:1.0 31:0.6666666666666666 47:0.1111111111111111 61:0.5 69:0.25 70:1.0 75:1.0 91:0.16666666666666666 112:0.09090909090909091 113:1.0 116:0.25 124:0.5 177:0.25 192:1.0 249:1.0 274:1.0 279:0.5 289:0.06666666666666667 296:1.0 442:1.0 484:1.0 1001:1.0
13 5:0.01818181818181818 21:0.3333333333333333 39:1.0 682:1.0
13 5:0.01818181818181818 81:1.0 91:0.16666666666666666 129:0.25
13 5:0.01818181818181818
13 5:0.01818181818181818 48:1.0 113:1.0 289:0.06666666666666667 544:1.0 1060:1.0
13 5:0.03636363636363636 84:0.3333333333333333 114:1.0 442:1.0 476:1.0 757:1.0
13 5:0.03636363636363636 17:0.5 18:0.5 23:1.0 29:2.0 35:0.045454545454545456 38:1.0 40:0.08333333333333333 47:0.1111111111111111 84:0.3333333333333333 91:0.16666666666666666 105:1.0 196:1.0 294:1.0 442:1.0 872:0.3333333333333333 1000:1.0 1112:1.0
13 21:0.3333333333333333 25:1.0 71:1.0 124:0.5 289:0.06666666666666667 635:1.0
13 12:0.3333333333333333 61:0.5 89:1.0 103:1.0 130:0.16666666666666666 296:1.0 803:1.0
13 296:1.0
13 9:1.0 12:0.3333333333333333 18:0.5 31:0.3333333333333333 84:0.3333333333333333 172:1.0 188:1.0 289:0.06666666666666667 296:1.0 299:1.0 505:1.0 583:1.0 881:1.0 1099:1.0
13 8:0.3333333333333333 21:0.6666666666666666 172:1.0 186:1.0 794:0.3333333333333333
13 157:1.0 203:1.0 289:0.06666666666666667 296:1.0 794:0.3333333333333333 1296:1.0
13 794:0.3333333333333333
13 12:0.3333333333333333 18:0.5 22:1.0 28:0.08333333333333333 29:1.0 69:0.25 392:1.0 861:1.0
13 8:0.3333333333333333 9:1.0 10:1.0 18:0.5 26:1.0 28:0.08333333333333333 31:0.3333333333333333 35:0.045454545454545456 49:0.14285714285714285 71:1.0 84:0.6666666666666666 112:0.09090909090909091 113:1.0 116:0.25 122:1.0 168:0.16666666666666666 351:1.0 544:1.0 764:1.0 765:1.0 994:0.5
|
65382c09ddf8f33ec08115ecf6476b22b7324a5b | 449d555969bfd7befe906877abab098c6e63a0e8 | /293/CH2/EX2.7/eg2_7.sce | 3f437fe3a726a5644e9a47cae56577e8623c19cf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 463 | sce | eg2_7.sce | //a
Ri = 1;
Rf = 39;
A = 10^5; //open loop gain of the op-amp
G = A/(1 + (A*Ri/(Ri+Rf))); //actual voltage gain of the circuit
disp("a")
disp(G,"actual voltage of the circuit =")
//b
G1 = 1 + (Rf/Ri); // voltage gain of the circuit with infinite open loop gain
disp("b")
disp(G1,"for ideal case the voltage gain =")
//c
er = ((G1 - G)/G)*100; //percent error
disp("c")
disp(er,"percent error of the ideal value compared to the actual value=") |
375a276631f74afb180d63b3044d1a0106410e6b | 0520cf8da54150eb7ece584eb9c62454047c91c4 | /SCILAB EXPT 3.sce | d8d7f590a167f60e7e3c6fd65799e0a7d379ebe3 | [] | no_license | manavmody/SIGNALS-AND-SYSTEM-SCILAB-EXPTS | c918f7875c4eac40e0a31731fbf1620ec53f70a5 | 3bfff13e0f1312c9d6af0746c544b64c9f992d48 | refs/heads/main | 2023-01-20T04:28:44.898632 | 2020-11-25T13:34:09 | 2020-11-25T13:34:09 | 315,948,728 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 655 | sce | SCILAB EXPT 3.sce | //SS SCILAB EXPT 3
clc;
t=0:0.01:2;
x=sin(2*%pi*5*t);
plot(t,x);
figure;
n=0:1:100
fs1=50;
x=cos((2*%pi*n)/fs1);
plot2d3(n,x);
figure;
n=0:1:100
fs1=50;
fm=5;
A=1;
x=A*cos((2*%pi*fm*(n/fs1)));
plot2d3(n,x);
figure;
n=0:3.5:100
fs1=50;
fm=25;
A=1;
x=A*cos((2*%pi*n*fm)/fs1);
plot2d3(n,x);
figure;
n=0:1.5:100
fs1=50;
fm=70;
A=1;
x=A*cos((2*%pi*n*fm)/fs1);
plot2d3(n,x);
figure;
n=0:2:100
fs1=0.002;
x=cos((2*%pi*0.02*n)/fs1);
plot2d3(n,x);
figure;
n=0:1.05:100
fs1=0.04;
x=cos((2*%pi*0.02*n)/fs1);
plot2d3(n,x);
figure;
n=0:2.5:100
fs1=0.4;
x=cos((2*%pi*0.02*n)/fs1);
plot2d3(n,x);
|
3a405aae6459910bd86ccc0ae86884c8ab26dd74 | f2f1e9bc697f523bb2325e7a9877a05d96e883be | /public/javascripts/canvas-script.tst | c8667cd1ff1bd8d80c1536b1e36b92f4ab4ad945 | [] | no_license | careduri/dirty-fish | c83f78f56f269b2f3ea1f2e67ec54c9e96b31494 | 0a4e88236bca6e9c5287d8eecf8cde5ebc048213 | refs/heads/master | 2020-12-24T17:17:22.198569 | 2014-10-21T02:16:24 | 2014-10-21T02:16:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,970 | tst | canvas-script.tst |
var globalX = 10;
var globalY = 40;
function changeXval(valX){
globalX+=valX;
}
function changeYval(valY){
globalY += valY;
globalX = 10;
}
function checkCanvasWidth(boundaryRectangle){
if (boundaryRectangle > document.getElementById("myCanvas").width )
{
changeYval(90);
}
}
function canvasOn(){
window.diagram = new Diagram();
}
function Diagram (titulo){
this.entities = []; //new Array()
this.addEntity = function(entity)
{
this.entities.push(entity);
}
this.findEntity= function ( loockingEntity){
for(var i=0;i<window.diagram.entities.length;i++){
if (loockingEntity.trim() == window.diagram.entities[i].name){
return i;
}
}
return null;
}
}
function drawCanvas(){
var c = document.getElementById("myCanvas");
//alert (c.width)
var ctx = c.getContext("2d");
//Clearing the Canvas
c.width = c.width;
for(var i=0;i<window.diagram.entities.length;i++){
window.diagram.entities[i].draw(ctx);
}
}
function commitButton(){
var name =(document.getElementById("commandLine").value).trim();
var command1 = "create entity ";
var command2 = "create attribute ";
var command3 = "create operation ";
var startIndex = name.indexOf(command1);
var nameSplit = [];
/* nameSplit = name.split (' ');
console.log(nameSplit);
*/
if (startIndex==0) {
name = name.substring(startIndex + command1.length);
window.diagram.addEntity(new Entity(name,globalX,globalY));
globalX += 300;
drawCanvas();
};
if (name.indexOf(command2)==0){
var splitName= [];
splitName = name.substring(startIndex + command2.length).split(':');
var entityPosition = window.diagram.findEntity(splitName[0])
if (entityPosition == null){
}
else
{
window.diagram.entities[entityPosition].addAttribute(splitName[1],splitName[2]);
drawCanvas();
};
}
if (name.indexOf(command3)==0){
var splitName= [];
splitName = name.substring(startIndex + command3.length).split(':');
var entityPosition = window.diagram.findEntity(splitName[0])
if (entityPosition == null){
}
else
{
window.diagram.entities[entityPosition].addOperation(splitName[1],splitName[2]);
drawCanvas();
};
}
}
var Entity=function(name, x, y){
var self=this;
this.name = name;
this.attributes = [];
this.operation = [];
function findEntityWidth(){
if((name.length * 10)> 90){
return name.length * 10;
}
else
{
return 90;
} ;
}
this.addAttribute= function (attName,attType){
//if doesn't find attribute with same name, then add!
if (attributeDoesntExist(attName)){
this.attributes.push(new Attribute(attName,attType));
}else {
console.log("Already exist");
}
}
this.addOperation= function (opName,opType){
//if doesn't find attribute with same name, then add!
if (operationDoesntExist(opName)){
this.operation.push(new Operation(opName,opType));
}else {
console.log("Already exist");
}
}
var attributeDoesntExist=function(attName){
for (var i=0;i<self.attributes.length;i++){
if(self.attributes[i].attName.trim()==attName.trim){
return false;
}
}
return true;
}
var operationDoesntExist=function(opName){
for (var i=0;i<self.operation.length;i++){
if(self.operation[i].opName.trim()==opName.trim){
return false;
}
}
return true;
}
this.draw=function(ctx){
ctx.strokeStyle="black";
var w = findEntityWidth();
ctx.font = "12px Arial";
ctx.fillText(name,x+20,y+20);
var heightOfRect = 45
for (var i=0;i<self.attributes.length;i++ ){
var nameAtt = self.attributes[i].attName +
':' + self.attributes[i].attType;
ctx.fillText(nameAtt,x+20,y+ heightOfRect);
heightOfRect+=20
if (w < nameAtt.length*10){
w=nameAtt.length*10;
};
}
for (var i=0;i<self.operation.length;i++ ){
var nameOp = self.operation[i].opName +
':' + self.operation[i].opType;
ctx.fillText(nameOp,x+20,y+ heightOfRect);
heightOfRect+=20
if (w < nameOp.length*10){
w=nameOp.length*10;
};
}
ctx.moveTo(x,y+30);
ctx.lineTo(x+w,y+30);
ctx.stroke();
ctx.strokeRect(x,y,w, heightOfRect + 10);
};
this.writeAttribute=function(){
};
};
// var Attribute = function(attName, attType){
// this.attName = attName;
// this.attType = attType;
// //this.visibility
// }
var Operation = function(opName, opType){
this.opName = opName;
this.opType = opType;
//this.visibility
}
/* this.addOperation = function(opName, opType) {
var operationDoesntExist = function(opName) {
for (var i = 0; i < self.operation.length; i++) {
if (self.operation[i].opName.trim() == opName.trim) {
return false;
}
}
return true;
}
//if doesn't find attribute with same name, then add!
if (operationDoesntExist(opName)) {
this.operation.push(new Operation(opName, opType));
} else {
console.log("Already exist");
}
}*/ |
3c1f6435732426c9658396205bd5beb6ee29dc5f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1580/CH3/EX3.11/Ch03Ex11.sce | 7e73fe5f06cafb0506436db5c407e9a28373d2ab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,059 | sce | Ch03Ex11.sce | // Scilab Code Ex3.11 : Ratio of vacancies in metal to create Frenkel defect:Page-3.18 (2004)
N = 1; // For simplicity assume total number of metal ions to be unity
Ni = 1; // For simplicity assume total number of metal ions to be unity
k = 8.625e-5; // Boltzmann constant, J/K
T1 = 273+20; // First temperature for metal, K
T2 = 300+273; // Second temperature for metal, K
E_v = 1.4; // Average energy required to create a vacancy in metal, eV
n_293 = N*exp(-E_v/(2*k*T1)); // Number of vacancies at 500 K
n_573 = N*exp(-E_v/(2*k*T2)); // Number of vacancies at 500 K
n_ratio1 = n_573/n_293; // Ratio of vacancies in metal
n_ratio2 = n_293/n_573; // Ratio of vacancies in metal
printf("\nThe ratio 1 of vacancies in metal to create Frenkel defect = %5.3e", n_ratio1);
printf("\nThe ratio 2 of vacancies in metal to create Frenkel defect = %5.3e", n_ratio2);
// Result
// The ratio 1 of vacancies in metal to create Frenkel defect = 7.558e+05
// The ratio 2 of vacancies in metal to create Frenkel defect = 1.323e-06
|
70e3f7347707af583a0c96f93e4e1d86684d3f89 | 449d555969bfd7befe906877abab098c6e63a0e8 | /842/CH10/EX10.11/Example10_11.sce | 18132913f3d4fbe910823d84c238460ced8453dd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 589 | sce | Example10_11.sce | //clear//
//Example10.11:Inverse Z Transform:ROC |z|<1/4
z = %z;
syms n z1;//To find out Inverse z transform z must be linear z = z1
X =z*(3*z-(5/6))/((z-(1/4))*(z-(1/3)))
X1 = denom(X);
zp = roots(X1);
X1 = z1*(3*z1-(5/6))/((z1-(1/4))*(z1-(1/3)))
F1 = X1*(z1^(n-1))*(z1-zp(1));
F2 = X1*(z1^(n-1))*(z1-zp(2));
h1 = limit(F1,z1,zp(1));
disp(h1*'u(-n-1)','h1[n]=')
h2 = limit(F2,z1,zp(2));
disp((h2)*'u(-n-1)','h2[n]=')
disp(-(h1)*'u(-n-1)'-(h2)*'u(-n-1)','h[n]=')
////Result
// h[n]= -u(-n-1)/4^n-2*u(-n-1)/3^n
//Equivalent to h[n] =-(1/4)^n.u[-n-1]-2*(1/3)^n.u[-n-1]
|
0d149caf863b220008be99996e3ed05c66fe7b97 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2825/CH3/EX3.7/Ex3_7.sce | 6ea695440f3e5f067dec1e19361aaa640fc2d3c2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 582 | sce | Ex3_7.sce | //Ex3_7 Pg-184
clc
disp("We know that (I0)*T2 = (I0)*T1*(2)^((T2-T1/10))")
disp("Substituting the given values,we have ")
disp("(40*10^(-6)) = (25*10^(-6)*(2)^x) where x=(T2-T1)/10")
disp("(2)^x = 1.6")
disp("Taking log on both sides,one obtains")
disp(" x*log(2) = log(1.6)")
disp("or x = log(1.6)/log(2)")
x=log(1.6)/log(2)
disp(" Now x = (T2-T1)/10 or 0.678 = (T2-25)/10")
T1=25 //temperature T1
T2=x*10+T1 //temperature T2
diff_temp=T2-T1 //change in temperature
printf("\n So the change in temperature = %.2f degree celsius",diff_temp)
|
b2dd79f03e1c968ad1375ea38d614dc215485478 | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/SCHI/PQ97FDA/ATWM1_Working_Memory_MRI_PQ97FDA/ATWM1_Working_Memory_MRI_Nonsalient_Uncued_Run1.sce | 60d723c67ac913521a0f0be594cb52abf8dff638 | [] | 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 | 12,282 | sce | ATWM1_Working_Memory_MRI_Nonsalient_Uncued_Run1.sce | # ATWM1 MRI Experiment
scenario = "ATWM1_Working_Memory_MRI_nonsalient_uncued_run1";
scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
#scenario_type = trials;
scan_period = 2000; # TR
pulses_per_scan = 1;
pulse_code = 1;
#pulse_width=6;
default_monitor_sounds = false;
active_buttons = 2;
response_matching = simple_matching;
button_codes = 10, 20;
default_font_size = 28;
default_font = "Arial";
default_background_color = 0 ,0 ,0 ;
#write_codes=true; # for MEG only
begin;
#Picture definitions
box { height = 300; width = 300; color = 0, 0, 0;} frame1;
box { height = 290; width = 290; color = 255, 255, 255;} frame2;
box { height = 30; width = 4; color = 0, 0, 0;} fix1;
box { height = 4; width = 30; color = 0, 0, 0;} fix2;
box { height = 30; width = 4; color = 255, 0, 0;} fix3;
box { height = 4; width = 30; color = 255, 0, 0;} fix4;
box { height = 290; width = 290; color = 128, 128, 128;} background;
TEMPLATE "StimuliDeclaration.tem" {};
trial {
sound sound_incorrect;
time = 0;
duration = 1;
} wrong;
trial {
sound sound_correct;
time = 0;
duration = 1;
} right;
trial {
sound sound_no_response;
time = 0;
duration = 1;
} miss;
# baselinePre (at the beginning of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
}default;
time = 0;
duration = 9400;
mri_pulse = 1;
code = "BaselinePre";
#port_code = 1;
};
TEMPLATE "ATWM1_Working_Memory_MRI.tem" {
trigger_volume_encoding trigger_volume_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4;
6 11 292 292 399 125 9543 2992 14342 fixation_cross gabor_045 gabor_098 gabor_083 gabor_128 gabor_045_alt gabor_098 gabor_083_alt gabor_128 "1_1_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_045_098_083_128_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_128_framed blank blank blank blank fixation_cross_white "1_1_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_128_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
20 26 292 292 399 125 11543 2992 14342 fixation_cross gabor_141 gabor_057 gabor_120 gabor_036 gabor_141_alt gabor_057 gabor_120_alt gabor_036 "1_2_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_141_057_120_036_target_position_2_4_retrieval_position_2" gabor_circ gabor_104_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_2_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_104_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
35 40 292 292 399 125 9543 2992 12342 fixation_cross gabor_091 gabor_058 gabor_041 gabor_128 gabor_091 gabor_058_alt gabor_041_alt gabor_128 "1_3_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_12400_gabor_patch_orientation_091_058_041_128_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_175_framed blank blank blank blank fixation_cross_white "1_3_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_175_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
48 53 292 292 399 125 9543 2992 12342 fixation_cross gabor_024 gabor_086 gabor_157 gabor_042 gabor_024_alt gabor_086 gabor_157_alt gabor_042 "1_4_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_9601_3000_12400_gabor_patch_orientation_024_086_157_042_target_position_2_4_retrieval_position_2" gabor_circ gabor_086_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_4_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_086_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
61 66 292 292 399 125 9543 2992 14342 fixation_cross gabor_064 gabor_086 gabor_127 gabor_103 gabor_064_alt gabor_086_alt gabor_127 gabor_103 "1_5_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_064_086_127_103_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_153_framed blank blank blank blank fixation_cross_white "1_5_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_153_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
75 80 292 292 399 125 9543 2992 12342 fixation_cross gabor_153 gabor_079 gabor_134 gabor_002 gabor_153_alt gabor_079_alt gabor_134 gabor_002 "1_6_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_9601_3000_12400_gabor_patch_orientation_153_079_134_002_target_position_3_4_retrieval_position_1" gabor_153_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_6_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_153_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
88 93 292 292 399 125 9543 2992 14342 fixation_cross gabor_086 gabor_028 gabor_139 gabor_115 gabor_086_alt gabor_028_alt gabor_139 gabor_115 "1_7_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_086_028_139_115_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_139_framed gabor_circ blank blank blank blank fixation_cross_white "1_7_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_139_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
102 108 292 292 399 125 11543 2992 12342 fixation_cross gabor_131 gabor_055 gabor_160 gabor_176 gabor_131 gabor_055_alt gabor_160 gabor_176_alt "1_8_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_11601_3000_12400_gabor_patch_orientation_131_055_160_176_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_022_framed gabor_circ blank blank blank blank fixation_cross_white "1_8_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_022_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
116 122 292 292 399 125 11543 2992 14342 fixation_cross gabor_094 gabor_065 gabor_005 gabor_150 gabor_094_alt gabor_065 gabor_005_alt gabor_150 "1_9_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_11601_3000_14400_gabor_patch_orientation_094_065_005_150_target_position_2_4_retrieval_position_2" gabor_circ gabor_065_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_9_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_065_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
131 137 292 292 399 125 11543 2992 12342 fixation_cross gabor_069 gabor_102 gabor_179 gabor_014 gabor_069_alt gabor_102 gabor_179 gabor_014_alt "1_10_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_11601_3000_12400_gabor_patch_orientation_069_102_179_014_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_041_framed gabor_circ blank blank blank blank fixation_cross_white "1_10_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_041_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
145 151 292 292 399 125 11543 2992 12342 fixation_cross gabor_167 gabor_080 gabor_141 gabor_023 gabor_167 gabor_080 gabor_141_alt gabor_023_alt "1_11_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_UncuedRetriev_300_300_399_11601_3000_12400_gabor_patch_orientation_167_080_141_023_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_141_framed gabor_circ blank blank blank blank fixation_cross_white "1_11_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_141_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
159 164 292 292 399 125 9543 2992 14342 fixation_cross gabor_081 gabor_010 gabor_115 gabor_066 gabor_081 gabor_010_alt gabor_115_alt gabor_066 "1_12_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_081_010_115_066_target_position_1_4_retrieval_position_1" gabor_081_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_12_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_081_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
173 179 292 292 399 125 11543 2992 12342 fixation_cross gabor_113 gabor_089 gabor_023 gabor_067 gabor_113_alt gabor_089 gabor_023_alt gabor_067 "1_13_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_CuedRetrieval_300_300_399_11601_3000_12400_gabor_patch_orientation_113_089_023_067_target_position_2_4_retrieval_position_2" gabor_circ gabor_089_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_13_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_089_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
187 192 292 292 399 125 9543 2992 14342 fixation_cross gabor_177 gabor_004 gabor_038 gabor_157 gabor_177_alt gabor_004 gabor_038_alt gabor_157 "1_14_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_CuedRetrieval_300_300_399_9601_3000_14400_gabor_patch_orientation_177_004_038_157_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_110_framed blank blank blank blank fixation_cross_white "1_14_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_110_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
201 207 292 292 399 125 11543 2992 14342 fixation_cross gabor_107 gabor_123 gabor_168 gabor_152 gabor_107_alt gabor_123 gabor_168 gabor_152_alt "1_15_Encoding_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_UncuedRetriev_300_300_399_11601_3000_14400_gabor_patch_orientation_107_123_168_152_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_017_framed blank blank blank blank fixation_cross_white "1_15_Retrieval_Working_Memory_MRI_P8_RL_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_017_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69;
};
# baselinePost (at the end of the session)
trial {
picture {
box frame1; x=0; y=0;
box frame2; x=0; y=0;
box background; x=0; y=0;
bitmap fixation_cross_black; x=0; y=0;
};
time = 0;
duration = 20600;
code = "BaselinePost";
#port_code = 2;
}; |
bcba147c57ecb28e88aa106b39c25409f2301691 | 449d555969bfd7befe906877abab098c6e63a0e8 | /278/CH22/EX22.11/ex_22_11.sce | 4734e5bf94804bc8ec1fac8230ea281b68d6cdeb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,170 | sce | ex_22_11.sce | clc
//solution
//given
P=185*1000//W
N=100//rpm
//dE=0.15*E
D=2.4//m
R=1.2//m
//let m be mass
E=(P*60)/N//N-m
dE=0.15*E//N-m
rho=7200
Cs=0.02
v=(%pi*D*N)/60//m/s
m=dE/(v^2*Cs)//kg
printf("mass is,%f kg\n",m)
//let t be thickness and b be width of rim
//b=2t
//m=A*%pi*D*rho
//A=b*t=2*t^2
t=sqrt(m/108588)//mm
printf("the thicknes and width is,%f m\n,%f m\n",t,2*t)
//let d be dia of hub ,d1 be dia of shaft,l be length of hub
Tmean=(P*60)/(2*%pi*N)//N-m
Tmax1=2*Tmean*1000//N-mm
//d1=(Tmax1*16/(%pi*tf))^(1/3)
tf=40;
printf("dia od shaft is,%f mm\n",(Tmax1*16/(%pi*tf))^(1/3))
printf("the dia of shaft is say 165mm\n")
d1=165//mm
d=2*d1//mm
l=2*t//mm
printf("the dia of hub and length of hub is,%f mm\n,%f m\n",d,l)
//let a1 be major and b1 be minor axis
//a1=2*b1
n=6
fb=14//N/mm^2
M=Tmax1*(D*1000-d)/(D*n*1000)//N-mm
printf("bending moment is,%f N-mm\n",M)
//Z=(%pi/32)*b1*a1^2=0.05*a1^3
//fb=M/Z
a1=(M/(fb*0.05))^(1/3)//mm
b1=0.5*a1
printf("major and minor axis is,%f mm\n,%f mm\n",a1,b1)
printf("corrsponding to shaft of dia 165 mm,width is 45 mm and thicknss of key is 25 mm\n")
//let L be length of key
L=Tmax1/(45*tf*d1/2)//mm
printf("length of key is,%f mm\n",L) |
d726b3e5e37d06149dd839fd0d5d6328a211673c | 449d555969bfd7befe906877abab098c6e63a0e8 | /555/CH1/EX1.1/1.sce | 72561725867ec0a40f5100c483c87a06aec797f2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 530 | sce | 1.sce | // Implementation of example 1.1
// Basic and Applied Thermodynamics by P.K.Nag
// page 20
clc
clear
z=562 // (difference in height of mercury in two limbs in mm)
g=9.79 // (acceleration due to gravity in m/s^2)
z0=761 // (barometer reading in mm Hg)
d=13640 // (density of mercury in kg/m^3)
// p= p0 + (d*g*z) & p0=(d*g*z)so
p=(d*g)*(z+z0)/1000; // division by 1000 is done to convert mm to m
p=(p/100000); // here division by 100000 is done to convert kPa to atm
printf("The gas pressure = %.2f bar",p);
// end |
cfdb36649b0710fbca9e5f20cf75f6162dbbc22f | 449d555969bfd7befe906877abab098c6e63a0e8 | /635/CH5/EX5.19/Ch05Ex19.sci | faa9749248ee9ea315c9d32427e6f4d533624d89 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 699 | sci | Ch05Ex19.sci | // Scilab Code Ex5.19 Elastic energy of line imperfection stored in Al: Page-178 (2010)
rho = 1e+010; // Dislocation density of Al, per metre square
mu = 25.94e+09; // Shear molulus of aluminium, newton per metre square
a = 4.05e-010; // Lattice parameter of aluminium, m
b = a/sqrt(2); // Burger vector magnitude for fcc crystal of Al, m
E_bar = mu*b^2/2; // Elastic energy per unit length of the dislocation, joule per metre
E = E_bar*rho; // Elastic energy stored in the crystal, joule per metre cube
printf("\nThe elastic energy stored in the crystal = %5.2f joule per metre cube", E);
// Result
// The elastic energy stored in the crystal = 10.64 joule per metre cube |
68f4fe09bf619b993bc9d06b9ff96c27469b404d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1871/CH4/EX4.19/Ch04Ex19.sce | 4f83855f885d411825b1c6e39e31f8eaebd8508d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,172 | sce | Ch04Ex19.sce | // Scilab code Ex4.19 : Pg:158 (2008)
clc;clear;
x1 = 100; // Position of eye-piece, cm
x2 = 67; // Position of first lens, cm
x3 = 34; // Position of second lens, cm
v1 = x1 - x2; // Distance between eye-piece and the second position of the lens, cm
u = v1;
x = x3 - u; // The reading of the slit on the bench, cm
D = x1 - x; // The distance between the focal plane of the eye-piece and the plane of the interfering sources, cm
d1 = 0.12; // Position of the first lens placed between the biprism and the eye-piece, cm
d2 = 0.03; // Position of the second lens placed between the biprism and the eye-piece, cm
omega = 0.972/10; // Fringe width, cm
d = sqrt(d1*d2)/2; // Separation between two virtual sources, cm
Lambda = 2*d*omega/D; // Wavelength of light used, cm
printf("\nThe distance between the focal plane of the eye-piece and the plane of the interfering sources = %2d cm", D);
printf("\nThe wavelength of light used = %5.3e cm", Lambda);
// Result
// The distance between the focal plane of the eye-piece and the plane of the interfering sources = 99 cm
// The wavelength of light used = 5.891e-005 cm |
74c0f3840ada0a7377a1b3cb4969cc083f477eff | 449d555969bfd7befe906877abab098c6e63a0e8 | /992/CH5/EX5.1/ex5_1.sce | 217c7d71e728fdf5bb8c0c131dab171130ac59ac | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 113 | sce | ex5_1.sce |
//Exa:5.1
clear;
close;
//Given:
n=9;
gm=12*10^-3;
X=n/gm;
printf("\n capacitive reactance = %fohm ",X); |
d7d47b4f599e31f0d94703acd459eef112ee9be6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /165/CH4/EX4.15/ex4_15.sce | 3a2e1db3cc6054e1193e2e13171942779968d71f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 484 | sce | ex4_15.sce | //Example 4.15
clc;
Ifsd=1*10^-3; //Full scale deflection current
Rm=200; //Meter resistence
Erms=10; //RMS voltage
Range=0.45*Erms; //RMS to DC value
//Using Sensitivity
S=1/Ifsd; //Sentitivity of meter
Rs=S*Range-Rm; //Multiplier resistence
disp(Rs,'Multiplier Resistence using Sensitivity')
//Using KVl
Rs=0.45*Erms/Ifsd-Rm; //Multiplier resistence
disp(Rs,'Multiplier resistence ') |
6d6d4ff42181806add57e15c5fa1826edb224fbe | 449d555969bfd7befe906877abab098c6e63a0e8 | /2078/CH9/EX9.9/Example9_9.sce | 7f2ce0d25220b4c13b3bb5586e718b12c27e7025 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 553 | sce | Example9_9.sce | //Exa 9.9
clc;
clear;
close;
//Given data :
K=0.1;//shunt to mutual capacitance ratio
CbyC1=10;
C2byC1=(1+K)*CbyC1;
C3byC1=(1+3*K)*CbyC1;
C4byC1=(1+6*K)*CbyC1;
disp("C2 is "+string(C2byC1)+" times of C1");
disp("C3 is "+string(C3byC1)+" times of C1");
disp("C4 is "+string(C4byC1)+" times of C1");
//I5=I4+i4
//omega*C5*v=omega*C4*v+omega*C1*4*v
C5byC1=(1+10*K)*CbyC1;
disp("C5 is "+string(C5byC1)+" times of C1");
//I6=I5+i5
//omega*C6*v=omega*C5*v+omega*C1*5*v
C6byC1=(1+15*K)*CbyC1;
disp("C6 is "+string(C6byC1)+" times of C1");
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.