blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 214 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2
values | repo_name stringlengths 6 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 21
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 141k 586M ⌀ | star_events_count int64 0 30.4k | fork_events_count int64 0 9.67k | gha_license_id stringclasses 8
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 50
values | src_encoding stringclasses 23
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 5 10.4M | extension stringclasses 29
values | filename stringlengths 2 96 | content stringlengths 5 10.4M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e862f21908ff9dbd88134a44e5b431eafb234fb4 | 7b040f1a7bbc570e36aab9b2ccf77a9e59d3e5c2 | /Scilab/virtual/2dof_controller/dc/ss/scilab/double_int_dead.sce | 26ea4a2ea82eef33de53c576d281528b47779b13 | [] | no_license | advait23/sbhs-manual | e2c380051117e3a36398bb5ad046781f7b379cb9 | d65043acd98334c44a0f0dbf480473c4c4451834 | refs/heads/master | 2021-01-16T19:50:40.218314 | 2012-11-16T04:11:12 | 2012-11-16T04:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 549 | sce | double_int_dead.sce | // Double integrator, p. 362 and p. 446 of Ogata
a1 = [0 1; 0 0]; b1 = [0;1]; c1 = [1 0]; d1 = 0;
// Transfer functions
Ga = syslin('c',a1,b1,c1,d1); Ts = 0.2;
[B,A,k] = myc2d(Ga,Ts);
// Discrete time state space matrices
[a,b,c,d] = abcd(dscr(Ga,Ts));
// Transient specifications
roots = [0,0]; phi_pol... |
16468b6e1944ec7f9c1eb75bebb329f0584e0d56 | 449d555969bfd7befe906877abab098c6e63a0e8 | /659/CH5/EX5.6/exm5_6.sce | 42e10995cefaa7b8b496e53004348c5f47d8292b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 638 | sce | exm5_6.sce | // Example 5.6
// A program to process loan applications and to sanction loans.
MAXLOAN=50000;
disp("Enter the values of previous two loans");
loan1=int32(input("Enter first loan:"));
loan2=int32(input("Enter second loan:"));
loan3=int32(input("Enter the values of new loan:"));
sum23=loan2... |
928d4f254f27d64bd74e33f32b71f164d2621162 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3869/CH2/EX2.17/Ex2_17.sce | 85aca5febe0e1b5abcb83ff93c5c2bc4d4c49640 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 295 | sce | Ex2_17.sce | clear
//
//
//
//Variable declaration
theta=15*%pi/180 //angle(radian)
lamda=6500*10**-8 //wavelength(cm)
n=1 //order
//Calculation
a=n*lamda/sin(theta) //slit width(cm)
//Result
printf("\n slit width is %0.2f *10**-4 cm",a*10**4)
|
bbf18be8aa326a63c07e3376ebdc839fffdb3032 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1118/CH1/EX1.4/eg1_4.sce | 4ce951b2aec852193f8dcf6e185e1fa37e465567 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 367 | sce | eg1_4.sce | clear;
clc;
x=[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 ];//dividing the x axis in 24 hours
y=[30 30 30 30 20 20 20 20 20 8 8 8 8 8 8 8 8 8 8 8 8 8 8 5];//load in MW values
bar(x,y,1,'blue'); //plotting the bargraph with a width of 1
xlabel('time in hours');
ylabel(... |
fceea5e8b2c7347b09c374b9570071ea9fe53d5e | a5de878687ee2e72db865481785dafbeda373e2a | /trunck/OpenPR-0.0.2/macros/emparams.sci | eea7af9b7633759b3219410dc95953503124091c | [
"BSD-3-Clause"
] | permissive | Augertron/OpenPR | 8f43102fd5811d26301ef75e0a1f2b6ba9cbdb73 | e2b1ce89f020c1b25df8ac5d93f6a0014ed4f714 | refs/heads/master | 2020-05-15T09:31:08.385577 | 2011-03-21T02:51:40 | 2011-03-21T02:51:40 | 182,178,910 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,794 | sci | emparams.sci | //////////////////////////////////////////////////////////////////////////////
// Author: Jia Wu
// Version: 0.1
// Date: Dec. 2009
//
//
// Copyright (C) 2009 OpenPR
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the ... |
12a22bc70fa32a3204cfea9ae5f73edd205b9bed | 449d555969bfd7befe906877abab098c6e63a0e8 | /226/CH10/EX10.1/example1_sce.sce | a016005f080ec0b84a65a99d178642a8007bafc9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 226 | sce | example1_sce.sce | //chapter 10
//example 10.1
//page 381
printf("\n")
printf("given")
Vdd=22;Rd=2*10^3;
disp("when Id=0")
Id=0;
Vds=Vdd-Id*Rd
disp(" at point A Id=0 nad Vds=22")
Vds=0;
Id=Vdd/Rd
disp(" at point B Id=11mA and Vds=0") |
13dcf9e173016981082ea6a123877b7f112d4eae | 3cbee2296fd6b54f80587eead83813d4c878e06a | /sci2blif/sci2blif_added_blocks/Max_detect.sce | e2895dcd86e3a882a5a5b6358de8cdbcad73dadd | [] | no_license | nikhil-soraba/rasp30 | 872afa4ad0820b8ca3ea4f232c4168193acbd854 | 936c6438de595f9ac30d5619a887419c5bae2b0f | refs/heads/master | 2021-01-12T15:19:09.899590 | 2016-10-31T03:23:48 | 2016-10-31T03:23:48 | 71,756,442 | 0 | 0 | null | 2016-10-24T05:58:57 | 2016-10-24T05:58:56 | null | UTF-8 | Scilab | false | false | 681 | sce | Max_detect.sce | //**************************** Max_detect **********************************
if (blk_name.entries(bl) == "Max_detect") then
mputl("#Max_detect",fd_w);
for ss=1:scs_m.objs(bl).model.ipar(1)
Max_detect_str= '.subckt Max_detect'+' in[0]=net'+string(blk(blk_objs(bl),2))+'_'+string(ss)+' out[0]=net'+string(b... |
065820892aba1c3dc033197e68124683f03a6466 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.0/macros/tdcs/finit.sci | c9a595be538771fd6720002fcc6b3950fbdf941f | [
"MIT",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 5,282 | sci | finit.sci | //[]=finit()
// Initialisation de parametres relatif au probleme
// de l'alunissage
//k : acceleration de poussee de la fusee
//gamma : acceleration de la pesanteur sur la lune
//umax : debit maximum d'ejection des gaz
//mcap : masse de la capsule
//cpen : penalisation dans la fonction cout de l'etat final
//!
k... |
10e0746b3f9dd4a625bcb4587affbef21b0d78ee | 449d555969bfd7befe906877abab098c6e63a0e8 | /2522/CH15/EX15.6/exm15_6.sce | a42e964c59bd510123596ae0fec14b32b81da550 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,023 | sce | exm15_6.sce | // page no 493
// example no 15.6
// EXPLANATION OF INSTRUCTIONS
clc;
printf('1) DI instruction disables the interrupts. \n \n');
printf('2) Command word 76H specifies the following parameters \n');
printf('A7 A6 A5 A4 A3 A2 A1 A0 \n');
printf('0 1 1 1 0 1 1 0 =76H \n');
printf('A7,A6,A5 Low ord... |
2aa94a4a2a948c77d8f07d4141ba46e232b66f05 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1850/CH1/EX1.19/exa_1_19.sce | 0093d23914e7cd4d8805b88f9b094d9190cc434f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 433 | sce | exa_1_19.sce | // Exa 1.19
clc;
clear;
close;
// Given data
format('v',7)
V_BE=0.715;// in volt
V_CC=9;// in volt
Bita_dc=100;
Bita_ac= Bita_dc;
V_EE= 10;// in volt
R=5.6;// in k ohm
R= R*10^3;// in ohm
I_REF= (V_EE-V_BE)/R;// in amp
// From 2*I_B + I_C1 -I_REF =0
I_C1= I_REF*Bita_dc/(2+Bita_dc);// in amp
// By symmet... |
b93722a06aba53c2df8f5bccd3ee2d19dda45bc8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /50/CH2/EX2.26/ex_26.sce | 2e5761bf3d5dc77b285a61b1c7a2af8f0a9d5364 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,070 | sce | ex_26.sce | // The equation x^3-7*x^2+16*x-12==0 has real roots.
// the graph of this function can be observed here.
xset('window',25);
x=0:.001:4; // defining the range of x.
de... |
b64a0165066c48808995617d44561fc25a130a1a | 449d555969bfd7befe906877abab098c6e63a0e8 | /3537/CH1/EX1.21/Ex1_21.sce | 9f534ac7f626fb867222eb519122aae84352f7bb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 300 | sce | Ex1_21.sce | //Example 1_21
clc();
clear;
//To find the wavelength of light used
D5=0.3 //units in cm
D25=0.8 //units in cm
R=100 //units in cm
P=20
lemda=(D25^2-D5^2)/(4*P*R)
printf("The wavelength of the light used is %f cm",lemda)
|
931b09acd4accb025df20a330335ffcca4c315d6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2912/CH5/EX5.5/Ex5_5.sce | 9d62ef2c95b73705deb183f1d425e3bf291724ae | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 317 | sce | Ex5_5.sce | //chapter 5
//example 5.4
//Calculate wavelength
//page 104
clear;
clc;
//given
V=1600; // in V (Potential)
//calculate
lambda=12.27/sqrt(V); // calculation of wavelength in Angstrom
printf('\nThe wavelength is\t=%.3f Angstrom',lambda);
// Note: The answer in the book is wrong due to calculation mistake
|
90a2dfd6b6f5cc5590c0c9dc671b9a45e8bac635 | 717ddeb7e700373742c617a95e25a2376565112c | /3044/CH3/EX3.10/Ex3_10.sce | 80f2ff325a27637457608d27fd3d4dacfc2f91e9 | [] | 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 | 562 | sce | Ex3_10.sce | //Variable declaration
n1 = 10 // Total machines
n2 = 8 // Working Machines
r = 2 // To be selected
//Calculation
function ans = fact(n)
// returns factorial of number n"""
if(n==1 | n==0) then
ans = 1
else:
ans = n*fact(n-1)
end
endfunction
function ans = comb(n,r)
... |
e93b399efa34ef2ad092492da2446eb37fb290fe | 449d555969bfd7befe906877abab098c6e63a0e8 | /3862/CH8/EX8.5/Ex8_5.sce | cd677a9cc2e970b2494a184411c3bcd8586904ce | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 661 | sce | Ex8_5.sce | clear
//
//variable declaration
P=(40) //Load,KN
L1=150 //length of 1st portion,mm
A1=%pi*(25**2)/4 //Area of 1st portion**mm^2
L2=250 //length of 2nd portion,mm
A2=%pi*(20**2)/4 //Area of 2nd portion**mm^2
L3=150 ... |
edd0feaa4c9ee92487722b8e237849ba9bf38efc | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/SCHI/NF65WHQ/ATWM1_Working_Memory_MEG_NF65WHQ_Session1/ATWM1_Working_Memory_MEG_Salient_Uncued_Run1.sce | 507889e2cbbdde70eb453a4260ac769927a1f166 | [] | 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 | 48,405 | sce | ATWM1_Working_Memory_MEG_Salient_Uncued_Run1.sce | # ATWM1 MEG Experiment
scenario = "ATWM1_Working_Memory_MEG_salient_uncued_run1";
#scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
scenario_type = trials; # for MEG
#scan_period = 2000; # TR
#pulses_per_scan = 1;
#pulse_code = 1;
pulse_width=6;
default_monit... |
8ef9a9186d4d376c3eaf05a76af570ad44e6dae7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1673/CH9/EX9.7/9_7.sce | f259cae3cc2e0717c24ba04ad2359e19e9b11c43 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 851 | sce | 9_7.sce | //bender-schimdt's formula and crank-nicolson formula
//example 9.7
//page 363
//bender -schimdt's formula
clc;clear;close;
deff('y=f(x,t)','y=exp(-%pi^2*t)*sin(%pi*x)');
u=[f(0,0) f(0.2,0) f(0.4,0) f(0.6,0) f(0.8,0) f(1,0)];
u11=u(3)/2;u12=(u(2)+u(4))/2;u13=u12;u14=u11;
printf(' u11=%f\t u12=%f\t u13=%f\t u... |
dab92d17b5644fff77307ddf1551e1f8eda4e9b8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /671/CH12/EX12.11/12_11.sce | 9943b84be51bab8c5e87bd7cca96edb15c187b1a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 72 | sce | 12_11.sce |
s1=1-960/1000
s2=1-800/1000
R2ext=4/3*s2*0.25/s1-0.25
disp(R2ext)
|
1259ba96fd08ed5fbfc8e83c220db618cbe62ee3 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.18_16.tst | 12d5feb42267dadf216d4b30e7a3775b98d2246e | [] | 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,497 | tst | bow.18_16.tst | 18 12:0.16666666666666666 45:0.3333333333333333 83:0.5 133:0.16666666666666666 134:2.0 1230:1.0 1578:1.0 1608:1.0 1687:1.0
18 70:0.05263157894736842 80:0.09090909090909091 83:0.5 85:0.16666666666666666 120:1.0 133:0.16666666666666666 134:1.0 199:1.0 1172:1.0 1230:1.0
18 12:0.3333333333333333 21:0.14285714285714285 39:0... |
ec02f257132a3d8ddc62c9698d82dbecd73ca400 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2969/CH7/EX7.10/Ex7_10.sce | 2f21a211c5af33a47d837f71dd3348a6d376b384 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,086 | sce | Ex7_10.sce | clc
clear
//DATA GIVEN
n=4; //no. of cylinders
BP=30; //Brake Power in kW
N=2500; //engine speed in R.P.M.
Pmi=8; //mean effective pressure in bar
ETAm=0.8; //mechanical efficiency
ETAthb=0.28; ... |
d57e5e3091a2e554602931ac77a626fa6b948b1d | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/PG01.prev.tst | 53acf78fd41221b5219c1c72455205fb41bd9fce | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,059 | tst | PG01.prev.tst | /* Generated at yyyy-mm-dd hh:mm by
java -cp dist/ramath.jar org.teherba.ramath.ProgramGenerator -w 3 -l 3 -n barning
Do N O T edit this file, but ProgramGenerator.java instead!
*/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
int reslines = 0;
printf("#---> start of re... |
23202ae7240313528dc347af54822036e2b2ebf0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /24/CH28/EX28.2/Example28_2.sce | 6e2766eac46dfa8a2fcd5daeaeea9002b9f227dd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 551 | sce | Example28_2.sce | //Given that
R1 = 20 //in Ohm
R2 = 20 //in Ohm
R3 = 30 //in Ohm
R4 = 8 //in Ohm
E = 12 //in Volts
//Sample Problem 28-2a
printf("**Sample Problem 28-2a**\n")
R23 = R2*R3/(R2+R3)
Req = R1 + R23 + R4
i = poly(0, 'i')
i = E/Req
printf("The current through the battery is %fA\n", i)
//Sample Problem 28... |
164e2d0eb8f501a7a3efeaf6eb9bed3db4566347 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1760/CH5/EX5.36/EX5_36.sce | 2e00a5209e05276e945720c346863f45cdddf6a3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 326 | sce | EX5_36.sce | //EXAMPLE 5-36 PG NO=329
I1=-10; //CURRENT
Vpc=15;
I2=7.5;
Vqc=I2*1;
disp(' Voltage is = '+string(Vqc)+'V');
Vpq=Vpc-Vqc;
disp(' Voltage is = '+string(Vpq)+'V');
RTH=1.406;
Pmax=[I2/(2*RTH)]^2*RTH;
disp(' Power is = '+string(Pmax)+'... |
0afe446b56dd9dad36b081ee5632d5c512f7a403 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1583/CH10/EX10.4/FS_Ex_10_4.sce | 460d847e9be4f959e7672c17174568085ab13733 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 683 | sce | FS_Ex_10_4.sce | clc
//Chapter 10:Frequency Synthesizers
//Example 10.4 page no 417
fo=185.6*10^6//required output frequency
fr=31.25*10^3//reference frequency
P=64
disp('To begin with the hopping bin channel spacing requirement of at least 20KHz,a 2MHz crystal is connected to the MC14512-2 with the reference address inputs(pins ... |
f85280fcb6309c0248768f613f9e273dfa135ff2 | 25033eda4e7cd13f945f94c5dc35f15825066b42 | /ExactCure/Gradient/gradient performance.sce | 3ebeba4f6725fda8b919feeee9207120b6b9fb50 | [] | 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 | 2,875 | sce | gradient performance.sce | clear
exec('C:\Users\Julien Guégan\Desktop\PFE\Algorithmes\affichage.sce',-1)
function z = rozenbrock(x)
z = 10*(x(2)-x(1)^2)^2 + (1-x(1))^2;
endfunction
function z = cout(x)
z = 6*x(1).^2+2*x(2).^2+4*x(1).*x(2)+x(1)+x(2)
endfunction
function alpha = linearsearch1(f,x,d,grad)
alpha = 1
w1 = 0.9
w... |
63642a0b64a021f378e212dc3158d3b10a9f1680 | 449d555969bfd7befe906877abab098c6e63a0e8 | /978/CH5/EX5.10/Example5_10.sce | 95c05662543b2e431e30a5b26b59d8583b18c3ad | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Example5_10.sce | //chapter-5,Example5_10,pg 493
n=3//3-bit ADC
SbyN=(((2^(n-1)*12^0.5)/2^0.5))//S/N ratio
printf("S/N ratio\n")
printf("SbyN=%.4f \n",SbyN)
printf("this produces an error due to noise nearly 0.10") |
62d1185b4ec1983a1e251e057e17c56210db7a2d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3866/CH2/EX2.8/Ex2_8.sce | 6f6d49347600c3156ffc3a98421d07bcdaa13208 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 302 | sce | Ex2_8.sce | clear; clc;close;
vgs=1.2;
vt=0.4;
ecln=0.6;
eclp=2.4;
vdsat1=((vgs-vt)*ecln)/(vgs-vt+ecln);
vdsat2=((vgs-vt)*eclp)/(vgs-vt+eclp);
ratio=(vgs-vt+eclp)/(vgs-vt+ecln);
disp(vdsat1,'for NMOS(in volts)');
disp(vdsat2,'for PMOS(in volts)');
disp(ratio,'saturation current ratio nmos to pmos');
|
5004ba9003e70d0d78a43cff7c96240ba61a8ccf | 449d555969bfd7befe906877abab098c6e63a0e8 | /40/CH8/EX8.9b/Exa_8_9b.sce | 48e9487cc2e46aa9620df3f262ef5c9dbbf2b0b0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 299 | sce | Exa_8_9b.sce | //DFT and DFS of sinusoids
n2=0:1/1280:31/128;
xt=4*sin(72*%pi*n2');
n=0:1/128:31/128;//F=9/32 hence N=32
xn=4*sin(72*%pi*n');
XDFT=abs(fft(xn,-1));
n1=0:31;
a=gca();
a.x_location="origin";
plot2d(n2,xt);
plot2d3('gnn',n,xn);
xset('window',1);
b=gca();
b.x_location="origin";
plot2d3('gnn',n1,XDFT); |
e92773d3a2de249d9840ce869581fb4d9f601308 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2120/CH2/EX2.2/exa_2_2.sce | 39de168ba1e939670855257c0aa97b333abc2982 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,040 | sce | exa_2_2.sce | // Exa 2.2
clc;
clear;
close;
// Given data
p= 12;// in bar
p=p*10^5;// in N/m^2
v= 25;// in m^3
T= 30+273;// in K
// Part (a) Mass of each gas
//Formula p*v=m*R*T
R_U= 8314;// in J/kg-mole K
M_N2= 28.016;// in mole
M_O2= 32;// in mole
M_CO2= 44;// in mole
R_N2= R_U/M_N2;// in J/kg K
R_O2= R_U/M_O2;// i... |
f4d759c711c945c09a433e120bdc991e1f0e46e2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH41/EX41.13/41_13.sce | dd15f072984147fd28e11d08eb37032b20f5e9f7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 823 | sce | 41_13.sce | //Problem 41.13: An asymmetrical T-section attenuator is shown in Figure 41.24. Determine for the section (a) the image impedances, and (b) the iterative impedances.
//initializing the variables:
R1 = 100; // in ohm
R2 = 200; // in ohm
R3 = 300; // in ohm
I1 = 1; // in amperes (lets say)
//calculation:
//ima... |
5c77b0005e5f6e0d1d9fa54837e06336160819cf | 244971ae8af51184d278cdc2be1c80775413adae | /SSSeSourceSin.sci | 0cf16d98f57b9be84049b1c0861b2963be3f3f4d | [] | no_license | MSCA-SIMFREE/748767 | 5879f1f139b608c7cd2f1bd62325b281c9c1e7d1 | 4726206e514f1e47e939e73b9339c056057866db | refs/heads/master | 2020-12-27T15:21:13.646362 | 2020-02-03T11:40:00 | 2020-02-03T11:40:00 | 237,951,088 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 971 | sci | SSSeSourceSin.sci | // The code was developed under Horizon2020 Framework Programme
// Project: 748767 — SIMFREE
function y=SSSeSourceSin(Frequency_GHz, Amplitude)
// Cosinusoidal Source
//
// Calling Sequence
// y=SSSeSourceSin(Frequency_GHz, Amplitude)
//
// Parameters
// Frequency_GHz : Signal Frequency... |
2da3367a01691412ccc4a565e2b7fdcc2ec89594 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1217/CH2/EX2.7/Exa2_7.sce | e21d40acc14d982dc0d5b1fb1bd0a48c58aeeedd | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 191 | sce | Exa2_7.sce | //Exa 2.7
clc;
clear;
close;
//given data
fm=50;//in kHz
SR=0.5;//in V/uSec
//formula : SR=2*%pie*fm*Vm
Vm=(SR*10^6)/(2*%pi*fm*10^3);//in Volts
disp(Vm,"Maximum vltage in volt is :") |
57895a05c5ac6250e20c3ced12affe03ae18eb84 | 449d555969bfd7befe906877abab098c6e63a0e8 | /167/CH7/EX7.11/ex11.sce | 02038a95bb9c7676dcf935e0e051d832eb8b1934 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 296 | sce | ex11.sce | //ques11
//Isentropic Compression of an Ideal Gas
clear
clc
//using the equation P2=P1*(T2/T1)^(k/(k-1))
P1=14;//initial pressure in psia
T2=780;//final temp in R
T1=510;//initial temp in R
k=1.667;//isentropic ratio
P2=P1*(T2/T1)^(k/(k-1));
printf('Final pressure = %.1f psia',P2);
|
5d9118b016b9482a33ed845d3a223363ca602f2b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2885/CH3/EX3.12/ex3_12.sce | 26a30ac35c9cebf260f5217c07f0b83f08be2950 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,023 | sce | ex3_12.sce |
//Calculate max and min values of zener diode current
clear;
clc;
//soltion
//given
Vimin=80;//V //minimum input voltage
Vimax=120;//V //maximum input voltage
Rl=10*10^3;// ohm //load resistance
Rs=5*10^3;//ohm //series resistance
Vz=50;//V //Zener voltage
V=Vimin*Rl/(Rs+Rl);
... |
16353d54540231b230af6ee5c1e50ef27e99ff82 | 449d555969bfd7befe906877abab098c6e63a0e8 | /51/CH6/EX6.7/6_7.sce | 1261a4cdee8114e1ad9b7cb232c22b52c144d413 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 757 | sce | 6_7.sce | clc;
clear;
h=200;//ft
U=40;//mi/hr
d=0.00238;//slugs/ft^3
//V^2= (U^2)*(1 + (2*b*cos(ang)/r) + ((b^2)/(r^2)))
//at point 2, ang=%pi/2
//r=b*(%pi-ang)/sin(ang)=(%pi*b/2)
V=U*(1+(4/(%pi^2)))^0.5;//mi/hr
y2=h/2;//ft
//bernoulli equation
//p1-p2= d*((V2^2)-(V1^2)) + (sw*(y2-y1))
V1=U*(5280/3600);
V2=V*(5280/3... |
213287a0c602b46baca9fd56fd8f0a7d4417f370 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1919/CH6/EX6.17/Ex6_17.sce | c034fbc249c4a2f823b3a56ec91bdc46c15ba285 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 802 | sce | Ex6_17.sce |
// Theory and Problems of Thermodynamics
// Chapter 6
// Thermodynamic Potentials and Availability
// Example 17
clear ;clc;
//Given data
P1 = 3 // entering pressure of superheated steam in MPa
T1 = 573.15 // entering temperature of superheated steam in K
P2 = 20 ... |
70e82667fdaaf41aca84c79ed6c8bfdde7be6c8f | 449d555969bfd7befe906877abab098c6e63a0e8 | /1067/CH3/EX3.6/3_6.sce | 4ad7a6d827ded8cd81809e70a07047ebf2bfffe8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 328 | sce | 3_6.sce | clear;
close;
clc;
V=78e3;
Vph=V/sqrt(3);
Em=2*Vph;
pf=0.4;
angle=acos(pf);
k1=sin(angle);
k1=round(k1*100)/100;
k2=.951;
k3=1;
k=k1*k2*k3;
k=round(k*1000)/1e3;
E=k*Em;
f=15000;
t=1/(2*f);
t=round(t*1e6);
eavg=2*E/t;
eavg=round(eavg/100)*100;
printf("average restriking voltage=%fkV/microsecs",eavg... |
bdeb3369caa8468d6b6d54090c52a2707e50825d | 449d555969bfd7befe906877abab098c6e63a0e8 | /800/DEPENDENCIES/5_4.sci | 9da1cdac87aff3062fdce1cbccee74cbe162ade5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 88 | sci | 5_4.sci | CCH4 = [2.44 4.44 10 1.65 2.47 1.75]'*1e-4;
PCO= [1 1.8 4.08 1 1 1]';
v0 =300;
W= 10; |
00dd9b28e23569c23dce4f98e06a2bae164dabd8 | 6285663d2259fa331b87bfb8ab368f892ee94351 | /10/testers/p8/test/test.tst | 8efaadb39d901645d8ee8a47503fee9f952f1922 | [] | no_license | Ellonet/nand-ex1 | 1ed60786aef5386321519d23b1d2328930e0700d | 19eee2248c24c9912ca72b61ce0d1869dc885d71 | refs/heads/master | 2020-04-01T10:07:53.274194 | 2019-01-06T18:07:23 | 2019-01-06T18:07:23 | 153,103,996 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 163 | tst | test.tst | load test.asm,
output-file test.out,
compare-to test.cmp,
output-list RAM[5000]%D1.6.1 RAM[5001]%D1.6.1 RAM[5002]%D1.6.1;
repeat 1000000 {
ticktock;
}
output;
|
cb24acff3727e2e37ce636998e1c498944f80fb4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2183/CH7/EX7.7/Ex_7_7.sce | 49547776bd2c034d97229b4ea4bfa2a921ee1a42 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 201 | sce | Ex_7_7.sce | // Example 7.7 //width of deplition region
clc;
clear;
close;
n=70;//efficinecy
absc=10^5;//cm^-1
W=(2.303*-log10(1-(n/100)))/(absc);//in meter
disp(round(W*10^6),"deplition width in micro meter is")
|
b70f11ec2d453cf03e90f1030413a204a8b4885f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2138/CH3/EX3.11.c/ex_3_11_c.sce | d08fd46ef69f2a302eb6a9e7d2c0ad0bbd6de39e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex_3_11_c.sce | //Example 3.11.C // CURRENT IN EACH RESISTANCE
clc;
clear;
close;
t=15;//TOTAL CURRENT IN AMPERES
i1=2;//CURRENT THROUGH UNKNOWN RESISTANCE
R1=15;//in ohms
R2=50/2;//in ohms
x=(t-i1)*((R1*R2)/(R1+2*R2));//unknown resistance in ohms
PD=i1*x;//in volts
i5= PD/(2*R2);//current in 5 ohms resistance
i15=PD/R1;//current in 1... |
832377f9aa4a3306e7a219ef78c9ffa4d9cd0ad4 | 5a05d7e1b331922620afe242e4393f426335f2e3 | /macros/gmonopuls.sci | 72658538c8d7f639bbcc9d6a2c443831238e3462 | [] | no_license | sauravdekhtawala/FOSSEE-Signal-Processing-Toolbox | 2728cf855f58886c7c4a9317cc00784ba8cd8a5b | 91f8045f58b6b96dbaaf2d4400586660b92d461c | refs/heads/master | 2022-04-19T17:33:22.731810 | 2020-04-22T12:17:41 | 2020-04-22T12:17:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,874 | sci | gmonopuls.sci | // Copyright (C) 2018 - 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_... |
71b3fbe778a5acd8256241bc58c00dff62940701 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1775/CH2/EX2.5/Chapter2_Example5.sce | c64e5a791edff042e782d84d6e2ba16c75ba99be | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,273 | sce | Chapter2_Example5.sce | //Chapter-2, Illustration 5, Page 60
//Title: Gas Power Cycles
//=============================================================================
clc
clear
//INPUT DATA
rv=8;//Compression ratio
P1=95;//Pressure at point 1 in kPa
T1=300;//Temperature at point 1 in K
q23=750;//Heat transferred during constant vol... |
faa43697262c34a46a686e6ece06f2daaebf03be | 449d555969bfd7befe906877abab098c6e63a0e8 | /1553/CH25/EX25.28/25Ex28.sce | 3839a4c4fb935c28da79cf506f9fa45fb7f428b7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 245 | sce | 25Ex28.sce | //Ch25_Ex28
clc;
clear;
close;
db=1.5; rb=db/2; //diameter and radius of bullet
rc=6; hc=28;//radius and height of cylinder
volC=%pi*rc^2*hc;
volB=(4/3)*%pi*rb^3;
noBullets=volC/volB;
mprintf("THe number of bullets are %d",noBullets);
|
87cf743c721a3d66cecb0c722f5fc625699ca3b7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3020/CH21/EX21.12/ex21_12.sce | 8fdf66223a25f07b087656dcd20b1fb183133b41 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 222 | sce | ex21_12.sce | clc;
clear all;
er=12;//relative dielectric constant of material
N=5e28;//no of atoms
e0=8.85e-12;//permittivity of vacume
xe=e0*(er-1)/N;//polarisability of element
disp('F m^2',xe,'polarisability of element is:')
|
9338c1896740ad2e0b510d325c9268b0cea1d0ae | 449d555969bfd7befe906877abab098c6e63a0e8 | /2192/CH4/EX4.18/4_18.sce | cf449e3a08a2976504879300e199746eb5ffa94b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 519 | sce | 4_18.sce | clc,clear
printf('Example 4.18\n\n')
m=1.8 //mass of aluminium to be melt
t1=15 //initial temperature
t2=660 //melting temperature
S=880 //specific heat of aluminium
L=32000 //latent heat of aluminium
heat_required= m*S*(t2-t1) + m*L
heat_required= heat_required*2.78*10^-7 //converting Joules to kWh
T=10... |
392854dee1d7fb4a2f0f01f14d023f297c3f2549 | 449d555969bfd7befe906877abab098c6e63a0e8 | /548/DEPENDENCIES/5_06data.sci | 3745edebf7f92af2d059989898c200a6be4cac3f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 267 | sci | 5_06data.sci | V=100;//velocity of airplane(m/s)
H=3000;//standard altitude at which airplane is flying(meter)
Cp=-2.2;//pressure coefficient at a point on fuselage
P=7.0121*10^4;//pressure at 3000 m,N/m^2
D=0.90926;//density at 3000 m,Kg/m^3
q=D*V^2/2 //dynamic pressure,N/m^2 |
85a6ea92a578af815d0f29529afa1d946fa58494 | 449d555969bfd7befe906877abab098c6e63a0e8 | /587/CH2/EX2.7/example2_7.sce | 05ecabfad3d61300695382bfd81a13e6e9a854e6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 821 | sce | example2_7.sce | clear;
clc;
//Example2.7[Heat Flux boundary Condition]
//Given:-
Q=800;//Heat transfer rate[W]
D=0.2;//Diameter of pan[m]
L=0.003;//Thickness of pan[m]
T_in=110;//T(L) Temperature of the inner surface of the pan[degree Celcius]
neta=0.9;//Percent of total heat transferred to the pan
//Solution;-
//The inner... |
24c5b4dbf3ca624cc9a3e0a33a98ce26aff6c024 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3507/CH21/EX21.2/Ex21_2.sce | 105359a2a6ac5819a02616521b79983b95ad39de | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex21_2.sce | //chapter21
//example21.2
//page463
R=10d3 // ohm
C=0.01d-6 // F
T=1.4*R*C
f=1/T
printf("time period of square wave = %.3f ms \n",T*1000)
printf("frequency of square wave = %.3f kHz \n",f/1000)
// the accurate answer for frequency is 7.143 kHz but in book it is given 7 kHz
|
237a207d86bda751c66bfa8e946c12a451a7320d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2297/CH4/EX4.1/Ex4_1.sce | 39d9534589c891c45f889664843bda83d0ec20d9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 409 | sce | Ex4_1.sce | // Example 4.1;NUMBER OF TURNS
clc;
close;
clear;
// given :
format('v',7)
e1=2200;//voltage in volts
f=50;//frequency in Hz
e2=220;//voltage in volts
fd=1.6;//magnetic field in Tesla
a=3600;//area in mm^2
n1=(e1/(4.44*f*fd*a*10^-6));//number of turns
n2=(e2/(4.44*f*fd*a*10^-6));//number of turns
disp(round(n1),"numbe... |
72a6b3dcde680f6339c41833bf755743f9667f65 | 449d555969bfd7befe906877abab098c6e63a0e8 | /40/CH9/EX9.11/Exa_9_11.sce | 35a2c585ddde9abf4ba0fbd2ba761a9c9932bb96 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 716 | sce | Exa_9_11.sce | //interference Rejection
//design oh high-Q and low-Q notch filters
s=%s;z=%z;
Q=50;
fo=60;S=300;
delf=fo/Q;
Wo=2*%pi*fo/S;
delW=2*%pi*delf/S;
C=tan(0.5*delW),B=cos(Wo)
HS=(s)/(s+1);
H1Z=horner(HS,(z^2-(2*B*z)+1)/(C*(z^2)-C))
Q1=5;delf1=fo/Q1;
delW1=2*%pi*delf1/S;
C1=tan(0.5*delW1),B1=cos(Wo)
H2Z=horner(H... |
4336764bca182082cf80c576d402c5abb925fb2b | 449d555969bfd7befe906877abab098c6e63a0e8 | /1670/CH10/EX10.1/10_1.sce | 9960ca40714ae9b70e6bbc553089b8b1ed3beac6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 10_1.sce | //Example 10.1
//Taylor Method
//Page no. 302
clc;clear;close;
deff('y=f1(x,y)','y=y-2*x/y')
deff('y=f2(x,y)','y=(2*y*f1(x,y)-2-f1(x,y)^2)/y')
deff('y=f3(x,y)','y=(2*y*f2(x,y)-3*f1(x,y)*f2(x,y)+2*f1(x,y)^2)/y')
h=0.1;y=1;
x=[0.1;-0.1]
for i=1:2
k=y;
for j=1:3
if j==1 then
k=k+... |
d80d65674e2bacf718e82400c3733cd746cb5ce1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2744/CH10/EX10.13/Ex10_13.sce | 034d3333df0d6b6dba7c3afd672afb4691978ddf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 832 | sce | Ex10_13.sce | clear;
clc;
r1 = 0.5*9;// inches
r2 = 0.5*3;// inches
r3 = 0.5*6;// inches
del_r3 = 0.5*0.003;// inches
E = 13000;// tons/in^2
k1 = r1/r3;
k2 = r2/r3;
a1 = (del_r3/r3)*E/((k1^2 +1)- (k2^2 +1)*(k1^2 -1)/(k2^2 -1));
a = a1*(k1^2 -1)/(k2^2 -1);
b1 = a1*r1^2;
b = a*r2^2;
p_ = (b/r3^2) -a;// tons/in^2
// for t... |
992dc6606837cb7f6014e81d3ef4bddea1a067be | 449d555969bfd7befe906877abab098c6e63a0e8 | /3850/CH31/EX31.7/Ex31_7.sce | dad58a9e2be59cf2ae3c19d970ae71a1c80da077 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 308 | sce | Ex31_7.sce |
//To Calculate the Energy stored in Capacitor
//Example 31.7
clear;
clc;
C=100*10^-6;//Capacitance of the capacitor in Faraday
V=20;//Potential Difference in Volts
U=1/2*C*V^2;//Formula for finding the energy stored in a capacitor
printf("The energy stored in the capacitor= %f J",U);
|
9c5a29ce8ffa3c7ceea57aad4bed7fcd1f0776ee | 449d555969bfd7befe906877abab098c6e63a0e8 | /1544/CH4/EX4.2/Ch04Ex2.sce | 72a96f8c02d164b37fad8b1d15640ccc4fbf64bb | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 405 | sce | Ch04Ex2.sce | // Scilab code Ex4.2: Pg 116 (2008)
clc; clear;
A = 45e-06; // Cross sectional area of pole face, metre-square
B = 0.6; // Flux density, T
// Using formula B = phi/A, solving for phi
phi = B*A; // Flux, Wb
printf("\nThe flux produced by pole face = %2d mic... |
097d9ff6e21bbafaedff3dc51351b52d6fb9d785 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2144/CH2/EX2.9/exa_2_9.sce | fc7f51de512be494743a36a8b8fdeb2019214f1b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 359 | sce | exa_2_9.sce | // Example 2.9
clc;
clear;
close;
// Given data
P1= 96;// in kN/m^2
P2= 725;// in kN/m^2
V1= 600;// in cm^3
V2= 100;// in cm^3
T1= 100+273;// in K
// Formula P1*V1/T1 = P2*V2/T2
T2= P2*V2*T1/(P1*V1);// in K
disp(T2-273,"Temperature at the end of compression in °C is : ");
// Note:- In the book, There is an... |
bd44c0968bed3c332bd6af14cb2c3e226d471a2e | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/statelevels/statelevels17.sce | bdf0edcaa2fb686d75fd3be7c3e967d66bce29d6 | [] | no_license | deecube/fosseetesting | ce66f691121021fa2f3474497397cded9d57658c | e353f1c03b0c0ef43abf44873e5e477b6adb6c7e | refs/heads/master | 2021-01-20T11:34:43.535019 | 2016-09-27T05:12:48 | 2016-09-27T05:12:48 | 59,456,386 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 246 | sce | statelevels17.sce | //
x=[-0.00104287295007201
-0.00244190236539361
0.00330474678679599
0.00312506274996585
-0.00888427641170878
-0.000128837692967764
];
[levels,histogram,binlevels] = statelevels(x,100,'mean');
disp(levels);
//output
// - 0.0088233 0.0005378
|
027031a371d1e5241f25b49c8d28897965d1ef46 | 29cfe7e83274e757dc406cdc2a855f7e76fdb698 | /scilab/multi_lidar_point.sce | 8b4b678b8b61543503b012224b24b9054a2dbb98 | [] | no_license | andreucm/essential_maths_roboticists | 2eb637afe3f46be6eb6c697eba7ada1d9406f482 | 95530267db0890be1e76778062d8eafd41d451dd | refs/heads/master | 2022-07-16T05:18:15.976563 | 2022-07-01T08:36:47 | 2022-07-01T08:36:47 | 47,470,143 | 1 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 996 | sce | multi_lidar_point.sce |
//point in Lidar 1
q = [10;3;1];
//lidar motion
T1_1 = eye(3,3);
T2_1 = [cos(-%pi/8) -sin(-%pi/8) 0.1; sin(-%pi/8) cos(-%pi/8) 0 0.2; 0 0 1 -0.2; 0 0 0 1 ];
T3_1 = [cos(-%pi/5) -sin(-%pi/5) 0 0.5; sin(-%pi/5) cos(-%pi/5) 0 -0.1; 0 0 1 0.1; 0 0 0 1 ];
T4_1 = [cos(%pi/7) 0 -sin(%pi/7) 0.5; 0 1 0 0.1; sin(%pi/7) 0 cos(%... |
8f006d5460bac2bf464eb8a0065df940d8d32567 | 9b3a82b71b55170a9d272048e2f4dc6858ff106c | /control-system/response_stability.sce | 3052072802caea722365897435b8928f3e365155 | [] | no_license | omrastogi/Digital-Signal-Processing | afcee58a1decbd9949e0bfcda47b62bbf19c935f | 68b4f85ec5b9dbf7840a0857ee388f9d660bbb2e | refs/heads/main | 2023-01-03T13:54:45.554127 | 2020-11-02T05:40:13 | 2020-11-02T05:40:13 | 309,267,769 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 224 | sce | response_stability.sce | clc;
clf;
clear all;
t=0:0.01:5;
s1=exp(-t);
s2=exp(t);
subplot(2,1,1);
plot(s1);
xlabel("time");
ylabel("amplitude");
title("plot by Om");
subplot(2,1,2);
plot(s2);
xlabel("time");
ylabel("amplitude");
title("plot by Om");
|
7e35668a09edfb2327c4b92ecf8b964076ac9d53 | 56743f362de98f910919780918c86679ec136d3e | /resolvidos/Ficha prática 7.sce | d0833c6463d9f2a7b789619ca21c6b004973efff | [] | no_license | andre-paulo98/fichas-ei-a1s2-MD | aaf75e6b45cbac7ebbf92949deb783ce6f1201b7 | 99c50eb08cf409ce8e5aa8301728dbe9148e16c5 | refs/heads/master | 2022-02-24T23:13:49.293944 | 2019-10-06T17:50:26 | 2019-10-06T17:50:26 | 171,472,323 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,371 | sce | Ficha prática 7.sce | //Matemática Discreta - Proposta de resolução da ficha prática 7
//Nota: As resoluções que se seguem apresentam apenas sugestões de resolução dos exercícios propostos. Na maior parte dos casos, existem muitas outras formas de resolver o exercício.
//Exercício 1
function P=Warshall(A)
[u,v]=size(A)
P=A
for k=1:u
... |
49b52f035a96bf3de38c0d65ea4a163c1074137d | fdc5047b7bf8122bad1e621df236b0481226c36e | /virtualProcessComm_V4/macros/vpcGuiClose.sci | 718cde9e8c8d97f7c10d84d8a09d5d8063d09a0b | [] | no_license | jpbevila/virtualHartSci | aea3c6ba23d054670eb193f441ea7de982b531cc | a3f5be6041d230bd9f0fd67e5d7efa71f41cfca5 | refs/heads/main | 2023-07-26T23:05:28.044194 | 2021-09-09T11:50:59 | 2021-09-09T11:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 75 | sci | vpcGuiClose.sci | function vpcGuiClose()
bdVpcDesconect();
close(gcf());
endfunction
|
3038a162878d64b0cd9789ce43af1035d5b2594c | 449d555969bfd7befe906877abab098c6e63a0e8 | /62/CH3/EX3.41/ex_3_41.sce | 94d0fb3a04f113a3dbf74de0a58710b15462343a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 75 | sce | ex_3_41.sce | clear;
clc;
syms s t n;
I=1/(s/2+2+20/s)
i=ilaplace(I)
disp(i,"i(t)=") |
2f0c16d99cbcc9734d592b6be46bd41b9a61a043 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.2/Unix/scilab-2.2/macros/scicos/get_cnct.sci | 6b8fc2880be371d8d9c8698ecc0247bc1b1fd80b | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"MIT"
] | 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 | 797 | sci | get_cnct.sci | function x=old2new(x)
nx=size(x)
for k=1:nx
o=x(k)
if o(1)=='Block' then
graphics=o(2)
[ip,op,cip,cop]=get_cnct(x,k)
graphics(5)=ip
graphics(6)=op
graphics(7)=cip
graphics(8)=cop
o(2)=graphics
x(k)=o
end
end
function [ip,op,cip,cop]=get_cnct(x,k)
//old version of get_connected onl... |
60fbd6df100d0dd6f432f453195729453b8773de | 449d555969bfd7befe906877abab098c6e63a0e8 | /3492/CH5/EX5.17/Ex5_17.sce | 9ef90096548424999b73a1f0e4e1e4fbe9bace0e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 231 | sce | Ex5_17.sce | clc
//Chapter5
//Ex_17
//Given
Eg=1.42 //in eV
//letE=hc/lambda=hf
E=1.96 //in eV
P_L=50 //in mW
kT=0.0259 // in eV
delta_E=E-(Eg+(3/2)*kT)
P_H=(P_L/(E))*delta_E
disp(P_H,"Amount of power dissipated as heat in mW is")
|
354db70fe09bdbfb49f94ae5f7b2d82de152647d | 449d555969bfd7befe906877abab098c6e63a0e8 | /2411/CH3/EX3.c.211/Ex3c_11.sce | a395f9f34f7e9a7ddaf102336f7b2fe22ce12320 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 486 | sce | Ex3c_11.sce | // Scilab Code Ex3c.11: Page-187 (2008)
clc; clear;
D_n = 0.42; // Diameter of nth ring, cm
D_mplusn = 0.7; // Diameter of (m+n)th ring, cm
m = 14; // Difference between (m+n)th and nth rings
R = 100; // Radius of curvature of the plano-convex lens, m
lambda = (D_mplusn^2 - D_n^2)/(4*m*R); // Wavel... |
78910323c1623d8bad1e785a051e5a3133cd85db | b0aff14da16e18ea29381d0bd02eede1aafc8df1 | /mtlbSci/macros/moc_randi.sci | fd86bab5eba56ef2948e7550ac395f56e24100a2 | [] | no_license | josuemoraisgh/mtlbSci | 5d762671876bced45960a774f7192b41124a13ed | 5c813ed940cccf774ccd52c9a69f88ba39f22deb | refs/heads/main | 2023-07-15T23:47:11.843101 | 2021-08-26T17:52:57 | 2021-08-26T17:52:57 | 385,216,432 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,572 | sci | moc_randi.sci | function ri = moc_randi (bounds, varargin)
// Return random integers in a given range
// Calling Sequence
// ri = moc_randi(imax)
// ri = moc_randi(imax,n)
// ri = moc_randi(imax,m,n,...)
// ri = moc_randi([imin,imax],...)
// Description
// Additional arguments determine the shape of the return matrix. When no
// argu... |
f25087926cbf9f1f15c93743785444aa982713bd | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH12/EX12.12/12.sce | 6c929dab5fb9a6463c10df4750836836b380880c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 388 | sce | 12.sce | clc
h1=3100; //kJ/kg
h2=2100; //kJ/kg
h3=2500; //kJ/kg
h_f2=570.9; //kJ/kg
h_f5=125; //kJ/kg
h_f2=570.9; //kJ/kg
a=11200; //Quantity of bled steam in kg/h
m=(h_f2-h_f5)/(h2-h_f5);
S=a/m; //Steam supplied to the turbine per hour
W_net=(h1-h3) + (1-m)*(h3-h2);
P=W_net*S/3600; //Power developed by the t... |
16c18643cbd817d8f987140b5662cab685288e1c | 67ba0a56bc27380e6e12782a5fb279adfc456bad | /STAMPER_PROG_8.0/bin/mathLib/d2r.sci | 2a85322e59619bf82b4ac94a8e54fa9d805c2cc6 | [] | no_license | 2-BiAs/STAMPER_PROG | 8c1e773700375cfab0933fc4c2b0f5be0ab8e8f0 | 4fdc0bcdaef7d6d11a0dcd97bd25a9463b9550d0 | refs/heads/master | 2021-01-18T19:30:06.506977 | 2016-11-10T23:32:40 | 2016-11-10T23:32:40 | 71,999,971 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 67 | sci | d2r.sci | function fRad = d2r(fDeg)
fRad = fDeg * %pi / 180;
endfunction
|
b0eec5269c19a6da42c8bcdb970dfeb4ec714c07 | 449d555969bfd7befe906877abab098c6e63a0e8 | /196/CH6/EX6.8/example_6_8.sce | d271f5fa9111283521a18344066a7ea0d2604a16 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 406 | sce | example_6_8.sce | //Chapter 6
//Example 6-8
//DesignOnSawtoothWaveGenerator
//Page 163
clear;clc;
//Design a voltage divider to give voltage reference 10 V
//Here Ri = 10 KiloOhm and C = 0.1microfarad
//The Circuit will be as shown below
xcos('Figure6_8.xcos');
//Checking Frequency value
Ri = 10*10^3 ;
Ci = 0.1*10^-6 ;
Ei =... |
b1a98b931b7239f3f53cbd43a5bd9c3fca0872e1 | 62230b0213ef4f762aaeff538e51f33739a54246 | /PCAcode.sce | 417a58e13740f706b0cc221e6b83ab437672b955 | [] | no_license | PriyaRcodes/Scilab-project | 453090012d8cdfb27d770c0228b74d7dc71f1b6e | 8ad324bd219a6a66c9b1c796a96e8dd146544e73 | refs/heads/master | 2020-04-10T10:03:05.348575 | 2018-12-08T16:53:05 | 2018-12-08T16:53:05 | 160,954,321 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,337 | sce | PCAcode.sce | clear all;
clc;
//Project on image compression
//Using PCA-Principal Component Analysis technique
//Implementing the maths behind PCA
img= imread('C:\Users\dell\Pictures\Camera Roll\wallpaper.jpg');
gray_img = rgb2gray(img);
gray_imgdouble = im2double(gray_img);
meancol=mean(gray_imgdouble,'r');
[a b]= size(gray_img)... |
eadcb98a366a6a98f10ba95075149db578343b84 | 449d555969bfd7befe906877abab098c6e63a0e8 | /172/CH3/EX3.12/ex12.sce | 5c690ee245cde6984201a87626135e63e2c9ec07 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 868 | sce | ex12.sce | //example 12
//determining specific using diffenet laws
clear
clc
T=100 //given temp.in 100 celsius
P=3 //given pressure in MPa
v1=0.0065 //specific volume in m^3/kg using table
printf("\n hence,the specific volume for R-134a using R-134a tables is v1 = %.3f m^3/kg. \n",v1)
M=102.3 //molecular mass in kg
R=8.3... |
7643c2328794e2a47067edd7a3dc619f6a006f1a | 449d555969bfd7befe906877abab098c6e63a0e8 | /1370/CH4/EX4.7/Exp4_7.sce | 6f736cac8cf06cd1edfd989c0fea50e0167dcc88 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,987 | sce | Exp4_7.sce | //Example 4.7
clc
disp("V_L = 866 V, kVA = 100")
disp("Therefore, kVA = sqrt(3)*V_L*I_L*10^-3")
il=100/(sqrt(3)*866*10^-3)
format(6)
disp(il,"Therefore, I_L(in A) =")
disp("Therefore, I_aph F.L. = I_L = 66.67 A ... as star connected alternator")
disp("V_ph = Rated terminal voltage per phase = V... |
42f454d39f3eb5bd440fa68543be00237d28e545 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3831/CH14/EX14.4/Ex14_4.sce | c3731ece280219ef0c48002da72387aba9d77e7f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 762 | sce | Ex14_4.sce | // Example 14_4
clc;funcprot(0);
// Given data
// Station 1
x_1=1.00;// The dryness fraction
T_1=-15.0;// °C
h_1=244.13;// kJ/kg
s_1=0.95052;// kJ/kg.K
// Station 2
p_2s=909.9;// kPa
s_2s=0.95052;// kJ/kg.K
s_2s=s_1;// kJ/kg.K
h_2s=271.92;// kJ/kg
T_2s=39.3;// °C
// Station 3
T_3=20.0;// °C
x_3=0.00;// ... |
df5fd7d7ed5ccc6c191f16f7d765f4fb6b6cecf2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1511/CH7/EX7.9/ex7_9.sce | 281a74096684cf1a0fc4c18ec1a2b4242873b2c0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 410 | sce | ex7_9.sce | // Example 7.9 page no-424
clear
clc
Rc=4
Rb=40
Rs=10
hie=1.1
hfe=50
hre=0
hoe=0
Rcdash=Rc*Rb/(Rc+Rb)
R=Rs*Rb/(Rs+Rb)
Rm=-hfe*Rcdash*R/(R+hie)
Rm=floor(Rm)
printf("\nTransresistance Rm=%d k",Rm)
B=-1/(Rb)
D=1+B*Rm
Rmdash=Rm/D
Avdash=Rmdash/Rs
Ri=R*hie/(R+hie)
Ridash=Ri/D
printf("\nBeta=%.3f mA/... |
b270464b4120df7dc24fedc6cf219e82a12268bc | 449d555969bfd7befe906877abab098c6e63a0e8 | /911/CH6/EX6.3/ex_6_3.sce | 66e63695235d8d8d32a1d06efe5a68c248c1b8df | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 154 | sce | ex_6_3.sce | //example 6.3//
clc
//clears the screen//
clear
//clears all existing variables//
disp('Difference output = X''Y+XY''')
disp('Borrow output = X''Y') |
2367d852cbfb6c13c2120a9661fb3f93785bb4f7 | 62e6605ab494919b6833bf1a1b158bcb6f9b79df | /chami.sce | 4788631da3f755bf5caff6a8ec3f57f81b293e2c | [] | no_license | mani1250/system-identification | c597c26d10bb5dd62b1b4db650b3945afc336e37 | 5db0536c792dfaa4a8f01561315263503ff34d3d | refs/heads/master | 2021-01-12T06:56:00.703593 | 2017-03-07T12:18:15 | 2017-03-07T12:18:15 | 76,865,655 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 337 | sce | chami.sce | function X = chami(a,b,c)
if (size(a,'*') > 1 & size(b,'*') > 2) then
disp('You are going in a correct direction keep going')
end
X = a*b*c^2;
disp(X)
endfunction
function out = checkunity(x)
if(size(x)==1 & x==1)
out = "TRUE"
else
out = "FALSE"
end
return(out)... |
8197c33065b65b5686d9cac218704c8b54d5e2d9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2672/CH5/EX5.2/Ex5_2.sce | 30973afc279b85d89e78c224d4628e0a52d36ca3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 493 | sce | Ex5_2.sce | //Example 5_2
clc;
clear;
close;
format('e',9);
//given data :
ND=10^16;//cm^-3
A=4*10^-4;//cm^2
NA=5*10^18;//cm^-3
T=300;//K
epsilon0=8.85*10^-14;//vaccum permittivity
epsilonr=11.8;//relative permittivity
e=1.6*10^-19;//C/electron
ni=1.5*10^10;//cm^-3
kBT=0.0259;//eV//at room temperture
V0=kBT*log(NA*... |
e803d7b2bb63dbbb69e24fdfdcf19056d375e104 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1652/CH13/EX13.4/13_4.sce | 1478c4661d0484e2d9b732145589beb6569b2f2c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 194 | sce | 13_4.sce | clc
//Initialization of variables
T1=77.32 //K
P=1 //atm
T2=126 //K
Pc=33.5 //atm
//calculations
dS=27/32 *1.987*P/Pc *(T2/T1)^3
//results
printf("Change in entropy = %.2f eu/mol",dS)
|
c69852ac98bbe3c2a97814f1a70c4bfd8fd633cd | 449d555969bfd7befe906877abab098c6e63a0e8 | /689/CH16/EX16.2/2.sce | 7a80b879207960a2f59e40e615aeea48e232463d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,175 | sce | 2.sce | clc; funcprot(0);
//Example 16.2 Horsepower required at sea level
// Initialisation of variables
W = 4225;
b1 = 38;
b2 = 35;
Gap = 5.35;
S1 = 214;
S2 = 150;
Dp = 9.4; // Parasite drag equivalent
// Calculations
mu =b2/b1;
Gab_MeanSpan = 2*Gap/(b1+b2);
S = S1 + S2;
sigma = 0.56; ... |
08aab31946b74f9f4b8b5728530b931655a2f677 | e2c7fea29ba137d8bfbcdd732ac94d7733d8456c | /datasets/iris/data.tst | 683ed531e48e3ba0ffce92d617ac81832a22b1c9 | [
"Apache-2.0"
] | permissive | alex-c/data-science-exercises | b3acbfc844abcf78a3d62cf934fb0b8de8531a94 | c1c8a06292cf7e0ce6643240d052c2577439c927 | refs/heads/master | 2020-05-04T15:11:59.889851 | 2019-06-17T15:44:36 | 2019-06-17T15:44:36 | 179,229,365 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,275 | tst | data.tst | 5.0 3.0 1.6 0.2 Iris-setosa
5.0 3.4 1.6 0.4 Iris-setosa
5.2 3.5 1.5 0.2 Iris-setosa
5.2 3.4 1.4 0.2 Iris-setosa
4.7 3.2 1.6 0.2 Iris-setosa
4.8 3.1 1.6 0.2 Iris-setosa
5.4 3.4 1.5 0.4 Iris-setosa
5.2 4.1 1.5 0.1 Iris-setosa
5.5 4.2 1.4 0.2 Iris-setosa
4.9 3.1 1.5 0.2 Iris-setosa
5.0 3.2 1.2 0.2 Iris-setosa
5.5 3.5 1.3 ... |
c02b0e58588981d3574c6be8e92bc855c6f77d7d | 33d7960e39a3e71591538dccbe1dd4014c377e78 | /Sample Solution/CompFin_2017_SS_Exercise_21_MathQF.sce | 48ee3f09202dea2ac95afd911414612e9f33d781 | [] | no_license | wiiwins/Compfin | 529e2997994babb9e3795283ddbd8ec782131148 | 2629685421e970a369ec797b76dda3d2803bcbcf | refs/heads/master | 2020-05-18T01:25:39.357847 | 2019-06-27T11:21:46 | 2019-06-27T11:21:46 | 184,090,400 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,585 | sce | CompFin_2017_SS_Exercise_21_MathQF.sce | function [V0, c1, c2] = EuOption_BS_MC (S0, r, sigma, T, M, g)
// Generate an Mx1-vector of independent samples from
// standard normally distributed random variables.
X = grand(M, 1, 'nor', 0, 1);
ST = S0*exp( (r-0.5*sigma^2)*T + sigma*sqrt(T)*X );
// Compute Monte-Carlo estimator.
... |
8b51696e32766e5507e95bffd8367529e565cebb | 449d555969bfd7befe906877abab098c6e63a0e8 | /2144/CH3/EX3.27/ex3_27.sce | 4111273d6df2baa65b0f91c09d02bab1804ece06 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 967 | sce | ex3_27.sce | // Exa 3.27
clc;
clear;
close;
// Given data
P1 = 1 * 10^5;// in N/m^2
V1 = 0.1;// in m^3
V2 = 0.01;// in m^3
T1 = 90;// in degree C
T1 = T1 +273;// in K
R = 0.287;// in kJ/kg-K
R = R *10^3;
C_v = 0.717;// in kJ/kg-K
C_P = 1.005;// in kJ/kg-K
m = (P1 * V1)/(R*T1);// in kg
Gamma = 1.4;
T2 = T1 * ((V1/V... |
2df8a7c0cbe7935aacdb94cc5f5e9497c6b63786 | 449d555969bfd7befe906877abab098c6e63a0e8 | /527/CH9/EX9.6/9_6eaxm.sce | fe9738af2075bd21918d721f2fe08ac478c8094c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 900 | sce | 9_6eaxm.sce | //Engineering and Chemical Thermodynamics
//Example 9.6
//Page no :451
clear ; clc ;
del_g0_f_C6H6 = -32.84 ; //[kJ/mol] , From Table E9.6
del_g0_f_C2H4 = 68.15 ; //[kJ/mol] , From Table E9.6
del_g0_f_H2 = 0 ; //[kJ/mol] , From Table E9.6
del_h0_f_C6H6 = -84.68 ; //[kJ/mol] , From Table E9.6
del_h0_f_C2H4 = ... |
96a67fc283c6e8edaf3646c702f9f38aeff4c366 | e20b143bd16a6a60520c5d3f6c30af9356cc0aa2 | /macros/update_country.sci | b0565de28b93165dab29af1a903b234eb0d0c5d3 | [] | no_license | slevin48/covid | 2c4806c1d1d91b2196f3086e2af7c69c420fb4db | c482d908ae58b82558f338b63020845cefc43742 | refs/heads/master | 2022-05-28T10:40:56.271120 | 2020-04-29T16:08:27 | 2020-04-29T16:08:27 | 258,529,494 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 773 | sci | update_country.sci | function update_country()
eu_countries = ['Germany', 'Italy', 'Spain'];
// [header, data] = importdata(covid_getpath()+"\data\time_series_covid19_confirmed_global.csv");
// confirmed = strtod(data(:,5:$));
// country = data(:,2);
c = get("country");
// a=get("cases_plot_... |
dad97d519bcbd2c5a77a1584398aa15d253952d7 | e0c1e7e8cb7074e354e2baf085ed4c6d77ca157a | /TAREAS/tercer tarea/segunda.sce | 790c8ff83f3cee8403cc3c5463d450e42e68e642 | [] | no_license | solanosandoval/SOLANO.SANDOVAL.JORGE.ALEJANDRO | 00a9ff678605cbb2665100f9c57b6940e54ce97c | fd34afd8c8750a70b081475e06858e2e7092a1e2 | refs/heads/master | 2020-04-17T00:28:35.687396 | 2019-04-11T13:49:11 | 2019-04-11T13:49:11 | 166,051,105 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,706 | sce | segunda.sce | -> grados1= 7
grados1 =
7.
--> grados2= 60
grados2 =
60.
--> grados3= 75
grados3 =
75.
--> radianes= grados*%pi/180
Undefined variable: grados
--> radianes1= grados*%pi/180
Undefined variable: grados
--> radianes1= grados2*%pi/180
radianes1 =
1.0471976
... |
bb7793bc6d7dd40c490d47008c5692b6df8012e7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /629/CH6/EX6.12/example6_12.sce | 5c8c05bc107b7e78f2084f3673baacaf4285b496 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 438 | sce | example6_12.sce | clear
clc
//Example 6.12 PRESSURE RISE DUE TO WATER HAMMER EFFECT
rho=1.94; //[slugs/ft^3]
Ev=3.2*10^5; //[lbf/in^2]
V=4; //[ft/s]
//Sound speed
c=sqrt(Ev*144/rho) //[ft/s]
L=3000; //[ft]
tc=2*L/c //[s]
//Closure time of 1sec is less than tc
//Pressure rise
delp=rho*V*c/144 //[psi]
pi=40; //initial pressur... |
6070235af4d880d17466b00adcfbacb810341ee4 | 3b9a879e67cbab4a5a4a5081e2e9c38b3e27a8cc | /Área 1/Revisão P1/ExemploErroDeArredondamentoCatastrofico.sce | 2e5af3bef811da9e4ebae9f8e5dd8491cf0fb70c | [
"MIT"
] | permissive | JPedroSilveira/numerical-calculus-with-scilab | 32e04e9b1234a0a82275f86aa2d6416198fa6c81 | 190bc816dfaa73ec2efe289c34baf21191944a53 | refs/heads/master | 2023-05-10T22:39:02.550321 | 2021-05-11T17:17:09 | 2021-05-11T17:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 311 | sce | ExemploErroDeArredondamentoCatastrofico.sce | x = 1/3
y = 0.333333
z_exato = 0.00000033333333333333333333333333333333333333333333333333333
z_aproximado = x-y
resultado = digitos_significativos(z_exato,z_aproximado)
format(25)
disp(z_exato)
disp(z_aproximado)
disp(resultado)
disp('Se perdeu 6 digitos de significancia por arredondamento catastrófico')
|
bf573c2d7cc30252931eaf604b2be3a4a114d5ca | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4.1/macros/percent/%p_d_p.sci | a79c3b4b2f7d3de8018c4c28bee0741bc84e5898 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | clg55/Scilab-Workbench | 4ebc01d2daea5026ad07fbfc53e16d4b29179502 | 9f8fd29c7f2a98100fa9aed8b58f6768d24a1875 | refs/heads/master | 2023-05-31T04:06:22.931111 | 2022-09-13T14:41:51 | 2022-09-13T14:41:51 | 258,270,193 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 236 | sci | %p_d_p.sci | function f=%p_d_p(p1,p2)
//f= %p_d_p(p1,p2) <=> f=p1./p2
//!
// Copyright INRIA
if size(p1,'*')==1 then
p1=p1*ones(p2)
elseif size(p2,'*')==1 then
p2=p2*ones(p1)
end
[p1,p2]=simp(p1,p2);
f=tlist(['r','num','den','dt'],p1,p2,[])
|
e96a07f551f2e2fb98227afaae06c912c13703a7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH2/EX2.18/2_18.sce | c879741631b9e5e05d715989f94946cacabb92fe | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,031 | sce | 2_18.sce | //ques-2.18
//Calculating weight of air and oxygen and weight of air when excess air is supplied and GCV and NCV
clc
C=750;//Weight of carbon in coal (in g)
H=52;//Weight of hydrogen in coal (in g)
O=121;//Weight of oxygen in coal (in g)
N=32;//Weight of nitrogen in coal (in g)
e=40;//Percentage of excess air su... |
fc8a614f749c75be3ac8fd67eb353d20f88a05a1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1370/CH7/EX7.15/exp7_15.sce | cb5a4eaa2249173d89838ebb9fb77328ffe4e1a5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 489 | sce | exp7_15.sce | //Example 7.15
clc
disp("Given values are R_L = 1 k-ohm, V_m = 10 V peak")
disp("case(i) Ideal diode")
disp("Cut-in voltage V_T = 0 V, R_f = 0 ohm")
edc=10/%pi
format(5)
disp(edc,"Therefore, E_DC(in V) = V_m/pi =")
idc=3.18
disp(idc,"Therefore, I_DC(in mA) = E_DC/R_L =")
disp("case(ii) Silicon diode")
disp... |
65b585ed90a0401929b8cb54ffcab402ea486035 | 449d555969bfd7befe906877abab098c6e63a0e8 | /61/CH3/EX3.6/ex3_6.sce | 286a9d6ba1165f781c10a4e726a2ed1eda6a0364 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 406 | sce | ex3_6.sce | //ex3.6
V_Z=12;
V_IN=24;
I_ZK=1*10^-3;
I_ZM=50*10^-3;
Z_Z=0;
R=470;
//when I_L=0, I_Z is max and is equal to the total circuit current I_T
I_T=(V_IN-V_Z)/R;
I_Z_max=I_T;
if I_Z_max<I_ZM then
I_L_min=0;
end
I_L_max=I_T-I_ZK;
R_L_min=V_Z/I_L_max;
disp(R_L_min,'minimum value of load resistance in ohms')... |
971faa237a2007646c9a7ac1ada3e20690d036e8 | 9aa95a74bbb2cde53d49cfbeb529fe858781b85c | /bisection.sce | b259cd0449a96e71021935518d0477c1a7c332c5 | [] | no_license | Killer2499/Scilab | 020807deb4ea75743af080761b65be086d05d491 | 322a592dcccad58dab48bcf52411aa5b26fcb8ff | refs/heads/master | 2020-03-10T09:08:15.979283 | 2018-04-12T19:57:09 | 2018-04-12T19:57:09 | 129,303,189 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 572 | sce | bisection.sce | function bisection()
xl=0;
xu=1;
xm=0.5;
y1=1;
ym=(0.5^3)-(5*0.5)+1;
if(y1*ym<0) then
xu=xm;
end
while (1)
m=(xl+xu)/2;
yl=(xl^3)-(5*xl)+1;
ym=(m^3)-(5*m)+1;
e=((m-xm)/m)*100;
if(-5<e&e<5) then
disp(m);
break;
... |
4e249d6c7178cca73f07a3ae6ffa3f5bff2b35f6 | f6134e0a162a059c42ec3ef8de2a63941d73936c | /Scilab_code/Local_Planner/testConversionQuat.sce | 46f66d531d3e3f2849370b9df77e48bcd932844f | [] | no_license | mxch18/SRL-WRT_pathPlanning | 38a1701934a4a0e919a6c1c7990092b242df72da | 6992febbbe103814d2cef5351a0e8917b183a2b0 | refs/heads/master | 2020-03-23T06:43:54.155192 | 2018-09-26T17:26:56 | 2018-09-26T17:26:56 | 141,226,032 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 394 | sce | testConversionQuat.sce | clear;clc;getd("./Local_Planner");
q1 = createQuaternion(0,[1 0 0]);
q2 = createQuaternion(%pi/2,[0 1 0]);
q3 = createQuaternion(-%pi/4,[1 0 1]);
q4 = createQuaternion(-3*%pi/2,[1 1 0]);
q5 = createQuaternion(-%pi/3,[0 0 1]);
vector = [-1 -1 1];
angle = %pi/2;
R = matrix_fromAngleVector(angle,vector);
[a,b] = angl... |
bb9c6f8d103b25b1dbe49120a4a3500a5f1a8eed | 50d8beb29ad9db96e5fa92983467b1a74e314045 | /Module/Easy-trajectory/Easy_traj_template.sce | 026e941bd8d0b1678c8799101a05988f11b92d84 | [] | no_license | TheTypoMaster/DOCKing_System | 6779b1aa778a487d7cc3f0b617e1c19151615f73 | 2d0418f3beedcd5f8b3b3b8449c0eeceea64e82a | refs/heads/master | 2021-01-16T00:22:08.900373 | 2015-10-02T13:07:26 | 2015-10-02T13:07:26 | 43,553,238 | 0 | 0 | null | 2015-10-02T13:07:03 | 2015-10-02T13:07:03 | null | UTF-8 | Scilab | false | false | 782 | sce | Easy_traj_template.sce | clear
clc
// Mean orbital elements, frame = ECI(EME2000)
sma = 6800.e3; // semi major axis (unit m)
ecc = 1.e-3; // eccentricity
inc = 45 * %pi/180; // inclination
pom = %pi/2; // Argument of perigee
gom = 5.5289325; // RAAN (Longitude of the ascending node)
anm = 0; // Mean anomaly
// Orbit type: Keplerian or Cir... |
ead61d9abfb9dfd994433e0d5df04d2e3bac05b4 | 9d0ab5efb08cc05ae362e8a981bdf5fa2debd7f6 | /02/AddSub16.tst | 9230272ac6c920ab7ea4ab7e3e596f6cbef4a617 | [] | no_license | nandha1nks/Nand2Tetris | bca96e324a1ff7ed425e33a37e3b7579d38fd29f | 82769b7a4e69b11c0bacd100991dfdf2b36a5f1d | refs/heads/master | 2023-01-02T11:57:25.843133 | 2020-10-29T10:10:27 | 2020-10-29T10:10:27 | 295,441,600 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,230 | tst | AddSub16.tst | // This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/02/Add16.tst
load AddSub16.hdl,
output-file AddSub16.out,
compare-to AddSub16.cmp,
output-list a%B1.16.1 b%B1.16.1 sel out%B1.16.1;
set a %B0000000000000000,
set ... |
01159adcfaf7c91e7f64173b89c2047e13199366 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3845/CH4/EX4.6/Ex4_6.sce | 781bdaa3ce073449ed777415f49e05273a4a2314 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 430 | sce | Ex4_6.sce | //Example 4.6
m=70;//Mass of the tightrope walker (kg)
theta=5;//Angle (deg)
g=9.8;//Acceleration due to gravity (m/s^2)
w=m*g;//Weight of the tightrope walker (N)
T=w/(2*sind(theta));//Tension (N), See Equation 4.52
//See textbook for derivation
printf('Tension in the wire = %0.1f N',T)
//Answer varies due to ... |
2f7e73a264eebcbc5312ceed0c8e951166271778 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2045/CH1/EX1.17/Ex1_17.sce | ad6a113f17f5f6299c3f24f25cee24d2fb55cc92 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 427 | sce | Ex1_17.sce | //pagenumber 35 example 17
clear
nd=10^14;//atoms per cubic centimetre
na=5*10^13;//atoms per cubic centimetre
un=3800;
up=1800;
q=1.6*10^-19;//coulomb
resist=80;//ohm metre
e1=5;//volt per metre
w=nd-na;
ni=(un+up)*q*resist;
p1=poly([1 w -ni^2],'q');
roots(p1);//p1=taken as 3.65*19^12
p1=3.65*10^12;
n=p1... |
530d0a664563e38af2d83dab9209c084cef0a068 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1760/CH5/EX5.28/EX5_28.sce | 6738c9e18611b96ff7228620c41fb4c3b98009aa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 194 | sce | EX5_28.sce | //EXAMPLE 5-28 PG NO-322
Z1=0.6-%i*1.2;
Z2=0.6-%i*1.2;
Z3=1.2+%i*0.6;
Z=Z1+(((Z2+3)*(Z3+%i*3))/(Z2+3+Z3+%i*3));
disp('i) Impedance (Z) is in polar = '+string (Z) +' ohms ');
|
744e1f3b734186edbd00b17ba2e640aedc2a3063 | 449d555969bfd7befe906877abab098c6e63a0e8 | /83/CH9/EX9.7/example_9_7.sce | 1fb5fd8ac80c65b5dbc59eaf251bc790019beec9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 770 | sce | example_9_7.sce | //Chapter 9
//Example 9.7
//page 355
//To evaluate Zbus using Current Injection method
clear;clc;
disp("We can approach this problem using XCOS simulation")
disp("In this simulation");
disp("1)For injecting unit current at bus1 keeping bus2 open circuit,we use a current source of 1 unit which is switched on from t=0 ... |
7bf75b5d4b00af59024556f59321b5dd7f323640 | 6a0d5ad524ce9b230c7e35af224317d515bb8f2d | /ResilienceMSY/Traj_msy.sce | 6edca17c04c0d86d76faaf2130bdc7380b080e50 | [] | no_license | mcuilleret/Entropic | b562ded98cbb74ad55579b6be5730767f24f4f2b | 0dd4e8bacb312015cd6c3b04b732ebd69de4ac23 | refs/heads/main | 2023-08-13T07:07:02.684153 | 2021-10-05T10:28:19 | 2021-10-05T10:28:19 | 413,753,215 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 965 | sce | Traj_msy.sce | chdir('C:\Users\matve\Desktop\Code These\ResilienceMSY\');
exec('fctdyn.sce');
exec('fctdyn_eco.sce');
////////////////////////////
//Parametre de lancement
////////////////////////////
nb_boats_Post_BAU=nb_boats_MSY;
aij=data_param(2:2+N_species-1,2:2+N_species-1);
choc=0
Y=20;
PopGuyTr=PopGuyTrim;
//PROBLEME
exec('Dy... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.