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
9ed5e3c0ec1d7dfb608b562fc1d84e5f37d684df
449d555969bfd7befe906877abab098c6e63a0e8
/3822/CH6/EX6.1/Ex6_1.sce
2793b9b5a19b9c94cefb643535e384850f7a66cf
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
920
sce
Ex6_1.sce
//Optoelectronics and Fiber Optics Communication by C.R. Sarkar and D.C. Sarkar //Example 6.1 //OS = Windows 7 //Scilab version 5.5.2 clc; clear; //given eta=0.70;//quantum efficiency E=2.2*10^-19;//energy of the photons in Joule Ip=2*10^-6;//photocurrent in A //the value in question is different from that used in solution in question it is mA and in solution it is uA h=6.62*10^-34;//Planck's constant in SI units c=3*10^8;//speed of the light in m/s e=1.9*10^-19;//electric charge in coulomb lamda=(h*c)/E;//operating wavelength of the photodiode in m f=c/lamda;//frequency in Hz R=(eta*e)/(h*f);//Responsivity in A/W Po=Ip/R;//incident power in W mprintf("\n Operating wavelength of the photodiode is= %.2f um",lamda*1e6);//multiplication by 1e6 for conversion of unit from m to um mprintf("\n Incident power is =%.2f uW",Po*1e6);//multiplication by 1e6 for conversion of unit from W to uW
95116e4bb52e04435e093a24bc41d342711c77c0
449d555969bfd7befe906877abab098c6e63a0e8
/1931/CH2/EX2.1/1.sce
8382e7106b853c3bb2496be86459a3bf17e39555
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
430
sce
1.sce
clc clear //INPUT DATA E=80*10^9//Young's modulus of material of piezo electric crystal in Pa d=2654 //Density of material of piezo electric crystal in Kg/m^3 t=0.1*10^-2//Thickness of piezo electric crystal in m p=1//for fundamental first overtone //CALCULATION f=((p/(2*t))*(sqrt(E/d)))/10^6//Frequency of vibration of first overtone in Hz *10^6 //OUTPUT printf('The frequency of vibration is %3.4f *10^6.Hz',f)
d7f3e50703a772d317c8f7086baa40e8755e8faf
b4a784116c78676b155ba6b3f4ba5366881ab800
/comparaisonDis_Continu.sce
a0a117683e0e40de4aa62138fa9e8d20109546fe
[]
no_license
EmSavalle/Expe-Comportementale
6d66b5cabdb91c9daab6fdef3fdb6e88e33a95ec
798821a7c8ff2ea7251c4a09532846f8075f8853
refs/heads/master
2023-02-24T18:25:05.071965
2021-02-01T09:53:02
2021-02-01T09:53:02
310,548,136
0
0
null
null
null
null
UTF-8
Scilab
false
false
5,057
sce
comparaisonDis_Continu.sce
active_buttons = 1; button_codes = 1; begin; sound {wavefile { filename = "song.wav";};} sound1; array{ sound { wavefile { filename = "1000ms/audioMosquito0_m5.wav";};} sound0_m5; sound { wavefile { filename = "1000ms/audioMosquito3_m4.wav";};} sound3_m4; sound { wavefile { filename = "1000ms/audioMosquito4_m2.wav";};} sound4_m2; sound { wavefile { filename = "1000ms/audioMosquito5_0.wav";};} sound5_0; sound { wavefile { filename = "1000ms/audioMosquito4_2.wav";};} sound4_2; sound { wavefile { filename = "1000ms/audioMosquito3_4.wav";};} sound3_4; sound { wavefile { filename = "1000ms/audioMosquito0_5.wav";};} sound0_5; sound { wavefile { filename = "1000ms/audioMosquito0_m41.wav";};} sound0_m41; sound { wavefile { filename = "1000ms/audioMosquito21_m36.wav";};} sound21_m36; sound { wavefile { filename = "1000ms/audioMosquito36_m20.wav";};} sound36_m20; sound { wavefile { filename = "1000ms/audioMosquito41_0.wav";};} sound41_0; sound { wavefile { filename = "1000ms/audioMosquito36_20.wav";};} sound36_20; sound { wavefile { filename = "1000ms/audioMosquito21_36.wav";};} sound21_36; sound { wavefile { filename = "1000ms/audioMosquito0_41.wav";};} sound0_41; sound { wavefile { filename = "1000ms/audioMosquito0_14.wav";};} sound0_14; sound { wavefile { filename = "1000ms/audioMosquito0_24.wav";};} sound0_24; sound { wavefile { filename = "1000ms/audioMosquito0_m14.wav";};} sound0_m14; sound { wavefile { filename = "1000ms/audioMosquito0_m24.wav";};} sound0_m24; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom0_-5to3_-4.wav";};} soundFrom0_m5to3_m4; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom0_24to0_41.wav";};} soundFrom0_24to0_41; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom0_41to41_0.wav";};} soundFrom0_41to41_0; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom3_4to0_5.wav";};} soundFrom3_4to0_5; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom3_-4to4_-2.wav";};} soundFrom3_m4to4_m2; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom4_2to3_4.wav";};} soundFrom4_2to3_4; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom4_-2to5_0.wav";};} soundFrom4_m2to5_0; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom5_0to4_2.wav";};} soundFrom5_0to4_2; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom21_36to0_41.wav";};} soundFrom21_36to0_41; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom24_0to41_0.wav";};} soundFrom24_0to41_0; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom41_0to0_24.wav";};} soundFrom41_0to0_24; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom41_0to21_36.wav";};} soundFrom41_0to21_36; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom0_-24to0_-14.wav";};} soundFrom0_m24to0_m14; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom0_-41to0_-24.wav";};} soundFrom0_m41to0_m24; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom0_14to0_24.wav";};} soundFrom0_14to0_24; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom24_0to14_0.wav";};} soundFrom24_0to14_0; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom21_-36to36_-20.wav";};} soundFrom21_m36to36_m20; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom36_-20to41_0.wav";};} soundFrom36_m20to41_0; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom41_0to36_20.wav";};} soundFrom41_0to36_20; sound { wavefile { filename = "ExMouvement/audioMosquitoFrom36_20to21_36.wav";};} soundFrom36_20_to21_36; }sounds; trial{ stimulus_event{ sound sound1; time = 0; duration = 3000; }s1; stimulus_event{ sound sound1; time = 3000; duration = 1000; }s2; stimulus_event{ sound sound1; time = 4000; duration = 1000; }s3; stimulus_event{ text{ caption = "Appuyer sur entrer pour passer au sons suivants"; }; response_active = true; target_button = 1; duration = response; time = 3000; }; }trcourt; trial{ stimulus_event{ sound sound1; time = 0; duration = 7000; }l1; stimulus_event{ sound sound1; time = 7000; duration = 1000; }l2; stimulus_event{ sound sound1; time = 8000; duration = 1000; }l3; stimulus_event{ text{ caption = "Appuyer sur entrer pour passer au sons suivants" }; response_active = true; target_button = 1; duration = response; time = 9000; }; }trlong; begin_pcl; array <int> s[48] = {1, 2, 19, 2, 3, 23, 3,4, 25, 4,5, 26, 5,6,24, 6,7,22, 8,9,19, 9,10,35, 10,11,36, 11,12,37, 12,13,38, 13,14,27, 18, 17,31, 8, 18, 32, 16, 14, 28, 15, 16, 33}; array <int> ind[16] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}; s=s.shuffle(); loop int j = 1 until j > s.count() begin int i = ind[j]; sound so1 = sounds[(i-1)*3+1]; sound so2 = sounds[(i-1)*3+2]; sound so3 = sounds[(i-1)*3+3]; if(s[(i-1)*3+3]>=35)then #Long son l1.set_stimulus(so3); l2.set_stimulus(so1); l3.set_stimulus(so2); trlong.present(); else #Court son s1.set_stimulus(so3); s2.set_stimulus(so1); s3.set_stimulus(so2); trcourt.present(); end; j=j+1; end;
fb631bc620ed9e35196d6b31a0dc9977c5c37b24
449d555969bfd7befe906877abab098c6e63a0e8
/632/CH8/EX8.2/example8_2.sce
1ac2f87457a929d4f1254bf34835a3bb9e5f3fbc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
247
sce
example8_2.sce
//clc() P = 101.3;//kPa Per1 = 10;//% Pa = P * Per1 / 100;// ( a - benzene ) Ps = Pa;//( saturation ) //lnPs = 13.8858 - 2788.51/(T - 52.36) T = 2788.51 / ( 13.8858 - log(Ps)) + 52.36; disp("K",T,"Temperature at which saturation occurs = ")
e68073f4f83810bbc97f0c5517fc7d014e59e468
af13f4527ded97c22814716149f9b9d5a73648bf
/scilab/contact_point.sci
e56b99ce9d4ea759731fdd27dff97bcb56c10560
[]
no_license
kirillin/parking-lego-car
796b19365a3f07e1882e9334d60870f133b05148
04db2c1ffee510f383c8c881259222d042b5f79b
refs/heads/master
2021-09-04T08:57:03.778566
2018-01-17T13:49:17
2018-01-17T13:49:17
110,357,015
1
0
null
2017-11-24T21:58:12
2017-11-11T15:36:16
Python
UTF-8
Scilab
false
false
2,231
sci
contact_point.sci
// for search of contact point of bottom arc and inclined line function answ = contact_point(point_7, point_4, R) x_7 = point_7(1); y_7 = point_7(2); x_4 = point_4(1); y_4 = point_4(2); function [y] = f1(x) y(1) = (x(1) - x_7)^2 + (x(2) - y_7)^2 - R^2; y(2) = (x(1) - x_7)*(x_4 - x(1)) + (x(2) - y_7)*(y_4- x(2)); endfunction answ = fsolve([x_7 + R/2, y_7 - R/2], f1); endfunction // gradient descent optimization algorithm function answ = grad_search(point_7, point_4, R) x_7 = point_7(1); y_7 = point_7(2); x_4 = point_4(1); y_4 = point_4(2); // gamma coefficient GAMMA = 2.0; // some initial values i = 1; alpha(i) = %pi/4; e = %inf; // main loop while abs(e) > 0.001 then e = (y_4-y_7) - (x_4-x_7)*tan(alpha(i)) + R*cos(alpha(i)) + R*tan(alpha(i))*sin(alpha(i)); deriv_e = -(x_4 - x_7)/cos(alpha(i))^2 + R*sin(alpha(i))/cos(alpha(i))^2; alpha(i+1) = alpha(i) - GAMMA * e * deriv_e; i = i + 1; end // contact point coordinates x_5 = x_7 + R * sin(alpha(i)); y_5 = y_7 - R * cos(alpha(i)); answ = [x_5, y_5]; // some logs printf("\nGradient descent optimization algorithm ends search in %d steps.\n", i); scf(1); plot2d(alpha); xlabel("Step number"); ylabel("Value of alpha angle"); endfunction // Newton's method function answ = newton_method(point_7, point_4, R) x_7 = point_7(1); y_7 = point_7(2); x_4 = point_4(1); y_4 = point_4(2); // some initial values i = 1; alpha(i) = %pi/4; e = %inf; // main loop while abs(e) > 0.001 then e = (y_4-y_7) - (x_4-x_7)*tan(alpha(i)) + R*cos(alpha(i)) + R*tan(alpha(i))*sin(alpha(i)); deriv_e = - (x_4 - x_7) / cos(alpha(i))^2 + R*sin(alpha(i))/cos(alpha(i))^2; alpha(i+1) = alpha(i) - e / deriv_e; i = i + 1; end // contact point coordinates x_5 = x_7 + R * sin(alpha(i)); y_5 = y_7 - R * cos(alpha(i)); answ = [x_5, y_5]; // some logs printf("\nNewton method ends search in %d steps.\n", i); scf(1); plot2d(alpha); xlabel("Step number"); ylabel("Value of alpha angle"); endfunction
a6cc2be63546835df9ef3ecdcd3a9d785e7bd47b
4649da03878fae55d14dca483bb2bfa2213004e5
/ais/tags/0.0.1/testaisclient/testhttpxmlamp.tst
3d4e7fb0fb835f6845486f6b724fc85316d362f7
[]
no_license
rms1000watt/aiserver
2fba20a1199e1ae366176bbd9db0ffc12ab671c3
dbc81369dfc68732aff858a585656f0c7a85b453
refs/heads/master
2023-01-01T18:58:15.139028
2020-10-30T18:21:13
2020-10-30T18:21:13
308,709,836
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,589
tst
testhttpxmlamp.tst
# ais/testaisclient/testxmlhttpamp.txt # Tests using XML documents via a HTTP port # NOTES # 1. See testsuite.tst for more info on constructing tests. # CHANGE HISTORY (put latest entry at top) # Version Date Who Change # 1.0104 9/8/2006 tlw Fix error in protocol for (noop). # 1.0062 5/17/2005 tlw Test Http port using XML # ------------------------------------------------------------------------------------------------- # probe H0://$host$:$httpport$/amp.dll? result| # ------------------------------------------------------------------------------------------------- # (noop) H0://$host$:$httpport$/amp.dll?_eval=%28noop%29 &httpsessionid=(\d+) sessionid=$httpsessionid$ # ------------------------------------------------------------------------------------------------- # Probe. Empty post. P1://$host$:$httpport$/amp.dll result| # eval Url-encoded post. _eval=(writeln {Hello from query string}) P1://$host$:$httpport$/amp.dll _eval=%28writeln+{Hello+from+query+string}%29 true # ------------------------------------------------------------------------------------------------- # eval Plain text post. _eval=(writeln {Hello from query string}) P1://$host$:$httpport$/amp.dll _eval=(writeln {Hello from query string}) true # ------------------------------------------------------------------------------------------------- # xml - Url-encoded query. <amp target="_ais" act="noop"/> H0://$host$:$httpport$/amp.dll?xml=%3Camp+target%3D%22_ais%22+act%3D%22noop%22%2F%3E <amp act="noop" status="0" target="_ais" xtype="return"><result>sessionid=$httpsessionid$</result> # ------------------------------------------------------------------------------------------------- # xml - Plain text Post. Content-Type text/xml. <amp target="_ais" act="noop"/> P1://$host$:$httpport$/amp.dll <amp target="_ais" act="noop"/> <amp act="noop" status="0" target="_ais" xtype="return"><result>sessionid=$httpsessionid$</result> # ------------------------------------------------------------------------------------------------- # xml - Plain text Post. xml=<amp target="_ais" act="noop"/> P1://$host$:$httpport$/amp.dll xml=<amp target="_ais" act="noop"/> <amp act="noop" status="0" target="_ais" xtype="return"><result>sessionid=$httpsessionid$</result> # ------------------------------------------------------------------------------------------------- # All built-in AMP functions are tested in testxmlamp.txt # -------------------------------------------------------------------------------------------------
de88ac2c634324903ff8ca256385e8d4543842b8
5c808b0f55fefd29b91c7cb73f2f3a08093c5033
/Code/Scilab Code/FalseNegsForAudioSamples.sci
1708f9235ca06f17b22c43ea1383a938a064274f
[]
no_license
JOfTheAncientGermanSpear/Filter-Bank-Guitar-Note-Chord-Detection
a01e2ce521561dfea555a588d6bb1e0f1deca18e
cb0d54c74275a990dcb984c4ec349e6ca4e72a1a
refs/heads/master
2021-01-20T12:00:42.472605
2013-06-14T03:04:33
2013-06-14T03:04:33
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
634
sci
FalseNegsForAudioSamples.sci
function falseNegs = FalseNegsForAudioSamples() //tests each audio sample with the associated filter //falsenegs is the array for which the samples does //not pass it's associated note filter falseNegs = zeros(1,48); for stageIndex = 0:3 for noteIndex = 0:11 audioSample = LoadAudioSample(stageIndex, noteIndex); audioSample = PrepAudioForProcessing(audioSample, 44100) passesFilter = HasNote(audioSample, stageIndex, noteIndex); falseNegs(Convert2DIndexTo1D(stageIndex, noteIndex, 12) + 1) = ~passesFilter; end end endfunction
d5de32458355adbf00bca44885a6ad9049e43ce7
449d555969bfd7befe906877abab098c6e63a0e8
/3751/CH11/EX11.25/Ex11_25.sce
cf6b0ffebfe66cacc20b1db88bbebba244a9adbf
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,047
sce
Ex11_25.sce
//Fluid Systems - By - Shiv Kumar //Chapter 11 - Centrifugal Pumps //Example 11.25 //To Find the Discharge and Head of the Pump at Condition '2' and '3' and Compare the Power Consumed in all the cases. clc clear //Given Data:- //At Condition '1' N1=750; //Speed, rpm Q1=60; //Discharge, l/s H1=20; //Head, m //At Condition '2' N2=1200; //Speed, rpm //At Condition '3' N3=4200; //Speed, rpm //Computations:- Q2=Q1*(N2/N1); // l/s H2=H1*(N2/N1)^2; //m Q3=Q1*(N3/N1); // l/s H3=H1*(N3/N1)^2; //m //Results:- printf("At Condition -2 Discharge, Q2=%.f l/s and Head, H2=%.1f m\n",Q2,H2) printf(" At Condition -3 Discharge, Q3=%.f l/s and Head, H3=%.1f m\n",Q3,H3) printf(" P1: P2 : P3 = 1 : %.2f : %.2f ",Q2*H2/(Q1*H1),Q3*H3/(Q1*H1)) //The answer vary due to round off error
444f9cd724f848ebf64433315b95601920b484e9
449d555969bfd7befe906877abab098c6e63a0e8
/1382/CH2/EX2.40/EX_2_40.SCE
aad93c2105ee8e73d2f1f88eb2f28fd74e5ff468
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
496
sce
EX_2_40.SCE
// Example 2.39.b: R1 & R2 clc; clear; close; Vcc=5;// Colector voltage in volts Beta=100; Vce=2.5;// Collector to emitter voltage in volts Vbe=0.6;// Base to emitter voltage in volts R4=0.3;// Resistance in killo ohms R2=10;// Resistance in killo ohms Ic=1;// Collector current in mA Vr4=(1+(1/Beta))*Ic*R4; Vcn= Vce-Vr4; R3=(Vcc-Vcn)/Ic; Rb=8.03;// Base resistance in killo ohms R1=(Rb*R2)/(R2-Rb); disp(R1,"Resistance in killo ohms") disp(Rb,"Base Resistance in killo ohms")
6c146c2e077863af451ac5e61c9ab8156b55c7a2
449d555969bfd7befe906877abab098c6e63a0e8
/1322/CH9/EX9.2.b/67ex2b.sce
33dcd4c4ad43bec30ea49d1d469f71ad5c79e444
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
342
sce
67ex2b.sce
//what inequality is represented on no. line clear; clc; close; x=string(0:10); n=string('<'+strcat(x,'---')+'>'); //0 to 10 no. line n1=string(strsubst(n,'0---1---2---3','_____________')); mprintf("\n the number line \n %s represents n1<=3 ",n1)
54201c8b06f6ea69a74dadaea8065f1c8f26a265
449d555969bfd7befe906877abab098c6e63a0e8
/75/CH7/EX7.7/ex_7.sce
fd62764933b661d7362c9598102cb47359b5569b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
210
sce
ex_7.sce
// PG (494) A = [4 1 0 0;1 4 1 0;0 1 4 1;0 0 1 4] B = A/4 - eye() norm(B,'inf') // Let (I+B = C) C = eye() + B inv(C) // Inverse of (I + B) exists norm(C,'inf') // Inverse of A exists.
bdd0038743cee67e1d562a29bab9ee5c3384ef0c
3dbdc1a91ad07ea5fc4c4fa52a6fa2a6870125a6
/calculo-numerico/residuo-fatorcorrecao.sce
c33d99f29ff3ad569a184651b3656e999dd914fe
[ "Apache-2.0" ]
permissive
geovani-moc/Algoritmos
226ceea9b599bb1979770ac001f5108a0533bb00
d2d838c158da62a94946a7af29b24ca7396af34e
refs/heads/master
2023-01-09T12:40:50.330766
2020-11-06T17:46:46
2020-11-06T17:46:46
256,744,544
1
0
null
null
null
null
UTF-8
Scilab
false
false
323
sce
residuo-fatorcorrecao.sce
clc; clear; //A = input("Entre com a matriz A: "); A=[5 -2 3;-2 10 4;3 4 20] //b = input("Entre com o vetor b"); b=[31 -10 81]' //x = input("Entre com o vetor x"); x=[10 11 12]' r = A*x-b; //residuo c = A\r; //correcao while norm(c,'inf')>=10^(-3) x = x + c; r = b-(A*x); c = A\r; end disp(x);
ff81c0b5bf404dc899df59924bdcc8d197f64767
449d555969bfd7befe906877abab098c6e63a0e8
/2885/CH2/EX2.2/ex2_2.sce
82a5196ec113ad6ce5ad7c505e63d40e9704a9d9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
648
sce
ex2_2.sce
//Determine the conductivity of extrinsic semiconductor clear; clc; //soltion //given e=1.6*10^-19;//Coulomb //charge of an electron ni=1.5*10^16;//per m^3 //concentration un=0.13;//m^2/Vs //mobility of electron up=0.05;//m^2/Vs //mobility of holes Si=5*10^28;//per m^3 //atomic density in silicon dop=(1/(2*10^8)); //concentration of an antimony per silicon atoms Nd=dop*Si;//per m^3 //donor concentraion n=Nd;//per m^3 //free electron concentration p=(ni^2/Nd);//per m ^3 // hole concentration con=e*(n*un+p*up); printf("The conductivty is %.1f S/m \n",con);
08207aa008e36b3971c5c05137af9edf65fe7788
449d555969bfd7befe906877abab098c6e63a0e8
/3472/CH9/EX9.2/Example9_2.sce
af7bf6c61939286ad9d6421adf7997e99a7e61e7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
1,023
sce
Example9_2.sce
// A Texbook on POWER SYSTEM ENGINEERING // A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar // DHANPAT RAI & Co. // SECOND EDITION // PART II : TRANSMISSION AND DISTRIBUTION // CHAPTER 2: CONSTANTS OF OVERHEAD TRANSMISSION LINES // EXAMPLE : 2.2 : // Page number 101 clear ; clc ; close ; // Clear the work space and console // Given data l = 100.0 // Length of 3-phase transmission line(km) D = 120.0 // Distance between conductors(cm) d = 0.5 // Diameter of conductor(cm) // Calculations r_GMR = 0.7788*d/2.0 // GMR of conductor(cm) L = 2.0*10**-4*log(D/r_GMR) // Inductance per phase(H/km) L_l = L*l // Inductance per phase for 100km length(H) // Results disp("PART II - EXAMPLE : 2.2 : SOLUTION :-") printf("\nInductance per phase of the system, L = %.4f H \n", L_l) printf("\nNOTE: ERROR: In textbook to calculate L, log10 is used instead of ln i.e natural logarithm. So, there is change in answer")
25e1fc2c1e3b0e7e6d3b494e4ce852c8ad626b78
449d555969bfd7befe906877abab098c6e63a0e8
/3760/CH2/EX2.4/Ex2_4.sce
95272dbf3909495949a0ebeca8df458016972fde
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
553
sce
Ex2_4.sce
clc; l=0.02; // air gap length i1=20; // intermediate current i2=40; // current during armature movement from open to close position // from fig 2.11 f1=0.04*i1; // flux linkage during open position at A f2=1.2+0.03*(i1-20); // flux linkage during close position at D f3=0.04*i2; // flux linkage during open position at B f4=1.2+0.03*(i2-20); // flux linkage during close position at C // Mechanical work done=area ODCFEO-area OABFEO W=((i1*f2)/2)+(((f2+f4)*i1)/2)-((i2*f3)/2); fe=W/l; printf('Average electromagnetic force is %d N',fe);
a8f638761aa64beccf1d59e2a3aaa9fce267d909
449d555969bfd7befe906877abab098c6e63a0e8
/2240/CH1/EX0.7/EXI_7.sce
4e0f0cb53a82b710f579d858e04ed61c7cfcf26a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
701
sce
EXI_7.sce
// Grob's Basic Electronics 11e // Chapter No. I // Example No. I_7 clc; clear; // Express the power value of 250-W using the appropriate metric prefix from Table I–2. disp ('In this case, it is not necessary to use any of the metric prefixes listed in Table I–2. The reason is that 250-W cannot be expressed as a number between 1 and 1000 times a power of 10 which is a multiple of 3.') disp ('250 W cannot be expressed in engineering notation. The closest we can come is 0.25*10^3-W, which is not representative of engineering notation. Although 10^3 can be replaced with the metric prefix kilo (k)') disp ('It is usually preferable to express the power as 250-W and not as 0.25-kW.')
a19169752ea8b00b37e78ec90387ce5c746520b2
449d555969bfd7befe906877abab098c6e63a0e8
/2072/CH22/EX22.3/Ex22_3.sce
6217589e6a811be643a1f2afc2d38dff330760bb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
215
sce
Ex22_3.sce
//Example22.3 clc disp("Solution a") c=3*10^8// Constant in m/s n=1.458 v=c/n disp(v,"Velocity in m/s=") disp("Solution b") lambda_o=589//in nm lambda_n=lambda_o/n disp(lambda_n,"Wavelength in Fused quartz in nm=")
d9bdeb77f763b87aea927bf61b1bcc8a08509364
449d555969bfd7befe906877abab098c6e63a0e8
/291/CH12/EX12.4a/eg12_4a.sce
62d584bddefd02659b63874c721fd5223d3afc9a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
302
sce
eg12_4a.sce
X= [65.2 67.1 69.4 78.2 74 80.3]; Y = [59.4 72.1 68 66.2 58.5]; Z = [X Y]; Z = gsort(Z,'g','i'); [m n]= size(X); [p q] = size(Z) T = 0; for i=1:n test = X(i); for j =1 : q if(test== Z(j)) T = T+ j; end end end disp(T, "The test statistic is ")
71176c90306bc020411ecbb04161074f8a5e8af0
449d555969bfd7befe906877abab098c6e63a0e8
/2345/CH15/EX15.12/Ex15_12.sce
4d69a26bad94bd114b3d3578a82e833ce7c4f32a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
263
sce
Ex15_12.sce
//Finding resistivity //Example 15.12(pg 399) clc clear V=0.05//volume in m^3 l=300//length in m R=0.0306//resistance of conductor in ohm rho=R*V/(l^2)//resistivity of conducting material printf('Thus resistivity of conducting material is %e ohm-m',rho)
86b9365b06b3786b5b309e8b7afd1287a83f0bfa
6813325b126713766d9778d7665c10b5ba67227b
/Chapter6/Ch_6_Eg_6.25.sce
9f40663bfb8b4098e8b1ec831efa190d5b0b9a2f
[]
no_license
arvindrachna/Introduction_to_Scilab
955b2063b3faa33a855d18ac41ed7e0e3ab6bd1f
9ca5d6be99e0536ba1c08a7a1bf4ba64620ec140
refs/heads/master
2020-03-15T19:26:52.964755
2018-05-31T04:49:57
2018-05-31T04:49:57
132,308,878
1
0
null
null
null
null
UTF-8
Scilab
false
false
436
sce
Ch_6_Eg_6.25.sce
// A function to calculate the distance between two points. function [dist]=calc_dist(x1, y1, x2, y2) dist=sqrt((abs(x2-x1))^2 +(abs(y2-y1))^2); endfunction // A function to calculate the area of a triangle function [a]=calc_area(b, h); a=.5*b*h endfunction // Main program d=calc_dist(-5,-4,-6,4); disp(d," is the distance between two points"); a1=calc_area(6,4); disp(sprintf("Area of a triangle is %f",a1));
dd7c8a4327794beb4b77f9e11a3ea63abaa8a420
449d555969bfd7befe906877abab098c6e63a0e8
/1619/CH5/EX5.3.5/Example5_3_5.sce
4ee54f5597c327ecb20abd9c3fd36a594f057d40
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
435
sce
Example5_3_5.sce
//Example 5.3.5 page 5.10 clc; clear; optical_power=-10; receiver_sensitivity=-41; total_margin= optical_power-receiver_sensitivity; cable_loss= 7*2.6; splice_loss= 6*0.5; connector_loss= 1*1.5; safety_margin= 6; total_loss= cable_loss+splice_loss+connector_loss+safety_margin; excess_power_margin= total_margin-total_loss; printf("The system is viable and provides %.1f dB excess power margin.",excess_power_margin);
f8ef778808743062e0f6b4fce7e59b2147596b5a
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.4/macros/metanet/is_connex.sci
63b39c42cf993991f38113f2eefa9960a0a9fb68
[ "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
538
sci
is_connex.sci
function res=is_connex(g) // Copyright INRIA [lhs,rhs]=argn(0) if rhs<>1 then error(39), end // check g check_graph(g) // compute lp, la and ls ma=prod(size(g('tail'))) n=g('node_number') if g('directed') == 1 then // if the graph is directed, get the corresponding undirected one [lp,la,ls]=m6ta2lpd(.. [matrix(g('tail'),1,ma),matrix(g('head'),1,ma)],.. [matrix(g('head'),1,ma),matrix(g('tail'),1,ma)],.. n+1,n) else [lp,la,ls]=m6ta2lpu(g('tail'),g('head'),n+1,n,2*ma) end // is g connex res=m6tconex(la,lp,ls,n)
f30f95585be1834f15999b9edb8afeac346c274e
449d555969bfd7befe906877abab098c6e63a0e8
/3640/CH3/EX3.6/Ex3_6.sce
e3da8ff85dba8612a3a6fb75875f5cd3e6144ce7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex3_6.sce
clc //extension of Ex3_1 //uses a userdefined 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=10 V2=1000 r2=1 X11=20 //in ohm x1=0.05 //in ohm X22=2000 //in ohm x2=5 //in ohm Xm1=X11-x1 Xm2=X22-x2 X12=sqrt(Xm1*Xm2) V12=V2+I2*(r2+(%i*(X22-X12)))//ans may vary due to roundof error disp('V12='+complexstring(V12)+'V') I1=I2+(V12/(%i*X12))//ans may vary due to roundof error disp('I1='+complexstring(I1)+'A') r1=0.01 V1=V12+(I1*(r1+(%i*(X11-X12))))//ans may vary due to roundof error disp('V1='+complexstring(V1)+'V') a=0.1 Zeq1=r1+(a*a*r2)+(%i*(x1+(a*a*x2)))//ans may vary due to roundof error disp('Zeq1='+complexstring(Zeq1)+'Ω') V1=(a*V2)+(I2^Zeq1/a)//ans may vary due to roundof error disp('V1='+complexstring(V1)+'V')
4f798cbf1de72ca2cb911779a7531d6fa6c1e74e
449d555969bfd7befe906877abab098c6e63a0e8
/839/CH18/EX18.1/Example_18_1.sce
9a438281ada684e76bfbf763db0a25f47686a581
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
546
sce
Example_18_1.sce
//clear// clear; clc; //Example 18.1 //Given xF = 0.50; P = 1; //[atm] f =0.0001:0.2:1.2; A = -(1./f-1); x = [0.01:0.01:1]; for i =1:length(f) y(i,:) =-A(i)*x+xF/f(i) end //From Fig. 18.2 xB = [0.50,0.455,0.41,0.365,0.325,0.29]; yD = [0.71,0.67,0.63,0.585,0.54,0.5]; //From Fig 18.3 T = [92.2,93.7,95.0,96.5,97.7,99]; plot(f,T./100,f,xB,f,yD) xlabel('f-moles vaporized per mole of feed') ylabel('Concentration, mole fraction Benzene') legend('Temperature(C)*100','Con. of Bnzene in liquid','Con. of Bnzene in vapor')
8cf15cde1e60f2773c10d988b155bac8ccedce64
6e257f133dd8984b578f3c9fd3f269eabc0750be
/ScilabFromTheoryToPractice/Computing/testuint8.sce
b1507a200ae0a8612caadcee16059efef5815298
[]
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
175
sce
testuint8.sce
2^4+2^7 // =144 uint8(2^4+2^7) // =144 uint8(2^4+2^7)+uint8(2^4+2^7) // 144+144=32+256 int8(2^4+2^7) //=144-256 int8(2^4+2^7)+int8(2^4+2^7) // =-112-112+256
8e919e2d136099e935ea5ca94e6ad41836bd1961
449d555969bfd7befe906877abab098c6e63a0e8
/1946/CH2/EX2.11.a/Ex_2_11_a.sce
b6690bcd8508dfe4ad47a0e3222251b2aa20a09a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
202
sce
Ex_2_11_a.sce
// Example 2.11.a;Critical Angle clc; clear; close; n1=1.50;//Waveguide Refractive Index n2=1.47;//Cladding Refractive Index Oc=asind(n2/n1);//Critical Angle disp(Oc,"CRITICAL ANGLE IN DEGREE")
86f978aeed1da6054b30dd7690443f657582fb01
9b60b7963181dd94c8d10cdb75a83bc010957e71
/taf_monitor_code/taf_monitor/tests/acceptance/11-military_cloud_height_thresholds.tst
1abe5c0fc7ff5ccc2ca502543138ec2de205512c
[]
no_license
alanyon/python
577773100eac269750925c1f924edc51060ca865
cbfe0f34fe61ed0495572fa05ea6bf4293ef15bb
refs/heads/master
2023-07-13T17:27:59.555648
2021-08-09T15:59:08
2021-08-09T15:59:08
393,341,633
0
0
null
null
null
null
UTF-8
Scilab
false
false
3,241
tst
11-military_cloud_height_thresholds.tst
{ "EGWC 150800Z 1509/1518 18005KT 9999 BKN040 TEMPO 1510/1511 BKN020 TEMPO 1511/1512 BKN010 TEMPO 1512/1513 BKN006 TEMPO 1513/1514 BKN004 TEMPO 1514/1515 BKN002 TEMPO 1515/1516 BKN001": { "TAF base conditions cover METAR - cloud BKN040": { "metar": "EGWC 150850Z 18005KT 9999 BKN040", "test time": "20200615T0900Z", "expected": "" }, "TAF base conditions do not cover METAR - cloud BKN020": { "metar": "EGWC 150850Z 18005KT 9999 BKN020", "test time": "20200615T0900Z", "expected": "EGWC TAF bust by cloud" }, "TAF base conditions cover METAR - cloud BKN020": { "metar": "EGWC 150950Z 18005KT 9999 BKN020", "test time": "20200615T1000Z", "expected": "" }, "TAF base conditions do not cover METAR - cloud BKN010": { "metar": "EGWC 150950Z 18005KT 9999 BKN010", "test time": "20200615T1000Z", "expected": "EGWC TAF bust by cloud" }, "TAF base conditions cover METAR - cloud BKN010": { "metar": "EGWC 151050Z 18005KT 9999 BKN010", "test time": "20200615T1100Z", "expected": "" }, "TAF base conditions do not cover METAR - cloud BKN006": { "metar": "EGWC 151050Z 18005KT 9999 BKN006", "test time": "20200615T1100Z", "expected": "EGWC TAF bust by cloud" }, "TAF base conditions cover METAR - cloud BKN006": { "metar": "EGWC 151150Z 18005KT 9999 BKN006", "test time": "20200615T1200Z", "expected": "" }, "TAF base conditions do not cover METAR - cloud BKN004": { "metar": "EGWC 151150Z 18005KT 9999 BKN004", "test time": "20200615T1200Z", "expected": "EGWC TAF bust by cloud" }, "TAF base conditions cover METAR - cloud BKN004": { "metar": "EGWC 151250Z 18005KT 9999 BKN004", "test time": "20200615T1300Z", "expected": "" }, "TAF base conditions do not cover METAR - cloud BKN002": { "metar": "EGWC 151250Z 18005KT 9999 BKN002", "test time": "20200615T1300Z", "expected": "EGWC TAF bust by cloud" }, "TAF base conditions cover METAR - cloud BKN002": { "metar": "EGWC 151350Z 18005KT 9999 BKN002", "test time": "20200615T1400Z", "expected": "" }, "TAF base conditions do not cover METAR - cloud BKN001": { "metar": "EGWC 151350Z 18005KT 9999 BKN001", "test time": "20200615T1400Z", "expected": "EGWC TAF bust by cloud" }, "TAF base conditions cover METAR - cloud BKN001": { "metar": "EGWC 151450Z 18005KT 9999 BKN001", "test time": "20200615T1500Z", "expected": "" } }, "description": "A contrived test with 1 hour tempo groups descending the military cloud height thresholds. Each cloud height is tested twice, once in the hour preceding the tempo group it requires, making the TAF invalid, and once during the hour of the tempo group making the TAF valid." }
db44babe624e617a1958ee0431ae07a3c2e4469e
449d555969bfd7befe906877abab098c6e63a0e8
/67/CH1/EX1.18.a/example118a.sce
3c487489acbc0d76cb77882972185b68c0d224cd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
276
sce
example118a.sce
//Example 1.18a clc; t0=1; T=10; for t=1:T x(t)=2*%pi*t/T; y(t)=sin(x(t)); end inputshift=sin(x(T-t0)); outputshift=y(T-t0); if(inputshift==outputshift) disp('THE GIVEN SYSTEM IS TIME INVARIANT') else disp('THE GIVEN SYSTEM IS TIME VARIANT'); end
2ea64eb5cb7d3e7f30e6675816d3aa3cea5017a6
449d555969bfd7befe906877abab098c6e63a0e8
/3760/CH4/EX4.17/Ex4_17.sce
d49dae65ccdba8987a03312374123451c6677de7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
781
sce
Ex4_17.sce
clc; // table is given in question for plotting magnetising curve if1=[ 0 0.2 0.4 0.6 1 1.4 1.8 2 ]; Ea=[ 6 40 80 120 194 246 269 274]; plot(if1,Ea); xlabel('If'); ylabel('Ea'); title('magnetising curve') v=230; // rated voltage of generator p=10000; // rated power of generator n=1500; // rated speed of generator rf=184; // shunt field resistance ra=0.443; // armature resistance ifl=1.7; // rated field current il=p/v; // full load current printf('Total armature current is %f A\n',il+ifl); printf('Armature resistance drop is %f ohms\n',(il+ifl)*ra); disp('In fig 4.17(textbook),AB is made equal to armature resistance drop then through B a horizontal line is made meeting curve at c'); disp('Demagnetising effect is given by BC which is equal to 0.25 A');
6551a0c59e49cca3e10db7481bafd2cdf3ae0d99
449d555969bfd7befe906877abab098c6e63a0e8
/2744/CH8/EX8.8/Ex8_8.sce
1b30c86f51bbf8397a0b767bbfb59d8102ef5971
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
305
sce
Ex8_8.sce
clear; clc; h = 120;// feet d = 5;// feet h1 = 49;// feet p = 42;// lb. per square foot c = 0.6; //p = k*sqrt(x) k = p/sqrt(h1); M = integrate('18*x^(3/2)','x',0,120); printf('Bending moment at the foot of the chimney is, M = %d lb-ft',M); //there is an error in the answer given in text book
cc2a102110390e0239cc3d9782a1d53989b97fbb
01ecab2f6eeeff384acae2c4861aa9ad1b3f6861
/prog_assembly/libs/scilab_code/characterization/char_gateDAC/data_gateDAC_chip11_ivdd60V.sce
146c18004b430bd9051f45a4812e48bd96eaefb2
[]
no_license
jhasler/rasp30
9a7c2431d56c879a18b50c2d43e487d413ceccb0
3612de44eaa10babd7298d2e0a7cddf4a4b761f6
refs/heads/master
2023-05-25T08:21:31.003675
2023-05-11T16:19:59
2023-05-11T16:19:59
62,917,238
3
3
null
null
null
null
UTF-8
Scilab
false
false
581
sce
data_gateDAC_chip11_ivdd60V.sce
//hex Voltage(V) gate_dac_ivdd60V_m=[ hex2dec('00') 1.723515; hex2dec('10') 1.9572763; hex2dec('20') 2.1740012; hex2dec('30') 2.3736837; hex2dec('40') 2.5257375; hex2dec('50') 2.7175537; hex2dec('60') 2.8975775; hex2dec('70') 3.1020637; hex2dec('80') 3.1732837; hex2dec('90') 3.382145; hex2dec('A0') 3.4548361; hex2dec('B0') 3.7666513; hex2dec('C0') 3.9733238; hex2dec('D0') 4.14155; hex2dec('E0') 4.293165; hex2dec('F2') 4.460515; hex2dec('F4') 4.47712; hex2dec('F6') 4.493285; hex2dec('F8') 4.512075; hex2dec('FA') 4.5299875; hex2dec('FC') 4.5509613; hex2dec('FE') 4.5671263; ];
d8bdb416610cc11f95c233fc123d936fe3e15b91
23573b967e8324d44226379d70559b8f0ea34905
/code/fminsearch/FletcherPowell.sce
b3b4971dd07814cb3693dd91e8c2284568f08470
[]
no_license
FOSSEE/FOT_Examples
91c8b8e9dc58545604b2c2af41a7e22f702b78f3
75947a7aa5a3955fe5a72e09f55bbdc05e3b8751
refs/heads/master
2020-03-22T09:00:48.306061
2018-07-24T04:49:25
2018-07-24T04:49:25
139,807,736
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,732
sce
FletcherPowell.sce
// This is an example for unconstraint nonlinear problems. // Ref:R.fletcher and M.J.D Powell, A Rapidly Convergent Descent Method for Minimization Algorithms, Computer journal, Vol. 6, pp. 163-168, 1963 //Example: //f(x1,x2,x3) = 100*((x3 - 10*theta(x1,x2))^2 + (sqrt(x1^2 + x1^2) - 1)^2) + x3^2 //theta(x1,x2) = (atan(x(2)/x(1)))/(2*%pi) if x(1)>0 // = %pi + atan(x(2)/x(1)) if x(1)<0 //====================================================================== // Copyright (C) 2018 - IIT Bombay - FOSSEE // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt // Author:Debasis Maharana // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in //====================================================================== clc; clc;clear;close function y = FletcherPowell(x) if (x(1)>0) theta_x1x2 = (atan(x(2)/x(1)))/(2*%pi); elseif (x(1)<0) theta_x1x2 = %pi + atan(x(2)/x(1)); end y = 100*( (x(3) - 10*theta_x1x2 ).^2 + (sqrt(x(1)^2 + x(2)^2) - 1)^2) + x(3)^2; endfunction X0 = [-1 0 0]; MFes = 500; Miter = 200; TF = 1D-10; TX = 1D-10; mprintf('The following settings are used\n Maximum iterations %d \n maximum functional exaluations %d\n Function tolerance %s \n variable tolerance %s ',Miter,MFes,string(TF),string(TX)); input('Press enter to proceed ') clc; mprintf('Scilab is solving the problem...') options = optimset ("MaxFunEvals",MFes,"MaxIter",Miter,"PlotFcns",optimplotfval,"TolFun",TF,"TolX",TX); [x,fval,exitflag,output] = fminsearch(FletcherPowell,X0,options) clc select exitflag case -1 disp(output.algorithm, 'Algorithm used') mprintf('\n The maximum number of iterations has been reached \n') mprintf('\n The number of iterations %d ',output.iterations) mprintf('\n The number of function evaluations %d',output.funcCount) case 0 disp(output.algorithm, 'Algorithm used ') mprintf('\n The maximum number of function evaluations has been reached \n') mprintf('\n The number of function evaluations %d',output.funcCount) mprintf('\n The number of iterations %d ',output.iterations) case 1 disp(output.algorithm, 'Algorithm used ') mprintf('\n The tolerance on the simplex size and function value delta has been reached\n') mprintf('\n The number of function evaluations %d',output.funcCount) mprintf('\n The number of iterations %d ',output.iterations) end disp(x,"The optimal solution is") mprintf("\n The optimum value of the function is %s",string(fval))
b3240d9f9ee83a608b42d017e9bfb0e771fab867
9d0b35317cf9c6572724be7e2da4949f71a200bc
/Interpolación newton diferencias divididas.sce
b57f9749d68b4568f77d775fa4cd1c1564d45245
[]
no_license
stephany-rivera/Metodos-numericos
ef225f7b8f134c673a245a400454e14f01b0a71d
17961c6a2b5cffea57e5a7f4f4d3d2abc336b9cf
refs/heads/master
2022-12-18T16:34:39.143127
2020-09-27T05:27:57
2020-09-27T05:27:57
298,887,971
0
0
null
null
null
null
UTF-8
Scilab
false
false
12,129
sce
Interpolación newton diferencias divididas.sce
// This GUI file is generated by guibuilder version 4.2.1 ////////// f=figure('figure_position',[180,17],'figure_size',[800,700],'auto_resize','on','background',[33],'figure_name','Graphic window number %d','dockable','off','infobar_visible','off','toolbar_visible','off','menubar_visible','off','default_axes','on','visible','off'); ////////// handles.dummy = 0; handles.txt_titulo=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Times new Roman','FontSize',[25],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0212658,0.9412121,0.94,0.0515152],'Relief','default','SliderStep',[0.01,0.1],'String','Polinomio interpolante Newton: Diferencias divididas','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','txt_titulo','Callback','') handles.txt_x=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Times new roman','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0437131,0.8590909,0.1360759,0.0424242],'Relief','default','SliderStep',[0.01,0.1],'String','Puntos X:','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','txt_x','Callback','') handles.txt_y=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Times new roman','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0437131,0.8025252,0.1360759,0.0424242],'Relief','default','SliderStep',[0.01,0.1],'String','Puntos Y:','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','txt_y','Callback','') handles.txt_valor_interpolar=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Times new roman','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0437131,0.7459596,0.1360759,0.0424242],'Relief','default','SliderStep',[0.01,0.1],'String','Valor a interpolar:','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','txt_valor_interpolar','Callback','') handles.input_x=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.1940506,0.8566667,0.2267932,0.0493939],'Relief','default','SliderStep',[0.01,0.1],'String','','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','input_x','Callback','') handles.input_y=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.1940506,0.8021212,0.2267932,0.0493939],'Relief','default','SliderStep',[0.01,0.1],'String','','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','input_y','Callback','') handles.input_interpolar=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Tahoma','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','left','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.1940506,0.7475758,0.2267932,0.0493939],'Relief','default','SliderStep',[0.01,0.1],'String','','Style','edit','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','input_interpolar','Callback','') handles.button=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Times new roman','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.4483122,0.7821212,0.1751055,0.0787879],'Relief','default','SliderStep',[0.01,0.1],'String','Solucionar','Style','pushbutton','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','button','Callback','button_callback(handles)') handles.borde= newaxes();handles.borde.margins = [ 0 0 0 0];handles.borde.axes_bounds = [0.0258228,0.0860606,0.6329114,0.1893939]; handles.txt_nombre=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Times new roman','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.7484389,0.8560606,0.17827,0.0454545],'Relief','default','SliderStep',[0.01,0.1],'String','Stephany Rivera','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','txt_nombre','Callback','') handles.txt_codigo=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Times new roman','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.7516034,0.8060606,0.1719409,0.0454545],'Relief','default','SliderStep',[0.01,0.1],'String','1765591-3743','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','txt_codigo','Callback','') handles.txt_proyecto=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Times new roman','FontSize',[14],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.7315612,0.7560606,0.2120253,0.0454545],'Relief','default','SliderStep',[0.01,0.1],'String','Proyecto Métodos Númericos','Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','txt_proyecto','Callback','') handles.borde3= newaxes();handles.borde3.margins = [ 0 0 0 0];handles.borde3.axes_bounds = [0.6877637,0.0854545,0.2795359,0.1912121]; handles.borde4= newaxes();handles.borde4.margins = [ 0 0 0 0];handles.borde4.axes_bounds = [0.0242616,0.2954545,0.9420253,0.6633333]; f.visible = "on"; ////////// // Callbacks are defined as below. Please do not delete the comments as it will be used in coming version ////////// function button_callback(handles) diferencias_divididas(); endfunction function diferencias_divididas() /* x=1 2 3 4 Y=1 3 6 10 interpolas=1.5 */ x=evstr(handles.input_x.string); y=evstr(handles.input_y.string); n_puntos=length(x); ////////Hallar coeficientes function coef_newton= coeficientesNewton(x,y) n_puntos=length(x); Tabla=zeros (n_puntos, n_puntos); Tabla(:,1)=y; for j=2:n_puntos for i=1:(n_puntos-j+1) Tabla(i,j)=(Tabla(i+1,j-1)-Tabla(i,j-1))/(x(j+i-1)-x(i)) end end coef_newton=Tabla(1,:); endfunction coef_newton=coeficientesNewton(x,y); ////////Hallar polinomio y evaluar////////////////////////// function y= polinomio(A,x,coef_newton,evaluar) y=coef_newton(1); for i=2:length(coef_newton) producto=coef_newton(i); for j=1:i-1 producto= producto*(A-x(j)) end y=y+producto if(evaluar==0) varn(y) end end endfunction /////////Graficar tabla///////////////////////// Tabla=zeros(n_puntos,n_puntos); Tabla(:,1)=y; for j=2:n_puntos for i=1:(n_puntos-j+1) Tabla(i,j)=(Tabla(i+1,j-1)-Tabla(i,j-1))/(x(j+i-1)-x(i)) end end titulos=["n" "xk" "p(xk)"]; for i=1:n_puntos-1 vlr=strcat(["Grado ",string(i)]); titulos=[titulos vlr]; end params = titulos; c1=[]; c2=[]; for i=1:n_puntos c1 = [c1;string(i)];//Columna 1 c2 = [c2;string(x(i))];//Columna 2 end a=1; b=n_puntos; vec=[ c1 c2 ]; for p=1:n_puntos vec=[vec string(Tabla(a:b))] a=b+1; b=b+n_puntos; end table = [params; vec] ut = uicontrol("style", "table",.. "string", table,.. "position", [90 130 630 250],.. "backgroundcolor", [1,1,1], ... "tag", "myTable"); ///////////////////Resultados obtenidos de las tablas /////////////////////////coeficientes coeficientes_resu=coeficientesNewton(x,y); coe_resultado=' '; for z=1:n_puntos coe_resultado=strcat([coe_resultado,string(coeficientes_resu(z)),'-']) end ///////////////////////////////// ////////////valor interpolado A=evstr(handles.input_interpolar.string); j=1 interpolado=polinomio(A,x,coef_newton,j) ////////////////////////////// grafica graficas = scf(2); graficas.figure_position = [660,0] graficas.axes_size = [555 515]; graficas.figure_name = "Diferencias Divididas"; function y = polyval(p, x) y = 0*x; p = mtlb_fliplr(p); for ix = 1 : length(p) y = y + p(ix) * x.^(ix-1); end endfunction A=poly(0,'x'); j=1 xp=linspace(min(x)-1,max(x)+1,50); yp=[]; for k=1:length(xp) yp(k)=polinomio(xp(k),x,coef_newton,j) end plot(xp,yp) interpolar=evstr(handles.input_interpolar.string); plot(interpolar,interpolado,'*') xgrid(5); plot(x,y,'o') A=poly(0,'x'); j=0 ecuacion_resu=polinomio(A,x,coef_newton,j) disp("////////////Ecuación////////") disp(ecuacion_resu); disp("////////////////////////////") handles.txt_Resu=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Times new roman','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.0664557,0.6,0.2732068,0.0409091],'Relief','default','SliderStep',[0.01,0.1],'String', strcat(["Coeficientes: ",string(coe_resultado)]),'Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','txt_Resu','Callback','') handles.txt_Resu1=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Times new roman','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.3560126,0.6,0.2732068,0.0409091],'Relief','default','SliderStep',[0.01,0.1],'String',strcat(["Ecuación: -ver consola-"]),'Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','txt_Resu1','Callback','') handles.txt_Resu2=uicontrol(f,'unit','normalized','BackgroundColor',[-1,-1,-1],'Enable','on','FontAngle','normal','FontName','Times new roman','FontSize',[12],'FontUnits','points','FontWeight','normal','ForegroundColor',[-1,-1,-1],'HorizontalAlignment','center','ListboxTop',[],'Max',[1],'Min',[0],'Position',[0.6455696,0.6,0.2732068,0.0409091],'Relief','default','SliderStep',[0.01,0.1],'String',strcat(["Solución valor interpolado: ",string(interpolado)]),'Style','text','Value',[0],'VerticalAlignment','middle','Visible','on','Tag','txt_Resu2','Callback','') endfunction /* x=[0 1 2 3 4 5 6 7]'; y=[0 25 34 72 115 92 71 65]'; coef_newton=coeficientesNewton(x,y) */
f6b1d8cedd2dcbfc2ed54650857a6f4387167b5b
449d555969bfd7befe906877abab098c6e63a0e8
/2063/CH1/EX1.36/1_36.sce
aed0e22295aaa1c80516c31eb585f084cb480e5b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,406
sce
1_36.sce
clc clear //Input data P1=1.5;//Pressure at the inlet of the low pressure compressor in bar T1=300;//Temperature at the inlet of the low pressure compressor in K P5=9;//Maximum pressure in bar T5=1000;//Maximum temperature in K P=400;//Net power developed by the turbine in kW Cp=1.0;//Specific heat of air at constant pressure in kJ/kg K r=1.4;//Ratio of specific heat //Calculations P8=P1;//For perfect intercooling and perfect reheating in bar P4=P5;//For perfect intercooling and perfect reheating in bar P2=(P1*P4)^0.5;//Pressure at the end of Isentropic compression in LP compressor in bar P6=P2;//Pressure at the end of process 5-6 in bar T2=T1*(P2/P1)^((r-1)/r);//Temperature at the end of isentropic compression in K T3=T1;//For perfect intercooling in K T4=T2;//For perfect intercooling in K T6=T5/(P5/P6)^((r-1)/r);//Temperature at the end of process 5-6 in K T7=T5;//Temperature in K T8=T6;//Temperature in K Wt=Cp*((T5-T6)+(T7-T8));//Work done by the turbine in kg/s Wc=Cp*((T2-T1)+(T4-T3));//Work absorbed by the compressor in kJ/s Wn=Wt-Wc;//Net work output in kJ/s m=P/Wn;//Mass of fluid flow per second in kg/s qs=m*Cp*((T5-T4)+(T7-T6));//Heat supplied from the external source in kJ/s //Output printf('(a)Mass of fluid to be circulated in the turbine is %3.3f kg/s\n (b)The amount of heat supplied per second from the external source is %3.1f kJ/s',m,qs)
ea5cdce4616c606166a4f914e15643e0fc2e05b7
449d555969bfd7befe906877abab098c6e63a0e8
/2855/CH12/EX12.7/Ex12_7.sce
440b372661e1faca45a92dcc77a42bd92649361f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
241
sce
Ex12_7.sce
//Chapter 12 //page no 442 //given clc; clear all; fb=2.5; //in Gb/s Lmax=50; //in km dL=0.4; //in nm D=1/fb/10^9/dL/10^-9/Lmax/10^-12*10^-9; printf("\n Maximum allowable dispersion,D = %0.0f ps/nm-km",D);
a92f6bc9aa92a0d012ed1ea9c383dbef98dcaa37
449d555969bfd7befe906877abab098c6e63a0e8
/3269/CH4/EX4.4/Ex4_4.sce
55223945705a203a362979ea686a3c04ee550bb3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,115
sce
Ex4_4.sce
// Example 4.4 clear all; clc; // Given data ratpower = 1075; // Output rated electrical power in MWe of the reactor delpower_yr = 255000; // Net output power delivered in one year in terms of MWd time_refuel = 28; // Number of days the plant was shutdown for refuelling time_repairs = 45; // Number of days the plant was shutdown for repairs time_convrepairs = 18; // Number of days the plant was shutdown for conventional repairs // 1. // 1 year = 365 days ratpower_yr = ratpower*365; // Net output rated power in one year in terms of MWd // Calculation cap_factor = delpower_yr/ratpower_yr; // Result printf(" \n Plant capacity factor = %d percent\n",ceil(cap_factor*100)); // 2. // Number of days the plant was shutdown in one year total_shutdown = time_refuel+time_repairs+time_convrepairs; // Number of days the plant was operable in one year total_operation = 365-total_shutdown; // Calculation ava_factor = total_operation/365; // Result printf(" \n Plant availability factor = %d percent\n",ava_factor*100);
a6f0a39b8a429e2c483dc9912b42d18f344ee8ea
449d555969bfd7befe906877abab098c6e63a0e8
/3802/CH1/EX1.6/Ex1_6.sce
b1eb7ae8c0f4b337e27ca1ea0c4190922a486fba
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
791
sce
Ex1_6.sce
//Book Name:Fundamentals of Electrical Engineering //Author:Rajendra Prasad //Publisher: PHI Learning Private Limited //Edition:Third ,2014 //Ex1_6.sce. clc; clear; t=[0:0.0001:4]; x=length(t); p=ones(1,x); for n=1:x; if t(n)<=2 v(n)=3; i(n)=10; p(n)=v(n)*t(n)*i(n); else if t(n)>2 v(n)=12; i(n)=-5; p(n)=(v(n)-(3*t(n)))*i(n); else p(n)=0; end end end xlabel("Time in seconds") ylabel("Power in watts") title("Power waveform") plot(t,p) //Case(b) printf("\n (b)") area_OAB=(1/2)*max(p)*max(t)/2; area_BCD=(1/2)*abs(min(p))*max(t)/2; energy=area_OAB-area_BCD; avg_power=energy/max(t); printf("\n The average power=%1.1f W \n",avg_power)
0eb41566173e1d438ec8f90784abc0c87ac8a7d2
449d555969bfd7befe906877abab098c6e63a0e8
/2528/CH1/EX1.7/Ex1_7.sce
11246f2c5356d6bbaa3468308aae8e32202fc1f1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
194
sce
Ex1_7.sce
// Chapter 1 //Power vin dBW //page 17 //Example no 1-7 //Given clc; P=120; //in Watt P1=10*log10(P); printf("\n The ordinary power gain %.1f dBW \n",P1); //Result
d2a0d0b495b930964c078d7a46a90cd164ff151d
449d555969bfd7befe906877abab098c6e63a0e8
/752/CH4/EX4.19.1/4_19_1.sce
1568843466950a3bda45e492b06096bc9ad653aa
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
456
sce
4_19_1.sce
clc; // page no 146 // prob no 4_19_1 //An avalanche diode source is given with excess noise ratio is 14 dB enr=14; To=290;//Room temp in K y=9;//Y-factor is 9 dB //converting dB in power ratio ENR=10^(enr/10); Y=10^(y/10); //From def of ENR the hot temp is Th=To*(ENR+1); disp('K',Th,'The value of hot temp Th is '); //Determination of equivalent noise temp Te=(Th-(Y*To))/(Y-1); disp('K',Te,'The value of equivalent noise temp Te is ');
896bcd1c4ad90875c3fbf330667b33806e76037d
449d555969bfd7befe906877abab098c6e63a0e8
/1529/CH12/EX12.2/12_02.sce
a68f92a2876bc045dbe22d624ca88256ce8e4078
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
248
sce
12_02.sce
//Chapter 12, Problem 2 clc; Ic=100*10^-3; //emitter current Ie=102*10^-3; //collector current Ib=Ie-Ic; //calculating base current printf("Value of base current Ib = %d mA",Ib*1000);
78c409ece93f0faa808b0d0671cd82b5ecf02c59
449d555969bfd7befe906877abab098c6e63a0e8
/876/CH2/EX2.16/Ex2_16.sce
1932eb4126c48f3ec9ce2e4093572b6e8c579142
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
674
sce
Ex2_16.sce
//caption:Find(a)arithmetic mean(b)deviation of each value(c)algebric sum of deviation(d)average deviation(e)standard deviation //Ex2.16 clc clear close x1=10//first reading x2=11//second reading x3=9//third reading x4=10.5//fourth reading x5=9.5//fifth reading n=5//number of reading x=(x1+x2+x3+x4+x5)/n disp(x,'(a)arithmetic mean=') d1=x1-x d2=x2-x d3=x3-x d4=x4-x d5=x5-x disp(d5,d4,d3,d2,d1,'(b)value of deviation=') d=d1+d2+d3+d4+d5 disp(d,'(c)algebric sum of deviation=') D=((d1)+(d2)+(-d3)+(d4)+(-d5))/n//taking mod of deviation value disp(D,'(d)average deviation=') S=((d1^2+d2^2+d3^2+d4^2+d5^2)/(n-1))^(0.5) disp(S,'(e)standard deviation=')
bc8b01b01182f01541e2ca5d4149b611e6e83402
449d555969bfd7befe906877abab098c6e63a0e8
/1553/CH11/EX11.2/11Ex2.sce
5aa2e6ab1c9c27a557b9d177d936757d7fe8f957
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
141
sce
11Ex2.sce
//Ex 2 clc; clear; close; cp=490; sp=465.50; loss=cp-sp; lossPercent=(loss/cp)*100; printf("The loss is %d percent",lossPercent);
b49c29d4c00c0e8a622233ea4562e308537d27d9
e1527120156f72705816c6f6071227e65c579308
/kernel/gradients.sci
ce9ff38677a1e182aa8f8d916841f9fd8672c309
[]
no_license
bhuepping/scilab_collaborative_filtering
583e0a7b01ca9d53fe0e5f9346947bccd03b9229
39966976b862196c836e7d04bca26ebe27e25632
refs/heads/master
2021-01-22T12:13:02.121309
2012-05-31T21:41:08
2012-05-31T21:41:08
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,330
sci
gradients.sci
function [user_gradient,item_gradient] = gradients(ratings,users,items,lambda) nf = size(users,1); nu = size(users,2); ni = size(items,2); nr = size(ratings,1); // regularization part of the gradients: user_gradient = 2*lambda*users; item_gradient = 2*lambda*items; // for each user: // (this can certainly be optimized for speed, its now optimized for programming convenience) for u = 1:nu user_u_ratings = ratings(ratings(:,1)==u,:); user_u_update = zeros(nf,1); for i = 1:size(user_u_ratings,1) // add the sum -2*r_ui*q_i: item_ui = items(:,user_u_ratings(i,2)); user_u_update = user_u_update - 2 * user_u_ratings(i,3)*item_ui; // add the sum +q_i*q_i^T*p_u: user_u_update = user_u_update + 2 * item_ui*(item_ui'*users(:,u)); end user_gradient(:,u) = user_gradient(:,u) + user_u_update; end for i = 1:ni item_i_ratings = ratings(ratings(:,2)==i,:); item_i_update = zeros(nf,1); for u = 1:size(item_i_ratings,1) // add the sum -2*r_ui*p_i: user_ui = users(:,item_i_ratings(u,1)); item_i_update = item_i_update - 2 * item_i_ratings(u,3)*user_ui; // add the sum p_u*p_u^T*q_i: item_i_update = item_i_update + 2 * user_ui*(user_ui'*items(:,i)); end item_gradient(:,i) = item_gradient(:,i) + item_i_update; end endfunction
21a130c8d76960981be1091d44b08701e77c7480
449d555969bfd7befe906877abab098c6e63a0e8
/32/CH13/EX13.02/13_02.sce
41d091396267a29ff1b8267fc84ecbac9d14459e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
569
sce
13_02.sce
//pathname=get_absolute_file_path('13.02.sce') //filename=pathname+filesep()+'13.02-data.sci' //exec(filename) //Steam entering at pressure(in bar): p1=10 //Pressure at which steam leaves(in bar): p2=6 //Cross-section area of exit of nozzle(in cm^2): A2=20 //From steam tables: h1=3478.5 //kJ/kg s1=7.7622 //kJ/kg.K s2=s1 T2=418.45 //C(by interpolation) h2=3309.51 //kJ/kg v2=0.5281 //m^3/kg //Velocity at exit(in m/s): C2=sqrt(2*(h1-h2)*10^3) //Mass flow rate(in kg/s): m=A2*10^(-4)*C2/v2 printf("\nRESULT\n") printf("\nMass flow rate= %f kg/s",m)
d07514b49d1010c5b1bb48cb10cde02ad4740773
9c54bbe2cf25166ee1e39824b798850f5133ba4a
/features/dftmpfun.tst
7b62e2b1601736bd5da126bbb73ea70fe039e807
[]
no_license
johanlindberg/clips
a9d00aaa0295c21bd1b182856867d8433a979822
c23c558819ebf54651b241c7acade5c433e0c781
refs/heads/master
2021-01-19T12:08:55.993518
2013-07-07T11:37:57
2013-07-07T11:37:57
11,181,538
1
0
null
null
null
null
UTF-8
Scilab
false
false
299
tst
dftmpfun.tst
(unwatch all) (clear) (setgen 1) (dribble-on "dftmpfun.out") (batch "dftmpfun.bat") (dribble-off) (clear) (open "dftmpfun.rsl" dftmpfun "w") (load "compline.clp") (printout dftmpfun "dftmpfun.bat differences are as follows:" crlf) (compare-files dftmpfun.exp dftmpfun.out dftmpfun) (close dftmpfun)
5729385ace5aa5e5023b658be05f47ae48da8648
449d555969bfd7befe906877abab098c6e63a0e8
/1358/CH4/EX4.2/Example42.sce
5fd4b897db6a59974e9d8c7c8ff6516bc825b637
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
996
sce
Example42.sce
// Display mode mode(0); // Display warning for floating point exception ieee(1); clear; clc; disp("Turbomachinery Design and Theory,Rama S. R. Gorla and Aijaz A. Khan, Chapter 4, Example 2") disp("Slip factor: sigma = Cw2/U2") U2 = 370; sigma = 0.9; Cw2 = sigma * U2 disp("The absolute velocity at the impeller exit:") Cr2 = 35; //m/s C2 = (Cr2^2+Cw2^2)^0.5 disp("The mass flow rate of air: m = rho2 *A2*Cr2") rho2 = 1.57;//kg/m3 A2 = 0.18;//m2 m = rho2*A2*Cr2 disp("The temperature equivalent of work done (neglecting c):") disp("Therefore, T02 - T01 =sigma*U2^2/Cp") T01 = 290; Cp = 1005; T02 = T01 + sigma*U2^2/Cp disp("The static temperature at the impeller exit, ") T2 = T02 - C2^2/(2*Cp) disp("The Mach number at the impeller tip:") gamma = 1.4; R = 287;// M2 = C2 / (gamma *R*T2)^0.5 disp("The overall pressure ratio of the compressor (neglecting psi): P03/P01") etac = 0.88;//efficiency psi = 1;//neglected ratio = (1+etac*sigma*psi*U2^2 /(Cp*T01))^3.5
19d0ac0b2364f460b677b7ac9e19a166a7c1fe19
b29e9715ab76b6f89609c32edd36f81a0dcf6a39
/ketpicscifiles6/Setunitlen.sci
84ea4d603b5280621c8d5ff25b45e4a1281f49be
[]
no_license
ketpic/ketcindy-scilab-support
e1646488aa840f86c198818ea518c24a66b71f81
3df21192d25809ce980cd036a5ef9f97b53aa918
refs/heads/master
2021-05-11T11:40:49.725978
2018-01-16T14:02:21
2018-01-16T14:02:21
117,643,554
1
0
null
null
null
null
UTF-8
Scilab
false
false
1,424
sci
Setunitlen.sci
// 08.12.06 // 08.12.18 // 09.02.20 // 09.02.27 // 14.03.05 MARKLEN // 17.03.19 VL=[] => VL=""; function Out=Setunitlen(varargin) global FID XMIN XMAX YMIN YMAX ULEN global MilliIn MARKLEN MARKLENNow PenThickInit; if length(varargin)==0 Out=ULEN; disp(ULEN); return; end; Ul=varargin(1); Dx=XMAX-XMIN; Dy=YMAX-YMIN; Sym='.0123456789 +-*/'; Tmp=ascii(Sym); SL=Sym; OL='+-*/'; if Ul~='' ULEN=Ul; end; Out=ULEN; Is=1; VL=""; // 17.03.19 Ucode=ascii(ULEN); for I=1:length(Ucode) C=char(Ucode(I)); if mtlb_findstr(SL,C)~=[] if mtlb_findstr(OL,C) Str=char(Ucode(Is:(I-1))); VL=VL+Str+C; Is=I+1; end else Unit=char(Ucode(I:(I+1))); Str=char(Ucode(Is:(I-1))); VL=VL+Str; break; end; end; Valu=evstr(VL); Str=string(Valu); ULEN=Str+Unit; Out=ULEN; if Unit=='cm' MilliIn=1000/2.54*Valu; end if Unit=='mm' MilliIn=1000/2.54*Valu/10; end if Unit=='in' MilliIn=1000*Valu; end if Unit=='pt' MilliIn=1000/72.27*Valu; end if Unit=='pc' MilliIn=1000/6.022*Valu; end if Unit=='bp' MilliIn=1000/72*Valu; end if Unit=='dd' MilliIn=1000/1238/1157/72.27*Valu; end if Unit=='cc' MilliIn=1000/1238/1157/72.27*12*Valu;p end if Unit=='sp' MilliIn=1000/72.27/65536*Valu/10; end MARKLEN=MARKLENNow*1000/2.54/MilliIn; endfunction;
bc9d6311cae694b2d613ce81b38a5c2ed3fb19bf
449d555969bfd7befe906877abab098c6e63a0e8
/1757/CH14/EX14.6/EX14_6.sce
24df19d45d19ef60fe60b5e2c60e497a041f9952
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
328
sce
EX14_6.sce
//Example14.6 // determine the duty cycle of the switching regulator circuit clc; clear; close; T =120 ; //msec // total pulse time // T = ton + toff ; ton = T/2 ; // The duty cycle of switching regulator circuit is given by d = ton/T; disp('The output voltage of switching regulator circuit is = '+string(d)+' ');
e5d5d315e42b12aed260ca841db34aa67de13ca7
449d555969bfd7befe906877abab098c6e63a0e8
/2024/CH9/EX9.17/9_17.sce
114f85e136e68384e860ae7d2753aad8c9751794
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
221
sce
9_17.sce
clc //Initialization of variables hf=1187.2 //Btu/lbm p2=100 //psia //calculations t=328 //F u2=hf disp("from steam table,") t2=540 //F p2=100 //psia dt=t2-t //results printf("Rise in temperature = %d F",dt)
2a6ca9b9a6a719aa65fd4b4f5770d106ac825420
449d555969bfd7befe906877abab098c6e63a0e8
/1085/CH4/EX4.4/ex4_4.sce
dbdb73d3e748e160e1df8dcf4750b41d3af8a6dd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
ex4_4.sce
//Exam:4.4 clc; clear; close; Z_1=+2; Z_2=-2; r_Mg=0.65;//radius of Mg++ ion r_S=1.84;//radius of S-- ion r=r_Mg+r_S;//net radius(in Angstrom) R=r*10^(-10);//net radius(in meter) e=1.6*10^(-19); E_o=8.854*10^-12; pi=22/7; F=-Z_1*Z_2*e^2/(4*pi*E_o*R^2);//force of attraction between ions(in Newton) disp(F,'force of attraction between ions(in Newton)=');
39428216cca21acb680a28ba3f5bcd22bcbbba31
449d555969bfd7befe906877abab098c6e63a0e8
/2360/CH4/EX4.4/ex4_4.sce
b2dcce44efaf0253d3cabab0aadd20780ba4a08d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
306
sce
ex4_4.sce
// Exa 4.4 format('v',7);clc;clear;close; // Given data t1 = 83.33;// in ms V_R = 100;// in mV Vi = 100;// in mV fc = 12;//clock frequency in kHz fc = fc* 10^3;// in Hz Digitaloutput = round(fc*t1*(Vi/V_R)*10^-3);//digital output in counts disp(Digitaloutput,"The Digital output in counts is");
d76e405f6038786b82caab0a58d50e03d7162970
449d555969bfd7befe906877abab098c6e63a0e8
/3843/CH11/EX11.14/Ex11_14.sce
eecb7c8b82f276eaf1f21ecd5cc4f035e259bcea
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
927
sce
Ex11_14.sce
// Example 11_14 clc;funcprot(0); // Given data m_w3=10000;// kg/min T_ain=20;// The temperature of air at inlet in °C phi_1=50;// Humidity in % T_aout=32;// The temperature of air at exit in °C phi_2=98;// Humidity in % T_win=40;// The temperature of water at inlet in °C T_wout=25;// The temperature of water at exit in °C // Calculation // (a) // From the psychrometric chart we find h_1=37;// kJ/kg of dry air h_2=110;// kJ/kg of dry air w_1=0.0073;// kgH2O/kg dry air w_2=0.0302;// kgH2O/kg dry air // From steam tables h_3=167.5;// kJ/kg h_4=104.9;// kJ/kg m_a=(m_w3*(h_4-h_3))/(h_1-h_2+((w_2-w_1)*h_4));// kg/min // From the psychrometric chart we find v_1=0.84;// m^3/ kg dry air Vdot=m_a*v_1;// m^3/min // (b) m_4=m_w3-((w_2-w_1)*m_a);// kg/min printf("\n(a)The volume flow rate of air into the cooling tower,Vdot=%4.0f m^3/min \n(b)The mass flux of water,m_4=%4.0f kg/min",Vdot,m_4);
c9be0f52152228ee4df8c019f5e1a9a60b898789
449d555969bfd7befe906877abab098c6e63a0e8
/2489/CH9/EX9.4/9_4.sce
42d84144de3afc5f450bffa316bf6da3b632f6d7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
219
sce
9_4.sce
clc //Intitalisation of variables clear m= 4 //gms p= 6.4*10^-4 //atm T= 27 //C R= 0.082 //lit atm deg^-1 mole^-1 //CALCULATIONS M= R*(273+T)*m/p //RESULTS printf ('Molecular weight of polymer = %.1e gms',M)
18004803a993a00c4fe46d3846de145eea4fb2ff
f78a758dc17a311b355e12366d1315f7a9c2b763
/ISO/ISO 7637-2 2011/5.6.2 Test pulse 2b 5.tst
64694255135ad386e8cf6a6d49f2046c03be9701
[]
no_license
CZPFOX/Standards
9dbf036f7e3e5767c23872c884ae7da83e66f81c
af34157e6e447d1a2b39136b9f3734feb663d9bb
refs/heads/master
2020-06-18T12:58:06.033918
2019-07-11T02:55:42
2019-07-11T02:55:42
196,309,147
0
0
null
null
null
null
UTF-8
Scilab
false
false
775
tst
5.6.2 Test pulse 2b 5.tst
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!DOCTYPE AUTOTEST> <AutoTest version="2.0.0" wavetype="2"> <Pulse>Pulse 2b</Pulse> <Title>Level IV 24V</Title> <Organization>ISO</Organization> <Standard>ISO 7637-2 2011</Standard> <Item>5.6.2 Test pulse 2b</Item> <Count>10</Count> <system> <PowerSystem>1</PowerSystem> <Ua>27</Ua> </system> <wave> <Us value="20"/> <Td value="0.2"/> <TdStep checked="0"/> <TdSingleStep value="0.6"/> <TdEnd value="5"/> <Period value="0.7"/> <Tr value="1"/> <T6 value="1"/> <T12 value="1"/> <Interval value="0.5"/> <Ri index="0" text="0.05"/> <Count value="10"/> </wave> </AutoTest>
437e4ef6be6bd81d755414ca5559289794d602fe
e806e966b06a53388fb300d89534354b222c2cad
/macros/imhistmatch.sci
0792aefd6734d6bb31875d4dce126c0ace672dbe
[]
no_license
gursimarsingh/FOSSEE_Image_Processing_Toolbox
76c9d524193ade302c48efe11936fe640f4de200
a6df67e8bcd5159cde27556f4f6a315f8dc2215f
refs/heads/master
2021-01-22T02:08:45.870957
2017-01-15T21:26:17
2017-01-15T21:26:17
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
518
sci
imhistmatch.sci
function [outputImg]=imhistmatch(inputImage,refImage,varargin) [lhs rhs]=argn(0); if rhs>3 error(msprintf(" Too many input arguments")); end inputList=mattolist(inputImage); refList=mattolist(refImage); select rhs case 2 then outputList=opencv_imhistmatch(inputList,refList); case 3 then outputList=opencv_imhistmatch(inputList,refList,varargin(1)); end for i=1:size(outputList) outputImg(:,:,i)=outputList(i) end endfunction
67809901aeaaad35a16f2a63b76bbb6c27d8d887
449d555969bfd7befe906877abab098c6e63a0e8
/1301/CH5/EX5.7/ex5_7.sce
3e1a2c7918520fe41a23db4ca72e93fcb4e9b267
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
170
sce
ex5_7.sce
clc; F=150; //F in lb s=10; //distance in ft t=5; //time in sec P=(F*s)/t; //Power in ft.lb/sec disp(P/550,"Power in hp = "); //displaying power in hp
ac0e89acb7f028c92f4018260217e28bc867d6fb
449d555969bfd7befe906877abab098c6e63a0e8
/339/CH10/EX10.6/ex10_6.sce
c2a31adfbffe8ad3a7ef1319005651a99a789a0a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,332
sce
ex10_6.sce
//define the S-paramters of the transistor at resonance frequency s11=1.1*exp(%i*(170)/180*%pi); s12=0.4*exp(%i*(-98)/180*%pi); s21=1.5*exp(%i*(-163)/180*%pi); s22=0.9*exp(%i*(-170)/180*%pi); s=[s11,s12;s21,s22]; //define oscillation frequency f0=8e9; w0=2*%pi*f0; //define parameters of the dielectric resonator Z0=50; beta=7; R=beta*2*Z0; Qu=5e3; //compute equivalent L and C L=R/(Qu*w0); C=1/(L*w0^2); //find output reflection coefficient of the DR Gout_abs=beta/(1+beta); Gout_angle=-atan(imag(s11),real(s11))/%pi*180; //compute electrical length of the transmission line for the DR theta0=-1/2*Gout_angle Gout=Gout_abs*exp(%i*Gout_angle*%pi/180); //find the output impedance of the DR Zout=Z0*(1+Gout)/(1-Gout) // find the equivalent capacitance (it will be necessary for the computation of the oscillator without DR) CC=-1/(w0*imag(Zout)) Rs=50; //define the frequency for the plot delta_f=0.05e9; //frequency range f=f0-delta_f/2 : delta_f/100 : f0+delta_f/2; w=2*%pi*f; if theta0<0 theta0=360+theta0; end; theta=theta0*f/f0/180*%pi; //repeat the same computations as above, but for specified frequency range Gs=(Rs-Z0)/(Rs+Z0); G1=Gs*exp(-%i*2*theta); R1=Z0*(1+G1)./(1-G1); Zd=1./(1/R+1./(%i*w*L+%i*w*C)); R1d=R1+Zd; G1d=(R1d-Z0)./(R1d+Z0); G2=G1d.*exp(-%i*2*theta); //compute the output reflection coefficient (we have oscillations if |Gout|>1) Gout=s22+s12*s21*G2./(1-s11*G2); figure; plot(f/1e9,abs(Gout),'b','linewidth',2); title('Output reflection coefficient of the oscillator with DR'); xlabel('Frequency f, GHz'); ylabel('Output reflection coefficient |\Gamma_{out}|'); mtlb_axis([7.975 8.025 0 14]); //Redefine the frequency range (we have to increase it in order to be able to observe any variations in the response delta_f=5e9; f=f0-delta_f/2 : delta_f/100 : f0+delta_f/2; w=2*%pi*f; //Compute the output reflection coefficient of the oscillator but with DR replaced by a series combination of resistance and capacitance ZZ2=real(Zout)+1./(%i*w*CC); GG2=(ZZ2-Z0)./(ZZ2+Z0); GG=s22+s12*s21*GG2./(1-s11*GG2); figure; plot(f/1e9,abs(GG),'r','linewidth',2); title('Output reflection coefficient of the oscillator without DR'); xlabel('Frequency f, GHz'); ylabel('Output reflection coefficient |\Gamma_{out}|');
2f68f08d487150cd8893ea8cac81899f40184e27
449d555969bfd7befe906877abab098c6e63a0e8
/3506/CH2/EX2.3/Ex_2_3.sce
6863c06331a5395b6f2a8461edd73a98b39fadf5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
560
sce
Ex_2_3.sce
//Optical Fiber communication by A selvarajan //example 2.3 //OS=Windows XP sp3 //Scilab version 5.5.1 clc; clear all; //given ncore=1.505//refractive index of core nclad=1.502//refractive index of cladding V=2.4//v no. for single mode lambda=1300e-9//operating wavelength in m //to find NA=sqrt(ncore^2-nclad^2)//numerical aperture a=V*(lambda)/(2*%pi*NA)//dimension of fiber core in m //display mprintf("The numarical aperture =%f",NA); mprintf("\n Dimension of fiber core =%f um",a*1e6)//multiplication by 1e6 to convert unit from m to um
395e7e23274355537b66489ad92465cc6aadbb15
1cbce41ea16b5485d0ee930bccdf43682a8db11b
/release/linux-cortexm-1.11.0/projects/performand/data/datalog-all105/p.sce
1e6a75dffe2c0ee1f4cca1cadbd471848c2a8020
[]
no_license
jpabb7/performand.k70.2
4db203348d7b4ddb0cca09eebb888490cf75c647
df7220c3a05942c01a2b52493eaedfc2ef18199b
refs/heads/master
2021-05-28T12:43:08.008574
2014-02-13T09:29:09
2014-02-13T09:29:09
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,942
sce
p.sce
// Read datalog-all files and extract and plot features clear; clc; clf(); fd = mopen('/home/rasmus/performand.k70.2/release/linux-cortexm-1.11.0/projects/performand/data/datalog-all105/datalog-all105.0.txt', 'r'); linecounter = {1,1,1,1,1,1,1,1,1,1}; magXaxis = zeros(2, 5000); magYaxis = zeros(2, 5000); magZaxis = zeros(2, 5000); accXaxis = zeros(2, 5000); accYaxis = zeros(2, 5000); accZaxis = zeros(2, 5000); imuPitch = zeros(2, 5000); imuYaw = zeros(2, 5000); imuRoll = zeros(2, 5000); gpsCoor = zeros(2, 5000); printf("Start Evaluation... "); while(meof(fd) ~= null) line = mgetl(fd, 1); if isempty(line) then break; end tok = strsplit(line, ",") if strcmp(tok(2), "$COMPASS") == 0 then tmpsize = size(evstr(tok(3))); if tmpsize(2) > 0 then magXaxis(2, linecounter(1)) = evstr(tok(3)); magXaxis(1, linecounter(1)) = evstr(tok(1)); linecounter(1) = linecounter(1) + 1; end tmpsize = size(evstr(tok(4))); if tmpsize(2) > 0 then magYaxis(2, linecounter(2)) = evstr(tok(4)); magYaxis(1, linecounter(2)) = evstr(tok(1)); linecounter(2) = linecounter(2) + 1; end tmpsize = size(evstr(tok(5))); if tmpsize(2) > 0 then magZaxis(2, linecounter(3)) = evstr(tok(5)); magZaxis(1, linecounter(3)) = evstr(tok(1)); linecounter(3) = linecounter(3) + 1; end tmpsize = size(evstr(tok(6))); if tmpsize(2) > 0 then accXaxis(2, linecounter(4)) = evstr(tok(6)); accXaxis(1, linecounter(4)) = evstr(tok(1)); linecounter(4) = linecounter(4) + 1; end tmpsize = size(evstr(tok(7))); if tmpsize(2) > 0 then accYaxis(2, linecounter(5)) = evstr(tok(7)); accYaxis(1, linecounter(5)) = evstr(tok(1)); linecounter(5) = linecounter(5) + 1; end tmpsize = size(evstr(tok(8))); if tmpsize(2) > 0 then accZaxis(2, linecounter(6)) = evstr(tok(8)); accZaxis(1, linecounter(6)) = evstr(tok(1)); linecounter(6) = linecounter(6) + 1; end elseif strcmp(tok(2), "$IMU") == 0 then tmpsize = size(evstr(tok(5))); if tmpsize(2) > 0 then imuYaw(2, linecounter(7)) = evstr(tok(4)); imuYaw(1, linecounter(7)) = evstr(tok(1)); linecounter(7) = linecounter(7) + 1; end tmpsize = size(evstr(tok(5))); if tmpsize(2) > 0 then imuPitch(2, linecounter(8)) = evstr(tok(5)); imuPitch(1, linecounter(8)) = evstr(tok(1)); linecounter(8) = linecounter(8) + 1; end tmpsize = size(evstr(tok(6))); if tmpsize(2) > 0 then imuRoll(2, linecounter(9)) = evstr(tok(6)); imuRoll(1, linecounter(9)) = evstr(tok(1)); linecounter(9) = linecounter(9) + 1; end elseif strcmp(tok(2), "$GPS") == 0 then tmpsize = size(evstr(tok(11))); if tmpsize(2) > 0 then gpsCoor(2, linecounter(10)) = evstr(tok(11)) + evstr(tok(12))/60 + evstr(tok(13))/3600; // N -> latitude (Y) gpsCoor(1, linecounter(10)) = evstr(tok(15)) + evstr(tok(16))/60 + evstr(tok(17))/3600; // E -> longitude (X) linecounter(10) = linecounter(10) + 1; end end end mclose(fd); printf("Stop Evaluation\n"); a = figure(1); a.background=8; subplot(3,1,1) title('Magnetometer X-Y-Z') plot(magXaxis(1,1:linecounter(1)-1), magXaxis(2,1:linecounter(1)-1), '-b'); plot(magYaxis(1,1:linecounter(2)-1), magYaxis(2,1:linecounter(2)-1), '-r'); plot(magZaxis(1,1:linecounter(3)-1), magZaxis(2,1:linecounter(3)-1), '-g'); al = legend('X-axis', 'Y-axis', 'Z-axis', 3); al.background=8; mtlb_axis([100, 1200, -1000, 1000]) subplot(3,1,2) title('Accelerometer X-Y-Z') plot(accXaxis(1,1:linecounter(4)-1), accXaxis(2,1:linecounter(4)-1), '-b'); plot(accYaxis(1,1:linecounter(5)-1), accYaxis(2,1:linecounter(5)-1), '-r'); plot(accZaxis(1,1:linecounter(6)-1), accZaxis(2,1:linecounter(6)-1), '-g'); al = legend('X-axis', 'Y-axis', 'Z-axis', 3); al.background=8; mtlb_axis([100, 1200, -40000, 40000]) subplot(3,1,3) title('IMU Pitch-Yaw-Roll') plot(imuYaw(1,1:linecounter(8)-1), imuYaw(2,1:linecounter(8)-1), '-r'); plot(imuPitch(1,1:linecounter(7)-1), imuPitch(2,1:linecounter(7)-1), '-b'); plot(imuRoll(1,1:linecounter(9)-1), imuRoll(2,1:linecounter(9)-1), '-g'); al = legend('Yaw', 'Pitch', 'Roll', 3); al.background=8; mtlb_axis([100, 1200, -200, 200]) b = figure(2); b.background=8; title('GPS coordinates') plot(gpsCoor(1,1:linecounter(10)-1), gpsCoor(2,1:linecounter(10)-1), '.b'); //plot(gpsCoor(1,linecounter(10)-3), gpsCoor(2,linecounter(10)-3), '.r'); xs2pdf(a, 'imu_compass', 'landscape'); xs2pdf(b, 'found_gps', 'landscape');
0691b462c842daf61d058883f848703aa3d7a6e2
449d555969bfd7befe906877abab098c6e63a0e8
/3845/CH27/EX27.1/Ex27_1.sce
19dfb96beafddc617210883298eb307ce108745c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
363
sce
Ex27_1.sce
//Example 27.1 m=3;//Third-order constructive interference d=0.01*10^-3;//Distance between slits (m) theta=10.95;//Diffraction angle (deg) lambda=d*sind(theta)/m;//Wavelength (m) printf('Wavelength = %0.1f nm',lambda/10^-9) //Answer varies due to round off error //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest
29613a7a4b15e9c07a9e27b2ee962a193da6b376
449d555969bfd7befe906877abab098c6e63a0e8
/29/CH9/EX9.10.13/exa9_10_13.sce
a44ac45cce96e2cfb2c163ec85e468a586efb4ee
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
330
sce
exa9_10_13.sce
//caption:obtain_time_response //example 9.10.13 //page 397 syms t; A=[0 1;-2 0] x0=[1 1]' [r c]=size(A);//size of matrix A //since exp(At)=I+A*t+(A*t)^2/2+(A*t)^3/3+... I=eye(r,c) p=I+A*t+(A*t)^2/2+(A*t)^3/3 x=p*x0; disp(x(1,1),"time response of the system,x1(t)="); disp(x(2,1),"time response of the system,x2(t)=");
18b09b7b7b0217ca15aaff65af9dbc99dcab3c03
449d555969bfd7befe906877abab098c6e63a0e8
/3772/CH8/EX8.1/Ex8_1.sce
45c8ab5f7a714a76bb4b033a8bff99c53cf4c1f3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,002
sce
Ex8_1.sce
// Problem 8.1,Page no.206 clc;clear; close; k=1 //KN/m //stiffness of spring P=45 //N //Maximum Load sigma_s=126 //MPa //Max shear stress L=4.5 //cm //Lenght of spring G=42 //GPa //Modulus of rigidity //Calculations //sigma_s_max=16*P*R*(%pi*d**3)**-1 //Max shear stress //After substituting values in above equation and simolifying we get //1000=42*10**9*d**4*(64*R**3*n)**-1 (//Equation 1) //R=0.175*10**6*%pi*d**3 //Radius of spring (Equation 2) //L=n*d //solid length of spring //Thus simplifying above equation, n=L*d**-1 //substituting value of n and R in (equation 1) we get, d=(42*10**9*(1000*64*4.5*10**-2*(0.175*%pi)**3*(10**6)**3)**-1)**0.25*10**2 //cm //diameter of helical spring //substituting value d in (equation 2) we get, R=0.175*10**6*%pi*(d)**3*10**-6*100 //cm //Radius of coil D=2*R //cm //Mean diameter of coil n=0.045*0.00306**-1 //Number of turns //Result printf("The Diameter of wire is %.3f cm",d) printf("\n The Mean Diameter of coil is %.2f",D);printf(" cm")
23fa1b979eba53b971f34576752034755da83d88
449d555969bfd7befe906877abab098c6e63a0e8
/2213/CH11/EX11.6/ex_11_6.sce
41467a747ffb304bf1afeeb9f95dd5f54a315709
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
287
sce
ex_11_6.sce
//Example 11.6: Current clc; clear; close; //given data : format('v',8) ix=200;//amperes r=0.02;//in ohms x=poly(0,"x"); p=-19+12*x+0*x^2;// y=roots(p);//km ipx=ix*(3-y);//in amperes inx=2*ix;//in amperes it=ipx+inx;//in amperes disp(it,"current through negetive booster in amperes is")
1b7edc731203e69a31b367fae9a7e5641d7e14d2
a90555c1b25caa293679dea7166187dc891e4b3b
/laboratrona4.sce
5a28af43cb89a3274733e2ee438f17f45d9c31a6
[]
no_license
MukMak/laboratory_works
298ed8cb941f5bf1c2ac6a8e90bd7ac566acfc6e
2e637ac262d9ed91ea755b094aedd97a11c3a9a4
refs/heads/master
2021-09-10T06:46:59.773963
2018-03-21T20:19:43
2018-03-21T20:19:43
119,851,079
0
0
null
null
null
null
UTF-8
Scilab
false
false
455
sce
laboratrona4.sce
clear clc clf x = [-3:0.25:3] disp (x) y1 = sqrt(1 + x.^2 ./(1 + x.^2)) y2 = 2 .*abs(cos(x)) plot(x,y1,'LineStyle','--','Color','r','Thickness',3,... 'Marker','s','MarkerEdgeColor','b','MarkerFaceColor','y',... 'MarkerSize',8) plot(x,y2,'LineStyle','-','Color','g','Thickness',3,... 'Marker','o','MarkerEdgeColor','r','MarkerFaceColor','k',... 'MarkerSize',10) xtitle('Графики функций y1(x),y2(x)','X','Y') legend('y1(x)','y2(x)',2) xgrid
1f1b6025855f1aec2c24d4272dfb17789668d4fe
127061b879bebda7ce03f6910c80d0702ad1a713
/Utility/PIL_nest_loop.sci
302215f62d350bfebb0b285ddfe19c7cd3e7bc1e
[]
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
1,206
sci
PIL_nest_loop.sci
// **** Purpose **** // generate the index of a dynamic nested for loops // **** Variables **** // [loop_mat]: n x 2, integer // <= describes the range of each loop // ex:[2,5;3,7;1,5] means 2:5, 3:7, 1:5 // [loop_index]: n x m, integer // => the index of each loop // **** Version **** // 05/01/2014 first built // 05/20/2014 fix bug, when length(loop_mat)==1 has error! // 05/30/2014 fullly rewrite to accept all kinds of dynamical nested loops // 01/24/2016 fully rewrite using matrix reshape algorithm. super fast now! // **** Comment **** function loop_index=PIL_nest_loop(loop_mat) tot_loop=length(loop_mat(:,1)); loop_new=flipdim(loop_mat(:,2)-loop_mat(:,1)+1,1); loop_index=zeros(prod(loop_new),tot_loop); for n=1:tot_loop if n==1 then tmp_mat=repmat(1:loop_new(n),1,prod(loop_new(n+1:$))); elseif n==tot_loop tmp_mat=repmat(1:loop_new(n),prod(loop_new(1:n-1)),1); else tmp_mat=repmat(1:loop_new(n),prod(loop_new(1:n-1)),prod(loop_new(n+1:$))); end loop_index(:,n)=tmp_mat(:); loop_index(:,n)=loop_index(:,n)-1+loop_mat(tot_loop-n+1,1) end loop_index=flipdim(loop_index,2); endfunction
a4722af579b401c6e584569f431c7bc91bb31cdc
449d555969bfd7befe906877abab098c6e63a0e8
/3137/CH13/EX13.2/Ex13_2.sce
1276604bca290dc56b5a3c9f97336478f10da1cd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
290
sce
Ex13_2.sce
//Initilization of variables m=5 //kg s=12 //m v=4 //m/s vo=0 //m/s g=9.8 //m/s^2 mu=0.25 //Calculations //Using the kinematic equations of motion a=(v^2-vo^2)/(2*s) //m/s^2 //Using Newtons Principle N1=g*m //N P=m*a+mu*N1 //N //Result clc printf('The value of P is %fN',P)
7aecaa603e340f4215f7411e5a8f7f355dfe4ca5
449d555969bfd7befe906877abab098c6e63a0e8
/2780/CH7/EX7.7/Ex7_7.sce
64f355e5556de2cdcdf4522f55dd84ed84fc27b6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex7_7.sce
clc //to calculate de Broglie wavelength V=100 //potential difference in volts lambda=12.25/sqrt(V) disp("de Broglie wavelength of any electron is lambda="+string(lambda)+"angstrom")
05a50718bc6b35cba19743a81ef6889b954a239b
449d555969bfd7befe906877abab098c6e63a0e8
/3250/CH2/EX2.7/Ex2_7.sce
6262bde8310e96e0695ce9d87201b80313daa21f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,237
sce
Ex2_7.sce
clc // Given that thetaF= 1540 // Temperature of mould face in degree centigrade thetaO = 28 // Initial temperature of mould in Degree centigrade L= 272e3 // Latent heat of iron in J/Kg Dm = 7850 // Density of iron in Kg/m^3 Cs = 0.67e+3 //Specific heat of iron in J/Kg-K C = 0.376e3 //Specific heat of copper in J/Kg-K Ks = 83 // Conductivity of iron in W/m-K K = 398 // Conductivity of copper in W/m-K D= 8960 // Density of copper in Kg/m^3 h = .1 // Height in m hF = 1420 // Total heat transfer coefficient across the casting-mould interface in W/m^2-°C // Sample Problem 7 on page no. 75 printf("\n # PROBLEM 2.7 # \n") AlphaS = K /(D*C) thetaS = 982 //In °C as in example 2.6 h1= (1+(sqrt((Ks*Dm*Cs)/(K*D*C))))*hF a = 1/2 + (sqrt((1/4)+Cs*(thetaF-thetaS)/(3*L))) delta=h/2 ts = (delta+((h1*delta^2)/(2*Ks)))/((h1*(thetaF-thetaS))/(Dm*L*a)) // in sec ts_ = ts/3600 // in hours h2= (1+(sqrt((K*D*C)/(Ks*Dm*Cs))))*hF gama= ((h2^2)/(K^2))*AlphaS*ts thetaS_ = thetaO + (thetaS-thetaO)*(1-((exp(gama))*(1-(erf(sqrt(gama)))))) printf("\n Solidification time = %f hr,\n The surface temperature of the mould = %f ° C", ts_,thetaS_) // The value of the surface temperature of the mould in the book is given as 658.1° C, Which is wrong.
b28c53618031767f86cd5154e832c1baeb1efbf4
449d555969bfd7befe906877abab098c6e63a0e8
/557/CH23/EX23.1/1.sce
6d66f2d0d902b7b536e496569b47feae2be14034
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
400
sce
1.sce
clc; funcprot(0); //Example 23.1 //Initializing the variables Q = [0:7:56]; H = [40 40.6 40.4 39.3 38 33.6 25.6 14.5 0]; n = [0 41 60 74 83 83 74 51 0]; N1 = 750; N2 = 1450; D1 = 0.5; D2 = 0.35; //Calculations Q2 = Q*(N2/N1)*(D2/D1)^3; H2 = H*(N2/N1)^2*(D2/D1)^2; xlabel("Q (m3/s)"); ylabel("H (m of water )and n(percent)"); plot(Q,H,Q,n,Q2,H2,Q2,n); legend("H1","n1","H2","n2");
a73d49d8ecd6deca458634a47127031f574ca904
449d555969bfd7befe906877abab098c6e63a0e8
/287/CH18/EX18.5/Exa18_5.sci
52ae69ddd1b4f3d2d08a7841d29a3036c9db0af4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
370
sci
Exa18_5.sci
////Determine the traffic intensity during the eight-hour period and the busy hour n = 11; t = 8; Cd1 = 3+10+7+10+5+5+1+5+15+34+5; Cd2 = 34+5; CAR2 = 2; CAR1 = n/t; Hbar1 = Cd1/(n*60); Hbar2 = Cd2/(CAR2*60); I1 = CAR1 * Hbar1 ; I2 = CAR2 * Hbar2 ; disp(I1*36, 'Traiffic Intensity (in CCS)') disp(I2*36, 'Traiffic Intensity during busy hour (in CCS)')
f0aea71facc6b3a6526274773a14d3281dda9007
e41b69b268c20a65548c08829feabfdd3a404a12
/3DCosmos/Data/Scripts/_MarsProject/test_bol.sci
f630d1c43368c353645ea3ebd5c4599732520dd7
[ "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,436
sci
test_bol.sci
codeblock readtextfile(ScriptDir+"\_TOOLS.sci"); codeblock readtextfile(ScriptDir+"\MarsProject\Sub\SUB_general.sci"); sf=T_scene_create; sss=T_getscene; sss.ambientlightcolor=color(0.3,0.3,0.3); sss.VolumeShadowAdd(0,color(0,0,0,0.5),0.0002,20); bol=sf.add("sphere"); bol.color=color(1,0.5,0.5); bol.radius=0.5; bol.resolution=30; bol.canbuffer=true; if true then { bol2=sf.add("sphere"); bol2.position=point(1,1,1); bol2.color=color(1,1,0); bol2.radius=0.25; bol2.resolution=30; bol2.canbuffer=true; } if true then { bar=sf.addbar(point(0,2,0),1,1,1); bar.color=color(0,1,0); sf.motion=motionrotate.create(sf); sf.motion.normdir=vector(0,1,0); sf.motion.rotspeed=0.001; } function vertexcolor(p) { return(color(p.x,p.y,p.z)); } if true then { surf=sf.add("surface"); func=functor("point(u,0.75*sin(u*v),v)","u","v"); # surf.generate(func,-3,3,120,-3,3,120); surf.generate(func,-1.5,1.5,30,-1.5,1.5,30); # surf.GenerateVertexProperty(functor("vertexcolor(p)","p"),VertexPropertyColor); # surf.GenerateVertexProperty(FunctionFunctor("vertexcolor"),VertexPropertyColor); surf.renderback=true; surf.color=color(0.4,0.4,0.6); surf.SpecularValue=40; surf.SpecularColor=color(0.5,0.5,0.5); surf.canbuffer=false; } root.time=time(2008,1,1,0,0,0); while root.time-time(2008,1,1,3,0,0)<0 do { incrtime; SUB_testcmd(); render; ttm=objectroot.time+0; }
bfad19c60c35f4fc79ef676ce30eb2d311213375
449d555969bfd7befe906877abab098c6e63a0e8
/1553/CH5/EX5.10/5Ex10.sce
d44f4374ce7c13593a74d07ca082e8b83f9cb795
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
125
sce
5Ex10.sce
//chapter 5 Ex 10 clc; clear; close; //let the value to be found out be x x=((13/12)^2-1)*144; mprintf("x=%.0f",x);
a68256464539f3fd826da83776b3f52cbce351fa
940067908a620ecf3af07168e750cd30769047e4
/AlgorithmeInterpolationDifiCro.sci
d05bd79e58e8ab6a11d01044a0926eef9b9dbd6c
[ "MIT" ]
permissive
davidfotsa/Numerical_Methods_With_Scilab
9bada60e6feba012fa7a52ce0e0ea85a40afd0d4
a3c731888b8a7a77f0d851210bc62e00e348ace9
refs/heads/main
2023-08-01T13:11:14.528993
2021-09-28T04:19:38
2021-09-28T04:19:38
407,939,339
0
0
null
null
null
null
UTF-8
Scilab
false
false
731
sci
AlgorithmeInterpolationDifiCro.sci
//Algorithme Interpolation Newton differences finies croissantes funcprot(0); function f=factoriel(n) f=1; if (n>1) then for i=2:n f=f*i; end; end; endfunction; function c=combinaison(k,n) c=0; if (k<=n) then c=factoriel(n)/(factoriel(k)*factoriel(n-k)); end; endfunction; function d=difipro(Y,i,k) d=0; for j=0:k d=d+((-1)^j)*combinaison(j,k)*Y(i+k-j); end; endfunction; function p=p(a,k,h,x) p=1; for i=1:k p=p*(x-a-(i-1)*h); end; endfunction; function f=f(a,b,Y,x) n=length(Y); h=(b-a)/(n-1); f=Y(1); for i=1:n-1 f=f+difipro(Y,1,i)*p(a,i,h,x)/((h^i)*factoriel(i)); end; endfunction; Y=(-2:2)^2; disp(f(-2,2,Y,-1));
66c50e4e070c5b15616a4cfe4962389b285b20a3
449d555969bfd7befe906877abab098c6e63a0e8
/2891/CH2/EX2.17/Ex2_17.sce
2e20d010b1f9913c6f1dcd7344b7a963f0c0114d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
907
sce
Ex2_17.sce
//Exa 2.17 clc; clear; close; // given : sigma=0 // conductivity in mho/m f=0.3 // frequency in GHz f=0.3*10^9 // frequency in Hz omega=2*%pi*f // angular frequency in rad/sec // formula : Gamma=sqrt(%i*omega*mu*(sigma+%i*omega*epsilon))=%i*omega*sqrt(mu*epsilon) epsilon_0=8.854*10^-12 // permittivity in free space in F/m epsilon=9*epsilon_0 // permittivity in F/m mu_0=4*%pi*10^-7 // permeability in free space in H/m mu=mu_0 // permeability in H/m Gamma=%i*omega*sqrt(mu*epsilon) // propagation constant im m^-1 disp(Gamma,"propagation constant im m^-1:") // formula : eta=sqrt((%i*omega*mu)/(sigma+omega*epsilon))=sqrt(mu/epsilon) eta=sqrt(mu_0/(9*epsilon_0)) // intrinsic impedence in ohm disp(eta,"intrinsic impedence in ohm:") // note : answer of propagation constant in book is wrong.they put mu_0=4*10^-7 in part 1 which is wrong the correct value of mu_0 is 4*%pi*10^-7.
f8f241d0345181ea122d55ec960e4fa62e939ffa
449d555969bfd7befe906877abab098c6e63a0e8
/2141/CH5/EX5.17/Ex5_17.sce
f6af43f48cff48de6e74fe47a40c73c2e3c304cf
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
444
sce
Ex5_17.sce
clc //initialisation of variables Te=400 //F Ti=80 //F Cp=0.24 //lbm v=300 //ft/sec r=2000 //lbm/min p=54 //lbf/in^2 T1=778//F R=42.4//ft^2 W=Cp*(Te-Ti)+(v^2)/(2*p1*T1)//Btu/lbm We=W*r/R//hp T=Ti+460 //R T1=Te+460 //R hi=129.06 //Btu/lbm he=206.46 //Btu/lbm p1=32.17//in^2/ft^3 //CALCULATIONS w=he-hi+(v^2)/(2*p1*T1)//Btu/lbm we=(w*r)/R//hp //RESULTS printf('the power required to drive the compressor =% f Btu/lbm',we)
3732de4c5813e0b2a7f4dbb9da401e1c185c176c
449d555969bfd7befe906877abab098c6e63a0e8
/1286/CH15/EX15.1/15_1.sce
16ecac39ad161aae7966967de75df59ee43e02fb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
173
sce
15_1.sce
clc //initialisations c=8 h=3 t=5 //CALCULATIONS a=factorial(8)/(factorial(3)*factorial(5)*2^8) //results printf(' \n probability of 3 heads and 5 tails= % 1f ',a)
d5fd2689d5592d772949f7999c72f61bc8dc49cc
449d555969bfd7befe906877abab098c6e63a0e8
/3878/CH1/EX1.10/Ex1_10.sce
976d44253b8517948c45e1982344846c7b32bc56
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
660
sce
Ex1_10.sce
clear // // Variable declaration T_f=3// The temperature of fluid in °C T_wi=11.5// The temperature of water at inlet in °C T_wo=6.4// The temperature of water at outlet in °C A=420// The surface area in m**2 U=110// The thermal transmittance in W/(m**2 K) // Calculation delT_max=T_wi-T_f// The maximum temperature difference in K delT_min=T_wo-T_f// The minimum temperature difference in K LMTD=(delT_max-delT_min)/log(delT_max/delT_min) Q_f=U*A*LMTD// The amount of heat transfer in W printf("\n The logarithmic mean temperature difference is %0.3f K",LMTD) printf("\n The amount of heat transfer is %0.0f W (round off error) or %0.0f ",Q_f,Q_f/1000)
3d4709c65f4c80a3fd91e49ff1c56ff669140754
449d555969bfd7befe906877abab098c6e63a0e8
/2411/CH5/EX5.3/Ex5_3.sce
74fa8e87801387cd8734c2f23b9f43b72dde8ef2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
466
sce
Ex5_3.sce
// Scilab Code Ex5.3: Page-284 (2008) clc; clear; b = 2.898e-003; // Wein's constant, m-K T = 3000 + 273; // Temperature of the source, K lambda_m = b/T; // Wavelength of maximum intensity of radiation emitted from the source, m printf("\nThe wavelength of maximum intensity of radiation emitted from the source = %d angstrom", lambda_m/1e-010); // Result // The wavelength of maximum intensity of radiation emitted from the source = 8854 angstrom
7f15d0218854b74c73677f0e62d39c10301f68f1
449d555969bfd7befe906877abab098c6e63a0e8
/608/CH18/EX18.07/18_07.sce
0fe86458a8ba3b66015d3800021b8dd49b9daba3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
18_07.sce
//Problem 18.07: For the op amp shown in Figure 18.8, R1 = 4.7 kohm and R2 = 10 kohm. If the input voltage is- 0.4 V, determine (a) the voltage gain (b) the output voltage //initializing the variables: Vi = -0.4; // in Volts R1 = 4700; // in ohms R2 = 10000; // in ohms //calculation: A = 1 + (R2/R1) Vo = A*Vi printf("\n\n Result \n\n") printf("\n(a) the voltage gain is %.2f",A) printf("\n(b) output voltageis %.2f V",Vo)
d21d00f05e65531c4b196b83734ccf74bf297fe5
449d555969bfd7befe906877abab098c6e63a0e8
/3802/CH5/EX5.6/Ex5_6.sce
c0a4cbdae382ddbdd7edf086e32ad33042d60ba0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
359
sce
Ex5_6.sce
//Book Name:Fundamentals of Electrical Engineering //Author:Rajendra Prasad //Publisher: PHI Learning Private Limited //Edition:Third ,2014 //Ex5_6.sce. clc; clear; l=2.5e-3; A=200e-4; phi=0.015; //flux in weber mew_r=1; mew_not=4e-7*%pi; mew=mew_r*mew_not; R=l/(mew*A); F=phi*R; printf("\n The Magnetomotive force=%d AT \n",F)
ae96998f5792db1c57636ba8b674a2189536ab8a
449d555969bfd7befe906877abab098c6e63a0e8
/1739/CH3/EX3.11/Exa3_11.sce
26545c7a5fface064490a92f57639cc737f4c089
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
678
sce
Exa3_11.sce
//Exa 3.11 clc; clear; close; //Given data : //Let Material Dispersion, lambda^2*(d^2n/dlambda^2)=a a=0.03;//in ns deltaTau_s=15;//in nm lambda=1.3;//in um lambda=1.3*10^3;//in nm c=3*10^8;//speed of light in m/s c=3*10^5;//speed of light in Km/s //Part (a) Dmat=a/(lambda*c);//sec/nm-Km Dmat=Dmat*10^12;//ps/nm-Km disp("Material dispersion coefficient at a wavelength of 1.3 micro meter is "+string(Dmat)+" ps/nm-Km"); //Part (b) deltaTmat_perKm=deltaTau_s*Dmat;//in ps/km disp("Rms pulse broadning per Km due to material dispersion is "+string(deltaTmat_perKm)+" ps/km or "+string(deltaTmat_perKm*10^-3)+" ns/km"); //Note : Ans is not accurate in the book.
3d2acd1353266750d571a743a76156e1c5d8590d
449d555969bfd7befe906877abab098c6e63a0e8
/1709/CH3/EX3.3/3_3.sce
b8ab8b1ceab844d91ed688a704cd63150072d193
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
364
sce
3_3.sce
clc //Initialization of variables V1=1.735*10^-4 //ft^3 v1=0.016080 //ft^3/lbm h1=70.61 //B/lbm P1=100 //psia V2=1 //ft^3 //calculations u1=h1-P1*v1*144/778 m=V1/v1 v2=V2/m vf2=0.01613 vfg2=350.3 x2=(v2-vf2)/vfg2 hf2=67.97 hfg2=1037.2 h2=hf2+x2*hfg2 P2=0.9492 u2=h2- P2*144*v2/778 Q=m*(u2-u1) //results printf("Enthalpy change = %.2f Btu",Q)
0ae74abf75acf636fb38edd2bf41e7553e207aad
449d555969bfd7befe906877abab098c6e63a0e8
/2006/CH5/EX5.18/ex5_18.sce
26f15cf5a0593969e7e93ecad52e237cdea6c0cb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
946
sce
ex5_18.sce
clc; p1=50; // Pressre of steam at diffuser inlet in kPa T1=150; // Temperature of steam at diffuser inlet in degree celcius V1=180; // Velocity of steam at diffuser inlet in m/s A1=1000; // area of diffuser inlet in cm^2 V2=90; // Velocity of steam at diffuser outlet in m/s p2=1; // Pressre of steam at diffuser outlet in bar Q=120; // Heat loss to the surroundings in kW v1=3.24; // Specific volume of steam from superheated steam table in m^3/kg at inlet h1=2645.9; // // Specific enthalpy of steam from superheated steam table in m^3/kg at inlet m=V1*A1*10^-4/v1; // Mass flow rate of steam q=Q/m; // Heat transfer per unit mass of steam h2=q+h1+(V1^2-V2^2)/2000; // Specific enthalpy of steam from SSSF energy equationat outlet v2=1.704; // Specific volume of steam from superheated steam table in m^3/kg at outlet A2=m*v2/V2; // Area of diffuser exit disp ("cm^2",A2*10^4,"Area of diffuser exit (Error in textbook)= ");
96bccb4b7dcc2f65fa666b25abd467792bbec5b8
3bcfc8f144183ca138cf2dd8e0924ac604844109
/codebrowser/refs/llvm..DebuggerKind..SCE
85e8472599181be01102984f93cc77c3384e07c1
[]
no_license
kanihal/kanihal.github.io
85497ef521e3829dde69dc75e3b72d476fb7ddea
4d70f20407fb4da5b34e35ccae8751b9b85f34bb
refs/heads/main
2021-05-02T14:24:03.709895
2020-11-14T09:11:10
2020-11-14T09:12:22
24,152,425
0
0
null
null
null
null
UTF-8
Scilab
false
false
182
sce
llvm..DebuggerKind..SCE
<dec f='include/llvm-7/llvm/Target/TargetOptions.h' l='96' type='3'/> <doc f='include/llvm-7/llvm/Target/TargetOptions.h' l='96'>// Tune debug info for SCE targets (e.g. PS4).</doc>
82c0c320d0305f79cf7d0f2495bb598bb6d89758
f5f41d427e165a46b51c8b06f6c2010b4213033a
/Scilab/19mcmi23jan17program4.sce
e445b09bf7a546fbab9c7eda55d7071941ffdf56
[]
no_license
rissuuuu/IT_LAB
a40f6ea5311f5d8012364cfa3d3ad37d83be3afd
8d0f44a2b8b20ed1101c34a5cb263e6229c200cc
refs/heads/master
2021-01-03T05:06:49.877644
2020-02-12T07:42:44
2020-02-12T07:42:44
239,934,733
0
0
null
null
null
null
UTF-8
Scilab
false
false
208
sce
19mcmi23jan17program4.sce
clf(); b=4; a=2; x=a+(b-a).*rand(1,1000,'uniform'); histplot(1000,x) xlabel("Number of samples"); ylabel("Range of values of uniformly generated data"); title("Uniformly distributed data in the range to b");
e4fb35cb5ed6e351b79769f4f9e52fc96e1a2640
449d555969bfd7befe906877abab098c6e63a0e8
/3136/CH3/EX3.4/Ex3_4.sce
dae511432b66f7259db25dd8cb31cb8e4f6fb754
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
943
sce
Ex3_4.sce
clear all; clc; //This numerical is Ex 3_2S,page 44. V_r1=2.26 U_1=6.36 V_r2=1.01 U_2=19.2 //let x=tan(beta_1) x=V_r1/U_1 printf("\n The value of ß_f1 is equal to %0.3f degrees",x) beta_f1=(atan(x))*180/%pi printf("\n Thus the value of ß_f1 is %0.1f degrees",beta_f1) V_1=V_r1 W_1=(U_1^2+V_r1^2)^0.5 printf("\n Thus the value of W_1 is %0.2f m/s",W_1) beta_f2=beta_f1-10 printf("\n Hence the value of ß_f2 is equal to %0.1f degrees",beta_f2) //rounding of value of betaf2 to be equal to 9.6 beta_f2=9.6 W_u2=V_r2/tan(beta_f2*%pi/180) printf("\n Hence the value of W_u2 is %0.2f m/s",W_u2) V_u2=U_2-W_u2 printf("\n Hence the value of V_u2 is equal to %0.2f m/s",V_u2) //rounding off W_u2 W_u2=5.97 W_2=(W_u2^2+V_r2^2)^0.5 printf("\n The value of W_2 is equal to %0.3f m/s",W_2) //rounding off V_u2 V_u2=13.23 V_2=(V_u2^2+V_r2^2)^0.5 printf("\n Thus he value of V_2 is equal to %0.2f m/s",V_2)
b41d0a29cb7bdb4458d570d662de5844c061b318
449d555969bfd7befe906877abab098c6e63a0e8
/149/CH2/EX2.16/ex16.sce
c01728a6a08238ee89cdef8bc7f655d8ec3ab626
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
85
sce
ex16.sce
clear clc A=[0 1 2;1 2 3;2 3 4] B=[1 -2;-1 0;2 -1] disp("AB= ") A*B disp("BA= ") B'*A
ca9c562e671d1f1dfb8be57e2fdc70acd0b1d155
449d555969bfd7befe906877abab098c6e63a0e8
/1760/CH3/EX3.32/EX3_32.sce
ad54359ee99d62c8212911749ab4c36ff724a0d0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
940
sce
EX3_32.sce
//EXAMPLE 3-32 PG NO-193 Vry=400+%i*0; Vyb=-200-%i*346.41; Vbr=-200+%i*346.410; I1=14.74-%i*7.3; I2=2.105-%i*10.94; Ir=I1; disp('i) CURRENT (Ir) is in rectangular form = '+string (Ir) +' A '); Iy=I2-I1; disp('i) CURRENT (Iy) is in rectangular form = '+string (Iy) +' A '); Ib=-I2; disp('i) CURRENT (Ib) is in rectangular form = '+string (Ib) +' A '); Pr=16.45*16.45*10; disp('i) Power (Pr) is = '+string (Pr) +' W '); Py=Iy*Iy*20; disp('i) Power (Py) is in rectangular form = '+string (Py) +' W '); Pb=11.24*11.24*25; disp('i) Power (Pb) is in rectangular form = '+string (Pb) +' W '); Vro=-(Ir*10); disp('i) VOLTAGE (Vro) is in rectangular form = '+string (Vro) +' V '); Vrn=200-%i*115.475; disp('i) VOLTAGE (Vrn) is in rectangular form = '+string (Vrn) +' V '); Von=Vro+Vrn; disp('i) VOLTAGE (Von) is in rectangular form = '+string (Von) +' V ');
08cda5e0761432fcc4aa5875b19896f42c0156fc
449d555969bfd7befe906877abab098c6e63a0e8
/3792/CH4/EX4.4/Ex4_4.sce
409498d7325939eedf5bdaafd1b096be8ff2bde6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex4_4.sce
// SAMPLE PROBLEM 4/4 clc;clear;funcprot(0); // Given data m=20;// kg u_z=300;// m/s g=9.81;// m/s^2 m_a=5;// kg m_b=9;// kg m_c=6;// kg theta=45;// degree s=4000;// m x=3;// m y=4;// m r=5;// m h_a=500;// m // Calculation t=(u_z*(y/r))/g;// The time required for the shell to reach P in s h=u_z^2/(2*g);// The verticl rise in m v_a=sqrt(2*g*h_a);// m/s v_b=s/t;// m/s v_c=[(m*u_z*(x/r))-(m_b*v_b*cosd(theta)),(m_b*v_b*sind(theta)),(m_a*v_a)]/6;// m/s v_c=sqrt((v_c(1))^2+(v_c(2))^2+(v_c(3))^2);// m/s printf("\nThe velocity which fragment C has immediately after the explosion,v_C=%3.0f m/s",v_c);
cd84162017ac06e564deb140a1abf7f71e33999c
449d555969bfd7befe906877abab098c6e63a0e8
/1736/CH5/EX5.3/Ch05Ex3.sce
b1bacbd2c917c7c9275c15f0e7dab1d7f337712c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
301
sce
Ch05Ex3.sce
// Scilab Code Ex5.3: Page-177 (2006) clc; clear; n_Na = 2.65e+22; // electronic concentration of Na, per cm cube k_F = (3*%pi^2*n_Na)^(1/3); // Fermi wave vector, per cm printf("\nThe fermi momentum of Na = %4.2e per cm", k_F); // Result // The fermi momentum of Na = 9.22e+07 per cm
28a2d5ccddf3560f450e9ddc978648f5f45f2cfb
449d555969bfd7befe906877abab098c6e63a0e8
/24/CH24/EX24.1/Example24_1.sce
5368764ff134ad351574369efe9e286a53bab468
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
303
sce
Example24_1.sce
exec('degree_rad.sci', -1) //Given that R = 1 //(say) E = 1 //(say) A = 1 //cuve surface area of cylinder(say) //Sample Problem 24-1 printf("**Sample Problem 24-1**\n") flux = E*A + (-E*A) + E*A*cos(dtor(90)) printf("The net flux passing through the cylinder is equal to %fN.m^2/C", flux)
bf5a7f8e3b7406ba95861578f5857c121a6278c3
449d555969bfd7befe906877abab098c6e63a0e8
/1379/CH12/EX12.1.5/example12_5.sce
0a57d1e5f5bda11ac7e9ab832720e29bf999a0f1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
302
sce
example12_5.sce
//example 12.5 clc; funcprot(0); // Initialization of Variables l=25; g = 9.81; pi=%pi; rhos=2690;//density of ore emin=0.6; emax=0.8; //calculation Pmax=rhos*(1-emin)*g*l; disp(Pmax,"The maximum pressure drop in (N/m^2):"); Pmin=rhos*(1-emax)*g*l; disp(Pmin,"The minimum pressure drop in (N/m^2):");
7e8e2956a281d5c4c504cf9553795d67b9d1a60f
449d555969bfd7befe906877abab098c6e63a0e8
/1640/CH1/EX1.12/1_12.sce
41ab014b9c4adad441cb6f9765883fbe9eb6fa74
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
301
sce
1_12.sce
clc //initialisation of variables w= 62.4 //lb/ft^3 a= 60 //degrees l= 18 //ft b= 4 //ft W= 8000 //lb //CALCULATIONS P= w*b/(sind(a)*2) h= ((b/(12*(sind(a))^3))*(sind(a))^2/(b/(sind(a)*2)))+0.5 h1= (1-h)/sind(a) x= ((l*W)/(h1*P))^(1/3) //RESULTS printf ('Level of water = %.2f ft ',x)
a2f83253dee10093921d1d577783e07f4b70af5a
449d555969bfd7befe906877abab098c6e63a0e8
/2339/CH4/EX4.11.1/Ex4_11.sce
a9152485831a9936f8cff42851fa7ea5e33df670
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
368
sce
Ex4_11.sce
clc clear //At 20 degree Celcius Cpw=4.187; //in kJ/kg Tw=20; H1=Cpw*Tw; //At 8 bar condition m=4; //mass in kg Cps=2.1; //in kJ/kg Tsat=170.4+273; //in K Hg=2769.1; //in kJ/kg Tsup=200+273; //in K H2=Hg+(Cps*(Tsup-Tsat)); Q=m*(H2-H1); printf('Heat to be added: %3.1f kJ',Q); printf('\n');
ab5ee74ac099c0b1de8f216f5b01ce4ac42e9acf
e176c804d3e82d065a9c9635dad92da21c1483a9
/libs/writepbm.sci
2eb0d2cb2d1bcbe87b2c08e359777cb9d23b3ff8
[ "MIT" ]
permissive
Exia-Aix-2016/ExoLife
38f7d5e54a1fd26333f19d99a8b63f0d64cc4c4c
a88d4bc3b852f8a85b6c8cc0979ced29fb28b751
refs/heads/master
2021-09-07T01:47:04.742247
2018-02-15T11:57:47
2018-02-15T11:57:47
120,471,380
1
0
null
null
null
null
UTF-8
Scilab
false
false
297
sci
writepbm.sci
// writing image PGM RAW (8 bits) (PBM) // usage: writepbm(img,'image.pbm'); function writepbm(image,filename) fd=mopen(filename,'wb'); s=size(image); mputl('P5',fd); mputl(string(s(1)),fd); mputl(string(s(2)),fd); mputl("255",fd); mput(image,'uc'); mclose(); endfunction
0f25ae354a33ab60f5723b526e84b8ea38e8fe16
449d555969bfd7befe906877abab098c6e63a0e8
/1271/CH7/EX7.5/example7_5.sce
d55d17ef3390cb79580f5dd95221201091dc4bd4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
example7_5.sce
clc // Given that A = 0.05// amplitude in meter T = 10 * %pi // time period of s.h.m. in sec // Sample Problem 5 on page no. 7.24 printf("\n # PROBLEM 5 # \n") v = A * (2 * %pi / T) a = A * (2 * %pi / T)^2 printf("\n Standard formula used \n v = A * (2 * pi / T). \n a = A * (2 * pi / T)^2. \n ") printf("\n Maximum velocity = %e meter/sec,\n acceleration = %e m/sec^2",v,a)
4eb8c9e49dbaf5a88d20b6279ea8d7d7399c2f8e
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.5/Unix-Windows/scilab-2.5/tests/examples/intsplin.man.tst
0fab7e3f551b0f103df2a4d1688480e9a5fc0b5c
[ "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
47
tst
intsplin.man.tst
clear;lines(0); t=0:0.1:%pi intsplin(t,sin(t))
0ff52fbcbb16f4b2e51e9abde245d7bedd218ef7
449d555969bfd7befe906877abab098c6e63a0e8
/842/CH9/EX9.33/Example9_33.sce
54c9c3785871f27348537b95a8af0b807ea899fe
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
200
sce
Example9_33.sce
//clear// //Example9.33:Unilateral Laplace Transform:Time Shifting Property //x(t) = exp(-a(t+1)).u(t+1) syms t s; a = 2; X = laplace('%e^(-a*(t+1))',t,s); disp(X) //Result //%e^-a/(s+a)
e432fc4529f156838df03636d5c99d6ae97e6df4
449d555969bfd7befe906877abab098c6e63a0e8
/323/CH2/EX2.63/ex2_63.sci
05d08ed047ccc4fca0086f6d6c7f2d1037f6b44e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
350
sci
ex2_63.sci
//Chapter 2,Ex2.63,Pg2.79 clc; disp("Refer to the diagram shown in the figure") A=[-1 1;12 0] B=[2;55] I=A\B printf("\n I1=%.2f A \n",I(1)) printf("\n I2=%.2f A \n",I(2)) printf("\n In=%.2f A \n",I(2)) //Calculation of Rn Rn=12*4/(12+4) printf("\n Rn=%.0f ohms \n",Rn) //Calcuation of Il Il=6.58*Rn/(Rn+8) printf("\n Il=%.2f A \n",Il)
d8bc6b52725bf4757b2ab4220998a73018426bd3
449d555969bfd7befe906877abab098c6e63a0e8
/527/CH1/EX1.4/1_4exam.sce
5f6bc69c0e96e1245070b8750629616548287a98
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
645
sce
1_4exam.sce
//Engineering and Chemical Thermodynamics //Example 1.3 //Page no :27 clear ; clc //From Ideal gas law we have v=(R*T)/P //Given data P = 1.4 ; //[MPa] P_low = 1 ;//[MPa] P_high = 1.5;//[MPa] //At T=333*C from interpolation we have v_cap_P1_5 = 0.18086 ;//[m^3/kg] v_cap_P1 = 0.27414 ;//[m^3/kg] //Molar volume is inversely proportional to pressure v_cap_P1_4 = v_cap_P1 +(v_cap_P1_5 - v_cap_P1)*((1/P - 1/P_low)/(1/P_high - 1/P_low)); x=(0.19951-0.19418)/0.19418*100 ; disp(" Example: 1.4 Page no : 28") ; printf('\n Specific volume (m^3/kg) = %g',v_cap_P1_4); printf('\n Percentage difference = %g',x);