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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
244400639d30c7b71df79ca8c2f82bbfad171d38 | 5f48beee3dc825617c83ba20a7c82c544061af65 | /tests/s/117.tst | 2d22258a5980383328e002baba5488f145b17607 | [] | no_license | grenkin/compiler | bed06cd6dac49c1ca89d2723174210cd3dc8efea | 30634ec46fba10333cf284399f577be7fb8e5b61 | refs/heads/master | 2020-06-20T12:44:17.903582 | 2016-11-27T03:08:20 | 2016-11-27T03:08:20 | 74,863,612 | 3 | 0 | null | null | null | null | WINDOWS-1251 | Scilab | false | false | 458 | tst | 117.tst | int f(float);
int f(float);int f(float);int f(float);int f(float);int f(float);int f(float);
int f(float), f(float), f(float), f(float), f(float);
int f(float x)
{
int x1;
}
void main(void)
{
enum A {
A1, A2, A3, A4, A5
} a;
int x;
float y;
int *p;
{
int x; /* не ошибка */
}
main();
... |
e012555e199aa3db156403caed64a66dbcbf633c | 93c7fb5ee09b14b93d6c6a5a99d15e57555802be | /pushswap42/scripts/docker_file/test_500/test9.tst | bebc3f3a4640fff1cd99aad38f6020be8116a044 | [] | no_license | ach5910/42PushSwap.com | b1cd724453b20296e39c18e5d576bdfb6290f7da | bfa2755c1cb84c7d72a4858c77193743a5583a1a | refs/heads/master | 2020-04-05T12:35:36.043271 | 2017-07-26T06:33:40 | 2017-07-26T06:33:40 | 95,174,903 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,897 | tst | test9.tst | 49804 11062 35132 45694 34768 7824 13369 1165 14361 29444 22254 24051 1860 45912 34428 35297 13763 47600 11217 30789 10234 49062 14245 46294 6526 14533 11450 20284 5659 33465 35754 32810 38925 22999 38405 32476 49923 19326 12472 19129 7997 47082 36856 25481 47307 12840 30878 42951 37729 38729 23221 10435 46493 37827 17... |
362bf39b98e07b84b393382dfd02f76d8ae885fe | 449d555969bfd7befe906877abab098c6e63a0e8 | /1172/CH1/EX1.12/Example1_12.sce | a687ee70a008738269307170a5203f1491a23ea3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Example1_12.sce | clc
//Given that
D15=0.59// diameter of 15th newton’s ring in cm
D5=0.336// diameter of 5th newton’s ring in cm
R=100// radius of Plano convex lens in cm
//Sample Problem 12 Page No. 51
printf("\n # Problem 12 # \n")
p=15-5
printf(" \n Standard formula used \n D_a^2 – D_b^2 = 4*p*R*lambda \n")
lambda=(D15^2 ... |
e17344054b9a642de01891d0bac6efa280c1b78e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1664/CH6/EX6.3/Ex6_3.sce | 447c504e227eff5f810a5cadc899e12d63feb77b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 372 | sce | Ex6_3.sce |
//Example No.6.3
//Page No.186.
clc;clear;
r = 1.278*10^(-10);//Atomic radius of copper -[m].
A = 63.54;//Atomic weight of copper.
n = 4;
Na = 6.022*10^(26);
a = (2*sqrt(2)*r);
printf("\nThe lattice constant for FCC is %3.3e",a);
d = ((n*A)/(Na*a^(3)));//for FCCn=4.
d = ((n*A)/(Na*(3.61*10^(-10))^(3)));
p... |
6b823cf64214f718e9beaae2c29cd16d248b1941 | 002b6230874dea6e4d76defafc1ae293b5744918 | /solvers/IncNavierStokesSolver/Tests/ChanStability_adj_Ar.tst | ee66dcc938d91a0444cf4ad9f13a30f6163834a2 | [
"MIT"
] | permissive | SCOREC/nektar | f3cf3c44106ac7a2dd678366bb53861e2db67a11 | add6f04b55fad6ab29d08b5b27eefd9bfec60be3 | refs/heads/master | 2021-01-22T23:16:16.440068 | 2015-02-27T17:26:09 | 2015-02-27T17:26:09 | 30,382,914 | 6 | 7 | null | null | null | null | UTF-8 | Scilab | false | false | 995 | tst | ChanStability_adj_Ar.tst | <?xml version="1.0" encoding="utf-8"?>
<test>
<description>Adjoint stability (Arpack): Channel</description>
<executable>IncNavierStokesSolver</executable>
<parameters>ChanStability_adj_Ar.xml</parameters>
<files>
<file description="Session File">ChanStability_adj_Ar.xml</file>
<file descriptio... |
4f81b5387067702a22ec1f5068e05aa3d7fba739 | 207c864c3f938783d617dca78232e70445ae21e6 | /Ch8_I.sce | 86f29903b6a053e3f617afd9d6d7065afec60db5 | [] | no_license | raresica/CalculNumeric | a211a57fd4851e546c0b5eb866b3b228534a982c | 5564822ff9f5dab745208898ef9162322b28bff2 | refs/heads/master | 2021-02-11T05:03:13.720791 | 2020-04-15T10:42:58 | 2020-04-15T10:42:58 | 244,457,154 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 339 | sce | Ch8_I.sce | --> A=[5 3 -11; 4 -5 4; 3 -13 19]
A =
5. 3. -11.
4. -5. 4.
3. -13. 19.
--> [L,U,P]=lu(A)
L =
1. 0. 0.
0.6 1. 0.
0.8 0.5 1.
U =
5. 3. -11.
0. -14.8 25.6
0. 0. 1.421D-15
P =
1. 0. 0.
0. 0. 1.... |
96559c6713268e38becf88418b19ade70f8f0c4a | c364a4a4362d5f4ba6c3b5af605b8938c1dafa8b | /重推到货接收.tst | 7e54611eff13b8f0d8b689af7e2c03d72dafc4b7 | [] | no_license | foliage11111/times-srm-sql | 9a36a3320d930e37bf56fce8294da5a18cd98813 | dd1abb497820a6b1a1f179cc1b523cc2f6eb59e1 | refs/heads/master | 2020-03-27T05:51:32.884905 | 2018-08-23T16:14:08 | 2018-08-23T16:14:08 | 146,057,767 | 0 | 0 | null | null | null | null | GB18030 | Scilab | false | false | 1,084 | tst | 重推到货接收.tst | PL/SQL Developer Test script 3.0
25
--调用测试脚本自动推送。
DECLARE
RECEPT_ID NUMBER;
x_return_code VARCHAR2(2000);
x_return_msg VARCHAR2(2000);
BEGIN
for receipt_group in (
select shipment_header_id,receipt_num,order_number,po_header_id from(
select rt.transaction_id,rt.attribute1 kk,cux_rcv.*... |
9e7891eac8a93533e6177c3bb373aadc0b621b98 | 8712e7b4614b1ab648f19bcce8ca17e378876546 | /Scilab Com Interface Grafica/Engine/A0_MAIN.sce | af313e62a19b6e455fdb1512d25a7ff30f999b2b | [] | no_license | Diogo-Rossi/Mestrado-Diogo-Rossi | d0d476d878c729c44778ea8f364c50c5464fc751 | d544d3bce094931eb96a6031aaa1ae1a833d2b04 | refs/heads/master | 2022-08-26T22:28:04.339221 | 2022-07-11T00:25:21 | 2022-07-11T00:25:21 | 236,889,761 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 5,144 | sce | A0_MAIN.sce | // CÓDIGO PRINCIPAL
clearglobal // Limpa as variáveis globais
clear // Limpa as variáveis locais
xdel(winsid()) // Fecha as janelas ativas
clc // Limpa a tela do console
winId=progressionbar("Iniciando . . .")
exec("A0_PRECOD1_OBJS.sce",-1) // Funções de criar objeto e criar uicontr... |
7f0e698a12e64ba74dee16c09f9e6b97cd1050ad | bbc11c0776778eadc6701c4eedfe19ae8dfa1584 | /scilab/LimitesRaizes.sci | cc1420d487948e896f3ee2d02085aa72f7303cb1 | [] | no_license | ceconelli/Metodos-Computacionais | 842eeebf11cc74acc66fa08d7ca67f9c45f3b268 | 07f4326c4821facaf5989f89d5d959f8000e062c | refs/heads/master | 2020-06-03T03:23:51.762483 | 2017-06-12T16:12:12 | 2017-06-12T16:12:12 | 94,114,311 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,270 | sci | LimitesRaizes.sci | function[L]=LimitesRaizes(n,c)
if(c(1) == 0) then
disp("coeficiente c(1) nulo");
return;
end
t = n + 1;
c(t+1) = 0;
while c(t) == 0
t = t-1;
end
for i=1:4
if(i == 2 | i == 4) then
for j=1:t/2
Aux = c(j);
c(... |
77c9e801293b51b2c6426e0b92b0d76ea19909df | 3c47dba28e5d43bda9b77dca3b741855c25d4802 | /microdaq/macros/mdaqIsExtMode.sci | 29cca58f5fc7405d2c099967f95f62878f9eb2c9 | [
"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 | 224 | sci | mdaqIsExtMode.sci | function res = mdaqIsExtMode()
res = []
con = mdaqOpen();
result = mlink_set_obj(con, "ext_mode", 1);
mdaqClose(con);
if result == -25 then
res = %F
else
res = %T
end
endfunction
|
1d22936bf12923da8746a00d3a0d76744aa68342 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/tests/examples/disp.man.tst | 8316fd126df675a1ebf800be6777474481856391 | [
"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 | 88 | tst | disp.man.tst | clear;lines(0);
disp([1 2],3)
deff('[]=%t_p(l)','disp(l(3),l(2))')
disp(tlist('t',1,2))
|
3b80955b1553588d9b89150353ef9e9724f9a760 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1823/CH6/EX6.22/SolEx6_22.sce | 28a72e73f51541699dfd963520bff4341509ec9b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 785 | sce | SolEx6_22.sce | //Find (a) the final-stage voltage gain Av2 vo=vo1; (b) the final-stage input impedance Zin2;
//(c) the initial-stage voltage gain Av1 vo1=vin; (d) the amplifier input impedance Zin1; and
//(e) the amplifier voltage gain Av vo=vi.
//Example 6.22 page no 189
clear
clc
hfe=40
Rc2=20*10^3 //Ω
Rc1=10^4 ... |
f1f7b2aba097f9c92731468fd83a91caa6f6ca4a | 449d555969bfd7befe906877abab098c6e63a0e8 | /575/CH5/EX5.2.4/5_2_4.sce | 3f123add0c508d10f2cd839e77303ef03cd5c614 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 272 | sce | 5_2_4.sce | clc
pathname=get_absolute_file_path('5_2_4.sce')
filename=pathname+filesep()+'524.sci'
exec(filename)
//SCFH means ft^3(STP)/h
ndot=3.95*10^5/359
printf(" Molar flowrate=%E lb-moles/hr",ndot)
V2dot=V1dot*T2*P1/(T1*P2)
printf(" \n True volumetric flowrate=%E ft^3/h",V2dot) |
477e25d386bc91caebdaac4de0642bf0d0739918 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1427/CH16/EX16.26/16_26.sce | 9356f100221386f95489c7f5cfc01ddf61e2d311 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 244 | sce | 16_26.sce | //ques-16.26
//Calculating values of rate constants
clc
K=0.1;//equilibrium constant
R_T=10^-5;//relaxation time (in s)
//R_T = 1/(ka+kb)
//K=ka/kb
ka=1/(11*10^-5);
kb=10*ka;
printf("The value of ka is %d /s and kb is %d /s.",ka,kb);
|
2f94cd4a6e2fb364ca52d2327a68ba66fed62e1b | 449d555969bfd7befe906877abab098c6e63a0e8 | /911/CH10/EX10.5/ex_10_5.sce | d6c24722d4caa0cb5db363741c3647853dcf96d3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex_10_5.sce | //example 10.5//
//resolution//
clc
//clears the screen//
clear
//clears all variables//
a=2^12;
resolution=5000/(a-1);
disp(resolution, 'Resolution of 12 bit A/D converter (in mV)=') |
24b2d17df10e060015875d35604e40fc61e18331 | e41b69b268c20a65548c08829feabfdd3a404a12 | /3DCosmos/Data/Scripts/Samples/ColorScale.SCI | add8b2016566e5c8b0b8933fa6e586001deda301 | [
"LicenseRef-scancode-khronos",
"MIT"
] | permissive | pvaut/Z-Flux | 870e254bf340047ed2a52d888bc6f5e09357a8a0 | 096d53d45237fb22f58304b82b1a90659ae7f6af | refs/heads/master | 2023-06-28T08:24:56.526409 | 2023-03-01T12:44:08 | 2023-03-01T12:44:08 | 7,296,248 | 1 | 1 | null | 2023-06-13T13:04:58 | 2012-12-23T15:40:26 | C | UTF-8 | Scilab | false | false | 1,085 | sci | ColorScale.SCI | codeblock readtextfile(ScriptDir+"\_TOOLS.sci");
function HSIColor(H,S,I)
{
H=H*2*Pi;
r=0;g=0;b=0;
if ((H>=0) and (H<=2*Pi/3)) then
{
b=(1-S)/3;
r=(1.0+S*cos(H)/cos(2*Pi/6-H))/3;
g=1.0-r-b;
}
if ((H>=2*Pi/3) and (H<=4*Pi/3)) then
{
r=(1-S)/3;
g=(1.0+S*cos(H-2*Pi/3)/co... |
ae226a2c244e96f0c3cd9750538c85fbe8cb6a97 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1016/CH4/EX4.2/ex4_2.sce | f24cae4ef635360bebecf1ac26b4bfa5d97bfe6b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 274 | sce | ex4_2.sce | clc;clear;
//Example 4.2
//given data
d=2180;//density of NaCl
M=23.5+35.5;//Molecular weight
Na=6.02*10^26;//Avgraodo no. in 1/kg mole
n=4;//for f.c.c
//calculations
a=(n*M/(Na*d))^(1/3);
d=a/2;
disp((d*10^10),'distance between to adajcent atoms in angstrom') |
042c277643aae8e0c7c1e4c3333cacf5c2552b8b | 4ddecb33bb97e05b2d438a7a8cf0d366be25d69e | /Proyecto METODOS NUMERICOS/Metodo de Newton.sce | 5daf64e09c8945e63f9c1b9e0bd7928d2470f7b5 | [] | no_license | Neydor/Numerical-Analysis | e5878521e732085b3b717b7ad2065ceb058a0adc | 19e175dbbbf09defc9b0b8104ad6f75d693650d7 | refs/heads/master | 2021-03-24T23:37:33.116915 | 2020-03-15T23:55:02 | 2020-03-15T23:55:02 | 247,572,201 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 6,444 | sce | Metodo de Newton.sce | // This GUI file is generated by guibuilder version 4.2.1
//////////
f=figure('figure_position',[511,78],'figure_size',[656,582],'auto_resize','on','background',[-2],'figure_name','Graphic window number %d','dockable','off','infobar_visible','off','toolbar_visible','off','menubar_visible','off','default_axes','on','v... |
dba35202bd933a9b6f866bb619c7791a2c9fe3db | ac1f8441b0319b4a391cd5a959bd3bb7988edfa7 | /data/news2015/news2015/SplitsNEWS15/EnTa/enta.2.tst | 0dc01932aa5e4163e7040b2cdf42e1094518586b | [
"MIT"
] | permissive | SaeedNajafi/transliterator | 4d58b8604fa31f52ee2dce7845e002a18214fd5e | 523a087b777a5d6eec041165dabb43848f6222e6 | refs/heads/master | 2021-09-18T17:02:59.083727 | 2018-07-17T06:01:21 | 2018-07-17T06:01:21 | 129,796,130 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 65,439 | tst | enta.2.tst | a a c h a r y a n a n d a n a ஆ ச ா ர ் ய ா ன ா ன ் த ன ா
a a c h w a l ஆ ச ் வ ல ்
a a d h i r o t i ஆ த ி ர ோ ட ் ட ி
a a d i t y a n a n d a n ஆ த ி த ் ய ா ன ன ் த ன ்
a a d m i s a d a k k a ஆ த ் ம ி ச த க ் க ா
a a g k a g o l a ஆ க ் க ா க ோ ல ா
a a g k e s h o l a y ஆ க ் க ே ஷ ோ ல ... |
21a97c9e3b787557ee3e5e16a78881a684a2a7a5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /278/CH26/EX26.3/ex_26_3.sce | ea4977109377e73b1303e90898daeb572e246832 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 495 | sce | ex_26_3.sce | //find
clc
//solution
//given
d=0.05//m
l=0.1//m
p=1.4//N/mm^2
N=900//rpm
//d/c=1000
Z=0.011
to=75//deg C
ta=35//deg C
t=10//deg C
S=1850
u=(33/10^8)*(Z*N/p)*1000+0.002
W=p*d*l*10^6//N
V=%pi*d*N/60//m/s
Qg=u*W*V///W
//(tb-ta)=0.5(75-35)=20//deg C
C=280//W/m^2/C
Qd=C*l*d*20//J/s
printf("headt dessip... |
8b025b3714fcc4d23c92af2a521237fe5bb2b40b | 1553f49678b55a6283e04ec177d0c4174457e834 | /códigos/minimos_quadrados_exemplo.sci | 5c0bce4ee956f6e26f6e69b41d3826135e3a8f48 | [
"MIT"
] | permissive | reneroliveira/Monitoria-ALN-2021 | c16a26c208610e7450def04c775e5550886e3ce8 | 7c746dfe07cdc08921678bf65505389f274416ce | refs/heads/main | 2023-05-13T13:01:35.401001 | 2021-06-09T17:20:06 | 2021-06-09T17:20:06 | 344,234,191 | 3 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 565 | sci | minimos_quadrados_exemplo.sci | //Exemplo de regressão linear em dados simulados
//Fixando seeds para reprodutibilidade
rand("seed",0)
grand('setsd',0)
//Geração dos dados
x = 10*rand(100,1) //x é vetor de 100 pontos aleatório uniforme(0,10)
eps = grand(100,1,'nor',0,2)
y = 7*x+2+eps //y = 7x+2+e, onde eps é vetor de 100 pts ~ Normal(0,2)
//Scatte... |
65933fa523094571eaf476418d9722dfac316341 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2252/CH19/EX19.10/Ex19_10.sce | 363416c442e7550afe19cd1c4c1538b908a4a20d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 362 | sce | Ex19_10.sce |
V=500//applied voltage
N1=700//initial speed of motor
Ia1=50//armature current
Ra=.4//effective armature resistance
Eb1=V-Ia1*Ra
N2=600//reduced speeed of motor
Ia2=Ia1//as torque and flux remains same
//back emf is directly proportional to speed
R=((V-Ia2*Ra)*N1-Eb1*N2)/(Ia2*N1)
mprintf("Additional resistan... |
ec54fc762b1036e0b469c1a3879b376115546ab7 | 3ed933b74e87091fce6306ff38020e9c386f8a74 | /Calcul Matriciel avec SciLab/matrice.sce | 7dc0077a1499f71424492a2f5f0e35de07fd3b3b | [] | no_license | Moustapha00864/TPM1SDA_IA | 027307685bb60c45fc1328a650064d6f593f5e33 | 1a347175bfdf399dc05c375aa80baf7cba5c3937 | refs/heads/main | 2023-05-21T14:12:13.855637 | 2021-06-04T16:27:15 | 2021-06-04T16:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 369 | sce | matrice.sce | // Premier script
// Définition de la matrice A
A = [1:3;-4,5,7;0,6,9]
// Transposée de A
transA = A'
// Calcul du déterminant
detA = det(A)
// Calcul de l'inverse
invA = inv(A)
// Vérification
checkA = A * invA
// Affichage des résultats
disp("Matrice : ", A, "Transposée : ", transA, "Déterminant", detA, "Inver... |
acdddc786658d02eecd365d581838aa14f0e1cce | 449d555969bfd7befe906877abab098c6e63a0e8 | /1652/CH12/EX12.5/12_5.sce | abed6800e544cc2e76e6e15c1358aad9e4b67693 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 204 | sce | 12_5.sce | clc
//Initialization of variables
x=0.25
Ps1=96 //mm
Ps2=43.9 //mm
//calculations
P1=x*Ps1
P2=(1-x)*Ps2
P=P1+P2
Xdash=P1/P
//results
printf("mole fraction of methanol in vapor = %.3f ",Xdash)
|
1f9c0cf6b6fce6a9a39e85e4286a72ac9bd0602e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3871/CH12/EX12.29/Ex12_29.sce | ca70a0d511711ee0eca70ea26aeb74ee12b96740 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 563 | sce | Ex12_29.sce | //=====================================================================================
//Chapter 12 example 29
clc;clear all;
//variable declaration
C1 = 95*10^-12; //capacitance in F
f1 = 800*10^3; //frequency in Hz
f2 = 2.5*10^6; //frequency in Hz
//calculations
w2 = 2*%pi*f;
L ... |
2a65007e71af91a0f93ef6befd2403a10b829553 | 449d555969bfd7befe906877abab098c6e63a0e8 | /761/CH5/EX5.11/5_11.sce | 42e39f9c92fc1a9a3777edd13210050170b9ae87 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 460 | sce | 5_11.sce | clc;
//page no 207
//prob no. 5.11
//A PLL FM generator refering fig.5.25 with
f_ref=100*10^3;N=200;kf=50*10^3;//in Hz/V
//a)Determination of carrier freq of o/p signal
fc=N*f_ref;
disp('MHz',fc/10^6,'The carrier freq of o/p signal');
//b)Determination of RMS modulating voltage for 10kHz deviation
dev=10*10^3;... |
65bac7848075e005f3d13a6339dca13da915f3b9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3885/CH3/EX3.1/Ex3_1.sci | 43906e3c88a217be1d3525e33f1c0c42f91a3dd2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 384 | sci | Ex3_1.sci | //control systems by Nagoor Kani A
//Edition 3
//Year of publication 2015
//Scilab version 6.0.0
//operating systems windows 10
// Example 3.1
clc;
clear;
s=%s
p=poly([4],'s','coeff')
q=poly([0 5 1],'s','coeff')
g=p./q
disp(g,'the given transfer function is')
c=g/(1+g)
disp(c,'the closed loop transfer ... |
3cf8dc3a82215021998680b31195ff2c88932a32 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3751/CH11/EX11.2/Ex11_2.sce | 570404a989fb4e110ca4470cf3d294dca04979d4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,021 | sce | Ex11_2.sce | //Fluid Systems - By - Shiv Kumar
//Chapter 11- Centrifugal Pumps
//Example 11.2
//To Find the Vane Angle at Outer Periphery of the Impeller.
clc
clear
//Given Data:-
N=1470; //Speed, rpm
Q=100; //Discharge, litres/s
Hm=24; //manometric Head, m
Do=240; ... |
598f3f6e974f592792bbc2e05755c6a3ae8d672c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1376/CH7/EX7.5/7_5.sci | d8844502d0156bbbb5d4f1a92a1d8049f5b7e423 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 149 | sci | 7_5.sci | //7.5
clc;
S=900;
P=1.5*10^3;
Q=2*10^3;
Cs=0.2*10^-6;
rx=S*P/Q;
printf("Resistance=%.0f ohm",rx)
Lx=P*Cs*S;
printf("\nInductance=%.2f H",Lx) |
08860a0a0177f32154ca537accdb27219a12fa22 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3401/CH8/EX8.2/Ex8_2.sce | e99028b56ebd650b20d6edc13533af17a5b9b165 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 332 | sce | Ex8_2.sce | clc
T=300//K
Na=10**16 //cm^-3
Nd=10**16 //cm^-3
ni=1.5*10**10 //cm^-3
Dn=25 //cm^2/s
Dp=10 //cm^2/s
taup0=5*10^-7 //s
taun0=5*10^-7 //s
epsilon=11.7
e=1.6*10**-19 //C
//J=(E*D*np0/Ln)+(E*D*pn0/Lp)
Js=e*ni^2*[(1/Na)*sqrt(Dn/taun0)+(1/Nd)*sqrt(Dp/taup0)]
disp(Js,"reverse saturation current density in A/... |
416dac3ae508b4911e04a146106601e4cfde1e29 | 56743f362de98f910919780918c86679ec136d3e | /resolucao-provas/2017-2018/1º Teste Prático.sce | 370f2159d6d96585fb8b8991d3b439f517d29d33 | [] | 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 | 1,141 | sce | 1º Teste Prático.sce | clc
clear
// 1
A = [1 6 7 11 12 15]
B = [-4:9]
C = []
for i = 1:length(B)
C(1,i) = ceil(%e^B(1,i))
end
// 1 a
disp("1.a) Cardinalidade de C: " + string(length(C)))
// 1 b
u_AB = union(A, B)
r_1b = setdiff(union(u_AB, C), intersect(u_AB, C))
disp("1.b) conjunto (A U B) + C: ")
disp(r_1b)
// 2
cartoes = [... |
acb094a5785cb606fe572308b4c5f2330d095ecb | 449d555969bfd7befe906877abab098c6e63a0e8 | /881/CH7/EX7.3/exa7_3.sce | 9d3a1c8d072d1ccfd2b992c661908af72a99a607 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 705 | sce | exa7_3.sce | clc;
//Example 7.3
//Page No 257
disp("Given: An FM modulator with a modulation index m=1, a modulating signal v,(t)=Vmsin(2pi1000t) and an unmodulated carrier vc(t)=10sin(2pi500kt).");
//Solution
//(a)
disp("(a)From Table 7.3, a modulation index of 1 yields a reduced carrier component and three sets of significant... |
2a72df05b0a829c9f0a00d4d354aa06dab86db77 | 449d555969bfd7befe906877abab098c6e63a0e8 | /548/CH4/EX4.21/4_21.sce | 7b888a61919e392d8737890748a23aeb72711e7f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 4_21.sce | pathname=get_absolute_file_path('4_21.sce')
filename=pathname+filesep()+'4_21data.sci'
exec(filename)
Pstag=Pe*[(y+1)^2*Me^2/((4*y*Me^2)-2*(y-1))]^(y/(y-1))*(1-y+2*y*Me^2)/(y+1)
disp(Pstag,"Pstag=","Pstag=Pe*[(y+1)*Me^2/((4*y*Me^2)-2*(y-1))]^(y/(y-1))*(1-y+2*y*Me^2)/(y+1)","the stagnation presure is given by Pstag"... |
782b1b5ff0a00fbb451d0e200874b3fef06d731f | 5ad6543a093a957a7ae943a962a6792bef1df117 | /spur_gear_profile.sce | 6e96988e3ee8eaa96203d48083a69fa7ccec0a04 | [] | no_license | afcavalcanti/Gear-design | 6c9170799ee44771719daaaa0fb04ebe79075cfe | e8b6d19057794d6fddd864adabd22a5698c8aeb3 | refs/heads/master | 2020-03-27T21:58:51.832863 | 2018-09-04T16:37:23 | 2018-09-04T16:37:23 | 147,193,391 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,984 | sce | spur_gear_profile.sce | //This code plots an involute spur gear.
//INPUT
n=15;//number of teeth
d=100;//pitch diamter
phi_d=20;//pressure angle in degrees
r_fillet=0.05;//radius of fillet
//------------------------------------
pd=n/d;//diametral pitch
phi=phi_d*%pi/180;//pressure angle in radians
db=d*cos(phi);//diameter of base circ... |
14d954bf4c78381ef89a0dcffb514de668f21524 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4.1/Unix-Windows/scilab-2.4.1/macros/percent/%sp_q_s.sci | 0d4f00cdf771f7bbc9540344cf02ab59216086c4 | [
"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 | 140 | sci | %sp_q_s.sci | function r=%sp_q_s(a,b)
//r=a.\b
// Copyright INRIA
[ij,v,mn]=spget(a)
if size(v,'*')<>mn(1)*mn(2) then
error(27)
else
r=full(a).\b
end
|
49967cd97c9a1054d2ed126e3444f66968370b27 | 948c6e0314c1822f872350cf63aaceb3d28fa497 | /tests/test-list-types.tst | a29693ce06abcffb4f669c558f5171fd17d3ccf7 | [
"Apache-2.0"
] | permissive | archiecobbs/bom | 832eb815b40f4955e6551496bdd2598cb4f00442 | 0bab1a015bb5e53345e5422902e16f802bd4c07f | refs/heads/main | 2023-08-25T05:43:51.470221 | 2021-11-04T16:12:49 | 2021-11-04T16:12:49 | 417,213,171 | 1 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 125 | tst | test-list-types.tst | FLAGS='--list'
STDIN=''
STDOUT='NONE\nUTF-7\nUTF-8\nUTF-16BE\nUTF-16LE\nUTF-32BE\nUTF-32LE\nGB18030\n'
STDERR=''
EXITVAL='0'
|
9ff85fc7f0c1f15d75014c8a5d6a392dbbfc1a40 | fc97dca636256fc30f018840e244a173c06ec54b | /hard/tests/parametersMissing.tst | 775059dedc458b5ece49d4d1a020526860d33bcf | [
"MIT"
] | permissive | tuomasb/compiler | 23fd2190bc6911380a5acf45241c1f2b2580538f | aa366ace6f2c29b5e0080faf8c50dcb7be0b02f4 | refs/heads/master | 2020-05-17T21:51:17.977674 | 2014-06-09T00:24:17 | 2014-06-09T00:24:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 93 | tst | parametersMissing.tst | int successor(int x) {
return x + 1;
}
main {
int s;
s := successor();
return s;
}
|
cb19e7a22901abfe262078d1462f48f4f9db68a0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1445/CH7/EX7.19/ch7_ex_19.sce | 03fc658d7c56ac110eef7573c8ec5786b29a1290 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,641 | sce | ch7_ex_19.sce | //CHAPTER 7- SINGLE PHASE TRANSFORMER
//Example 19
disp("CHAPTER 7");
disp("EXAMPLE 19");
//VARIABLE INITIALIZATION
va=10000; //apparent power
v1=500; //primary voltage in Volts
v2=250; //secondary voltage in Volts
f=50;
//open circuit ... |
87450e0d1b52bef5be5c5023b3aee7b91c1bae36 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3415/CH3/EX3.3/Ex3_3.sce | a38fc7a03ce76427361ba85d7c820ee9f7b71651 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex3_3.sce | //fiber optic communications by joseph c. palais
//example 3.3
//OS=Windows XP sp3
//Scilab version 5.4.1
clc
clear all
//given
lambda=1.55e-6*1e9//wave length in nm
lambda0=1.3e-6*1e9//Zero dispersion wave length in nm
M0=-0.095//slope at zero dispersion wave length ps/(nm^2xKm)
//to find
M=(M0/4)*(lambda... |
61a556e5252deb5c8b266472b322d61463360acd | 449d555969bfd7befe906877abab098c6e63a0e8 | /551/CH9/EX9.17/17.sce | 5e53f2cb21fb26eff5bd189a9206d6f9ccedb945 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 524 | sce | 17.sce | clc
V=6; //m^3
%A=0.45;
%B=0.55;
R_A=0.288; //kJ/kg K
R_B=0.295; //kJ/kg K
m=2; //kg
T=303; //K
disp("(i) The partial pressures")
m_A=%A*m;
m_B=%B*m;
p_A=m_A*R_A*10^3*T/V/10^5; //bar
disp("p_A=")
disp(p_A)
disp("bar")
p_B=m_B*R_B*10^3*T/V/10^5; //bar
disp("p_B=")
disp(p_B)
disp("bar")
disp(... |
65d604e2ca41e49fcbec79a1fcc8d7a06ba95fcf | 226851ab7bb8a3e1137e72fd154d4aa6939229f1 | /60002190048_SS SCILAB_4A(IZT).sce | 200ab389004812c30030f2ee5ba1392bb12d9d16 | [] | no_license | Ishitaa48/SS-Practicals-EXTC-1-E13-60002190048 | 637a855701ef0a07675e519cf002fa4742a571e7 | 183baae9ad66d093ba13d41a01f1d61751ef8036 | refs/heads/main | 2023-01-18T22:39:05.696201 | 2020-11-25T11:52:15 | 2020-11-25T11:52:15 | 315,921,545 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 220 | sce | 60002190048_SS SCILAB_4A(IZT).sce | //Program to find the Inverse Z transform using the Long Division Method
clear;
clc;
z=%z;
num=2*z*(2*z-1)
den=(z-1)*(z-2)^2
h=ldiv(num,den,10)
disp(h,"Displaying the first ten terms of the inverse z transform")
|
080d064f0db8f5c04d5ef6ddbd614ce355de8b88 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3434/CH14/EX14.15/Ex14_15.sce | ed814b8ff00136df80b0502c3c3277255a66fb03 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 617 | sce | Ex14_15.sce | clc
// given data
Co=20000.0 // cost in Rs
B=3000.0 // annual benefit in rs
n=15.0 // time in years
i=15.0/100 // initial guess for rate
NPV=zeros(4)
NPV(1)=B*(((1+i)**n)-1)/(i*(1+i)**n)-Co
x=1
printf( "Iteration no.\t\ti*\t\tNPV(i*)")
while NPV(x)<0
x=x+1
i=i-0.01
NPV(x)=B*(((1+i)**n)-1)/... |
1345fb302fd1a57ea83b42a4449f5dc6157f21fb | 417f69e36190edf7e19a030d2bb6aa4f15bb390c | /SMTTests/tests/err_checksat.tst | 87789dc6972445a38a615f5c35a758ae9f100ca8 | [] | no_license | IETS3/jSMTLIB | aeaa7ad19be88117c7454d807a944e8581184a66 | c724ac63056101bfeeb39cc3f366c8719aa23f7b | refs/heads/master | 2020-12-24T12:41:17.664907 | 2019-01-04T10:47:43 | 2019-01-04T10:47:43 | 76,446,229 | 1 | 0 | null | 2016-12-14T09:46:41 | 2016-12-14T09:46:41 | null | UTF-8 | Scilab | false | false | 62 | tst | err_checksat.tst | ; malformed check-sat command
(set-logic QF_UF)
(check-sat x)
|
b3a8413e6fd6abc3ebda5d5e1c2baf1426177859 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3669/CH5/EX5.9/9.sce | 3d92be74d86c4e2e69cb9345f1afb474dd0c3107 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 753 | sce | 9.sce |
//Variable declaration
rho=1.54*10**-8; //resistivity of metal(ohm m)
n=5.8*10**28; //number of free electrons(per m**3)
e=1.602*10**-19; //charge(c)
m=9.11*10**-31; //mass(kg)
E=1*10**2; //electric field(V/m)
Kb=1.381*10**-23; //boltzmann constant
T=300; //temperature(K)
//Calculati... |
411103ff70e074743c2e9197497db555237c7c6d | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4.1/Unix-Windows/scilab-2.4.1/tests/norm.tst | 6dac92a9b5304daa1792c55bc1bcd2946999ec00 | [
"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 | 2,461 | tst | norm.tst | // Copyright INRIA
eps=100*%eps;
// inf
if norm([1,2,3,-1,-2,-3],0)<>%inf then pause,end
if ~isnan(norm([1,2,3,-1,-2,-3],%nan)) then pause,end
if norm([])<>0 then pause,end
// vector
x=[1,2,3,-4];
if abs(norm(x,1) - sum(abs(x))) > eps then pause,end
if abs(norm(x,2) - sqrt(sum(abs(x).*abs(x)))) > eps then pause,end
... |
b126477907b6040329de144141d059dd5d06875d | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH2/EX2.17/example2_17.sce | d132632e5989ca3f7923f98cd732556520b70ec6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 644 | sce | example2_17.sce | clc
// Given that
lambda = 5e-7 // wavelength of light in meter
theta = %pi / 6 // half angular width of central maximum in first case in radian
theta_ = %pi / 2 // half angular width of central maximum in second case in radian
// Sample Problem 17 on page no. 2.44
printf("\n # PROBLEM 17 # \n")
m = 1 // for first min... |
47075696e88c729b6f56ce5924ec2addde8ecb5c | 60a8a4ce793d26ce86d35bcc0f2d58bd428855f1 | /3(C)Program to solve Factorial..sce | de8f9a6cbb411933481af94c6198a88367b29b55 | [] | no_license | muitnet/DM-Practicals-Exam | 194328e084450c7f06d2847eacb9cad170193197 | a9ad7a06e8fc28ffcbcde231b53c1de716fb97a3 | refs/heads/master | 2020-06-11T19:51:30.232988 | 2016-12-05T13:04:59 | 2016-12-05T13:04:59 | 75,625,333 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 268 | sce | 3(C)Program to solve Factorial..sce | disp('To find:factorial of a 6 ')
facto2 =2*1;
facto3 =3* facto2
facto4 =4* facto3
facto5 =5* facto4
facto6 =6* facto5
k =8*7* factorial (6)/ factorial (6) ;
disp (k,'value of 8!/6! is:')
j =12*11*10* factorial(9)/factorial(9);
disp(j,'value of 12!/9! is:')
|
1017b0114c16a0374e6b16d16586c65651f87b6a | 06a62d768e69fd9dda11b30011c252807e301813 | /f.sci | 222d9573728c42be0087ce8c59c1bdf15189e494 | [] | no_license | vikram-niit/matlab | 36ce3d9539629128251eab060164ce81c03aa690 | da8aeb4d727c47474d37676650664bd028d7e41d | refs/heads/master | 2020-03-18T13:40:37.068765 | 2018-05-25T03:51:55 | 2018-05-25T03:51:55 | 134,800,217 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 84 | sci | f.sci | function ydot=f(t, T)
ydot= -2.2067 * 10^(-1 * 12) * (T^4 - 300^4);
endfunction
|
355c45ecc2564d25fb000824d79de4a32b91e42d | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4.1/Unix-Windows/scilab-2.4.1/examples/addinter-examples/ex3c.sce | 2cd9e7ff10d7b4d588442f1320cc393f66223750 | [
"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 | 644 | sce | ex3c.sce | // Copyright INRIA
scifuncs=['funcc1','funcc2','funcc3','funcc4']; //Scilab functions
files=G_make(['/tmp/ex3cI.o','/tmp/ex3c.o'],'ex3c.dll');
addinter(strcat(files,' '),'testcentry3',scifuncs)
//matrix (double) created by C function
x1=funcc1();
if norm(x1-matrix((1:5*3),3,5)) > %eps then pause,end
//matrix (int)... |
b5f324cebe99f4e576d19092310d5ea9e8b954e8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /632/CH4/EX4.2/example4_2.sce | a1077b449c88efbc46d13ea6a60d5cfda2e2654d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | example4_2.sce | //clc()
T = 350;//K
P = 1;//bar
V1 = 22.4143 * 10^-3;//m^3 (suffix 1 represents at STD)
P1 = 1.01325;//bar
T1 = 273.15;//K
V = P1 * V1 * T/(T1 * P);
disp("m^3/mol",V,"Molar volume =") |
c807a7c0ddecb96a8e1e6f81f4fd20cc1dd85ea2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /965/CH9/EX9.3/3.sci | 2168fe212659e06c8f51c18786ce1a3fc0ad5ab0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 392 | sci | 3.sci | clc;
clear all;
disp("Volatge at burnout point")
d=0.001;//m diameter of wire
I=190;//amp
L=0.4;//m length of wire
rhol=958.4;//kg/m^3
rhov=0.5955;//kg/m^3
hfg=2257*10^3;//J/kg
s=58.9*10^(-3);// N/m
g=9.81;//m/s^2
qsc=0.18*rhov^0.5*hfg*(g*s*(rhol-rhov))^0.25;// at burnout i.e. points of critical flux
A=%pi*... |
57028dd225a7d32ef1c83a40a37d0a7cfcb1e643 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3834/CH3/EX3.3.4/Ex3_3_4.sce | 181e848f04a5181e2f6abc4e17dab56a8b78451a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 579 | sce | Ex3_3_4.sce | //Fiber Optics Communication Technology, by Djafer K. Mynbaev and Lovell L.scheiner
//Windows 7
//Scilab version- 6.0.0
//Example 3.3.4
clc;
clear;
//given
N1=1.487;//refractive index
delta=1.71;
L=5E3;//length of the graded index fiber
c=3E8;//velocity of light in m/s
b=delta*delta;
e=L*N1*b;
w=8*c;
d... |
592f3ed0a36e7fb2fecc0efb776aa9b43c40166f | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.5/macros/scicos/do_export.sci | 31edf2660ad5e01e062a7893c636aa305ba24585 | [
"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 | 1,968 | sci | do_export.sci | function do_export(scs_m,fname)
[lhs,rhs]=argn(0)
driv='Pos';num=1
dr=driver()
wpar=scs_m(1)(1)
winc=xget('window');
if rhs==1 then
num=x_choose(['Postscript file';..
'Graphics window'],'How do you want to export?')
if num==0 then return;end
if num<>2 then fname= xgetfile('*');end
end
// remove blanks and apostroph... |
cdb65530179b60d17d15eb111693582148840c69 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2780/CH12/EX12.8/Ex12_8.sce | 0a93694a6ecffe4c5adef02a1b1169ed10125bf9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 919 | sce | Ex12_8.sce | //in page no.340,numbering is done wrongly,it should be like ex-8,ex-9,ex-10,ex-11,ex-12,ex-13,ex-14
clc
//to calculate average values of intensities of electric and magnetic fields of radiation
//energy of lamp=1000 J/s
//area illuminated =4*%pi*r^2=16*%pi m^2
//energy radiated per unit area per second =1000/16*%... |
f41a34549d50e4d742d246b182b497e2c5e51935 | 449d555969bfd7befe906877abab098c6e63a0e8 | /62/CH4/EX4.18.b/ex_4_18b.sce | b901dd37fe80ece094606eee63f8800d03807f38 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 90 | sce | ex_4_18b.sce | z=%z;
x=ldiv(z,2*z^2-3*z+1,5);
mprintf('x[n]={0,%.2f,%.2f,%.2f,....}',x(1),x(2),x(3));
|
be80cdb7b9bb23baf48ee86af8193b924898b3c8 | 584105ff5b87869494a42f632079668e4c3f82de | /TestCases/calib3d/solvePnPRansac/test6.sce | ce0d1697c9ff8e697bc0a4f084af32a8bf778a55 | [] | no_license | kevgeo/FOSSEE-Computer-Vision | 0ceb1aafb800580498ea7d79982003714d88fb48 | 9ca5ceae56d11d81a178a9dafddc809238e412ba | refs/heads/master | 2021-01-17T21:11:31.309967 | 2016-08-01T14:45:40 | 2016-08-01T14:45:40 | 63,127,286 | 6 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 465 | sce | test6.sce | //Checking if function works for different values
obpts = [ 1 2 -3;
3.3 1.5 .2;
1.1 2.5 2.4;
.2 1.5 3.2;
2.3 -1.5 -.5;
-1 -3 5.5;
-1.5 -.5 3.5];
impts = [282 274;
397 227;
577 276;
462 378;
270 479;
450 523;
566 476];
camera = [ 1 0 0;
0 1 0;
0 0 1]
dist = [0
0
0
0];
iterations = 10;
reprojectionError ... |
ac19f29913b54e68664af9c29c38a809faa77f99 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2657/CH18/EX18.4/Ex18_4.sce | e65f5e06f04f620d950eaa3ea3bc08b66c541449 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,465 | sce | Ex18_4.sce | //Calculations on oil engine
clc,clear
//Given:
n=4 //Number of cylinders
d_o=5 //Diameter of orifice in cm
Cd=0.6 //Coefficient of discharge for orifice
d=10.5,l=12.5 //Bore and stroke in cm
N=1200 //Engine speed in rpm
T=147 //Brake torque delivered in Nm
m_f=5.5 //Fuel consumption in kg/hr
CV=43100 //Calor... |
cd23a810aa138065f7cc6cbc162b23347bc9e0bb | 449d555969bfd7befe906877abab098c6e63a0e8 | /2699/CH13/EX13.3/Ex13_3.sce | af85e7b46939bed2704524e8697af4bf8d8d14e5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 225 | sce | Ex13_3.sce | //EX13_3 PG-13.3
clc
clear
disp("representation of the number 567 in power of 8")
disp("N=(5*8^2)+(6*8^1)+(7*8^0)=375")
printf(" Therefore decimal equivalent of 567 is: ")
N=(5*8^2)+(6*8^1)+(7*8^0)
printf("%.0f",N)
|
916c6562fb06cdb23dc2a297f795a1c85ccc94c3 | 1489f5f3f467ff75c3223c5c1defb60ccb55df3d | /tests/test_cache_1_e.tst | df6045a2dffc559ef728096828f6ea798c043130 | [
"MIT"
] | permissive | ciyam/ciyam | 8e078673340b43f04e7b0d6ac81740b6cf3d78d0 | 935df95387fb140487d2e0053fabf612b0d3f9e2 | refs/heads/master | 2023-08-31T11:03:25.835641 | 2023-08-31T04:31:22 | 2023-08-31T04:31:22 | 3,124,021 | 18 | 16 | null | 2017-01-28T16:22:57 | 2012-01-07T10:55:14 | C++ | UTF-8 | Scilab | false | false | 931 | tst | test_cache_1_e.tst | changed #0
changed #1
changed #2
changed #3
changed #4
test for 5
item #6
item #7
test for 8
item #9
stored #10
stored #11
stored #12
stored #13
stored #14
stored #15
stored #16
stored #17
stored #18
stored #19
item #20
item #21
item #22
item #23
item #24
item #25
item #26
item #27
item #28
item #29
item #30
item #31
i... |
b6553a21e53dada4df6427f4930a6c32c860add5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1523/CH3/EX3.21/3_21.sce | cc684bd42d5e7607701cd2a90edec32b249639a9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 362 | sce | 3_21.sce | //Network Theorem 2
//pg no 3.25
//example 3.21
//Calculation of Vth
v=100;
r=20;
x=v/r;
disp("Removing the 20 Ohm resistor from the network");
printf("\nVth = %.f V ",v);
//calculation of Rth
disp("replacing the voltage source with short circuit and current source by open circuit");
disp("Rth = 0");
//calc... |
eae7d8129071e83bc28e8d2f827e899ccc5498ad | 449d555969bfd7befe906877abab098c6e63a0e8 | /2885/CH11/EX11.3/ex11_3.sce | 6f58c32022cccf02628cbb01314926d5b12f31f4 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 399 | sce | ex11_3.sce | //Calculate impedance and quality factor and bandwidth
clear;
clc;
//soltion
//given
R=10;//ohm
L=150*10^-6;//H
C=100*10^-12;//F
fo=1/(2*%pi*sqrt(L*C));
Zp=L/(C*R); //impedance
printf("The impedance Z= %.0f kΩ\n",Zp/1000);
Xl=(2*%pi*fo*L);
Q=Xl/R;
BW=fo/Q;
printf("The Quality factor of the circuit... |
dd0eadf5d5607a803ae946b8b1b8a53a834ae990 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3204/CH20/EX20.8/Ex20_8.sce | f33f781ae2b99fdd4db73af9620712481fecc870 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,110 | sce | Ex20_8.sce | // Initilization of variables
W=30 // N // Weight of the hammer
theta=30 // degree // ref fig.20.12
mu=0.18 // coefficient of friction
s=10 // m // distance travelled by the hammer // fig 20.12
g=9.81 // m/s^2 // acc due to gravity
// Calculations
// The acceleration of the hammer is given as,
a=g*((sind(theta)... |
26e66da5fc30adacd2274ad87d680a2ee5ea89d6 | 0896434fe17d3300e03ad0250029673ebf70bacc | /sheet_5/Scilab_programs/Q5.sce | 928aae0bcbc30f28c7e0c8fc08174d4821d6fb07 | [] | no_license | TheShiningVampire/EE324_Controls_Lab | 8ff1720b852bf24dca3c172082f5f898f80f69f3 | 9aea73eed3f5a4ac6c19a799f8aebe09f4af0be8 | refs/heads/main | 2023-07-09T17:30:38.041544 | 2021-08-23T12:14:29 | 2021-08-23T12:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 360 | sce | Q5.sce | clear
close
clc
s = poly(0,'s');
G1 = 100/((s+100)*(s^2+2*s+2));
Glin1 = syslin('c',G1);
G2 = 1/((s^2+2*s+2));
Glin2 = syslin('c',G2);
clf();
evans(Glin1,100);
evans(Glin2,100)
// Post-tuning graphical elements
ch = gca().children;
curves = ch(2).children;
curves.thickness = 2;
asymptotes = ch(ch.type=="Segs");
a... |
636c73a883f4c9e4bb90696d8330991cd97f8ff5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /69/CH10/EX10.14/10_14.sce | a88d23a9991fe60f7b954d61ae2d2bb2184b3509 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 250 | sce | 10_14.sce | clear; clc; close;
Rf = 240*10^(3);
R1 = 10*10^(3);
Vi = 0.02;
w = 300*10^(3);
SR = 0.5;
Acl = abs(Rf/R1);
K = Acl*Vi;
w1 = SR/K;
disp(w,'Since this frequency is much less than maximum obtained,hence no distortion will be observed');
|
8c5df3eb9cba95fbf27fbb277689081f7c74abb1 | 471954efc7f0626b4546ec90bd6da69407b2dfe6 | /arquivo.tst | db797a04606098544501ac7761327aa2272e2bac | [] | no_license | erseduardo/aulagit | 9be3592de2350f91f070412dd47b4d8ac9c0560e | 274f0933b32a5b3aaa440361df7dd1c1c28edcb4 | refs/heads/master | 2020-04-04T15:34:27.743421 | 2018-11-04T03:08:11 | 2018-11-04T03:08:11 | 156,042,548 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 25 | tst | arquivo.tst | bem vindo ao meu mundo!!
|
d5c62fa4887cecb99d4f8657e6a54f11f5207344 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1883/CH1/EX1.7.2/Example1_2.sce | f1ee05d595f582e9b564dcb2d112a9131f771440 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 583 | sce | Example1_2.sce | //Chapter-1,Example1_7_2,pg 1-42
wavelength=6000 //wavelength of light in air
u=1.2 //refractive index of transparant material
wavelength_1=wavelength/u ... |
ea17ec5bb6b72c354835b9d1c6ec34b4620f82cc | 449d555969bfd7befe906877abab098c6e63a0e8 | /764/CH10/EX10.3.a/data10_3.sci | 1edbaa008202cda17162af2564315f4e66039003 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 543 | sci | data10_3.sci |
//(Springs) Example 10.3
//Maximum force acting on the helical spring P (kN)
P = 7.5
//Mean coil diameter D (mm)
D = 150
//Spring rate k (N/mm)
k = 75
//Ultimate tensile strength of the spring material Sut (N/mm2)
Sut = 1250
//Rigidity modulus of the material G (N/mm2)
G = 81370
//Array of values C
Cval =... |
dfcff762cb17a05e0f889713936ac68f75f7b185 | f542bc49c4d04b47d19c88e7c89d5db60922e34e | /PresentationFiles_Subjects/CONT/EA39DWK/ATWM1_Working_Memory_MEG_EA39DWK_Session2/ATWM1_Working_Memory_MEG_Salient_Cued_Run2.sce | 72dc1f8d4a6fd40a68b2c5daa62b085545977fbe | [] | no_license | atwm1/Presentation | 65c674180f731f050aad33beefffb9ba0caa6688 | 9732a004ca091b184b670c56c55f538ff6600c08 | refs/heads/master | 2020-04-15T14:04:41.900640 | 2020-02-14T16:10:11 | 2020-02-14T16:10:11 | 56,771,016 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 49,383 | sce | ATWM1_Working_Memory_MEG_Salient_Cued_Run2.sce | # ATWM1 MEG Experiment
scenario = "ATWM1_Working_Memory_MEG_salient_cued_run2";
#scenario_type = fMRI; # Fuer Scanner
#scenario_type = fMRI_emulation; # Zum Testen
scenario_type = trials; # for MEG
#scan_period = 2000; # TR
#pulses_per_scan = 1;
#pulse_code = 1;
pulse_width=6;
default_monitor... |
83022825f7175d325fd6e0ec77a7a749818fc2c3 | f3a23c3bf50fa5d87c70f0ce0c469b0bf00884ca | /Scilab/exercice_4.sce | e5fbd0537e05a6486f6244a89a5a3124463dbeea | [] | no_license | standardgalactic/NumericalAnalysis | f67f71294db38a103c29cb81181c0ccef606c18f | 41ca26a43bae9873be39fd7879da1b95d8c37d3a | refs/heads/master | 2023-07-18T15:10:51.364303 | 2016-09-24T17:56:23 | 2016-09-24T17:56:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 585 | sce | exercice_4.sce | function y = I(x)
y = (x.^20)*exp(x)
endfunction
function y = SquareMethod(f,a,b,n)
s=0;
h=(b-a)/n;
for i=0:(n-1)
s=s+f(a+(i*h));
end
y=h*s
endfunction
// Fonctions supplémentaires pour des tests de précision
function S = Simpson(f,a,b,N)
h = (b-a)/N
pe = a + h*[1:N-1]
pm = a + ... |
8b20cc463e3451e5116f23450fed54c19c2da8e8 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2087/CH16/EX16.6/example16_6.sce | ba5ed4a50077ceddb75cf0e662f32fec426735b3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 271 | sce | example16_6.sce |
//example 16.6
//calculate permeability coefficient
clc;funcprot(0);
//given
L=30; //spacing between drans
Q=4D-6; //discharge
a=8;
b=8.3;
k=1000000*Q*L/(4*(b^2-a^2));
k=round(k*100)/100;
mprintf("permeability coefficient=%fD-6 m/sec.",k);
|
ca0d6b46c43ec281cb7d4de30b6d736232513f99 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2606/CH11/EX11.8/ex11_8.sce | 434b51a5b82fbc6b9030ce7735ba1418fa4e682a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 351 | sce | ex11_8.sce | //Page Number: 11.16
//Example 11.8
clc;
//(a) Channel Matrix
//Given
PYbyX=[0.9 0.1;0.2 0.8];
PZbyY=[0.9 0.1;0.2 0.8];
//As P(Z/X)=P(Y/X)*P(Z/Y)
PZbyX=PYbyX*PZbyY;
disp(PZbyX,'Channel Matrix');
//(b)Pz1 and Pz2
//Given
Px1=0.5;
Px2=Px1;
//As P(Z)=P(X)*P(Z/X)
//P(X) matrix
PX=[Px1 Px2];
PZ=PX*PZb... |
cd1f6259d1d078baefd6279ea046f65d70b9eaab | 449d555969bfd7befe906877abab098c6e63a0e8 | /764/CH10/EX10.4.a/data10_4.sci | a506c0f75eb66ee917ed7423916885f5fee58bc6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 729 | sci | data10_4.sci |
//(Springs) Example 10.4
//Refer Fig.10.17 on page 410
//Axial force on the spring when the valve is open Pmax (N)
Pmax = 300
//Axial force on the spring when the valve is closed Pmin (N)
Pmin = 150
//Length of the spring when the valve is open lmax (mm)
lmax = 30
//Length of the spring when the valve is closed lmin (... |
a71e5ba8dea337dddac1d7b4c7833e71b7a0179d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3594/CH11/EX11.3/Ex11_3.sce | 9607f7203310b628ddba68cee8451a5715cbee84 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 544 | sce | Ex11_3.sce |
clc
//given
d=7//in; central distance
k1=2*7*7//T1+t1/(2*7)=7
k2=2*7*5//T2+t2/(2*5)=7
G=9/1
t1=(-(k1+k2)+((k1+k2)^2+4*(G-1)*(k1*k2))^(1/2))/(2*(G-1))
a=ceil(t1)
b=floor(t1)
T1=k1-a
T2=k2-a
T3=k2-b
G1=T1*T2/(a*a)
G2=T1*T3/(a*b)
dp=a/d
//case b)
tb1=23//let t1 = 23
Tb1=k1-tb1
Gb1=Tb1/tb1
Gb2=G/Gb1
t... |
8c50002199f3cb69f92a6c63289123d58d110a73 | b68ae1fc3cd37c85031f69e42d92903b7f1a90ab | /projects/04/fill/Fill.tst | 5376b19c2562b7c081b3d5c4c8e6bb143109a654 | [] | no_license | bricef/The-Elements-of-Computing-Systems | fb3aa100c18176ccfc876e9d30319c0b8a5c7635 | 6be81eacaa30ad57b06f018c0aecbcf7e04841bc | refs/heads/master | 2021-01-18T13:43:02.653913 | 2011-04-06T19:23:52 | 2011-04-06T19:23:52 | 1,578,790 | 5 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 384 | tst | Fill.tst | // This file is part of the materials accompanying the book
// "The Elements of Computing Systems" by Nisan and Schocken,
// MIT Press. Book site: www.idc.ac.il/tecs
// File name: projects/04/fill/Fill.tst
load Fill.hack;
echo "First, make sure that 'No Animation' is selected. Then, select the Keyboard, click ... |
7d3f550d6978f852c48261340dc1bf12cb9a2ae5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3875/CH4/EX4.21/Ex4_21.sce | c0b88ce7fc6654fe8114dd9e1cb2a929c5e56f8a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 238 | sce | Ex4_21.sce | clc;
clear;
disp_X=0.05896*10^-3 //displacement of mirror in m
n=200 //no of fringes
//calculation
lambda=(2*disp_X)/n
mprintf("The wavelength of the light is = %1.3e m",lambda)
//The answer provided in the textbook is wrong.
|
75d692462b1f74c8cf9fe459e806ca3d183e4237 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2175/CH6/EX6.4/6_4.sce | e74d43502e049cda7738eb964cfa17be512447df | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 550 | sce | 6_4.sce | clc;
VO=0.21;
VN=0.79;
n=3.5;
nO=VO*n;
nN=VN*n
nC=1;
m_O=32;
m_N=28;
m_C=44;
mO=m_O*nO;
mN=m_N*nN;
mC=m_C*nC;
m=mO+mN+mC;
disp("total mass is:");
disp("kg",m);
//percentage of carbon is
mc=12;
P=mc*100/m;
disp("percentage of carbon is:");
disp("%",P)
n=nO+nN+nC;
m_=[nO*m_O/n]+[nN*m_N... |
8f253f5b74b9cf1c2602714b94e9ea23b7947aac | 449d555969bfd7befe906877abab098c6e63a0e8 | /1055/CH19/EX19.2/ch19_2.sce | f456cc345396f8c5df5c2c84ee687f83af7bb619 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 269 | sce | ch19_2.sce | //Determine the incremental cost of recieved power and penalty factor of the plant
clear
clc;
pf=10/8;//penalty factor
cost=(.1*10+3)*pf;//Cost of recieved power=dF1/dP1
mprintf("Penalty Factor=%.1f\n",pf);
mprintf("Cost of recieved Power=Rs %.1f /MWhr",cost);
|
673bf44ecbffe57d88ae7fef7f3ef6e94394d0c3 | 2e676e3b1cebfbb9d20f9b935ceacd507c57d36a | /Octave/octave-4.2.1/share/octave/packages/interval-2.1.0/test/atan2.tst | a10c8dc0714b4f4d9fc0666cabcc62bf2bc2cb65 | [] | no_license | vohrahul/ML-ang-coursera | 239469e763b290aa178b7aa8a86eda08e4e7f4be | 4c24fd2ecfb9f3de7df15e3a9f75627f782f9915 | refs/heads/master | 2022-12-28T03:45:54.810173 | 2020-10-16T12:33:25 | 2020-10-16T12:33:25 | 304,620,441 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 7,034 | tst | atan2.tst | ## DO NOT EDIT! Generated automatically from test/atan2.itl
## by the Interval Testing Framework for IEEE 1788.
## https://github.com/nehmeier/ITF1788/tree/92558f7e942665a78f2e883dbe7af52320100fba
##
## Copyright 2015-2016 Oliver Heimlich
##
## This program is free software; you can redistribute it and/or modify
## i... |
4b99ee342d80cc40e2fb4c190d89c678784c1837 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1979/CH10/EX10.11/Ex10_11.sce | bcf82566ed2b177bb7957abec5ea86d765dd50fa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 938 | sce | Ex10_11.sce | //chapter-10 page 490 example 10.11
//==============================================================================
clc;
clear;
D=1;//Assume diameter of the parabolic reflectors in the original system in m
w=1;//Assume wavelength in m
//CALCULATION
D1=2*D;//diameter of the parabolic reflectors in the modifi... |
7996741c34ff828f83a977729276121f6a8438fe | 449d555969bfd7befe906877abab098c6e63a0e8 | /632/CH8/EX8.10/8_10.sce | 3fac87de0ac8a6120b3bba1e10e88b40bd03b973 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 360 | sce | 8_10.sce | //clc()
P = 100;//kPa
T = [273 280 290 300 310 320 330 340];
for i =1:8
Ps(i) = exp(13.8216 - 2697.55/(T(i)-48.78));
end
disp((Ps))
for j = 1:8
Ys(j) = Ps(j) * 86.11 / ((P - Ps(j))*28);
end
disp(Ys)
plot(T,Ys,rect=[273,0,333,10]);
xtitle('100% saturation line for nitrogen-hexane system','Temperature... |
f7129e7b3163c3f67e8002978edc73b4bc075452 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3814/CH2/EX2.7/Ex2_7.sce | 08b5449f4301e7e153327d6177b42215778a54bf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 243 | sce | Ex2_7.sce | // to calculate air velocity assuming density of air 1.2kg/m3
clc;
gammma=9800 // constant gammma
h=4e-3 // height of water in mm
pair=1.2 // air velocity of air in kg/m3
deltap=h*gammma
V=sqrt((2*deltap)/pair)
mprintf('V =%f m/s',V)
|
c1129265d4cdb54505f2d5c297471588075b4abb | 449d555969bfd7befe906877abab098c6e63a0e8 | /575/CH5/EX5.2.1/5_2_1.sce | f1f7eb578a9524079d636c60737c979778802569 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 5_2_1.sce | clc
pathname=get_absolute_file_path('5_2_1.sce')
filename=pathname+filesep()+'521.sci'
exec(filename)
n=weight/MN2 //mol
V=n*R*T*14.7/P //lt
printf("assuming ideal gas behaviour, volume=%f litres",V)
Vcap=V/n
if(Vcap>5)
disp("ideal gas equation yields error less than 1 % for diatomic gas")
else
disp(... |
1a9ff2e67853913ff3eea6a6cec1bbfbf139be3f | 449d555969bfd7befe906877abab098c6e63a0e8 | /926/CH3/EX3.3/Chapter3_Example3.sce | fea14009410f81bff9983a34993ed795d812edce | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,080 | sce | Chapter3_Example3.sce | //Hougen O.A., Watson K.M., Ragatz R.A., 2004. Chemical process principles Part-1: Material and Energy Balances(II Edition). CBS Publishers & Distributors, New Delhi, pp 504
//Chapter-3, Illustration 3, Page 54
//Title: Calculation of pressure
//=====================================================================... |
c2f7e452d0070a6c9d773dd0df36f611af1d0f5a | 9d2c9394c6b6997318b9d04556462c9bba639045 | /Replication 2/Dave_RIFData/Dave_RIFData/Sub8/VP8_OneBack.sce | 655e99c4a162dc3aa89690110243c66fee3f1d8d | [] | no_license | rettopnivek/Wimber_et_al_replication_3 | 673b156d8d18d58b92b2f05fedef87976e787089 | 8dbc22329093a61b1e5cb8aac3feca45a5c82d06 | refs/heads/master | 2020-12-31T04:42:39.856717 | 2018-02-01T15:49:15 | 2018-02-01T15:49:15 | 58,006,910 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,885 | sce | VP8_OneBack.sce | array <int> finalSeq[432] = {8,64,64,46,15,42,34,63,63,14,57,17,60,30,13,47,4,4,52,2,53,59,33,12,33,69,69,48,48,13,65,40,46,51,51,46,5,43,42,45,6,58,6,6,51,16,30,21,67,51,50,27,50,25,54,37,71,38,38,5,39,48,60,11,2,28,9,18,20,6,68,40,12,14,38,50,17,66,53,61,43,52,71,8,58,58,4,60,10,3,38,13,16,25,25,48,10,45,58,28,5,6,40... |
69c7fef4b458f95c4e4e9be1395a719273fb3d3c | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set5/s_Electrical_Machines_M._V._Despande_833.zip/Electrical_Machines_M._V._Despande_833/CH4/EX4.2/Ex4_2.sce | 82093f627ac584219d95ef67d4ada71221512c3f | [] | 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 | 1,288 | sce | Ex4_2.sce | errcatch(-1,"stop");mode(2);//Caption:Find (a)Voltage per turn (b)Cross sectional area of core (c)Cross sectional area of conductor for h.v (d)Number of turns per phase in h.v winding (e)Cross sectional area of conductor in l.v winding (f)Number of turns in l.v winding (g)Window area (h)Yoke and approx frame size,and (... |
87e8ea7cfd7c35ba810571ad77a657f8d27b9226 | 449d555969bfd7befe906877abab098c6e63a0e8 | /98/CH13/EX13.35/example13_35.sce | ab6fd3e1984fe96b985b8f9a90fe4cd676ca78e2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 647 | sce | example13_35.sce | //Chapter 13
//Example 13_35
//Page 350
clear;clc;
v=500;
ip=800;
in=550;
io=1500;
ra=0.2;
//no load current
inl=5;
tip=io+ip;
tin=io+in;
cn=ip-in;
printf("Total current on positive side = %d A \n", tip);
printf("Total current on negative side = %d A \n", tin);
printf("Current in nuetral wire = %d A \n\n", cn);
e=v... |
0a8f33d67098b83bca36f6d1a6df6b6e53b4144b | 449d555969bfd7befe906877abab098c6e63a0e8 | /680/CH10/EX10.08/10_08.sce | 12e7c454520b0580ce4a7e4e4ab1b00887c9aed1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 475 | sce | 10_08.sce | //Problem 10.08:
//initializing the variables:
EA = 150
T = 298; // in K
//calculation:
DHc = -1580.56 // in cal/gmol
//DCp = 14*Cpco2 + 2*Cph2o + 5*Cphcl + 22.5*Cpo2 + 141.05*Cpn2
//DCp = 1318.60 + 0.1899*T - 5.327E6*T^-2
//DHc = 1318.60(T2 - T) + 0.5*0.1899*(T2^2 - T^2) + 5.327E6(T2^-1 - 298^-1)
//solvin... |
9c2170c146da2b146f458194dcf51d4114791871 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2294/CH12/EX12.3/EX12_3.sce | aa7aaf20e5d938505730959800df2bdebd84033d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 304 | sce | EX12_3.sce | //Example12.3
//Find the probability that tails shows up at least once.
disp('Let A be the event that tail shows atleast once');
disp('Eac toss has two possible outcmes H ,T');
disp(2^3,'Hence the total no of outcomes is 2^3=');
disp(1-(1/2^3),'P(A)=1-Probability of getting all head i.e 1/8=');
|
752e62149b91039134c70cc57751bd977e1951d3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /317/CH21/EX21.12/example12.sce | a3d1ee578dad2eb96035d5a84b6e8b9fbc92ba0a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 671 | sce | example12.sce | // find voltage gain,center frequency,Q
// Electronic Principles
// By Albert Malvino , David Bates
// Seventh Edition
// The McGraw-Hill Companies
// Example 21-12, page 827
clear;clc; close;
// Given data
C=120*10^-9;// capacitance in faraday
R1=13*10^3;// resistance in ohms
R2=10*10^3;// resistance i... |
9dccfa4d7f9ad2c331eec557708d279fd164a317 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2453/CH7/EX7.7/7_7.sce | 5e86efc2dae1221eec03ffbd53d3383193e888e7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 281 | sce | 7_7.sce | //To calculate the susceptibility
chi_1 = 2.8*10^-4; //susceptibility
T1 = 350; //temperature, K
T2 = 300; //temperature, K
//chi = C/T where C is curie constant
chi_2 = chi_1*T1/T2; //susceptibility at 300 K
printf("susceptibility at 300 K is %f",chi_2);
|
acd689053fed2f661cab24aedcb311da00c1d086 | 6e257f133dd8984b578f3c9fd3f269eabc0750be | /ScilabFromTheoryToPractice/GettingStarted/testconsole.sce | 62a2ebd76986631716d4a2fc3901223d03290702 | [] | 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 | 45 | sce | testconsole.sce | 2+2
2+2,3*4
2+2;3*4
2+2,3*4; // a comment
|
9d070862483f21120d8d9e13676eb4debf79fb51 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3685/CH5/EX5.4/Ex5_4.sce | 99e9fb68bf1ca3c74d2196be323a19b794e0420a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 419 | sce | Ex5_4.sce | clc
h1 = 313.93 // Enthalpy of water at heater inlet in kJ/kg
h2 = 2676 // Enthalpy of hot water at temperature 100.2 degree Celsius
h3 = 419 //Enthalpy of water at heater inlet in kJ/kg
w1 = 4.2 // mass flow rate in kg/s
printf("\n Example 5.4")
w2 = w1*(h3-h1)/(h2-h3)// Steam rate
printf("\n The amount of ... |
e3734bfeaffe385cdb856657de227ae638d5870e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH17/EX10.17.7/Ex10_17_7.sce | a7bd40a650f1543cad4c1d7e86c5caab10e62c14 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 193 | sce | Ex10_17_7.sce | //Section-10,Example-2,Page no.-CT.31
//To calculate dl_E for the given process.
clc;
P=4
V_2=25
V_1=5
W=-(P*(V_2-V_1))*(8.314/0.08206)
q=500
dl_E=q+W
disp(dl_E,'Change in internal energy(J)')
|
88a0ecfedda451756553537ff63addbfd015d720 | 449d555969bfd7befe906877abab098c6e63a0e8 | /581/CH11/EX11.10/Example11_10.sce | ec6ad5dffb3675f06adc8adbe25a74e0850acb60 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,301 | sce | Example11_10.sce |
clear;
clc;
printf("\t Example 11.10\n");
T1=303; // isothermal temp.,K
v=5; //air speed,m/s
l=0.05; //length of naphthalene model that is flat, m
Mnap=128.2; //molar mass of naphthalene,kg/kmol
D=0.86*10^-5; //diffusion coefficient of naphthalene in air,m/s
Pv=10^(11.45-3729.3/... |
c78685f4b2d295e91e8f275abfde67128e1880c6 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2135/CH3/EX3.8/Exa_3_8.sce | 43a26b5c200779b3cbc7149dca9961b249972850 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 517 | sce | Exa_3_8.sce | //Exa 3.8
clc;
clear;
close;
format('v',6);
//Given Data :
Wdot=200;//W
t1=40;//degree centigrade
//Q2dot=20*(t1-t2);//W
//COP=Q2dot/W2dot=T2/(T1-T2)
//(t1-t2)/(W2dot/20)=(t1+273)/(t1-t2)
//20*t1^2+20*t2^2-20*2*t1*t2-t1*Wdot-273*Wdot
//(t2+273)/(t1-t2)=(t1-t2)/(Wdot/20)
//t2^2-(2*t1+(Wdot/20))*t2-273*(Wd... |
01f43c3a39ee0849f883a318bc84eee229d65b35 | 69c25d9e4701da828f9b4570b297fd25efa1a3f0 | /preview_control.sci | ba8a860272fc9a86f8d37f7c78d8d9a420c9f16b | [] | no_license | yasuohayashibara/Preview-Control-for-Walking | 4798f1ad1c8ce58caa245e4ae9454025ccf75d9f | 3f148d4e4ac1aae39b173e76dad5a2b32918f8af | refs/heads/master | 2022-08-30T14:50:53.232866 | 2022-08-02T00:30:27 | 2022-08-02T00:30:27 | 15,644,045 | 3 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 2,493 | sci | preview_control.sci | // Preview control for walking
timer();
// 足の着地時間(s),x方向の位置(m),y方向の位置(m)
foot = [0 0 0; 0.6 0.1 0.06; 0.9 0.2 -0.06; 1.2 0.3 0.06; 1.5 0.4 -0.06; 1.8 0.5 0.06; 2.4 0.6 -0.06; 3.0 0.7 0.0; 100 0 0];
forward_period = 1.0; // 予見制御の時間(s)
calculate_period = 4.0; // 歩行パターンを生成する期間(s)
dt = 0.01; ... |
ed1bbda5cb545d191fbd43e41b7ebc636fba38a4 | d56141249002a5da7c4a2641dbdfc609809046a8 | /espresso/qe_pdos_multi_atom.sce | 44911c9a53756c595cada0b35b3b5992aa81ef3e | [] | no_license | kcbhamu/DFTutilities | 14a77226c1229ec61563cc08316d6c32814ddb57 | d6c859407a6b13c8bc5340c08db7a0125d6ed4e6 | refs/heads/master | 2021-06-24T15:23:58.675113 | 2017-08-23T20:56:44 | 2017-08-23T20:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,523 | sce | qe_pdos_multi_atom.sce | // This code plot the PDOS calculated from Quantum espresso
// change the file browser to working folder.
clear; clc; exec(PiLib); xdel(winsid());
// Parameters ==========================================================
work_dir=[] // dir where pdos files are stored
Ef=10.6726 // Fermi level
plot_atom=[-1,13,14,-2,1... |
ab0efc88db1fdae4ddcf00b67dce2098d3652872 | 717ddeb7e700373742c617a95e25a2376565112c | /1766/CH2/EX2.12/EX2_12.sce | c1f5bc907aa55809e61d0db0b2f7bc77bb3c3a8e | [] | 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 | 477 | sce | EX2_12.sce | clc;funcprot(0);//Example 2.12
//Initilisation of Variables
L=0.05;....//length of the linear triangular fin in m
t=0.01;....//diameter of linear triangular fin in m
w=0.25;...//width of the linear triangular fin in m
K=175;....//thermal conductivity of rod in W/m*k
h=45;....//Convective heat transfer coefficient... |
2cb14ad34399648e9a01a680dfd2fe501680b7a7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2912/CH5/EX5.17/Ex5_17.sce | 87fcc35439c70fb3d21e5a4b00d3bee0af130740 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 936 | sce | Ex5_17.sce | //chapter 5
//example 5.17
//Calculate percentage of uncertainty in the momentum of electron
//page 109
clear;
clc;
//given
K=1; // in KeV (kinetic energy of electron)
dx=1; // in Angstrom (uncertainty in the position)
h=6.63E-34; // in J-s (Planck's constant)
m=9.1E-31; // in Kg (mass of electron)
pi=3.14; ... |
5f69337feab0d8085af4dfb02593171ec02898fa | 449d555969bfd7befe906877abab098c6e63a0e8 | /1571/CH8/EX8.6/Chapter8_Example6.sce | 75aaf063f7a05a918fe2ba977ddf924c94ef55e5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 254 | sce | Chapter8_Example6.sce | clc
clear
//INPUT
t1=288;//inital temperature in K
dv=1/2;//ratio of inital to final volume
y=1.4;//coefficient of expansion
//CALCULATIONS
t2=t1*(dv)^(y-1);//final temperature in K
//OUTPUT
mprintf('the final temperature is %3.1f K',t2)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.