blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
6
214
content_id
stringlengths
40
40
detected_licenses
listlengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
6
87
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
15 values
visit_date
timestamp[us]date
2016-08-04 09:00:04
2023-09-05 17:18:33
revision_date
timestamp[us]date
1998-12-11 00:15:10
2023-09-02 05:42:40
committer_date
timestamp[us]date
2005-04-26 09:58:02
2023-09-02 05:42:40
github_id
int64
436k
586M
star_events_count
int64
0
12.3k
fork_events_count
int64
0
6.3k
gha_license_id
stringclasses
7 values
gha_event_created_at
timestamp[us]date
2012-11-16 11:45:07
2023-09-14 20:45:37
gha_created_at
timestamp[us]date
2010-03-22 23:34:58
2023-01-07 03:47:44
gha_language
stringclasses
36 values
src_encoding
stringclasses
17 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
1 class
length_bytes
int64
5
10.4M
extension
stringclasses
15 values
filename
stringlengths
2
96
content
stringlengths
5
10.4M
38531c4309d99d41f02959b71f8e2ff31ab8c728
449d555969bfd7befe906877abab098c6e63a0e8
/1976/CH6/EX6.11/Ex6_11.sce
2872ebe5aa9c1af64a1b4f225b6c4f8f6a29d2ac
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,135
sce
Ex6_11.sce
//Determine the output voltage //Page 344 clc; clear; Area=(5.08*3.75)*(10^-4); //Area projected by the cathode Is=12*(10^-6); //Sensitivity Rl=1.5*(10^6); // Load of operation //Function to calculate the output voltage for each case deff('y=volt(a,b)','y=Area*a*Is*Rl/(b^2)'); //Case 1 CP=60; //Lamp intensity D=1.8; //Vertical distance of the lamp from the cell V1=volt(CP,D); //Case 2 CP=6; //Lamp intensity D=0.5; //Vertical distance of the lamp from the cell V2=volt(CP,D); //Case 3 W=100; //Wattage of the lamp eff=20; //eficacy of the lamp CP=W*eff/(4*%pi); //Lamp intensity D=2; //Vertical distance of the lamp from the cell V3=volt(CP,D); printf('The voltage output of the cells are :\n') printf('a) 60 CP lamp at 1.8m : %g V\n',V1) printf('b) 6 CP lamp at 0.5m : %g V\n',V2) printf('c) A 100W lamp having a efficacy of 20 lumens/watt at 2m : %g V\n',V3)
76f679b039c1762fbf8e53cfa88dd54e84ac349e
053ef56a0fe9ad96c7d6d36936188b5c6484a9d3
/pla_korrekt.tst
714b83e217be1bcd3e0a4b880c11f4c97fc0646c
[]
no_license
beardeddragon5/PLA18
f85fc8f3eccd992d0192990e5e061f9eef2c581e
fdbb2cc83510fb099963358add82385773718ec3
refs/heads/master
2021-04-15T09:08:47.041535
2018-10-03T11:00:29
2018-10-03T11:00:29
126,306,110
0
2
null
2018-10-03T11:00:30
2018-03-22T08:48:06
C++
UTF-8
Scilab
false
false
669
tst
pla_korrekt.tst
const c = 6, d = 7, H = 72, E = 69, L = 76, O = 79, NL = 10; var n: int , f: real, e:real; procedure test; var i : int, k:real; procedure one; n := 0; begin f := k+f; i := 2; while i <=n do begin f := f + k * 1.0; f := 1.0; if i = 0 then i := 1 fi; i := i+1 end end; begin if n = 0 then n := n + 1 else n := 0 fi; n := c; call test; cint := n; ascii := NL; ascii := H; ascii := E; ascii := L; ascii := L; ascii := O; ascii := NL; argIdx := 0; while argIdx < argCount do begin call arg; ascii := argOut; argIdx := argIdx + 1 end end$
3f29b66d591dcdafe63fd757ad0e5fab953c087d
717ddeb7e700373742c617a95e25a2376565112c
/3044/CH6/EX6.3/Ex6_3.sce
15299a49f9739f73b326a542699e44149ebae884
[]
no_license
appucrossroads/Scilab-TBC-Uploads
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
refs/heads/master
2021-01-22T04:15:15.512674
2017-09-19T11:51:56
2017-09-19T11:51:56
92,444,732
0
0
null
2017-05-25T21:09:20
2017-05-25T21:09:19
null
UTF-8
Scilab
false
false
617
sce
Ex6_3.sce
// Variable declaration Mean = 12.40 // Mean( in minutes) std_dev = 2.48 // Standard deviation ( in minutes) n = 20 // sample size x = 10.63 // observes time( in minutes) // Calculation t = (x-Mean) / (std_dev/sqrt(n)) // t-value corresponding to observation v = n-1 // degree of freedom // corresponding to v = 19 , porbability that t will be below -2.861, is 0.005 (Table-4) // As 0.005 is very small probability, so data tend to refute manufacturer's claim // Result printf ( " The Data tend to refute manufacturers claim")
5b8183966b57ef64c8ce3e69e54220b77c73ccdc
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH23/EX23.2/Ex23_2.sce
3d1126ad6032083aa0745cac8b23f2e42271fedc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
304
sce
Ex23_2.sce
clear //Given E=75*1.6*10**-19 //J h=6.62*10**-34 //J s c=3*10**8 //m/s //Calculation f=E/h l=(12400/E)*1.6*10**-19 f=c/(l*10**10) //Result printf("\n Frequency of the photon is %0.0f *10**15 Hz",f*10**5)
dcbdfd58fdfa7c3736cea24f424c590bb3aa8528
449d555969bfd7befe906877abab098c6e63a0e8
/608/CH35/EX35.09/35_09.sce
c7a967aba6e6f811ae046e2193cfb4209b912c7e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
926
sce
35_09.sce
//Problem 35.09: A single-phase, 240 V/1920 V ideal transformer is supplied from a 240 V source through a cable of resistance 5 ohm. If the load across the secondary winding is 1.60 kohm determine (a) the primary current flowing, and (b) the power dissipated in the load resistance. //initializing the variables: V1 = 240; // in volts V2 = 1920; // in volts R1 = 5; // in ohms R2 = 1600; // in ohms //calculation: //The network is shown in Figure 35.12. //turn ratio N1/N2 = V1/V2 tr = V1/V2 //Equivalent input resistance of the transformer, RL = R2 r = RL*tr^2 //Total input resistance, Rin = R1 + r //primary current, I1 I1 = V1/Rin //For an ideal transformer V1/V2 = I2/I1 I2 = I1*(V1/V2) //Power dissipated in the load resistance P = RL*I2^2 printf("\n\n Result \n\n") printf("\n (a) primary current flowing is %.0f A",I1) printf("\n (b) Power dissipated in the load resistance is %.0fW",P)
4a0312b3a1a5222d03ffd8175d0cfa4227abe074
c9fb7b224ecd2667e852df2fa71650e0d151ff40
/Graph Results/compare_results.sci
8fcfec706ce74aecef91a10a75b6449c285a86cf
[]
no_license
janeriongcol/ndsg-chupacabra
13a2d3983fa57ae411fa9b665d255e5e7ed00d58
bafd668a8247b965aee9d2482f0ead4ea6d158a3
refs/heads/master
2021-01-18T14:05:38.927008
2014-01-08T14:31:45
2014-01-08T14:31:45
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
940
sci
compare_results.sci
di ="C:\Users\LaBryan\Documents\GitHub\ndsg-chupacabra" trad_fn = "\Traditional P2P-CDN\data_traditional_" tsis_fn = "\tsis\data_gcp2p_" fn_arr = ["Utilization.txt", "ConnectionSetUpTime.txt", "PlaybackDelayTime.txt"] index = ["1","2","3"] disp([index' fn_arr'], "Please choose among the following:") choice = input("Please input index number corresponding to the file: ") choice = evstr(choice) if (choice <> 1 & choice <> 2 & choice <> 3) then disp("Stopping execution.") break end fd = mopen(di+trad_fn+fn_arr(choice),'r') res = mgetl(fd, 3) graph_title = res(1) x_title = res(2) y_title = res(3) xtitle(graph_title, x_title, y_title) data_trad = fscanfMat(di+trad_fn+fn_arr(choice)) x_arr = data_trad(1:$,1) y_arr = data_trad(1:$,2) plot(x_arr, y_arr, 'r') data_tsis = fscanfMat(di+tsis_fn+fn_arr(choice)) x_arr = data_tsis(1:$,1) y_arr = data_tsis(1:$,2) plot(x_arr, y_arr, 'b') h1=legend(["Traditional";"Orange"])
ba2b330808dc42089b4f892c6e769b873b3d3ffa
449d555969bfd7befe906877abab098c6e63a0e8
/3472/CH40/EX40.7/Example40_7.sce
33bac80b8b53ee67c1b8e86adcd3b8a6be1961da
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,056
sce
Example40_7.sce
// A Texbook on POWER SYSTEM ENGINEERING // A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar // DHANPAT RAI & Co. // SECOND EDITION // PART IV : UTILIZATION AND TRACTION // CHAPTER 2: HEATING AND WELDING // EXAMPLE : 2.7 : // Page number 732-733 clear ; clc ; close ; // Clear the work space and console // Given data l = 4.0 // Length of material(cm) b = 2.0 // Breadth of material(cm) t = 1.0 // Thickness of material(cm) l_e = 20.0 // Length of area(cm) b_e = 2.0 // Breadth of area(cm) dis = 1.6 // Distance of separation of electrode(cm) f = 20.0*10**6 // Frequency(Hz) P = 80.0 // Power absorbed(W) e_r1 = 5.0 // Relative permittivity e_r2 = 1.0 // Relative permittivity of air PF = 0.05 // Power factor // Calculations e_0 = 8.854*10**-12 // Absolute permittivity A_1 = (l_e-l)*b_e*10**-4 // Area of one electrode(sq.m) A_2 = l*b*10**-4 // Area of material under electrode(sq.m) d = dis*10**-2 // Distance of separation of electrode(m) d_1 = t*10**-2 // (m) d_2 = (d-d_1) // (m) C = e_0*((A_1*e_r2/d)+(A_2/((d_1/e_r1)+(d_2/e_r2)))) // Capacitance(F) X_c = 1.0/(2*%pi*f*C) // Reactance(ohm) phi = acosd(PF) // Φ(°) R = X_c*tand(phi) // Resistance(ohm) V = (P*R)**0.5 // Voltage applied across electrodes(V) I_c = V/X_c // Current through the material(A) // Results disp("PART IV - EXAMPLE : 2.7 : SOLUTION :-") printf("\nVoltage applied across electrodes, V = %.f V", V) printf("\nCurrent through the material, I_c = %.1f A\n", I_c) printf("\nNOTE: ERROR: Calculation mistake in the textbook solution")
074c703d19291ce3fbd1b7edd52b5979868bedd9
449d555969bfd7befe906877abab098c6e63a0e8
/1862/CH20/EX20.9/C20P9.sce
9cdd88a5484aac0d8eed1d4a411dea43f25c2f39
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
664
sce
C20P9.sce
clear clc //to find kinetic energy needed to produce Z0 //Given: //refer to sample problem 20-8 //rest energy E0 = 91.2//in GeV //rest energy of electron and positron E = 0.511//in MeV //speed of light c = 3.00e8//in m/s //Solution: //appiying fomule for energy and mass in special relativity //change in rest energy delta_E0 = E0-(2*(E*10^-3))//in GeV //coveting E into GeV //applying conservation of energy //kinetic energy needed to produce Z0 delta_K = -(delta_E0)//in GeV printf ("\n\n Change in rest energy delta_E0 = \n\n %.1f GeV" ,delta_E0); printf ("\n\n Kinetic energy needed to produce Z0 delta_K = \n\n %.1f GeV" ,delta_K);
9c466d14b9c60b558e9d037ed9db5ec7aab6450b
449d555969bfd7befe906877abab098c6e63a0e8
/181/CH4/EX4.5/example4_5.sce
9fd52c0a0eec9bd3acddda916ba1c8f58edb4133
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
736
sce
example4_5.sce
// To Compute alpha, beta and Emitter Current // Basic Electronics // By Debashis De // First Edition, 2010 // Dorling Kindersley Pvt. Ltd. India // Example 4-5 in page 209 clear; clc; close; // Given Data Ib=50*10^-6; // Base Current in mu-A Ic=5*10^-3; // Collector Current in mA // Calculations Ie=Ic+Ib; beta_bjt=Ic/Ib; alpha=Ic/Ie; printf("(a)The value of the Emitter Current is %0.2e A \n",Ie); printf("(b)The value of beta gain of the BJT is %0.0f \n",beta_bjt); printf("(c)The value of alpha gain of the BJT is %0.3f \n",alpha); // Results // (a) The value of the Emitter Current is 5.05 mA // (b) The value of the beta gain of the BJT is 100 // (c) The value of the alpha gain of the BJT is 0.990
5fd4a4a2346233e952404fd2446dec2940bd832f
449d555969bfd7befe906877abab098c6e63a0e8
/98/CH9/EX9.15/example9_15.sce
6264df310d3c3634bedc6cb6e4cbf72db775ae12
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
example9_15.sce
//Chapter 9 //Example 9_15 //Page 226 clear;clc; f=50; v=132*1e3; d1=4; d2=4; d3=8; r=1e-2; deq=(d1*d2*d3)^(1/3); printf("Deq = %.2f m \n\n", deq); e0=8.854*1e-12; c=2*%pi*e0/log(deq/r); printf("Capacitance of each conductor to nuetral = %.4f uF/km \n\n", c*1e9); cn=c*1e9*100; printf("Capacitance/phase for 100km line = %.4f uF/km \n\n", cn); ic=v/sqrt(3)*(2*%pi*f)*cn/1e6; printf("Charging current per phase= %.2f A \n\n", ic);
bb9377f41b30b88c41d0fcaa06b5ed951df765d8
1573c4954e822b3538692bce853eb35e55f1bb3b
/DSP Functions/zpkrateup/test_4.sce
3ad9a2a908ba8bb995859f2ea9bc1bc058b6434a
[]
no_license
shreniknambiar/FOSSEE-DSP-Toolbox
1f498499c1bb18b626b77ff037905e51eee9b601
aec8e1cea8d49e75686743bb5b7d814d3ca38801
refs/heads/master
2020-12-10T03:28:37.484363
2017-06-27T17:47:15
2017-06-27T17:47:15
95,582,974
1
0
null
null
null
null
UTF-8
Scilab
false
false
162
sce
test_4.sce
// Test # 4 : Incorrect number of output Arguments exec('./zpkrateup.sci',-1); [z,p,k,n,d,e]=zpkrateup(3,2,8,2); //!--error 59 //Wrong number of output arguments
d6142838a763beffcff90f47df3913e846bcbbac
449d555969bfd7befe906877abab098c6e63a0e8
/2627/CH1/EX1.3/Ex1_3.sce
c13c34662d64861ac422219ec043d72af2d08bfd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex1_3.sce
//Ex 1.3 clc;clear;close; format('v',6); Vs=100;//V(Supply voltage) R1=40;//ohm R2=50;//ohm R3=70;//ohm R=R1+R2+R3;//ohm(Equivalent resistance) I=Vs/R;//A(Current in the circuit) disp(I,"Circuit current(A)");
1ca1499eeaef0b29a5235fc4faeb9e6ceef26db1
6813325b126713766d9778d7665c10b5ba67227b
/Chapter6/Ch_6_Eg_6.36.sci
d95b55e4e68dc7ca62506d51398878f677f54f49
[]
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
449
sci
Ch_6_Eg_6.36.sci
// A program to illustrate a use of a try-catch statement. function test_try(a) disp("START") mprintf ("\ta is %s\n", string(a)); try disp ("Executing normal code") c=a+10; // Error when a is a string disp(c); catch disp ("Error occurred") end disp("END"); endfunction // Main program test_try(10); test_try('a'); // Calling the function with an argument with wrong data type.
bb76a37d67c41f1952686c5a19c5fa1c9d509c39
449d555969bfd7befe906877abab098c6e63a0e8
/1967/CH13/EX13.2/13_2.sce
94801f0708805f8356273d73103068325ca52ada
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
13_2.sce
clc //initialisation of variables clear k1= 4600 k2= -8.64 k3= 1.86*10^-3 k4= -0.12*10^-6 k5= 12.07 T= 600 //K //CALCULATIONS Kf= %e^(k1*(1/T)+k2*log10(T)+k3*T+k4*T^2+k5) //RESULTS printf ('Kf = %.3f ',Kf)
f30fb1ccdd66ca612f84cf76122055ed8cd925e9
5a05d7e1b331922620afe242e4393f426335f2e3
/macros/bohmanwin.sci
8f391c89ea2385439e99d28a752621f00f0e36e9
[]
no_license
sauravdekhtawala/FOSSEE-Signal-Processing-Toolbox
2728cf855f58886c7c4a9317cc00784ba8cd8a5b
91f8045f58b6b96dbaaf2d4400586660b92d461c
refs/heads/master
2022-04-19T17:33:22.731810
2020-04-22T12:17:41
2020-04-22T12:17:41
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
457
sci
bohmanwin.sci
function w = bohmanwin (m) funcprot(0); rhs= argn(2); if (rhs ~= 1) error("Wrong Number of input arguments"); end if (~ (isscalar (m) & (m == fix (m)) & (m > 0))) error ("bohmanwin: M must be a positive integer"); end if (m == 1) w = 1; else N = m - 1; n = -N/2:N/2; w = (1-2.*abs(n)./N).*cos(2*%pi.*abs(n)./N) + (1/%pi).*sin(2*%pi.*abs(n)./N); w(1) = 0; w(length(w))=0; w = w'; end endfunction
35715133b89b9ce486419958673b73247808f900
f8bb2d5287f73944d0ae4a8ddb85a18b420ce288
/Scilab/bode.sce
55a16b4caa76a595e36a10cbd32ca625d89c367c
[]
no_license
nishizumi-lab/sample
1a2eb3baf0139e9db99b0c515ac618eb2ed65ad2
fcdf07eb6d5c9ad9c6f5ea539046c334afffe8d2
refs/heads/master
2023-08-22T15:52:04.998574
2023-08-20T04:09:08
2023-08-20T04:09:08
248,222,555
8
20
null
2023-02-02T09:03:50
2020-03-18T12:14:34
C
UTF-8
Scilab
false
false
445
sce
bode.sce
clear all s = %s/2/%pi; Ks = [2 2.5 3]; colors = [1 2 3]; for i = 1:3; K = Ks(i) G = K/(1+s); sysG = syslin('c',G); frq = logspace(-4,2,100); [frq1,rep] = repfreq(sysG,frq); [db,phi] = dbphi(rep); scf(1) cl = colors(i); subplot(2,1,1) plot2d(frq1,db,cl,logflag="ln",rect=[1e-3,-80,1e2,10]); xgrid() subplot(2,1,2) plot2d(frq1,phi,cl,logflag="ln",rect=[1e-3,-100,1e2,10]); xgrid() scf(2) nyquist(sysG,0,100); end
cbc9fbea95a830e3ce9021b8f239acda3df2667b
449d555969bfd7befe906877abab098c6e63a0e8
/3755/CH2/EX2.29/Ex2_29.sce
0ae2c41e364b17615ee1cb8161dc736f6401d455
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
291
sce
Ex2_29.sce
clear // // // //Variable declaration a=1; //assume n=2; //number of atoms //Calculations r=a*sqrt(3)/4; //radius of atom V=4*%pi*r^3/3; //volume f=n*V*100/a^3; //packing fraction //Result printf("\n packing fraction is %0.0f percentage",f)
0b65831011a8bbfedc7b844de3ba01530d0c4edb
397456b742a46d88c251aa168bfe794903987f93
/Ions Motion Optimization Algorithm/standard/scilab/ions-motion-o.sce
c27e486e596839c1af59b7822ddb25d4ae06643a
[]
no_license
JonesCG/PROJECT-NIOA
b5dcc7820d818369a4115fbb34b0f7ba02d7a129
7e6a3aa9a5deda6aa4eec9f4d523556844593c8b
refs/heads/master
2022-08-16T14:06:54.967718
2020-05-18T08:17:47
2020-05-18T08:17:47
264,872,793
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,686
sce
ions-motion-o.sce
clc clear exec('objective.sce'); disp('RUNNING...') POPSIZE = 50 DIM = 2 UPPER = 100 LOWER = -100 CSIZE = POPSIZE/2 ASIZE = POPSIZE/2 MAXITER = 50 rand('seed',getdate('s')) C = rand(CSIZE,DIM).*(UPPER-LOWER) + LOWER CFIT = F1(C) A = rand(ASIZE,DIM).*(UPPER-LOWER) + LOWER AFIT = F1(A) [BESTFIT IND] = min([CFIT;AFIT]) GBESTFIT = BESTFIT GBESTPOS = [C;A](IND,:,:) xtitle("INITIALIZATION") square(LOWER,LOWER,UPPER,UPPER) plot([A;C](:,1),[A;C](:,2),'b.') plot(GBESTPOS(:,1),GBESTPOS(:,2),'g.') xs2png(gcf(),'gif/imo/ITER0.png') clf() for ITER=1:MAXITER //disp(ITER) // sort cations and anions [CFIT CSORTIND] = gsort(CFIT,'lr','i') C = C(CSORTIND,:) [AFIT ASORTIND] = gsort(AFIT,'lr','i') A = A(ASORTIND,:) // get best and worst cation CBESTFIT = CFIT(1) CBEST = C(1,:) CWORSTFIT = CFIT(CSIZE) CWORST = C(CSIZE,:) // get best and worst anion ABESTFIT = AFIT(1) ABEST = A(1,:) AWORSTFIT = AFIT(ASIZE) AWORST = A(ASIZE,:) //calculate force of cation and anion AD = abs(A - repmat(CBEST,[ASIZE 1])) AF = 1./(1 + exp((-0.1)./(AD))) CD = abs(C - repmat(ABEST,[CSIZE 1])) CF = 1./(1 + exp((-0.1)./(CD))) // update cation and anion A = A + AF.*(repmat(CBEST,[ASIZE 1]) - A) C = C + CF.*(repmat(ABEST,[CSIZE 1]) - C) if CBESTFIT>=CWORSTFIT/2 & ABESTFIT>=AWORSTFIT/2 Q1 = grand(ASIZE,DIM,"unf",-1,1) Q2 = grand(CSIZE,DIM,"unf",-1,1) AT = A + Q1.*repmat(CBEST,[ASIZE 1]) CT = C + Q2.*repmat(ABEST,[CSIZE 1]) if rand()>0.5 AT = A + Q1.*(repmat(CBEST,[ASIZE 1])-1) end if rand()>0.5 CT = C + Q2.*(repmat(ABEST,[CSIZE 1])-1) end A = AT C = CT if rand()<0.1 C = rand(CSIZE,DIM).*(UPPER-LOWER) + LOWER A = rand(ASIZE,DIM).*(UPPER-LOWER) + LOWER end end A = ammend(A,UPPER,LOWER) C = ammend(C,UPPER,LOWER) //A = penalty(A,ubx,lbx,lby,uby) //C = penalty(C,ubx,lbx,lby,uby) AFIT = F1(A) CFIT = F1(C) // get GBEST [BESTFIT IND] = min([AFIT;CFIT]) if BESTFIT < GBESTFIT GBESTFIT = BESTFIT GBESTPOS = [A;C](IND,:,:) end FITRUN(ITER) = GBESTFIT ALL = [A;C] xtitle("ITER "+string(ITER)) square(LOWER,LOWER,UPPER,UPPER) //plot(A(:,1), A(:,2), 'bx') //plot(C(:,1),C(:,2),'bx') plot(ALL(:,1),ALL(:,2),'b.') plot(GBESTPOS(:,1),GBESTPOS(:,2),'g.') xs2png(gcf(),'gif/imo/ITER'+string(ITER)+'.png') clf() end //plot((1:MAXITER)',FITRUN,'g-')
0b6ded62d47535d2c124d3276c9ce7e6f23ab963
c557cd21994aaa23ea4fe68fa779dd8b3aac0381
/test/multigen.tst
5f9fc538bd1939ea32180e22ffba8b4f1561bb8e
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
dougsong/reposurgeon
394001c0da4c3503bc8bae14935808ffd6f45657
ee63ba2b0786fa1b79dd232bf3d4c2fe9c22104b
refs/heads/master
2023-03-09T15:22:45.041046
2023-02-25T08:33:06
2023-02-25T08:33:06
280,299,498
1
0
NOASSERTION
2023-02-25T08:33:08
2020-07-17T01:45:32
Go
UTF-8
Scilab
false
false
78
tst
multigen.tst
## Test conversion of multiproject repo read <multigen.svn prefer git write -
3e8a7ead468330a554284916043b970c5394a5d6
449d555969bfd7befe906877abab098c6e63a0e8
/3872/CH4/EX4.3/Ex4_3.sce
41173d8d46314fbc37d6d71d2787c614f677337c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,176
sce
Ex4_3.sce
// Book - Power System: Analysis & Design 5th Edition // Authors - J. Duncan Glover, Mulukutla S. Sharma, Thomas J. Overbye // Chapter - 4 : Example 4.3 // Scilab Version 6.0.0 : OS - Windows clc; clear; f = 60; // Single Phase line operating fruquency in Hz S = 12; // Strand Copper conductors Dxy = 5; // Geometrical Mean Distance between conductor centers in ft Dxx =0.01750; // Geometrical Mean Radiance of Copper Conductor in feet from Table A.3 Dyy = Dxx; l = 20; // Line length in miles Lx = (2*10^-7)*log(Dxy/Dxx)*1609*l; // Line Inductance in Henry per conductor Ly = Lx; L = Lx+Ly; // Total Inductance in Henry per Circuit Xl = (2*%pi*f*L); // Total Inductive Reactance in Ohm per circuit printf('Line Inductance is (Lx) = %f H per conductor',Lx); printf('\nTotal Inductance is (L) = %0.5f H per circuit',L); printf('\nTotal Inductive Reactance is (Xl) = %0.2f Ohm per circuit',Xl);
9bb0ed4dff04794be0b91d75d8362b7f87612179
449d555969bfd7befe906877abab098c6e63a0e8
/1592/CH6/EX6.6/Example_6_6.sce
cbd3ce61e98c044bc1350adf870151c51e73ea03
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
332
sce
Example_6_6.sce
//Scilab Code for Example 6.6 of Signals and systems by //P.Ramakrishna Rao //Sampling Frequency / Nyquist Rate clc; clear; syms t; x=12*cos(800*%pi*t)*cos((1800*%pi*t))^2; disp(x,'x(t)'); disp('Maximum Frequency component present: 2200 Hz'); fs=2*2200; disp(fs,'Minimum Sampling Frequency to avoid distortion is(Hz):');
0e6fa375111e2fe6563566ac53f6f248e24e36f7
449d555969bfd7befe906877abab098c6e63a0e8
/2498/CH1/EX1.21/ex1_21.sce
91406cc7f78e11a1acb97bc8391ac2c158556a04
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
467
sce
ex1_21.sce
// Exa 1.21 clc; clear; close; format('e',8) // Given data A = 0.001;// in cm^2 l = 20;// in µm l = l * 10^-4;// in cm V = 20;// in V I = 100;// in mA I = I * 10^-3;// in A R = V/I;// in ohm // R = l/(sigma*A); sigma = l/(R*A);// in (ohm-cm)^-1 miu_n = 1350;// in cm^2/V-s q = 1.6*10^-19;// in C // sigma = n*q*miu_n or // The concentration of donor atoms n = sigma/(q*miu_n);// in cm^-3 disp(n,"The concentration of donor atoms in cm^-3 is");
265e75d17fc2254b2eb8cfbb516057a2e9e71f2b
449d555969bfd7befe906877abab098c6e63a0e8
/608/CH40/EX40.24/40_24.sce
6eb008765cea8072e115e4ee2211a9515cd5ca83
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
630
sce
40_24.sce
//Problem 40.24: Determine the strength of a uniform electric field if it is to have the same energy as that established by a magnetic field of flux density 0.8 T. Assume that the relative permeability of the magnetic field and the relative permittivity of the electric field are both unity. //initializing the variables: B = 0.8; // in Tesla A = 500E-6; // in m2 l = 0.002; // in m u0 = 4*%pi*1E-7; ur = 1; e0 = 8.85E-12; er = 1; //calculation: //energy stored in mag. field W = (B^2)/(2*u0) //electric field E = (2*W/(e0*er))^0.5 printf("\n\n Result \n\n") printf("\nelectric field strength is %.2E V/m",E)
7cca9a4f58e0a31c2af0196d4ee27ec7aa99b075
449d555969bfd7befe906877abab098c6e63a0e8
/2792/CH2/EX2.3/Ex2_3.sce
e631c7254843d3f3bdf7698be1e1d5d035f3328b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,093
sce
Ex2_3.sce
clc h=1.05*10^-34 disp("h = "+string(h)+"Js") //initializing value of reduced plancks constant or dirac constant or h-bar mo = 9.1*10^-31 disp("mo = "+string(mo)+"kg") //initializing value of mass of electron mhh =0.5*mo disp("m* = "+string(mhh)+"kg") //initializing value of heavy hole mass k = 0.1*10^10 disp("k = "+string(k)+"m^-1") //initializing value of k-value in the heavy hole band of semiconductor Ev = 0 disp("Ev= "+string(Ev)+"J")//initializing value of Energy of electron in valence band e = 1.6*10^-19 disp("e= "+string(e)+"C")//initializing value of charge of electron //(we have assumed the valence band energy Ev=0eV as it is not provided in the book) Ee= Ev-(((h^2)*(k^2))/(2*mhh)) disp("The electron energy in the valence band is ,(Ee= Ev-(((h^2)*(k^2))/(2*mhh))= "+string(Ee)+"J")//calculation Ee1= Ee/e disp("The electron energy in the valence band is ,Ee= Ee/e="+string(Ee1)+"eV")//calculation Eh= Ev+((((h^2)*(k^2))/(2*mhh))/e) disp("The hole energy in the valence band is ,(Eh= Ev+((((h^2)*(k^2))/(2*mhh))/e)= "+string(Eh)+"eV")//calculation
fe5a1d1ee255e59bae0d2c6d2872dde9943068f9
449d555969bfd7befe906877abab098c6e63a0e8
/1544/CH5/EX5.19/Ch05Ex19.sce
8ad1a1c575c732105d68bf5f4e799a833eed041f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
483
sce
Ch05Ex19.sce
// Scilab code Ex5.19: Pg 176 (2008) clc; clear; e = 30; // Induced emf, V // For simplicity, let rate of change of current i.e delta_I/delta_t = k k = 200; // Rate of change of current, ampere-second // Since e = ((-L)*delta_I)/(delta_t), solving for L L = e/k; // Self-inductance, H printf("\nThe inductance of the circuit = %4.2f H", L); // Result // The inductance of the circuit = 0.15 H
58cd166c067dee36d2f6e95f492ad8777356f8a6
449d555969bfd7befe906877abab098c6e63a0e8
/1019/CH7/EX7.11/Example_7_11.sce
68f1bac5f0f0b467ce5a582d4c0f8ec44899cfe1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
549
sce
Example_7_11.sce
//Example 7.11 clear; clc; //Given R=8.314;//gas constant in J K^-1 mol^-1 T=293;//temperature in K w2=2;//weight of the solute in g w1=100;//weight of solvent(benzene) in g M1=78;//molecular mass of solvent p1=74.66;//vapour pressure of pure benzene in mm Hg P1=74.01;//vapour pressure of benzene in the mixture in mm Hg //To determine the molecular weight of the hydrocarbon M2=(w2*M1*p1)/(w1*(p1-P1));//molecular weight of the hydrocarbon in g mol^-1 mprintf('The molecular weight of the hydrocarbon is = %f g mol^-1',M2); //end
ebf074aa58f8b2a84aece6f3999c4746927c16ab
1bb72df9a084fe4f8c0ec39f778282eb52750801
/test/SI3.prev.tst
0d2b2ea005587ea6ac8e1e11d2a3247af241f8ee
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
gfis/ramath
498adfc7a6d353d4775b33020fdf992628e3fbff
b09b48639ddd4709ffb1c729e33f6a4b9ef676b5
refs/heads/master
2023-08-17T00:10:37.092379
2023-08-04T07:48:00
2023-08-04T07:48:00
30,116,803
2
0
null
null
null
null
UTF-8
Scilab
false
false
59
tst
SI3.prev.tst
( - a^2 - 2*a*b - b^2 + x).getIsolatedSignature() = /x.01
31ba6d8959bee44f9c78a4a96097ba38ecc4a61a
449d555969bfd7befe906877abab098c6e63a0e8
/2522/CH2/EX2.3/exm2_3.sce
2351d4262698732079cbb41720996f338523aa5c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
181
sce
exm2_3.sce
//page no 43 //example no 2.3 //CALCULATING ADDRESS LINES clc; //number of address lines are given by x x={log(8192)}/{log(2)}; printf('Number of address lines= ') disp(x);
58c95479ab0def15f1fac397377f418dd89a7b02
449d555969bfd7befe906877abab098c6e63a0e8
/2855/CH10/EX10.2/Ex10_2.sce
845c69441a4e7052ad23fca7afbfc3aa8d10f88e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
605
sce
Ex10_2.sce
//Chapter 10 //page no 354 //given clc; clear ; Vpi=1; //Assumed 1 because we can not use a variable on RHS //Vpi is Violtage swing disp("for alpha=0.3"); A=0.3; //chirping //V1=(AV1p+Vp)/2 V1=(A*Vpi+Vpi)/2; printf("\n V1= %0.2f Vpi",V1) V2=V1-Vpi; printf("\n V2= %0.2f Vpi\n",V2) disp("for alpha=0.8"); A=0.8; //chirping //V1=(AV1p+Vp)/2 V1x=(A*Vpi+Vpi)/2; printf("\n V1= %0.1f Vpi",V1x) V2x=V1x-Vpi; printf("\n V2= %0.1f Vpi",V2x) printf("\n Biasing range is %0.2f Vpi &lt;= V1 &lt;= %0.2f Vpi",V1,V1x) printf("\n Biasing range is %0.1f Vpi &lt;= V2 &lt;= %0.2f Vpi",V2x,V2)
59c7026fb13e07b013ba0b5d9cc592f7c9ee67e5
b412360a5393e117e74453519c55968117ef7c7e
/REGRESSIONTESTS/help_play.tst
91b878241b39269b14fb2885fde420ce0bf06064
[]
no_license
thomas-maeder/popeye
36be3f54f8a7eea15b52a30cf23e455ed6ff44f8
732b721df67295b2c6a1c2ca00e87979f39cc0c9
refs/heads/develop
2023-09-05T13:06:45.846081
2023-08-31T02:59:55
2023-08-31T02:59:55
38,768,803
38
23
null
2023-09-14T18:35:27
2015-07-08T17:21:43
C
UTF-8
Scilab
false
false
12,575
tst
help_play.tst
White at the move, but Black in check +---a---b---c---d---e---f---g---h---+ | | 8 -K . . . . . . . 8 | | 7 . P . . . . . . 7 | | 6 . . . . . . . . 6 | | 5 . . . . . . . . 5 | | 4 . . . . . . . . 4 | | 3 . . . . . . . . 3 | | 2 . . . . . . . . 2 | | 1 . . . . . . . K 1 | | +---a---b---c---d---e---f---g---h---+ h#1.5 2 + 1 the side to play can capture the king add_to_move_generation_stack: 0 play_move: 0 is_white_king_square_attacked: 0 is_black_king_square_attacked: 1 solution finished. h#1 with set play, but black king is in check +---a---b---c---d---e---f---g---h---+ | | 8 . -K . . . . . . 8 | | 7 . . . . . . . . 7 | | 6 K . . . . . . . 6 | | 5 . . . . . . . . 5 | | 4 . . S . . . . . 4 | | 3 . . . . . . . . 3 | | 2 . . . . . . . B 2 | | 1 . . . . . . . . 1 | | +---a---b---c---d---e---f---g---h---+ h#1 3 + 1 the side to play can capture the king 1.Kb8-a8 Sc4-b6 # add_to_move_generation_stack: 21 play_move: 18 is_white_king_square_attacked: 5 is_black_king_square_attacked: 19 solution finished. hep1 (help-en passant) +---a---b---c---d---e---f---g---h---+ | | 8 . . . . . . . -K 8 | | 7 . . . . . . -P . 7 | | 6 . . . . . . . . 6 | | 5 . . . . . . . P 5 | | 4 . . . . . . . . 4 | | 3 . . . . . . . . 3 | | 2 . . . . . . . . 2 | | 1 . . . . . . . K 1 | | +---a---b---c---d---e---f---g---h---+ hep1 2 + 2 1.g7-g5 h5*g6 ep. add_to_move_generation_stack: 9 play_move: 5 is_white_king_square_attacked: 3 is_black_king_square_attacked: 5 solution finished. h001.5 +---a---b---c---d---e---f---g---h---+ | | 8 . . . . . -K . . 8 | | 7 . . . . . . . . 7 | | 6 . . . . . . . -B 6 | | 5 . . . . . . . . 5 | | 4 . . . . . . . . 4 | | 3 . . . . . . . P 3 | | 2 . . . . . . . . 2 | | 1 R . . . K . . . 1 | | +---a---b---c---d---e---f---g---h---+ h001.5 3 + 2 1...h3-h4 2.Bh6-g7 0-0-0 add_to_move_generation_stack: 384 play_move: 192 is_white_king_square_attacked: 51 is_black_king_square_attacked: 168 solution finished. h##!2 +---a---b---c---d---e---f---g---h---+ | | 8 . . . . . . . -Q 8 | | 7 . . . . . . -R B 7 | | 6 . . . . . . . . 6 | | 5 . . . . . . . . 5 | | 4 . . . . . . . . 4 | | 3 K . . . . . . . 3 | | 2 . . . . . . . . 2 | | 1 -K . . . . . . . 1 | | +---a---b---c---d---e---f---g---h---+ h##!2 2 + 3 1.Rg7-g4 Bh7-b1 2.Qh8-c3 + Ka3-a2 ##! add_to_move_generation_stack: 15132 play_move: 12053 is_white_king_square_attacked: 9827 is_black_king_square_attacked: 5808 solution finished. h##2 +---a---b---c---d---e---f---g---h---+ | | 8 . . . . . . . . 8 | | 7 . . . . . . . . 7 | | 6 . . . . . . . . 6 | | 5 . . . . . . -P . 5 | | 4 . . . . K . -K S 4 | | 3 . . . . . . P . 3 | | 2 . . . . -P . -P -Q 2 | | 1 . . . . . . . R 1 | | +---a---b---c---d---e---f---g---h---+ h##2 4 + 5 1.Kg4-h3 Ke4-f3 2.g5-g4 + Kf3*g2 ## add_to_move_generation_stack: 99152 play_move: 37763 is_white_king_square_attacked: 31333 is_black_king_square_attacked: 6584 solution finished. not 1.Qb2+ because of exact- +---a---b---c---d---e---f---g---h---+ | | 8 . . . . . . . . 8 | | 7 . . . . . . . . 7 | | 6 . . . . . . . . 6 | | 5 . Q . . . . . . 5 | | 4 . . . . . . . . 4 | | 3 -K . -P . . . . . 3 | | 2 . . . . . . . . 2 | | 1 K B . . . . . . 1 | | +---a---b---c---d---e---f---g---h---+ exact-hr#2 3 + 2 1.Qb5-e2 Ka3-b3 2.Qe2-b2 + c3*b2 # add_to_move_generation_stack: 11919 play_move: 10485 is_white_king_square_attacked: 9129 is_black_king_square_attacked: 2754 solution finished. hr#1.5 - don't write long solutions because Black must mate immediately +---a---b---c---d---e---f---g---h---+ | | 8 . . . . . . . . 8 | | 7 . . . . . . . . 7 | | 6 . . . . . . . -P 6 | | 5 . . . . . . . . 5 | | 4 . . . . . . . . 4 | | 3 -K -P . . . . . P 3 | | 2 -P . . . . . . . 2 | | 1 K . . . . . . . 1 | | +---a---b---c---d---e---f---g---h---+ hr#1.5 2 + 4 1...b3-b2 # add_to_move_generation_stack: 10 play_move: 10 is_white_king_square_attacked: 11 is_black_king_square_attacked: 2 solution finished. hr#2 - don't write long solutions because Black must mate immediately +---a---b---c---d---e---f---g---h---+ | | 8 . . . . . . . . 8 | | 7 . . . . . . . . 7 | | 6 . . . . . . . -P 6 | | 5 . . . . . . . . 5 | | 4 . . . . . . . . 4 | | 3 -K -P . . . P . . 3 | | 2 -P . . . . . . . 2 | | 1 K . . . . . . . 1 | | +---a---b---c---d---e---f---g---h---+ hr#2 2 + 4 1.f3-f4 b3-b2 # add_to_move_generation_stack: 18 play_move: 18 is_white_king_square_attacked: 18 is_black_king_square_attacked: 4 solution finished. stop solving when the goal is reached +---a---b---c---d---e---f---g---h---+ | | 8 . . . . . . . . 8 | | 7 . . . . . . . . 7 | | 6 . . . . . . . . 6 | | 5 -P . . . . . . . 5 | | 4 DU DU . . . . . . 4 | | 3 . DU DU . . . . P 3 | | 2 . . . . . . . . 2 | | 1 . . . . . . . . 1 | | +---a---b---c---d---e---f---g---h---+ hsx2 5 + 1 1.h3-h4 a5*b4 x add_to_move_generation_stack: 5 play_move: 5 is_white_king_square_attacked: 0 is_black_king_square_attacked: 0 solution finished. no solution because White must mate +---a---b---c---d---e---f---g---h---+ | | 8 . -K . . . . . . 8 | | 7 . . . . . . . . 7 | | 6 K . . . . Q . . 6 | | 5 . . . . . . . -R 5 | | 4 . . . . . . -R . 4 | | 3 . . . . . . . . 3 | | 2 . . . . . . . . 2 | | 1 . . . . . . . . 1 | | +---a---b---c---d---e---f---g---h---+ hr#1 2 + 3 1.Qf6-d8 # ?!? add_to_move_generation_stack: 76 play_move: 63 is_white_king_square_attacked: 8 is_black_king_square_attacked: 64 solution finished. PostKeyPlay not applicable - ignored ignore option postkeyplay in help play +---a---b---c---d---e---f---g---h---+ | | 8 . . . . . . . . 8 | | 7 . . . . . . . . 7 | | 6 . . . . . . . . 6 | | 5 . . . . . . . . 5 | | 4 . . . . . . . . 4 | | 3 . . . . . . . . 3 | | 2 . . . . . . . . 2 | | 1 . . . . . . . . 1 | | +---a---b---c---d---e---f---g---h---+ h#2 0 + 0 a) add_to_move_generation_stack: 0 play_move: 0 is_white_king_square_attacked: 0 is_black_king_square_attacked: 0 PostKeyPlay not applicable - ignored b) hs#2 add_to_move_generation_stack: 0 play_move: 0 is_white_king_square_attacked: 0 is_black_king_square_attacked: 0 solution finished.
04fb0b6f0bce6baba7fb0ab11d9df858c2173736
449d555969bfd7befe906877abab098c6e63a0e8
/2780/CH2/EX2.9/Ex2_9.sce
96fa37f884ea361acd44c863fdb02ddd973f9c24
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
269
sce
Ex2_9.sce
clc //to calculate wavelength of light omega=1.888*10^-2/20 //in (m) D=1.20 //distance of eye piece from the source in m twod=0.00075 //distance between two virtual sources in m lambda=omega*twod/D disp("the wavelength of light is lambda="+string(lambda)+"m")
8eb9d330ea4794b5820193e0c8f8b4a45fcf238f
449d555969bfd7befe906877abab098c6e63a0e8
/1332/CH13/EX13.7/13_7.sce
88c1182b61495fa204a1539ed5f0bc6cb4bff4a6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
504
sce
13_7.sce
//Example 13.7 //Richardson Extrapolation //Page no. 431 clc;close;clear; deff('y=f(x)','y=exp(2*x)') e=10^-4;h=0.8; D1=0; for i=1:4 printf('\n') for j=1:i if j==1 then D(i,j)=(f(h)-f(-h))/(2*h) else D(i,j)=D(i,j-1)+(D(i,j-1)-D(i-1,j-1))/(2^(2*(j-1))-1) end printf('%g\t\t',D(i,j)) end h=h/2 end printf('\n\n\t\t\t\t\t\t 2x\nHence, the derivative of the function y = f(x) = e at x=0 is D(3,3) = %g',D(i,j))
d220699c0548945ff33e501d6edc9a6142c46119
1468f13d61172c83130184bd54d023deb150303d
/test/index.tst
0d01a624f3525a5f7c1cbae0a451402e373ee9a1
[ "Apache-2.0" ]
permissive
longde123/sqlparse
2fce59d9a1fe92b26dcd92b1f0c34cca6487e5be
4b2101a6ef9d7d4a23445add164fb915e158786a
refs/heads/master
2021-01-13T12:09:04.472322
2016-10-17T13:23:26
2016-10-17T13:23:26
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
721
tst
index.tst
%%-*- mode: erlang -*- %%-*- coding: utf-8 -*- % Test control options [{tests, []}]. %% %% TESTS %% "create index on tab". "CREATE BITMAP INDEX ON tab". "create unique index s.a on s.d (f)". "create bitmap index s.a on s.d (f)". "create keylist index s.a on s.d (f)". "create hashmap index s.a on s.d (f)". "create index a on b (a:d)". "create index a on b (a:d|e:f)". "create index a on b (f) norm_with fun() -> norm end.". "create index a on b (a|d{}) norm_with fun() -> norm end. filter_with fun mod:modfun/5.". "create index name_sort on skvhACCOUNT (cvalue:NAME) norm_with fun imem_index:vnf_lcase_ascii/1. filter_with fun imem_index:iff_binterm_list_1/1.". "drop index s.a from s.b". "drop index from s.b".
b4b82f250c74329c8b6f57542750f009a6b0ecec
449d555969bfd7befe906877abab098c6e63a0e8
/2252/CH7/EX7.9/Ex7_9.sce
161f705fda6241000b03b817254b4cc88fa0df6d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
673
sce
Ex7_9.sce
//calculating capacitance Xc=4//capacitive reactance f=50 omega=2*%pi*f C=1/(omega*Xc) mprintf("Capacitance C=%f microF\n",C*1D+6) //calculating impedance R=5//resistance of circuit Z=sqrt(R^2+Xc^2) mprintf("Impedance of circuit=%f ohm\n",Z) //calculating current taken by circuit V=200 I=V/Z mprintf("Current drawn by circuit=%f A\n",I) //calculating voltage drop across the resistance Vr=I*R mprintf("Voltage drop across the resistance=%f V\n",Vr) //calculating voltage drop across the reactance Vc=I*Xc mprintf("Voltage drop across the reactance=%f V\n",Vc) //calculating power factor pf=R/Z mprintf("Power factor of the circuit=%f leading",pf)
2492fbbf860d211450fff27710a2eae203620d4e
fc5f1b90d24aeee218dc9186a13da29b38f42e78
/tests/parser_JAVA.tst
019f69e0beb63db0c1a3c7ee41cc29ac566456d1
[]
no_license
breckinloggins/cbnf
e742c1fe07f374b32185cc4bfd7ec0cf28d5fefc
a6507ea4f5f7710a2591d3a1936d2bbf241eee1c
refs/heads/master
2021-01-22T19:36:04.952416
2011-07-08T23:56:45
2011-07-08T23:56:45
2,020,610
3
0
null
null
null
null
UTF-8
Scilab
false
false
10,580
tst
parser_JAVA.tst
// From: http://infoether.com/~tom/java.bnf grammar JAVA; /***************************************** * THE JAVA LANGUAGE GRAMMAR STARTS HERE * *****************************************/ /* * Program structuring syntax follows. */ CompilationUnit : ( PackageDeclaration )? ( ImportDeclaration )* ( TypeDeclaration )+ ( "\u001a" )? ; PackageDeclaration : Modifiers "package" Name ";" ; ImportDeclaration : "import" ( "static" )? Name ( "." "*" )? ";" ; /* * Modifiers. We match all modifiers in a single rule to reduce the chances of * syntax errors for simple modifier mistakes. It will also enable us to give * better error messages. */ Modifiers : ( ( "public" | "static" | "protected" | "private" | "final" | "abstract" | "synchronized" | "native" | "transient" | "volatile" | "strictfp" | Annotation ) )* ; /* * Declaration syntax follows. */ TypeDeclaration : ";" | Modifiers ( ClassOrInterfaceDeclaration | EnumDeclaration | AnnotationTypeDeclaration ) ; ClassOrInterfaceDeclaration : ( "class" | "interface" ) IDENTIFIER ( TypeParameters )? ( ExtendsList )? ( ImplementsList )? ClassOrInterfaceBody ; ExtendsList : "extends" ClassOrInterfaceType ( "," ClassOrInterfaceType )* ; ImplementsList : "implements" ClassOrInterfaceType ( "," ClassOrInterfaceType )* ; EnumDeclaration : "enum" IDENTIFIER ( ImplementsList )? EnumBody ; EnumBody : "{" ( EnumConstant ( "," EnumConstant )* )? ( "," )? ( ";" ( ClassOrInterfaceBodyDeclaration )* )? "}" ; EnumConstant : Modifiers IDENTIFIER ( Arguments )? ( ClassOrInterfaceBody )? ; TypeParameters : "<" TypeParameter ( "," TypeParameter )* ">" ; TypeParameter : IDENTIFIER ( TypeBound )? ; TypeBound : "extends" ClassOrInterfaceType ( "&" ClassOrInterfaceType )* ; ClassOrInterfaceBody : "{" ( ClassOrInterfaceBodyDeclaration )* "}" ; ClassOrInterfaceBodyDeclaration : Initializer | Modifiers ( ClassOrInterfaceDeclaration | EnumDeclaration | ConstructorDeclaration | FieldDeclaration | MethodDeclaration | AnnotationTypeDeclaration ) | ";" ; FieldDeclaration : Type VariableDeclarator ( "," VariableDeclarator )* ";" ; VariableDeclarator : VariableDeclaratorId ( "=" VariableInitializer )? ; VariableDeclaratorId : IDENTIFIER ( "[" "]" )* ; VariableInitializer : ArrayInitializer | Expression ; ArrayInitializer : "{" ( VariableInitializer ( "," VariableInitializer )* )? ( "," )? "}" ; MethodDeclaration : ( TypeParameters )? ResultType MethodDeclarator ( "throws" NameList )? ( Block | ";" ) ; MethodDeclarator : IDENTIFIER FormalParameters ( "[" "]" )* ; FormalParameters : "(" ( FormalParameter ( "," FormalParameter )* )? ")" ; FormalParameter : Modifiers ( "final" | Annotation )? Type ( "..." )? VariableDeclaratorId ; ConstructorDeclaration : ( TypeParameters )? IDENTIFIER FormalParameters ( "throws" NameList )? "{" ( ExplicitConstructorInvocation )? ( BlockStatement )* "}" ; ExplicitConstructorInvocation : ( IDENTIFIER "." )* ( "this" "." )? ( TypeArguments )? ( "this" | "super" ) Arguments ";" ; Initializer : ( "static" )? Block ; /* * Type, name and expression syntax follows. */ Type : ReferenceType | PrimitiveType ; ReferenceType : PrimitiveType ( "[" "]" )+ | ( ClassOrInterfaceType ) ( "[" "]" )* ; ClassOrInterfaceType : IDENTIFIER ( TypeArguments )? ( "." IDENTIFIER ( TypeArguments )? )* ; TypeArguments : "<" TypeArgument ( "," TypeArgument )* ">" ; TypeArgument : ReferenceType | "?" ( WildcardBounds )? ; WildcardBounds : "extends" ReferenceType | "super" ReferenceType ; PrimitiveType : "boolean" | "char" | "byte" | "short" | "int" | "long" | "float" | "double" ; ResultType : "void" | Type ; Name : IDENTIFIER ( "." IDENTIFIER )* ; NameList : Name ( "," Name )* ; /* * Expression syntax follows. */ Expression : ConditionalExpression ( AssignmentOperator Expression )? ; AssignmentOperator : "=" | "*=" | "/=" | "%=" | "+=" | "-=" | "<<=" | ">>=" | ">>>=" | "&=" | "^=" | "|=" ; ConditionalExpression : ConditionalOrExpression ( "?" Expression ":" Expression )? ; ConditionalOrExpression : ConditionalAndExpression ( "||" ConditionalAndExpression )* ; ConditionalAndExpression : InclusiveOrExpression ( "&&" InclusiveOrExpression )* ; InclusiveOrExpression : ExclusiveOrExpression ( "|" ExclusiveOrExpression )* ; ExclusiveOrExpression : AndExpression ( "^" AndExpression )* ; AndExpression : EqualityExpression ( "&" EqualityExpression )* ; EqualityExpression : InstanceOfExpression ( ( "==" | "!=" ) InstanceOfExpression )* ; InstanceOfExpression : RelationalExpression ( "instanceof" Type )? ; RelationalExpression : ShiftExpression ( ( "<" | ">" | "<=" | ">=" ) ShiftExpression )* ; ShiftExpression : AdditiveExpression ( ( "<<" | RSIGNEDSHIFT | RUNSIGNEDSHIFT ) AdditiveExpression )* ; AdditiveExpression : MultiplicativeExpression ( ( "+" | "-" ) MultiplicativeExpression )* ; MultiplicativeExpression : UnaryExpression ( ( "*" | "/" | "%" ) UnaryExpression )* ; UnaryExpression : ( "+" | "-" ) UnaryExpression | PreIncrementExpression | PreDecrementExpression | UnaryExpressionNotPlusMinus ; PreIncrementExpression : "++" PrimaryExpression ; PreDecrementExpression : "--" PrimaryExpression ; UnaryExpressionNotPlusMinus : ( "~" | "!" ) UnaryExpression | CastExpression | PostfixExpression ; // This production is to determine lookahead only. The LOOKAHEAD specifications // below are not used, but they are there just to indicate that we know about // this. CastLookahead : "(" PrimitiveType | "(" Type "[" "]" | "(" Type ")" ( "~" | "!" | "(" | IDENTIFIER | "this" | "super" | "new" | Literal ) ; PostfixExpression : PrimaryExpression ( "++" | "--" )? ; CastExpression : "(" Type ")" UnaryExpression | "(" Type ")" UnaryExpressionNotPlusMinus ; PrimaryExpression : PrimaryPrefix ( PrimarySuffix )* ; MemberSelector : "." TypeArguments IDENTIFIER ; PrimaryPrefix : Literal | ( IDENTIFIER "." )* "this" | "super" "." IDENTIFIER | ClassOrInterfaceType "." "super" "." IDENTIFIER | "(" Expression ")" | AllocationExpression | ResultType "." "class" | Name ; PrimarySuffix : "." "super" | "." "this" | "." AllocationExpression | MemberSelector | "[" Expression "]" | "." IDENTIFIER | Arguments ; Literal : INTEGER_LITERAL | FLOATING_POINT_LITERAL | CHARACTER_LITERAL | STRING_LITERAL | BooleanLiteral | NullLiteral ; BooleanLiteral : "true" | "false" ; NullLiteral : "null" ; Arguments : "(" ( ArgumentList )? ")" ; ArgumentList : Expression ( "," Expression )* ; AllocationExpression : "new" PrimitiveType ArrayDimsAndInits | "new" ClassOrInterfaceType ( TypeArguments )? ( ArrayDimsAndInits | Arguments ( ClassOrInterfaceBody )? ) ; /* * The third LOOKAHEAD specification below is to parse to PrimarySuffix * if there is an expression between the "[...]". */ ArrayDimsAndInits : ( "[" Expression "]" )+ ( "[" "]" )* | ( "[" "]" )+ ArrayInitializer ; /* * Statement syntax follows. */ Statement : LabeledStatement | AssertStatement | Block | EmptyStatement | StatementExpression ";" | SwitchStatement | IfStatement | WhileStatement | DoStatement | ForStatement | BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement | SynchronizedStatement | TryStatement ; AssertStatement : "assert" Expression ( ":" Expression )? ";" ; LabeledStatement : IDENTIFIER ":" Statement ; Block : "{" ( BlockStatement )* "}" ; BlockStatement : LocalVariableDeclaration ";" | Statement | ClassOrInterfaceDeclaration ; LocalVariableDeclaration : Modifiers Type VariableDeclarator ( "," VariableDeclarator )* ; EmptyStatement : ";" ; StatementExpression : PreIncrementExpression | PreDecrementExpression | PrimaryExpression ( "++" | "--" | AssignmentOperator Expression )? ; SwitchStatement : "switch" "(" Expression ")" "{" ( SwitchLabel ( BlockStatement )* )* "}" ; SwitchLabel : "case" Expression ":" | "default" ":" ; IfStatement : "if" "(" Expression ")" Statement ( "else" Statement )? ; WhileStatement : "while" "(" Expression ")" Statement ; DoStatement : "do" Statement "while" "(" Expression ")" ";" ; ForStatement : "for" "(" ( Modifiers Type IDENTIFIER ":" Expression | ( ForInit )? ";" ( Expression )? ";" ( ForUpdate )? ) ")" Statement ; ForInit : LocalVariableDeclaration | StatementExpressionList ; StatementExpressionList : StatementExpression ( "," StatementExpression )* ; ForUpdate : StatementExpressionList ; BreakStatement : "break" ( IDENTIFIER )? ";" ; ContinueStatement : "continue" ( IDENTIFIER )? ";" ; ReturnStatement : "return" ( Expression )? ";" ; ThrowStatement : "throw" Expression ";" ; SynchronizedStatement : "synchronized" "(" Expression ")" Block ; TryStatement : "try" Block ( "catch" "(" FormalParameter ")" Block )* ( "finally" Block )? ; /* We use productions to match >>>, >> and > so that we can keep the * type declaration syntax with generics clean */ RUNSIGNEDSHIFT : ( ">" ">" ">" ) ; RSIGNEDSHIFT : ( ">" ">" ) ; /* Annotation syntax follows. */ Annotation : NormalAnnotation | SingleMemberAnnotation | MarkerAnnotation ; NormalAnnotation : "@" Name "(" ( MemberValuePairs )? ")" ; MarkerAnnotation : "@" Name ; SingleMemberAnnotation : "@" Name "(" MemberValue ")" ; MemberValuePairs : MemberValuePair ( "," MemberValuePair )* ; MemberValuePair : IDENTIFIER "=" MemberValue ; MemberValue : Annotation | MemberValueArrayInitializer | ConditionalExpression ; MemberValueArrayInitializer : "{" ( MemberValue ( "," MemberValue )* ( "," )? )? "}" ; /* Annotation Types. */ AnnotationTypeDeclaration : "@" "interface" IDENTIFIER AnnotationTypeBody ; AnnotationTypeBody : "{" ( AnnotationTypeMemberDeclaration )* "}" ; AnnotationTypeMemberDeclaration : Modifiers ( Type IDENTIFIER "(" ")" ( DefaultValue )? ";" | ClassOrInterfaceDeclaration | EnumDeclaration | AnnotationTypeDeclaration | FieldDeclaration ) | ( ";" ) ; DefaultValue : "default" MemberValue ;
471808d4eee9068b376761989129e3c62096d3ad
449d555969bfd7befe906877abab098c6e63a0e8
/896/CH19/EX19.5/5.sce
ea9c25fdc5164bb7cc48ddac9953aa4eafe122fb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
548
sce
5.sce
clc //Example 19.5 //Calculate how far is the concentration of 0.1% from initial interface and the volume mixed c=0.1//percent c_interface=50//percent c_original=0//percent ratio_c=(c-c_interface)/(c_original-c_interface)//dimentionless //erf(0.998)=2.15 //time required forfluid to travel 700 miles at 8ft/s is 4.57*10^5 sec t=4.57*10^5//s D=2*10^(-9)//m^2/s x=2*2.15*(D*t)^0.5//m printf("x=%f m\n",x); v0=0.355//ft^3 of liquid/ft of pipe //1 m = 3.281 ft V_mixed=2*(3.281*x)*v0//ft^3 printf("the mixed volume is %f ft^3",V_mixed);
bc85915f08d561b6487527bc1c87922d34d41244
58b5c31b2c6a551fee6e4b0f9234aa938c1e9957
/PR Regelungsrechnik - Versuch 3/Scilab/Auswertung_Praxis.sce
decaa5702b961d6f5581cf56a1b9dac06593a056
[]
no_license
unizeug/PR_Regelungsrechnik_-_Versuch_3
51fd157da10f0dc69a81e1e6e2e14506d8be1d97
aa2c957243120db8864f6d53d44f9610b66cb69b
refs/heads/master
2016-09-05T22:54:29.931828
2012-07-13T09:20:28
2012-07-13T09:20:28
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
846
sce
Auswertung_Praxis.sce
// Boris: cd "/Users/borishenckell/Documents/eclipse workspace/PR_Regelungsrtechnik_-_Versuch_3/PR Regelungsrechnik - Versuch 3" // Dirk: cd "/media/daten/workspace/PR_Regelungsrechnik_-_Versuch_3/PR Regelungsrechnik - Versuch 3/Scilab/" load('../Messwerte/Praxis/K_tilde1.dat'); K_tilde1 = A load('../Messwerte/Praxis/KposI1.dat'); KposI1 = A load('../Messwerte/Praxis/K_tilde_sp1.dat'); K_tilde_sp1 = A //[...].values(:,1) = Temperatur //[...].values(:,2) = Heizleistung ??? scf(1);clf(1); plot(K_tilde1.time-15,K_tilde1.values(:,1),'k'); plot(KposI1.time-15,KposI1.values(:,1),'r'); plot(K_tilde_sp1.time-15,K_tilde_sp1.values(:,1),'b'); xlabel('Zeit [s]'); ylabel('temp [°C]'); legend('PID','Pade-Approximation','Smith-Prädiktor',4); title('Führungssprungantwort'); // --- pdf abspeichern --- // //xs2pdf(1,'../Bilder/5.pdf');
446970ad82be86f6b954c76f379bf49a33e7a8b3
449d555969bfd7befe906877abab098c6e63a0e8
/1514/CH8/EX8.1/ch8_1.sce
ad6443366ee145b994168b5a4e181b84c0cfba76
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
391
sce
ch8_1.sce
//chapter 8 //example 8.1 //page 229 clear all; clc ; //from drain characteristics of FET Vgs=[0 -1 -2 -3 -4.5];//gate to source voltage in volts Id=[9 5.4 2.8 0.9 0];//drain current in mA plot(Vgs,Id,'colo','red','marker','*','markeredg','blue','markersize',10) xtitle('FET transfer characteristics','gate to source voltage in volts','drain current in mA') replot([-5 ,0,1,10])
dc82c31fa14d484756effca1d7a6d5d2c993d33b
129a8f0ac630e32874414b6752b4a511b24d78de
/scripts_bkp_original/tst/tst2/remoto_1.tst
4b24bc94fc11262a8361e548e1de1f6f8816661f
[]
no_license
mariomartinezjr/Scripts_dba
be63af1f579ed261e58336a6e3366822f2683c08
3f5707a6220ee600b87aa59467092bea4f61eb2c
refs/heads/master
2021-07-07T09:04:38.230382
2017-09-30T02:57:08
2017-09-30T02:57:08
105,334,010
0
1
null
null
null
null
UTF-8
Scilab
false
false
1,065
tst
remoto_1.tst
123456789012345678901234567890123456789012345678901234567890 123456789012345678901234567890123456789012345678901234567890 123456789012345678901234567890123456789012345678901234567890 123456789012345678901234567890123456789012345678901234567890 123456789012345678901234567890123456789012345678901234567890 123456789012345678901234567890123456789012345678901234567890 123456789012345678901234567890123456789012345678901234567890 123456789012345678901234567890123456789012345678901234567890 abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdef tu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu abcdefghijklmnopqrstu
c09cf2917605a0d13f821db8b08dacd4d12dfac6
d0080e0eb466760ff9223b7198868b34c6783607
/Apprentisage/exercices/visualisation.sce
3996bbfb41dd1519688e224b69c12053daa8b24a
[ "BSD-3-Clause" ]
permissive
vanthonguyen/m2
fc8b80f19a456e0f038f28c3e03a88e85e1c17c3
41b9380951a5e241cab591e186af80c40e4be663
refs/heads/master
2020-12-26T01:12:07.179725
2014-05-13T08:17:28
2014-05-13T08:17:28
19,494,479
1
0
null
null
null
null
UTF-8
Scilab
false
false
336
sce
visualisation.sce
[w c s] = rbfn(X_train, T_train, 30, 1.5) x1 = -3:0.1:3; x2 = -3:0.1:3; [X1, X2] = meshgrid(x1, x2) for i = 1:size(X1, 1) for j = 1:size(X1, 2) Y(i,j) = rbf([X1(i, j), X2(i,j)], w, c, s); end end surf(X1,X2,Y) //test for i = 1: size(X_train, 1) R1(i) = rbf(X_train(i,:), w, c, s); end //plot(R1, T_train, '.')
bc3514dacca0bb3b0ba269d30bb2f978c3ed434b
449d555969bfd7befe906877abab098c6e63a0e8
/767/CH7/EX7.5.1/Ch07Exa7_5_1.sci
7dc2c739265790d5acac3a2113532e5b508a284d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
625
sci
Ch07Exa7_5_1.sci
// Scilab code Exa7.5.1: To calculate the electric field at the surface of wire of G.M. counter :P.no. 311 (2011) V = 2000; // Potential difference, V a = 0.01; // Radius of the wire, cm b = 2; // Radius of the cylinderical tube, cm r = 0.01; // Radius of the wire, m E_r = V/(r*log(b/a)); // the electric field at the surface, V/m printf("\n The electric field at the surface : %d V/cm", E_r) // Result // The electric field at the surface : 37747 V/cm
4c6df1350fb8b2a5b8e9699f9c4119fee46f6ddd
449d555969bfd7befe906877abab098c6e63a0e8
/2150/CH4/EX4.32/ex4_32.sce
0f064f5a4b742442035e9f3448c2c5b273855fc1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
729
sce
ex4_32.sce
// Exa 4.32 clc; clear; close; // Given data V_BB = 10;// in V V_BE = 0;// in V R_B = 470;// in kohm R_B = R_B * 10^3;// in ohm I_B = (V_BB - V_BE)/R_B;// in A bita = 200; I_C = bita*I_B;// in A V_CC = 10;// in V R_C = 820;// in ohm V_CE = V_CC - (I_C*R_C);// in V disp("Part (a) : For ideal approximation") disp(V_CE,"The collector emitter voltage in V is"); P_D = V_CE * I_C;// in W disp(P_D*10^3,"Power dissipation in mW is"); disp("Part (b) : For second approximation") V_BE = 0.7;// in V I_B = (V_BB-V_BE)/R_B;// in A I_C = bita*I_B;// in A V_CE = V_CC - (I_C*R_C);// in V disp(V_CE,"The collector emitter voltage in V is"); P_D = V_CE * I_C;// in W disp(P_D*10^3,"Power dissipation in mW is");
8a5eb3ba9ef8c63ea4ee89f667959180d29dbc3a
449d555969bfd7befe906877abab098c6e63a0e8
/1382/CH2/EX2.34/EX_2_34.SCE
2a8694f5d8d6a4dd49400be5ac997c693bff9e47
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
171
sce
EX_2_34.SCE
// Example 2.33:Ib clc; clear; close; Ie=10;//Emitter current in mA Ic=9.95;//Collector current in mA Ib=Ie-Ic;// Base Current in mA disp(Ib,"Base Current in mA")
a724ac096a8f33a02b37f5cc8bc84f6d8b2f540d
449d555969bfd7befe906877abab098c6e63a0e8
/2969/CH4/EX4.15/Ex4_15.sce
67f7ac22864f168a8ce1309f410c37e0ef775dec
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
687
sce
Ex4_15.sce
clc clear //DATA GIVEN p=120; //pressure of steam v=0.01721; //specific volume of steam //At 120 bar, from steam tables vg=0.0143; //m^3/kg //since vg<v, the steam is superheated //so from superheat tables at 120 bar and v=0.01721 m^3/kg T=350; //deg. celsius h=2847.7; //specific enthalpy of steam u=h-p*10^5*v/10^3; //specific internal energy of steam printf(' (i) The Temperature is: %3.0f deg celsius. \n',T); printf(' (ii) The Specific enthalpy h is: %4.1f kJ/kg. \n',h); printf('(iii) The Specific internal energy u is: %4.2f kJ/kg. \n',u);
f068f61acaf4d21961564d064899cd3aa905ceac
449d555969bfd7befe906877abab098c6e63a0e8
/3669/CH4/EX4.11/11.sce
9df8441e9ba0c0fc70f3de1e911a609679c2a481
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
386
sce
11.sce
//Variable declaration e=1.6*10**-19; m=9.1*10**-31; //mass(kg) h=6.63*10**-34; //planck's constant V=344; //potemtial(V) n=1; theta=60; //angle(degrees) //Calculation theta=theta*%pi/180; //angle(radian) d=n*h/(2*sin(theta)*sqrt(2*m*V*e)); //interplanar spacing(m) //Result printf('interplanar spacing is %0.3f angstrom \n',(d*10**10))
91eae67632371f13dbad8949419bb1b6829262cc
449d555969bfd7befe906877abab098c6e63a0e8
/587/CH14/EX14.7/example14_7.sce
56027e11913fa56e6c9089307ebe9853f7c88fb5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
596
sce
example14_7.sce
clear; clc; //Example14.7[Hardening of Steel by the diffusion of carbon] //Given:- D_AB=4.8*10^(-10);//Diffusion coefficient of carbon in steel at the furnace temperature [m^2/s] wA_i=0.0015;//Initial carbon concentration wA_e=0.012;//Equilibrium concentration of carbon wA_t=0.01;//Concentration of carbon after desired time x=0.0005;//Diffusion distance[m] //Solution: a=(wA_t-wA_i)/(wA_e-wA_i); //Tthe argument whose complimentary error function is a=0.81 is 0.17 t=(x^2)/(4*D_AB*(0.17^2));//[seconds] disp("seconds",round(t),"Time taken to reach desired level of hardening is")
fddbf5981aaa01a2a24d701c06cbcac7b91ccc9a
449d555969bfd7befe906877abab098c6e63a0e8
/2048/CH9/EX9.5/pp_basic.sci
c8fb0a356169324519501b007c810238709590e0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
635
sci
pp_basic.sci
// Design of 2-DOF pole placement controller, as discussed in Sec. 9.2. // 9.5 // function [Rc,Sc,Tc,gamma] = pp_basic(B,A,k,phi) // calculates pole placement controller function [Rc,Sc,Tc,gamm] = pp_basic(B,A,k,phi) // Setting up and solving Aryabhatta identity [Ag,Ab] = polsplit2(A); dAb = length(Ab) - 1; [Bg,Bb] = polsplit2(B); dBb = length(Bb) - 1; [zk,dzk] = zpowk(k); [N,dN] = polmul(Bb,dBb,zk,dzk); dphi = length(phi) - 1; [S1,dS1,R1,dR1] = xdync(N,dN,Ab,dAb,phi,dphi); // Determination of control law Rc = convol(Bg,R1); Sc = convol(Ag,S1); Tc = Ag; gamm = sum(phi)/sum(Bb); endfunction;
8e0d6b185b3e1e1942a0a344dd7330c4bc29a984
6227c5ef4e1c5d72cdebd6eac81f82161dda7e17
/digi_dc_dc/Scilab/AuxiliaryFunctions/d2c.sci
8901e9dc56d2160224ba23f47f78e11286ce784f
[]
no_license
maxsimmonds1337/Scilab
b4e8a03a9fbeda4d8f6e51e07d205bcf51addce8
b413659e2b697565c24ad440d158f5bd28203570
refs/heads/master
2022-11-04T23:17:50.045864
2020-06-13T20:35:24
2020-06-13T20:35:24
272,081,285
0
0
null
null
null
null
UTF-8
Scilab
false
false
344
sci
d2c.sci
//Discrete to continouopus transformation using the Bilinear transform function[Gs]=d2c (Gz,Tsample) //Gz continous system defined by the transfer fucntion in s s=poly(0,'s') k=2/Tsample; bt=-(s/k+1)/(s/k-1) //definition of the bilinear transform derived (pag 121) Gs=horner(Gz,bt) Gs=syslin('c',Gs) endfunction
f91517c88497e2221e67b83b5b39d24fd8b7810c
449d555969bfd7befe906877abab098c6e63a0e8
/1457/CH10/EX10.8/10_8.sce
7598cb98d3c9e7ab18ca280920f2e1745a7dc402
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
483
sce
10_8.sce
clc //Initialization of variables B=36 //ft c=6 //ft Cl=0.8 tau=0.175 rho=0.001756 V=300 //fps //calculations alphai=Cl/(%pi*B/c) *(1+tau) *180/%pi alpha=5.4 lift=-5.6 //degrees alphao=alpha-alphai alphaod=alphao-lift alphaor=alphaod*%pi/180 eta=Cl/(2*%pi*alphaor) Fl=Cl*rho*V^2 /2 *B*c Fd=0.047/Cl *13680 HP=Fd*V/550 //results printf("Friction coefficient = %.3f ",eta) printf("\n weight of the wing = %d lb",Fl) printf("\n Horsepower required = %d hp",HP)
9ce4e6f75eaba8edc248f31dc0de96b33e61b3fe
449d555969bfd7befe906877abab098c6e63a0e8
/52/CH5/EX5.18/Example5_18.sce
12d40dfc1ee1d89312b61554db55b1f744a1a836
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
228
sce
Example5_18.sce
//Example 5.18 //To Find out Bilinear Transformation of H(s)=(s^2+4.525)/(s^2+0.692*s+0.504) clear; clc ; close ; s=%s; z=%z; HS=(s^2+4.525)/(s^2+0.692*s+0.504); T=1; HZ=horner(HS,(2/T)*(z-1)/(z+1)); disp(HZ,'H(z) =');
0673bc797e8582d6a3050b8e706ebdbbe79de6b9
449d555969bfd7befe906877abab098c6e63a0e8
/3856/CH23/EX23.3/Ex23_3.sce
4285d2261c1674774ea1bde13fc693a1fb787e56
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
726
sce
Ex23_3.sce
//Evaluate Vibrational Partition Function for Carbon Monoxide at 300K and 3000K //Example 23.3 clc; clear; h=6.626*10^-34; //Planck's constant in J s new=6.40*10^13; //Fundamental frequency of vibration for CO in s^-1 KB=1.381*10^-23; //Boltzmann's constant in J K^-1 T1=300; //Temperature in K Qvib1=1/(1-exp((-h*new)/(KB*T1))); //Vibrational Partition Function for Carbon Monoxide at 300K printf("Vibrational Partition Function for Carbon Monoxide at 300K = %.5f",Qvib1); T2=3000; //Temperature in K Qvib2=1/(1-exp((-h*new)/(KB*T2))); //Vibrational Partition Function for Carbon Monoxide at 3000K printf("\n Vibrational Partition Function for Carbon Monoxide at 3000K = %.2f",Qvib2);
149cfe0ab03b087d4eb03f287c852a3e604cfcae
449d555969bfd7befe906877abab098c6e63a0e8
/998/CH29/EX29.87/Ex87.sce
93432fa8f47810a712a55ba6acb2a875e67d5b1c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
189
sce
Ex87.sce
//Ex:87 clc; clear; close; t_e1=100;// in K t_e2=60;// in K t_e3=20;// in K G1=10^6; G2=10^4; t_e=t_e1+(t_e2/G1)+(t_e3/G1*G2); printf("The equivalent noise temperature=%d K",t_e);
759cba647919236f3bfbbd15e2b1b3ed33f71293
4a1effb7ec08302914dbd9c5e560c61936c1bb99
/Project 2/Experiments/AdaBoost/results/AdaBoost.NC-C.vowel-10-1tra/result1s0.tst
a247af41d952c0f436871735104c5f9a02c59197
[]
no_license
nickgreenquist/Intro_To_Intelligent_Systems
964cad20de7099b8e5808ddee199e3e3343cf7d5
7ad43577b3cbbc0b620740205a14c406d96a2517
refs/heads/master
2021-01-20T13:23:23.931062
2017-05-04T20:08:05
2017-05-04T20:08:05
90,484,366
0
0
null
null
null
null
UTF-8
Scilab
false
false
967
tst
result1s0.tst
@relation vowel @attribute TT integer[0,1] @attribute SpeakerNumber integer[0,14] @attribute Sex integer[0,1] @attribute F0 real[-5.211,-0.941] @attribute F1 real[-1.274,5.074] @attribute F2 real[-2.487,1.431] @attribute F3 real[-1.409,2.377] @attribute F4 real[-2.127,1.831] @attribute F5 real[-0.836,2.327] @attribute F6 real[-1.537,1.403] @attribute F7 real[-1.293,2.039] @attribute F8 real[-1.613,1.309] @attribute F9 real[-1.68,1.396] @attribute Class{0,1,2,3,4,5,6,7,8,9,10} @inputs TT,SpeakerNumber,Sex,F0,F1,F2,F3,F4,F5,F6,F7,F8,F9 @outputs Class @data 6 1 0 0 4 1 4 1 8 1 1 1 4 1 9 1 7 1 0 0 2 1 3 1 7 1 5 1 6 1 9 1 3 1 9 1 4 1 7 1 8 1 9 1 8 1 0 0 1 1 6 1 5 1 6 1 7 1 4 1 0 0 1 1 9 1 2 1 5 1 9 1 6 1 8 1 2 1 1 1 4 1 0 1 3 1 5 1 2 1 5 1 3 1 2 1 7 1 3 1 10 1 10 1 0 0 2 1 9 1 4 1 5 1 1 1 10 1 3 1 1 1 7 1 10 1 1 1 5 1 0 0 3 1 3 1 6 1 8 1 2 1 5 1 1 1 3 1 0 0 7 1 8 1 9 1 10 1 4 1 5 1 6 1 9 1 1 1 2 1 4 1 6 1 8 1 0 1 2 1 8 1 7 1 10 1 7 1 10 1 8 1 10 1 6 1 10 1
04b598453bd924304309ec315f3dd8ddbb30feea
449d555969bfd7befe906877abab098c6e63a0e8
/275/CH5/EX5.5.23/Ch5_5_23.sce
bcf5efe1c503a01140159ce4a099629fd31e80e0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
551
sce
Ch5_5_23.sce
clc disp("Example 5.23") printf("\n") disp("calculate closed-loop gain for the negative feedback amplifier") printf("Given\n") //voltage gain without feedback Av=100000 //feedback factor B=1/100 //voltage gain with feedback Acl=Av/(1+(B*Av)) //when Av is changed by 50% Av1=50*100000/100 Av2=Av+Av1 //voltage gain with feedback when Av changed by +50% Acl1=Av2/(1+(B*Av2)) //voltage gain with feedback when Av changed by -50% Av3=Av-Av1 Acl2=Av3/(1+(B*Av3)) printf("closed loop gain of negative feedback amplifier is \n %f \n",Acl2)
f4819216f24c5b6fb80748cd608663a0752b6ebb
449d555969bfd7befe906877abab098c6e63a0e8
/1808/CH1/EX1.2/Chapter1_Example2.sce
ddc7326632da92e5a9f53ca028f1a13689340b1f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
600
sce
Chapter1_Example2.sce
clc clear //INPUT DATA N=4000;//Speed in rpm T=150;//Torque developed in Nm n=2;//For Four stroke engine L=0.1;//Stroke in m D=0.07;//Diameter in m nc=6;//number of cylinders mf=20;//fuel consumption in kg/h cv=44000;//calorific value in kJ/kg //CALCULATIONS BP=(2*3.14*N*T/(60*1000));//Brake power in kW bmep=((BP*n)/(L*(3.14*0.07^2/4)*(N/60)*nc));//Bmep in kN/m^2 nbt=(BP/((mf/3600)*cv))*100;//Brake thermal efficiency in percentage //OUTPUT printf('(i)The Brake power is %3.2f kW \n (ii)bmep is %3.2f kN/m^2 \n (iii)Brake thermal efficiency is %3.1f percentage ',BP,bmep,nbt)
7ae7af312424f2b6e6d84066469a25398fdaf5b3
449d555969bfd7befe906877abab098c6e63a0e8
/1938/CH2/EX2.22/2_22.sce
0f6daca14d9541ed7b99f79338d86cc76008de9e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
447
sce
2_22.sce
clc,clear printf('Example 2.22\n\n') V=200,I_a1=30 R_t=1.5 //R_a + R_se E_b1= V - I_a1*R_t N2_by_N1=(60/100) //T (prop.) I_a^2 and T (prop.) N_3....therefore I_a^2 (prop.) N^3 I_a2 = I_a1*sqrt(N2_by_N1^3) //N (prop.) E_b/I_a N2_by_N1 E_b2 = E_b1 *(I_a2/I_a1)*N2_by_N1 R_x= (V- E_b2)/I_a2 - R_t //because E_b2= V - I_a2*(R_x+R_t) printf('Additional resistance to be added in series with motor circuit = %.3f ohms',R_x)
1d453e8477288c76f17076a498bdad7ee5db4f2e
449d555969bfd7befe906877abab098c6e63a0e8
/3720/CH12/EX12.3/Ex12_3.sce
dd635aeb0d8e221b10d39f296ff616e61446d48f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
597
sce
Ex12_3.sce
//Example 12_3 clc;clear;funcprot(0); // Given values m=3;//Mass flow rate in kg/s T_0=473;// T_0=T_1 in K P_0=1400;// P_0=P_1 in kPa P=1200;// kPa // Properties C_p=0.846;// kJ/(kg.K) k=1.289; R=0.1889;// kJ/(kg.K) //Calculation T=T_0*(P/P_0)^((k-1)/k);// k V=sqrt(2*C_p*(T_0-T)*1000);// m/s printf('Velocity ,V=%0.1f m/s\n',V); rho=P/(R*T);// kg/m^3 printf('Density ,rho=%0.1f kg/m^3\n',rho); A=(m/(rho*V))*10000;//cm^2 printf('Area ,A=%0.1f cm^2\n',A); c=sqrt(k*R*T*1000);// m/s Ma=V/c; printf('Mach number ,Ma=%0.3f \n',Ma); // The answer vary due to round off error
93a1987d8cc8ab31ac55cec0cdf43c58f0b6ea71
449d555969bfd7befe906877abab098c6e63a0e8
/2606/CH11/EX11.2/ex11_2.sce
01de456f76b6494391810e76a6800975f3650d05
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
543
sce
ex11_2.sce
//Page Number: 11.12 //Example 11.2 clc; //Given //Probabilities of four symbols Px=[0.4 0.3 0.2 0.1]; //(a) H(X) //As H(X)=-Sum of(P(xi)log2P(xi)) //Where i=0 to n; HofX=0; for i=1:4 HofX=HofX+(Px(i)*log2(Px(i))); end disp('b/symbol',-HofX,'H(X):'); //(b)Amount of information in x1x2x1x3 and x4x3x3x2 Px1x2x1x3=Px(1)*Px(2)*Px(1)*Px(3); Ix1x2x1x3=-log2(Px1x2x1x3); disp('b/symbol',Ix1x2x1x3,'Ix1x2x1x3:'); Px4x3x3x2=Px(4)*Px(3)*Px(3)*Px(2); Ix4x3x3x2=-log2(Px4x3x3x2); disp('b/symbol',Ix4x3x3x2,'Ix4x3x3x2:');
3a25095a36593206594d594d77f19d3ae0bec0fc
449d555969bfd7befe906877abab098c6e63a0e8
/2339/CH3/EX3.22.1/Ex3_22.sce
e0fd6156ff8f62844bf0fe90eeb0e22142e2b944
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
527
sce
Ex3_22.sce
clc clear //Inputs //The Values in the program are as follows: //Temperature in Celcius converted to Kelvin(by adding 273) //Pressure in bar converted to kPa (by multiplying 100) //Volume in m^3 //Value of R,Cp and Cv in kJ/kg K V1=0.091; P1=2.73; T1=187+273; T2=27+273; Cp=1.005; Cv=0.718; R=Cp-Cv; m=(P1*100*V1)/(R*T1); Q=m*Cp*(T2-T1); printf('The Value of heat transferred: %1.2f kJ',Q); printf('\n') V2=(T2*V1)/T1; W=P1*100*(V2-V1); printf('The Value of Work done: %1.2f kJ',W); printf('\n')
32a7e08b551c2bd293711ba5ac8ce42a0e0f3a87
127061b879bebda7ce03f6910c80d0702ad1a713
/bin/PIL_TO_expan.sci
e4e650c350a9ca5b0313fc97eec34f963741e28e
[]
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,433
sci
PIL_TO_expan.sci
// **** Purpose **** // expand a matrix using a tensor operator basis // **** Variables **** // A: nxn, real or complex // <= a matrix // TO_basis: (n x n x n^2, real or complex) / (char: 's', 't', 'c') // <= tensor operator basis to expand A // either the hyper matrix of the basis or a character to specify the basis // TO_expan: n^2 x 1, real or complex // => the expansion coefficients // **** Version **** // 05/01/2014 // **** Comment **** // This function break a given matrix via tensor operators. The output is the // expansion cofficients of each tensor operators. The input argument 'TO_basis' // can be 's', 'c' or a given tensor operator generated by PIL_TO_gen. // Remember that all our Mz are in increasing order: -1,0,1. So, make sure // your input matrix A is in the same manner. function TO_expan=PIL_TO_expan(A,TO_basis) J=(length(A(:,1))-1)/2; [lhs,rhs]=argn(); if rhs==1 TO_basis='s'; end if type(TO_basis)==10 T=PIL_TO_gen(J,TO_basis); else T=TO_basis; end T_size=size(T); TO_expan=zeros(T_size(3),1); for n=1:T_size(3) TO_expan(n)=sum(diag(T(:,:,n)'*A)); end endfunction //examples: //A=[1 1 1; 1 1 1; 1 1 1] //TO_expan=mylib_TO_expan(A) // TO_expan = // // 1.7320508 // 1.4142136 // 0. // - 1.4142136 // 1. // 0. // 0. // 0. // 1.
bcaedb243fdca3f93d6934fa3104b9a50d97d942
333d6160f9a6d9e23a6bea06cd03e5e8fa8785a9
/RobotLab1/SciLab/RunScripts.sce
9b37131c1101109d82535e1f2cc5b8c27355f8d8
[ "MIT" ]
permissive
DmitryIo/ROBOTS
6f6bb12a8e08dd28024136ee1a8a84ea7254da60
777f0884a098c4f21d044985c25a8be276334116
refs/heads/master
2023-04-30T12:52:54.082977
2021-05-17T19:55:34
2021-05-17T19:55:34
294,091,170
3
0
null
null
null
null
UTF-8
Scilab
false
false
212
sce
RunScripts.sce
pathname = get_absolute_file_path("RunScripts.sce"); exec(pathname + 'LoadData.sce', -1); exec(pathname + 'MakeModel.sce', -1); //xcos(pathname + 'Simulation.zcos'); //exec(pathname + 'DrawSimulation.sce', -1);
b319e4ed3aa47b960dcc79e7ce0b81df0d1d2ac8
717ddeb7e700373742c617a95e25a2376565112c
/806/DEPENDENCIES/22one.sci
7bcb5f913eb93d699fc20576a25ee522d6a0bfe3
[]
no_license
appucrossroads/Scilab-TBC-Uploads
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
refs/heads/master
2021-01-22T04:15:15.512674
2017-09-19T11:51:56
2017-09-19T11:51:56
92,444,732
0
0
null
2017-05-25T21:09:20
2017-05-25T21:09:19
null
UTF-8
Scilab
false
false
128
sci
22one.sci
S1=0.86//specifc gravity of liquid in pipe A S2=1//Specifc gravity of manometric liquid h1=150//mm h2=90//mm H=720//mm of Hg
30e83963d434da372ae1ce39ec66b085a7cb756b
449d555969bfd7befe906877abab098c6e63a0e8
/67/CH7/EX7.7/example77.sce
9f4aaa62620c01a8a18424ca963e6fb4ba64f64c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
213
sce
example77.sce
//Example 7.7 clc; syms n z; X1=0; X2=0; for i=0:2:4 x1=(1/2)^i; X1=X1+x1*z^-i; end for i=1:2:5 x2=(1/3)^i; X2=X2+x2*z^-i; end x3=2^n; X3=symsum(x3*(z^-n),n,-%inf,1); X=X1+X2+X3; disp(X,'X(z)=');
de1815cb39a7ed27e0b8c48f00c195fc3f7f8709
9bdd58cc75b495e67ec6c186802c81121199c064
/amsr-vector-fs-libvac/vcast/LIBVAC_PROFILES.tst
906958383604d53e07152f9a5df47c3d4412d4d7
[]
no_license
flankersky/vector_ap_bsw
3bac290b569dd2f72d4d4971fcb8f96b8e188914
b8f667356126a4f76a79109b02ee14ae1cd16a58
refs/heads/master
2022-01-14T03:38:29.499494
2019-07-04T04:15:02
2019-07-04T04:15:02
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,264
tst
LIBVAC_PROFILES.tst
-- VectorCAST 6.4t (05/31/17) -- Test Case Script -- -- Environment : LIBVAC_PROFILES -- Unit(s) Under Test: reactor -- -- Script Features TEST.SCRIPT_FEATURE:C_DIRECT_ARRAY_INDEXING TEST.SCRIPT_FEATURE:CPP_CLASS_OBJECT_REVISION TEST.SCRIPT_FEATURE:MULTIPLE_UUT_SUPPORT TEST.SCRIPT_FEATURE:MIXED_CASE_NAMES TEST.SCRIPT_FEATURE:STANDARD_SPACING_R2 TEST.SCRIPT_FEATURE:OVERLOADED_CONST_SUPPORT TEST.SCRIPT_FEATURE:UNDERSCORE_NULLPTR TEST.SCRIPT_FEATURE:FULL_PARAMETER_TYPES TEST.SCRIPT_FEATURE:STRUCT_DTOR_ADDS_POINTER TEST.SCRIPT_FEATURE:STATIC_HEADER_FUNCS_IN_UUTS -- -- Test Case: (cl)vac::io::Reactor::RegisterEventHandler.004 TEST.UNIT:reactor TEST.SUBPROGRAM:(cl)vac::io::Reactor::RegisterEventHandler TEST.NEW TEST.NAME:(cl)vac::io::Reactor::RegisterEventHandler.004 TEST.VALUE:reactor.<<GLOBAL>>.(cl).vac::io::Reactor.vac::io::Reactor.<<constructor>>.Reactor().<<call>>:0 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_handler.vac::io::EventHandler.<<constructor>>.EventHandler().<<call>>:0 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_type_mask:2 TEST.END -- Test Case: (cl)vac::io::Reactor::RegisterEventHandler.005 TEST.UNIT:reactor TEST.SUBPROGRAM:(cl)vac::io::Reactor::RegisterEventHandler TEST.NEW TEST.NAME:(cl)vac::io::Reactor::RegisterEventHandler.005 TEST.VALUE:reactor.<<GLOBAL>>.(cl).vac::io::Reactor.vac::io::Reactor.<<constructor>>.Reactor().<<call>>:0 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_handler.vac::io::EventHandler.<<constructor>>.EventHandler().<<call>>:0 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_type_mask:18 TEST.END -- Test Case: (cl)vac::io::Reactor::RegisterEventHandler.006 TEST.UNIT:reactor TEST.SUBPROGRAM:(cl)vac::io::Reactor::RegisterEventHandler TEST.NEW TEST.NAME:(cl)vac::io::Reactor::RegisterEventHandler.006 TEST.VALUE:reactor.<<GLOBAL>>.(cl).vac::io::Reactor.vac::io::Reactor.<<constructor>>.Reactor().<<call>>:0 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_handler.vac::io::EventHandler.<<constructor>>.EventHandler().<<call>>:0 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_type_mask:4 TEST.END -- Test Case: (cl)vac::io::Reactor::RegisterEventHandler.007 TEST.UNIT:reactor TEST.SUBPROGRAM:(cl)vac::io::Reactor::RegisterEventHandler TEST.NEW TEST.NAME:(cl)vac::io::Reactor::RegisterEventHandler.007 TEST.VALUE:reactor.<<GLOBAL>>.(cl).vac::io::Reactor.vac::io::Reactor.<<constructor>>.Reactor().<<call>>:0 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_handler.vac::io::EventHandler.<<constructor>>.EventHandler().<<call>>:0 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_type_mask:20 TEST.END -- Test Case: CheckEventHdlerNullPtrBehavior.001 TEST.UNIT:reactor TEST.SUBPROGRAM:(cl)vac::io::Reactor::RegisterEventHandler TEST.NEW TEST.NAME:CheckEventHdlerNullPtrBehavior.001 TEST.VALUE:reactor.<<GLOBAL>>.(cl).vac::io::Reactor.vac::io::Reactor.<<constructor>>.Reactor().<<call>>:0 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.handle:1 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_handler:<<null>> TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_type_mask:0 TEST.END -- Test Case: CheckReadEventWerror.003 TEST.UNIT:reactor TEST.SUBPROGRAM:(cl)vac::io::Reactor::RegisterEventHandler TEST.NEW TEST.NAME:CheckReadEventWerror.003 TEST.VALUE:reactor.<<GLOBAL>>.(cl).vac::io::Reactor.vac::io::Reactor.<<constructor>>.Reactor().<<call>>:0 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_handler.vac::io::EventHandler.<<constructor>>.EventHandler().<<call>>:0 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_type_mask:17 TEST.END -- Test Case: CheckkReadEventWOerror.002 TEST.UNIT:reactor TEST.SUBPROGRAM:(cl)vac::io::Reactor::RegisterEventHandler TEST.NEW TEST.NAME:CheckkReadEventWOerror.002 TEST.VALUE:reactor.<<GLOBAL>>.(cl).vac::io::Reactor.vac::io::Reactor.<<constructor>>.Reactor().<<call>>:0 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_handler.vac::io::EventHandler.<<constructor>>.EventHandler().<<call>>:0 TEST.VALUE:reactor.(cl)vac::io::Reactor::RegisterEventHandler.event_type_mask:1 TEST.END
8b1b1bb2c2b068d2c28708b8bcd57a78483c3e5f
449d555969bfd7befe906877abab098c6e63a0e8
/1823/CH2/EX2.9/SolEx2_9.sce
fd7e93bbe2d1394a8c710a9ff6e49751a8c917de
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
497
sce
SolEx2_9.sce
//Use the small-signal technique to find iD and vD //Solved Example Ex2.9 page no 52 clear clc printf("\n Use the small-signal technique to find iD and vD") Idq=5//mA Vdq=0.75//V vh=0.05//cos wt Rth=50 //kΩ rd=50 rd=(0.7-0.5)/0.004 printf("\n rd= %d ohm",rd) id=(vh/(Rth+rd))*1000 vd=(rd*id)/1000//cos wt V printf("\n id= %0.1f cos wt mA",id) printf("\n vd= %0.3f cos wt V",vd) printf("\n iD = Idq + id = 5+0.5 cos wt mA") printf("\n vD = Vdq + vd = 0.75+0.025 cos wt V")
8ee4c77caf57d34d15b36b51cffa7ed7df75acb8
449d555969bfd7befe906877abab098c6e63a0e8
/3012/CH2/EX2.4/Ex2_4.sce
2b7ea36c7ba421b841b5f7194fbe39252bccbfa7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
656
sce
Ex2_4.sce
// Given:- w1dot = -60.0 // input work rate in KW h = 0.171 // heat transfer coefficient,unit in KW/m2 .K A = 1.0 // outer surface area of gearbox, unit in m2 Tb = 300.0 // outer surface temperature in kelvin Tf = 293.0 // temperature of the sorrounding // Calculations Qdot = -h*A*(Tb-Tf); // rate of energy transfer by heat wdot = Qdot; // steady state energy equation w2dot = wdot-w1dot; // Results printf( 'The heat transfer rate in KW is:\n\tQdot = %f',Qdot) printf( 'The power delivered through output shaft in KW is: = %f',w2dot);
0d2ad937414c1f497529d182ab2d77ae02ad43d1
3c47dba28e5d43bda9b77dca3b741855c25d4802
/microdaq/macros/microdaq_blocks/mdaq_square_sim.sci
bd81a7b178e3fd22ce8c89d818df1b3ac7190c50
[ "BSD-3-Clause" ]
permissive
microdaq/Scilab
78dd3b4a891e39ec20ebc4e9b77572fd12c90947
ce0baa6e6a1b56347c2fda5583fb1ccdb120afaf
refs/heads/master
2021-09-29T11:55:21.963637
2019-10-18T09:47:29
2019-10-18T09:47:29
35,049,912
6
3
BSD-3-Clause
2019-10-18T09:47:30
2015-05-04T17:48:48
Scilab
UTF-8
Scilab
false
false
924
sci
mdaq_square_sim.sci
function block=mdaq_square_sim(block,flag) global %microdaq; if %microdaq.dsp_loaded == %F then select flag case -5 // Error case 0 // Derivative State Update case 1 // Output Update t = scicos_time(); if t < block.rpar(5) then block.outptr(1) = 0.0; else v = (t-block.rpar(5))/block.rpar(2); v = (v-int(v)) * block.rpar(2); if v < block.rpar(3) then block.outptr(1) = block.rpar(4)+block.rpar(1); else block.outptr(1) = block.rpar(4); end end case 2 // State Update case 3 // OutputEventTiming case 4 // Initialization case 5 // Ending case 6 // Re-Initialisation case 9 // ZeroCrossing else // Unknown flag end end endfunction
3c2d9e94d592ebd8167afd7d7af5353fcb8faea1
b602f16275ae13b51d284e411b450ffad2d9a6fb
/Ken_Adams_ecologyLoop.sci
3718186313af3d32d34e7fcaa74cd6acc13631dd
[]
no_license
panchuanbo/Ecology-Simulations
abedc8388d6111902e34ef3e6aa852f2f36f0bd1
fb26667424d2b3fef4b99d7e316e6032064c8bf2
refs/heads/master
2020-04-28T10:24:28.749386
2013-06-23T23:48:56
2013-06-23T23:48:56
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,559
sci
Ken_Adams_ecologyLoop.sci
function a = init(height, width, start) for i = 1:height, b = start; for j = 1:width, a(i, j) = b; if a(i, j) == 4 then a(i, j) = 5; end b = b - 1; if b < 1 then b = 4; end end start = start - 1; if start < 1 then start = 4; end end endfunction function world = initmod(x,y,k) for i = 1:x for j = 1:y world(i,j) = modulo(i+j,k) + 1 end end endfunction function vm = generationvmLoop(mat, iterations, plot_rate, delay) dim = size(mat); for i = 1:iterations w = ceil(rand() * dim(1, 2)); h = ceil(rand() * dim(1, 1)); r = ceil(rand() * 4); if r == 1 then if h-1 < 1 then mat(h, w) = mat(dim(1, 1), w); else mat(h, w) = mat(h-1, w); end end, if r == 2 then if h+1 > dim(1, 1) then mat(h, w) = mat(1, w); else mat(h, w) = mat(h+1, w); end end, if r == 3 then if w+1 > dim(1, 2) then mat(h, w) = mat(h, 1); else mat(h, w) = mat(h, w+1); end end, if r == 4 then if w-1 < 1 then mat(h, w) = mat(h, dim(1, 2)); else mat(h, w) = mat(h, w-1); end end, bl = 0; blue = 0; cyan = 0; green = 0; for p = 1:dim(1, 2), for q = 1:dim(1, 1), if mat(p, q) == 1 then bl = bl + 1; elseif mat(p, q) == 2 then blue = blue + 1; elseif mat(p, q) == 3 then //14 green = green + 1; elseif mat(p, q) == 4 then //21 cyan = cyan + 1; end end end bl_count(i) = bl blue_count(i) = blue cyan_count(i) = cyan green_count(i) = green if modulo( i, plot_rate ) == 0 then subplot(1,2,1) Matplot(mat); subplot(1,2,2) t = 1:i plot(t,bl_count(t),'k-',t,blue_count(t),'b-',t,cyan_count(t),'c-',t,green_count(t),'g-'); a=gca(); a.data_bounds=[0,0;iterations,dim(1,2)*dim(1, 1)]; end if delay > 0 then sleep(delay); end end vm = mat; endfunction
d268c5eafb8ebf17c0cfbc7fd52df4260f221524
449d555969bfd7befe906877abab098c6e63a0e8
/2243/CH16/EX16.4/Ex16_4.sce
bf4ba1d41be64b13dbf671687d314466d124de4c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
467
sce
Ex16_4.sce
clc(); clear; //Given : I0 = 10^-12; // in W/m^2 beta1 = 0; // in dB beta2 = 60;// in dB beta3 = 120; // in dB // Intensity level = beta = 10*log10(I/I0) I1 = 10^(beta1/10)*I0; // Intensity in W/m^2 I2 = 10^(beta2/10)*I0; // Intensity in W/m^2 I3 = 10^(beta3/10)*I0; // Intensity in W/m^2 printf("Hearing Threshold : %.1f x 10^-12 W/m^2 \n",I1*10^12); printf("Speech Activity : %.1f x 10^-6 W/m^2 \n",I2*10^6); printf("Pain Threshold : %.1f W/m^2",I3);
d7b2b46026cc8c900d4c437c67cb9383ea360693
449d555969bfd7befe906877abab098c6e63a0e8
/626/CH2/EX2.1/2_1.sce
3ced8149d5c9e1cb22f51e20c1faca2db1b99469
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
331
sce
2_1.sce
clear; clc; close; disp("Example 2.1") p=3*10^6 ; //pressure in Pa t=298 ; //temperatue in kelvin mw= 29; //molecular weight in kg/mol ru=8314; //universal constant in J/kmol.K r=ru/mw ; //using perfect gas law to get density: rho=p/(r*t) ; disp(r,"Gas constant of air in J/kg.K:") disp(rho,"Density of air in kg/m^3:")
e8ef50cf4347af75472f6f54f8ab5f716a531c96
449d555969bfd7befe906877abab098c6e63a0e8
/2666/CH16/EX16.2/16_2.sce
4343225b90372903bd121cdc27544776b92fc5cb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
504
sce
16_2.sce
clc //initialisation of variables p=15//ft v1=100//F v2=460//F t=800//Btu per lb p1=0.24//ft v=14.2//psia r=15//ft v3=15//ft v4=3.025//V c=0.1715//ft h=560//ft d=347000//ft-lb per lb a=13.63//ft R=53.3//ft //CALCULATIONS T=(v1+v2)*(p)^0.4//R Q=t/(1*p1)//R T1=T+Q//R V=v3/v4//ft T2=T1/(V)^0.4//R Q1=1*c*(T2-h)//Btu per lb Qs=t-Q1//Btu per lb W=1*R*(v1+v2)/(144*v)//cu ft per lb X=(14/15)*W//cu ft M=d/(X*144)//psia //RESULTS printf('the mean efficive pressure is=% f psia',M)
ae226a2c244e96f0c3cd9750538c85fbe8cb6a97
449d555969bfd7befe906877abab098c6e63a0e8
/1016/CH4/EX4.2/ex4_2.sce
f24cae4ef635360bebecf1ac26b4bfa5d97bfe6b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
274
sce
ex4_2.sce
clc;clear; //Example 4.2 //given data d=2180;//density of NaCl M=23.5+35.5;//Molecular weight Na=6.02*10^26;//Avgraodo no. in 1/kg mole n=4;//for f.c.c //calculations a=(n*M/(Na*d))^(1/3); d=a/2; disp((d*10^10),'distance between to adajcent atoms in angstrom')
b6f702ae606c086983cec9312968bf2289748044
59e7c95649eb8894e1d6f0bcac3ca7ea2b023217
/Metodo de Newton Raphson.sce
691192d2eca0a9a9506a2475a4aad34c6f48b2f8
[]
no_license
nascimento-luciano/Scilab-Matlab
cb5ee9d97df3ed0f4311573df0fd37a88b3394d8
1cba42b68cc7954ff4c7dd6b13c7d8e6bd3d039e
refs/heads/main
2023-03-19T21:06:18.691193
2021-03-18T00:57:29
2021-03-18T00:57:29
348,877,701
1
0
null
null
null
null
UTF-8
Scilab
false
false
442
sce
Metodo de Newton Raphson.sce
// Metodo de Newton Raphson deff("y=f(x)","y=x.^3-9*x+3"); // funcao original deff("y=phi(x)","y=(2*x.^3-3)/(3*x.^2 -9)"); // esquema de Newton iter=0; x0=0.5; x1=phi(x0); while abs(x1-x0)>%eps, x0=x1; x1=phi(x0); iter=iter+1; end; disp(iter, x1) // segundo metodo derivada aproximada deff("y=phin(x)","y=x-f(x)/derivative(f,x)"); iter2=0; z0=0.5; z1=phin(z0); while abs(z1-z0)>%eps, z0=z1; z1=phin(z0); iter2=iter2+1; end; disp(iter2,z1)
5e99cf62c3620c1aeb502ae7f8074156bbd9096a
449d555969bfd7befe906877abab098c6e63a0e8
/3296/CH2/EX2.4/Ex2_4.sce
3157aa56c672c256d9174a905eae44682e6249e4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
639
sce
Ex2_4.sce
// chapter 2 // example 2.4 // What is the value of Young's Modulus for the steel specimen // page-17 clear; clc; // given d=13; // in mm (diameter of the steel specimen) dl=0.2; // in mm (elongation of the specimen) l=200; // in mm (gauge length) P=26.8; // in kN (Tensile force) // calculate A=(%pi/4)*d^2; // calculation of cross-sectional area of the specimen // Since dl=P*l/(A*E), therefore E=P*l/(A*dl); // claculation of Young's Modulus for the steel specimen printf("\nThe cross-sectional area of the steel specimen is \t A=%.2f mm^2",A); printf("\nThe Youngs Modulus for the steel specimen is \t E=%.1f kN/mm^2 = %.1f GPa",E,E);
46fd4ccea5e9e27ccd2b8cbe633bafbe7de396c9
449d555969bfd7befe906877abab098c6e63a0e8
/527/CH7/EX7.3/7_3exam.sce
23124374c70623680015b5dd5b8970f7ea5d463e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
547
sce
7_3exam.sce
//Engineering and Chemical Thermodynamics //Example 7.3 //Page no :311 clear ; clc ; //Given P = 50 ; //[bar] T = 25 + 273.2 ;//[K] P_c = 48.7 ; //[bar] , From Appendix A.1 Table C.7 & C.8 T_c = 303.5 ; //[K] , From Appendix A.1 Table C.7 & C.8 w = 0.099 ; // From Appendix A.1 Table C.7 & C.8 log_w_0 = -0.216 ;// By interpolation log_w_1 = -0.060 ;// By interpolation X = log_w_0 + w * log_w_1 ; sai_eth = 10^(X) ; f_eth = sai_eth * P ; disp(" Example: 7.3 Page no : 311") ; printf("\n Fugacity = %g bar",f_eth);
deeece76717c98216dff27d8ada35229110bbafa
449d555969bfd7befe906877abab098c6e63a0e8
/1271/CH5/EX5.5/example5_5.sce
b49aaa36b34273c568c61d5dd794ef5049550085
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
441
sce
example5_5.sce
clc // Given that NA = 0.22 // numerical aperture delta_mu = 0.012 // fractional refractive index // Sample Problem 5 on page no. 5.17 printf("\n # PROBLEM 5 # \n") mu1 = sqrt(NA^2 / (1 - (1 - delta_mu)^2)) mu2 = (1 - delta_mu) * mu1 printf("\n Standard formula used \n mu1 = sqrt(NA^2 / (1 - (1 - delta_mu)^2)). \n mu2 = (1 - delta_mu) * mu1. \n") printf("\n Refractive index for core = %f.\n Refractive index for cladding = %f.",mu1,mu2)
b27654f639ebc968cf8774b01debd2eea271c614
449d555969bfd7befe906877abab098c6e63a0e8
/446/CH7/EX7.5/7_5.sce
84ee3c58baf71a3df256808695bb4fe0fff2a58b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
283
sce
7_5.sce
clear clc disp('Exa-7.5'); //Thoretical question disp('The possible values for m are [+2,-2] and hence any of the 5 components [-2h,2h] are possible for the L vector.'); printf('Length of the vector as found out previously is %.2f*h.',sqrt(6));//angular momentum==sqrt(l(l+1)) h
e30de8c5b8fd206194d426eeebc8e63b7c7bbe87
449d555969bfd7befe906877abab098c6e63a0e8
/3159/CH4/EX4.3/Ex4_3.sce
3c1e04b2677b80e80b0404e4d3281d3998d4b29a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
439
sce
Ex4_3.sce
// Reconcile the difference of energy clc e_a = 713 // enthalpy of atomization in kJ/mol e_b = 347 // bond energy in kJ/mol a = 4 // total number of atoms in single crystal structure b = 2 // number of atoms in a bond printf("\n Example 4.3") k = a/b // effective number of bond per atom e = k*e_b printf("\n %d kJ should be the enthalpy of atomization of diamond", e) printf("\n However, %d kJ is very close to %d kJ",e,e_a)
118eb51dfcc4905112e1dc9a4c5898aacb315761
449d555969bfd7befe906877abab098c6e63a0e8
/1299/CH11/EX11.6/example11_6.sce
5fd57efd77244272057740f358e720b81c8726aa
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
601
sce
example11_6.sce
//Example 11.6 //Jury's stability test clear;clc; xdel(winsid()); z=%z; F=4*z^4+6*z^3+12*z^2+5*z+1 //equating the equation F with a4*z^4+a3*z^3+a2*z^2+a1*z3+a0. a0=1 a1=5 a2=12 a3=6 a4=4 b0=[a0 a4;a4 a0] det(b0) b1=[a0 a3;a4 a1] det(b1) b2=[a0 a2;a4 a2] det(b2) b3=[a0 a1;a4 a3] det(b3) c0=[det(b0) det(b3);det(b3) det(b0)] det(c0) c1=[det(b0) det(b2);det(b3) det(b1)] det(c1) c2=[det(b0) det(b1);det(b3) det(b2)] det(c2) disp("det(a0)<det(a4)=satisfied") disp("det(b0)>det(b3)=satisfied") disp("det(c0)<det(c3)=not satisfied") disp("The system is unstable")
82d1c5d69f9dd86d2deed1a3ce1a2b9c27e5631b
60acf54211c534dae12601541518c7f3692c9899
/Linux/scripts/hs.search.grep.sce
49557dba1404aefb22a989610f421b5065080db8
[ "MIT" ]
permissive
webappcreations/dotLinux
67159a42510e60d18f059f7c9ac955eee1c3e4f2
aac20d0ed2ff28b2701febbe49a0152cb94f50da
refs/heads/master
2021-05-09T10:35:02.938723
2018-03-19T16:14:37
2018-03-19T16:14:37
118,967,881
0
0
null
null
null
null
UTF-8
Scilab
false
false
17,370
sce
hs.search.grep.sce
8 sudo ps -ef | grep apache 72 netstat |grep php 73 netstat |grep myswl 74 netstat |grep mysql 75 netstat | grep mysql 76 netstat | grep my 77 netstat | grep /my 78 netstat | grep html 79 netstat > grep html 80 sudo netstat > grep html 147 history | grep mysqld 246 lsmod| grep option 248 lsmod | grep optino 249 lsmod | grep option 262 ls |grep .txt 263 ls -v |grep .txt 264 ls -i |grep .txt 266 ls -l |grep .txt 349 dmesg | grep usb 350 dmesg | grep usb 351 dmesg | grep usb 352 dmesg | grep huawei 353 dmesg | grep hsd* 354 dmesg | grep hs* 363 ls | grep history 397 ls | grep history 399 ls | grep history 490 ls | grep .pro 491 ls | grep .pro* 492 ls -a | grep .pro* 502 ps ax | grep mysqld 72 netstat |grep php 73 netstat |grep myswl 74 netstat |grep mysql 75 netstat | grep mysql 76 netstat | grep my 77 netstat | grep /my 78 netstat | grep html 79 netstat > grep html 80 sudo netstat > grep html 147 history | grep mysqld 246 lsmod| grep option 248 lsmod | grep optino 249 lsmod | grep option 262 ls |grep .txt 263 ls -v |grep .txt 264 ls -i |grep .txt 266 ls -l |grep .txt 349 dmesg | grep usb 350 dmesg | grep usb 351 dmesg | grep usb 352 dmesg | grep huawei 353 dmesg | grep hsd* 354 dmesg | grep hs* 363 ls | grep history 397 ls | grep history 399 ls | grep history 490 ls | grep .pro 491 ls | grep .pro* 492 ls -a | grep .pro* 502 ps ax | grep mysqld 72 netstat |grep php 73 netstat |grep myswl 74 netstat |grep mysql 75 netstat | grep mysql 76 netstat | grep my 77 netstat | grep /my 78 netstat | grep html 79 netstat > grep html 80 sudo netstat > grep html 147 history | grep mysqld 246 lsmod| grep option 248 lsmod | grep optino 249 lsmod | grep option 262 ls |grep .txt 263 ls -v |grep .txt 264 ls -i |grep .txt 266 ls -l |grep .txt 349 dmesg | grep usb 350 dmesg | grep usb 351 dmesg | grep usb 352 dmesg | grep huawei 353 dmesg | grep hsd* 354 dmesg | grep hs* 363 ls | grep history 397 ls | grep history 399 ls | grep history 490 ls | grep .pro 491 ls | grep .pro* 492 ls -a | grep .pro* 54 lsmod| grep option 56 lsmod | grep optino 57 lsmod | grep option 70 ls |grep .txt 71 ls -v |grep .txt 72 ls -i |grep .txt 74 ls -l |grep .txt 157 dmesg | grep usb 158 dmesg | grep usb 159 dmesg | grep usb 160 dmesg | grep huawei 161 dmesg | grep hsd* 162 dmesg | grep hs* 171 ls | grep history 205 ls | grep history 207 ls | grep history 298 ls | grep .pro 299 ls | grep .pro* 300 ls -a | grep .pro* 312 ps ax | grep mysqld 322 sudo ps ax | grep mysqld 324 ps -U root -u root u | grep mysqld 325 ps -U mysql -u mysql | grep mysqld 334 history | grep stop 514 history | grep find 515 cat backup/history_save2.txt | grep find 54 lsmod| grep option 56 lsmod | grep optino 57 lsmod | grep option 70 ls |grep .txt 71 ls -v |grep .txt 72 ls -i |grep .txt 74 ls -l |grep .txt 157 dmesg | grep usb 158 dmesg | grep usb 159 dmesg | grep usb 160 dmesg | grep huawei 161 dmesg | grep hsd* 162 dmesg | grep hs* 171 ls | grep history 205 ls | grep history 207 ls | grep history 298 ls | grep .pro 299 ls | grep .pro* 300 ls -a | grep .pro* 312 ps ax | grep mysqld 322 sudo ps ax | grep mysqld 324 ps -U root -u root u | grep mysqld 325 ps -U mysql -u mysql | grep mysqld 334 history | grep stop 514 history | grep find 515 cat backup/history_save2.txt | grep find 112 history | grep find 113 cat backup/history_save2.txt | grep find 177 cat savehistory3.txt | grep tex 178 cat savehistory3.txt | grep tex* 179 cat savehistory2.txt | grep tex* 180 cat savehistory2.txt | grep tex 181 cat savehistory2.txt | grep hash 183 cat savehistory5.txt | grep has 509 dmesg | grep hso 454 dmesg | grep hso 327 dmesg | grep hso 406 dmesg | grep hso 447 dmesg |grep mouse 448 dmesg |grep mice 464 ls | grep apache2 242 dmesg | grep hso 321 dmesg | grep hso 362 dmesg |grep mouse 363 dmesg |grep mice 379 ls | grep apache2 17 dmesg | grep hso 96 dmesg | grep hso 137 dmesg |grep mouse 138 dmesg |grep mice 154 ls | grep apache2 431 env | egrep -i 'mf|tex 243 env | egrep -i 'mf|tex 3 env | egrep -i 'mf|tex 455 grep apache ~/backup/sav_history.txt 355 grep apache ~/backup/sav_history.txt 123 grep apache ~/backup/sav_history.txt 100 grep apache ~/backup/sav_history.txt 498 ls -all grep usb 499 ls -all | grep usb 100 grep apache ~/backup/sav_history.txt 498 ls -all grep usb 499 ls -all | grep usb 100 grep apache ~/backup/sav_history.txt 498 ls -all grep usb 499 ls -all | grep usb 166 ls -all grep usb 167 ls -all | grep usb 194 ls -R | grep jquery 328 dmesg | grep audio 329 dmesg | grep sound 330 dmesg | grep pci 331 dmesg | grep outout 332 dmesg | grep output 482 ls | grep blue 498 ls -all | grep . 511 grep vga /backup/* 512 grep vga backup/* 513 grep VGA backup/* 514 grep VGA backup/* | echo 515 grep VGA backup/* | echo 1 516 grep VGA backup/* | echo 1> 522 grep VGA backup/* | grep 40 523 grep VGA backup/* | grep 40 > sed 524 grep VGA backup/* | grep 40 > sce 525 grep VGA backup/* | grep 40 | sce 526 grep VGA backup/* | grep 40 > sce xrandr 530 grep VGA backup/* | grep 40 > skripte/mon 531 grep VGA backup/* | grep 40 > skripte/lap 192 grep vga /backup/* 193 grep vga backup/* 194 grep VGA backup/* 195 grep VGA backup/* | echo 196 grep VGA backup/* | echo 1 197 grep VGA backup/* | echo 1> 203 grep VGA backup/* | grep 40 204 grep VGA backup/* | grep 40 > sed 205 grep VGA backup/* | grep 40 > sce 206 grep VGA backup/* | grep 40 | sce 207 grep VGA backup/* | grep 40 > sce xrandr 211 grep VGA backup/* | grep 40 > skripte/mon 212 grep VGA backup/* | grep 40 > skripte/lap 214 grep VGA backup/* 215 grep VGA backup/* | grep 494 > skripte/lap 250 grep net . 251 grep -R net . 252 grep -h 253 grep --help 254 grep -R net ./ 255 grep -R man ./ 256 grep -R man 257 grep -R wlan 258 grep -R wlan . 259 grep -R wlan /man1 260 grep -R wlan man1 263 grep -R wlan . 264 grep wlan . 265 grep wlan 266 h grep 267 grep . 270 zgrep wlan . 271 zgrep -R wlan . 272 zgrep 273 zgrep -h 274 zgrep --help 275 man grep 276 info grep 277 info zgrep 278 zgrep -r wlan . 280 zgrep wlan . 281 zgrep lan . 282 zgrep man . 482 h grep 483 grep -R *.xml . 497 h grep 499 grep -R philo . 500 grep philo . 501 man grep 502 rgrep philo . 503 rgrep philo 504 grep --help 505 rgrep 'philo' 506 grep -R 'philo' 507 grep -RHd 'philo' 508 man rgrep 509 grep -R 'philo' * 510 sudo grep -R 'philo' * 511 sudo grep -R 'philo' * 512 sudo grep -R 'philo' . 514 sudo grep -R 'philo' index.php 518 sudo grep -R 'include' index.php 519 man grep 521 sudo grep -R 'include' 522 sudo grep -R 'philo' Digitalus 523 sudo grep -R 'philo' Digitalus/ 524 sudo grep -R 'philo' Digitalus 525 sudo grep -R philo Digitalus 526 sudo grep -R *etting* Digitalus 527 sudo grep -R *etting* /localhost/Digitalus 528 grep -R *etting* /localhost/Digitalus 529 grep -R 'etting' /localhost/Digitalus 530 grep -R 'philo' /localhost/Digitalus 531 sudo grep -R 'philo' /localhost/Digitalus 532 sudo grep -R 'session' Digitalus 533 sudo grep -R '@todo' Digitalus 29 grep -R Ernst . 30 grep --help 40 grep -R Ernst . 42 grep -R Ernst 28.11.2010/ 43 grep --help 44 grep -R Ernst 28.11.2010/ 46 grep -R ernst 28.11.2010/ 147 man grep 155 ls -l /dev | grep 19:59 156 ls -l /dev | grep 19: 240 grep -R preVal 258 grep --help 280 grep preVal 281 h grep 282 grep preVal 283 grep web 487 hs grep 498 man grep 508 hs grep 509 hs grep 512 hsf grep Documents 513 hsf grep Documents/Magisterarbeit 514 hsf grep Documents/Magisterarbeit 520 hs grep 521 hs grep 523 hs grep 524 hs grep 147 man grep 155 ls -l /dev | grep 19:59 156 ls -l /dev | grep 19: 240 grep -R preVal 258 grep --help 280 grep preVal 281 h grep 282 grep preVal 283 grep web 487 hs grep 498 man grep 499 man grep 35 man grep 43 ls -l /dev | grep 19:59 44 ls -l /dev | grep 19: 128 grep -R preVal 146 grep --help 168 grep preVal 169 h grep 170 grep preVal 171 grep web 375 hs grep 386 man grep 396 hs grep 397 hs grep 400 hsf grep Documents 401 hsf grep Documents/Magisterarbeit 402 hsf grep Documents/Magisterarbeit 408 hs grep 409 hs grep 411 hs grep 412 hs grep 424 hs grep 426 hs grep 429 hs grep 432 hs grep 441 man grep 465 grep --help 476 grep --help 515 grep -R --color=always "br /" /localhost/zf_motte/library/Zend/Markup/ 516 grep -R "br /" /localhost/zf_motte/library/Zend/Markup/ 517 grep -R "br /" /localhost/zf_motte/library/Zend/Markup 518 grep -R "br" /localhost/zf_motte/library/Zend/Markup 519 grep --color=always -R "br" /localhost/zf_motte/library/Zend/Markup 15 hs grep 26 man grep 36 hs grep 37 hs grep 40 hsf grep Documents 41 hsf grep Documents/Magisterarbeit 42 hsf grep Documents/Magisterarbeit 48 hs grep 49 hs grep 51 hs grep 52 hs grep 64 hs grep 66 hs grep 69 hs grep 72 hs grep 81 man grep 105 grep --help 116 grep --help 201 grep -R Antrag . 208 hs grep 222 grep -R container /localhost/zf_motte/application/ 458 rm hs.search.grep.sce 64 hs grep 66 hs grep 69 hs grep 72 hs grep 81 man grep 105 grep --help 116 grep --help 201 grep -R Antrag . 208 hs grep 222 grep -R container /localhost/zf_motte/application/ 458 rm hs.search.grep.sce 64 hs grep 66 hs grep 69 hs grep 72 hs grep 81 man grep 105 grep --help 116 grep --help 201 grep -R Antrag . 208 hs grep 222 grep -R container /localhost/zf_motte/application/ 458 rm hs.search.grep.sce 72 hs grep 81 man grep 105 grep --help 116 grep --help 201 grep -R Antrag . 208 hs grep 222 grep -R container /localhost/zf_motte/application/ 458 rm hs.search.grep.sce 26 man grep 36 hs grep 37 hs grep 40 hsf grep Documents 41 hsf grep Documents/Magisterarbeit 42 hsf grep Documents/Magisterarbeit 48 hs grep 49 hs grep 51 hs grep 52 hs grep 64 hs grep 66 hs grep 69 hs grep 72 hs grep 81 man grep 105 grep --help 116 grep --help 201 grep -R Antrag . 208 hs grep 222 grep -R container /localhost/zf_motte/application/ 458 rm hs.search.grep.sce 118 rm hs.search.grep.sce 384 grep Anicca 385 grep -R Anicca * 389 grep -R Anicca * 390 grep -R anicca * 392 grep -R 'dem Leiden unterworfen' * 439 grep -R thanissaro* 440 grep -R thanissaro* * 441 grep -R 'The * 442 grep -R 'The Mind like' * 222 grep Anicca 223 grep -R Anicca * 227 grep -R Anicca * 228 grep -R anicca * 230 grep -R 'dem Leiden unterworfen' * 277 grep -R thanissaro* 278 grep -R thanissaro* * 279 grep -R 'The * 280 grep -R 'The Mind like' * 431 grep -R paccatta* . 434 grep --color=always -R paccatta* . 435 grep --color=always -R paccatta* . > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 443 grep --color=always -R paccatta* . > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 445 grep --color=always -R paccatta* . > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 450 grep --color=always -R /backup/susi/02_Susi_Pali_Tipitaka_utf8_BJT\ Ausgabe/paccatta . > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 451 grep --color=always -R paccatta /backup/susi/02_Susi_Pali_Tipitaka_utf8_BJT\ Ausgabe/ > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 479 grep --color=always -R paccatta 480 grep --color=always -R paccatta . 481 grep --color=always -R 'PTS Page 284' . 486 grep --color=always -R 'S.ii 119' 487 grep --color=always -R 'S.ii 119' . 488 grep --color=always -R 'S. * 119' . 489 grep --color=always -R 'S.*' . 490 grep --color=always -R 'S. 119' . 491 grep --color=always -R '119' . 492 grep --color=always -R 'PTS Page 119' . 493 grep --color=always -R 'PTS Page 119' . | grep paccatta 494 grep --color=always -R 'PTS Page 284' . 498 grep --color=always -R 'PTS Page 284' . 196 grep Anicca 197 grep -R Anicca * 201 grep -R Anicca * 202 grep -R anicca * 204 grep -R 'dem Leiden unterworfen' * 251 grep -R thanissaro* 252 grep -R thanissaro* * 253 grep -R 'The * 254 grep -R 'The Mind like' * 405 grep -R paccatta* . 408 grep --color=always -R paccatta* . 409 grep --color=always -R paccatta* . > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 417 grep --color=always -R paccatta* . > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 419 grep --color=always -R paccatta* . > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 424 grep --color=always -R /backup/susi/02_Susi_Pali_Tipitaka_utf8_BJT\ Ausgabe/paccatta . > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 425 grep --color=always -R paccatta /backup/susi/02_Susi_Pali_Tipitaka_utf8_BJT\ Ausgabe/ > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 453 grep --color=always -R paccatta 454 grep --color=always -R paccatta . 455 grep --color=always -R 'PTS Page 284' . 460 grep --color=always -R 'S.ii 119' 461 grep --color=always -R 'S.ii 119' . 462 grep --color=always -R 'S. * 119' . 463 grep --color=always -R 'S.*' . 464 grep --color=always -R 'S. 119' . 465 grep --color=always -R '119' . 466 grep --color=always -R 'PTS Page 119' . 467 grep --color=always -R 'PTS Page 119' . | grep paccatta 468 grep --color=always -R 'PTS Page 284' . 472 grep --color=always -R 'PTS Page 284' . 126 grep Anicca 127 grep -R Anicca * 131 grep -R Anicca * 132 grep -R anicca * 134 grep -R 'dem Leiden unterworfen' * 181 grep -R thanissaro* 182 grep -R thanissaro* * 183 grep -R 'The * 184 grep -R 'The Mind like' * 335 grep -R paccatta* . 338 grep --color=always -R paccatta* . 339 grep --color=always -R paccatta* . > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 347 grep --color=always -R paccatta* . > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 349 grep --color=always -R paccatta* . > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 354 grep --color=always -R /backup/susi/02_Susi_Pali_Tipitaka_utf8_BJT\ Ausgabe/paccatta . > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 355 grep --color=always -R paccatta /backup/susi/02_Susi_Pali_Tipitaka_utf8_BJT\ Ausgabe/ > ~/Documents/Magisterarbeit/paccatta_textstellen.txt 383 grep --color=always -R paccatta 384 grep --color=always -R paccatta . 385 grep --color=always -R 'PTS Page 284' . 390 grep --color=always -R 'S.ii 119' 391 grep --color=always -R 'S.ii 119' . 392 grep --color=always -R 'S. * 119' . 393 grep --color=always -R 'S.*' . 394 grep --color=always -R 'S. 119' . 395 grep --color=always -R '119' . 396 grep --color=always -R 'PTS Page 119' . 397 grep --color=always -R 'PTS Page 119' . | grep paccatta 398 grep --color=always -R 'PTS Page 284' . 402 grep --color=always -R 'PTS Page 284' . 498 grep --color=always -R 'Yamaka' . 483 grep Geheimlehre 484 grep -h 485 grep --help 486 grep -Rio Geheimlehre . 490 grep -Rio nissaṭṭha . 491 grep -Rio nissaṭṭh . 513* locate koma .pdf| grep 515 grep --help 516 man grep 199 grep -R . replace 200 grep -R replace . 426 grep -R . interface 427 grep -R . interface 428 grep -R . abstract 429 grep -R abstract . 430 grep -R interface . 431 grep -R abstract . 467 grep -R . clear 468 grep -R clear 469 grep -R clear . 470 grep -R clear . 215 h grep 216 hs grep 217 grep ~/Documents/Magisterarbeit/09.03.2011/Bojjh_struktur 'Afs' 218 grep 'Afs' ~/Documents/Magisterarbeit/09.03.2011/Bojjh_struktur 219 grep -R 'Afs' ~/Documents/Magisterarbeit/09.03.2011/Bojjh_struktur 495 ps -u goalador | grep xmonad 151 h grep 152 hs grep 153 grep ~/Documents/Magisterarbeit/09.03.2011/Bojjh_struktur 'Afs' 154 grep 'Afs' ~/Documents/Magisterarbeit/09.03.2011/Bojjh_struktur 155 grep -R 'Afs' ~/Documents/Magisterarbeit/09.03.2011/Bojjh_struktur 431 ps -u goalador | grep xmonad 480 hs grep 524 grep / cft 525 grep cft / 526 grep '\cft' / 527 sudo grep '\cft' / 528 grep -R '\cft' / 529 sudo grep -R '\cft{' / 537 sudo grep -R '\cft{' /usr/lib/kde4/ 538 sudo grep -R '\cft{' /usr/share/kde4/ 539 sudo grep -R '\cft{' /usr/share/apps/ 540 sudo grep -R 'cft' /usr/share/kde4/ 541 sudo grep -R '\cft' /usr/share/kde4/ 542 man grep 543 sudo grep -R -o '\cft' /usr/share/kde4/
fd0bed54cf96d725442ea55ec95acc80a441db57
449d555969bfd7befe906877abab098c6e63a0e8
/3446/CH4/EX4.4/Ex4_4.sce
695e084175620dab8d852696b5f60a461f001466
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
941
sce
Ex4_4.sce
// Exa 4.4 // TO calculate: // A)The minimum number of bits/sample or bits/PCM word that should be used. // B)The minimum sampling rate, and what is the resulting transmission rate. // C)The PCM pulse or symbol transmission rate. clc; clear all; Fm=3000; //highest modulating frequency in signal(Hz) M=32; // number of pulse levels b=5; //bits per symbol p=0.01; //Quantization distortion //solution //2^R = L >= 1/2P // where R is the number of bits required to represent quantization levels L R=log10(1/(2*p))/log10(2); Fs=2*Fm; // Nyquist sampling criteria (samples per second) fs=round(R)*Fs; Rs=fs/b; printf('The minimum number of bits/sample or bits/PCM word that should be used are %d',round(R)); printf('\n The minimum sampling rate is %d samples per second\n ',Fs); printf('The resulting transmission rate is %d bps\n ',fs); printf('The PCM pulse or symbol transmission rate is %d symbols/sec\n',Rs);
2c62af92c98f4254fd24bb4eaf513cc9bed25faa
449d555969bfd7befe906877abab098c6e63a0e8
/1445/CH7/EX7.27/Ex7_27.sce
5aebe882d52fd9d45b0a5700212849e815398749
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,433
sce
Ex7_27.sce
//CHAPTER 7- SINGLE PHASE TRANSFORMER //Example 27 clc; disp("CHAPTER 7"); disp("EXAMPLE 27"); //200kVA 1100/400 V delta star distribution transformer //three phase //VARIABLE INITIALIZATION va=200000; //apparent power v1=11000; //primary voltage in Volts v2=400; //secondary voltage in Volts f=50; // frequency //open circuit test parameters V3=400; I3=9; W3=1500; //load in watts HT side //short circuit test parameters Vsc=350; Isc=20; Wc=2100; //load in watts HT side // pf=0.8; //SOLUTION Voc=V3/sqrt(3); //per phase applied voltage in open circiut Io=9; //per phase exciting current.= I3 Wi=W3/3; // per phase core loss in watts HT side Pc=Wi; //core losses //power factor Pc=V1.Io.cos phi0 //v1=Voc //open circuit test performed on LV side phi0=acos(Wi/(Voc*Io)); Ic=Io*cos(phi0); //core loss current Iphi=Io*sin(phi0); //magnetising current Rc=Voc/Ic; //Core loss resistance X=Voc/Iphi; // disp("SOLUTION (a)"); disp(sprintf("The value of Ic is %.0f Amp",Ic)); disp(sprintf("The value of IΦ is %.2f Amp",Iphi)); disp(sprintf("The value of Rc is %.2f Ohm",Rc)); disp(sprintf("The value of X is %.2fΩ",X)); // //core loss resistance referred to hv side Rch=Rc*(v1/Voc)^2; XphiH=X*(v1/Voc)^2; disp(sprintf("The value of Rch is %.2f kΩ",Rch/1000)); disp(sprintf("The value of XΦh is %.2f KΩ",XphiH/1000)); //short circuit //This test performed on HV side //first find rated current Isc=va/(3*v1); Psc=Wc/3; //ohmic loss per phase phisc=acos(Wc/(Vsc*Isc)); pf1=cos(phisc); R_e1=Psc/Isc^2; Z_e1=Vsc/Isc; X_e1=sqrt(Z_e1^2-R_e1^2); disp(sprintf("The value of ohmic loss per phase is %.0f W",Psc)); disp(sprintf("The value of Re1 is %.2f Ohm",R_e1)); disp(sprintf("The value of Ze1 is %.2f Ohm",Z_e1)); disp(sprintf("The value of Xe1 is %.2fΩ",X_e1)); // //efficiency at half load pf=1; //unity power factor Pout=(va/3)*(1/2)*pf; //core losses=Pc //cuLosses ohmic loss =Psc Pin=Pout+Pc+(1/2)^2*Psc; eff=Pout*100/Pin; disp(sprintf("The efficiency at half load is %.2f",eff)); disp(" "); // //END
b3a2a0d6e35730c0a60d7b247206ed2229cc64d1
80fc9b7a10b546c9071b974c5328180e74ee1c5d
/TP1/2.1.sce
9d42d6032796b49fcdbcd218a0d994f0726cc3ec
[]
no_license
ASokem/TP_MAP101
a443ddbd656d63918dd5caad3ce89418d02c0123
b87d45faea6bc793161bae2238bd6489e5d9ede5
refs/heads/main
2023-08-10T20:42:07.377878
2021-09-29T09:15:34
2021-09-29T09:15:34
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
181
sce
2.1.sce
// Copyright (C) 2021 - UGA - JIANG Yilun // // Date of creation: 2021-9-15 // a = 3 a + 4, 7 - a, -a, a * 5, 1 / a, a ^ 2 s1 = "MAP", s2 = "101" disp(s1 + s1 + s1) disp(s1 + s2)
cdf61e31b5989cc52aedc7419b36b3bad8b20aaa
449d555969bfd7befe906877abab098c6e63a0e8
/149/CH21/EX21.34/ques34.sce
05733343c4660ef8d6f2bfdd98a42e802acf8943
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
176
sce
ques34.sce
//error no output //ques34 disp('to find the laplace transform of periodic function '); syms w t s f=1/(1-exp(-2*%pi*s/w))*integ(exp(-1*s*t)*sin(w*t),t,0,%pi/w); disp(f)
7253b5ecc11fa1530bb343d7d967afac663e6c41
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.1/Unix/scilab-2.1/demos/icse/icsu.sci
0f244b14b54d7a5b4dbb9645f3e01dca16906fb1
[ "MIT", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931111
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
1,287
sci
icsu.sci
//[co,u,g,itv,dtv]=icsu(u,simu,nap,imp) //Calcul du controle optimal avec ponderation du controle initial //Une mise a l'echelle ramene toutes les composantes du controle //initial a 1.Les composantes initialement nulles le resteront. //Ne convient que si la borne inferieure est positive. //%Syntaxe //[co,u,g,itv,dtv]=icsu(u,simu,nap,imp) //variables d'entree : //u(nu) : parametres initiaux //simu : chaine de caracteres donnant le nom du sous programme // decrivant le probleme (second menbre, critere et etat // initial) //nap : nombre maximum d' appels du simulateur //imp : valeur de debug pendant l'optimisation //variables de sortie : //co : cout final //u(nu) : parametres finaux //g(nu) : gradient final //itv(nitv) : tableau de travail (entiers fortran) //dtv(ndtv) : tableau de travail (double precision fortran) //Utiliser les macros icot et icob pour extraire l'etat total //ou l'etat aux instants de mesure de dtv. //! df0=1; if mini(binf) <=0, .. error('appel de icsu avec binf non strictement positif'); end; for i=1:nu,u(1,i)=maxi( [binf(1,i),mini([u(1,i),bsup(1,i)])] ), end; ech=u; binf=binf./u; bsup=bsup./u; u=ones(1,nu); cof=ones(1,ntob*nob); [co,u,g,itv,dtv]=icsegen(u,simu,nap,imp) u=ech.*u; //end
ea593cd5e4c61f1833655a335458ea88f8478033
d88bbaa013fffcd8958629d40b0a440e80b3df02
/R2.sce
fa0cd9aabbe8a65a1d578777533a85f7ed253328
[]
no_license
DiegoMontano2705/Numerical-Methods-Programs
e4167b46520f4109e99411c760eb551de074ff55
31829cea7ffa98b5a7609015177e56430d8c3d33
refs/heads/master
2020-04-24T23:58:07.071687
2019-04-08T01:00:11
2019-04-08T01:00:11
172,362,441
0
0
null
null
null
null
UTF-8
Scilab
false
false
10,540
sce
R2.sce
/////////////////////////////////////////////////////// // R2.sce // Programa que dados los puntos de las coordenadas X,Y y un valor de x dado despliga : // Regresión Lineal y la aproximación para y // Regresión Cuadrática y la aproximación para y // Regresión Exponencial y la aproximación para y // Regresión Potencia y la aproximación para y // La mejor regresión // // Este programa hace aproximaciones a traves de diferentes regresiones y muestra cual de estas fue mejor // Patricio Andres Saldivar Flores y Diego Fernando Montaño Pérez // 1 / Abril / 2019 version 1.0 ////////////////////////////////////////////////////// ////////////////////////////////////////////////////// // // // Funcion que resuelve un sistema de ecuaciones para obtener X a traves del metodo Gauss Jordas // // Parametros: // A Es el parametro de la matriz MAT // Regresa: // El valor de la matriz X ///////////////////////////////////////////////////// function X = Gauss(A) // Para cada renglon se obtiene un pivote y habra una iteracion cada numero de renglones for i=1 : size(A,1) pivote = A(i,i) // Se dividen todos los valores del renglon de cada columna entre el pivote for j=1 : size(A,2) A(i,j) = A(i,j)/pivote end // Entra ciclo para checar los demas renglones de la matriz for k=1 : size(A,1) //Si el renglon k es diferente al renglon i se saca el factorial if(k<>i) fact= -A(k,i) // Para cada columna j se hace una suma de la matriz en (k,j) mas la matriz en (i,j) por el factorial for j=1 : size(A,2) A(k,j)= A(k,j)+ fact*A(i,j) end end end end //Se le regresa el valor de matriz A a X for i=1 : size(A,1) X(i,1)= A(i,size(A,2)) end endfunction ////////////////////////////////////////////////////// // // // Funcion que resuelve la aproximacion para y con regresion lineal // // Parametros: // A Es el conjunto de valores en x // B Es el conjunto de valores en y // V Valor que sea estimar ("X") // Regresa: // El valor de la matriz X ///////////////////////////////////////////////////// function X=Lineal(A,B,V) //Valores inicializados en 0 que se usaran en la funcion x=0 xAlCuadrado=0 y=0 yx=0 //Por cada columna de arreglo iniciando en 1 for i=1 : size(A,2) //Operaciones para sacar la sumatoria de X al cuadrado y x por y x=A(i)+x xAlCuadrado=A(i)*A(i)+xAlCuadrado y=B(i)+y yx=B(i)*A(i)+yx end //Se crea matriz que guarda los valores de las sumatorias Matriz=[size(A,2),x, y; x, xAlCuadrado, yx] //Se manda a llamar a la funcion Gauss para obtener el reusltado de a a=Gauss(Matriz) SST=0 SSE=0 //Se incializa ymedia ymedia= y/size(B,2) //Por cada columna del arreglo en y se va calculando SST sumando los resultados anteriores for i=1 : size(B,2) SST= (B(i)-ymedia)^2+SST end //Por cada columna del arreglo en y se va calculando SSE sumando los resultados anteriores for i=1 : size(B,2) SSE= (B(i)-(A(i)*a(2)+a(1)))^2+SSE end //Se calcula R2 con su formula R2= (SST-SSE)/SST disp("Lineal: " + string(a(2)) + " * x + " + string(a(1))+ " r^2: " + string(R2)) //Se regresa el valor para X para usarlo despues X= [R2,V*a(2)+a(1)] endfunction ////////////////////////////////////////////////////// // // // Funcion que resuelve la aproximacion para y con regresion cuadratica // // Parametros: // A Es el conjunto de valores en x // B Es el conjunto de valores en y // V Valor que sea estimar ("X") // Regresa: // El valor de la matriz X ///////////////////////////////////////////////////// function X = Cuadratica(A,B,V) //Valores inicializados en 0 que se usaran en la funcion x=0 xAlCuadrado=0 xAlCubo=0 xAlCuatro=0 y=0 yx=0 yx2=0 //Por cada columna de arreglo iniciando en 1 for i=1 : size(A,2) //Operaciones para sacar la sumatoria de X al cuadrado, sumatoria de x por y, sumatoria de y, sumatoria de x cuadrada por y, sumatoria x al cubo, sumatoria de x al cuatro x=A(i)+x xAlCuadrado=A(i)*A(i)+xAlCuadrado y=B(i)+y yx=B(i)*A(i)+yx yx2=B(i)*A(i)*A(i)+yx2 xAlCubo= A(i)^3+xAlCubo xAlCuatro= A(i)^4+xAlCuatro end //Se crea matriz en donde se ponen los valores de las sumatorias Matriz=[size(A,2),x, xAlCuadrado, y; x, xAlCuadrado, xAlCubo, yx; xAlCuadrado, xAlCubo, xAlCuatro, yx2] //Se resuelve la matriz con Gauss para obtener el valor de a a=Gauss(Matriz) SST=0 SSE=0 //Se incializa ymedia ymedia= y/size(B,2) //Por cada columna del arreglo en y se va calculando SST sumando los resultados anteriores for i=1 : size(B,2) SST= (B(i)-ymedia)^2+SST end //Por cada columna del arreglo en y se va calculando SSE sumando los resultados anteriores for i=1 : size(B,2) SSE= SSE + ((a(3)*A(i)*A(i)+a(2)*A(i)+a(1))-B(i))^2 end //Se calcula R2 con su formula R2= (SST-SSE)/SST disp("Cuadratica: " + string(a(3)) + " * x^2 + " + string(a(2))+ " * x + "+string(a(1))+" r^2: " + string(R2)) //Se regresa valor de x para usarlo despues X= [R2,(V^2)*a(3)+V*a(2)+a(1)] endfunction ////////////////////////////////////////////////////// // // // Funcion que resuelve la aproximacion para y con regresion exponencial // // Parametros: // A Es el conjunto de valores en x // B Es el conjunto de valores en y // V Valor que sea estimar ("X") // Regresa: // El valor de la matriz X ///////////////////////////////////////////////////// function X = Exponencial(A,B,V) //Valores inicializados en 0 que se usaran en la funcion x=0 xAlCuadrado=0 y=0 yx=0 //Por cada columna de arreglo iniciando en 1 for i=1 : size(A,2) //Se hacen sumatorias de los valores de x, x al cuadrado, de y , x por y x=A(i)+x xAlCuadrado=A(i)*A(i)+xAlCuadrado y=log(B(i))+y yx=log(B(i))*A(i)+yx end //Se crea matriz con los valores de las sumatorias antes hechas Matriz=[size(A,2),x, y; x, xAlCuadrado, yx] //Se resuelve la matriz con Gauss para obtener el valor de a a=Gauss(Matriz) SST=0 SSE=0 res=0 //Se inicializa ymedia ymedia= y/size(B,2) //Por cada columna del arreglo en y se va calculando el SST,res y SSE a traves de una sumatoria for i=1 : size(B,2) SST= (log(B(i))-ymedia)^2+SST res= exp(a(1))*exp(A(i)*a(2)) SSE= (log(B(i))-log(res))^2+SSE end //Se obtiene el R2 con su formula R2= (SST-SSE)/SST disp("Exponencial: " + string(exp(a(1))) + " * e^( " + string(a(2))+ " * x ) r^2: " + string(R2)) // Se regresa el valo de X para usarlo despues X= [R2,exp(a(1))*exp(V*a(2))] endfunction ////////////////////////////////////////////////////// // // // Funcion que resuelve la aproximacion para y con regresion exponencial // // Parametros: // A Es el conjunto de valores en x // B Es el conjunto de valores en y // V Valor que sea estimar ("X") // Regresa: // El valor de la matriz X ///////////////////////////////////////////////////// function X = Potencial(A,B,V) //Valores inicializados en 0 que se usaran en la funcion x=0 xAlCuadrado=0 y=0 yx=0 for i=1 : size(A,2) //Se hacen sumatorias de los valores de x, x al cuadrado, de y , x por y x=log(A(i))+x xAlCuadrado=log(A(i))^2+xAlCuadrado y=log(B(i))+y yx=log(B(i))*log(A(i))+yx end //Se crea matriz con los valores de las sumatorias antes hechas Matriz=[size(A,2),x, y; x, xAlCuadrado, yx] //Se resuelve la matriz con Gauss para obtener el valor de a a=Gauss(Matriz) SST=0 SSE=0 //Se inicializa ymedia ymedia= y/size(B,2) //Por cada columna del arreglo en y se va calculando el SST,res y SSE a traves de una sumatoria for i=1 : size(B,2) SST= (log(B(i))-ymedia)^2+SST res= exp(a(1))*(A(i)^(a(2))) SSE= (log(B(i))-log(res))^2+SSE end //Se obtiene el R2 con su formula R2= (SST-SSE)/SST disp("Potencial: " + string(exp(a(1))) + " * x^( " + string(a(2))+ " ) r^2: " + string(R2)) // Se regresa el valo de X para usarlo despues X= [R2,exp(a(1))*(V^(a(2)))] endfunction /////////////////////// ////Programa Principal ////////////////////// //Se pide el valor del conjunto de valores de x [1,3,4,...,n] ARRX = input ("Conjunto de valores x : ") //Se pide el valor del conjunto de valores de y [1,3,4,...,n] ARRY = input ("Conjunto de valores y : ") //Se pide el valor que se desea estimar x = input("Valor que desea estimar : ") //Se mandan a llamar todas las funciones de regresion con los datos antes ingresados RLineal=Lineal(ARRX,ARRY,x) RCuadratico=Cuadratica(ARRX,ARRY,x) RPotencial=Potencial(ARRX,ARRY,x) RExponencial=Exponencial(ARRX,ARRY,x) //Se calcula cual regresion fue la que dio el mejor valor estimado Rmayor=RLineal(1) if(Rmayor<RCuadratico(1)) Rmayor=RCuadratico(1) end if(Rmayor<RPotencial(1)) Rmayor=RPotencial(1) end if(Rmayor<RExponencial(1)) Rmayor=RExponencial(1) end //Se despliguan conclusiones, basandose de que regresion fue mejor, muestra los resultados de esa regresion disp("Conclusiones:") if(Rmayor==RExponencial(1)) disp("El mejor modelo es el exponencial con r2 =" + string(Rmayor)) disp("Usando el mejor modelo el valor estimado para" + string(x) + "es: "+string(RExponencial(2))) elseif(Rmayor == RLineal(1)) disp("El mejor modelo es el lineal con r2 =" + string(Rmayor)) disp("Usando el mejor modelo el valor estimado para" + string(x) + "es: "+string(RLineal(2))) elseif(Rmayor == RPotencial(1)) disp("El mejor modelo es el potencial con r2 =" + string(Rmayor)) disp("Usando el mejor modelo el valor estimado para" + string(x) + "es: "+string(RPotenciall(2))) elseif(Rmayor == RCuadratico(1)) disp("El mejor modelo es el cuadratico con r2 =" + string(Rmayor)) disp("Usando el mejor modelo el valor estimado para" + string(x) + "es: "+string(RCuadratico(2))) end ///////////////// //Termina programa /////////////////
2957b41120c7d7a2463a523812d008e7b00069e5
449d555969bfd7befe906877abab098c6e63a0e8
/3456/CH12/EX12.2/Ex12_2.sce
8566ca2122792e8eb6d026e7b95fa831e215c3f1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
409
sce
Ex12_2.sce
//Example 12.2 //Low Cycle Fatigue //Page No. 391 clc;clear;close; sigma_b=75; //in MPa e_b=0.000645; //no unit e_f=0.3; //no unit E=22*10^4; //in MPa c=-0.6; //no unit d_e_e=2*sigma_b/E; d_e_p=2*e_b-d_e_e; N=(d_e_p/(2*e_f))^(1/c)/2; printf('\nd_e_e = %g\nd_e_p = %g\nNumber of Cycles = %g cycles',d_e_e,d_e_p,N);
89c46155a1ea85ee8b1b507e4be566eb42126e2d
449d555969bfd7befe906877abab098c6e63a0e8
/1862/CH21/EX21.3/C21P3.sce
cb2681025f05239d90421d45a9bafcb9831563d7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
615
sce
C21P3.sce
clear clc //to find final pressure of gas //Given: //refer to figure 21-13 from page 488 //initial temperature of oxygen Ti = 20//in degree celsius //initial pressure of oxygen pi = 15//in atm //initial volume of oxygen vi = 22//in liters //final temperature of oxygen Tf = 25//in degree celsius //final volume of oxygen vf = 16//in liters //Solution: //consider oxygen as ideal gas and applying equations of ideal gas //final pressure of gas pf = pi*((Tf+273)/(Ti+273))*(vi/vf)//in atm //taking temp. in kelvin pf = round(pf) printf ("\n\n Final pressure of gas pf = \n\n %2i atm" ,pf);
939066d1475a8a905c82271cee042544642b89f7
b29e9715ab76b6f89609c32edd36f81a0dcf6a39
/ketpic2escifiles6/ParamonCurve.sci
ce7e0d76b92458a8a78b39067b25ef92c52f27c0
[]
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
269
sci
ParamonCurve.sci
// 08.05.30 function Out=ParamonCurve(P,N,PtL) // PtL=Plt; if N==size(PtL,1) Out=N; else Pa=PtL(N,:); Pb=PtL(N+1,:); V=Pb-Pa; W=P-Pa; D2=V(1)^2+V(2)^2; S=(V(1)*W(1)+V(2)*W(2))/D2; S=min(max(S,0),1); Out=N+S; end endfunction
150f021411a08ef4ef0fe7a670829918cf6af87f
449d555969bfd7befe906877abab098c6e63a0e8
/527/CH6/EX6.1/6_1exam.sce
6adb5b8e7947260264232dea474b24532ff5604b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
317
sce
6_1exam.sce
//Engineering and Chemical Thermodynamics //Example 6.1: //Page no :257 clear ; clc ; disp(" Example: 6.1 Page no : 257") ; disp(" The problem contains only theory and different substitutions.There is no numerical part involved. Users can go through the book to obtain the required expression.")
f26440ab686b22630af7c5457cc760437a9fe409
449d555969bfd7befe906877abab098c6e63a0e8
/191/CH5/EX5.1/Example5_1.sce
62cabd9340b38d6274abee1954a1a13b2f678eda
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
797
sce
Example5_1.sce
//Construction of the quadratic interpolating polynomial to the function f(x)=ln(x) by using Lagrange's Method of interpolation. close(); clear; clc; xi = linspace(2,3,3); format('v',10); y = [0.69315 0.91629 1.09861]; x = poly(0,'x'); //Following are the polynomials L0 = (x-xi(2))*(x-xi(3))/((xi(1)-xi(2))*(xi(1)-xi(3))); L1 = (x-xi(1))*(x-xi(3))/((xi(2)-xi(1))*(xi(2)-xi(3))); L2 = (x-xi(1))*(x-xi(2))/((xi(3)-xi(1))*(xi(3)-xi(2))); p2 = L0*y(1) + L1*y(2) + L2*y(3); disp(p2 , 'The Required Polynomial : ') //Showing the difference between actual and obtained value format('v',8); disp(log(2.7),'Actual Value of Polynomial at x=2.7') disp(horner(p2,2.7),'Obtained Value of Polynomial at x=2.7') err = log(2.7)-horner(p2,2.7); disp(err , 'Error in approximation : ')
3688681f233debc65071d2c029691fa7a40dcd02
449d555969bfd7befe906877abab098c6e63a0e8
/773/CH2/EX2.11/2_11.sci
517bb0fe6080b8f0e8f2cdf3e6a06e0acde3a5f3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
261
sci
2_11.sci
//value theorem// p=poly([0.38],'s','coeff'); q=poly([0 0.543 2.48 1],'s','coeff'); F=p/q; syms s; x=s*F; y=limit(x,s,0); // final value theorem y=dbl(y); disp(y,"f(inf)=") z=limit(x,s,%inf) // // initial value theorem z=dbl(z); disp(z,"f(0)=")
1a3d7bcd221b29f6f2b0a807d19bb07020d7088d
449d555969bfd7befe906877abab098c6e63a0e8
/3782/CH9/EX9.3/Ex9_3.sce
3c714e0b3c9a9d37a6d709fe51d4ce37f30f799f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
584
sce
Ex9_3.sce
//ch-9 page 305 pb-3 // // l1=100.5,l3=75,l4=50.5, t1=30.5,t2=45,t3=40.5,t4=60,t5=40.25, L1=l1*cos(t1*(%pi/180)) L3=-l3*cos(t3*(%pi/180)) L4=-l4*cos(t4*(%pi/180)) printf("\n latitude of AB,CD,DE are %0.3f %0.3f %0.3f",L1,L3,L4) D1=l1*sin(t1*(%pi/180)) D3=-l3*sin(t3*(%pi/180)) D4=-l4*sin(t4*(%pi/180)) printf("\n Depature of AB,CD,DE are %0.3f %0.3f %0.3f",D1,D3,D4) L2_L5=-(L1+L3+L4) D2_D5=-(D1+D3+D4) printf("\n L2_L5,D2_D5") k=0.117 l5=(L2_L5+D2_D5)/(k) k1=0.763 l2=(k1*l5)-L2_L5 l2=l2/0.707 printf("\n length of BC= %0.3f ",l2) printf("\n length of EA= %0.3f ",l5)
dded06962711a1b9fa982e0a2fbaf73e6e06e42e
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.5/demos/metanet/metro.sci
1ef01018973fa00c11f477e1d3000ec5de327bd3
[ "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
11,502
sci
metro.sci
function []=metro() //Scilab program for the travel by the tube in Paris //needs the file 'node2station' giving the fit between nodes and the names //of the stations //needs the execution of the program 'metrostart' for the data of the graph // Copyright INRIA inin=file('open',SCI+'/demos/metanet/node2station','old'); mamat=read(inin,388,1,'(a40)'); file('close',inin); La=['Abbesses','Alesia','Alexandre Dumas','Alfort-Ecole Veterinaire','Alma-Marceau','Anatole-France','Anvers','Argentine','Arts et Metiers','Auber','Aubervilliers-Pantin','Avron']; Lb=['Balard','Barbes-Rochechouart','Bastille','Bel air','Belleville','Berault','Bercy','Billancourt','Bir-Hakeim','Blanche','Boissiere','Bolivar','Bonne-Nouvelle','Botzaris','Boucicaut','Boulets - Montreuil','Boulevard Massena','Boulevard Victor','Boulogne - Jean Jaures','Boulogne - Pont de saint cloud','Bourse','Breguet-Sabin','Brochant','Buttes-Chaumont','Buzenval']; Lc=['Cadet','Cambronne','Campo-Formio','Cardinal Lemoine','Carrefour Pleyel','Censier-Daubenton','Chambre des deputes','Champ-de-Mars','champs-Elysees Clemenceau','Chardon Lagache','Charenton-Ecoles','Ch. de Gaulle-Etoile','Charles Michels','Charonne','Chateau d eau','Chateau de Vincennes','Chateau Landon','Chateau-Rouge','Chatelet','Chatelet-les-Halles','Chatillon-Montrouge','Chaussee d Antin','Chemin Vert','Chevaleret','Cite','Cite Universitaire','Colonel Fabien','Commerce','Concorde']; Lcc=['Convention','Corentin-Cariou','Corentin-Celton','Corvisart','Courcelles','Couronnes','Creteil-l Echat','Creteil Prefecture','Creteil Universite','Crimee','Croix de Chavaux']; Ld=['Danube','Daumesnil','Denfert-Rochereau','Dugommier','Dupleix','Duroc']; Le=['Ecole Militaire','Edgar Quinet','Eglise d Auteuil','Eglise de Pantin','Emile Zola','Etienne Marcel','Europe','Exelmans']; Lf=['Faidherbe-Chaligny','Falguiere','Felix Faure','Filles du Calvaire','Fort d Aubervilliers','Franklin D Roosevelt']; Lg=['Gabriel Peri','Gaite','Gallieni','Gambetta','Gare d Austerlitz','Gare de l Est','Gare de lyon','Gare du Nord','Garibaldi','Gentilly','George V','Glaciere','Goncourt','Guy Moquet']; Lh=['Havre Caumartin','Hoche','Hotel de Ville']; Li=['Iena','Invalides','Issy Plaine','Issy Ville','Ivry']; Lj=['Jacques Bonsergent','Jasmin','Jaures','Javel','Jourdain','Jules Joffrin','Jussieu']; Lk=['Kleber']; Ll=['La Chapelle','La Defense','La Fourche','Lamarck-Caulaincourt','La Motte Piquet','La Muette','Laplace','La Plaine Voyageurs','Latour Maubourg','Laumiere','Ledru Rollin','Le Kremlin Bicetre','Le Peletier','Les Gobelins','Les Halles','Les Sablons','Liberte','Liege','Louis Blanc','Louise Michel','Lourmel','Louvre','Luxembourg']; Lm=['Mabillon','Madeleine','Mairie de clichy','Mairie de Montreuil','Mairie de St Ouen','Mairie des lilas','Mairie d Issy','Mairie d Ivry','Maison Blanche','Maison Alfort Les Julliottes','Maison Alfort Stade','Malakoff Plateau de Vanves','Malakoff Rue Etienne Dolet','Malesherbes','Maraichers','Marcadet Poissonniers','Marcel Sembat','Marx Dormoy','Maubert Mutualite','Menilmontant','Michel Ange Auteuil','Michel Ange Molitor','Michel Bizot','Mirabeau','Miromesnil','Monceau','Monge','Montgallet']; Lmm=['Montparnasse Bienvenue','Mouton Duvernet']; Ln=['Nation','Nationale','Notre Dame de Lorette','Notre dame des Champs']; Lo=['Oberkampf','Odeon','Opera','Ourcq']; Lp=['Palais Royal','Parmentier','Passy','Pasteur','Pelleport','Pereire','Pere Lachaise','Pernety','Philippe Auguste','Picpus','Pierre Curie','Pigalle','Place de Clichy','Place des Fetes','Place d Italie','Plaisance','Poissoniere','Pont de l Alma','Pont de Levallois Becon','Pont de Neuilly','Pont de Sevres','Pont Marie','Pont Neuf','Porte Dauphine','Porte d Auteuil','Porte de Bagnolet','Porte de Champeret','Porte de Charenton','Porte de Choisy','Porte de Clichy','Porte de Clignancourt']; Lpp=['Porte de la Chapelle','Porte de la Vilette','Porte de Montreuil','Porte de Pantin','Porte de St Cloud','Porte de St Ouen','Porte des Lilas','Porte de Vanves','Porte de Versailles','Porte de Vincennes','Porte d Italie','Porte d Ivry','Porte Doree','Porte d Orleans','Porte Maillot','Port Royal','Pre St Gervais','Pyramides','Pyrenees']; Lq=['Quai de la Gare','Quai de la Rapee','Quai d Orsay','Quatre Septembre']; Lr=['Rambuteau','Ranelagh','Raspail','Reaumur Sebastopol','Rennes','Republique','Reuilly Diderot','Richard Lenoir','Richelieu Drouot','Riquet','Robespierre','Rome','Rue de la Pompe','Rue du Bac','Rue Montmartre']; Ls=['Saint Ambroise','Saint Augustin','Saint Denis Basilique','Saint Denis Porte de Paris','Saint Fargeau','Saint Francois Xavier','Saint Georges','Saint Germain des Pres','Saint Jacques','Saint Lazare','Saint Mande Tourelle','Saint Marcel','Saint Maur','Saint Michel','Saint Paul','Saint Philippe du Roule','Saint Placide','Saint Sebastien Froissard','Saint Sulpice','Segur','Sentier','Sevres Babylone','Sevres Lecourbe','Simplon','Solferino','Stalingrad','Strasbourg St Denis','Sully Morland']; Lt=['Telegraphe','Temple','Ternes','Tolbiac','Trinite','Trocadero','Tuileries']; Lv=['Vaneau','Varenne','Vaugirard','Vavin','Victor Hugo','Villiers','Vincennes','Volontaires','Voltaire']; Lw=['Wagram']; Lz=['INRIA-Rocquencourt']; Lstation=[Lz,La,Lb,Lc,Lcc,Ld,Le,Lf,Lg,Lh,Li,Lj,Lk,Ll,Lm,Lmm,Ln,Lo,Lp,Lpp,Lq,Lr,Ls,Lt,Lv,Lw]; LA=[175,70,229,371,167,188,141,117,304,-1,368,227]; LB=[52,140,212,206,251,349,198,24,14,143,112,269,154,264,50,226,-1,-1,2,1,158,237,146,268,228]; LC=[138,26,102,83,363,80,184,-1,165,8,205,114,10,225,245,350,246,177,88,-1,111,302,220,196,87,-1,250,48,163,59]; LCC=[276,57,74,122,253,374,376,375,275,356]; LD=[263,296,68,199,13,44]; LE=[54,66,6,370,11,379,131,21]; LF=[210,62,49,239,369,300]; LG=[367,105,325,324,287,244,213,280,361,-1,180,73,252,185]; LH=[133,273,331]; LI=[28,169,-1,-1,-1]; LJ=[243,19,249,9,267,179,82]; LK=[113]; LL=[281,-1,145,176,12,18,-1,-1,101,270,211,194,137,79,236,119,204,148,336,130,51,181,-1]; LM=[92,314,366,357,362,353,56,198,77,373,372,109,110,125,232,178,23,278,84,254,5,3,201,7,301,123,81,377]; LMM=[47,69]; LN=[299,195,173,96]; LO=[310,85,135,271]; LP=[161,256,15,45,259,127,323,106,230,207,192,142,144,341,75,107,139,168,189,120,25,89,91,116,4,258,129,203,190,187,186]; LPP=[279,277,233,272,22,360,352,108,58,234,78,191,202,71',118,-1,262,160,266]; LQ=[197,214,-1,159]; LR=[235,20,67,156,97,308,347,222,149,274,355,147,17,99,152]; LS=[223,171,365,364,260,63,174,93,72,132,348,216,255,86,219,378,95,221,94,41,157,98,42,380,100,340,155,217]; LT=[282,381,121,76,172,16,162]; LV=[104,64,60,65,115,124,-1,61,224]; LW=[126]; LZ=[-2]; Lnode=[LZ,LA,LB,LC,LCC,LD,LE,LF,LG,LH,LI,LJ,LK,LL,LM,LMM,LN,LO,LP,LPP,LQ,LR,LS,LT,LV,LW]; L1=[1;2]; L2=[21;22;23;24;25]; iter=1; while iter==1, changename=[];TT=[]; Ldepart=0; Depart=108;Arrivee=108;Gr_typ='null'; while (Lnode(Depart)==-1|Lnode(Arrivee)==-1), Lnode(1)=-2; Depart=x_choose(Lstation,'Choose the station of departure'); Arrivee=x_choose(Lstation,'Choose the station of arrival'); if(Depart==0|Arrivee==0) then return end; if (Lnode(Depart)==-1|Lnode(Arrivee)==-1) then x_message(['You have chosen an RER station to the suburbs'; 'The RER net will be added later']); end; if (Lnode(Depart)==-2) then x_message(['Are you sure it''s time to leave?'; 'If yes, you go to the entrance of the campus.'; 'You take the INRIA shuttle to one of the 3 railway stations of Versailles.'; 'Then you take the train to Paris (15-20 minutes).']), Lnode(Depart)=-1; end; rep=0; if (Lnode(Arrivee)==-2) then rep=x_message(['You have chosen to visit a nice place.'; 'It is a little bit complicated to reach the campus.'; 'If you are a tourist you may be interested to know'; 'that the buildings of the campus have been designed'; 'by the American troups in Europe after the second world war'; 'and you may prefer to visit the palace of Versailles.'; 'In both cases the first part of the travel is the same.'; 'If you want to know, click on Travel button'],.. ['Travel','Cancel']); end if rep==2 then Lnode(Arrivee)=-1;end if rep==1 then x_message(['INRIA-Rocquencourt is located near Versailles.'; 'From Paris you have to take the train to Versailles and then the INRIA shuttle.'; 'You have 3 possibilities from Paris:'; '- starting from Saint-Lazare station you reach the Versailles-Rive Droite station'; '- starting from Invalides station you reach the Versailles-Rive Gauche station'; '- starting from Montparnasse-Bienvenue station you reach the Versailles-Chantiers station']); Lnode(Arrivee)=-1; end end g=load_graph(SCI+'/demos/metanet/paris'); gg=load_graph(SCI+'/demos/metanet/paris2'); show_graph(gg,'rep'); la1=g('node_name');lp1=g('node_type');ls1=g('node_x'); NodeN=lp1(Lnode(Depart)+1)-lp1(Lnode(Depart))+1; duration=g('edge_length');tail=g('tail'); i=1; Ldepart(1)=Lnode(Depart); for j=1:NodeN, if duration(nodes_2_path([Lnode(Depart),ls1(lp1(Lnode(Depart))+j)],g))==4 then Ldepart(i+1)=ls1(lp1(Lnode(Depart))+j); i=i+1; end end NodeN=size(Ldepart); MinTemps=200; for k=1:NodeN(1), p=shortest_path(Ldepart(k),Lnode(Arrivee),g); Etime=size(p);nbarc=Etime(2); temps=0; Change=0; i=1; temps=duration(p(1))+temps; if duration(p(1))==4 then temps=temps-4;end for j=2:(nbarc-1), temps=duration(p(j))+temps; if duration(p(j))==4 then Change=Change+1; ll=tail(p(j)); changename(Change)=mamat(ll); end end temps=duration(p(nbarc))+temps; if duration(p(nbarc))==4 then temps=temps-4;end; if (temps<MinTemps) then EndTemps=temps; EndP=p; EndChange=Change; end, end; //show_arcs(EndP) ttt=path_2_nodes(EndP,g); ppp=nodes_2_path(ttt,gg); //show_arcs(ppp); //for i=1:5, show_nodes(ttt);show_arcs(ppp);end; show_arcs(ppp);show_nodes(ttt,'sup'); name=g('node_name'); road=name(ttt)'; kk=size(road); clic='.'; v=[1]; for i=1:kk(1), clac=part(road(i),v); if clac == clic then route(i)=road(i); else il=evstr(road(i)); route(i)= mamat(il); end end j=1;road=[]; for i=1:kk(1), clac=part(route(i),v); if clac == clic then road(j)=route(i); TT(j)=ttt(i);j=j+1; end end kk=size(road);routef=[]; routef(1)=road(1);TTT(1)=TT(1);j=2; for i=2:kk(1), daor=road(i); if daor <> road(i-1) then routef(j)=road(i); TTT(j)=TT(i);j=j+1; end end thick=xget("thickness") xset("thickness",3); xbasc(); repo=2*ones(1,13);repo(1)=1; plot_graph(gg,repo); kk=size(routef);xnodes=gg('node_x');ynodes=gg('node_y'); for i=1:kk(1), x1=xnodes(TTT(i)); y1=ynodes(TTT(i)); xstring(x1,-y1,mamat(TTT(i))); end; ichoi=x_choose(['yes','no'],'Zoom of the path?'); if ichoi==1 then repo(1)=2; xbasc(); if TTT<>[] then ah=min(xnodes(TTT));bh=max(xnodes(TTT)); av=min(ynodes(TTT));bv=max(ynodes(TTT)); repoo=[ah,-bv,bh-ah,bv-av]; xset("wdim",900,650); xset("font",4,4); plot_graph(gg,repo,repoo); kk=size(routef);xnodes=gg('node_x');ynodes=gg('node_y'); for i=1:kk(1), x1=xnodes(TTT(i)); y1=ynodes(TTT(i)); xstring(x1,-y1,mamat(TTT(i))); end end end x_message(['Duration of the travel (in minutes): '+string(EndTemps) ; ' ' ; 'The number of changes is: '+string(EndChange); string(changename);' ' ; 'You will go thru the following stations:'; string(routef);]); road=[];route=[];routef=[];changename=[]; iter=x_choose(['yes','no'],'Another travel?'); TTT=[];routef=[];road=[]; end xset("thickness",thick); xset("font",2,1); xset("wdim",610,460);
38ed16f95b32a867451505dd31dfa708f79a8b21
449d555969bfd7befe906877abab098c6e63a0e8
/51/CH9/EX9.16/9_16.sce
1caf54bd5d1af821e72596ab8d2e411a5773e904
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
341
sce
9_16.sce
clc; clear; W=2.45*(10^(-2));//N D=3.8*(10^(-2));//m U=12;//m/s //W=L d=1.23;//kg/(m^3) CL=2*W/(d*(U^2)*%pi*(D^2)/4); W=0.5*d*(U^2)*(D^2)*%pi*CL/4; //using this value of CL, omega*D/(2*U)=x is found as x=0.9; omega=2*U*x/D;//rad/sec angvel=omega*60/(2*%pi);//rpm; where angvel is angular velocity disp("rpm",angvel,"The angular velocity=")
ff326cb354f7c2db992c5a058fbbfa93bfdc3c13
449d555969bfd7befe906877abab098c6e63a0e8
/1217/CH1/EX1.2/Exa1_2.sce
cac78ea57e19f03031d0f06c2f7252acb7e9f6a9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Exa1_2.sce
//Exa 1.2 clc; clear; close; //given data V1=50;//in uV V2=-50;//in uV Ad=2000;//unitless Ac=0.5;//unitless Vid=V1-V2;//in uV Vc=(V1+V2)/2;//in uV //output voltage Vo=Ad*Vid+Ac*Vc;//in uV Vo=Vo*10^(-6);//in Volts CMRRdB=20*log10(Ad/Ac); disp(Vo,"Output voltage in volts is : "); disp(CMRRdB,"CMRR in dB is : ");
2e7d146bfd8ca205d9552ffdf2d442c78f9b4a35
449d555969bfd7befe906877abab098c6e63a0e8
/278/CH23/EX23.11/ex_23_11.sce
408ebd50c695faf834376e31336ff74ff7ac37d6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,053
sce
ex_23_11.sce
//find clc //solution //given P=30000//W N=3000//rpm pb=0.085//N/mm^2 v=2300//m/min //d1=1.3d2 //r1=1.3r2 u=0.3 ns=6 D=25//mm t=420//N/mm^2 G=84000//N/mm^2 Tmean=P*60/(2*%pi*N)//N-m Tmax=1.2*Tmean*1000//N-mm //C=pb*r2 //W=C*2*%pi*(r1-r2) //Tmax=2*%pi*u*C[r1^2-r2^2] //Tmax=0.11*r2^3 r2=(Tmax/0.11)^(1/3)//mm r1=1.3*r2//mm r=(r1+r2)/2000//m v1=2*%pi*N*r//m/min printf("speed obtained is,%f m/min\n",v1) //since velocity ontaine di sless then v,hence design is safe //W=C*2*%pi*(r1-r2) W=pb*r2*2*%pi*(r1-r2)//N W1=W/6//force on each spring //let d1 eb dia T=W1*D/2//N-mm d1=(16*T/(%pi*t))^(1/3)//mm C=D/d1 K=(4*C-1)/(4*C-4)+(0.615/C) printf("dia of sprig wire is,%f vmm\n",((K*8*W1*D)/(t*%pi))^(1/3)) printf("taking standard dia 4.064 from table 23.2,we get d is 4.064\n") d=4.064//mm Do=D+d Di=D-d printf("mean dia,outer di and inner dia are,%f mm\n,%f mm\n,%f mm\n",D,Do,Di) dx=8*W1*D^3*8/(G*d^4)//mm nb=8+2 fL=nb*d + dx +0.15*d printf("free length is ,%f mm\n",fL) printf("pitch of coil is,%f mm",fL/(nb-1))
6d597f0c1390151d472c7ff17618c34c012ceec0
717ddeb7e700373742c617a95e25a2376565112c
/2474/CH4/EX4.4/Ch04Ex04.sce
6b9f03c82f200fd28c6ce60469ec7bd421ae6bc1
[]
no_license
appucrossroads/Scilab-TBC-Uploads
b7ce9a8665d6253926fa8cc0989cda3c0db8e63d
1d1c6f68fe7afb15ea12fd38492ec171491f8ce7
refs/heads/master
2021-01-22T04:15:15.512674
2017-09-19T11:51:56
2017-09-19T11:51:56
92,444,732
0
0
null
2017-05-25T21:09:20
2017-05-25T21:09:19
null
UTF-8
Scilab
false
false
1,085
sce
Ch04Ex04.sce
// Scilab code Ex4.4: Pg.158 (2008) clc; clear; e = 1.6e-19; // Charge on electron, C E_k = 6e+06*e; // Kinetic energy of alpha particle, J I_b = 1e-09; // Beam current, A q_a = 2*e; // Charge on alpha particle, C I_0 = I_b/q_a; // Intensity of incident alpha particles, alpha/sec rho = 10.5*1e+06; // Density of silver, gm/m^3 N_A = 6.02e+23; // Avagrado's number M = 108; // Molar mass of silver, g/mol n = rho*N_A/M; // Particle density, atoms/m^3 A_sc = 5e-06; // Area of scintillation detector, m^2 r = 2e-02; // Distance between detector & foil, m t = 1e-06; // Thickness of foil, m k = 9e+09; // Coulomb's constant, N-m^2/C^2 Z = 47; // Atomic number of silver theta = 75; // Scattering angle, degrees delta_N = (I_0*A_sc*n*t/r^2)*(k*Z*e^2/(2*E_k))^2*1/(sind(theta/2)^4); // Number of alpha particles scattered per second, alpha/sec printf("\nThe number of alpha particles scattered per second = %3d alpha/sec", delta_N); // Result // Number of alpha particles scattered per second = 529 alpha/sec
01374e184b390e39a885702c265ba0a19e66d999
449d555969bfd7befe906877abab098c6e63a0e8
/1436/CH5/EX5.4/ex5_4.sce
84b9b520ff2ee1410f14ec61ac179602a858af6e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
268
sce
ex5_4.sce
// Example 5.4, page no-311 clear clc Cd=0.61 D=40*10^-3 d=20*10^-3 M=1/sqrt(1-(d/D)^4) //printf("%.4f\n",M) V2=10 rho=1000 g=9.8 X=V2*sqrt(rho/(2*g))/(Cd*M) p_diff=X^2 p_diff=floor(p_diff/100) p_diff=p_diff/100 printf("P1-P2 = %.2f kg/cm^2",p_diff)
f94d706f82ab819d318ab15206cfc9c72343ceae
df924acfdd5b043da9336a2276726dbfb655735a
/test_suite/predcfnx.tst
31e9137dbc60f3992c074401117b044c354a9385
[]
no_license
noxdafox/clips
b8fb280223b5aae615e427bf1f31c03cb932b09d
a2c548b69394f0e2cf7c6d583810b6a29a662ae1
refs/heads/master
2023-09-01T18:52:07.614807
2021-12-14T20:10:21
2021-12-14T20:10:21
95,596,886
11
10
null
null
null
null
UTF-8
Scilab
false
false
360
tst
predcfnx.tst
(unwatch all) (clear) (set-strategy depth) (open "Results//predcfnx.rsl" predcfnx "w") (dribble-on "Actual//predcfnx.out") (batch "predcfnx.bat") (dribble-off) (load "compline.clp") (printout predcfnx "predcfnx.bat differences are as follows:" crlf) (compare-files "Expected//predcfnx.out" "Actual//predcfnx.out" predcfnx) ; close result file (close predcfnx)