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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c26d122fe3bbc7a3c5de28156a6a25722c7e6df3 | 777ac7fa75f240739af167655f7fab95cba80ef6 | /docs/Basics.New/Var.tst | 17380c8c7c6e73468465e7a79da3841c6b646aca | [] | no_license | Karabur/TML-project | 8d498d8133f4b1ea8e8c3fe6f6f47f7ab5de4b5c | 0bfe006b0e66628427b769bc1be903875e77d5b7 | refs/heads/master | 2021-01-02T09:20:39.055827 | 2013-12-28T22:02:15 | 2013-12-28T22:02:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,613 | tst | Var.tst | Title:
TestName: Проверка правильности работы с внутренними переменными
и вычисленим арифметических выражений;
Difficulty: A1;
FullTime: 0;
Questions: 3;
EndTitle.
StartTest:
Question: 1;
Weight: 1.0;
BeginText:
Вычисляется выражение (Q1+2*Q2)*3=?
где Q1,Q2,Q3 - служебные переменные - результат вопроса Q1,Q... |
01aa9e01670bc2874fb5fa618189a28b9cbc91d5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1628/CH14/EX14.6/Ex14_6.sce | 95088a679150d4c14193e6e5754c136e3e3bf4c4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,034 | sce | Ex14_6.sce |
// Example 14.6
po=9000; // O/p power
n=0.9; // Efficiency of motor
pi=po/n; // I/p power
X=3; // Reactance
Vl=400; // Phase voltage
R=0.4; ... |
388807dd35d4ce228a98332dd952b6b2c2c94a0e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1332/CH19/EX19.9/19_9.sce | 8189d9600d5db25d265d82543f9a74100380b048 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,147 | sce | 19_9.sce | //Example 19.9
//Inhomogeneous 1st Order Hyperboolic Differential Equation
//Page no. 665
clc;clear;close;
//simple explicit method
printf('\n\nBy Simple Explicit Method:\n')
c=-2;dt=0.07;dx=0.2;
r=abs(c)*dt/dx;
printf('\n i\tx\t|\tj -->\t')
for i=0:6
printf(' %i\t',i)
end
printf('\n |\t|\t|\tt -->... |
b51a3085f5a137561e9ab75cd6619ecd7cc5a978 | 449d555969bfd7befe906877abab098c6e63a0e8 | /797/CH1/EX1.4e/1_04_example.sci | f8181c64e1e71fed925968541a05e91920605258 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 161 | sci | 1_04_example.sci | //Example 1-04 The Weight of One Pound-Mass
m = 1.00 //mass [lbm]
g = 32.174 //gravitational acceleration [ft/s^2]
lbf = 32.174 //as 1 lbf = 32.174 lbm.ft / s^2
|
6c01cb6522e855613d08b9a681f4108ebd25b657 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3764/CH2/EX2.5/Ex2_5.sce | e79409d460873f2bfeaf9598bcb6ac0818cb8a3d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,896 | sce | Ex2_5.sce | clc
//
//Variable declaration
d=9 // Diameter of the rod(in)
t=3/4.0 // Thickness of the rod(in)
ex=12 ... |
1d09b4246e904128934d52a8d400ad7700bf5bd2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /964/CH6/EX6.6/6_6.sce | 2773da35c713d421718f6de038910704e8fdcf87 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 397 | sce | 6_6.sce | //clc()
funcprot(0)
//f(x) = exp(-x)-x
for i = 1:5
if i==1 then
x(i) = 0;
else
if i==2 then
x(i) = 1;
else
x(i) =x(i-1) - (exp(-x(i-1))-x(i-1))*(x(i-2) - x(i-1))/((exp(-x(i-2))-x(i-2))-(exp(-x(i-1))-x(i-1)))
er(i) = (0.56714329 - x(i)) * 100 / 0.567... |
882ed000289ef8e64791d9571d0e1f9a5d22ee8d | c557cd21994aaa23ea4fe68fa779dd8b3aac0381 | /test/inc-before.tst | 50444826ba58d1502afb1e688cee2d6705854d05 | [
"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 | 108 | tst | inc-before.tst | ## Test incorporate command - before case
set testmode
read <min.fi
@min(=C) incorporate sample.tar
write -
|
1a2ccdb62574a693b07aff083bd33ec3c2b8b31d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3363/CH12/EX12.1/Ex12_1.sce | 0cf0969087dca58a69dec348591ac494dbc76631 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 144 | sce | Ex12_1.sce | //Example 12.1, page 435
clc
c=9*10^9
cm=1.6*10^-19
d=2.4*10^-10//in m
v=(c*cm*cm)/d
e=v/(1.6*10^-19)//in J
printf("\n The energy is %e ev",e) |
3a49d008b4e89f0e58187d7d51a0bf7e0030676b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2882/CH1/EX1.12/Ex1_12.sce | 1782ce7501dac155afac63ce140eb9ba1038823e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,773 | sce | Ex1_12.sce | //Tested on Windows 7 Ultimate 32-bit
//Chapter 1 Introduction to Electronics Pg no. 33 and 34
//Solved Problem 5
clear;
clc;
//Given Data
//Figure 1.34
Rm=2;//resistance of motor in ohms
V=10;//battery voltage in volts
Rpot=10;//maximum resistance of potentiometer in ohms
Ppot=100;//maximum power rating ... |
b2a244055bcaf9b1705ad0e133d5511b771ca771 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set6/s_Electric_Machines_-_I_M._Verma_And_V._Ahuja_695.zip/Electric_Machines_-_I_M._Verma_And_V._Ahuja_695/CH3/EX3.1/Ex3_1.sce | 357b881e99c24f07376b4d874b1406480e367c5d | [] | 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 | 485 | sce | Ex3_1.sce | errcatch(-1,"stop");mode(2);//Caption:Determine the (a)number of turns of primary and secondary windings (b)emf per turn
//Exa:3.1
;
;
A=500*10^-4;//in m^2
B_max=1.5;//in tesla
f=50;//in Hz
E_1=5000;//in volts
E_2=500;//in volts
S_f=0.85;//Stacking factor
N_1=int(E_1/(4.44*f*B_max*A*S_f));
disp(N_1,'(a)Num... |
717b23ff2d287856f4d37e82db1bc86bda43cfa6 | 24fb1e72f2244733455f40fda1ae95423110e82a | /gauss-elim.sce | 7cec9b843cace07d436139cb68bc023e453302a7 | [] | no_license | Aie-Aie/scilab | a4cbed5b58134009de1c084950a45da1e2b6f2db | 616568e7589f61dcda425410fbedc943b238f11b | refs/heads/master | 2021-09-11T20:42:55.522610 | 2018-04-12T05:29:52 | 2018-04-12T05:29:52 | 106,638,444 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 789 | sce | gauss-elim.sce |
function[]= substitute(A, n, B, X)
Xn = Bn/Ann
for i = 1:(n-1)
sum=0
for j = (i+1:n)
sum = sum + Aij * Xj
Xn = (Bn - sum)/ Ann
function [] = eliminate(A, S, n, B, tol, er)
for k = 1:n-1
pivot(A, B, S, n, k)
if abs(Akk/Sk) < tol then
er = -1
for i =(k+1:n)
factor = ... |
788aa8a7b7a3608a58c6c71c321502df69355164 | 4e7aac39f36916a964f4664f3198d7c87e762253 | /scilab/find_zeros.sce | 1528917688deedeb2f6415ac93fe959404150724 | [] | no_license | kirillin/manipulator_dynamics | 349c01fd5aef8b42734edc497a7d48ee49aced9c | a773091ea5a62493b77885a0e2df6491282faa4c | refs/heads/master | 2021-10-22T13:15:09.489858 | 2019-03-10T23:00:56 | 2019-03-10T23:00:56 | 108,987,774 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 642 | sce | find_zeros.sce | clc();
clear;
N = 50;
P = 70;
for i = 1:N
name = "/media/data/evo/robotics_report/ros_packages/youbot_arm_control/calculations/data_for_identification/ee/EE" + string(i-1) + ".txt";
r = read(name, -1, 5);
E((i-1)*5+1:i*5,1:P) = r'
end
function v=isZeroVec(vec)
n = max(size(vec))
flag = %t;
for... |
180c4b0da48683ae996a0c5b0652fdff09941b1e | 449d555969bfd7befe906877abab098c6e63a0e8 | /278/CH11/EX11.10/ex_11_10.sce | b99cd939c45c0e4d5a4ffce6c2b33db86a4b9c27 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 411 | sce | ex_11_10.sce | //find size mild steel
clc
//solution
//given
p=0.84//N/mm^2
ft=56//N/mm^2
//ref fig 11.29
//since pince is 350 mm,therfor area ia A
A=350*350//mm^2
P=A*p//N
printf("the value of force acting is,%f N\n",P)
//let dc be core diameter
pi=3.14
//P=(pi/4)*dc^2*ft//N
dc=sqrt((P*4)/(pi*ft))
printf("the value o... |
bb6cc557539a246b43d5434adf72301d4a2fddfc | 449d555969bfd7befe906877abab098c6e63a0e8 | /797/CH3/EX3.10.e/3_10_example.sci | 1c394d6b9668d82521f7f63df251bb7f2ce37e4a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 199 | sci | 3_10_example.sci | //Example 3-10 Measuring specific gravity by hydrometer
D = 1 //diameter of hydrometer [cm]
h = 10 //height of water surface from the bottom of hydrometer [cm]
rho = 1000 //density of water [kg/m^3]
|
94eda9b672b29a9f63d78dd9da1f48e11aeebe43 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1733/CH1/EX1.16/1_16.sce | 73f054c8ac7b659c8ca811245bc179ada046756f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 1_16.sce | //1.16
clc;
l=0.2;
w=0.01;
d=0.01;
the_cond=220;
the_res=l/(the_cond*w*d);
printf("Thermal resistance = %.3f degree C/W", the_res)
T1=30;
P=3;
T2=P*the_res+T1;
printf("\nTemperature of the surface = %.2f degree C", T2)
|
10209d57b7c03b1087d83b29dcab052a923fbab6 | 7fa099e9d565bee9cdd572755843852769c99498 | /tests/str-001-cksm.tst | 5956e667e1d658d6e2c526fba92970e8624fcfb2 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"BSD-2-Clause"
] | permissive | Peter-J-Jansen/SDL-hyperion | 0d2a16f1d837fa27b8f0aaa927dc84a8ebdb44f6 | 58578601d7a34fc11f050b0ac4fd425a4c0422eb | refs/heads/master | 2023-04-27T03:42:18.421272 | 2022-11-27T00:16:06 | 2022-11-27T00:16:06 | 238,422,138 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 258 | tst | str-001-cksm.tst | *Testcase str-001-cksm: Test CKSM Instruction
# Created and placed into public domain on 2018-12-30 by Bob Polmanter.
# Runtest *Compare dependency removed on 2022-03-08 by Fish.
sysclear
archmode esame
loadcore "$(testpath)/str-001-cksm.core"
runtest
*Done
|
72bc83208b3bf5bba7ad8ea9436ac582273aebec | 931df7de6dffa2b03ac9771d79e06d88c24ab4ff | /Target Acquisition Flick 300ms Large.sce | ef1370b32207cff0feaf850d04cd82cd64f13d8e | [] | no_license | MBHuman/Scenarios | be1a722825b3b960014b07cda2f12fa4f75c7fc8 | 1db6bfdec8cc42164ca9ff57dd9d3c82cfaf2137 | refs/heads/master | 2023-01-14T02:10:25.103083 | 2020-11-21T16:47:14 | 2020-11-21T16:47:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,035,060 | sce | Target Acquisition Flick 300ms Large.sce | Name=Target Acquisition Flick 300ms Large
PlayerCharacters=Player
BotCharacters=target.bot;250ms.bot;300ms.bot;350ms.bot;400ms.bot;450ms.bot;500ms.bot
IsChallenge=true
Timelimit=60.0
PlayerProfile=Player
AddedBots=target.bot;250ms.bot
PlayerMaxLives=0
BotMaxLives=0;0
PlayerTeam=1
BotTeams=2;2
MapName=cube_1w... |
bc6b6b3f7bdb0570e76ee59ca44e3a4994dbb681 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2339/CH5/EX5.11.1/Ex5_11.sce | 864b8a225a0a271f15c4b0371fc7ffc1324a2416 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 361 | sce | Ex5_11.sce | clc
clear
Ma=1100; //in kg/hr
CV=33000; //in kJ/kg
Tfw=46; //in C
P=10; //in bar
x=0.9; //Dryness Fraction
Eff=0.81; //Efficiency
Hf=762.8;
Hfg=2015.3;
H=Hf+(x*Hfg);
Hfw=192.6;
Mf=(Ma*(H-Hfw))/(CV*Eff);
printf('Amount of Coal Consumed ... |
27b803ea49b1c8c5fa986639809c44b95658de22 | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/Computing/testexo5n.sce | 588924299833ceee9ed3d1cdfb681334fd7d2040 | [] | no_license | markusmorawitz77/Scilab | 902ef1b9f356dd38ea2dbadc892fe50d32b44bd0 | 7c98963a7d80915f66a3231a2235010e879049aa | refs/heads/master | 2021-01-19T23:53:52.068010 | 2017-04-22T12:39:21 | 2017-04-22T12:39:21 | 89,051,705 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 73 | sce | testexo5n.sce | exec('scilab-base-calculs-testexo5l.sce',-1) //to delete
u14=[u12;u11]
|
6a1778bf29a27857b73960babd27c86a468c01d4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1514/CH18/EX18.8/18_8.sce | 19976ebcb02ec36d8cf0b1e92432d0b690c915c5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 397 | sce | 18_8.sce | //chapter 18
//example 18.8
//page no 581
clc;
clear;
//given
eta=0.7;
Vbb=20;
VR1=eta*Vbb;
I1=2;//mA
R1=14/I1;
printf("\nR1=%d kohm,use standard value 6.8 kohm",R1);R1=6.8;
R2=(Vbb-14)/I1;
printf("\nR2=%d kohm,use standard value 2.7 kohm",R2);R2=2.7;
Rbb=R1+R2;
Vp=0.7+(Vbb*6.8)/Rbb;
Vv=1;//anode to cathode voltage dr... |
6bfa6c9ae91383b48dfc15fa8a25661384f6796d | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/frep2tf.man.tst | 5caa8800a954ca302fa6f8755c07117ed07d7838 | [
"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 | 823 | tst | frep2tf.man.tst | clear;lines(0);
s=poly(0,'s');
h=syslin('c',(s-1)/(s^3+5*s+20))
frq=0:0.05:3;repf=repfreq(h,frq);
clean(frep2tf(frq,repf,3))
Sys=ssrand(1,1,10);
frq=logspace(-3,2,200);
[frq,rep]=repfreq(Sys,frq); //Frequency response of Sys
[Sys2,err]=frep2tf(frq,rep,10);Sys2=clean(Sys2)//Sys2 obtained from freq. resp of Sys
[frq,r... |
6087c74afc0bc80082d75b3be58df65f818e7825 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3862/CH4/EX4.8/Ex4_8.sce | 2d226987d5db50f328cafc8f73ab4a8c77b004fe | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 555 | sce | Ex4_8.sce | clear
// The composite section is divided into three simple figures, a triangle, a rectangle and a semicircle
//
//variable declaration
A1=1.0*3.0*4.0/2.0 //Area of 1,m^2
A2=6.0*4.0 //Area of 2,m^2
A3=1.0*%pi*(2**2)/2 //Area of 3**m^2
//The coordinates of cent... |
99b61a2a67b51459778b4ab3cfe41269d35cd65a | 449d555969bfd7befe906877abab098c6e63a0e8 | /2210/CH5/EX5.23/5_23.sce | f48e3d1fd2a3d18f031f0d68b54811406f9b4c9f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 503 | sce | 5_23.sce | //Chapter 5, Problem 23, figure 5.65
clc
Rs=100 //resistance in ohm
Rl=1000 //resistance in ohm
Q=15 //Q factor
//calculation
Rv=Rl/(Q^2+1)
Xp2=Rl/Q
Xs2=Q*Rv
Q1=sqrt((Rs/Rv)-1)
Xp1=Rs/Q1
Xs1=Q1*Rv
printf("Zs = %d ohm\nXp1 = %.3f ohm \nXs1... |
4f785cadade078e97ab8f00cbf489481c3e19f79 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1760/CH2/EX2.29/EX2_29.sce | 27530e09444c819ef68206ec4d2687ddc04cda09 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 314 | sce | EX2_29.sce | //EXAMPLE 2-29 PG NO=77-78
V=230;
F=50; //Frequency
C=10*10^-6; //Capacitor
Xc=1/(%pi*2*F*C);
Bc=1/Xc;
I=V/Xc; //susceptance current
disp(' Xc is = '+string(Xc)+' ohms');
disp(' Bc is = '+string(Bc)+' siemens');
disp(' Current is = '+string(I)+' A');
|
e0778b35b49b6f878bf15857f6ab472812fd1307 | 449d555969bfd7befe906877abab098c6e63a0e8 | /770/CH1/EX1.2/1_2.sce | c8c82624b5955afa48a29412bab5f170c515c811 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 567 | sce | 1_2.sce | clear;
clc;
//Example - 1.2
//Page number - 8
printf("Example - 1.2 and Page number - 8\n\n");
// Given
P = 1;//[atm] - Atmospheric pressure
P = 101325;//[N/m^(2)]
R = 8.314;//[J/mol*K] - Universal gas constant
T = 30;//[C] - Temperature of air
T = 30+273.15;//[K]
V = 5*5*5;//[m^(3)] - Volume of the room... |
306ebac9e4dbf558063dfdf91df613369b85c187 | 449d555969bfd7befe906877abab098c6e63a0e8 | /343/CH1/EX1.31/ex_31.sce | 035c1cc3806be8a6cb0be6bd87b3c9701435c5de | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 181 | sce | ex_31.sce | A=[1,-5,3;5,-1,-9;7,1,-5] //Matrix of I1,I2,I3 Coeffecients by KVL equations
B=[0;0;1];
[I]=inv(A)*B
disp("Amperes",I(1,1)+I(2,1),"Current supplied by the battery"); |
7cf7c904cbf3fba8780d13bc569a6c900a47e059 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1538/CH7/EX7.7/Ex7_7.sce | 4ce5ea7e2bd5756708abd8a60dae41f1e52919af | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 529 | sce | Ex7_7.sce | //example-7.7
//page no-217
//given
//ratio of rate of diffusion at 1350 and 110 degree C is 8
//so
//dM/dt at 1350 degree C(1623K)/dM/dt at 110degree C (1373K)=8
//so
Ratio=8
//we know that
//Dx=D0*exp(-Q/R/T)
//so Dx (at 1623 K)/Dx (at 1373 K)= exp(-Q/R/T1-Q/R/T2)
//where
T1=1623 //K
T2=1373 //K
//ga... |
322473754813fe667c4c7169006fad593deea28d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1994/CH9/EX9.29/Example9_29.sce | 7394cf4f88a096981679cad2857c324d2f052e2f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 500 | sce | Example9_29.sce | //Chapter-9,Example9_29,pg 9_83
Pr=12*10^3//rated output
V=200
Rsh=80
N1=800
n=0.9//efficiency
Out=0.8*Pr//output is 80% of rated
In=Out/n//input
TL=In-Out
//for max. efficiency
Iln=70//new current
//TL=Wc+(Ia1^2)*Ra
//bur Wc=(Ia1^2)*Ra
Wc=TL/2
Il=In/V
Ish=V/Rsh
Ia1=Il-Ish
Ra=Wc/(Ia1^2)
Ia2=Iln-Ish
W... |
cbe7bf0d9c8f9d883341e1c8040a6c715a47fc58 | 449d555969bfd7befe906877abab098c6e63a0e8 | /662/CH6/EX6.22/ex6_22.sce | ea1a66fa3ee7bfaf2808fbe1219b967a3fb2068f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,315 | sce | ex6_22.sce | //Programming Example 6.22
//Solution for an algebraic equation
flag=%T; //%T and %F represent boolean TRUE and boolean FALSE respectively
count=0;
//read input parameters
printf("Initial guess: ");
guess = scanf("%f");
while (flag) //begin the mai... |
419361542e9adb0d8d98a6f94ba9e4349d786c7e | 938da43ec87a0cee7ed50b02627775c4a679b234 | /Waterloo_For_SciLab/wbuilder.sci | 0baf76537e4c98ea47658ea4f510b84da0a0a07e | [] | no_license | irondukepublishing/waterloo | bcce869bf83d8987ceaa7382f0d9f129d14fb3bf | c764b4b13d85af2e58e4e493d867e8a1c861a2e1 | refs/heads/master | 2021-04-09T10:48:40.135877 | 2016-12-30T21:55:54 | 2016-12-30T21:55:54 | 62,012,985 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 61 | sci | wbuilder.sci | function out= wbuilder(varargin)
out=varargin{1}
endfunction
|
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’);
|
4ff0e8ef95bab3308aa9b5c69ed0143a8c93d818 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2168/CH23/EX23.4/Chapter23_example4.sce | 690bd338e45ac59e8165020553c6d262c7db7811 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 697 | sce | Chapter23_example4.sce | clc
clear
//Input data
n=4//Number of cylinders
d=0.2//Bore in m
l=0.3//Stroke in m
N=300//Speed in r.p.m
af=5//Air to fuel ratio by volume. In textbook it is given as 4 which is wrong
nv=78//Volumetric efficiency in percent
CV=2200//Calorific value in kcal/cu.m at N.T.P
bth=23//Brake thermal efficiency in pe... |
65876052787094aebae022ba86d17432c47d30e2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1382/CH2/EX2.46/EX_2_46.SCE | 99c5fcb39ccbeaba073112161070a61d1993d527 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 725 | sce | EX_2_46.SCE | // Example 2.46:R1,R2 ,Re
clc;
clear;
close;
S=2;//stability factor
Vbe=0.8;//
Vcc=20;//collector voltage in volts
Rc=5;//clollector resistance in killo ohms
Vce=11.5;// Collector to emitter voltage
Ic=1.5; //in milli amperes
Beta=50;//gain
Ib=(Ic*10^-3)/Beta;// Base current in micro ampere
Re=(Vcc-Vce-(Rc... |
2fa800208e21e183d9ab724407e7c64572fd5330 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3636/CH5/EX5.3/Ex5_3.sce | 38dd2fddba708b81bb0f4b0f83738a7f3dca6c3e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 342 | sce | Ex5_3.sce | clc;
clear;
Na=5*10^18 //doping densities in cm^-3
Nd=5*10^15 //in cm^-3
ni=1.5*10^10 //in cm^-3
epsilon_s=11.7 //in F/cm
epsilon_0=8.85*10^-14 //in F/cm
Vbi=0.838 //built-in potential in V
e=1.6*10^-19 //in J
//Calculation
W=((2*epsilon_s*epsilon_0*Vbi*(Na+Nd))/(e*Na*Nd))^0.5
mprintf("Total space-charg... |
5ceb3ca0ae6be6cdd3350ef88dfc955418794997 | 36c5f94ce0d09d8d1cc8d0f9d79ecccaa78036bd | /Tile Frenzy - X-Axis Small.sce | 11a1a0d75aa3ef94a9c9fd93ce8ecf933b1a1156 | [] | 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 | 97,560 | sce | Tile Frenzy - X-Axis Small.sce | Name=Tile Frenzy - X-Axis Small
PlayerCharacters=TileFrenzy Challenger;TileFrenzy Weapon Overrides;TileFrenzy Zooms 10sec
BotCharacters=TileFrenzy Cube.bot;TileFrenzy Sphere.bot
IsChallenge=true
Timelimit=60.0
PlayerProfile=TileFrenzy Challenger
AddedBots=TileFrenzy Cube.bot;TileFrenzy Cube.bot;TileFrenzy Cube.bot
Play... |
ca4f34eb07c98c67f706b2f28513e3132512dba1 | 717ddeb7e700373742c617a95e25a2376565112c | /22/CH10/EX10.10/ch10ex10.sce | ef4197be56c5871ff6b3a0128669dc1519889c36 | [] | 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 | 111 | sce | ch10ex10.sce | A=[0 1;-2 -3];
[V,lambda]=spec(A);
B=[1;2];
Bhat=P*B
disp(P,"P=")
disp(Bhat,"B^=")
disp(lambda,"lambda=") |
3d17a2bb59105b635d5b61076002a63c5648f624 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1202/CH11/EX11.7/11_7.sce | a1d0a75c77646009ad3ca2a8905a8ce9f5abc8ab | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,271 | sce | 11_7.sce | clear
clc
//Example 11.7
disp('Example 11.7')
K=2;theta=1;tau1=10;tau2=5; //Model parameters
s=%s;
delay=(1-theta/2*s+theta^2/10*s^2-theta^3/120*s^3)/(1+theta/2*s+theta^2/10*s^2+theta^3/120*s^3);//Third order pade approx
G=K*delay/((tau1*s+1)*(tau2*s+1));
Ku=[8.01]';//Trials for various values of Ku can be done by c... |
e8f1228f4c5ea577d0ad813927da66f15fdda52b | 449d555969bfd7befe906877abab098c6e63a0e8 | /2243/CH2/EX2.2/Ex2_2.sce | 2572cf078658e9f5dce0b3b4f328897eb6586f2f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,250 | sce | Ex2_2.sce | clc();
clear;
// wave y= 2*sin(10*pi*t - (pi*x)/40 + pi/4)
// (a) Plot the space profile at t= T/4
// Comapring the given Equation with y= A*sin(omega*t - k*x + phi)
omega = 10*%pi ; //Angular frequency in rad/s
k= %pi/40 ; // Wave number in rad/m
T= 1/5 ; // 2*pi/T = 10*pi , so Time period is 1/5 s
lambda = ... |
8503e07e258621e0471cb87e4ef76111dc991c65 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1073/CH3/EX3.52/3_52.sce | 17afa555da36e48314e505b4c6392251e6022a6d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 3_52.sce | clc;
clear;
//Example 3.52
m1_dot=50 // For horizontal position[kg/h]
Do=10 //[mm]
Do=Do/1000 //[m]
L=1 //[m]
//For 100 tubes n=10
n=10;
//We know that
//m_dot=Q/lambda=h*A*dT/lambda
//m_dot is proportional to h
//m1_dot prop to h1
//m2_dot propn to h2
//m1_dot/m2_dot=h1/h2
//or :
m2_dot=m1_dot... |
af3575a6b94ab516a374e3bba10b3083397f73d5 | 6802d20f76f56f855fcfe45543132d077e591474 | /App/js/app/components/pageHeader.tst | d7b1c37de7a1b2605bf4f97d38229cd0bbd92a0c | [] | no_license | mike-ward/Nancy.Start | 5c16844554345eecb6502c696f0abfe75062fd29 | ff5804c48b4ec18a8793a9d2eb1ff3bac6fe5788 | refs/heads/master | 2021-01-09T05:24:39.589221 | 2018-02-19T18:42:53 | 2018-02-19T18:42:53 | 80,761,860 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 242 | tst | pageHeader.tst | describe('PageHeader', () => {
it('should contain a div with a class of .header', () => {
const vnode = App.Components.pageHeader.view();
expect(vnode.tag).toBe('div');
expect(vnode.attrs.className).toBe('header');
});
}); |
7ac042e376a014a7cb775abfaba372f2abb52e57 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.3.1/macros/scicos_blocks/BOUND_f.sci | 057dc1e3178ce83838b5e349d3725e47ba9802f2 | [
"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 | 1,713 | sci | BOUND_f.sci | function [x,y,typ]=BOUND_f(job,arg1,arg2)
x=[];y=[];typ=[];
select job
case 'plot' then
standard_draw(arg1)
case 'getinputs' then
[x,y,typ]=standard_inputs(arg1)
case 'getoutputs' then
[x,y,typ]=standard_outputs(arg1)
case 'getorigin' then
[x,y]=standard_origin(arg1)
case 'set' then
x=arg1;
graphics=arg1(2)... |
d9c6bd90681e7d77bf6e04a53c62e04ea0805aad | 8df791f9387f1c5538e8fb4cccb82ea4a130e879 | /itpp_qpsk_mod/builder_gateway_cpp.sce | 3fb07f9455b39fc99d0dc3b9ae21d4f16dc8e732 | [] | no_license | tripathiaishwarya/itpp_repo | b94552677dbbfc2ed461d59de6a7efde37ec547e | fcd832287f3651b192339dbdbf15933045ca8aff | refs/heads/master | 2021-01-10T21:54:05.263442 | 2015-06-25T08:19:01 | 2015-06-25T08:19:01 | 37,813,835 | 2 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 374 | sce | builder_gateway_cpp.sce | // Builder gateway function for QPSK modulation
function builder_gw_cpp()
WITHOUT_AUTO_PUTLHSVAR = %t;
tbx_build_gateway("skeleton_cpp", ..
["qpsk_mod","itpp_qpsk_mod"], ..
["itpp_qpsk_mod.cpp"], ..
get_absolute_file_path("builder_gateway_cpp.sce"), [], "-litpp");
endfunction
builder_gw_cpp();
cl... |
9135a20bc8c4b6baf652ba5cd0e0590f0f9b46a6 | 9d0d8cfb131efa34cafc47d938fac6ddcee0750c | /miniproject/1prob/4_get_period.sce | 3dabc304ceadf03b0ec8a5664aa5f136a10dedbe | [] | no_license | kazipetasurya/ee340 | 52c688b028a28effa88dc4a9eb653735e4fc19bc | 3885ad37122817c03d9a51d9f7df2c9c9f5f7251 | refs/heads/master | 2021-01-18T15:10:53.081056 | 2012-09-07T06:43:54 | 2012-09-07T06:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 606 | sce | 4_get_period.sce | //Write a program to obtain the period of x(n) from the noise
//corrupted sinusoidal sequence y(n).
//
function[fy,periodoffunc]=get_period(y)
fy=fft(y)
//disp(length(fy))
N=length(y)
nvec=linspace(0,N-1,N)
//disp(length(nvec))
//xset('window',6)
//plot(nvec(1:N/2),fy(1:N/2))
maxfval=0
... |
c75c6691bca5ab473ac0cb59ddd7841ef7797ab5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3769/CH9/EX9.32/Ex9_32.sce | c424e8942ebfd552475f3299b1f3267085eeaf19 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 258 | sce | Ex9_32.sce | clear
//Given
K=3*10**-9 //Nm/deg
a=36
n=60
B=9*10**-3 //T
A=5*10**-5 //m**2
//Calculation
I=(K*a)/(n*B*A)
//Result
printf("\n Maximum current is %0.3f mA", I*10**3)
|
75fab0d53de2d830ad16eaad76507b1943442e8f | 940067908a620ecf3af07168e750cd30769047e4 | /Code1.sce | e443b27871ff27f02570212a97912577a24fa12f | [
"MIT"
] | permissive | davidfotsa/Numerical_Methods_With_Scilab | 9bada60e6feba012fa7a52ce0e0ea85a40afd0d4 | a3c731888b8a7a77f0d851210bc62e00e348ace9 | refs/heads/main | 2023-08-01T13:11:14.528993 | 2021-09-28T04:19:38 | 2021-09-28T04:19:38 | 407,939,339 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 604 | sce | Code1.sce | funcprot(0)
//disp('Ceci est certainement ton premier code Scilab !'); // Permet d'afficher un texte
//disp("Du courage !");
//Z=zeros(10,5);
//disp(Z);
//U=ones(4,5);
//disp(U);
//x=[2,4,7,9]';
//V=[x.^0,x.^1,x.^2,x.^3];
//disp(V);
x=[2,4,7,9];
y=[20,30,10,60];
z=[x;y];
// Le modèle
function res=... |
c962e95261b75b2891c4b5127b8ee8875f6d031c | 449d555969bfd7befe906877abab098c6e63a0e8 | /291/CH2/EX2.3c/eg2_3c.sce | 192908c098e16447bc7850bdc6698faca8483777 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 233 | sce | eg2_3c.sce | age= [15 16 17 18 19 20];
frequencies = [2 5 11 9 14 13];
i=1;
for j=1:6
for k = 1:frequencies(j)
final_age(i) = age(j);
i = i +1 ;
end;
end
final_median = median(final_age);
disp(final_median); |
452f94705cec01b678754d119e185283a28875f3 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set13/s_Introductory_Fluid_Mechanics_J._Katz_2783.zip/Introductory_Fluid_Mechanics_J._Katz_2783/CH4/EX4.8/Ex4_8.sce | 8f0fbe83b5474e0f5eb226838e8f42e8b85f0ef2 | [] | 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 | 246 | sce | Ex4_8.sce | errcatch(-1,"stop");mode(2);
//initialization of new variables
h=20 //cm
g=9.8 //m/s^2
rho_w=1000 //kg/m^3
rho_a=1.2 //kg/m^3
//calculations
dP=rho_w*g*h*10^-2
U=sqrt(2*dP/rho_a)
//results
printf('Air speed is %.2f m/s ',U)
exit();
|
13e2b429d58e0bbd3deb1aa249fe70ce43c74617 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH1/EX1.7/1_7.sce | cc2cf901de89c6f1fce0364fa8a8cd2570d83857 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 594 | sce | 1_7.sce | //ques-1.7
//Calculating amount of lime and soda required for softening hard water
clc
A=20;//content of Calcium cation (in ppm)
B=18;//content of Magnesium cation (in ppm)
C=183;//content of Hydrogen carbonate anion (in ppm)
a1=(A/40)*100;//CaCO3 equivalent of A (in ppm)
a2=(B/24)*100;//CaCO3 equivalent of B (i... |
c944c62b31cd0a93ed7f205475e12bed9ab864e6 | 7ece83a3894d7610e8367eb0a19f9d50ba5e3ce5 | /mex/point_mesh_squared_distance.m | db96650f909fe2ff20c3a34c2b2875c741957ae5 | [
"Apache-2.0",
"MIT"
] | permissive | alecjacobson/gptoolbox | b4d1a3cb6cd604f8dcf2527d08c9a63efc110b72 | dda5c0d3ae7773837945631463134e577990263a | refs/heads/master | 2023-08-20T05:50:46.191141 | 2023-08-08T17:38:45 | 2023-08-08T17:38:45 | 17,057,368 | 598 | 189 | MIT | 2023-05-22T23:41:52 | 2014-02-21T13:46:13 | MATLAB | UTF-8 | Scilab | false | false | 884 | m | point_mesh_squared_distance.m | % Compute distances from a set of points P to a triangle mesh (V,F)
%
% [sqrD,I,C] = point_mesh_squared_distance(P,V,F);
%
% Inputs:
% P #P by 3 list of query point positions
% V #V by 3 list of vertex positions
% F #F by (3|2|1) list of triangle|edge|point indices
% Outputs:
% sqrD #P list of smallest squ... |
564afe61f9bc1d06e103c3ad7e3fa6e97d894e6a | 4fd0e2f6a12d14a38ca3496e2e9be6d2f8d550e9 | /utils.sce | 74aa7b409cb55873d3cdf0c24f561b347676539d | [] | no_license | jwist/nmr-mutualdiffusion | 53b0206fac6640357b4cf032ae2f7cdaa0669fc0 | cd66a7e4a35d17488440ce5ab0127ce36ecaf806 | refs/heads/master | 2020-07-04T21:34:40.936935 | 2019-08-14T21:12:56 | 2019-08-14T21:12:56 | 202,426,044 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,046 | sce | utils.sce | function [Spectrum,GH] = R_data(path,GH),
for i = 1:size(GH,2)
idr=mopen(path+string(GH(1,i))+'/acqus','r');
acqus = mgetl(idr,-1); mclose(idr);
[w,r]=grep(acqus,'##$SPOFFS');
[a,b,c,d]=regexp(acqus(w+1),'/(?P<digit>\D*\d+)\s+/');
GH(2,i) = strtod(d(1));
idr=mopen(pat... |
d23a7b3814348bae46c8a84f6c664841de5cc42c | 03984e719d7492c5989e6daf1506148c61aa45cf | /Tinh Toan Co Dac _ Scilab/tinhcokhi.sce | e15279be2254f7ec3b0b1a14319ad1f45ab79a93 | [] | no_license | bkt92/chemeng_calc_collection | e07cf63a0fbfd967d381e4098f5512d9b0403fba | e07d6a16297d32c85abc47c403deb421d8495bf5 | refs/heads/master | 2021-01-23T12:21:33.651560 | 2017-06-02T11:57:38 | 2017-06-02T11:57:38 | 93,152,647 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,209 | sce | tinhcokhi.sce | //-----------------------------------//
// Copyright (C) Bùi Khắc Tú
// <bkt92@yahoo.com.vn>
// Date of creation: Oct 14, 2013
//-----------------------------------//
//I.Buồng Đốt
//Tính số ống trong buồng đốt:
F=81;
n=F/(%pi*dtr*H)
n=439;
//** Ống tuần hoàn trung tâm.
Fo=(0.25*%pi*n*dtr^2)/4
dtro=sqrt(4*Fo/%pi)
//-->... |
91a4841764d2fd398ecde4b6c150604cdb38a3c0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2657/CH18/EX18.13/Ex18_13.sce | c742bf963367282e34e9dfef86b9defceb545b63 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,740 | sce | Ex18_13.sce | //Calculations on four stroke engine
clc,clear
//Given:
d=150,l=250 //Bore and stroke in mm
Li=50 //Length of indicator diagram in mm
Ai=450 //Area of indicator diagram in mm^2
ISR=1.2 //Indicator spring rating in mm
N=420 //Engine speed in rpm
T=217 //Brake torque delivered in Nm
m_f=2.95 //Fuel consumption i... |
1e55f72a172b59c92ecc070635e91601f5133080 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1931/CH2/EX2.3/3.sce | 228e3b70e9661355d7beb5c637b1f0929adf1e93 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 333 | sce | 3.sce | clc
clear
//INPUT DATA
f=0.09*10^6//Frequency of Ultrasonic source in Hz
t=0.55//time in sec
v=1800//velocity of sound in water in m/s
//CALCULATION
D=(v*t)/2//Depth of sea in m
W=(v/f)//Wavelength of ultrasonic pulse in m
//OUTPUT
printf('The depth of sea is %im \n The wavelength of ultrasonic pulse is %... |
b58797ec2133467843c33d0141f6a8b4b5acecab | 449d555969bfd7befe906877abab098c6e63a0e8 | /770/CH3/EX3.15/3_15.sce | 7802701b6eec77e71970870f45f7142942dc978b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,214 | sce | 3_15.sce | clear;
clc;
//Example - 3.15
//Page number - 106
printf("Example - 3.15 and Page number - 106\n\n");
//Given
T_1 = 1000;//[K] - Temperature at entry
P_1 = 0.6;//[MPa] - Pressure at entry
P_2 = 0.2;//[MPa] - Exit pressure
Vel_1 = 50;//[m/s] - Entry velocity
Y = 1.4;// Ratio of heat capacities
Mol_wt = 28... |
77983b0b16b6cf74a4b20cf5521858cdaedfb9de | 033c30e726845395bef755577930250cf150bb5b | /TypewriterTemplates/ClassProjector.tst | 17502fe1b9a21f040966a72c2f2485bf21c81011 | [] | no_license | Beej126/InventoryPrototype | 1226e4af5e721210536f42d941bcad4b93605aa3 | 97acb837ecec10943830e866bcda8e53dbdcfc95 | refs/heads/master | 2023-05-24T12:21:57.358983 | 2019-07-14T10:52:48 | 2019-07-14T10:52:48 | 196,866,697 | 0 | 0 | null | 2023-05-06T07:15:49 | 2019-07-14T17:47:15 | CSS | UTF-8 | Scilab | false | false | 9,456 | tst | ClassProjector.tst | ${
//**********************************************************************
//BIG TIP!! be careful not to use "crazy" stuff like single quotes
//or multiline comments here in the top helper code section
//***********************************************************************
// Enable extension methods by ... |
cc9e6303d4093c2c1b05f259490ac64dd3eb89c4 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4/Unix-Windows/scilab-2.4/macros/mtlb/mtlb_find.sci | 43775c49a77ff2e59984dab8865312bb83d7c815 | [
"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 | 64 | sci | mtlb_find.sci | function k=mtlb_find(b)
k=find(b)
if size(b,1)<>1 then k=k',end
|
0e42a2a9b6bb44ff257e88a68aa0b48074fa1168 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1991/CH4/EX4.4/4.sce | f2669b31856fd00c6e6c1037f2b7f61257dee628 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 282 | sce | 4.sce | clc
clear
//INPUT DATA
v1=330 //speed of sound
t3=303 //fundamental temperature for the air
t1=273// 0deg C
//calculation
v3=v1*(t3/t1)^0.5 //new speed of sound
f=v3/0.66 //frequency
fb=f-520 //frequency of beats
//output
printf("the frequency of beats is %3.3f Hz",fb)
|
0bb35ed63e0e566e96db662abb93a19b41c1591e | 449d555969bfd7befe906877abab098c6e63a0e8 | /260/CH5/EX5.16/5_16.sce | 3e22cf362b5529a005e22a4216499956ce4feff4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 144 | sce | 5_16.sce | //Eg-5.16
//pg-257
clear
clc
A=[4 -2 2 8;-2 6 2 4;2 2 10 -6;8 4 -6 12];
T=hess(A);
disp("required tridiagonal matrix is")
disp(T) |
b1d9588be320aa0ab94f500358252b514c8b09d9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1898/CH5/EX5.17/Ex5_17.sce | 6c0d69f9727c994bfe152d1530e48b55c52c1e83 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 720 | sce | Ex5_17.sce | clear all; clc;
disp("Scilab Code Ex 5.17 : ")
//Given:
tou_allow = 90; //MPa
phi_allow = 2*10^-3; //rad
a = 200; //mm side
angle = (60*%pi)/180;
h = a*sin(angle);
l = 3; //m
t = 5/1000; //m
G = 75*10^9; //N/mm^2
//Calculations:
area_m = 0.5*a*h*10^-6;//m^2 a = (1/2)bh
ds_t = (3*a)/(t*1000);
T_she... |
dae1386b71d13824b7276c706328e1d80f62eb92 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1694/CH2/EX2.46/EX2_46.sce | a1903024d199f025befcd2f9521d55a6166c2585 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 339 | sce | EX2_46.sce | clear;
clc;
printf("\nEx2.46\n");
//page no.-90
//given
w=10.08*10^-12;...........//work function in ergs
h=6.624*10^-27;...........//planck's constant in ergs-sec
c=3*10^10;................//speed of light in cm/sec
lambda_o=h*c/w............//threshold wavelength in cm
printf("\nthreshold wavelength is 1... |
a042ed11ffe237d5d4974b1d4064e788210bd9dc | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.2/Unix/scilab-2.2/macros/scicos/INITEVT_f.sci | 328ada522b38fe2ecac3a0152c2a50e7f1a810a6 | [
"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 | 927 | sci | INITEVT_f.sci | function [x,y,typ]=EVTGEN_f(job,arg1,arg2)
x=[];y=[];typ=[];
select job
case 'plot' then //normal position
standard_draw(arg1)
graphics=arg1(2); [orig,sz,label]=graphics([1:2 4])
model=arg1(3);dt=model(8)
xstringb(orig(1),orig(2),['Event gen.'],sz(1),sz(2),'fill')
case 'getinputs' then
[x,y,typ]=standard_in... |
2d763bc79b052f844f65e8067f09ade4a717681d | 01697f0dc71290a6b6e233849a73d19a883845f1 | /sem06/paper8/lab11a/S06P08L11aQ03.sce | b069600b11749e691c2e883a702560af2c75eff9 | [] | no_license | aaruni96/Math-Lab | 5d83a13547308bd9d1b7daa28be29a49e1020fbd | 488469c9aba9251f5725e0851fb19e2aef38d234 | refs/heads/master | 2021-01-12T06:29:53.790743 | 2018-04-27T09:21:40 | 2018-04-27T09:21:40 | 77,370,232 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 214 | sce | S06P08L11aQ03.sce | clc;
clear;
function z=f(x,y)
z=x+y;
endfunction
s=[0,1];
h=0.1;
x=0.2;
for i=1:(x-s(1))/h
s1(1)=s(1)+h;
s1(2)=s(2)+h*f(s(1),s(2));
for i=1:500
s1(2)=s(2)+h/2*(f(s1(1),s1(2))+f(s(1),s(2)));
end
s=s1;
end
s
|
343ab2382326ec83ce2cda76ade69f792914bac1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1760/CH1/EX1.19/EX1_19.sce | dd8611a2d6ea7e65bb6fc76a11f4865814e320f7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 190 | sce | EX1_19.sce | //EXAMPLE 1-19 PG NO 23
i=0.184 //derivative of I
e=0.16;
L=e/i; //Inductance
disp('i)Inductance = '+string (L)+' H')
|
63ab1733a8183bb3665dff2edd4c4d7acc61acd0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2915/CH1/EX1.20/Ex1_20.sce | f8b7edb9e727444ec2be9cd6083405e9ed7bff6b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 773 | sce | Ex1_20.sce | clc,clear
//Example 1.20
//To find values of all trigonometric values of given angle of 120
theta=120; //given angle in degree
//Consider a point (-1,sqrt(3)) in 2nd quadrant
//This point can be used on terminal side of 120
//Thus for a basic right angled triangle formed in second quadrant
adjacent = 1;
oppos... |
a182fff444b11f17a955a09385ef9c21f44cc65e | e528067e2ccea7463d0b594f523db94cf160e66d | /C/array/twice_and_lost.tst | 084e4d6bd55a8d252c761e8453ae7278c5032b15 | [] | no_license | soumyajuit/progs_Ubuntu | 489a7b21717a049b8db9186a25516429888b6147 | c55fd95a61e36038fd801b3b705bbc5e2b024689 | refs/heads/master | 2021-01-10T03:40:28.735389 | 2015-12-29T06:44:55 | 2015-12-29T06:44:55 | 48,730,996 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 12 | tst | twice_and_lost.tst | 5
3 1 2 5 3
|
bc62ce8f8cadc73edb533b4440cc960a969ee6ea | 449d555969bfd7befe906877abab098c6e63a0e8 | /3875/CH7/EX7.6/Ex7_6.sce | 1296603b95e43fb7b71073a460ef250c046b5a13 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 425 | sce | Ex7_6.sce | clc;
clear;
lambda=694.3*10^-9 //wavelength in m
K_b=1.38*10^-23 //Boltzmann constant J/K
T=300 //Temperature in K
h=6.63*10^-34 //Plancks constant in J-s
c=3*10^8 //velocity of light in m/s
//calculation
Exp=(h*c)/(lambda*K_b*T) //exponential term of the formula
R=1/(exp(Exp)-1)
mprintf("The ratio of st... |
43a1abb545461fb104847da3e0f852c15e2a6992 | 3c47dba28e5d43bda9b77dca3b741855c25d4802 | /microdaq/macros/mdaq_dsp_upload.sci | dce202a055b97e9ce35983b2bb0b92fa7bcfe69f | [
"BSD-3-Clause"
] | permissive | microdaq/Scilab | 78dd3b4a891e39ec20ebc4e9b77572fd12c90947 | ce0baa6e6a1b56347c2fda5583fb1ccdb120afaf | refs/heads/master | 2021-09-29T11:55:21.963637 | 2019-10-18T09:47:29 | 2019-10-18T09:47:29 | 35,049,912 | 6 | 3 | BSD-3-Clause | 2019-10-18T09:47:30 | 2015-05-04T17:48:48 | Scilab | UTF-8 | Scilab | false | false | 1,628 | sci | mdaq_dsp_upload.sci | function mdaq_dsp_upload( arg1, arg2)
[is_supp vers] = mdaq_is_working('mdaq_dsp_upload');
if is_supp == %F then
error('ERROR: ' + vers)
return;
end
if argn(2) == 2 then
dsp_app_path = arg1;
if arg2 == %T then
uploadOpt = 'a';
else
uploadO... |
f04f1facc9d50b070907d3e115a320cfe5c203f8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2990/CH5/EX5.15/Ex5_15.sce | b05adcc87f316a11c5f2fbf0522a8d21796dc02d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 855 | sce | Ex5_15.sce |
funcprot(0);
// Initialization of Variable
function[dms]=degtodms(deg)
d = int(deg)
md = abs(deg - d) * 60
m = int(md)
sd = (md - m) * 60
sd=(round(sd*100)/100)
dms=[d m sd]
endfunction
theta=54+30.0/60//latitude in degrees
delta=62+12.0/60+21.0/3600//declination in degrees
//cal... |
b889046e19752b107a9b309bb4e3039f43212984 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2054/CH1/EX1.55/ex1_55.sce | aecfc3b6eec696713ca7fe85ebea3dc335f6814e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 322 | sce | ex1_55.sce | //Exa:1.55
clc;
clear;
close;
theta_1=30;//in degree celcius
theta_2=40;//in degree celcius
t_1=1;//in hours
t_2=2;//in hours
x=(theta_2/theta_1)-1;
theta_F=theta_1/(1-x);//in degree celcius
theta_f=50/(1-x);//in degree celcius
P_L=25;//in KWs
P=P_L*sqrt(theta_f/theta_F);
disp(P,'Maximum Overload (in KWs)=... |
4fa9534fd4140462955291eae94f3095f50dd3c9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3774/CH8/EX8.10/Ex8_10.sce | 917ea36325ee506726c163a69ed31de736a5e945 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 624 | sce | Ex8_10.sce | // exa 8.10 Pg 235
clc;clear;close;
// Given Data
Fmin=600;// N
Fmax=1000;// N
C=6;// spring index
n=1.5;// factor of safety
Sys=700;// N/mm.sq.
Ses_dash=350;// N/mm.sq.
Kw=(4*C-1)/(4*C-4)+0.615/C;// Wahl's correction factor
Ks=1+0.5/C;// Shear Stress factor
Fm=(Fmax+Fmin)/2;// N
Fa=(Fmax-Fmin)/2;// N
tau_m_into_d_sq... |
0a6e67cf46040fa1d71d91088a5ce4f95b5b0bde | 99b4e2e61348ee847a78faf6eee6d345fde36028 | /Toolbox Test/modulate/modulate8.sce | 7796c00d52b798df3bb1e19b4cdeb4742712daf1 | [] | 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 | 224 | sce | modulate8.sce | //i/p arg x contains only zeros
x=[0 0 0 0 0 0 0 0];
fc=220;
fs=500;
y = modulate(x,fc,fs,'am');
disp(y);
//output
// column 1 to 7
//
// 0. 0. 0. 0. 0. 0. 0.
//
// column 8
//
// 0.
|
0f945163586c21a994ba518e1bca77449b88ab41 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1073/CH3/EX3.41/3_41.sce | b003c4cf24648133d6f798489e6d555eb9d1da0a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 921 | sce | 3_41.sce | clc;
clear;
//Example 3.41
rho=0.910; //Density in [kg/m^3]
Cp=1.009*1000; //[J/kg.K]
k=0.0331; //[W/m.K]
mu=22.65*10^-6; //[N.s/m^2]
//Let a=smaller side
//b=bigger side
//Qa=ha*A*dT
//Qb=hb*A*dT
//Qa=1.14*Qb
//Given a*b=15*10^-4
//On solving we get:
a=0.03; ... |
74b42eec4ff2f2e5705b782ea48cc1370336ef89 | 3fb2b65e8ef9208e822aad35c618441282e08a30 | /MetodeNumerik/deretTaylor/test5.sci | e9887bf256b206fc013325a220ff9d945de022d5 | [] | no_license | Lukmannudin/TugasKuliah | 33031fb4f6ff0ab7a5849cda3ea15330e2527c3f | 19738c858dea539f0a5569f27be68b1a56c2aa89 | refs/heads/master | 2020-03-07T15:49:59.414761 | 2018-06-09T07:41:39 | 2018-06-09T07:41:39 | 127,565,939 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 98 | sci | test5.sci |
function coba(i)
if i<0 then
disp("Negatif");
else
disp("Positif");
end
endfunction
|
b2c99a206dcb4922c5640527743b73c60a8181f1 | 449d555969bfd7befe906877abab098c6e63a0e8 | /32/CH4/EX4.11/4_11.sce | 46eddabf71ccef23fb8897cc5ef564b1b042ea71 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,676 | sce | 4_11.sce | //pathname=get_absolute_file_path('4.11.sce')
//filename=pathname+filesep()+'4.11-data.sci'
//exec(filename)
//Efficiency of carnot cycle:
n=0.5
//Mass of air(in kg):
m=0.5
//Initial pressure(in Pa):
p2=7*10^5
//Initial volume(in m^3):
v2=0.12
//Heat transferred during the process 2-3(in kJ):
Q23=40
//Spec... |
28ddd7d5a2dae2967054fb5aa1f15c492969ce2a | 67549df2a087a841e4e04a54509843c18795a981 | /packets/echantillons/extjs/win-css.sci | 9e691900f73dd572339fbcb742ba44234db35652 | [] | no_license | scicasoft/CRUD-generator | 60494434091147e1f8aa62c02b7d34339747885e | 037a7dabdf4d84933ffec560c0bd1a85c45deb03 | refs/heads/master | 2020-05-03T11:30:19.887391 | 2011-06-12T10:33:38 | 2011-06-12T10:33:38 | 719,111 | 0 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 804 | sci | win-css.sci | .[[NOM_TABLE_SANS_PRE]]-icon {
background-image:url(images/grid16x16.gif) !important;
}
.demo-[[NOM_TABLE_SANS_PRE]]-shortcut img {
background-image: url(images/grid48x48.png);
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='system/modules/grid-win/images/grid48x48.png', sizingMethod='sc... |
32629a94eb3d86025dde7864642ad4b7ca4790f0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /132/CH4/EX4.1/Example4_1.sce | bbfb5d3df4936ced78ee24c504310772333a0d6f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 490 | sce | Example4_1.sce | //Example 4.1
//Program to determine DC Voltage across the load and PIV of the Diode
clear;
clc ;
close ;
//Given Circuit Data
Vrms=220; //Volts
n2=1; //Assumption
n1=12*n2; //Turns Ratio
//Calculation
Vp=sqrt(2)*Vrms;//Maximum(Peak) Primary Voltage
Vm=n2*Vp/n1;//Maximum Secondary Voltage
Vdc=Vm/%pi;//DC lo... |
14ff34a9ac6b0f27c7218b2e321ae8600bc107db | 449d555969bfd7befe906877abab098c6e63a0e8 | /1658/CH25/EX25.6/Ex25_6.sce | 2e5f347986689e6ceae6071e0143645984ee93e4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 121 | sce | Ex25_6.sce | clc;
nc=0.5;
VCC=24;
Poac=3.5;
Ptrdc=Poac/nc;
disp('W',Ptrdc,"Ptrdc=");
Pcdc=Ptrdc-Poac;
disp('W',Pcdc,"Pcdc=");
|
3b526ed5bc4c027bff0a96abc3377f4a75b13b62 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1223/CH15/EX15.10/Ex15_10.sce | b7b428546458163f91c9c74eb559993792775ff0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 140 | sce | Ex15_10.sce | clear;
clc;
//Example 15.10
C=15*10^-9;
T=100*10^-6;//(s) time
R=T/(1.1*C);
R=R*0.001;//Kohm
printf('\nResistance R=%.2f KOhm\n',R)
|
3158f2af9d29f4b0e47cba0112b1a13483dabd0d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3834/CH10/EX10.2.2/Ex10_2_2.sce | 9fd31f92cf89b2f02496683543533d0ccc39e883 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 1,126 | sce | Ex10_2_2.sce | //Fiber-optics communication technology, by Djafer K. Mynbaev and Lowell L. Scheiner
//Example 10.2.2
//windows 7
//Scilab version-6.0.0
clc;
clear ;
//given
//case 1
lambda=840;//Operating wavelength in nm
Eg=1248/lambda;//semiconductor bandgap in eV
e=1.6E-19;//Electrons value in Coulomb
V=Eg;//voltage ... |
0c2db9f9ef636019491947bb635a10becdf2533a | 449d555969bfd7befe906877abab098c6e63a0e8 | /69/CH9/EX9.14/9_14.sce | ed5737de4ca6656f9bdaffec82465ab495015d03 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 9_14.sce | clear; clc; close;
Cs = 2*10^(-6);
Cg = 0.01*10^(-6);
Cc = 0.5*10^(-6);
Rs = 1*10^(3);
Rg = 1*10^(6);
Rsig = 10*10^(3);
Rd = 4.7*10^(3);
Rl = 2.2*10^(3);
Idss = 8*10^(-3);
Vp = -4;
rd = %inf;
Vdd = 20;
Cgd = 2*10^(-12);
Cgs = 4*10^(-12);
Cds = 0.5*10^(-12);
Cwi = 5*10^(-12);
Cwo = 6*10^(-12);
Rt... |
aff9a4bc01f035e14897f29476ddef65dc567650 | 4302fa12c0b4bc3a8b7e99ced5933a42c1723b2a | /chris/mail/lang/Chinese.tst | 24c7a9f267c43b3bef88576989cfdaf4231ff846 | [] | no_license | iknowed/elect | d46dfafbf7258d63f2d92c6dc49a2a5f506753d5 | 39ab38bb195fe984053b976426f63b8c33a47fa8 | refs/heads/master | 2020-03-07T16:12:29.181060 | 2018-03-31T22:25:02 | 2018-03-31T22:25:02 | 127,575,919 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 47,965 | tst | Chinese.tst | NUM_AT_HH VOTER_ID NAME_PFX NAME_F NAME_L HOUSE_NUM STREET TYPE APT ZIP
1 754939 MR PAUL LIN 229 BRANNAN ST 2G 94107
1 275410 KENNETH ZHANG 420 TURK ST 94102
1 705357 MRS LAIN HO 801 HOWARD ST 723 94103
1 320500 SHAI CHEN 330 CLEMENTINA ST 907 94103
1 793867 MRS XIAO SU ZHONG 530 POTRERO AVE 209 94110
1 274895 ... |
7f857c38134721103d79f6d936000abf18259957 | 449d555969bfd7befe906877abab098c6e63a0e8 | /32/CH18/EX18.14/18_14.sce | ff82236316fa902010b38c13ca2a755bb8f8d1e2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 558 | sce | 18_14.sce | //pathname=get_absolute_file_path('18.14.sce')
//filename=pathname+filesep()+'18.14-data.sci'
//exec(filename)
//Relavite humidity;
r=0.80
//From pyschometric chart:
w1=0.0086 //kg/kg of air
w2=0.01 //kg/kg of air
h1=37 //kJ/kg
h2=50 //kJ/kg
v2=0.854 //m^3/kg
//Mass of water added between states 1 and 2:
m... |
8e3e34eae33b3db6d4cac087c59939d3261e2a51 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1055/CH11/EX11.2/ch11_2.sce | f2ba0b490e50fa3182e2eb9b4046421b24125761 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 502 | sce | ch11_2.sce | // Determine the reactance to neutralize the capacitance of (i)100% of the length of line (ii)90% of the length of line (iii)80% of the length of line
clear
clc;
wL=1/(3*314*(10)^-6);
mprintf("(i)inductive reactance for 100 percent of the length of line=%.1f ohms\n",wL);
wL=10^6/(3*314*.9);
mprintf("(ii)inductive... |
1c17ad4badd9bb0c8c896df8f80ece6ef076e9af | 3073307fa4b6da9371518f0718c199501b8c5c71 | /diferenciasDivididas.sci | 7893b89e922fd268fb3b37d56f126bc648cdb35e | [] | no_license | fern17/CalculoNumerico | 8b04abdf8e1da4b69a1256334a4bc58ff5c9180d | c793733ce17616361dd02f358ef63c1d9be5c99e | refs/heads/master | 2020-06-04T00:06:19.723655 | 2011-12-20T13:47:40 | 2011-12-20T13:47:40 | 2,929,202 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 392 | sci | diferenciasDivididas.sci | //Calcula los coeficientes del polinomio interpolante usando diferencias
// divididas de Newton
// x : Vector de puntos x
// y : Valores de la función en los puntos. y_i = f(x_i)
// d : Coeficientes del polinomio interpolante.
function [d] = diferenciasDivididas(x,y)
n = length(x);
for i=1:(n-1)
y(i+1:n... |
5bce41998a0c44bf2b4c33d4aa5b26189b338ed5 | 3b9a879e67cbab4a5a4a5081e2e9c38b3e27a8cc | /Área 1/Aula 1/BaseDecimalParaBaseSeis.sce | 03e5597c7f94aa38195fc66a2e0d127c0353f082 | [
"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 | 670 | sce | BaseDecimalParaBaseSeis.sce | x = 29.16 /*Base 10*/
base = 6 /*Base de saída*/
maxPrecisao = 10
cont = 0
resultado = ''
decPart = int(x)
fracPart = x - int(x)
while(decPart >= base)
resultado = strcat([string(modulo(decPart,base)),resultado])
decPart = int(decPart/base)
cont = cont + 1
end
if(decPart ~= 0)
resultado = strcat([stri... |
a7e3bb54a8399d4c1ce15b8c4dfc1dfa948ccfe4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1430/CH13/EX13.11/exa13_11.sce | ece7f1f386ea14dcb7aaa4817c10f0e9c2b6d195 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | exa13_11.sce | // Example 13.11
// Zero-State AC Response
t=0:0.01:10
s=%s;
H_s=(s+8)/(s+4)^2;// Network transfer function
V_s=(50*s)/(s^2+64); // Laplace transform of voltage source
I_s=H_s*V_s;
pfe=pfss(I_s);
I_N_s=pfe(2); // Natural response in s-domain
// Taking inverse laplace transform of pfe(2) we get,
i_N=-exp(-4*t)... |
bd87bb945733d207c1f48ecd0f7f98f0e505d6ef | 449d555969bfd7befe906877abab098c6e63a0e8 | /788/CH14/EX14.9.a/14_9_data.sci | 8b1ce9a26c2d45e9bc42feb6c296584d906724f0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 400 | sci | 14_9_data.sci | // Aim:To find the flow-rate to be delivered by vacuum pump
// Given:
// lip outside diameter of suction cup:
Do=100; //mm
// lip inside diameter of suction cup:
Di=80; //mm
// weight of steel sheets:
F=1000; //N
// numbers of suction cups:
N=4;
// total volume of space inside the suction cup:
V=0.15; //m^3
// factor ... |
fd2e2605c1d5ee86d4250f3a79b475a0c0b996fe | 449d555969bfd7befe906877abab098c6e63a0e8 | /2063/CH7/EX7.13/7_13.sce | 572303bdcd3c367ff0aad6fb4e2b6b018bb1fa0c | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,419 | sce | 7_13.sce | clc
clear
//Input data
ma=6;//Air supplied per minute by a single jet carburetor in kg/min
mf=0.44;//Mass flow rate of petrol in kg/min
s=0.74;//Specific gravity of petrol in kg/m^3
p1=1;//Initial pressure of air in bar
T1=300;//Initial temperature of air in K
Ci=1.35;//Isentropic coefficient of air
V=90;//Spe... |
7183cf8c015fe904950780d2e87268921493d4e9 | 607fe53653a19100ed470c4f0b5da1a5cbb0a7f3 | /s06102020_5.sce | 20dfdfb3815516510144ca5b4fbf35cab9069774 | [] | no_license | sanjeevphy/ForPhDCourseWork | 70b3944e4dce8a5f054ef59b8710923005ca9127 | 945812099f1f41395daa1b1ceeb33c69b9a07481 | refs/heads/main | 2023-02-22T04:25:00.575704 | 2021-01-28T07:00:53 | 2021-01-28T07:00:53 | 333,669,242 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 256 | sce | s06102020_5.sce | clf
t = -%pi:%pi/20:2*%pi;
// sin() : in Red, with O marks, without line
// cos() : in Green, with + marks, with a solid line
// gaussian: in Blue, without marks, with dotted line
gauss = 1.5*exp(-(t/2-1).^2)-1;
plot(t,sin,'ro', t,cos,'g-+', t,gauss,'b')
|
11e90f2e64299557bc9119f8f2ff96dd7db2c0fc | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/Programming/testlasterror.sce | 1f2cdbab0a323c8d444e58f5197f344de5fb4eb3 | [] | no_license | markusmorawitz77/Scilab | 902ef1b9f356dd38ea2dbadc892fe50d32b44bd0 | 7c98963a7d80915f66a3231a2235010e879049aa | refs/heads/master | 2021-01-19T23:53:52.068010 | 2017-04-22T12:39:21 | 2017-04-22T12:39:21 | 89,051,705 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 281 | sce | testlasterror.sce | function foo()
1/0
endfunction
// error inside a function
ierr=execstr('foo()','errcatch','m')
[str,n,line,func]=lasterror() // error inside func="foo"
// error inside a command
ierr=execstr(['a=2';'b=1';'1/0'],'errcatch','m')
[str,n,line,func]=lasterror() // here func=""
|
1ed7c0de11a7337ce891988d3dab066d6e313f7f | 449d555969bfd7befe906877abab098c6e63a0e8 | /995/CH4/EX4.11/Ex4_11.sce | 8077a4d83050b489b1584b8c05f1ea5b00c6e146 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 186 | sce | Ex4_11.sce | //Ex:4.11
clc;
clear;
close;
C=2*10^-6;
f=400;
V=115;
X_C=1/(2*%pi*f*C);
r=199;
z=sqrt(r^2+X_C^2);
I_s=V/z;
printf("Reactance = %f ohm",X_C);
printf("\n Current = %f A",I_s); |
f74f3a18c776e637c7560200ab162ae20d72f6d3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH22/EX22.18/22_18.sce | 214350c0d5491e663b20a88370fa22feebbcfda6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 182 | sce | 22_18.sce | //ques-22.18
//Calculating edge length of a unit cell
clc
w=154;//wavelength (in pm)
ang=16;
d=w/(2*sind(16));
a=2*d;
printf("The edge length of the unit cell is %d pm.",a);
|
b3ea3c901f3b8c35b7dc76beb639be94f065f425 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2135/CH4/EX4.15/Exa_4_15.sce | 024ca31029fbb9212cc8bfcf6f6c50cc1c5fe401 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 700 | sce | Exa_4_15.sce | //Exa 4.15
clc;
clear;
close;
format('v',9);
//Given Data :
V1=4;//m^3
V2=4;//m^3
m=600/1000;//Kg
C=150;//J/K
T1=100+273;//K
T0=8+273;//K
Cp=C/1000;//KJ/K
deltaSblock=integrate('Cp/T','T',T1,T0);//KJ/K
Q=Cp*(T1-T0);//KJ
deltaSlake=Q/T0;//KJ/K
deltaSuniverse=deltaSblock+deltaSlake;//KJ/K
disp(deltaSun... |
36007265687321d5ab9ba262254a28289b48b3da | 449d555969bfd7befe906877abab098c6e63a0e8 | /2015/CH1/EX1.5/1_5.sce | 908a19752f96d5aa05f7ba43e5997192eebad6e3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 186 | sce | 1_5.sce | clc
//initialisation of variables
r=14
g=1.4
x=1.78 //x=v3/v2
//CALCULATIONS
oef=1-(1/14)^(g-1)
def=1-((1/(14)^(g)*1.4))*((x^(g) -1)/(x-1))
printf('otto efficiency is %2f',oef)
|
d7cecaa05bb089479f1057ae18718f987002dedb | 449d555969bfd7befe906877abab098c6e63a0e8 | /788/CH4/EX4.7.b/4_7_soln.sce | 94b020596b13e4c8f77eb54579e898e62b1b7130 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 600 | sce | 4_7_soln.sce | clc;
pathname=get_absolute_file_path('4_7_soln.sce')
filename=pathname+filesep()+'4_7_data.sci'
exec(filename)
// Solution:
// fluid velocity,
v=Q/((%pi*((D/1000)^2))/4); //m/s
// rounding off the above answer
v=fix(v)+(fix(round((v-fix(v))*10))/10); //m/s
// From table of "K factors of common valves and fittings",
K=... |
a3a486bb65adf5e775d3328a4d338b5211055673 | 2157e5477a68100718fef686429f6ab2d846fffe | /macros/lsqnonlin.sci | 3b529fb65e36b6f8c1432e6ddb52c20b987d296b | [] | no_license | sidn77/FOSSEE-Optimization-toolbox | 44ca727e3f2dff5b61b43384421ae9e633d95bb1 | 58416c0613131665e14c0143791fb1f305c411e0 | refs/heads/master | 2021-01-11T04:58:15.068871 | 2016-09-29T11:31:12 | 2016-09-29T11:31:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 11,847 | sci | lsqnonlin.sci | // Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the BSD.
// This source file is licensed as described in the file LICENSE, which
// you should have received as part of this distribution. The terms
// are also available at
// https://opensource.org/licenses/BSD-3-Clause
// Au... |
5435ff58abdd4c4363c7d823fe14a18ef33ba710 | b29e9715ab76b6f89609c32edd36f81a0dcf6a39 | /ketpic2escifiles6/Tolist.sci | 8ef53bd569bdbf4ad0e18521404aed98b8233751 | [] | no_license | ketpic/ketcindy-scilab-support | e1646488aa840f86c198818ea518c24a66b71f81 | 3df21192d25809ce980cd036a5ef9f97b53aa918 | refs/heads/master | 2021-05-11T11:40:49.725978 | 2018-01-16T14:02:21 | 2018-01-16T14:02:21 | 117,643,554 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 112 | sci | Tolist.sci | // 10.01.02
function Out=Tolist(LG)
Out=list();
for I=1:length(LG)
Out($+1)=LG(I);
end;
endfunction;
|
148484c9495397993becee9dd5baf12fd4deb866 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1598/CH5/EX5.1/ex5_1.sce | 5f482396a83422e287d52c44744a7357db5b07aa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 241 | sce | ex5_1.sce | clc;
n=10^6; //no. of electrons
e=1.6*10^-19; //charge on an electron in C
q=n*e; //calculating total charge
t=10^-3; //time in second
I=q/t; //calculating current
disp(I,"Current flowing in Ampere = "); //displaying result |
a46449a4c223afe9747710cb2a0e25d03d7d1454 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2258/CH1/EX1.19/1_19.sce | 273f364a1a9e434f58abce28014fc7180eff6e23 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 394 | sce | 1_19.sce | clc();
clear;
// To calculate the de broglie wavelength of neutron
mn=1.676*10^-27; //mass of neutron in kg
me=9.1*10^-31; //mass of electron in kg
h=6.62*10^(-34);
c=3*10^8; //velocity of light in m/sec
En=2*me*c^2;
lamda=h/sqrt(2*mn*En); //wavelength in m
lamda_A=lamda*10^10; //converting lamda ... |
84a46f4f0dcdca5783f84520dc37ad6fe7bb3806 | 449d555969bfd7befe906877abab098c6e63a0e8 | /401/CH14/EX14.3/Example14_3.sce | 8d16525bb980d17cbe14808a33dec7bbb9e2a49a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Example14_3.sce | //Example 14.3
//Program to determine the loss due to scattering for the fiber
clear;
clc ;
close ;
//Given data
Vsc=6.14*10^(-9); //V - OPTICAL OUTPUT POWER
Vopt=153.38*10^(-6); //V - OPTICAL POWER WITHOUT SCATTERING
l=2.92; //cm - LENGTH OF THE FIBER
//Loss... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.