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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81001aa5f7685086329494d6fc22fbb292b32f85 | 6b85d1958ff11075634ed9e0f6dbef2de9548f1b | /ANN_Toolbox/macros/ann_d_log_activ.sci | fe7dc36ee7e88c17dc70c131a067b048b70d96cb | [
"Unlicense"
] | permissive | ademarazn/REDES_NEURAIS | 8a048c13aab33daa4068f52e18b263cc8325884f | a9a35744476d1f7e8405df04d5e4a9f8e4ed4595 | refs/heads/master | 2021-05-06T13:09:56.514632 | 2018-04-25T18:49:30 | 2018-04-25T18:49:30 | 113,248,743 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 374 | sci | ann_d_log_activ.sci | function z = ann_d_log_activ(y)
// This file is part of:
// ANN Toolbox for Scilab 5.x
// Copyright (C) Ryurick M. Hristev
// updated by Allan CORNET INRIA, May 2008
// released under GNU Public licence version 2
// calculates the derivative of logistic activation function,
// given the actual value of the function
... |
7f41513a9aa00bf3a0171917d1b62b9fb7125d1e | 8781912fe931b72e88f06cb03f2a6e1e617f37fe | /scilab/diffuse_rel/diffuse/react.sce | a1d3ae68946a3eff1482d65047e9f46030182912 | [] | no_license | mikeg2105/matlab-old | fe216267968984e9fb0a0bdc4b9ab5a7dd6e306e | eac168097f9060b4787ee17e3a97f2099f8182c1 | refs/heads/master | 2021-05-01T07:58:19.274277 | 2018-02-11T22:09:18 | 2018-02-11T22:09:18 | 121,167,118 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 631 | sce | react.sce | function [react]=react(concm,n1,n2,n3,nspecies,rconsts, t)
//simple linear multi species model with no time dependence
nconcm=concm;
//for i=1:nspecies
for i1=1:n1
for i2=1:n2
for i3=1:n3
if (concm(i1,i2,i3,1)>0.000001)
if(concm(i1,i2,i3,2)>0.000001)
... |
83002fb87da42f2b2bc9f43a9e5314a4a5554f5f | 8428dbbaf27be9bbe36d9147cec9e4dc195636f5 | /ZEUS_VS/res/scenarios/world.sce | e77772699bad50b903744d7fbfb22c0ba748d30c | [
"MIT"
] | permissive | Czar-Ec/ZEUS | 0c96b746cd88a254cddaf87b78c2bbae7cb06606 | 3d5dca5459bf5c52a3bf62713b3253418e4f54fd | refs/heads/master | 2021-03-27T14:57:51.146546 | 2018-11-16T21:00:35 | 2018-11-16T21:00:35 | 111,576,289 | 2 | 0 | null | null | null | null | ISO-8859-1 | Scilab | false | false | 17,356 | sce | world.sce | world
..\\res\\img\\worldHigh.png
AD|Andorra|200|200|200|76965|0|0|0|0|0|ES,FR|||
AE|United-Arab-Emirates|200|200|201|6072475|0|0|0|1|2|OM,SA|CN,ID,LK,SG,IL|CN,FR,JP|
AF|Afghanistan|200|200|202|35530081|0|0|0|0|0|IR,PK,TJ,TM,UZ,CN|||
AG|Antigua-&-Barbuda|200|200|203|102012|0|0|0|0|0||BR,US,BL,DM||
AI|Anguilla|200|200|2... |
54902a3901686ea8a6a86261f7d3baf2d8eb8e83 | 8c802fb8c6a8dc8ed61222ce257eb61f580a462e | /projects/05/ComputerAdd-external.tst | 66bf9bc5d5832f81744ebd3ba3d400142c4fe6dc | [] | no_license | radavis/nand2tetris | 0703b55695378cd8ec279599a34114cbfba48ef7 | 021ba06dbbe203206b44360f162a0d64e2dc41f9 | refs/heads/master | 2021-01-01T20:05:37.036752 | 2015-05-16T19:13:31 | 2015-05-16T19:13:31 | 34,955,667 | 8 | 3 | null | null | null | null | UTF-8 | Scilab | false | false | 682 | tst | ComputerAdd-external.tst | // File name: projects/05/ComputerAdd-external.tst
load Computer.hdl,
output-file ComputerAdd-external.out,
compare-to ComputerAdd-external.cmp,
output-list time%S1.4.1 reset%B2.1.2 RAM16K[0]%D1.7.1 RAM16K[1]%D1.7.1 RAM16K[2]%D1.7.1;
// Load a program written in the Hack machine language.
// The program adds ... |
1140e3e569a55576c7db0685f03cc23d8d403472 | 44f225adc0be4f9ecb45fb9fde03e74f23d7acb2 | /macros/more/imgaussfilt3.sci | fb7f15e10cac31d950c25af527b2f508d0e48b32 | [] | no_license | harpreetrathore/scilab-IPT | 10c4996614f1c59972e59decd1b7171e7d5816e0 | db79f1370f3cb0a7716a8afcf1cf5fde9fe70aba | refs/heads/master | 2021-01-01T04:06:52.573735 | 2016-05-26T20:34:33 | 2016-05-26T20:34:33 | 59,781,201 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 369 | sci | imgaussfilt3.sci | //Function migration (image list to matrix) for: imgaussfilt3
//Generated by migrate.cpp
//Author: Anirudh Katoch
function res = imgaussfilt3(varargin)
select length(varargin)
case 02 then
res = il2mat(raw_imgaussfilt3(mat2il(varargin(01)), varargin(02)))
case 01 then
res = il2mat(raw_imgaussfilt3(mat2il(var... |
6a863b440fd8d34020eff637ecec4624a20d31db | 983a23b79aba356a16a73072b248070eda40d5bf | /parametros de capacitores/parametros_cap.sci | 93cfadb24541f94c7de6b6091a23f4f62bd96b3b | [] | no_license | Kmena/seslab_script | fc076d595317d5f4086d8e7ab63394754321e65f | dfb835845c012cedbfc16109c47a53756ab45e41 | refs/heads/master | 2020-12-25T14:23:59.561197 | 2017-09-11T15:53:17 | 2017-09-11T15:53:17 | 66,513,405 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 4,570 | sci | parametros_cap.sci | function [rd,rl,ld] = parametros_cap(rf,rfs,rp,ro,c,iter,err)
//determinacion de rd
rprc=(rp*ro)/(ro+rp);//paralelo de la resistencia del dielectrico y resistencia de osciloscopio
//inicializacion de valores
Perr=1;
n=1;
Mrd=zeros(iter,3);
//entrada de datos medidos del voltaje del capacitor... |
4abb674202765be036a23f430df66beb0af2e2ba | 449d555969bfd7befe906877abab098c6e63a0e8 | /1826/CH3/EX3.4/ex3_4.sce | 6f25d8589c40f94809ee9a612bfa97f4fdc63830 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 376 | sce | ex3_4.sce | // Example 3.4, page no-91
clear
clc
v=24800
n=1
lam=1.54*10^-10//m
ga=15.8 //degree
//(i)
d=n*lam/(2*sin(ga*%pi/180))
printf("\n(i)\ngrating spacinf for NaCl crystal =%f *10^-10 m",d*10^10)
//(ii)
lam_min=12400/v
lam_min=lam_min*10^-10
theta=asin(n*lam_min/(2*d))
theta=theta*180/%pi
printf("\n(ii)\nglan... |
c1a9d7a3f4424a8ea3077ac920a3e1f8d1fba755 | 25938fdd57f60ee5725a949bc87d6afd3cc4fe24 | /Practica5/sor.sce | d927952af22fd850f34644c0bd84ebf9ebb38fd2 | [] | no_license | Joaquin98/Metodos | a3df61366647a7c02a81bb0467befdcbbedb9426 | 5b30532431c111ca453f9d6b37ffa377616ba6a5 | refs/heads/master | 2020-04-04T05:13:27.646770 | 2018-12-07T12:25:43 | 2018-12-07T12:25:43 | 155,738,528 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 736 | sce | sor.sce | function y=sor(A,b,t)//t tolerancia
x = zeros(1,length(b))
k = 0
es = max(spec(eye(length(b),length(b))-(diag(diag(A))**-1)*A))
w = 2/(1+sqrt(1-(es**2)))
delta=t+1
while k<1000 & t<delta
aux=x
for i = 1:length(x)
s = 0
for j = 1:length(x)
// ... |
9df9b04d594d77fec5708c93e06d34570473fb4e | 449d555969bfd7befe906877abab098c6e63a0e8 | /284/CH6/EX6.3/ex_3.sce | bd8ce1396baced9998200197f1b6b54e2c31c737 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 374 | sce | ex_3.sce | // Chapter 6_The pn junction
//Caption_Space charge width
//Ex_3//page 227
eps=11.7*8.85*(10^-14);
e=1.6*(10^-19);
Na=10^16 //acceptor ion concentration
T=300 //temperature in kelvin
Nd=10^15
ni=1.5*(10^10) //intrinsic ion concentration
Vr=5 //Reverse applied voltage
Vbi=0.635
V=Vr+Vbi
W=(2*eps*V/e*(Na+Nd)/(Na... |
7cd4c376656315b82bf14265e0e9e5fcaaedb865 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3446/CH12/EX12.1/Ex12_1.sce | 8763c44304ba5f4b032abf923530d2e82e222214 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,663 | sce | Ex12_1.sce | // Exa 12.1
// To evaluate the impact of LUs on the radio resource and calculate the MSC/VLR transaction load using the fluid flow model.
clc;
clear all;
P=10000; //Mobile density(mobiles/km^2)
R=500*10^-3; //km
V=10; ..//Average moving velocity of a mobile in Kmph
Nc=10; //No of cells per LA
N_LA=5; //Numb... |
cce08586efd150a60f863521e60c9b9230d7c3db | 36c5f94ce0d09d8d1cc8d0f9d79ecccaa78036bd | /Practice.sce | c9b7c0b546bd2b8b7d4144d89714c2838d65b971 | [] | 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 | 20,204 | sce | Practice.sce | Name=Practice
PlayerCharacters=PUBG memer
BotCharacters=target.bot
IsChallenge=false
Timelimit=60.0
PlayerProfile=
AddedBots=
PlayerMaxLives=0
BotMaxLives=
PlayerTeam=0
BotTeams=
MapName=
MapScale=3.8125
BlockProjectilePredictors=true
BlockCheats=true
InvinciblePlayer=false
InvincibleBots=false
Timescale=1.0
BlockHealt... |
b47196dd7ce592fa867f2085007a0c407e919c88 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1133/CH5/EX5.2/Example5_2.sce | bc69ea9283aca428f67efb1fb63d5a3405f8b47f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 676 | sce | Example5_2.sce | //Example 5.2
clc
disp("The truth table for the given problem is as shown below.")
disp(" C D3 D2 D1 Output")
disp(" 0 x x x 0")
disp(" 0 0 0 0 0")
disp(" 0 0 0 1 1")
disp(" 0 0 1 0 1")
disp(" 0 1 0 0 1")... |
85b1749d2cc15d488e9aa82b755d6d6b8558d440 | 8667898fde492ddc28b1a13f691abc256f30e1cb | /lab4.sce | d20920174da95d11e987f4262c84c2a0c400b0ca | [] | no_license | lainys/tsisa | f269a87516470d14cebc1d13365980030f9258a5 | 15c07d1f4fa4d73b876d63982eba4de323b44b84 | refs/heads/master | 2020-08-02T15:34:16.743889 | 2019-09-30T18:58:14 | 2019-09-30T18:58:14 | 211,411,674 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,208 | sce | lab4.sce | max_a = 9999;
t = [
[5,7,max_a];
[max_a,4,9];
[10,max_a,12];
[14,max_a,max_a];
[max_a,8,max_a];
[max_a,max_a,9];
[7,8,12];
[15,max_a,max_a];
[7,5,max_a];
[11,max_a,19]
]
function y = func(x)
a=round(x(1)),b=round(x(2)),c=round(x(3));
if (a~=b && b~=c && c~=a) then
... |
62d98e5af791cd60bfd9875f99c017f427c1cdb3 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3772/CH6/EX6.9/Ex6_9.sce | 9e6f934b6f8124d484c18449d30c5200bc3eb157 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,197 | sce | Ex6_9.sce | // Problem no 6.9,Page No.160
clc;clear;
close;
L=14 //m //Lenth of steel girder
E=210*10**9 //modulus of Elasticity of steel
I=16*10**4*10**-8 //M.I of girder section
//Calculations
//R_a+R_b=200 //R_a & R_b are the Reactions at supports A & B respectively
//After taking moment at B We get
R_a=(120*11+80*4.5)*14... |
3fe55d214e1b1d5ab7aaef2a14cc9c24ad545627 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3557/CH14/EX14.7/Ex14_7.sce | 671c1761547ecc89d2d2720486c247368910f6f2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex14_7.sce | //Example 14.7//
Em=6.9*10^3;//MPa
Ef=72.4*10^3;//MPa
vm=0.4;
Ef=72.4*10^3;//MPa
vf=0.6;
km=0.17;//W/(m.k)
kf=0.97;//W/(m.k)
vm=0.4;
vf=0.6;
Ec=(Em*Ef)/((vm*Ef)+(vf*Em))
mprintf("Ec = %e MPa",Ec)
kc=(km*kf)/((vm*kf)+(vf*km))
mprintf("\nkc = %f W/(m.k)",kc)
|
04a7f0bb4542df2aa492c83a2f5f2d01b693d1e9 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1367/CH20/EX20.5/20_5.sce | 87237e290711febe38fd92295b7d74f7de7c78b6 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 273 | sce | 20_5.sce | //Find quantity of magnesium needed
//Ex:20.5
clc;
clear;
close;
m=0.0243;//one mole of magnesium in kg
c=2*96490;//in C
j=20*10^-3;//in A/m^2
t=15*365*24*3600;//in sec
x=j*t;//in A s
w_mg=m*x/c;//in kg/sqm
disp(w_mg,"Amount of Magnesium needed (in Kg/m^2) = "); |
928e2cf6fe8a8c6eeae38a8ed55eddf0248c15e6 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.4/Unix-Windows/scilab-2.4/macros/percent/%sp_d_sp.sci | c7b5b271b1f0cbfdd18aba60456edcfb965e87e0 | [
"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 | 72 | sci | %sp_d_sp.sci | function r=%sp_d_sp(a,b)
//r=a./b
// Copyright INRIA
r=full(a)./full(b)
|
b2c31df22eb70a8517a999ab5daca47632d46345 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/tweet/bow/bow.13_11.tst | 3c180471857dc84fb9cfb6f400039623c6876b3b | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 14,721 | tst | bow.13_11.tst | 13 12:0.16666666666666666 106:0.25 110:0.1 136:1.0 390:0.5 616:0.14285714285714285 1095:0.5 1151:0.5 1287:0.25 1399:2.0 1984:1.0 3880:1.0 5297:0.25 5363:1.0 6164:0.3333333333333333
13 26:0.25 31:0.2 48:0.14285714285714285 105:0.1 127:0.3333333333333333 221:1.0 616:0.14285714285714285 935:1.0 960:0.3333333333333333 1230... |
eef75baaa1238e9b194aa1d350fdcc380ea60929 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set9/s_Engineering_Physics_K._V._Kumar_3537.zip/Engineering_Physics_K._V._Kumar_3537/CH2/EX2.24/Ex2_24.sce | 8b331cdd6c6dc194052399b28eab2787f653cb78 | [] | 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 | 334 | sce | Ex2_24.sce | errcatch(-1,"stop");mode(2);//Example 2_4_1
;
;
//To calculate the wavelength of light
D=150 //units in centimeters
d=0.03 //units in centimeters
betaa=0.3 //units in centimeters
lemda=((betaa*d)/D)*10^8
printf("Wavelength of the light is %.0f angstrom",lem... |
85c3c2503419616d6e02947fc85ceed61c9f8afe | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.3.1/Unix-Windows/scilab-2.3/macros/signal/window.sci | 3adfdb99d3384e5024497a773dbe13646e21a355 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | 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 | 3,720 | sci | window.sci | function [win_l,cwp]=window(wtype,n,par)
//[win_l,cwp]=window(wtype,n,par)
//macro which calculates symmetric window
// wtype :window type (re,tr,hn,hm,kr,ch)
// n :window length
// par :parameter 2-vector (kaiser window: par(1)=beta>0)
// : (chebyshev window:par=<dp,df>)
// : ... |
064a93bacc58d84605905eddc4d32642e47ec665 | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH38/EX38.02/38_02.sce | c8fd3e077fe046493b33eb6d9a9eb6d7e52833fa | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 664 | sce | 38_02.sce | //Problem 38.02: If in problem 38.01, the maximum flux density is 1.5 T at a frequency of 50 Hz, determine the hysteresis loss per m3 for a maximum flux density of 1.1 T and frequency of 25 Hz. Assume the Steinmetz index to be 1.6
//initializing the variables:
n = 1.6; // the Steinmetz index
f1 = 50; // in Hz
f2 ... |
2e87b279474233d4768f311148b6de45c4b0fd64 | 3a54db7c745b3171089e24d897043ad99621f156 | /Practica2/Ajuste Minimos Cuadrados/Scilab/AjusteMinimosCuadrados.sce | 3255fc852ff4bcc8aeab36483579a68423c23729 | [
"MIT"
] | permissive | AlanGarduno/Analisis-de-Algoritmos | da6bff055789ada24e2eddbfa7b95b5db93c1b94 | 747832f645be1df1f8663d8a3341b7ffac673bed | refs/heads/master | 2021-09-16T07:02:35.447706 | 2018-06-18T08:36:40 | 2018-06-18T08:36:40 | 122,787,532 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 268 | sce | AjusteMinimosCuadrados.sce | x = [0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2]';
y = [4.8 6.2 6.8 7.2 7.8 9.2 8.8 9.2 8.8 9.2 7.8]';
m = size(x,1);
t = (x(1):0.01:x(m))';
n = 1;
A = zeros(m, n+1);
for i=0:n
A(:,i+1) = x.^i;
end
cf = A\y;
p = poly(cf, 'x', 'c');
ft = horner(p, t);
clf()
plot2d(t, ft)
p
|
33dda60ee768ff4c9abcba7a6acfcff018156a36 | 449d555969bfd7befe906877abab098c6e63a0e8 | /52/CH2/EX2.8.a/Example2_8_a.sce | a7653ac47a7ac64ebec20bdff989e41fa19b9fd2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 261 | sce | Example2_8_a.sce | //Example 2.8 (a)
//MAXIMA SCILAB TOOLBOX REQUIRED FOR THIS PROGRAM
//Z transform of cos(Wo*n)
clc;
syms Wo n z;
x1=exp(sqrt(-1)*Wo*n);
X1=symsum(x1*(z^-n),n,0,%inf);
x2=exp(-sqrt(-1)*Wo*n);
X2=symsum(x2*(z^-n),n,0,%inf);
X=(X1+X2)/2;
disp(X,'X(z)='); |
d888cc46e9e6c0ac7e5114af159220c81119dd2d | 449d555969bfd7befe906877abab098c6e63a0e8 | /704/CH3/EX3.15/3_15.txt | 071afcb73de691ad917fc0059d5d0a4dc9ecd34f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 746 | txt | 3_15.txt | //Caption:In a single phase transformer Calculate the current taken by the primary winding.
//Exam:3.15
clc;
clear;
close;
V_1=440;//Primary voltage(in Volts)
V_2=110;//Secondary voltage(in Volts)
I_o=5;//NO load current(in Amp)
p_o=0.2;//No load power factor
q_o=acosd(p_o);//power angle when no load power fac... |
76a3043c2654d0fd88be54fffed7f7077ee4b05d | 449d555969bfd7befe906877abab098c6e63a0e8 | /812/CH8/EX8.07/8_07.sce | cc05e2cd72df25384990145040b9717e9d91217f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 311 | sce | 8_07.sce | //Volume low//
pathname=get_absolute_file_path('8.07.sce')
filename=pathname+filesep()+'8.07-data.sci'
exec(filename)
//Velocity(in ft/sec):
V2=sqrt(2*g*l/(f*((L+l)/D*12+8)+1))
//Volume flow rate(in gpm):
Q=V2*%pi*(D/12)^2/4*7.48*60
printf("\n\nRESULTS\n\n")
printf("\n\nVolume low rate: %.3f\n\n",Q)
|
797429d98d0a7567d04ef120b089f418e82bc14c | 449d555969bfd7befe906877abab098c6e63a0e8 | /770/CH4/EX4.5/4_5.sce | 386d66f9afbc24690463d03bb2621b923414c57e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,969 | sce | 4_5.sce | clear;
clc;
//Example - 4.5
//Page number - 153
printf(" Example - 4.5 and Page number - 153\n\n");
// Given
m = 1000;//[g] - Mass of fluid
P_1 = 20;//[bar] - Initial pressure
P_1 = P_1*10^(5);//[Pa]
P_2 = 2;//[bar] - Final pressure
P_2 = P_2*10^(5);//Pa
T_1 = 250 + 273.15;//[K] - Initial temperature
n ... |
29fd0664d2922bdacfaf8ee79d347b994f54be1c | 449d555969bfd7befe906877abab098c6e63a0e8 | /413/CH4/EX4.4/Table_4_4.sce | d261a1ed842b92d7367c1b02b3c57b79f7d389ba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 378 | sce | Table_4_4.sce | clc
clear
function a=pade(x)
a=(x+7*x.*x.*x/9 +64*x.*x.*x.*x.*x/945)/(1+10*x.*x/9 +5*x.*x.*x.*x/21)
endfunction
function a=mac(x)
a=x-x.*x.*x/3+x.*x.*x.*x.*x/5-x.*x.*x.*x.*x.*x.*x/7+x.*x.*x.*x.*x.*x.*x.*x.*x/9
endfunction
function out=tab4(y)
out=[y,atan(y),pade(y),atan(y)-pade(y),mac(y),atan(y)... |
b55edcfa6f6854843b62445aeda7d37dd2654fdc | ebfed86dee276110294a4e93fa80377908bbd317 | /macros/drawMatch.sci | a0f8861ba9b9e51768de76b48fa474a9c8a7a696 | [] | no_license | gursimarsingh/FOSSEE-Image-Processing-Toolbox | a9d46b698c98566fec867eb2ce3cfeb427058d5c | 165f6d7d1f20262a1637a923c6aad6e663ad1538 | refs/heads/master | 2021-08-16T19:18:59.591175 | 2017-11-08T17:55:04 | 2017-11-08T17:55:04 | 96,531,802 | 0 | 0 | null | 2017-07-07T11:21:10 | 2017-07-07T11:21:10 | null | UTF-8 | Scilab | false | false | 3,908 | sci | drawMatch.sci | // Copyright (C) 2015 - IIT Bombay - FOSSEE
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_... |
7d3a1df4346e5be500f536374b035a897e8e8eac | 218307820851c017df48930a4607586b000dc01d | /Project7-8/BasicTest/Basictest.tst | 1502b1058068b2f15efbdec7c6214542f2f6df3f | [] | no_license | catiecook/nand2tetris | 8e51a09488b46ba1b8fd996e32ad45004bb47037 | 4d70f9683ab51283317ff194eece12e52a7901f8 | refs/heads/master | 2021-01-10T13:30:52.798712 | 2016-05-05T15:34:11 | 2016-05-05T15:34:11 | 53,958,856 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 371 | tst | Basictest.tst | //BasicTestVME.tst
load BasicTest.asm,
output-file BasicTest.out
compare-to BasticTest.cmp,
output-list RAM[256]%D2.6.2, RAM[300]%D2.6.2, RAM[401]%D2.6.2,
RAM[402]%D2.6.2, RAM[3002]%D2.6.2, RAM[2012]%D2.6.2,
RAM[3015]%D2.6.2, RAM[11]%D2.6.2;
set RAM[0] 256,
set RAM[1] 300,
set RAM[2] 400,
set RAM[3] 3000,
se... |
0479890fbd3686d1749a47389643e5fce19d5a02 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2774/CH4/EX4.4/Ex4_4.sce | 41797196bf178198e612585191595a518e087478 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 590 | sce | Ex4_4.sce | clc
// initialization of variables
P=400 // pressure in kPa
T1=200 // initial tmperature in degree celsius
V=2 // initial volume in m^3
Q=3500 // heat added in kJ
//solution
h1=2860 // initial enthalpy @ 200*C and 400 kPa from steam table
v=0.5342 // specific volume from steam table C.3
m=V/v;
h2=(Q/m)+h1... |
87591b61627488837bac03fe6045b959bbe5ef0d | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.3/Unix-Windows/scilab-2.3/macros/scicos/do_help.sci | 18552864516ebe92c62738b3fef02d901466ab61 | [
"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 | 13,168 | sci | do_help.sci | function do_help()
while %t do
[btn,xc,yc,cwin]=xclick(0);
pt=[xc,yc]
if cwin==curwin then
[nm,pt,btn]=getmenu(datam,pt)
if nm>0 then
name=menus(nm)
break,
else
k=getobj(scs_m,[xc;yc])
if k<>[] then
o=scs_m(k)
name=o(5)
break
end
end
elseif or(windows(find(window... |
e6595d9e73f1e9b6925e4ed893ffb2268b391525 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1949/CH2/EX2.18/2_18.sce | f1f986634b5668de8c1adfd0c2eb5008aaa51471 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 2_18.sce | //Chapter-2,Example 2_18,Page 2-39
clc()
//Given Data:
N=2.54/2620*10^-2 //N=(a+b) grating element
lam=5*10^-7 //Wavelength of red light
//Calculations:
//We know, (a+b)*sin(theta)=n*lam
//maximum value of sin(theta)=1
n=N/lam //Maximum number of orders visible
printf('Maximum... |
fc546b2105f50abdcde99318d0bc749f456cae9a | 11a5f51df9c9cabf5d27606077a97796053bd0b3 | /Triangles/Triangles_Tests/100_2.tst | ff59b5409f50b6c71cb0d8cf2a56c4a337db5168 | [] | no_license | Greezzee/ILab_2_course | 1a7b0bc42cda4651fd91f8031d2dc2c8952f0cb1 | 117109f28f005355fad2a12af9447467e8fae666 | refs/heads/master | 2023-01-13T03:55:00.443417 | 2020-11-17T10:42:54 | 2020-11-17T10:42:54 | 293,921,035 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,994 | tst | 100_2.tst | 100
-2.5 0 0
0 4.33013 0
2.5 0 0
-2.5 7.88925 0
0 12.2194 0
2.5 7.88925 0
-2.5 0 0.5
0 4.33013 0.5
2.5 0 0.5
-2.5 4.17849 0.5
0 8.50862 0
2.5 4.17849 0.5
-2.5 0 1
0 4.33013 1
2.5 0 1
-2.5 1.8691 1
0 6.19923 0
2.5 1.8691 1
-2.5 0 1.5
0 4.33013 1.5
2.5 0 1.5
-2.5 8.22943 1.5
0 12.5596 0
2.5 8.22943 1.5
-2.5 0 2
0... |
e4d1ced9c116c435818340cbe3375a44687fbbcd | 8673f88f46d67d66d84f42488a772c5ea921699d | /scilab_pract.sce | 8f52860f2df268e689a61a32f49ff84f564475a4 | [] | no_license | Guseyn/se | 39d560b77a03c60407cbf13b58db5185ccc9ffe3 | fad7a4abdad52ba6f19e0273cd823fe96d0198a8 | refs/heads/master | 2022-03-07T19:14:08.321076 | 2022-02-16T12:37:33 | 2022-02-16T12:37:33 | 92,089,390 | 1 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 32,925 | sce | scilab_pract.sce | Window = figure("figure_name", "GraphApp", "BackgroundColor", [1, 1, 1])
set(Window, "Position", [300, 50, 900, 1000])
eqappLabel = uicontrol("Style", "text", "Position", [20, 580, 100, 35], "String", "The equation: ", "BackgroundColor", [1, 1, 1])
eqLabel = uicontrol("Style", "text", "Position", [130, 570, 270, ... |
12f65d1f18746e5aaa468cd883be63ed281c037f | 449d555969bfd7befe906877abab098c6e63a0e8 | /3428/CH22/EX14.22.7/Ex14_22_7.sce | 2e2eb1cffb489f6cecda88760d786a1b3c995609 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 504 | sce | Ex14_22_7.sce | //Section-14,Example-1,Page no.-PC.59
//To calculate coefficient of viscosity of experimental liquid.
//(n_1/n_2)=(t_1*d_1)/(t_2*d_2)
n_2=1 //Coefficient of viscosity of reference liquid (centipoise)
t_1=45.32 //t_1and t_2 (times of flow) (s)
t_2=65.66 //(s)
d_1=0.8 ... |
6b71d226a47be35294797dfffa818ddd07c23426 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2048/CH14/EX14.4/kal_ex.sci | 739e96537e8d61a4e282f6ac6820a39666d7895b | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | sci | kal_ex.sci | // Kalman filter example of estimating a constant
// 14.4
function [xhat,P,y] = kal_ex(x,xline,M)
y = x + rand();
Q = 0; R = 1;
xhat_ = xline;
P_ = M + Q;
K = P_/(P_+R);
P = (1-K)*P_;
xhat = xhat_ + K*(y-xhat_);
endfunction;
|
fdd582e4f763f4bad7ef9155d12d66473ae2a29c | 982ed07a6f164ad01625360d1b007cbda5841377 | /log.tst | 1e66f887e3b348d8e2672b62c5fc188fa8e9add0 | [] | no_license | aaronkai/DD | 0061c4442782afe388a83cf9b949553d0d7fd13a | 112d5037502cd8f7912552b5c5883b3af6731517 | refs/heads/master | 2021-01-19T08:53:14.696480 | 2014-11-28T22:31:20 | 2014-11-28T22:31:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 109 | tst | log.tst | == 20141128191049 CreateCharacters: migrating =================================
-- create_table(:characters)
|
250a24716013276edac446ab78c7a3c18b5ac04d | 449d555969bfd7befe906877abab098c6e63a0e8 | /3860/CH1/EX1.11/Ex1_11.sce | 8d59874a7f28edddba9798d896265b2531d91cdf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex1_11.sce | //Example 1.11 Conversion from decimal number to Hexadecimal number.
clc;
x = 746;
z = dec2hex(x); //hexadecimal equivalent of decimal number
disp('The hexadecimal number is = ');
disp(z) // answer in hexadecimal form
|
0f4e04914dd8691c5d04cc166a49946e82179a88 | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.4/macros/m2sci/sci_tf2ss.sci | a3d505c09a9501c1156cfd610673d634bfd3984f | [
"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 | 274 | sci | sci_tf2ss.sci | function [stk,txt,top]=sci_tf2ss()
// Copyright INRIA
txt=[]
H=gettempvar()
N=stk(top-1)(1)
D=stk(top)(1)
txt=H+' = tf2ss(rlist(poly('+N+'($:-1:1),''x''),poly('+D+'($:-1:1),''x'')))'
r=list(H+'(2:'+string(lhs+1)+')','-1','?','?','1')
stk=list()
for k=1:lhs
stk(k)=r
end
|
69705aeb5ac30384b70b06d785b65989183590c9 | 127061b879bebda7ce03f6910c80d0702ad1a713 | /PiLab/PiLab_scc.sci | 6ee517b56a1e92884ccda6ccb876fd6910deb169 | [] | no_license | pipidog/PiLib-Scilab | 961df791bb59b9a16b3a32288f54316c6954f128 | 125ffa71b0752bfdcef922a0b898263e726db533 | refs/heads/master | 2021-01-18T20:30:43.364412 | 2017-08-17T00:58:50 | 2017-08-17T00:58:50 | 100,546,695 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 7,646 | sci | PiLab_scc.sci | // **** Purpose ****
// PiLab self-consistent solver (level 2)
// **** variables ****
// ==== << PiLab inputs >> ====
// [scc.HubU]: n x 2, int / empty
// <= U for each state, [state_label, U] or blank
// [scc.Charge]: 1x total state
// <= charge of each state, 1x total state
// [scc.Mixing]: 1x1, 0~1 real
// ... |
f07b79643519924542da3186327bdb227b33ebab | 449d555969bfd7befe906877abab098c6e63a0e8 | /273/CH15/EX15.12/ex15_12.sce | e037f0b5e5ec1e7ed2705cacfe02f76646fffa09 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 494 | sce | ex15_12.sce | clc;clear;
//Example 15.12
//calculation of amount of fuel
//given values
P=100*10^6;//power required by city
M=235;//atomic mass of Uranium in g
e=20/100;//conversion efficiency
NA=6.02*10^26;//avogadros number
E=200*10^6*1.6*10^-19;//energy released per fission
t=8.64*10^4;//day in seconds
//calculati... |
f3c6ca48481ed954059a60f2e7f6e912247da626 | 8217f7986187902617ad1bf89cb789618a90dd0a | /browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/krac2.man.tst | 505268b5fecb4c3b4efc8ea5b48a30e7444ceb39 | [
"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 | 174 | tst | krac2.man.tst | clear;lines(0);
h=syslin('c',352*poly(-5,'s')/poly([0,0,2000,200,25,1],'s','c'));
xbasc();evans(h,100)
g=krac2(h)
hf1=h/.g(1);roots(denom(hf1))
hf2=h/.g(2);roots(denom(hf2))
|
301c82afb68de2ec1ef37cc951603c45b90573ae | e21389c404551d11c735b7172956f8d805511ea2 | /Web/coolprop/wrappers/Scilab/sample.sce | 7f5a16a8d90d11803b7889fec1b94a6ec30e2422 | [
"MIT"
] | permissive | CoolProp/CoolProp | 38668506a110c5e7ba05df25a7077f0ae362ba6b | c4108e5a57e6846c553978c538d4d9981ea1d46f | refs/heads/master | 2023-08-29T04:13:09.209077 | 2023-08-29T00:54:20 | 2023-08-29T00:54:20 | 19,775,824 | 671 | 375 | MIT | 2023-09-13T07:17:20 | 2014-05-14T10:43:50 | C++ | UTF-8 | Scilab | false | false | 1,682 | sce | sample.sce | [v, o] = getversion();
// Idiotically, scilab can only handle functions in shared libraries that take
// all arguments by reference. Why? Who knows. I've filed an issue about this
// and there was no reply.
//
// Conveniently, FORTRAN77 also requires that all functions take all arguments by
// reference, and we add... |
f5cd93ce5c23b4275de50ad82c7f45079657bf0c | 449d555969bfd7befe906877abab098c6e63a0e8 | /929/CH10/EX10.1/Example10_1.sce | 0ac6d8a7e16d2219d857d1dac429cf8952cc6ac9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 948 | sce | Example10_1.sce | //Example 10.1
clear;
clc;
f0min=1;
f0max=10*10^3;
VDon=0.7;
Vsa=5;
Vz5=Vsa-(2*VDon);
Vsat=13;
IRmin=10*10^(-6);
R1=33*10^3;
R2=R1;
VT=2.5;
Rmax=(Vsa-VT)/(IRmin);
Rpot=Rmax;
Rs=Rpot/39;
f0=0.5;
C1=1/(f0*2*(Rpot+Rs)*log(1+(2*(R1/R2))));
C2=C1/10;
C3=C2/10;
C4=C... |
1cd606ca37da723dac0eaec9d45a7fc500d35c3e | 449d555969bfd7befe906877abab098c6e63a0e8 | /3705/CH2/EX2.4/Ex2_4.sce | 1eb2113005af4c25dd34700a506df4e6ebddec44 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 658 | sce | Ex2_4.sce |
clear//
//Variable Declaration
d=0.05 //Diameter of the rod in mm
P=8000 //Load on the bar in N
E=40*10**6 //Modulus of elasticity in Pa
v=0.45 //Poisson Ratio
L=300 //Length of the rod in mm
//Calculation
A=((%pi*d**2)/4) //Area of the bar in mm^2
sigma_x=-P/A //Axial Stress in the bar in Pa
//As contac... |
619f0ed0f8ed05d6c80e9c35480ce7a4a1fc3c1f | 449d555969bfd7befe906877abab098c6e63a0e8 | /98/CH17/EX17.12/example17_12.sce | acf5b2fe9642d0d7afc71a3c9eaf97b14458af2d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 256 | sce | example17_12.sce | //Chapter 17
//Example 17_12
//Page 415
clear;clc;
ml=5000;
v=6600;
x=6;
m=5;
base=input("Base kVA: ");
x=base*100/m/ml-6;
xohm=x*10*(v/1000)^2/ml;
printf("%% reactance of the reactor = %.2f %% \n\n", x);
printf("Reactance in ohms = %.2f \n\n", xohm);
|
f60dab9d0f9846d8ad474f9f0a00bec21c051b42 | 449d555969bfd7befe906877abab098c6e63a0e8 | /833/CH11/EX11.3/Ex11_3.sce | 95fbb97c57b9480e3f76e07cd2a0363d1de6dcf8 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 412 | sce | Ex11_3.sce | //Caption: Calculate (a)Number of poles (b)Slip (c)Slip for full load torque if total resistance in rotor circuit is doubled
//Exa:11.3
clc;
clear;
close;
n=970//Speed of induction motor(in r.p.m)
f=50//Frequency(in hertz)
n_s=1000//Synchronous speed(in r.p.m)
p=(f*120)/n_s
disp(p,'(a)Number of poles=')
s=((n... |
2d09ae31176b5bb23f50e3fd5ad84a259109602f | 449d555969bfd7befe906877abab098c6e63a0e8 | /2660/CH23/EX23.7/Ex23_7.sce | c4004094b9a23e398a8c81296fbb824e801671e2 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | Ex23_7.sce | clc
a = 12000 // annual requirement
c = 5 // unit cost of part
s = 60 // set up cost per lot
p = 18750 // production rate per year
i = 20 // inventory carrying cost
i = 20/100
k = i*c // carrying cost per unit per year
n = sqrt(2*s/(1/a-1/p)*k) // Most economic lot size
printf("\n Most economic lot size = %d ... |
5115201205727f5ac170edaba992fd3b9ebb0897 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3782/CH1/EX1.6/Ex1_6.sce | 96153a02ae12c3897fd70b6e75dfeb82c039acd9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 901 | sce | Ex1_6.sce |
//
L=30
t0=20
p0=10
pm=15
tm=32
a=0.03
al=11/(1000000)
E=2.1*(1000000)
w=0.693
ml=780
n=1
printf("\n for n=1')
ct=al*L*(tm-t0)
printf("\n the temperature correction is %0.3f meters',ct)
cp=(pm-p0)*L/(a*E)
printf("\n the pull correction is %0.3f meters',cp)
cs=-L*w*w/(24*pm*pm*n*n)
printf("\n the sag correction... |
311e3311f57e160c6b6cfd93415d40a6025310ab | 19304e6fdf8f931394819aa5055f0ab261e17981 | /MC/9. GSM, CDMA/mc9.sce | 562c31cbfa5b724a3bce563a3ac578fa10cc7bb4 | [] | no_license | usernotfound0/pracs | c2b6e17bf4c08668c777bdda3bf6ae548abd2f39 | 82c9657c5bf9dfcd38776a0c107669186c529732 | refs/heads/master | 2020-08-28T20:15:08.550257 | 2019-11-05T03:47:02 | 2019-11-05T03:47:02 | 154,515,934 | 4 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 482 | sce | mc9.sce |
//Question 1
Rb = 270.833;
Tb = 1/Rb;
disp(Tb);
B = 0.3/Tb;
disp(B);
//Question 2
Rb = 270.833;
c = Rb/0.4;
disp(c);
b1 = 200;
snr = (2^(c/b1)) - 1;
disp(snr);
//Question 3
b = 200;
Rb = 270.833
be = Rb/b
disp(be);
//Question 4
bc = 1250;
rb = 9.6;
srmin = 3;
sumin_ratio = 10^(srmin/10);
disp(sumin_ratio);
mm... |
9d626b132771d524783d8c916c3d71f3c785c296 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2825/CH19/EX19.22/Ex19_22.sce | e3f06ae52df581210fda03eeb9e5f03dfa6041db | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 148 | sce | Ex19_22.sce | //Ex19_22 Pg-966
clc
dec=2479 //decimal input
hex=dec2hex(dec) //hexadecimal output
disp("The Hexadecimal equivalent of 2479 is")
disp(hex)
|
1affa5ec9adeaddc8db27439c8c6f8a05b669134 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2126/CH1/EX1.5/5.sce | 1d11d9b2a3cfc6e585a1910cd0902a55a0d427c0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 844 | sce | 5.sce | clc
clear
//Input data
m=25 //Mass flow rate of air in kg/s
C2=115 //Outlet velocity in m/s
P1=100 ////Initial Pressure in kPa
T1=300 //Intial Temperature in K
C1=40 //Inlet velocity in m/s
R=0.287 //Specific gas constant in kJ/kg-K
Cp=1005 //Specific heat capacity at constant pressure in J/kg-K
k=1.4 //Adi... |
e2e45590174b4aeaa46a27b1645611eddb5e182e | 20f46832ae88a89a38f61087f5c7b9be092760cf | /tsp2OptTest.sce | e086e9d29a7cadaa419692107bcf66026a305134 | [] | no_license | valdron/tspscilab | beef362216b51a534e928a51a917f691cb99b846 | c148f9a1d08d246966f23bcfb2739f2faa62526d | refs/heads/master | 2020-06-11T13:57:36.005279 | 2016-12-08T20:54:27 | 2016-12-08T20:54:27 | 75,650,403 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 296 | sce | tsp2OptTest.sce | // tsp2Opt.sce
clear;
exec tspDraw.sci;
exec tspExamples.sci;
exec tspLength.sci;
exec tsp2Opt.sci;
exec tspGreedy.sci;
exec tspBruteForce.sci;
global name dist pos;
//unsere_route=[1 12 5 22 20 4 11 21 7 3 10 8 15 17 16 14 2 19 13 9 6 18]
tspExamples(5);
tour=tsp2Opt();
|
c814cb644f32785e399de6036d720f485b9adbca | 449d555969bfd7befe906877abab098c6e63a0e8 | /779/CH18/EX18.4/18_4.sce | 76d6f18d69b4a36c9bb2246eb9a204dad9ebb3ca | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 521 | sce | 18_4.sce | P1 = 1.013; P4 = 80;
P2 = sqrt(P1*P4);
V_dot = 4/60; // in m3/s
n = 1.25;
n_mech = 0.75;
W_dot = ((2*n)/(n-1))*((P1*100*V_dot)/n_mech)*((P2/P1)^((n-1)/n)-1);
N = 250;
L = (3*60)/(2*N); // Stroke length of piston in m
Vlp = 4/N;
n_vol = 0.8;
Dlp = sqrt((Vlp*4)/(n_vol*L*%pi));
Dhp = Dlp*sqrt(P1/P2);
disp("kW"... |
66316d7b62c79d09931aa61b1937a890d55e0231 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2066/CH2/EX2.5/2_5.sce | 879c47d3c51f3122574cd47ceb5a723697624f11 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 442 | sce | 2_5.sce | clc
clear
//Initialization of variables
pb=28.5 //in mercury
d=13.6 //g/cc
gam=62.4
xm=10 //in
xw=2 //ft
//calculations
dp= xw*gam/144 - xm/12 *gam/144 + xm/12 *gam/144 *d
//results
printf("Pressure difference = %.2f psi",dp)
if dp>0 then
printf("\n Pressure at A is greater than that at B")
elseif dp=... |
2254e54b05ba04bd3f4494ff8050f5707ac37818 | 54cca39cd1cf7f62b001c8a4d64dcc3d29e3cb4e | /CentralLimitTheorem/binomial0.sce | 9fef06886d8a1c042ac1e98b9abf609675a8411a | [] | no_license | hamling-ling/NumericalResearches | d2487c2566c24ba3dc674e7e17f1745c1020d542 | a824357d7650d3ed86220f1315ee37e577285a7d | refs/heads/master | 2021-01-25T08:36:58.455319 | 2015-04-22T15:17:21 | 2015-04-22T15:17:21 | 7,775,139 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 277 | sce | binomial0.sce | clear;
// sampling num
samplenum=500;
// number of repetition
repeat=100;
// coin toss
R=grand(samplenum,repeat,'uin',0,1);
Avgs=mean(R,'r');
histplot([0:0.01:1],Avgs)
avg=1/2;
s=sqrt((1/4)/samplenum);
x=[0:0.01:1];
plot(x,(1/(s*sqrt(2*%pi)))*exp(-((avg-x).^2)./(2*s^2)));
|
689b2af84aa07ff8f133c23bbb8ee1cd03ff6fe5 | 9224090b07cb3f466fe72819cf90ca0c4dedc901 | /Exercise 25/Exercise 25.sce | 897a2c53e76d1ad7dbc5a3ad4ac00749f0d9ae99 | [] | no_license | MGYBY/advanced_ocean_modelling | 8c383b09f4077174559bd7964062625012026fa0 | 848f0f4d616d472021c31582b64557f04067ce74 | refs/heads/main | 2023-07-14T14:37:57.714203 | 2021-08-20T20:13:49 | 2021-08-20T20:13:49 | 398,386,684 | 4 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 2,924 | sce | Exercise 25.sce | //=============================================
// Exercise 25: Simulation of an El-Nino Event
//=============================================
// Animation of distributions of Eulerian concentration at 100 m & lateral flow field at the surface
// Author: Jochen Kaempf, March 2015 (update)
f = gcf();f.figure_size... |
4fcca41acee7cf4924d943bc81303f4c2aa22937 | 089894a36ef33cb3d0f697541716c9b6cd8dcc43 | /NLP_Project/test/blog/bow/bow.8_1.tst | 446aa7c95631ec90bcddccad0c798bc75d0785c2 | [] | no_license | mandar15/NLP_Project | 3142cda82d49ba0ea30b580c46bdd0e0348fe3ec | 1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2 | refs/heads/master | 2020-05-20T13:36:05.842840 | 2013-07-31T06:53:59 | 2013-07-31T06:53:59 | 6,534,406 | 0 | 1 | null | null | null | null | UTF-8 | Scilab | false | false | 5,671 | tst | bow.8_1.tst | 8 4:0.1 10:0.5 13:0.5 17:0.08 19:0.09090909090909091 25:2.0 66:0.6666666666666666 84:0.16666666666666666 121:0.3333333333333333 159:0.14285714285714285 193:0.5 203:0.5 208:0.5 214:0.3333333333333333 345:1.0 526:1.0 580:1.0 923:1.0 968:2.0 1026:1.0 1249:1.0 1444:1.0
8 4:0.1 39:1.0 203:0.5 941:1.0
8 4:0.2 10:0.5 13:0.5 1... |
29e76542661b9455a393c566e37d57c23c33612e | 86d27c080525a0c1b5b2297ea4c5f5d1aeb4efe4 | /RBF.sce | 3e3b76dc5046560f4569b6de32a6deb5a09662e4 | [] | no_license | cesbrandao/RBF-twomoons_Scilab | 67b9fad6129764bc59d0c33eba8c230f01b4a92d | d02491a51b257be8c3ffabd3dbdb2d2f6d4c846d | refs/heads/master | 2023-04-12T10:54:15.344031 | 2021-05-01T03:19:26 | 2021-05-01T03:19:26 | 363,310,041 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,720 | sce | RBF.sce | clear;
clc;
dados = fscanfMat('twomoons.dat'); //[l c] = [1001 3]
q = 15;//quantidade de neuronios
p = 2;//quantidade de atributos de entrada
//1001 amostras
Z = zeros(q,1001);//(ativação)
centroide = rand(p,q,'normal');//centroide dos neurônios ocultos
//normalização dos dados com zscores
for i = 1:2
... |
1c4083814c9afe6d0310b7afcefde64fa1212600 | de14a6897d4397228a52bacb8905b8807370ef4b | /PMC_non_lineaire.sce | cd3ec8a6209b660f6de0b29ac0b8baff19c09401 | [] | no_license | JustineMarlow/MT94-RapportLaTeX | 20b670965a47ce85beecc15865d14ec9cc4d305b | 3dfaa665b5691621410f8eafdf76ecaf081b92d1 | refs/heads/master | 2021-09-06T17:54:58.174773 | 2018-02-09T09:57:52 | 2018-02-09T09:57:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 1,426 | sce | PMC_non_lineaire.sce | data=[...]; //ici les donnees
[data_tri]=gsort(data,'lr','i'); //permet de trier les donnees
t=data_tri(:,1);
y=data_tri(:,2);
clf;
plot(t,y,'ko');
//Levenberg-Marquardt
function r=res(theta,n)
r=exp(theta(1)+t*theta(2)+t.^2*theta(3))-y;
endfunction
function J=jac(theta,n)
J=ones(n,3);
for i=1:n
f... |
99c7f18b8eecbb2c63214aeb463790485a052c86 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3745/CH1/EX1.34/Ex1_34.sce | 5d74e88980cb5f480226502fbbde61ec4155c6b7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,004 | sce | Ex1_34.sce | // Ex 34 Page 377
clc;clear;close;
// Given
l=20;//km
P=10000;//kW
V=11;//kV
pf=0.707;//lagging
R=0.02;//ohm/km/phase
X=0.07;//ohm/km/phase
//for pf = 0.707
IL=P*10**3/sqrt(3)/(V*1000)/pf;//A
VRphase=V*1000/sqrt(3);//V
R_phase=l*R;//ohm
X_phase=l*X;//ohm
Z_phase=R_phase+%i*X_phase;//ohm
Vd_phase=IL*(pf-%i*pf)*Z_phas... |
796bbbc30cbcc144c717cf87358773b0e29c8e70 | 85a18d998bd3dc2a33ec5d761fd10c5fe3dcf5a6 | /tp-camera-calibration/methodes.sci | a8ccd6fecf51ecbadcecb10d5a4cc28c958ae1fc | [] | no_license | ThibaultAr/Visa | 8ee2b9feb97a505e899bbfbe1dfc088680d2fc07 | a2d08d9b192b5d8a85b3c0725407f0f5664c99e7 | refs/heads/master | 2021-03-24T12:31:43.091850 | 2018-01-05T21:34:53 | 2018-01-05T21:34:53 | 105,042,680 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,633 | sci | methodes.sci | // -----------------------------------------------------------------------
/// \brief Calcule un terme de contrainte a partir d'une homographie.
///
/// \param H: matrice 3*3 définissant l'homographie.
/// \param i: premiere colonne.
/// \param j: deuxieme colonne.
/// \return vecteur definissant le terme de contrainte... |
e0074966f9dff5f28af3440c74368a82fa11eb33 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1938/CH7/EX7.27/7_27.sce | c93682c614e2c4175ce0b8adc9b5eb2ea06d03e1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | 7_27.sce | clc,clear
printf('Example 7.27\n\n')
I_1=35
phi_1=acos(0.8)
V_L=440
S_1=sqrt(3)*I_1*V_L /1000 //in kVA
P_1=S_1*cos(phi_1)
Q_1=S_1*sin(phi_1)
P_out=12 //motor load
eta_motor=85/100
P_2=P_out/eta_motor
P_T=P_1 + P_2
phi_T=acos(1)
Q_T=P_T * tan(phi_T)
Q_2=Q_T - Q_1 //kVA supplied by motor
//neg... |
41a50501be6fa75e8a1668456f26e28652c37de2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1271/CH12/EX12.21/example12_21.sce | 7f7d13c49828686eee1ef4e5af88090bd5310f23 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 367 | sce | example12_21.sce | clc
// Given that
m1 = 4.002603 // mass of He(4) in a.m.u.
m2 = 3.016056 // mass of H(3) in a.m.u.
m3 = 1.007276 // mass of H(1) in a.m.u.
// Sample Problem 21 on page no. 12.39
printf("\n # PROBLEM 21 # \n")
printf("Standard law used \n")
printf(" Law of conservation of Energy \n")
k = m2 + m3 - m1
E = k * 931
printf... |
61a1470c6540e4d047e4212031491104de5dd730 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1919/CH5/EX5.15/Ex5_15.sce | bf88b666b7cf0ec26991e473c447be34bd161637 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,678 | sce | Ex5_15.sce |
// Theory and Problems of Thermodynamics
// Chapter 5
//Second Law of Thermodynamcis
// Example 15
clear ;clc;
//Given data
N1 = 2 // number of moles of helium
P1 = 1.0*1e6 // pressure of helium compartment in Pa
T1 = 600 // temperature of helium compartment in K
N2 = 5 // num... |
d90de34e746efec271bec2671f0a3b507b960839 | a8592d34f144b71794ebf30f1c2a1b5faf0b053c | /sandbox/scilab/04_histogram.sce | ec203639876afdd41b5c2623ac265ebf318105e1 | [] | no_license | f-fathurrahman/ffr-MetodeNumerik | ee9a6a7153b174b1ba3d714fe61ccbd1cb1dd327 | e3a9da224c0fd5b32e671708e890018a3c4104c4 | refs/heads/master | 2023-07-19T22:29:38.810143 | 2023-07-07T10:02:34 | 2023-07-07T10:02:34 | 107,272,110 | 2 | 2 | null | null | null | null | UTF-8 | Scilab | false | false | 261 | sce | 04_histogram.sce |
mydata = rand(1,10e4,"normal")
N_bins = 30
histplot( N_bins, mydata )
title("An example of histogram of normally distributed data")
xlabel("Value")
ylabel("Probability")
xs2pdf( gcf(), "images/04_histogram_v1.pdf" )
if getscilabmode() ~= "STD"
quit()
end
|
0519ddd7eab92bde563f029263373508e500c175 | 727092dff86e9d034d021bbc56565d9336b988aa | /Códigos CN/decomposicao_LU.sci | f17d917643e61ea954af6357c3a0e7d878dadf86 | [] | no_license | lucasdksan/Numerical-computing | c54b855bd50f2a06b1970086f2da63c28883f287 | a5a5863499bdf46003437140e3fa3123fc4960f8 | refs/heads/master | 2023-06-24T16:13:01.094230 | 2021-07-29T15:57:00 | 2021-07-29T15:57:00 | 278,514,165 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 290 | sci | decomposicao_LU.sci | function [L,U] = dlu(A)
[l, c] = size(A);
L = eye(l,c);
for i = 1:l-1
pivo = A(i,i);
for j = i + 1: l
m = A(j,i)/pivo;
A(j,:) = A(j,:) - m*A(i,:);
L(j,i) = m;
end
end
U = A;
endfunction
|
36793726f7c6018e3b6152157b1e01ac89c8e1a4 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2084/CH10/EX10.22w/10_22w.sce | 242d21480dfd94b00b9c6a6a410ac085c3acf375 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 493 | sce | 10_22w.sce | //developed in windows XP operating system 32bit
//platform Scilab 5.4.1
clc;clear;
//example 10.22w
//calculation of the number of revolutions made by the wheel per second
//given data
p=220*10^-2//perimeter(in cm) of the wheel
v=9*10^3/(60*60)//linear speed(in m/s) of wheel on the road
//calculation
r=p/... |
e04c8fc69e09658870052876b57e75ec71cd3e02 | a62e0da056102916ac0fe63d8475e3c4114f86b1 | /set4/s_Control_Systems_S._Ghosh_773.zip/Control_Systems_S._Ghosh_773/CH3/EX3.02/3_02.sci | 38c7321c74ed862c93d51c8bb7b943b97e36e3ff | [] | 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 | 121 | sci | 3_02.sci | errcatch(-1,"stop");mode(2);//laplace//
syms t s;
f=%e^(-3*t);
y=laplace('%e^(-3*t)',t,s);
disp(y,"G(s)=")
exit();
|
d4111047ede2568ec59e6cbd1e1deca1fb3539ea | 449d555969bfd7befe906877abab098c6e63a0e8 | /3864/CH8/EX8.2/Ex8_2.sce | ea64b7d607b20b813acebdae3038ccae168aa24e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,398 | sce | Ex8_2.sce | clear
//
//
//Initilization of Variables
L=2000 //mm //Length
d=200 //mm // diameter
t=10 //mm //Thickness
dell_V=25000 //mm**3 //Additional volume
E=2*10**5 //n/mm**2 //Modulus of elasticity
mu=0.3 //Poissons ratio
//Calculations
//Let p be the pressure developed
//Circumferential Stress
//f1=p*d*(2*t)**-1 //N/m... |
13d9bbe5721414709bc7425947fc65ae38bd988e | 4a1effb7ec08302914dbd9c5e560c61936c1bb99 | /Project 2/Experiments/GFS-GCCL-C/results/GFS-GCCL-C.abalone-10-1tra/result8s0.tst | 93df1fcd00778e128e96cc866c9038e18fe4ed65 | [] | no_license | nickgreenquist/Intro_To_Intelligent_Systems | 964cad20de7099b8e5808ddee199e3e3343cf7d5 | 7ad43577b3cbbc0b620740205a14c406d96a2517 | refs/heads/master | 2021-01-20T13:23:23.931062 | 2017-05-04T20:08:05 | 2017-05-04T20:08:05 | 90,484,366 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 2,528 | tst | result8s0.tst | @relation abalone
@attribute Sex{M,F,I}
@attribute Length real[0.075,0.815]
@attribute Diameter real[0.055,0.65]
@attribute Height real[0.0,1.13]
@attribute Whole_weight real[0.002,2.8255]
@attribute Shucked_weight real[0.001,1.488]
@attribute Viscera_weight real[5.0E-4,0.76]
@attribute Shell_weight real[0.0015,1.005]... |
f563867fc6aa52fdc8f6d137bd473410f0b1d2ee | 449d555969bfd7befe906877abab098c6e63a0e8 | /623/CH19/EX4.2.10/U4_C2_10.sce | da3c64df27a9ae15a3a86adfa0d0f09ae94e0f12 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 786 | sce | U4_C2_10.sce | //variable initialization
e=1.6*10^-19; //charge of electron (C)
m=9.1*10^-31; //mass of electron (kg)
B=0.1 //... |
1a08d8026ba13a94d5cc7169904f73c2c84a1676 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3673/CH6/EX6.a.14/Example_a_6_14.sce | 7f0780f1fbda69c85411f7f3cf4d9b2f97094cb9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 184 | sce | Example_a_6_14.sce | //Example_a_6_14 page no:243
clc;
Im=0.5;
Vmag=18.46;
Vang=0;
V1mag=1.54;
V1ang=0;
P=Vmag*Im*V1mag/2;
disp(P,"the average power delivered by the dependent source is (in W)");
|
845c99312019cbe013d0dda918a3ad2a26729f2f | 4d05c7f7559264f205dc6abda9e49aca7d7057ac | /Nand2Tetris/11_compiler_II/test6/test5.tst | a81dfe4bce130ad1b91f66c3ea4a0201e6049db0 | [] | no_license | daniellevin233/Python_projects | 22cc1a4a194d0b5253d06f9596d21f07bc5e44fb | 7f9eba191d0ad656b0b55421f2054efa2a1177cf | refs/heads/master | 2023-01-14T05:29:33.591746 | 2020-11-20T13:36:40 | 2020-11-20T13:36:40 | 298,377,620 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 149 | tst | test5.tst | load,
output-file test6.out,
output-list RAM[5000]%D1.6.1 RAM[5001]%D1.6.1 RAM[5002]%D1.6.1 RAM[5003]%D1.6.1;
repeat 1000000 {
vmstep;
}
output;
|
bc6e2ab2f794f1ad2970e1a23927c4bc859190a5 | 449d555969bfd7befe906877abab098c6e63a0e8 | /1592/CH5/EX5.18/Example_5_18.sce | 5d5e132fe6f8e7002e987b480969b66e3bd8cfe0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 185 | sce | Example_5_18.sce | //Scilab Code for Example 5.18 of Signals and systems by
//P.Ramakrishna Rao
//Given signal x(n)
clear;
clc;
x=[1,2,3,4];
X=fft(x);
disp(X,'FFT of given signal is:X(0)-->X(3)')
|
02aa13ea6ce86be32b84adc1a827e23fd0884eff | 449d555969bfd7befe906877abab098c6e63a0e8 | /728/CH9/EX9.13/Ex9_13.sce | b7d8dca6d5c350135e6b3437351cc83ac1047c1a | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 859 | sce | Ex9_13.sce | //Caption:Calculate (i)-equivalent noise resistance, (ii)-gain, (iii)-noise figure, (iv)-bandwidth
//Exa:9.13
clc;
clear;
close;
f_s=2*10^9;//in Hz
f_p=12*10^9;//in Hz
f_i=10*10^9;//in Hz
f_d=5*10^9;//in Hz
R_i=1*10^3;//in ohm
R_g=1*10^3;//in ohm
R_T_s=1*10^3;//in ohm
R_T_i=1*10^3;//in ohm
T_d=300;//in Kel... |
3daaff6bc59a0cff9158d5d5915d9e8196610cb7 | 449d555969bfd7befe906877abab098c6e63a0e8 | /243/CH11/EX11.3/11_03.sce | 08da4ffd2e57fba53a18adb2466c00779f415b9f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 493 | sce | 11_03.sce | //Example No. 11_03
//Pg No. 353
close ;clear ;clc ;
x = 0.45;
deff('F = f(x)','F = sin(x)');
deff('DF = df(x,h)','DF = (f(x+h) - f(x))/h');
dfactual = cos(x);
h = 0.01:0.005:0.04;
n = length(h);
for i = 1:n
y(i) = df(x,h(i))
err(i) = y(i) - dfactual ;
end
table = [ h' y err];
disp(table)
//sc... |
481d271a69f0b3f16dcf44bc00db0c5c2e507e38 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3014/CH4/EX4.11/Ex4_11.sce | f496914e89c90b10494f2d326cf74d941d40db23 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 803 | sce | Ex4_11.sce |
clc
//Given that
V = 100 // Applied potential in Volt
d = 1 // Separation between plates in cm
k1 = 8 // Dielectric constant
k2 = 9 //dielectric constant
epsilon_0 = 8.854e-12 // Permittivity of free space
printf("Example 4.11")
E_0 = V/(d*1e-2) // Calculation of electric field
E = E_0/k1*k2 // Calculatio... |
4574b8df213fceb304dc6a36da0010daed9bbb89 | 117d2e73730351cc15ef378cd319a907c507e476 | /localização de raízes/newton2.sce | 2b3f349683d661074b2931a529c879a996e8c3d7 | [
"Apache-2.0"
] | permissive | Trindad/algoritmos-calculo-numerico | b900768350277a46da636a3d0da9b8c83c4da780 | 1dcafd39d2281cb3065ba9742c693e5e49e2a08c | refs/heads/master | 2021-01-22T21:28:09.251265 | 2014-07-23T14:08:55 | 2014-07-23T14:08:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 621 | sce | newton2.sce | clear;clc;
format (25)
E = 10^-5;
a = -2;
b = 2;
//função
function [a]=f(x)
a = (%e^x)-(x^2);
endfunction
//derivada da primeira
function [a]=d1(x)
a = (%e^x)-2*x;
endfunction
//derivada da segunda
function [a]=d2(x)
a = (%e^x);
endfunction
if f(a)*f(b) > 0 then
mprintf("Valores do intervalo ... |
acfe4ffb8e67588030ddfd8f302ac819755700bd | 449d555969bfd7befe906877abab098c6e63a0e8 | /3754/CH10/EX10.15/10_15.sce | b51377a6e04a7f0660bdc84e2f7736ed5697e72e | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,108 | sce | 10_15.sce | clear//
//Variables
un = 1350 //mobility of electrons (in centimeter-square per volt-second)
up = 480 //mobility of holes (in centimeter-square per volt-second)
ni = 1.52 * 10**10 //intrinsic concentration (in per cubic-centimeter)
Nsi... |
480ab7fdca70d886b69ee7fd90df5b826bbcad32 | 449d555969bfd7befe906877abab098c6e63a0e8 | /530/CH5/EX5.5/example_5_5.sce | d4485f0b07056b7ede35dc89dae1416fef294f33 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,311 | sce | example_5_5.sce | clear;
clc;
// A Textbook on HEAT TRANSFER by S P SUKHATME
// Chapter 5
// Heat Transfer by Forced Convection
// Example 5.5
// Page 231
printf("Example 5.5, Page 231 \n")
V = 15 ; // [m/s]
s=0.2 ; // [m]
T_m = (20+60)/2; // [degree C]
// Properties at mean temp = 40 degree C
v = 16.96*10^-6; // [m... |
58bbdb8a85f54de15347d3f4e4d6f110596d475f | cac765899ef2f4a3fea7b30feb7d3cc9e32a4eb4 | /test-deprecated/testAsserVisu3ddl.sce | b9af9c10486e01f1c1d98a907d16cff0b10017a8 | [] | no_license | clairedune/AsserVisu | 136d9cb090f709a410f23d3138ab115b722066d2 | f351f693bffd50b5ae19656a7fcb7b52e01d6943 | refs/heads/master | 2020-04-11T09:56:32.106000 | 2017-01-12T14:01:12 | 2017-01-12T14:01:12 | 1,187,919 | 0 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,501 | sce | testAsserVisu3ddl.sce | // main programm
//-----------------------------------------------//
path=get_absolute_file_path("scilab-src");
disp('HOME:'+path),
getd(path + "src/graphisme"); // pour charger un repertoire en entier
getd(path + "src/transformation");
getd(path + 'src/projectionPers');
getd(path + 'src/asserVisu');
getd(path + 'src... |
d5340f04d0f27294ab2038d88b53d58f07648ebd | 449d555969bfd7befe906877abab098c6e63a0e8 | /3740/CH8/EX8.1/Ex8_1.sce | 749ad4ee1accae036fb3c9eb284664020d155956 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 897 | sce | Ex8_1.sce | //Optoelectronics - An Introduction, 2nd Edition by J. Wilson and J.F.B. Hawkes
//Example 8.1
//OS=Windows XP sp3
//Scilab version 5.5.2
clc;
clear;
//given
n1=1.5;//Dimensionless refractive index of glass
n2=1;//Dimensionless refractive index of air
Theta_i=60;//Angle of incidence in degrees
Tan_Sai=sqrt(s... |
c2f764ea0e00f67629d0dc942e99743bd22428bc | 449d555969bfd7befe906877abab098c6e63a0e8 | /608/CH33/EX33.09/33_09.sce | 5c0f8ac6085c0bbaf8a1dcd56472ff8c0cd1b5ae | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 954 | sce | 33_09.sce | //Problem 33.09: Use Norton’s theorem to determine the value of current I in the circuit shown in Figure 33.47.
//initializing the variables:
V = 5; // in volts
R1 = 2; // in ohm
R2 = 3; // in ohm
R3 = -1*%i*3; // in ohm
R4 = 2.8; // in ohm
//calculation:
//The branch containing the R4 is short-circuited, a... |
7d58550b57a69cc5c11ebd70212da2599a09ca34 | 449d555969bfd7befe906877abab098c6e63a0e8 | /710/CH6/EX6.6/6_6.sci | 691476811825b02b442333a42cf2862a6bcd8ca7 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 290 | sci | 6_6.sci | clc();
clear;
//To determine the refractive index of material surface
ip=52; //angle of polarization
mew=tand(ip) //refractive index of the material surface
printf("The refractive index of the material surface is %f",mew); |
99f399babcbb28bb20e8f76e265823ee949b9a84 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2885/CH14/EX14.1/ex14_1.sce | a4a375e93a5a0f70cbc6c47abe9d7d5968a9963d | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex14_1.sce | //Calculate voltage gain and input and output resistance
clear;
clc;
//soltion
//given
R1=20*10^3;//ohm
Rf=2000*10^3;//ohm
Acl=-Rf/R1;
Ricl=R1;
Ro=0;
printf("The voltage gain= %.0f\n",Acl);
printf("The input resistance =%.0f kΩ\n",R1/1000);
printf("The output resistance =%.0f Ω\n",Ro);
|
ae6952b9b8c47565d05f7d75979073ed0eae544f | 8217f7986187902617ad1bf89cb789618a90dd0a | /source/2.1/macros/arma/reglin.sci | 140d4827badda619ad3f524fd5ddd94f35719e88 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-warranty-disclaimer",
"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 | 651 | sci | reglin.sci | //[a,b,sig]=reglin(x,y,dflag)
// Solves a linear regression
// y=a*x+b
// x and y can be multidimentional
// x=[ x(1),.....,x(n)]
// y=[ y(1),.....,y(n)]
// sig : noise ``ecart type''
// dflag is optional if 1 a display of the result is done
//!
[lhs,rhs]=argn(0);
if rhs <=2;dflag=0;end
[n1,n2]=size(x)
[p1,p2]=size... |
f395c7150c030a374450bf8796886ffeae2f08d2 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2381/CH14/EX14.1/ex_1.sce | 587eb0a76b3a5c5590ea954409950861ca9f9b0f | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 188 | sce | ex_1.sce | //Example 1 // Fundamental frequency
clc;
clear;
close;
//given data :
t=1.6*10^-3;// in m
lamda=2*t;// in m
v=5760;// in m/s
n1=v*10^-6/lamda;
disp(n1,"Fundamental frequency,n1(MHz) = ")
|
81c62ba48ab62172614dad6cd006fb8ab080ac01 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2267/CH5/EX5.3/ex5_3.sce | da25027458f49c013acfde6c5e9152609f72f6c0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 180 | sce | ex5_3.sce | //Part A Chapter 5 Example 3
clc;
clear;
close;
T1=42+273;//K
T2=4+273;//K
Q2=2;//kJ/s
Q1=T1/T2*Q2;//kJ/s
Pin=Q1-Q2;//kJ/s
disp("Power required = "+string(Pin)+" kJ/s");
|
6aab6b1d34fbbf41c308500d39d6ecddcb3ef7c0 | 449d555969bfd7befe906877abab098c6e63a0e8 | /3640/CH3/EX3.2/Ex3_2.sce | 1e6d6710b8acb9304cc353a5178652cf5d03b2ba | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,199 | sce | Ex3_2.sce | clc
//code contains user defined function complexstring
function s=complexstring(a)
if imag(a)>=0 then
s=sprintf('%g+%gi',real(a),imag(a))
else
s=sprintf('%g%gi',real(a),imag(a))
end
funcprot(0)
endfunction
i2=141.4 //load current max val in amperes
r2=0.... |
bad063fd6554eff57a2d677d7844e72237d2084e | 60a8a4ce793d26ce86d35bcc0f2d58bd428855f1 | /3(J)Program to solve Unordered partitions..sce | 3603801ad5241b55797c61063b49deeca612cb02 | [] | 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 | 440 | sce | 3(J)Program to solve Unordered partitions..sce | p =12; // total number of students
t =3; // number of teams or partition
disp ('each partition of the students can be arranged in 3! ways as an ordered partition')
r= factorial (12) /( factorial (4)* factorial (4) * factorial(4) ) // number of ordered partitions
m=r/ factorial(t); // number of unordered partitions
... |
4b1ba02e10d804d90bbba98c680c3932fd3752dd | 449d555969bfd7befe906877abab098c6e63a0e8 | /2309/CH5/EX5.4/Ex5_4.sce | c5e8434f5e1a696c58aaa576b7dffc7da9dd39a9 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 872 | sce | Ex5_4.sce | // Chapter 5 Example 4
//==============================================================================
clc;
clear;
//input data
lamda = 1.5418; // wavelength in Å
h = 1; // miller indice
k = 1; // miller indice
l = 1; // miller indice
n = 1; ... |
469336b526dbdafbe4e4b27136b2fab0ca544255 | 449d555969bfd7befe906877abab098c6e63a0e8 | /2384/CH5/EX5.7/ex5_7.sce | a6b0fa3ccbc32b18f34df78e575fe45b1dfc8489 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex5_7.sce | // Exa 5.7
clc;
clear;
close;
format('v',6)
// Given data
W1 = 2000;// in W
W2 = 500;// in W
phi = (atand( sqrt(3)*((W1-W2)/(W1+W2)) ));// in lag
// power factor
pf= cosd(phi);// lagging
disp("Part (i) : Power factor is : "+string(pf)+" lagging");
W2 = -W2;// in W
phi = (atand( sqrt(3)*((W1-W2)/(W1+W2)) )... |
53d7bfa52bf4a9a76f08210507fe0034c4c8f43a | 449d555969bfd7befe906877abab098c6e63a0e8 | /29/CH8/EX8.6.3/exa8_6_3.sce | 24a6be8989f75d76a0f4e4d6ce5cb89bd7e6a8f3 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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,486 | sce | exa8_6_3.sce | //caption:design_suitable_compensator
//example 8.6.3
//page 344
clc;
s=%s;
clf();
syms K;
g=(K/(s*(1+0.5*s)*(1+0.2*s)));
Kv=1/0.125//static velocity error coefficient(Kv=desired output velocity/steady state error)
//since Kv=8, as system is type 1 , so K=Kv;
K=8;
g=(8/(s*(1+0.5*s)*(1+0.2*s)));
G=syslin('c'... |
f2378a9b28aa1641f02b4403d5e92bb2a6b3995c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2381/CH1/EX1.11/ex_11.sce | 9aa473d358ce6faabd7b3490f93e739adea05535 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 309 | sce | ex_11.sce | //Example 11 //
clc;
clear;
close;
//given data :
K1=3;// in N/m
K2=2;// in N/m
m=0.050;// in kg
w=sqrt((K1+K2)/m);
n=w/(2*%pi);
disp(n,"(i). The frequency,n(oscillations/sec) = ")
A=0.004;// in m
E=(1/2)*A^2*(K1+K2);
disp(E,"(ii). The energy,E(J) = ")
v=sqrt(2*E/m);
disp(v,"(iii). The velocity,v(m/s) = ")
|
d9460851a642855d36ec6e3db66e0088523ffb80 | 449d555969bfd7befe906877abab098c6e63a0e8 | /291/CH4/EX4.5d/eg4_5d.sce | a2bbb5766fa766f93ffe780efc499348c68ab3e1 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 71 | sce | eg4_5d.sce | expec = integrate('x^3', 'x', 0, 1);
disp(expec, "The expectation is") |
fc0bea897b4221d718b11e82e507e21ceb33d442 | 1bb72df9a084fe4f8c0ec39f778282eb52750801 | /test/TX53.prev.tst | 44b5d5191d59d67cc279bf9cf69e0c55bf1a707c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gfis/ramath | 498adfc7a6d353d4775b33020fdf992628e3fbff | b09b48639ddd4709ffb1c729e33f6a4b9ef676b5 | refs/heads/master | 2023-08-17T00:10:37.092379 | 2023-08-04T07:48:00 | 2023-08-04T07:48:00 | 30,116,803 | 2 | 0 | null | null | null | null | UTF-8 | Scilab | false | false | 3,923 | tst | TX53.prev.tst | TranspositionSet={[0,2,1]}
considerNonPrimitive
Expanding for base=2, level=4, reasons+features=base,transpose,primitive,same,similiar norm
Refined variables=x,y,z
[0+1x,0+1y,0+1z]: unknown -> [1] [0,0,0] -x³+3x²*y-3x*y²+y³+3x²*z-5x*y*z+3y²*z-3x*z²+3y*z²+z³
-> solution [0,0,0],trivial(3) [1,1,0],trivial(3) [1,0,1],triv... |
56b6a436fd50f2a3d81ae76302a706aa223f225c | 449d555969bfd7befe906877abab098c6e63a0e8 | /2534/CH3/EX3.8/Ex3_8.sce | a2e0f9cea11f2cd411e644f800164a5d3ac944cf | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 277 | sce | Ex3_8.sce | //Ex3_8
clc
Vpp = 4.2*10*10^-3//peak to peak voltage of sinusoidal signal //notation not used in textbook
Vm = Vpp/2//maximum positive voltage
Vrms = Vm/(2^.5)//root mean square value of voltage
disp("Vm = "+string(Vm)+"V")
disp("Vrms = Vm/(2^.5) = "+string(Vrms)+"V")
|
82cb92b90bde813d42fa64f7f3362dda432e633e | 449d555969bfd7befe906877abab098c6e63a0e8 | /1511/CH5/EX5.7/ex5_7.sce | abf37ee0be535c6ad82429dbdd1c4347d1c867e0 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 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 | ex5_7.sce | // Example 5.7 page no-289
clear
clc
//(a)
b=48 //beta
vbe=0.6 //V
vcc=20.6 //v
r1= 10 //k-ohm
rc= 5 //K-ohm
T=25 //temperature in Degree C
i=(vcc-vbe)/r1
ib=i/(2+b)
ic=b*ib
printf("\n(a)\nI = %d mA\nIb = %.0f mA \nIc = %.2f mA",i,ib*1000,ic)
//(b)
b2=98 //Beta
vbe=0.22 //V
I1=(vcc-vbe)/r1
... |
8c457f18bcdc3ff9606f2436b1e2e103e6115a2c | 449d555969bfd7befe906877abab098c6e63a0e8 | /1694/CH3/EX3.22/EX3_22.sce | 41857a9c6c76f838338b142b004c0234f3547ed5 | [] | no_license | FOSSEE/Scilab-TBC-Uploads | 948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1 | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df | refs/heads/master | 2020-04-09T02:43:26.499817 | 2018-02-03T05:31:52 | 2018-02-03T05:31:52 | 37,975,407 | 3 | 12 | null | null | null | null | UTF-8 | Scilab | false | false | 293 | sce | EX3_22.sce | clear;
clc;
printf("\nEx3.22\n");
//page no.-136
//given
m=10^-6;........//mass of particle
v=10^-4;........//speed in m/s
a=10^-7;........//length of box in m
h=6.625*10^-34;...//planck's constant in J-s
n=2*m*a*v/h.......//quantum no.
printf("\nquantum number is 3*10^16\n");
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.