blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
214
content_id
stringlengths
40
40
detected_licenses
listlengths
0
50
license_type
stringclasses
2 values
repo_name
stringlengths
6
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
21 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
141k
586M
star_events_count
int64
0
30.4k
fork_events_count
int64
0
9.67k
gha_license_id
stringclasses
8 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
50 values
src_encoding
stringclasses
23 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
1 class
length_bytes
int64
5
10.4M
extension
stringclasses
29 values
filename
stringlengths
2
96
content
stringlengths
5
10.4M
ded923df7b4c6de4ce3ff544338fdef6e4e97529
449d555969bfd7befe906877abab098c6e63a0e8
/2087/CH14/EX14.24/example14_24.sce
80052b918a3d367a5e80adcaea329a22dea4dcc0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
788
sce
example14_24.sce
//example14.24 //calculate normal depth and average shear stress at channel bed clc;funcprot(0); //given B=3.5; //bottom width of channel n=0.016; //manning n S=2.6/10000; //bed slope Q=8; //discharge lfs=1; //left side slope rhs=1.5; //rigth side slope gamma_w=9.81; //unit weigth of water //using the equation of area and perimeter of trapezoidal section;Manning's formula and V=Q/A we get D as //Manning formula: V=R^(2/3)*S^0.5/n //(D*(3.5+1.25*D))^2.5=78.281+71.951*D //solving it by trial and error method;we get D=1.5; R=(D*(3.5+1.25*D))/(3.5+3.217*D); tau=gamma_w*R*S*1000; tau=round(tau*100)/100; mprintf("Depth of section=%f m.",D); mprintf("\nAverage shear stress at channel bed=%f N/square-mm.",tau);
f87880f647650ab52af382d94dfe29631c819c3c
449d555969bfd7befe906877abab098c6e63a0e8
/758/CH6/EX6.10/Ex_6_10.sce
ea79fa40f702e8bb571b364d73c7e284ab618159
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
445
sce
Ex_6_10.sce
//Example 6.10 clc;clear;close; x=[1 1 2 2 3 3]; //Calculation of DFT X=fft(x,-1); X=clean(X); disp(x,'Given Sequence is x(n): '); disp(X,'DFT of the Sequence is X(k): '); subplot(3,1,1); plot2d3(x); title('Given Seqence x[n]:');ylabel('Amplitude-->');xlabel('n-->'); subplot(3,1,2); plot2d3(abs(X)); title('Magnitude Spectrum |X(k)|');xlabel('k-->'); subplot(3,1,3); plot2d3(atan(X)); title('Phase Spectrum /_X(k)');xlabel('k-->');
81a32469d77b9e73ef183d4abcfae639a24332fe
5c3233dfa70e5d36e86060b61a47c0b9f98f59d6
/testDir2/xx.tst
af8bbc0c253c69116361f9e0991b7a64bb2da091
[]
no_license
rjhaveri007/tryout
c61b4cec237665170967b2ea844b0abb650d42a3
0baff6d5d1d76ad8acae2e2d9b996a0cf8a62723
refs/heads/master
2021-08-07T19:36:27.351122
2020-08-16T02:06:46
2020-08-16T02:06:46
211,509,069
0
0
null
null
null
null
UTF-8
Scilab
false
false
51
tst
xx.tst
# made changes in github repository and committed
7bed8b6c5810f277102e37f34b27100116d6c399
449d555969bfd7befe906877abab098c6e63a0e8
/575/DEPENDENCIES/4_6_1.sci
99a24fd6349c7ea7adfd7cda516dcf150041ed53
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
44
sci
4_6_1.sci
basis=100 //mol xP=0.1 xN=0.12 xA=0.78 x=0.3
55d1dee32f4dba09a6c0f87cd1d566c5c61d3103
5f2ca8e18735204f5995ac7e44a6e301eb23ea0b
/scripts/eqm/eqm.sci
4b814f708d130df144a2240370b306f22e5f6f7f
[]
no_license
Jettanakorn/mcflight
4e7d4e20976e8f3621bf13fec2a8b522ecfc49a9
e6579a11e10c5e9ae9ee558f464a6b88e1ae7a26
refs/heads/master
2023-03-17T10:49:28.906700
2019-10-30T20:20:58
2019-10-30T20:20:58
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
5,404
sci
eqm.sci
exec('atmosphere/atmosphere.sci'); exec('atmosphere/atmos_constants.sci'); //exec('eqm/engine_f16.sci'); //exec('eqm/aerodata_f16.sci'); function [mach, Q_Pa] = airdata(vt_mps, alt_m) [T_K, p_Pa, rho_kgpm3] = atmosphere(alt_m,0); mach = vt_mps/sqrt(1.4*atmos.R*T_K); Q_Pa = 0.5*rho_kgpm3*vt_mps^2; endfunction // Utility to allow functions as control inputs function v = get_control_value(t, value) if type(value)==13 then v = value(t); else v = value; end endfunction function [XD,outputs] = eqm(t, X, controls, params) // F-16 model from Stevens And Lewis,second edition, pg 184 mass = params.mass; geom = params.geom; g0_ftps2 = 32.17; rad2deg = 57.29578; ft2m = 0.3048; kn2mps = 0.514444; //Control variables throttle_u = get_control_value(t,controls.throttle); elev_deg = get_control_value(t,controls.elev_deg); ail_deg = get_control_value(t,controls.ail_deg); rudder_deg = get_control_value(t,controls.rudder_deg); // Assign state & control variables VT_ftps = X(1); alpha_deg = X(2)*rad2deg; beta_deg = X(3)*rad2deg; phi_rad = X(4); theta_rad = X(5); psi_rad = X(6); p_rps = X(7); q_rps = X(8); r_rps = X(9); alt_ft = X(12); pow = X(13); // Air data computer and engine model [mach, Q_Pa] = airdata(VT_ftps*ft2m, alt_ft*ft2m); Q_lbfpft2 = Q_Pa*0.0208854; //from Pascal to lbf/ft2 // Engine model cpow = tgear(throttle_u); XD(13) = pdot(pow, cpow); thrust_pound = thrust(pow, alt_ft, mach); // Look-up tables and component buildup CXT = CX(alpha_deg, elev_deg); CYT = CY(beta_deg, ail_deg, rudder_deg); CZT = CZ(alpha_deg, beta_deg, elev_deg); dail = ail_deg/20.0; drdr = rudder_deg/30.0; CLT = CL(alpha_deg, beta_deg) + DLDA(alpha_deg, beta_deg)*dail + DLDR(alpha_deg, beta_deg)*drdr; CMT = CM(alpha_deg, elev_deg); CNT = CN(alpha_deg, beta_deg) + DNDA(alpha_deg, beta_deg)*dail + DNDR(alpha_deg, beta_deg)*drdr; // Add damping derivatives TVT = 0.5/VT_ftps; B2V = geom.wingspan_ft*TVT; CQ = geom.chord_ft*q_rps*TVT; D = aerodynamic_damp(alpha_deg); CXT = CXT + CQ*D(1); CYT = CYT + B2V*(D(2)*r_rps + D(3)*p_rps); CZT = CZT + CQ*D(4); CLT = CLT + B2V*(D(5)*r_rps + D(6)*p_rps); CMT = CMT + CQ*D(7) + CZT*(geom.xcgr_mac - params.xcg); CNT = CNT + B2V*(D(8)*r_rps + D(9)*p_rps) - CYT*(geom.xcgr_mac - params.xcg)*geom.chord_ft/geom.wingspan_ft; // Get ready for state equations cos_beta = cos(X(3)); sin_theta = sin(theta_rad); cos_theta = cos(theta_rad); sin_phi = sin(phi_rad); cos_phi = cos(phi_rad); sin_psi = sin(psi_rad); cos_psi = cos(psi_rad); QS = Q_lbfpft2*geom.wing_ft2; QSb = QS*geom.wingspan_ft; g0_cos_theta = g0_ftps2*cos_theta; Q_sin_phi = q_rps*sin_phi; QS_over_mass = QS/mass.mass_slug; u_ftps = VT_ftps*cos(X(2))*cos_beta; v_ftps = VT_ftps*sin(X(3)); w_ftps = VT_ftps*sin(X(2))*cos_beta; ax_ftps2 = (QS*CXT + thrust_pound)/mass.mass_slug; ay_ftps2 = QS_over_mass*CYT; az_ftps2 = QS_over_mass*CZT; // Force equations udot_ftps2 = r_rps*v_ftps - q_rps*w_ftps - g0_ftps2*sin_theta + ax_ftps2; vdot_ftps2 = p_rps*w_ftps - r_rps*u_ftps + g0_cos_theta*sin_phi + ay_ftps2; wdot_ftps2 = q_rps*u_ftps - p_rps*v_ftps + g0_cos_theta*cos_phi + az_ftps2; u2_plus_w2 = u_ftps^2 + w_ftps^2; XD(1) = (u_ftps*udot_ftps2 + v_ftps*vdot_ftps2 + w_ftps*wdot_ftps2)/VT_ftps; XD(2) = (u_ftps*wdot_ftps2 - w_ftps*udot_ftps2) / u2_plus_w2; XD(3) = (VT_ftps*vdot_ftps2 - v_ftps*XD(1))*cos_beta / u2_plus_w2; // Kinematics XD(4) = p_rps + (sin_theta/cos_theta)*(Q_sin_phi + r_rps*cos_phi); XD(5) = q_rps*cos_phi - r_rps*sin_phi; XD(6) = (Q_sin_phi + r_rps*cos_phi)/cos_theta; // Moments roll_rps = QSb*CLT; pitch_rps = QS*geom.chord_ft*CMT; yaw_rps = QSb*CNT; p_q = p_rps*q_rps; q_r = q_rps*r_rps; q_hx = q_rps*geom.engmomenthx_slugft2ps; XD(7) = (mass.XPQ*p_q - mass.XQR*q_r + mass.AZZ*roll_rps + mass.AXZ*(yaw_rps + q_hx))/mass.GAM; XD(8) = (mass.YPR*p_rps*r_rps - mass.AXZ*(p_rps^2 - r_rps^2) + pitch_rps - r_rps*geom.engmomenthx_slugft2ps)/mass.AYY; XD(9) = (mass.ZPQ*p_q - mass.XPQ*q_r + mass.AXZ*roll_rps + mass.AXX*(yaw_rps + q_hx))/mass.GAM; // Navigation T1 = sin_phi*cos_phi; T2 = cos_phi*sin_theta; T3 = sin_phi*sin_psi; S1 = cos_theta*cos_psi; S2 = cos_theta*sin_psi; S3 = T1*sin_theta - cos_phi*sin_psi; S4 = T3*sin_theta + cos_phi*cos_psi; S5 = sin_phi*cos_theta; S6 = T2*cos_psi + T3; S7 = T2*sin_psi - T1; S8 = cos_phi*cos_theta; XD(10) = u_ftps*S1 + v_ftps*S3 + w_ftps*S6; // North speed XD(11) = u_ftps*S2 + v_ftps*S4 + w_ftps*S7; // East speed XD(12) = u_ftps*sin_theta - v_ftps*S5 - w_ftps*S8; // Vertical speed outputs.nz_g = -az_ftps2/g0_ftps2; outputs.ny_g = ay_ftps2/g0_ftps2; outputs.nx_g = ax_ftps2/g0_ftps2; outputs.Q_lbfpft2 = Q_lbfpft2; outputs.mach = mach; outputs.q_rps = q_rps; outputs.alpha_deg = alpha_deg; outputs.alt_ft = alt_ft; outputs.thrust_pound = thrust_pound; outputs.aero_forces = [CXT CYT CZT]; outputs.aero_moments = [CLT CMT CNT]; endfunction
3d45cba93b26b061177fbf0b55412af31d898197
449d555969bfd7befe906877abab098c6e63a0e8
/2735/CH8/EX8.2/Ex8_2.sce
020b479fe71a5558375d8b7d7b08c44ed82512d1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
226
sce
Ex8_2.sce
clc clear //Initialization of variables cp=0.25 //Btu/lbm R T0=520 //R T1=3460 //R //calculations dq=cp*(T0-T1) ds=cp*log(T0/T1) dE=dq-T0*ds eta=dE/dq //results printf("Thermal efficiency = %.1f percent",eta*100)
7fceee0487b8da707a14e96a97269f51abd85328
51635684d03e47ebad12b8872ff469b83f36aa52
/external/gcc-12.1.0/gcc/testsuite/ada/acats/tests/ce/ce2102c.tst
11868bcca948d9033f8368905fd9a4a92928bf2c
[ "LGPL-2.1-only", "GPL-3.0-only", "GCC-exception-3.1", "GPL-2.0-only", "LGPL-3.0-only", "LGPL-2.0-or-later", "FSFAP", "Zlib", "LicenseRef-scancode-public-domain" ]
permissive
zhmu/ananas
8fb48ddfe3582f85ff39184fc7a3c58725fe731a
30850c1639f03bccbfb2f2b03361792cc8fae52e
refs/heads/master
2022-06-25T10:44:46.256604
2022-06-12T17:04:40
2022-06-12T17:04:40
30,108,381
59
8
Zlib
2021-09-26T17:30:30
2015-01-31T09:44:33
C
UTF-8
Scilab
false
false
5,046
tst
ce2102c.tst
-- CE2102C.TST -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making -- this public release, the Government intends to confer upon all -- recipients unlimited rights equal to those held by the Government. -- These rights include rights to use, duplicate, release or disclose the -- released technical data and computer software in whole or in part, in -- any manner and for any purpose whatsoever, and to have or permit others -- to do so. -- -- DISCLAIMER -- -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A -- PARTICULAR PURPOSE OF SAID MATERIAL. --* -- OBJECTIVE: -- CHECK THAT NAME_ERROR IS RAISED WHEN THE NAME STRING DOES NOT -- IDENTIFY AN EXTERNAL FILE FOR AN OPEN OR CREATE OPERATION FOR -- SEQUENTIAL_IO. -- APPLICABILITY CRITERIA: -- THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH SUPPORT -- CREATE WITH OUT_FILE MODE FOR SEQUENTIAL TEMPORARY FILES. -- HISTORY: -- SPS 08/26/82 -- JBG 02/22/84 CHANGED TO .ADA TEST. -- JRK 11/30/84 CHANGED TO .TST TEST. -- TBN 02/12/86 SPLIT TEST. PUT DIRECT_IO INTO CE2102H-B.TST. -- SPW 08/25/87 CORRECTED EXCEPTION HANDLING. -- BCB 09/28/88 ADDED EXCEPTION HANDLERS FOR DELETE STATEMENTS. WITH REPORT; USE REPORT; WITH SEQUENTIAL_IO; PROCEDURE CE2102C IS NAME1 : CONSTANT STRING := "$ILLEGAL_EXTERNAL_FILE_NAME1"; -- AN ILLEGAL EXTERNAL FILE NAME THAT EITHER (PREFERABLY) -- CONTAINS INVALID CHARACTERS OR IS TOO LONG. NAME2 : CONSTANT STRING := "$ILLEGAL_EXTERNAL_FILE_NAME2"; -- AN ILLEGAL EXTERNAL FILE NAME THAT EITHER (PREFERABLY) -- CONTAINS A WILD CARD CHARACTER OR IS TOO LONG. BEGIN TEST ("CE2102C", "CHECK THAT NAME_ERROR IS RAISED BY OPEN AND " & "CREATE WHEN NAME DOES NOT IDENTIFY AN " & "EXTERNAL FILE FOR SEQUENTIAL_IO"); DECLARE PACKAGE SEQ IS NEW SEQUENTIAL_IO (INTEGER); USE SEQ; FILE1 : FILE_TYPE; INCOMPLETE : EXCEPTION; BEGIN -- CHECK WHETHER CREATE RAISES USE_ERROR BEGIN CREATE (FILE1); EXCEPTION WHEN USE_ERROR => NOT_APPLICABLE ("TEMPORARY SEQUENTIAL FILES WITH " & "OUT_FILE MODE NOT SUPPORTED"); RAISE INCOMPLETE; WHEN OTHERS => FAILED ("UNEXPECTED EXCEPTION RAISED FOR CREATE"); RAISE INCOMPLETE; END; CLOSE (FILE1); BEGIN CREATE(FILE1, OUT_FILE, NAME1); FAILED ("NAME_ERROR NOT RAISED - CREATE SEQ 1"); BEGIN DELETE (FILE1); EXCEPTION WHEN USE_ERROR => NULL; END; EXCEPTION WHEN NAME_ERROR => NULL; WHEN USE_ERROR => FAILED ("USE_ERROR RAISED - CREATE SEQ 1"); WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - CREATE SEQ 1"); END; BEGIN CREATE (FILE1, OUT_FILE, NAME2); FAILED("NAME_ERROR NOT RAISED - CREATE SEQ 2"); BEGIN DELETE (FILE1); EXCEPTION WHEN USE_ERROR => NULL; END; EXCEPTION WHEN NAME_ERROR => NULL; WHEN USE_ERROR => FAILED ("USE_ERROR RAISED - CREATE SEQ 2"); WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - CREATE SEQ 2"); END; -- CHECK WHETHER OPEN RAISES NAME_ERROR IN THE CASE OF A LEGAL FILE -- NAME BUT A NON-EXISTENT FILE. BEGIN OPEN (FILE1, IN_FILE, LEGAL_FILE_NAME); FAILED("NAME_ERROR NOT RAISED - OPEN SEQ"); EXCEPTION WHEN NAME_ERROR => NULL; WHEN USE_ERROR => FAILED ("USE_ERROR RAISED - OPEN SEQ"); WHEN OTHERS => FAILED ("WRONG EXCEPTION RAISED - OPEN SEQ"); END; EXCEPTION WHEN INCOMPLETE => NULL; END; RESULT; END CE2102C;
f6e6d2c56dbb1855586847433024a888add4ec73
c557cd21994aaa23ea4fe68fa779dd8b3aac0381
/test/graft2.tst
319d29ed88db3804c0c31a54e97ace734349e1e1
[ "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
110
tst
graft2.tst
## Second test of the graft feature read <min.fi rename grafted-min read <min.fi :4 graft grafted-min write -
f8697bf9cce9edb254fdb5aa3da525f0fc4efe95
449d555969bfd7befe906877abab098c6e63a0e8
/32/CH1/EX1.13/1_13.sce
1d75def4f07f48f898b26db624b20b69130af734
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
450
sce
1_13.sce
//pathname=get_absolute_file_path('1.13.sce') //filename=pathname+filesep()+'1.13-data.sci' //exec(filename) //Specific heat at constant pressure(in kJ/kg-K): Cp=2.286 //Specific heat at constant volume(in kJ/kg-K): Cv=1.768 //Universal gas constant(in kJ/kg-K): Ru=8.314 //Gas constant(in kJ/kg-K): R=Cp-Cv //Molecular weight of gas(in kg/K mol): m=Ru/R printf("\n\n RESULT \n\n") printf("\n\n Molecular weight of gas = %f kg/K mol",m)
ef902412a9389d1b395d982a2f984d1e605fa2b4
449d555969bfd7befe906877abab098c6e63a0e8
/575/CH5/EX5.2.5/5_2_5.sce
ebf179003940c27b7f9fa5b454834692d92180f8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
732
sce
5_2_5.sce
clc pathname=get_absolute_file_path('5_2_5.sce') filename=pathname+filesep()+'525.sci' exec(filename) printf("All the values in the textbook are Approximated hence the values in this code differ from those of Textbook") n2cap=flowinA*Dacetone/Macetone printf(" \n Molar flowrate of Acetone=%f mol Acetone/min",n2cap) P=Pfinal*760 + 763 y4=Pacetone/P printf(" \n Mole fraction of Acetone in the final flow= %f mol Acetone/mol",y4) printf(" \n Mole fraction of Nitrogen in the final flow= %f mol Nitrogen/mol",1-y4) n3cap=flowinN/0.0224 n4cap=n2cap/y4 disp("By using Overall Molar balance,") n1cap=n4cap-n2cap-n3cap V1cap=n1cap*0.0224*T1*760/(1*273*P1) printf("Volumetric Flowrate of Nitrogen = %f Nitrogen/min",V1cap)
a759dbd30c121ac3a4d7875223df6d1b70ade203
449d555969bfd7befe906877abab098c6e63a0e8
/67/CH1/EX1.27/example127.sce
7af90767fece16fbbaa60a32260215030e941375
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
150
sce
example127.sce
//Example 1.27 //Energy of the signal x(t)=Aexp(-a*t).u(t) clc; A=2; a=0.5; E=integrate('(A*exp(-a*t))^2','t',0,100);//Energy of the given signal
d2418ed091caf10884faff6c37822fbfdcc907e2
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.5/Unix-Windows/scilab-2.5/macros/percent/%hm_round.sci
d36c4cde8dc8fe5f7504c1a334cadb739857de21
[ "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
80
sci
%hm_round.sci
function M=%hm_round(M) // Copyright INRIA M('entries')=round(M('entries'))
89c2609536258cb7ee6a983a063c9a492c1a2c60
089894a36ef33cb3d0f697541716c9b6cd8dcc43
/NLP_Project/test/blog/bow/bow.12_9.tst
018c71034ee37ef4a31b6bb284d80249ae0a2a47
[]
no_license
mandar15/NLP_Project
3142cda82d49ba0ea30b580c46bdd0e0348fe3ec
1dcb70a199a0f7ab8c72825bfd5b8146e75b7ec2
refs/heads/master
2020-05-20T13:36:05.842840
2013-07-31T06:53:59
2013-07-31T06:53:59
6,534,406
0
1
null
null
null
null
UTF-8
Scilab
false
false
4,485
tst
bow.12_9.tst
12 31:1.0 36:1.0 62:0.25 93:0.13333333333333333 227:1.0 231:2.0 232:1.0 240:0.5 252:1.0 330:1.0 370:1.0 382:1.0 477:2.0 1237:1.0 12 1:0.015384615384615385 17:0.25 36:0.5 135:1.0 231:1.0 273:1.0 477:1.0 512:1.0 587:1.0 683:1.0 1419:1.0 12 1:0.1076923076923077 2:4.0 4:1.0 10:0.05263157894736842 11:0.3333333333333333 15:1.0 17:1.0 19:0.3333333333333333 40:1.0 48:0.2 53:0.3333333333333333 60:0.05 62:1.25 69:0.3333333333333333 75:1.0 93:0.13333333333333333 95:0.16666666666666666 96:0.25 112:1.0 113:1.0 114:1.0 118:1.0 123:1.0 185:1.0 192:0.14285714285714285 208:0.14285714285714285 209:0.6666666666666666 233:1.0 242:1.0 249:2.0 252:2.0 312:1.0 353:1.0 370:1.0 394:1.0 424:1.0 479:0.5 481:0.5 488:0.5 512:1.0 587:1.0 612:0.5 684:1.0 715:1.0 821:1.0 852:1.0 903:1.0 1023:1.0 1109:1.0 1195:1.0 1288:1.0 1409:1.0 12 1:0.015384615384615385 36:0.5 62:0.25 126:1.0 137:1.0 158:1.0 164:1.0 259:1.0 289:1.0 344:1.0 478:1.0 519:1.0 1007:1.0 1087:1.0 12 1:0.015384615384615385 232:1.0 941:1.0 12 93:0.06666666666666667 114:1.0 1007:1.0 1073:1.0 12 62:0.5 96:0.25 114:2.0 173:1.0 228:1.0 821:1.0 1073:1.0 12 1:0.015384615384615385 15:1.0 40:1.0 93:0.06666666666666667 259:1.0 420:1.0 1073:1.0 1106:1.0 12 4:1.0 10:0.05263157894736842 36:0.5 164:1.0 272:1.0 420:1.0 1106:1.0 12 1:0.015384615384615385 53:0.3333333333333333 155:1.0 241:1.0 253:1.0 431:1.0 506:1.0 531:1.0 921:1.0 12 60:0.05 62:0.25 76:0.07142857142857142 114:1.0 228:1.0 640:1.0 1073:1.0 12 1:0.015384615384615385 10:0.05263157894736842 15:1.0 36:1.0 40:1.0 69:0.3333333333333333 74:1.0 92:0.25 93:0.06666666666666667 113:1.0 114:1.0 298:0.5 317:1.0 479:0.5 924:1.0 1109:1.0 12 17:0.25 36:1.5 51:1.0 62:0.25 93:0.06666666666666667 124:1.0 148:0.3333333333333333 164:1.0 241:2.0 249:1.0 445:1.0 477:2.0 603:1.0 1087:1.0 1215:1.0 12 62:0.25 76:0.07142857142857142 93:0.06666666666666667 114:1.0 126:1.0 148:0.3333333333333333 208:0.14285714285714285 347:1.0 424:0.3333333333333333 467:1.0 852:1.0 1109:1.0 12 2:1.0 36:0.5 347:1.0 12 1:0.015384615384615385 4:2.0 36:0.5 259:1.0 848:1.0 12 1:0.03076923076923077 4:1.0 60:0.05 62:0.25 85:1.0 93:0.06666666666666667 114:1.0 166:1.0 208:0.14285714285714285 209:0.3333333333333333 228:1.0 273:1.0 382:1.0 1172:1.0 12 1:0.015384615384615385 4:1.0 17:0.25 93:0.06666666666666667 165:1.0 198:0.07142857142857142 259:1.0 272:1.0 477:1.0 837:1.0 980:1.0 1172:1.0 1233:1.0 12 1:0.046153846153846156 17:0.25 60:0.05 69:0.3333333333333333 156:1.0 198:0.07142857142857142 273:1.0 980:1.0 1172:1.0 1302:1.0 12 60:0.05 114:1.0 372:0.5 1361:1.0 12 1:0.03076923076923077 4:1.0 17:0.25 273:1.0 339:1.0 1093:1.0 1298:1.0 12 4:1.0 11:0.3333333333333333 60:0.05 171:1.0 317:1.0 488:0.5 688:1.0 858:1.0 12 4:1.0 17:0.25 312:1.0 424:0.3333333333333333 640:1.0 826:1.0 886:1.0 12 1:0.015384615384615385 2:1.0 17:0.25 36:0.5 53:0.3333333333333333 93:0.06666666666666667 108:1.0 148:0.3333333333333333 171:1.0 192:0.14285714285714285 238:1.0 264:1.0 343:0.1 347:1.0 424:0.3333333333333333 485:1.0 996:1.0 12 62:0.25 74:1.0 126:1.0 173:1.0 289:1.0 317:1.0 12 1:0.015384615384615385 2:2.0 4:1.0 10:0.05263157894736842 55:1.0 60:0.05 62:0.25 93:0.06666666666666667 126:1.0 198:0.14285714285714285 227:1.0 228:1.0 241:1.0 272:1.0 400:0.1 424:0.3333333333333333 431:1.0 477:1.0 1301:1.0 12 2:2.0 4:1.0 10:0.05263157894736842 53:0.3333333333333333 83:1.0 93:0.06666666666666667 126:1.0 192:0.14285714285714285 198:0.07142857142857142 264:1.0 268:1.0 400:0.1 456:1.0 647:1.0 12 1:0.03076923076923077 2:1.0 93:0.2 112:1.0 298:0.5 315:1.0 413:1.0 481:0.5 12 1:0.015384615384615385 15:1.0 36:1.0 420:1.0 911:1.0 12 17:0.25 264:1.0 317:1.0 343:0.1 346:1.0 12 4:1.0 51:1.0 55:1.0 62:0.25 93:0.06666666666666667 173:1.0 221:1.0 228:1.0 347:1.0 424:0.3333333333333333 12 62:0.25 122:1.0 208:0.14285714285714285 372:0.5 400:0.2 473:1.0 1093:1.0 12 4:1.0 20:1.0 62:0.5 209:0.3333333333333333 488:0.5 1093:1.0 12 1:0.03076923076923077 2:2.0 4:1.0 11:0.3333333333333333 40:1.0 60:0.05 62:0.75 74:1.0 208:0.14285714285714285 424:0.3333333333333333 956:1.0 974:1.0 12 17:0.25 62:0.25 126:1.0 173:2.0 1068:1.0 12 2:1.0 10:0.05263157894736842 40:1.0 62:0.25 93:0.06666666666666667 243:1.0 368:1.0 652:1.0 12 1:0.015384615384615385 2:1.0 4:1.0 17:0.25 126:1.0 148:0.3333333333333333 312:1.0 345:1.0 424:0.3333333333333333 481:0.5 1068:1.0 1298:1.0 12 4:1.0 17:0.25 36:0.5 126:1.0 259:1.0 268:1.0 478:1.0 494:0.3333333333333333 1025:1.0 1073:1.0 1087:1.0 12 1:0.03076923076923077 55:1.0 62:0.25 148:0.3333333333333333 228:1.0 259:1.0
71c280307ecdae05a1b7f39826c867b93f1c5da0
449d555969bfd7befe906877abab098c6e63a0e8
/2915/CH1/EX1.4/Ex1_4.sce
3501070d6ce723094a04ab546c08a1034e7c3e71
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
361
sce
Ex1_4.sce
clc,clear //example 1.4 //To determine height of the top of ladder touching the wall ladder = 17 //length of ladder or hypotenuse in feet base = 8 //distance between lower tip of ladder and wall in feet //Using pythagoras theorem h=sqrt(ladder^2 - base^2) //required height printf('Required height of top of ladder in contact with wall = %.0f ft',h)
760d4efe1be45961d7c79107cf66e99404eb9fc5
01697f0dc71290a6b6e233849a73d19a883845f1
/sem04/lab06/l06q01.sce
d309fdb8b610a8dbceedfd0f3c7ca394fac2e569
[]
no_license
aaruni96/Math-Lab
5d83a13547308bd9d1b7daa28be29a49e1020fbd
488469c9aba9251f5725e0851fb19e2aef38d234
refs/heads/master
2021-01-12T06:29:53.790743
2018-04-27T09:21:40
2018-04-27T09:21:40
77,370,232
0
0
null
null
null
null
UTF-8
Scilab
false
false
381
sce
l06q01.sce
clc; clear; x=1:5; printf("\nX values"); disp(x); y=[10,26,58,112,194]; printf("\ny values"); disp(y); X=1.4; n=length(x); h=x(2)-x(1); p=(X-x(1))/h; sum1=y(1); term=1;/ printf("\nDifference Table"); for i=1:n-1 for j=1:n-i y(j)=y(j+1)-y(j); printf("\t%d",y(j)); end term=term*(p-i+1)/i; sum1=sum1+term*y(1); mprintf("\n"); end printf("\nThe value of f(1.4) : %f", sum1);
79b7b36a1573ad00dfc8ba07712fd24bf4e431f7
449d555969bfd7befe906877abab098c6e63a0e8
/1163/CH28/EX28.4/example_28_4.sce
39b0a4d853a7f3023822034426c703c9bddeddf3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,088
sce
example_28_4.sce
clear; clc; disp("--------------Example 28.4---------------") tag="01000000"; // IPAddress tag Length="00000100"; // 4 bytes IPAddress="131.21.14.8"; // value tag_dec=bin2dec(tag); // tag's decimal value tag_hex=dec2hex(tag_dec); // tag's hex value Length_dec=bin2dec(Length); // length's decimal value or number of bytes ip1=131; ip2=21; ip3=14; ip4=8; // convert the bytes to binary byte1=dec2bin(ip1,8); byte2=dec2bin(ip2,8); byte3=dec2bin(ip3,8); byte4=dec2bin(ip4,8); // connvert bytes to hexadecimal h1=dec2hex(ip1); h2=dec2hex(ip2); h3=dec2hex(ip3); h4=dec2hex(ip4); // display the format printf("\n %s 0%d %s %s 0%s 0%s\n",tag_hex,Length_dec,h1,h2,h3,h4); printf(" | %s | %s |%s | %s | %s | %s|\n",tag,Length,byte1,byte2,byte3,byte4); printf(" Tag Length Value Value Value Value\n"); printf(" (IPAddress) (4 bytes) (%d) (%d) (%d) (%d)\n",ip1,ip2,ip3,ip4); printf(" |---------------%s------------------|",IPAddress);
acb61408658840e9985ac63050f9203419d11c5e
449d555969bfd7befe906877abab098c6e63a0e8
/884/CH3/EX3.8/Example3_8.sce
a57dc69704c6b94b8c9c8cfee92c389c6d809b55
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
580
sce
Example3_8.sce
//Percentage composition of a compound clear; clc; printf("\t Example 3.8\n"); H=1.008;//molar mass of H, g P=30.97;//molar mass of P, g O=16;//molar mass of O, g MolMass=97.99;//mol. mass of H3PO4, g percentH=3*H/MolMass*100;//percent of H percentP=P/MolMass*100;//percent of P percentO=4*O/MolMass*100;//percent of O printf("\t the percent by mass of Hydrogen is : %4.3f percent\n",percentH); printf("\t the percent by mass of Phosphorus is : %4.2f percent\n",percentP); printf("\t the percent by mass of Oxygen is : %4.2f percent\n",percentO); //End
12acef281f8ef5cf4bf80331c277b9b94b68d498
08ee8059476493a308f8e13adcbace48d7bcfc92
/Scilab_packetTracer_codes/nrz-i polar.sce
f3a2be818c2e52105d27d4a76805f83c95944e21
[]
no_license
Rushi-Bhatt/Self-Study
7ed44b7821154b7906c7d532255ea648ec9d6299
90cc75440328ba21769ffac878f46feadeb2f06f
refs/heads/master
2021-01-11T15:29:31.739065
2017-02-08T22:17:57
2017-02-08T22:17:57
80,360,471
0
0
null
null
null
null
UTF-8
Scilab
false
false
227
sce
nrz-i polar.sce
x=[1,0,0,1,1,1] l=length(x); a=gca(); q=1; a.data_bounds=[0,-2;10,+2]; for i=1:l if(x(i)==0) q=q; else q=-q; end plot(i-1:i,q) end xgrid(0)
d5a4beb81c6ef25f6ac6848e7e13903f9aa60e44
7c3708a7d8dd10452b9fbaf7b43e692b2cdccaf5
/src/ItemTemplates/Models/Models.tst
22e8b74231202525c04fb398f80036d2631a0d6f
[ "Apache-2.0" ]
permissive
Ackhuman/Typewriter
3925ad31d7686861df0e4f39f9001f2abdf03502
3ab6f1e19d75ae3839e0573d42851344269fdfa0
refs/heads/master
2022-04-13T08:15:53.688515
2020-04-12T21:48:26
2020-04-12T21:48:26
254,759,329
0
0
Apache-2.0
2020-04-10T23:57:09
2020-04-10T23:57:09
null
UTF-8
Scilab
false
false
542
tst
Models.tst
 module $rootnamespace$ { $Classes(Filter)[ export class $Name { $Properties[ public $name: $Type = $IsEnumerable[[]][$Default];] constructor(data: any = null) { this.map(data); } public map = (data: any) => { if(data) {$Properties[ this.$name = $IsPrimitive[$IsDate[new Date(data.$name)][data.$name]][$IsEnumerable[data.$name ? data.$name.map(i => new $Class(i)) : []][data.$name ? new $Class(data.$name) : null]];] } }; }] }
a4a4db2e3906e4912b315d9c57fe55b419842262
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH26/EX26.6/Ex26_6.sce
4142022d65768aa64ae045db8417e0b7c332a0b6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
130
sce
Ex26_6.sce
clear //Given l=5890.0 //A //Calculation E=12400/l //Result printf("\n Minimum energy is %0.1f ev",E)
af93922fc65edd339ea80074fc0f2c91354c0725
449d555969bfd7befe906877abab098c6e63a0e8
/2210/CH3/EX3.9/3_9.sce
3eeec0c60b92592381ba21d20bc7b7727c09a0a8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
226
sce
3_9.sce
//Chapter 3, Problem 9 clc Z0=50 //characteristic impedance in ohm Zl0=5 //ratio of Z/Z0 //calculation Z0t=sqrt(Zl0) Z0t1=Z0*Z0t printf("Impedance = %.2f ohm",Z0t1)
05aaa58beff0ed727c4382f4be2c0bd883e351c4
449d555969bfd7befe906877abab098c6e63a0e8
/1247/CH5/EX5.48/example5_48.sce
3cd7c1223165b99f9eab1e567e35e558dfd46ae7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
488
sce
example5_48.sce
clear; clc; // Stoichiometry // Chapter 5 // Energy Balances // Example 5.48 // Page 301 printf("Example 5.48, Page 301 \n \n"); // solution // basis 100 kg of sol with 32% N MNH4NO3 = 80.0434 MNH2CONO2 = 60.0553 MN2 = 28.0134 na = 32/(60.9516) Ureadis = 1.1758*na*MNH2CONO2 // kg water = 100-(na*MNH4NO3+Ureadis) ndis = 525 m = ndis/water HE1 = 40.3044-2.5962*m+.1582*m^2-3.4782*10^-3*m^3 HE = HE1*ndis printf("Heat effect of the sol = "+string(HE)+" kJ.")
2799be7402b6e9fae7ac502cdffcb6d5b0fc67da
449d555969bfd7befe906877abab098c6e63a0e8
/3129/CH14/EX14.5/ex14_5.sce
59c20ebda45415a8bda3c6f4f704f863c109c1da
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
318
sce
ex14_5.sce
//Finding the Performance Parameter of an AC power supply with PWM control //Example 14.5(Page No-624) clc clear //given data a=0.5//turns ratio V1=100 R=2.5 p=4 Vs=V1 V2=a*V1 V0=V2 e=18//width of pulse d=18*(%pi/180) //in radians Vl=V0*sqrt(p*d/%pi) Il=Vl/R printf('RMS load current:%2.2f A\n',Il)
ab39efb15a25b099b554e6615671d4db05af62b7
449d555969bfd7befe906877abab098c6e63a0e8
/2072/CH27/EX27.6/EX27_6.sce
5ffe3fc68260393d69510bccd22ac12e2f62ada4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
413
sce
EX27_6.sce
//Chapter 27 clc //Example 6 //given d=0.314 //spacing between certain planes in a crystal of calcite in nm l=0.070 //wavelength of X-rays in nm m=1// first order of interference theta1=asind((m*l)/(2*d)) disp(theta1,"Grazing angle at first order of interference in degree is") m=3 //third order of interference theta2=asind((m*l)/(2*d)) disp(theta2,"Grazing angle at third order of interference in degree is")
6689ab6fde4e305721352c0a61fedb0cab92103d
449d555969bfd7befe906877abab098c6e63a0e8
/104/CH2/EX2.19/2_19.sce
8688ff81e0deeb716a39cd1a8b64475885fb2dd0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
180
sce
2_19.sce
//inverse of a 3 X 3 matrix A=[1 2 3;4 5 6;7 8 9] d=det(A) if det(A)~=0 then i=inv(A) disp(i,"A^-1=") else disp("inverse of a singular matrix doesnt exist") end
c54935f021d32aa16ddbbbe540a4ec6f7c35fabf
fd6e45f66c41ad779a3d47c3bf8ebfa140d3d657
/P7 - Interpolation and function approximation/Tchebyshev.sce
ea2678c8d0056e6a657f024d7f41654efa930df3
[]
no_license
jere1882/Numerical-Analysis-Assignments
7f474e2020d010f9f9c3dceff5e48c03b0d38652
1074f92ca93d0a402259f92a0f61f105f25e5230
refs/heads/master
2021-09-06T20:00:36.411386
2018-02-10T18:04:38
2018-02-10T18:04:38
121,039,769
0
0
null
null
null
null
UTF-8
Scilab
false
false
517
sce
Tchebyshev.sce
function p=tchebyshev(n) if n==0 then p=poly([1],'x','c'); end if n==1 then p=poly([0,1],"x",'c'); end if n>1 then aux=poly([0,1],"x",'c'); p= 2* aux * tchebyshev(n-1) - tchebyshev (n-2) end endfunction function p=tchebyshev2(n) p= cos(n*arcos(x)); endfunction //SON POLINOMIOS DEFINIDOS EN -1,1. //EL POLINOMIO MÓNICO DE TCHEBYSHEV: function p=tch_monico(n) p= tchebyshev(n)/2**(n-1); endfunction //tiene el menor maximo [-1,1] // 1/2^(n-1)
0a2024ac37ee9d8aa32f38f785d5d3621dc7eca1
449d555969bfd7befe906877abab098c6e63a0e8
/1640/CH1/EX1.1/1_1.sce
97d97ff125111f91e82c72e7a2936ce12ead87cc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
224
sce
1_1.sce
clc //initialisation of variables h1= 2 //in h2= 2 //in wn= 13.6 //g/cc w= 1 //g/cc W= 62.4 //lbs/ft^3 //CALCULATIONS ha= ((h2*wn/w)-h1)/12 pa= ha*W/144 //RESULTS printf ('Pressure of water= %.2f lb/sq in ',pa)
f453e792acd3a75034bbce5633b374af54a7f0d2
6bbc9f4f7e12ef440acd3fe25a51b4f048cde42d
/Image-Enhancement-in-the-Spatial-Domain/histogram.sce
65a5fbc7e212d5b6a957a67448bbfd148eda8f57
[]
no_license
krisbimantara/Image-Processing-SCILAB
9dee568676b4f2943c54074d8c88c84cb33b3bb2
bf8e8905efcdd6e3e0096f7a87cce8212fe0f14c
refs/heads/main
2023-03-27T04:55:37.463238
2021-03-29T13:30:26
2021-03-29T13:30:26
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,130
sce
histogram.sce
a=imread('bima.jpg'); [r,c]=size(a); me=a(:,:,1); hi=a(:,:,2); bi=a(:,:,3); h=zeros(1,256); hme=zeros(1,256); hhi=zeros(1,256); hbi=zeros(1,256); for i=1:r for j=1:c if (me(i,j)==0) me(i,j)=1; elseif(hi(i,j)==0) hi(i,j)=1; elseif(bi(i,j)==0) bi(i,j)=1; end hme(me(i,j))=hme(me(i,j))+1; hhi(hi(i,j))=hhi(hi(i,j))+1; hbi(bi(i,j))=hbi(bi(i,j))+1; // h(me(i,j))=h(me(i,j))+1; h(hi(i,j))=h(hi(i,j))+1; h(bi(i,j))=h(bi(i,j))+1; end end figure(); subplot(121); imshow(me); xtitle('Lapisan Merah'); subplot(122); plot2d(hme,style=[color('red')]); xtitle('Histogram Lapisan Merah'); figure(); subplot(121); imshow(hi); xtitle('Lapisan Hijau'); subplot(122); plot2d(hhi,style=[color('green')]); xtitle('Histogram Lapisan Hijau'); figure(); subplot(121); imshow(bi); xtitle('Lapisan Biru'); subplot(122); plot2d(hbi,style=[color('blue')]); xtitle('Histogram Lapisan Biru'); figure(); subplot(121); imshow(a); xtitle('Foto Asli'); subplot(122); plot2d(h,style=[color('gray0')]); xtitle('Histogram Foto Asli');
a424c5f37b51687adb4be2046f774fb2d0e5ca22
449d555969bfd7befe906877abab098c6e63a0e8
/137/CH16/EX16.1/prob_16_1.sce
ad62ede4c2c466b0760c56b51fbadc39c0525897
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
978
sce
prob_16_1.sce
//page no 732 // example no 16.1. //here generator matrix is given clc; G=[1 0 0 1 0 1;0 1 0 0 1 1;0 0 1 1 1 0]; d1=[1 1 1]; d2=[1 1 0]; d3=[1 0 1]; d4=[1 0 0]; d5=[0 1 1]; d6=[0 1 0]; d7=[0 0 1]; d8=[0 0 0]; c1=d1*G; for i=1:6 if c1(i)==2 then c1(i)=0; end end c2=d2*G; for i=1:6 if c2(i)==2 then c2(i)=0; end end c3=d3*G; for i=1:6 if c3(i)==2 then c3(i)=0; end end c4=d4*G; for i=1:6 if c4(i)==2 then c4(i)=0; end end c5=d5*G; for i=1:6 if c5(i)==2 then c5(i)=0; end end c6=d6*G; for i=1:6 if c6(i)==2 then c6(i)=0; end end c7=d7*G; for i=1:6 if c7(i)==2 then c7(i)=0; end end c8=d8*G; for i=1:6 if c8(i)==2 then c8(i)=0; end end disp("code words are given as") disp(c1); disp(c2); disp(c3) disp(c4) disp(c5); disp(c6); disp(c7); disp(c8);
32a7fbfd0cf78fd7d4a857dca89526485ae44597
ac1f8441b0319b4a391cd5a959bd3bb7988edfa7
/data/news2015/news2015/EnBa/enba12.tst
b2172e089fcc1496be6cfbe7d5f8bb7229942dda
[ "MIT" ]
permissive
SaeedNajafi/transliterator
4d58b8604fa31f52ee2dce7845e002a18214fd5e
523a087b777a5d6eec041165dabb43848f6222e6
refs/heads/master
2021-09-18T17:02:59.083727
2018-07-17T06:01:21
2018-07-17T06:01:21
129,796,130
0
0
null
null
null
null
UTF-8
Scilab
false
false
8,097
tst
enba12.tst
tiwana baharali iceland color shivekar elijabeth crockett nalinibala lasker bandiram bhuban gascogne chess stanwyck lorence seyyed salil lafarge nabarun christie geneva leyland tabsum samad vadi dustin strauss ervine attabira arusha egypt rajpati innisfallen nursing intrepid worldwide ranchod luge dharamsala sintu sathi townsend elmo bidhuvushan challenges sutherland ligurian kohinoorbibi irian chandrika sahidan transfiguration barkur nahida nurbanu ahamudulla bidhyadhar bijlirani lemoun afternoon mayureshwar reserve sairaj maawi kurnul brockhurst telefilm shahajadibibi chikkodi idjwi mahin dhimaan kddi kuntal behetar cable mhjahangir filipet cake fakrul anzum settsu bhabanicharan aragon devang maphijan frug morsalim chillupar akbari price asansol jamsed munsurakhatun shahanur albemarle pratik altabanu mumbai vechten maman tohda priscilla niwaaran nurjuma sharat wachovia bansal dharsiwa rathan nutrition sanoka tulabala nocil sheikendar gulati pankajini mdsafi mazhar nel alaulhak hirak jim taslimabibi dhirendra ukhrul tansco colaba arche hamidieh babudhan solectron juan hasanali fender bhairabi nabakanta vanoise murshada manjali subaru spiel bharatidevi digital red victor tarik meraj surojit lilabala blauwkapel marshal laxmiram suleman bhabua mahakanta dwigen hub khursid dhenubala djembe ede bajlur faijuddin johannesburg florida premtosh tiki vir ramsankar strix levar chitrakonda mahajana manobala amla sakhibala cyprus male karan rasana ahmar ramsagar anjani pousali kanpuri dhaarap mahakutta karttik gopikrushna osman ormula lehman kepler virupaksha ramnibas flattery asokhar sudakhina babulal ashgarali intel duvvada bishanath bishnudeb repsol dachigam slack pratah shambhupad everdingen joginder malesun salle gadag colin sky lychnostatis maisum bin anainaduvu rayon kanakprabha barisan boordhi krishnamohan fulton madhumati rajekabibi aijuddin mutneja gourdas balaji fuel port to pugachevs tuslima saadi deblal saira nishabala jhor galaxidi franklyn sitapur ghumar balaka amalkanta egg gangarani flock bazar zabbar rinjani scandinavian prannath barharwa lambeth jahanarabegam daar kaalaj binodbihari trehan santander kutumbale phurki zoysa behularani sadhani mdarif jaypee sarguja belurani akaash nayyar line liltu greenspan robertson hafij balco garland saggu auto deccanchronicle shulakha marcs spacey felis bijainagar madanmohan alembic ninetowns bunilal dhiman baze fortaleza amadeus edi dartmouth coca sherwin angelo dhavle orchards rwenzori outreach shery kaler durgamani container ben cary macdonald mahatma manjuri fulo tridib maphijur citadel geral okz karve baghdadi bichitra chandradip astaire goram kazuma pilani deb amritendu su mehmud sheep hiking duquesne narsad sagina chandrapura pitambar chauri sheikh sajedali maphejala diplana keshgadiya dior wallece conn bijaylakshmi dymchurch birdi matibala lago goodlass manji plato banbasi reedsport brain baisaki foster visualsoft sahila sumantra tamasa rockwall parthakumar nagamootoo makatkar rupnagar bengal adarini ardnacrusha swarnalota dubnium prinz matijul ahuja mansree salaam kathua pricketts balaichandra tuckaleechee chitrakot bhatni balasor fulbati doda basundhara parikhit oncolytics chhansara bawana sunipa mandy grizzly pieris abhaychandra chem bichchhu barrier sabed telekom mamatabala coles duggari kaila namchi dapanjan maniklal hoon shobhan khafif somachandra alak pareshnath venkataramana commtouch gitika mart phajlekrim abdulali neck sahanaz sambad tancítaro siloso groupe laabhante vidur ubajara benibala petrie riding daire unmadini kaali katsuragi pioneers fish mahira samu chandmun raine menubala shakdar kanchan satnam kamalchandra oarathuppalayam rasel dharashivkar archery impero albion pulasthi bladen dalrymple premio dadwal marsh minturani drake aminuddin hollebone telenor upen rajeswar manjrekar gill ingurskaya williamson anadi wijesuriya deoprayag poste baigaiveeran orla naosadali gouri anupama bahadur padmalaya ramadabi ramila aisin umarali tinkari dammika geoff rentu kanengara fedex uma castrol rajnath military mahabbat kherli midday anara nabira bhulu mukuleshur mansi hopes barks gorachand saathi shiromoni cholkar darke voyager lepanto mayurbhanj rajinder berrien eluru derek muradali munsi shilling rekharani madhuribala faju cerebus babenburg sitesh khattkar poetry bhise dorey bendre norsk aktarunbibi hasemali baharun anu sunitkumar zeven adil nandani rouphali debtosh smile sachsen dhekiajuli euler debarati milanrani purnimabibi gunjhow reshma kendurkar ununhexium thurnwald purnimadabi belapur jhantulal razzaq azamgarh nobel vieux angela bada anitadebi hencoate patti khanduja chhatunath chandak daporijo rupsena mamatadevi rafu carrefour rupsana malhotra rukmani dhulghat harpal sebika ranasinghe subhasranjan adesh amausi dead shiladabi nagaur debgopal ezra rajdeo borawar humayun chettinad time nasem rikta benukar kenth rubidium coney grinham portogallo relf pico shahidul safina mursidakhatun mohra brajen samarasekera recovery maunsell lakkhi beauty beijing edabali rangela radhamohan noord idbanu franks pasqual anantnag malinche ramabatidevi mannu diplomatic sarakatsanoi gabri bhadurani makhdoom sharman binodbala palanca gobinda girls bibek hasna bechurani dahiya bipula tirumalai lansbury multani edgcumbe nisal nripendra tulusi alema pratim cimatron dhakuakhana ajema bharath saleem kamini graphical pointer gatting mcclary scotland deolali pirmuhamad som amina tasman samena makkad dhule titubala tapu preussen rinakumari karen olfert caroline fernado mukti asranada chana rezaul agori atabal rahul lakshmi dracula kohli company hariprasad acorn farjun kirtibas westlb purohit murchison bishnathganj medzhybizh mirabel sakhealauddin gainsari java biochemistry conjunto baidhar nagpur garth word punam nordiska nurjanbibi mdakbar avishkar tusubala slocum vardha sarangi kangad piuli bardhaman yohan ramala cuffy greg atanu rajshekhar jafur brennius jami maphroja anupshahr lome kundan mitun gajare isuzu vidler barmer nirod kronprinz wollaston bholu delhi suratjan kyzyl behula babagon abutaleb popton fossil badayoon valeureuse ahold yarhosen shimanta kettle derol daraganj lithuania mohinder sujan granth sujatali biocon alik pabanchandra ahwahnee raanchi kullursandai phek makpo bandula rajnandgaon sohota bijankumar dharmpur tausif bahera shaktiprasad gomoh wein dohak soumi moti poma chitose bozeman pierce bunny sundareshvara sibiloi ramesh shachinandan meijer ritakumari dhrabapada nasrudin jason habsburg ashadulla canastra kmart samshul biju pushpadasi nalavade haider bland sarojini meherunnisha lothringen snehobala dakala sirmilik golconda bambi sarabande rookie dharmaraj jharnabegam bikashkumar bolai systems garcia dabilpur wheeler majeda raosanali dharitri abdullatiph garot gowarikar chartres dashanan sushanta voltaire indradip basira aagale rippington knowledge kajal sponge mithubala bhulun kerinci gandharaj taurus friedland vuntut viraat ramkisor vishalgad tanners tablu mirarani yamashiro cox sonitpur stansted kahlon pateswari uppar anamika sahabuddin adoni bittu merits ghatam sumter cleopatra transverse lillee kutharaiyar pujarani bulbul premnath abuhosen julekha yazuddin raisen burgoyne penn colossus neshar thar chidambarnaar jbbar jabar ivvavik jaavdekar ananta baltu kashinath falmani dadasaheb nabagopal shefalibibi saifar merlin chapel sitar fridhem salemabegam shiva sahenara bela nichhubala hero gijare bogue ladwa whitbread ujjain allentown bandra patasi ghaisas pocono tithi manihar raya rajbalam bray chandrima niroja hopwood ambodala bugul sunflag sankar engineer madhurima murshalim dubrovnik chhapra kris marakele manikchand ruhini sibanibala adavatkar mungekar alokarani vyavhare trip munnilal gadulka tare nepali bishnucharan harbour mahedali pochiah radico koningshooykt guaracha sharjahan dillon kumud danpur chabbra najirabibi lakhbir manipuri thermopylae anubibi bhupendar lander udaipur abulkashem hari gurusar oswego manaprita sailani shaktinath banita badrinath rebotibegam arjuna binay dumbra dharamgarh shubham spinnin dhanpur rimi baharul rasnara sourabi alihosen schooten chindwara mizoram
5ac861023defa07bebbb3cc7a7609e92a9f451bd
449d555969bfd7befe906877abab098c6e63a0e8
/3648/CH19/EX19.2/Ex19_2.sce
2d342b693b7fbdee058e0187b7fd449badde1fb0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
414
sce
Ex19_2.sce
//Example 19_2 clc(); clear; //To find how large is the average EMF induced b=0.5 //Units in T a=4*10^-4 //Units in meters^2 phi2=b*a //Units in Wb phi1=0 //Units in Wb deltaPHI=phi2-phi1 //Units in Wb n=100 //Units in Constant deltaT=2*10^-2 //Units in sec emf=(n*deltaPHI)/deltaT //Units in V printf("The average emf Induced is emf=%d V",emf)
447678f9020c82edf81ce0559deb7e6124b535e9
449d555969bfd7befe906877abab098c6e63a0e8
/1319/CH6/EX6.12/6_12.sce
b89a2f7899643e1ef20756b6ee7ec0e1fdaa4169
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
570
sce
6_12.sce
//Speed of a belt driven shunt generator clc; clear; Pg=100*(10^3);// Power output of the generator Pm=10*(10^3); // Power input of the motor V=220; Ng=300; // Running speed of the generator Ra=0.025; // Armature resistance Rf=60; // Field Resistance Vb=2;// Voltage drop due to brushes Im=Pm/V; // Current taken by the motor Ig=Pg/V; // Current delivered by the generator Eg=V+(Ig*Ra)+Vb; // Induced EMF of generator Eb=V-(Im*Ra)-Vb; // Back EMF of the motor Nm=Eb*Ng/Eg; printf('The Speed under motoring condition = %g rpm \n',Nm)
9b606f213c7f798fe5b3db24a1a285bbc57f58da
009e6209a86f0838f0faca8a33b2c162e5d1a7a6
/src/scripts/interpolacionNewton.sce
c78b33889df611c161b182d1a89b550fb9fc1baa
[]
no_license
MoisesU/MESO-MetodosNumericos
90a62a31e3213c50dec55228ceca7ce034cfbb7c
17fe0efa1690ac93f36799a12a9f9c99f1ab94a4
refs/heads/main
2023-06-02T05:51:03.641326
2021-06-20T03:18:17
2021-06-20T03:18:17
306,203,044
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,294
sce
interpolacionNewton.sce
function y = interpolNewton(func, grado, x) [n, m] = size(func) dif = zeros(grado, grado) y = 0 h1 = 0; h2 = 0; if(n <> 2) error("No es una función tabular") end for i=1:1:m-2 h1 = func(1,i + 1) - func(1,i); h2 = func(1,i + 2) - func(1,i + 1); if h1 ~= h2 error('Este metodo solo puede utilizarse en incrementos de X iguales'); end end grado = round(grado); if (or([~isreal(grado), grado <= 0])) error('El grado del polinomio debe ser mayor que 0'); end if grado >= size(func,2) error('El grado del polinomio es mayor al permitido por el metodo.'); end for j=1:1:grado for i=1:1:grado - j + 1 if j == 1 dif(i+j-1, j) = func(2, i + 1) - func(2, i); else dif(i+j-1, j) = dif(i+j-1, j-1) - dif(i+j-2, j-1); end end end k = (x - func(1, 1)) / h1; for i=1:1:grado + 1 num = 1; j = 0; while j <= i - 2 num = num * (k-j); j = j+1; end if i == 1 y = y + (num / factorial(i-1)) * func(2,1); else y = y + (num / factorial(i-1)) * dif(i-1, i-1); end end endfunction
0fdf85c5afb6ad155a6ac3b5c454a0b24537e230
449d555969bfd7befe906877abab098c6e63a0e8
/343/CH1/EX1.58/ex_58.sce
e4730b9a56bcd0fccdcdb3c204c7843a2d4c5716
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
462
sce
ex_58.sce
V1=4; //Assigning values to parameters R1=2; I1=1; R2=1; R3=3; I2=3; I1a=V1/(R1+R2); //Considering the current flow due to 4V voltage source I1b=(I2*R1)/(R1+R2); //Considering the current flow due to 3A current source I1c=(I1*R1)/(R2+R1); //Considering the current flow due to 1A current source I=I1a+I1b+I1c; disp("Amperes",I,"Current in 1 Ohm resistor using Superposition principle");
eadb4d941074aaa2be34ef5ebde077e91e7fce3b
449d555969bfd7befe906877abab098c6e63a0e8
/2660/CH5/EX5.22/Ex5_22.sce
5e04ca410a5afcfd3691df99abef346aaa95e005
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
523
sce
Ex5_22.sce
clc a = 0.125 // saving in labour cost per unit b = 0.4 // overhead applied on direct labour saved D = 1/2 // allowance for depreciation C = 2400 // first cost I = 6/100 // interst rate T = 4/100 // allowance for taxes M = 10/100 // allowance for maintenance n = 6 // number of baches S = 80 // cost of set up s1 = S*n // total set up cost N = (C*(I+T+D+M)+s1)/(a*(1+b)) // pieces t = N*2 // total number of pieces printf("\n Total number of pieces produced = %d" , t) // Answers vary due to round off error
6b658021fa211523b91cfe097f594b4cee1fe658
449d555969bfd7befe906877abab098c6e63a0e8
/1073/CH3/EX3.5/3_5.sce
554a2e09a93c1a7d3bd7a3e4e71b255c844bd4c7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
716
sce
3_5.sce
clc; clear; //Example 3.5 //Given mu=3.9*10^-4 //Kinematic viscosity in sq m/s k=36.4*10^-3 //Thermal conductivity in W/(m.K) Npr=0.69 u_inf=8 //[m/s] L=1 //Lenght of plate in [m] Nre_l=u_inf*L/mu //Since Nre_l is less than 3*10^5 ,the flow is laminar over the entire length of plate Nnu=0.664*sqrt(Nre_l)*Npr^(1.0/3.0) //=hL/k h=k*Nnu/L //w/sq m.K h=3.06 //Approximation [W/sq m.K] T_inf=523 //[K] Tw=351 //[K] W=0.3 //Width of plate [m] A=W*L //Area in [sq m] Q=h*A*(T_inf-Tw) // Rate of heat removal from one side in [W] printf("\nRate of heat removal is %f W\n",Q) //from two side: Q=2*Q //[W] printf("\n %f W heat should be removed continously from the plate",Q);
85a2d076cfd705bdefacfafdd5ec5045b009940b
449d555969bfd7befe906877abab098c6e63a0e8
/800/DEPENDENCIES/4_4.sci
5edc5fc1b2562484112641fd4959617c05211002
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
192
sci
4_4.sci
k1 = 0.072; // s^-1; yA0 = 1; P0= 6;//atm R = 0.73; // atm/lb.mol.oR T0 = 1980; //oR T1 = 1000; //K T2 = 1100; // K e=1; E = 82000; // cal/g.mol FB= 0.34; //lb.mol/s X = 0.8;
b6ec6cc1e8ae310b2ff83cfb24dff3bf87f66db3
449d555969bfd7befe906877abab098c6e63a0e8
/2951/CH5/EX1.A/additional_ex_1.sce
bb29d609a3883cf4e4a626b28154a23d302a2acb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
553
sce
additional_ex_1.sce
clear; clc; //("current through the capacitor is i=C(dv/dt)"); t=15; //acquisition time in us i=5; //current in mA v=5; //maximum voltage across capacitor in V // to satisfy current requirement disp("to satisfy current requirement"); C_current_req=i*t/v; disp(C_current_req,"C(nF)="); //to satisfy accuracy requirement disp("to satisfy accuracy requirement"); C_accuracy_req=t/(6.9*15)*1000;// to convert into "nanoFarad" disp(C_accuracy_req,"C(nF)="); disp("to satisfy both requirements,smaller of the two can b taken");
bd2ad025e1feab26c352a008be932fdf215bfd17
449d555969bfd7befe906877abab098c6e63a0e8
/1301/CH5/EX5.9/ex5_9.sce
47ebe80c716c8ecfbc570d64b8127d33ce320aca
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
289
sce
ex5_9.sce
clc; v=10; //velocity in min/hr p=80; //power required in hp v=v*1.47; //converting v to ft/sec P=p*550; //converting P to ft.lb/sec F=P/v; //calculating resistive force required disp(F,"Resistive force required in lb = "); //displaying resistive force required.
285121e693b6644743c0b838003dfec0a141d6bd
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set6/s_Electronic_Circuits_M._H._Tooley_995.zip/Electronic_Circuits_M._H._Tooley_995/CH1/EX1.15/Ex1_15.sce
f2686405d812d3c8020ba7093c97676cf8d2e8ef
[]
no_license
hohiroki/Scilab_TBC
cb11e171e47a6cf15dad6594726c14443b23d512
98e421ab71b2e8be0c70d67cca3ecb53eeef1df6
refs/heads/master
2021-01-18T02:07:29.200029
2016-04-29T07:01:39
2016-04-29T07:01:39
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
135
sce
Ex1_15.sce
errcatch(-1,"stop");mode(2);//Ex:1.15 ; ; r=56;//in ohms i=0.1;//in amp v=i*r; printf("Voltage dropped = %f volts",v); exit();
25a2761f4c02d1c1ed025142d4cf2dce798ee292
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.4.1/macros/fraclab/dilate.sci
6cd5fcddd0c7c432a8264ad9cd06fa77b49254be
[ "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
3,013
sci
dilate.sci
function [sscaled,mellin,beta] = dilate(s,a,fmin,fmax,N) ; // This Software is ( Copyright INRIA . 1998 1 ) // // INRIA holds all the ownership rights on the Software. // The scientific community is asked to use the SOFTWARE // in order to test and evaluate it. // // INRIA freely grants the right to use modify the Software, // integrate it in another Software. // Any use or reproduction of this Software to obtain profit or // for commercial ends being subject to obtaining the prior express // authorization of INRIA. // // INRIA authorizes any reproduction of this Software. // // - in limits defined in clauses 9 and 10 of the Berne // agreement for the protection of literary and artistic works // respectively specify in their paragraphs 2 and 3 authorizing // only the reproduction and quoting of works on the condition // that : // // - "this reproduction does not adversely affect the normal // exploitation of the work or cause any unjustified prejudice // to the legitimate interests of the author". // // - that the quotations given by way of illustration and/or // tuition conform to the proper uses and that it mentions // the source and name of the author if this name features // in the source", // // - under the condition that this file is included with // any reproduction. // // Any commercial use made without obtaining the prior express // agreement of INRIA would therefore constitute a fraudulent // imitation. // // The Software beeing currently developed, INRIA is assuming no // liability, and should not be responsible, in any manner or any // case, for any direct or indirect dammages sustained by the user. // // Any user of the software shall notify at INRIA any comments // concerning the use of the Sofware (e-mail : FracLab@inria.fr) // // This file is part of FracLab, a Fractal Analysis Software [nargout,nargin] = argn(0) ; M = length(s) ; if mtlb_rem(M,2) == 0 disp('--- WARNING --- length of signal to be scaled must be a odd number') disp(' S zero-padded to the nearest odd length') ; s = [s(:);0] ; M = M+1 ; end T = M-1; if nargin == 2 s = mtlb_fftshift(s) ; STF = fft(s,-1) ; s = mtlb_fftshift(s); sp = (abs(STF(1:M/2))).^2; f = linspace(0,0.5,M/2+1) ; f = f(1:M/2); again = 'n'; while (again=='n' | again=='N') plot(f,sp) ; fmin = input('lower frequency bound = ') ; fmax = input('upper frequency bound = ') ; B = fmax-fmin ; R = B/((fmin+fmax)/2) ; Nmin = (B*T*(1+2/R)*log((1+R/2)/(1-R/2))); disp(['Number of frequency samples [ N >= ',string(ceil(Nmin)),' ] ']); again = input('OK ? y/n = ','s'); end; N = input('Frequency samples = ') ; end [mellin,beta] = dmt(s,fmin,fmax,N) ; for na = 1 : length(a) phase = exp((-%i*2*%pi*beta+1/2)*log(a(na))) ; mellin_a = phase.*mellin ; nta = 2*round((a(na)*M-1)/2) + 1 ; sscaled(1,na) = nta ; sscaled(2:nta+1,na) = idmt(mellin_a,beta,nta) ; end
ec66963e5224767826f0d45665018b25df098498
fdc5047b7bf8122bad1e621df236b0481226c36e
/virtualHartSci/macros/hrtTypeHex2Date.sci
aaea49afa337562cfa1c1bf70b5c6a9ada9966c8
[]
no_license
jpbevila/virtualHartSci
aea3c6ba23d054670eb193f441ea7de982b531cc
a3f5be6041d230bd9f0fd67e5d7efa71f41cfca5
refs/heads/main
2023-07-26T23:05:28.044194
2021-09-09T11:50:59
2021-09-09T11:50:59
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
172
sci
hrtTypeHex2Date.sci
function strDate=hrtTypeHex2Date(strHex) auxVet = hex2dec(tokens(strHex,' ')); strDate = msprintf("%02d/%02d/%04d",auxVet(1),auxVet(2),1900+auxVet(3)); endfunction
4226cd0eefa81db10b63588ef7957e678487ca9e
449d555969bfd7befe906877abab098c6e63a0e8
/2159/CH8/EX8.10/810.sce
9cf103e6fa0a064e02f888f688e04ab5ca614d32
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
307
sce
810.sce
// problem 8.10 Q=0.283 d=0.05 x=170 u=48 g=9.81 p1=1000 w=g*p1 a=3.142*d*d/4 V1=Q/a Vw1=V1 Vr1=V1-u x1=0 Vr2=Vr1 Vw2=(Vr2*cosd(180-x))-u Fx=(w*a*(V1-u)*(Vw1+Vw2))/g P=Fx*u/1000 n=(P*1000*g*2)/(w*Q*V1*V1) disp(n*100,P,Fx,"force exerted by the jet,power developed by the vane,efficiency")
e8ce9130ef4ce0caff73b4764a536cff3d18c0e7
449d555969bfd7befe906877abab098c6e63a0e8
/3802/CH5/EX5.16/Ex5_16.sce
689ad581b7f945e554c1acde542a79b15276c7c5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
691
sce
Ex5_16.sce
//Book Name:Fundamentals of Electrical Engineering //Author:Rajendra Prasad //Publisher: PHI Learning Private Limited //Edition:Third ,2014 //Ex5_16.sce. clc; clear; N=100; a=10e-2; n=20; B=0.5; omega=2*%pi*n; A=a^2; v=A*N*omega*B; printf("\n(a)") //theta=40*180*t=n*180 where n=0,1,2,3..... //if we take n=2 V=v*sind(180*2); printf("\n The instantaneous value of induced emf when plane of the coil is right angle to the field=%d volt \n",V) printf("\n(b)") //theta=n*180/2 where n=1,3,5,7......... //if we take n=3 V=v*sind(180*3/2); printf("\n The instantaneous value of induced emf when the plane of the coil is in the plane of the field=%2.1f volt",V)
c0a8ab623329b5624202b6e9e6134e6ba2f535d9
f542bc49c4d04b47d19c88e7c89d5db60922e34e
/PresentationFiles_Subjects/CONT/HE17PXC/ATWM1_Working_Memory_MEG_HE17PXC_Session1/ATWM1_Working_Memory_MEG_Salient_Uncued_Run1.sce
3825bb4ae41e2781f9ea18d8c648bd5a5a9e51da
[]
no_license
atwm1/Presentation
65c674180f731f050aad33beefffb9ba0caa6688
9732a004ca091b184b670c56c55f538ff6600c08
refs/heads/master
2020-04-15T14:04:41.900640
2020-02-14T16:10:11
2020-02-14T16:10:11
56,771,016
0
1
null
null
null
null
UTF-8
Scilab
false
false
48,405
sce
ATWM1_Working_Memory_MEG_Salient_Uncued_Run1.sce
# ATWM1 MEG Experiment scenario = "ATWM1_Working_Memory_MEG_salient_uncued_run1"; #scenario_type = fMRI; # Fuer Scanner #scenario_type = fMRI_emulation; # Zum Testen scenario_type = trials; # for MEG #scan_period = 2000; # TR #pulses_per_scan = 1; #pulse_code = 1; pulse_width=6; default_monitor_sounds = false; active_buttons = 2; response_matching = simple_matching; button_codes = 10, 20; default_font_size = 36; default_font = "Arial"; default_background_color = 0 ,0 ,0 ; write_codes=true; # for MEG only begin; #Picture definitions box { height = 382; width = 382; color = 0, 0, 0;} frame1; box { height = 369; width = 369; color = 255, 255, 255;} frame2; box { height = 30; width = 4; color = 0, 0, 0;} fix1; box { height = 4; width = 30; color = 0, 0, 0;} fix2; box { height = 30; width = 4; color = 255, 0, 0;} fix3; box { height = 4; width = 30; color = 255, 0, 0;} fix4; box { height = 369; width = 369; color = 42, 42, 42;} background; TEMPLATE "StimuliDeclaration.tem" {}; trial { sound sound_incorrect; time = 0; duration = 1; } wrong; trial { sound sound_correct; time = 0; duration = 1; } right; trial { sound sound_no_response; time = 0; duration = 1; } miss; # Start of experiment (MEG only) - sync with CTF software trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; } expStart; time = 0; duration = 1000; code = "ExpStart"; port_code = 80; }; # baselinePre (at the beginning of the session) trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; }default; time = 0; duration = 10000; #mri_pulse = 1; code = "BaselinePre"; port_code = 91; }; TEMPLATE "ATWM1_Working_Memory_MEG.tem" { trigger_encoding trigger_retrieval cue_time preparation_time encoding_time single_stimulus_presentation_time delay_time retrieval_time intertrial_interval alerting_cross stim_enc1 stim_enc2 stim_enc3 stim_enc4 stim_enc_alt1 stim_enc_alt2 stim_enc_alt3 stim_enc_alt4 trial_code stim_retr1 stim_retr2 stim_retr3 stim_retr4 stim_cue1 stim_cue2 stim_cue3 stim_cue4 fixationcross_cued retr_code the_target_button posX1 posY1 posX2 posY2 posX3 posY3 posX4 posY4; 42 61 292 292 399 125 2242 2992 2442 fixation_cross gabor_073 gabor_139 gabor_054 gabor_163 gabor_073_alt gabor_139_alt gabor_054 gabor_163 "1_1_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2450_gabor_patch_orientation_073_139_054_163_target_position_1_2_retrieval_position_1" gabor_123_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_1_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_123_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1992 2992 1892 fixation_cross gabor_066 gabor_027 gabor_099 gabor_046 gabor_066_alt gabor_027 gabor_099 gabor_046_alt "1_2_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_1900_gabor_patch_orientation_066_027_099_046_target_position_1_4_retrieval_position_1" gabor_115_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_2_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_115_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1892 2992 2592 fixation_cross gabor_168 gabor_080 gabor_030 gabor_060 gabor_168_alt gabor_080_alt gabor_030 gabor_060 "1_3_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2600_gabor_patch_orientation_168_080_030_060_target_position_1_2_retrieval_position_1" gabor_119_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_3_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_119_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2142 2992 2442 fixation_cross gabor_123 gabor_142 gabor_173 gabor_087 gabor_123_alt gabor_142_alt gabor_173 gabor_087 "1_4_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2450_gabor_patch_orientation_123_142_173_087_target_position_1_2_retrieval_position_2" gabor_circ gabor_142_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_4_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_142_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2242 2992 2542 fixation_cross gabor_028 gabor_096 gabor_074 gabor_151 gabor_028 gabor_096 gabor_074_alt gabor_151_alt "1_5_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2550_gabor_patch_orientation_028_096_074_151_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_012_framed blank blank blank blank fixation_cross_white "1_5_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_012_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 2092 2992 1892 fixation_cross gabor_174 gabor_057 gabor_001 gabor_041 gabor_174_alt gabor_057_alt gabor_001 gabor_041 "1_6_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_300_300_399_2100_3000_1900_gabor_patch_orientation_174_057_001_041_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_041_framed blank blank blank blank fixation_cross_white "1_6_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_041_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2242 2992 2242 fixation_cross gabor_044 gabor_112 gabor_068 gabor_177 gabor_044 gabor_112_alt gabor_068 gabor_177_alt "1_7_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2250_gabor_patch_orientation_044_112_068_177_target_position_2_4_retrieval_position_2" gabor_circ gabor_112_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_7_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_112_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2142 2992 2092 fixation_cross gabor_119 gabor_085 gabor_103 gabor_070 gabor_119 gabor_085 gabor_103_alt gabor_070_alt "1_8_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2100_gabor_patch_orientation_119_085_103_070_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_103_framed gabor_circ blank blank blank blank fixation_cross_white "1_8_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_103_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1992 2992 2292 fixation_cross gabor_005 gabor_124 gabor_159 gabor_035 gabor_005_alt gabor_124 gabor_159_alt gabor_035 "1_9_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2300_gabor_patch_orientation_005_124_159_035_target_position_1_3_retrieval_position_1" gabor_053_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_9_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_053_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 1742 2992 1942 fixation_cross gabor_143 gabor_175 gabor_011 gabor_127 gabor_143_alt gabor_175 gabor_011 gabor_127_alt "1_10_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_300_300_399_1750_3000_1950_gabor_patch_orientation_143_175_011_127_target_position_1_4_retrieval_position_2" gabor_circ gabor_037_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_10_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_037_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2092 2992 2342 fixation_cross gabor_083 gabor_001 gabor_061 gabor_041 gabor_083_alt gabor_001 gabor_061_alt gabor_041 "1_11_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2350_gabor_patch_orientation_083_001_061_041_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_061_framed gabor_circ blank blank blank blank fixation_cross_white "1_11_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_061_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1992 2992 2392 fixation_cross gabor_054 gabor_092 gabor_113 gabor_026 gabor_054 gabor_092 gabor_113_alt gabor_026_alt "1_12_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2400_gabor_patch_orientation_054_092_113_026_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_162_framed gabor_circ blank blank blank blank fixation_cross_white "1_12_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_162_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1842 2992 2292 fixation_cross gabor_039 gabor_177 gabor_125 gabor_065 gabor_039 gabor_177_alt gabor_125 gabor_065_alt "1_13_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2300_gabor_patch_orientation_039_177_125_065_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_065_framed blank blank blank blank fixation_cross_white "1_13_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_065_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2092 2992 1942 fixation_cross gabor_176 gabor_139 gabor_055 gabor_071 gabor_176_alt gabor_139_alt gabor_055 gabor_071 "1_14_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_1950_gabor_patch_orientation_176_139_055_071_target_position_1_2_retrieval_position_2" gabor_circ gabor_139_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_14_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_139_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2092 2992 2042 fixation_cross gabor_157 gabor_178 gabor_018 gabor_096 gabor_157_alt gabor_178 gabor_018_alt gabor_096 "1_15_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2050_gabor_patch_orientation_157_178_018_096_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_018_framed gabor_circ blank blank blank blank fixation_cross_white "1_15_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_018_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1942 2992 2392 fixation_cross gabor_180 gabor_112 gabor_072 gabor_029 gabor_180_alt gabor_112 gabor_072 gabor_029_alt "1_16_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_1950_3000_2400_gabor_patch_orientation_180_112_072_029_target_position_1_4_retrieval_position_1" gabor_045_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_16_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_045_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 1942 2992 1992 fixation_cross gabor_088 gabor_001 gabor_069 gabor_050 gabor_088_alt gabor_001_alt gabor_069 gabor_050 "1_17_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_300_300_399_1950_3000_2000_gabor_patch_orientation_088_001_069_050_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_069_framed gabor_circ blank blank blank blank fixation_cross_white "1_17_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_069_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1942 2992 2142 fixation_cross gabor_086 gabor_121 gabor_136 gabor_155 gabor_086_alt gabor_121 gabor_136 gabor_155_alt "1_18_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2150_gabor_patch_orientation_086_121_136_155_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_155_framed blank blank blank blank fixation_cross_white "1_18_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_155_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 2042 2992 1992 fixation_cross gabor_077 gabor_125 gabor_012 gabor_151 gabor_077_alt gabor_125_alt gabor_012 gabor_151 "1_19_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_300_300_399_2050_3000_2000_gabor_patch_orientation_077_125_012_151_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_061_framed gabor_circ blank blank blank blank fixation_cross_white "1_19_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_061_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1842 2992 2292 fixation_cross gabor_111 gabor_167 gabor_139 gabor_054 gabor_111 gabor_167 gabor_139_alt gabor_054_alt "1_20_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_2300_gabor_patch_orientation_111_167_139_054_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_002_framed gabor_circ blank blank blank blank fixation_cross_white "1_20_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_002_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1842 2992 2492 fixation_cross gabor_093 gabor_173 gabor_111 gabor_155 gabor_093_alt gabor_173 gabor_111_alt gabor_155 "1_21_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2500_gabor_patch_orientation_093_173_111_155_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_111_framed gabor_circ blank blank blank blank fixation_cross_white "1_21_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_111_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1892 2992 1942 fixation_cross gabor_094 gabor_079 gabor_121 gabor_060 gabor_094_alt gabor_079_alt gabor_121 gabor_060 "1_22_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_1950_gabor_patch_orientation_094_079_121_060_target_position_1_2_retrieval_position_2" gabor_circ gabor_031_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_22_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_031_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2192 2992 2192 fixation_cross gabor_051 gabor_080 gabor_016 gabor_141 gabor_051_alt gabor_080_alt gabor_016 gabor_141 "1_23_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2200_3000_2200_gabor_patch_orientation_051_080_016_141_target_position_1_2_retrieval_position_2" gabor_circ gabor_034_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_23_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_034_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 1742 2992 2592 fixation_cross gabor_021 gabor_087 gabor_126 gabor_066 gabor_021 gabor_087_alt gabor_126_alt gabor_066 "1_24_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_300_300_399_1750_3000_2600_gabor_patch_orientation_021_087_126_066_target_position_2_3_retrieval_position_1" gabor_021_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_24_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_021_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1792 2992 1992 fixation_cross gabor_130 gabor_105 gabor_045 gabor_090 gabor_130_alt gabor_105 gabor_045_alt gabor_090 "1_25_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2000_gabor_patch_orientation_130_105_045_090_target_position_1_3_retrieval_position_1" gabor_130_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_25_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_130_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2242 2992 2392 fixation_cross gabor_068 gabor_140 gabor_174 gabor_006 gabor_068_alt gabor_140_alt gabor_174 gabor_006 "1_26_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2250_3000_2400_gabor_patch_orientation_068_140_174_006_target_position_1_2_retrieval_position_2" gabor_circ gabor_095_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_26_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_095_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1842 2992 1942 fixation_cross gabor_052 gabor_010 gabor_117 gabor_169 gabor_052 gabor_010_alt gabor_117 gabor_169_alt "1_27_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_1850_3000_1950_gabor_patch_orientation_052_010_117_169_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_033_framed blank blank blank blank fixation_cross_white "1_27_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_033_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2192 2992 2342 fixation_cross gabor_141 gabor_100 gabor_035 gabor_120 gabor_141_alt gabor_100_alt gabor_035 gabor_120 "1_28_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2350_gabor_patch_orientation_141_100_035_120_target_position_1_2_retrieval_position_2" gabor_circ gabor_100_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_28_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_100_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2042 2992 2542 fixation_cross gabor_160 gabor_124 gabor_106 gabor_081 gabor_160 gabor_124_alt gabor_106 gabor_081_alt "1_29_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2050_3000_2550_gabor_patch_orientation_160_124_106_081_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_035_framed blank blank blank blank fixation_cross_white "1_29_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_035_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2092 2992 1892 fixation_cross gabor_129 gabor_024 gabor_001 gabor_176 gabor_129 gabor_024_alt gabor_001 gabor_176_alt "1_30_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2100_3000_1900_gabor_patch_orientation_129_024_001_176_target_position_2_4_retrieval_position_2" gabor_circ gabor_159_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_30_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_159_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 1742 2992 2042 fixation_cross gabor_110 gabor_005 gabor_049 gabor_082 gabor_110 gabor_005_alt gabor_049 gabor_082_alt "1_31_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_300_300_399_1750_3000_2050_gabor_patch_orientation_110_005_049_082_target_position_2_4_retrieval_position_1" gabor_065_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_31_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_065_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2242 2992 2192 fixation_cross gabor_090 gabor_175 gabor_010 gabor_124 gabor_090_alt gabor_175 gabor_010_alt gabor_124 "1_32_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2250_3000_2200_gabor_patch_orientation_090_175_010_124_target_position_1_3_retrieval_position_1" gabor_090_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_32_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_090_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2142 2992 2142 fixation_cross gabor_036 gabor_115 gabor_156 gabor_066 gabor_036_alt gabor_115_alt gabor_156 gabor_066 "1_33_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2150_gabor_patch_orientation_036_115_156_066_target_position_1_2_retrieval_position_1" gabor_082_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_33_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_082_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2142 2992 1942 fixation_cross gabor_058 gabor_110 gabor_043 gabor_023 gabor_058 gabor_110_alt gabor_043_alt gabor_023 "1_34_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_1950_gabor_patch_orientation_058_110_043_023_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_092_framed gabor_circ blank blank blank blank fixation_cross_white "1_34_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_092_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2042 2992 2092 fixation_cross gabor_072 gabor_133 gabor_115 gabor_008 gabor_072 gabor_133 gabor_115_alt gabor_008_alt "1_35_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2100_gabor_patch_orientation_072_133_115_008_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_115_framed gabor_circ blank blank blank blank fixation_cross_white "1_35_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_115_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2042 2992 2092 fixation_cross gabor_133 gabor_110 gabor_079 gabor_028 gabor_133 gabor_110_alt gabor_079 gabor_028_alt "1_36_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2050_3000_2100_gabor_patch_orientation_133_110_079_028_target_position_2_4_retrieval_position_2" gabor_circ gabor_110_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_36_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_110_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 1942 2992 1892 fixation_cross gabor_056 gabor_169 gabor_020 gabor_082 gabor_056 gabor_169_alt gabor_020 gabor_082_alt "1_37_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_300_300_399_1950_3000_1900_gabor_patch_orientation_056_169_020_082_target_position_2_4_retrieval_position_1" gabor_056_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_37_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_056_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2192 2992 1992 fixation_cross gabor_097 gabor_064 gabor_113 gabor_037 gabor_097 gabor_064_alt gabor_113 gabor_037_alt "1_38_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2000_gabor_patch_orientation_097_064_113_037_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_037_framed blank blank blank blank fixation_cross_white "1_38_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_037_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 1792 2992 2342 fixation_cross gabor_014 gabor_147 gabor_083 gabor_034 gabor_014_alt gabor_147_alt gabor_083 gabor_034 "1_39_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_300_300_399_1800_3000_2350_gabor_patch_orientation_014_147_083_034_target_position_1_2_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_172_framed blank blank blank blank fixation_cross_white "1_39_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_172_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2092 2992 2092 fixation_cross gabor_044 gabor_090 gabor_002 gabor_177 gabor_044 gabor_090_alt gabor_002 gabor_177_alt "1_40_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2100_3000_2100_gabor_patch_orientation_044_090_002_177_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_177_framed blank blank blank blank fixation_cross_white "1_40_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_177_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1792 2992 2192 fixation_cross gabor_107 gabor_164 gabor_028 gabor_059 gabor_107 gabor_164 gabor_028_alt gabor_059_alt "1_41_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2200_gabor_patch_orientation_107_164_028_059_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_028_framed gabor_circ blank blank blank blank fixation_cross_white "1_41_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_028_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1942 2992 2042 fixation_cross gabor_071 gabor_011 gabor_090 gabor_179 gabor_071_alt gabor_011 gabor_090 gabor_179_alt "1_42_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2050_gabor_patch_orientation_071_011_090_179_target_position_1_4_retrieval_position_1" gabor_071_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_42_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_071_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1992 2992 2042 fixation_cross gabor_120 gabor_084 gabor_035 gabor_062 gabor_120_alt gabor_084 gabor_035_alt gabor_062 "1_43_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2050_gabor_patch_orientation_120_084_035_062_target_position_1_3_retrieval_position_1" gabor_169_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_43_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_169_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1892 2992 2492 fixation_cross gabor_011 gabor_090 gabor_179 gabor_043 gabor_011 gabor_090_alt gabor_179_alt gabor_043 "1_44_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2500_gabor_patch_orientation_011_090_179_043_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_131_framed gabor_circ blank blank blank blank fixation_cross_white "1_44_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_131_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1892 2992 2092 fixation_cross gabor_160 gabor_036 gabor_120 gabor_086 gabor_160_alt gabor_036 gabor_120_alt gabor_086 "1_45_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2100_gabor_patch_orientation_160_036_120_086_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_070_framed gabor_circ blank blank blank blank fixation_cross_white "1_45_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_070_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1742 2992 2592 fixation_cross gabor_013 gabor_121 gabor_148 gabor_094 gabor_013_alt gabor_121_alt gabor_148 gabor_094 "1_46_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2600_gabor_patch_orientation_013_121_148_094_target_position_1_2_retrieval_position_1" gabor_061_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_46_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_061_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1792 2992 2442 fixation_cross gabor_085 gabor_100 gabor_029 gabor_051 gabor_085 gabor_100_alt gabor_029_alt gabor_051 "1_47_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2450_gabor_patch_orientation_085_100_029_051_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_029_framed gabor_circ blank blank blank blank fixation_cross_white "1_47_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_029_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 1792 2992 2142 fixation_cross gabor_009 gabor_044 gabor_179 gabor_067 gabor_009_alt gabor_044 gabor_179_alt gabor_067 "1_48_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_300_300_399_1800_3000_2150_gabor_patch_orientation_009_044_179_067_target_position_1_3_retrieval_position_2" gabor_circ gabor_044_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_48_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_044_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2142 2992 2292 fixation_cross gabor_088 gabor_023 gabor_174 gabor_159 gabor_088 gabor_023_alt gabor_174_alt gabor_159 "1_49_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2150_3000_2300_gabor_patch_orientation_088_023_174_159_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_174_framed gabor_circ blank blank blank blank fixation_cross_white "1_49_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_174_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 1892 2992 2492 fixation_cross gabor_122 gabor_063 gabor_148 gabor_040 gabor_122_alt gabor_063 gabor_148_alt gabor_040 "1_50_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_300_300_399_1900_3000_2500_gabor_patch_orientation_122_063_148_040_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_175_framed blank blank blank blank fixation_cross_white "1_50_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_175_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1842 2992 2242 fixation_cross gabor_137 gabor_062 gabor_077 gabor_102 gabor_137 gabor_062_alt gabor_077 gabor_102_alt "1_51_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2250_gabor_patch_orientation_137_062_077_102_target_position_2_4_retrieval_position_2" gabor_circ gabor_062_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_51_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_062_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1842 2992 1892 fixation_cross gabor_071 gabor_131 gabor_042 gabor_154 gabor_071 gabor_131 gabor_042_alt gabor_154_alt "1_52_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_1900_gabor_patch_orientation_071_131_042_154_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_154_framed blank blank blank blank fixation_cross_white "1_52_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_154_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2192 2992 2142 fixation_cross gabor_142 gabor_031 gabor_013 gabor_101 gabor_142_alt gabor_031 gabor_013_alt gabor_101 "1_53_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2200_3000_2150_gabor_patch_orientation_142_031_013_101_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_061_framed gabor_circ blank blank blank blank fixation_cross_white "1_53_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_061_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1742 2992 2192 fixation_cross gabor_046 gabor_154 gabor_127 gabor_072 gabor_046 gabor_154_alt gabor_127_alt gabor_072 "1_54_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2200_gabor_patch_orientation_046_154_127_072_target_position_2_3_retrieval_position_2" gabor_circ gabor_018_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_54_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_018_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 2192 2992 2442 fixation_cross gabor_041 gabor_002 gabor_063 gabor_172 gabor_041_alt gabor_002 gabor_063_alt gabor_172 "1_55_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2200_3000_2450_gabor_patch_orientation_041_002_063_172_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_063_framed gabor_circ blank blank blank blank fixation_cross_white "1_55_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_063_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1992 2992 2542 fixation_cross gabor_122 gabor_004 gabor_036 gabor_064 gabor_122 gabor_004_alt gabor_036_alt gabor_064 "1_56_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2000_3000_2550_gabor_patch_orientation_122_004_036_064_target_position_2_3_retrieval_position_2" gabor_circ gabor_143_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_56_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_143_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1942 2992 2242 fixation_cross gabor_094 gabor_154 gabor_123 gabor_173 gabor_094 gabor_154_alt gabor_123 gabor_173_alt "1_57_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_1950_3000_2250_gabor_patch_orientation_094_154_123_173_target_position_2_4_retrieval_position_2" gabor_circ gabor_154_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_57_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_154_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 2242 2992 2192 fixation_cross gabor_128 gabor_169 gabor_057 gabor_014 gabor_128 gabor_169_alt gabor_057 gabor_014_alt "1_58_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_300_300_399_2250_3000_2200_gabor_patch_orientation_128_169_057_014_target_position_2_4_retrieval_position_1" gabor_079_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_58_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_079_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1842 2992 2492 fixation_cross gabor_150 gabor_119 gabor_078 gabor_094 gabor_150 gabor_119_alt gabor_078 gabor_094_alt "1_59_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_1850_3000_2500_gabor_patch_orientation_150_119_078_094_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_094_framed blank blank blank blank fixation_cross_white "1_59_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_094_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 2042 2992 2292 fixation_cross gabor_074 gabor_009 gabor_099 gabor_155 gabor_074 gabor_009_alt gabor_099_alt gabor_155 "1_60_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_300_300_399_2050_3000_2300_gabor_patch_orientation_074_009_099_155_target_position_2_3_retrieval_position_1" gabor_074_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_60_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_074_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2142 2992 2142 fixation_cross gabor_003 gabor_158 gabor_109 gabor_026 gabor_003_alt gabor_158_alt gabor_109 gabor_026 "1_61_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2150_3000_2150_gabor_patch_orientation_003_158_109_026_target_position_1_2_retrieval_position_1" gabor_139_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_61_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_139_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1892 2992 2042 fixation_cross gabor_114 gabor_131 gabor_053 gabor_178 gabor_114_alt gabor_131 gabor_053 gabor_178_alt "1_62_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_1900_3000_2050_gabor_patch_orientation_114_131_053_178_target_position_1_4_retrieval_position_1" gabor_162_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_62_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_162_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1742 2992 2392 fixation_cross gabor_017 gabor_089 gabor_129 gabor_104 gabor_017 gabor_089_alt gabor_129_alt gabor_104 "1_63_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_1750_3000_2400_gabor_patch_orientation_017_089_129_104_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_177_framed gabor_circ blank blank blank blank fixation_cross_white "1_63_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_177_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 1792 2992 2342 fixation_cross gabor_003 gabor_090 gabor_114 gabor_027 gabor_003_alt gabor_090 gabor_114_alt gabor_027 "1_64_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_1800_3000_2350_gabor_patch_orientation_003_090_114_027_target_position_1_3_retrieval_position_1" gabor_051_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_64_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_051_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1742 2992 2242 fixation_cross gabor_008 gabor_178 gabor_149 gabor_120 gabor_008 gabor_178_alt gabor_149 gabor_120_alt "1_65_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_1750_3000_2250_gabor_patch_orientation_008_178_149_120_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_120_framed blank blank blank blank fixation_cross_white "1_65_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_120_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 64 292 292 399 125 2042 2992 2242 fixation_cross gabor_165 gabor_036 gabor_003 gabor_108 gabor_165_alt gabor_036 gabor_003 gabor_108_alt "1_66_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_300_300_399_2050_3000_2250_gabor_patch_orientation_165_036_003_108_target_position_1_4_retrieval_position_2" gabor_circ gabor_036_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_66_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_UncuedRetriev_retrieval_patch_orientation_036_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1792 2992 2542 fixation_cross gabor_019 gabor_084 gabor_059 gabor_126 gabor_019 gabor_084_alt gabor_059 gabor_126_alt "1_67_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_1800_3000_2550_gabor_patch_orientation_019_084_059_126_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_126_framed blank blank blank blank fixation_cross_white "1_67_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_126_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 61 292 292 399 125 2192 2992 1992 fixation_cross gabor_126 gabor_061 gabor_106 gabor_040 gabor_126 gabor_061 gabor_106_alt gabor_040_alt "1_68_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_300_300_399_2200_3000_2000_gabor_patch_orientation_126_061_106_040_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_151_framed gabor_circ blank blank blank blank fixation_cross_white "1_68_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_CuedRetrieval_retrieval_patch_orientation_151_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 62 292 292 399 125 1992 2992 2342 fixation_cross gabor_014 gabor_096 gabor_030 gabor_051 gabor_014_alt gabor_096_alt gabor_030 gabor_051 "1_69_Encoding_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_300_300_399_2000_3000_2350_gabor_patch_orientation_014_096_030_051_target_position_1_2_retrieval_position_2" gabor_circ gabor_096_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_69_Retrieval_Working_Memory_MEG_P3_LR_Salient_NoChange_CuedRetrieval_retrieval_patch_orientation_096_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 42 63 292 292 399 125 1892 2992 2592 fixation_cross gabor_150 gabor_070 gabor_018 gabor_127 gabor_150 gabor_070 gabor_018_alt gabor_127_alt "1_70_Encoding_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_300_300_399_1900_3000_2600_gabor_patch_orientation_150_070_018_127_target_position_3_4_retrieval_position_1" gabor_101_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_white "1_70_Retrieval_Working_Memory_MEG_P3_LR_Salient_DoChange_UncuedRetriev_retrieval_patch_orientation_101_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; }; # baselinePost (at the end of the session) trial { picture { box frame1; x=0; y=0; box frame2; x=0; y=0; box background; x=0; y=0; bitmap fixation_cross_black; x=0; y=0; }; time = 0; duration = 5000; code = "BaselinePost"; port_code = 92; };
835ec572d3ce26e2b6701f2202787e2ff2339d2f
9e8eb5a9631d8770d0d0a918c1dc57e5122ae94d
/DCT.sce
28f559aff7bbb571fd8ec5d3d848adf1b2d52290
[]
no_license
vishalraj3112/Image-processing
db2948c37be6ef43c13ff120b97680bf13151d8d
160a17990e1c80da44ef0daf2d148d6f33d37c6c
refs/heads/master
2020-04-03T06:49:20.483364
2018-10-28T16:36:46
2018-10-28T16:36:46
155,085,134
0
0
null
null
null
null
UTF-8
Scilab
false
false
533
sce
DCT.sce
clc clear all f=imread('H:\IVP\mandrill square.jpg') imshow(f) f=rgb2gray(f) [M N]=size(f) disp("This is no of rows:",M); disp("This is no of columns:",N); f=double(f) for k=1:N for n=1:N if((k-1)==0) c(k,n)=inv(sqrt(N)) else c(k,n)=sqrt(2)*inv(sqrt(N))*cos(%pi*(k-1)*(2*(n-1)+1)/(2*N)) end end end [M N]=size(c); disp("This is no of rows of c:",M); disp("This is no of columns of n:",N); c_tan=(c)'; F=c*f*c_tan; f1=c_tan*F*c; D=[uint8(f) uint8(F) uint8(f1)] imshow(D)
544c703a2f80dfb8bb1c8955d5202e04e057a31b
66106821c3fd692db68c20ab2934f0ce400c0890
/test/jintgen/redef_am_01.tst
0e740f834e378eabaf5b4547ee0b2638be70b0c5
[]
no_license
aurelf/avrora
491023f63005b5b61e0a0d088b2f07e152f3a154
c270f2598c4a340981ac4a53e7bd6813e6384546
refs/heads/master
2021-01-19T05:39:01.927906
2008-01-27T22:03:56
2008-01-27T22:03:56
4,779,104
2
0
null
null
null
null
UTF-8
Scilab
false
false
189
tst
redef_am_01.tst
// @Harness: verifier // @Purpose: "Test for redefinitions of addressing modes" // @Result: "RedefinedAddrMode @ 7:13" architecture redef_am_01 { addr-mode A1 { } addr-mode A1 { } }
a1b924e9e737bf8703a25786d4985a70943aa0da
d465fcea94a1198464d7f8a912244e8a6dcf41f9
/kMatlab/kProximityG.sci
d93197028d9681a7e9b413fbc7b49c96e7a7a8d3
[]
no_license
manasdas17/kiks-scilab
4f4064ed7619cad9e2117a6c0040a51056c938ee
37dc68914547c9d0f423008d44e973ba296de67b
refs/heads/master
2021-01-15T14:18:21.918789
2009-05-11T05:43:11
2009-05-11T05:43:11
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
12,725
sci
kProximityG.sci
function [] = KproximityG(ref,action) // Number of arguments in function call [%nargout,%nargin] = argn(0) // Display mode mode(0); // Display warning for floating point exception ieee(1); //KPROXIMITYG Display the value of the proximity sensors of Khepera // //kProximityG(ref) // Display the value of the proximity sensors as an histogram // Use the """"Start"""" and """"Stop"""" buttons to control // the animation. // Use the communication parameters specified with kcmd. // // Written by Skye Legon, 2/99. // Yves Piguet, 8/98. // parts copyright (c) 1998/99 K-Team SA // Adapted from Demo by Ned Gulley, 6-21-93; jae Roh, 10-15-96 // parts Copyright (c) 1984-96 by The MathWorks, Inc. // $Revision: 5.7 $ $Date: 1996/10/16 21:47:48 $ // Possible actions: // initialize // close // Information regarding the play status will be held in // the Userdata of the start button handle (which is stored in // the figure Userdata) according to the following table: // (can''t use axis Userdata as it gets clobbered by the bar command) play = 1; stop = -1; maxValue = 1024;// maximum value of a sensor // !! L.31: Matlab function sprintf not yet converted, original calling sequence used refstring = sprintf("[%f %f %f %f]",ref); if %nargin<2 then action = "initialize"; end; if mtlb_strcmp(action,"initialize") then // !! L.38: Matlab function watchon not yet converted oldFigNumber = mtlb(watchon); // !! L.43: Matlab function figure not yet converted, original calling sequence used figNumber = figure("Name","Khepera Proximity Sensors (c) K-Team SA 1999","NumberTitle","off","Visible","off"); mtlb_colordef(figNumber,"black") // !! L.48: Matlab function axes not yet converted, original calling sequence used axes("Units","normalized","Position",[0.07,0.1,0.75,0.85],"Visible","off"); // !! L.51: Matlab function text not yet converted, original calling sequence used text(0,0,"Press the ""Start"" button to begin","HorizontalAlignment","center"); set(gca(),"data_bounds",matrix([-1,1,-1,1],2,-1)); mtlb_eval("set(gcf, ''doublebuffer'', ''on'')",""); // unsupported feature of Matlab 5.2 to suppress flashing // eval is used to avoid fatal errors with previous versions //=================================== // Information for all buttons labelColor = [0.8,0.8,0.8]; yInitPos = 0.9; xPos = 0.85; btnLen = 0.1; btnWid = 0.1; btnHt = 0.1; // Spacing between the button and the next command''s label spacing = 0.05; //==================================== // The CONSOLE frame frmBorder = 0.02; yPos = 0.05-frmBorder; frmPos = [xPos-frmBorder,yPos,btnLen+2*frmBorder,0.9+2*frmBorder]; // !! L.78: Matlab function uicontrol not yet converted, original calling sequence used h = uicontrol("Style","frame","Units","normalized","Position",frmPos,"BackgroundColor",[0.5,0.5,0.5]); //==================================== // The START button btnNumber = 1; yPos = 0.9-(btnNumber-1)*(btnWid+spacing); labelStr = "Start"; cmdStr = "start"; callbackStr = "kProximityG("+refstring+",''start'');"; // Generic button information btnPos = [xPos,yPos-spacing,btnLen,btnWid]; // !! L.97: Matlab function uicontrol not yet converted, original calling sequence used startHndl = uicontrol("Style","pushbutton","Units","normalized","Position",btnPos,"String",labelStr,"Interruptible","on","Userdata",stop,"Callback",callbackStr); //==================================== // The MODE popup button btnNumber = 2; yPos = 0.9-(btnNumber-1)*(btnHt+spacing); textStr = "Style"; // !! L.103: WARNING: Matlab reshape() suppresses singleton higher dimension, it is not the case for matrix... popupStr = mtlb_t(matrix(mstr2sci(" hist polar"),6,2)); // Generic button information btnPos1 = [xPos,yPos-spacing+btnHt/2,btnWid,btnHt/2]; btnPos2 = [xPos,yPos-spacing,btnWid,btnHt/2]; // !! L.112: Matlab function uicontrol not yet converted, original calling sequence used popupHndl = uicontrol("Style","text","Units","normalized","Position",btnPos1,"String",textStr); btnPos = [xPos,yPos-spacing,btnWid,btnHt/2]; // !! L.118: Matlab function uicontrol not yet converted, original calling sequence used popupHndl = uicontrol("Style","popup","Units","normalized","Position",btnPos2,"String",popupStr); //==================================== // The STOP button btnNumber = 3; yPos = 0.9-(btnNumber-1)*(btnHt+spacing); labelStr = "Stop"; // Setting userdata to -1 (=stop) will stop the demo. //callbackStr=''set(gca,''''Userdata'''',-1)''; callbackStr = "eval(''v=get(gcf,''''Userdata'''');set(v(1),''''Userdata'''',-1);'')"; // Generic button information btnPos = [xPos,yPos-spacing,btnLen,btnWid]; // !! L.137: Matlab function uicontrol not yet converted, original calling sequence used stopHndl = uicontrol("Style","pushbutton","Units","normalized","Position",btnPos,"Enable","off","String",labelStr,"Callback",callbackStr); //==================================== // The INFO button labelStr = "Info"; callbackStr = "kProximityG("+refstring+",''info'');"; // !! L.148: Matlab function uicontrol not yet converted, original calling sequence used infoHndl = uicontrol("Style","push","Units","normalized","position",[xPos,0.2,btnLen,0.1],"string",labelStr,"call",callbackStr); //==================================== // The CLOSE button labelStr = "Close"; callbackStr = "close(gcf)"; // !! L.159: Matlab function uicontrol not yet converted, original calling sequence used closeHndl = uicontrol("Style","push","Units","normalized","position",[xPos,0.05,btnLen,0.1],"string",labelStr,"call",callbackStr); // Uncover the figure hndlList = [startHndl,popupHndl,stopHndl,infoHndl,closeHndl]; // !! L.164: Matlab function set not yet converted, original calling sequence used // L.164: Name conflict: function name changed from set to %set %set(figNumber,"Visible","on","UserData",hndlList); // !! L.166: Matlab function watchoff not yet converted, original calling sequence used watchoff(oldFigNumber); // !! L.167: Matlab function figure not yet converted, original calling sequence used figure(figNumber); elseif mtlb_strcmp(action,"start") then // !! L.170: Matlab function gcf not yet converted figNumber = mtlb(gcf); // !! L.171: Matlab function get not yet converted, original calling sequence used // L.171: Name conflict: function name changed from get to %get hndlList = %get(figNumber,"UserData"); startHndl = mtlb_e(hndlList,1); popupHndl = mtlb_e(hndlList,2); stopHndl = mtlb_e(hndlList,3); infoHndl = mtlb_e(hndlList,4); closeHndl = mtlb_e(hndlList,5); // !! L.177: Matlab function set not yet converted, original calling sequence used // L.177: Name conflict: function name changed from set to %set %set(startHndl,"Userdata",play); // !! L.178: Matlab function set not yet converted, original calling sequence used // L.178: Name conflict: function name changed from set to %set %set([startHndl,closeHndl,infoHndl],"Enable","off"); // !! L.179: Matlab function set not yet converted, original calling sequence used // L.179: Name conflict: function name changed from set to %set %set(stopHndl,"Enable","on"); // !! L.180: Matlab function set not yet converted, original calling sequence used // L.180: Name conflict: function name changed from set to %set %set(figNumber,"Backingstore","off"); // ====== Start of Demo sensorOrder = [8,1:7]; // back left sensor displayed first sensorAngles = (%pi/180)*[180,135,100,80,45,0,260,280]; // The main loop style = 0; // initialize to impossible value to force plot setup sensors = kProximity(ref); sensors = mtlb_e(sensors,sensorOrder); while %t // !! L.193: Matlab function get not yet converted, original calling sequence used // L.193: Name conflict: function name changed from get to %get if mtlb_logic(mtlb_double(%get(startHndl,"Userdata")),"==",play) then break;end; // initialize plots if we''re just starting, or if we change modes // !! L.195: Matlab function get not yet converted, original calling sequence used // L.195: Name conflict: function name changed from get to %get if mtlb_logic(style,"~=",mtlb_double(%get(popupHndl,"Value"))) then // !! L.196: Matlab function get not yet converted, original calling sequence used // L.196: Name conflict: function name changed from get to %get style = %get(popupHndl,"Value"); if mtlb_logic(mtlb_double(style),"==",1) then // hist bar(mtlb_e(sensors,sensorOrder)); barHndl = gce(); // ! L.199: mtlb(barHndl) can be replaced by barHndl() or barHndl whether barHndl is an M-file or not // !! L.199: Matlab function set not yet converted, original calling sequence used // L.199: Name conflict: function name changed from set to %set %set(mtlb(barHndl),"EraseMode","background") // ! L.200: mtlb(barHndl) can be replaced by barHndl() or barHndl whether barHndl is an M-file or not // !! L.200: Matlab function get not yet converted, original calling sequence used // L.200: Name conflict: function name changed from get to %get vertices = %get(mtlb(barHndl),"Vertices"); // ! L.201: mtlb(barHndl) can be replaced by barHndl() or barHndl whether barHndl is an M-file or not // !! L.201: Matlab function get not yet converted, original calling sequence used // L.201: Name conflict: function name changed from get to %get faces = %get(mtlb(barHndl),"Faces"); set(gca(),"data_bounds",matrix([0.5,8.5,0,maxValue+6],2,-1)); // 1024 + 6 = 1030 else // polar // simplified polar routine with fixed max radius rmax = maxValue; sensors = mtlb_i(sensors,mtlb_find(bool2s(mtlb_logic(mtlb_double(sensors),"<",50))),50); // set lower bound r = mtlb_t(sensors); theta = sensorAngles(sensorOrder); [dmy,ix] = mtlb_sort(theta); theta = mtlb_a(theta(ix) .*. [1,1],mtlb_double(ones(1,max(size(ix))) .*. [-0.03,0.03])); // draw circle phi = %pi*(0:0.05:2); plot(rmax*cos(phi),rmax*sin(phi)); r = mtlb_double(mtlb_e(r,ix)) .*. [1,1]; // !! L.215: Matlab function fill not yet converted, original calling sequence used polarHndl = fill(r .*cos(theta),r .*sin(theta),"g"); // !! L.216: Matlab function set not yet converted, original calling sequence used // L.216: Name conflict: function name changed from set to %set %set(polarHndl,"EraseMode","background"); set(gca(),"isoview","on"); set(gca(),"data_bounds",matrix((rmax+6)*[-1,1,-1,1],2,-1)); // 1024 + 6 = 1030 // L.219: Drawing events are not queued in Scilab //drawnow end; end; sensors = kProximity(ref); sensors = mtlb_e(sensors,sensorOrder); if mtlb_logic(mtlb_double(style),"==",1) then // hist for i = 1:max(size(mtlb_double(sensors))) vertices(faces(i,2:3),2) = mtlb_e(sensors,i); end; // ! L.230: mtlb(barHndl) can be replaced by barHndl() or barHndl whether barHndl is an M-file or not // !! L.230: Matlab function set not yet converted, original calling sequence used // L.230: Name conflict: function name changed from set to %set %set(mtlb(barHndl),"Vertices",vertices); else // polar sensors = mtlb_i(sensors,mtlb_find(bool2s(mtlb_logic(mtlb_double(sensors),"<",50))),50); // set lower bound r = mtlb_t(sensors); r = mtlb_double(mtlb_e(r,ix)) .*. [1,1]; vertices = [r .*cos(theta);r .*sin(theta)]'; // !! L.236: Matlab function set not yet converted, original calling sequence used // L.236: Name conflict: function name changed from set to %set %set(polarHndl,"Vertices",vertices); end; // L.238: Drawing events are not queued in Scilab //drawnow end; // Main loop ... // ====== End of Demo // !! L.242: Matlab function set not yet converted, original calling sequence used // L.242: Name conflict: function name changed from set to %set %set([startHndl,closeHndl,infoHndl],"Enable","on"); // !! L.243: Matlab function set not yet converted, original calling sequence used // L.243: Name conflict: function name changed from set to %set %set(stopHndl,"Enable","off"); elseif mtlb_strcmp(action,"info") then // !! L.252: Matlab function strvcat not yet converted, original calling sequence used helptext = strvcat("Program for graphical display of Khepera proximity sensors."," ","Authors: Skye Legon, 2/99"," Yves Piguet, 8/98"," ","Copyright 1999 K-Team SA"); help(helptext,"Khepera Information"); end;// if strcmp(action, ... endfunction
25e5007c2c59a1295fddac94c1e9938a13ab75ac
449d555969bfd7befe906877abab098c6e63a0e8
/2873/CH4/EX4.14/Ex4_14.sce
49889fb4ad8753e3c021e9a0d466a034c9b9f9a2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,073
sce
Ex4_14.sce
// Display mode mode(0); // Display warning for floating point exception ieee(1); clear; clc; disp("Engineering Thermodynamics by Onkar Singh Chapter 4 Example 14") Q_source=2000;//heat supplied by heat engine in KJ/s T_source=1500;//temperature of source in K T_R=(15+273);//temperature of reservoir in K Q_sink=3000;//heat received by sink in KJ/s disp("let temperature of sink be T_sink K") disp("Q_sink_HE+Q_sink_R=3000 ........eq 1") disp("since complete work output from engine is used to run refrigerator so,") disp("2000-Q_sink_HE=Q_sink_R-Q_R .........eq 2") disp("by eq 1 and eq 2,we get Q_R in KJ/s") Q_R=3000-2000 disp("also for heat engine,2000/1500=Q_sink_HE/T_sink") disp("=>Q_sink_HE=4*T_sink/3") disp("for refrigerator,Q_R/288=Q_sink_R/T_sink=>Q_sink_R=1000*T_sink/288") disp("substituting Q_sink_HE and Q_sink_R values") disp("4*T_sink/3+1000*T_sink/288=3000") disp("so temperature of sink(T_sink)in K") disp("so T_sink=3000/((4/3)+(1000/288))") T_sink=3000/((4/3)+(1000/288)) disp("T_sink in degree celcius") T_sink=T_sink-273
3edb424348aa9dea6026118d618c5c8389b021ba
449d555969bfd7befe906877abab098c6e63a0e8
/1022/CH11/EX11.5/11_5.sce
966fbc47f8192b6762adefaa0afbdd0bc40ae326
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
240
sce
11_5.sce
clc //initialisation of variables l= 0.2 //m l1= 0.5 //m k= 0.35 //W/m C t= 0.15 //m T1= 1100 //C T2= 150 //C //CALCULATIONS Ai= 6*l^2 Ao= 6*l1^2 q= 0.73*k*sqrt(Ai*Ao)*(T1-T2)/t //RESULTS printf ('Power consumption= %.f W',q)
eb895771ee0a8d053d258653444f88d7669132d9
449d555969bfd7befe906877abab098c6e63a0e8
/2159/CH1/EX1.16/16.sce
ef63bb3f43f5588a4c4f83a34941ed5c2544feef
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
222
sce
16.sce
//problem 1.16 h1=8 w=9810 wd=6 p1=0.5*w*h1*h1*wd h2=4 p2=0.5*h2*w*h2*wd h11=0.66666*h1 h22=0.6666*h2 p=p1-p2 hf=(p1*(h1-h11)-p2*(h2-h22))/p disp(p,"resultant force") disp(hf,"position of its line of action")
41769ffe73cf50f796fe7234111f430570159797
9f9364e082d4bc2f7ee5cbd7a489642615821873
/src/testCases/test2-5.tst
647da02ae1d64c72c7915f8e2851e243f292d026
[]
no_license
abrageddon/DLX-Opt
4602617f83ddf8cb0fea83fecd2faa362849dfcd
20038078f11a7ae67e7ab336e551e23966551290
refs/heads/master
2021-01-01T05:49:33.218016
2013-03-14T06:08:45
2013-03-14T06:08:45
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
313
tst
test2-5.tst
main function gcd(a, b); var m; { if a < b then return call gcd(b, a) fi; if a == b then return a fi; if b == 0 then return a fi; let m <- a - (a / b) * b; return call gcd(b, m) }; { call outputnum(call gcd(252, 105)); call outputnum(call gcd(384, 1024)); call outputnum(call gcd(1989, 867)) }.
286d36b3d5ff79f71f5aca9e5436b7849bdce64a
449d555969bfd7befe906877abab098c6e63a0e8
/1727/CH1/EX1.6/1_6.sce
d8fb78a8fa43a78f0af0c718d90c76fa31f2b8b5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
1_6.sce
clc //Initialization of variables d=0.05*10^-3 //m T=72*10^-3 //N/m P=101 //kN/m^2 //calculations Pi=P*1000 + 2*T/(d/2) //results printf("Pressure = %.2f kN/m^2",Pi/1000)
68afae9cd4fdb4034c8083077aa0e29cda8b2c78
449d555969bfd7befe906877abab098c6e63a0e8
/3428/CH19/EX12.19.7/Ex12_19_7.sce
3bfe0617013f84273fb0d1485e5e18ecc9d840b2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
707
sce
Ex12_19_7.sce
//Section-12,Example-7,Page no.-SS.61 //To find the no.of charge carriers essential to get te given conductivity and the no. of Antimony dopant atoms to be added to germanium. clc; C=100 //ohm^-1cm^-1 e=1.6*10^-19 //C u_e=2800 //cm^-1V^-1sec^-1 N_D=C/(e*u_e) disp(N_D,'No.of charge carriers essential to get the given conductivity(per cm^3)') a=5.658*10^-8 //cm V=a^3 //cm^3 N_Sb=2.23*10^17 //No. of Sb atoms per cm^3 N_Ge=8/V //No. of atoms of Ge N=N_Sb/N_Ge disp(N,'No. of Antimony dopant atoms to be added to germanium(ppm)')
ecf0fd5b990e6ca3e4ff0b51d019b7f7a9219f36
6a0d5ad524ce9b230c7e35af224317d515bb8f2d
/ResilienceBAU/Traj_BAU.sce
1842e20648aee9600086e4ee329e6a892686f902
[]
no_license
mcuilleret/Entropic
b562ded98cbb74ad55579b6be5730767f24f4f2b
0dd4e8bacb312015cd6c3b04b732ebd69de4ac23
refs/heads/main
2023-08-13T07:07:02.684153
2021-10-05T10:28:19
2021-10-05T10:28:19
413,753,215
0
0
null
null
null
null
UTF-8
Scilab
false
false
22,569
sce
Traj_BAU.sce
chdir('C:\Users\matve\Desktop\Code These\ResilienceBAU\'); exec('donnees.sce'); exec('fctdyn_eco.sce'); exec('fctdyn.sce'); //Business as usual data sheets=readxls('donnees3.xls'); data_eff=sheets(4); ///////////////// //EFFORT ///////////////// cas="26" // Historical effort data historical_effort_CC_bu=data_eff(3:T_proj+2,12); historical_effort_CCA_bu=data_eff(3:T_proj+2,13); historical_effort_T_bu=data_eff(3:T_proj+2,15); historical_effort_bu=[historical_effort_CC_bu,historical_effort_CCA_bu,historical_effort_T_bu]; //Revenue and costs exec('fctdyn_eco.sce'); //////////////// //Number of boats /////////////// function[nb_boats]=nb_boats_min(nb_jour_peche_per_boats_per_trim,effort,t1) for t=t1:T_proj for f=1:N_fleet nb_boats(t,f)=effort(t,f)./nb_jour_peche_per_boats_per_trim(1,f) end end endfunction [nb_boats_BAU]=nb_boats_min(nb_j_peche_per_boats_per_trim,historical_effort_bu,1); nb_boats_Post_BAU=nb_boats_BAU T_s=208 T_proj=T_s+Horizont function [IndGen,IndPro,IndFoodsect,IndBlim,Pro,Catcht,CCt,CCAt,Tt,Xt,IndSP,IndBio,SP,Blim,Foodssect,nb_boats_Post_BAU_t,IndNPV,CompteFi,historical_effort_bu,CompteFi]=dynamique_MAT_2(nb_boats_Post_BAU,gam,aij,B_simul,Y,PopGuyTr) ///////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////// Xt=[]; CCt=[]; CCAt=[]; Tt=[]; Catcht=[]; Catch=[] IndGen=[]; IndBio_=[] Pro=[] Bio=B_simul(1,:); //Bio=B_simul(Horizont+1,:); Biomasse en 2006 Foodssect=[]; PopGuy=PopGuyTr(1:T_proj,:); //Beginning period 2006-2018 ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// for t=1:Horizont; //TEMPERATURE for i=1:NN_calib; gamm(t,i)=[gam(t+int(tho(i)),i)]; end; gammaa=[gamm(t,:),1] ; //Biomass Xt=[Xt;Bio(t,:)]; //interaction between Biomass and trophic interaction predation=tauxpredation(Bio(t,:),aij,gammaa); predation1=tauxpredation1(Bio(t,:),aij); trophic=gi'.*sum(predation,'c')'-sum(predation1,'r'); //Load boat number /////////////////////////////////////////////////////////////// load('C:\Users\matve\Desktop\Code These\ResilienceMEY2\nb_boats_HorizonT','nb_boats'); /////////////////////////////////////////////////////////////// nb_boats_Post_BAU_t(t,1:3)=round(nb_boats(t,1:3)); for f=1:N_fleet historical_effort_bu(t,f)=round(nb_boats_Post_BAU_t(t,f)).*nb_j_peche_per_boats_per_trim(1,f); end /////////////////////////////////////////////////////////////// //EFFORT historical_effort_CCt(t)=historical_effort_bu(t,1); historical_effort_CCAt(t)=historical_effort_bu(t,2); historical_effort_Tt(t)=historical_effort_bu(t,3); /////////////////////////////////////////////////////////////// //CAPTURE=EFFORT * ESPECE*CAPTURABILITE*BIOMASSE PAR FLOTTE Catch_CC(t,:)=(((historical_effort_CCt(t)) *ones(N_species,1)').*(q_CC)').*Xt(t,:); Catch_CCA(t,:)=(((historical_effort_CCAt(t)).*ones(N_species,1)').*(q_CCA)').*Xt(t,:); Catch_T(t,:)=(((historical_effort_Tt(t)).*ones(N_species,1)').*(q_T)').*Xt(t,:); Catch_(t,:)=Catch_CC(t,:)+Catch_CCA(t,:)+Catch_T(t,:) ///////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////// //CAPTURES PONDERES PAR FLOTTE CC_pond(t,:)=Catch_CC(t,:)./Catch_(t,:); CCA_pond(t,:)=Catch_CCA(t,:)./Catch_(t,:); T_pond(t,:)=Catch_T(t,:)./Catch_(t,:); // CAPTURE PAR ESPECE for i=1:NN_calib //CAPTURE DEPASSANT LA BIOMASSE if Catch_(t,i) > (Bio (t,i)-M'(1,i).*Bio(t,i)+trophic(1,i)) then Catch_CC(t,i)=CC_pond(t,i)*(Bio (1,i)-M'(1,i).*Bio(t,i)+trophic(1,i)) Catch_CCA(t,i)=CCA_pond(t,i)*(Bio (t,i)-M'(1,i).*Bio(t,i)+trophic(1,i)) Catch_T(t,i)=T_pond(t,i)*(Bio (t,i)-M'(1,i).*Bio(t,i)+trophic(1,i)) disp("a") end CA_T(t,i)=PrixTrim(t,i)*Catch_T(t,i); CA_CC(t,i)=PrixTrim(t,i)*Catch_CC(t,i); CA_CCA(t,i)=PrixTrim(t,i)*Catch_CCA(t,i); end //PROFIT CC CA_f_CC(t)= sum (CA_CC(t),'c')+ProOtSP(t,1); C_var_CC(t)=CoutVarTrim(t,1).*nb_boats_Post_BAU_t(t,1); C_fix_proj_CC(t)=(fix_cost_trim(1,1).*nb_boats_Post_BAU_t(t,1))./4; Profit_CC(t)=(1-bet(1,1))*(CA_f_CC(t)-C_var_CC(t)-C_fix_proj_CC(t)); //PROFIT CCA CA_f_CCA(t)= sum (CA_CCA(t),'c')+ProOtSP(t,2); C_var_CCA(t)=CoutVarTrim(t,2).*nb_boats_Post_BAU_t(t,2); C_fix_proj_CCA(t)=(fix_cost_trim(1,2).*nb_boats_Post_BAU_t(t,2))./4; Profit_CCA(t)=(1-bet(1,2))*(CA_f_CCA(t)-C_var_CCA(t)-C_fix_proj_CCA(t)); //PROFIT T CA_f_T(t)= sum (CA_T(t),'c')+ProOtSP(t,3); C_var_T(t)=CoutVarTrim(t,3).*nb_boats_Post_BAU_t(t,3); C_fix_proj_T(t)=(fix_cost_trim(1,3).*nb_boats_Post_BAU_t(t,3))./4; Profit_T(t)=(1-bet(1,3))*(CA_f_T(t)-C_var_T(t)-C_fix_proj_T(t)); /////////////////////////////////////////////////////////////////////////////////////// if Catch_T(t,:)==0 then Profit_T(t)=0 nb_boats_Post_BAU_t(t,3)=0 C_var_T(t)=0; C_fix_proj_T(t)=0; end if Catch_CCA(t,:)==0 then Profit_CCA(t)=0 nb_boats_Post_BAU_t(t,2)=0 C_var_CCA(t)=0; C_fix_proj_CCA(t)=0; end if Catch_CC(t,:)==0 then Profit_CC(t)=0 nb_boats_Post_BAU_t(t,1)=0 C_var_CC(t)=0; C_fix_proj_CC(t)=0; end /////////////////////////////////////////////////////////////////////////////////////// //CAPTURE ET BIOMASSE for i=1:NN_calib Catch(t,i)=Catch_CC(t,i)+Catch_CCA(t,i)+Catch_T(t,i); Bio(t+1,i)=(Bio(t,i)-M'(1,i).*Bio(t,i)-Catch(t,i)+trophic(1,i)); end //BIOMASSE RESSOURCE PLANCTONIQUE Bio(t+1,N_species)=(Bio(t,N_species)+I(t)-aij(1,N_species).*Bio(t,N_species).*Bio(t,1)-aij(2,N_species).*Bio(t,N_species).*Bio(t,2)-aij(3,N_species).*Bio(t,N_species).*Bio(t,3)); //PAS DE BIOMASSE NULLE Bio(t+1,:)=max(zeros(Bio(t,:)),Bio(t+1,:)); Catch_msy=sum(Catch_CC(t,:)+Catch_CCA(t,:)+Catch_T(t,:)); CCt=[CCt;Catch_CC(t,:)]; CCAt=[CCAt;Catch_CCA(t,:)]; Tt=[Tt;Catch_T(t,:)]; Xt ///////////////////////////////////////// //Profit ///////////////////////////////////////// Pro(t,1)=Profit_CC(t); Pro(t,2)=Profit_CCA(t); Pro(t,3)=Profit_T(t); ///////////////////////////////////////// //NPV ///////////////////////////////////////// IndNPV(t)=Pro(t)./ActuTrim(t); IndPro(t)=bool2s(IndNPV(t)>=0); end //////////////////////////////////////////////////////////////////////////////////////////////////// //PERIODE DES 50 ANNEES 2018-2068 //PopGuy=PopGuyTr(Horizont+1:T_proj,:); //////////////////pas de temps de 5ans for n=0:floor(T_s/Y)-1; ////50 PREMIERES ANNEES for t=Horizont+1+n*Y:Horizont+(n+1)*Y; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// for i=1:NN_calib; gamm(t,i)=[gam(t+int(tho(i)),i)]; end; gammaa=[gamm(t,:),1] ; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //matrice biomasse Xt=[Xt;Bio(t,:)]; //interaction BIOMASSE et MILIEU predation=tauxpredation(Bio(t,:),aij,gammaa); predation1=tauxpredation1(Bio(t,:),aij); trophic=gi'.*sum(predation,'c')'-sum(predation1,'r'); //////////////////////////////////////////////////////////////// //NOMBRE BATEAUX //////////////////////////////////////////////////////////////// for f=1:N_fleet historical_effort_bu(t+1,f)=round(nb_boats_Post_BAU(t,f)).*nb_j_peche_per_boats_per_trim(1,f); end historical_effort_CC(n+1)=historical_effort_bu(n+1,1); historical_effort_CCA(n+1)=historical_effort_bu(n+1,2); historical_effort_T(n+1)=historical_effort_bu(n+1,3); //////////////////////////////////////////////////////////////// nb_boats_Post_BAU_t(t,1:3)=round(nb_boats_Post_BAU(t,1:3)) //////////////////////////////////////////////////////////////// historical_effort_CCt(t)=historical_effort_CC(n+1); historical_effort_CCAt(t)=historical_effort_CCA(n+1); historical_effort_Tt(t)=historical_effort_bu(n+1,3); //CAPTURE=EFFORT * ESPECE*CAPTURABILITE*BIOMASSE Catch_CC(t,:)=(((historical_effort_CCt(t)) *ones(N_species,1)').*(q_CC)').*Xt(t,:); Catch_CCA(t,:)=(((historical_effort_CCAt(t)).*ones(N_species,1)').*(q_CCA)').*Xt(t,:); Catch_T(t,:)=(((historical_effort_Tt(t)).*ones(N_species,1)').*(q_T)').*Xt(t,:); Catch_(t,:)=Catch_CC(t,:)+Catch_CCA(t,:)+Catch_T(t,:) ///////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////// //CAPTURES PONDERES PAR FLOTTE CC_pond(t,:)=Catch_CC(t,:)./Catch_(t,:); CCA_pond(t,:)=Catch_CCA(t,:)./Catch_(t,:); T_pond(t,:)=Catch_T(t,:)./Catch_(t,:); // CAPTURE PAR ESPECE for i=1:NN_calib //CAPTURE DEPASSANT LA BIOMASSE if Catch_(t,i) > (Bio (t,i)-M'(1,i).*Bio(t,i)+trophic(1,i)) then Catch_CC(t,i)=CC_pond(t,i)*(Bio (1,i)-M'(1,i).*Bio(t,i)+trophic(1,i)) Catch_CCA(t,i)=CCA_pond(t,i)*(Bio (t,i)-M'(1,i).*Bio(t,i)+trophic(1,i)) Catch_T(t,i)=T_pond(t,i)*(Bio (t,i)-M'(1,i).*Bio(t,i)+trophic(1,i)) disp("a") end CA_T(t,i)=PrixTrim(t,i)*Catch_T(t,i); CA_CC(t,i)=PrixTrim(t,i)*Catch_CC(t,i); CA_CCA(t,i)=PrixTrim(t,i)*Catch_CCA(t,i); end //PROFIT CC CA_f_CC(t)= sum (CA_CC(t),'c')+ProOtSP(t,1); C_var_CC(t)=CoutVarTrim(t,1).*nb_boats_Post_BAU_t(t,1); C_fix_proj_CC(t)=(fix_cost_trim(1,1).*nb_boats_Post_BAU_t(t,1))./4; Profit_CC(t)=(1-bet(1,1))*(CA_f_CC(t)-C_var_CC(t)-C_fix_proj_CC(t)); //PROFIT CCA CA_f_CCA(t)= sum (CA_CCA(t),'c')+ProOtSP(t,2); C_var_CCA(t)=CoutVarTrim(t,2).*nb_boats_Post_BAU_t(t,2); C_fix_proj_CCA(t)=(fix_cost_trim(1,2).*nb_boats_Post_BAU_t(t,2))./4; Profit_CCA(t)=(1-bet(1,2))*(CA_f_CCA(t)-C_var_CCA(t)-C_fix_proj_CCA(t)); //PROFIT T CA_f_T(t)= sum (CA_T(t),'c')+ProOtSP(t,3); C_var_T(t)=CoutVarTrim(t,3).*nb_boats_Post_BAU_t(t,3); C_fix_proj_T(t)=(fix_cost_trim(1,3).*nb_boats_Post_BAU_t(t,3))./4; Profit_T(t)=(1-bet(1,3))*(CA_f_T(t)-C_var_T(t)-C_fix_proj_T(t)); /////////////////////////////////////////////////////////////////////////////////////// if Catch_T(t,:)==0 then Profit_T(t)=0 nb_boats_Post_BAU_t(t,3)=0 C_var_T(t)=0; C_fix_proj_T(t)=0; end if Catch_CCA(t,:)==0 then Profit_CCA(t)=0 nb_boats_Post_BAU_t(t,2)=0 C_var_CCA(t)=0; C_fix_proj_CCA(t)=0; end if Catch_CC(t,:)==0 then Profit_CC(t)=0 nb_boats_Post_BAU_t(t,1)=0 C_var_CC(t)=0; C_fix_proj_CC(t)=0; end /////////////////////////////////////////////////////////////////////////////////////// //CAPTURE ET BIOMASSE for i=1:NN_calib Catch(t,i)=Catch_CC(t,i)+Catch_CCA(t,i)+Catch_T(t,i); Bio(t+1,i)=(Bio(t,i)-M'(1,i).*Bio(t,i)-Catch(t,i)+trophic(1,i)); end //BIOMASSE RESSOURCE PLANCTONIQUE Bio(t+1,N_species)=(Bio(t,N_species)+I(t)-aij(1,N_species).*Bio(t,N_species).*Bio(t,1)-aij(2,N_species).*Bio(t,N_species).*Bio(t,2)-aij(3,N_species).*Bio(t,N_species).*Bio(t,3)); //PAS DE BIOMASSE NULLE Bio(t+1,:)=max(zeros(Bio(t,:)),Bio(t+1,:)); //RESULTAT Catch_msy=sum(Catch_CC(t,:)+Catch_CCA(t,:)+Catch_T(t,:)); CCt=[CCt;Catch_CC(t,:)]; CCAt=[CCAt;Catch_CCA(t,:)]; Tt=[Tt;Catch_T(t,:)]; ///////////////////////////////////////// Pro(t,1)=Profit_CC(t); Pro(t,2)=Profit_CCA(t); Pro(t,3)=Profit_T(t); ///////////////////////////////////////// //NPV ///////////////////////////////////////// IndNPV(t)=Pro(t)./ActuTrim(t); IndPro(t)=bool2s(IndNPV(t)>=0); end end //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //2 DERNIERES ANNEES 2068-2070 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// for t=Horizont+floor(T_s/Y)*Y+1:T_proj; //TEMPERATURE for i=1:NN_calib; gamm(t,i)=[gam(t+int(tho(i)),i)]; end; gammaa=[gamm(t,:),1] ; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //BIOMASSE avec en 1ere ligne la Biomasse trouvé avec la calib Xt=[Xt;Bio(t,:)]; //interaction BIOMASSE et MILIEU predation=tauxpredation(Bio(t,:),aij,gammaa); predation1=tauxpredation1(Bio(t,:),aij); trophic=gi'.*sum(predation,'c')'-sum(predation1,'r'); /////////////////////////////////////////////////////////////// //NOMBRE BATEAUX //////////////////////////////////////////////////////////////// for f=1:N_fleet historical_effort_bu(floor(T_s/Y)+1,f)=round(nb_boats_Post_BAU(floor(T_s/Y)+1,f)).*nb_j_peche_per_boats_per_trim(1,f); end //EFFORT //////////////////////////////////////////////////////////////// historical_effort_CC(floor(T_s/Y)+1)=historical_effort_bu(floor(T_s/Y)+1,1); historical_effort_CCA(floor(T_s/Y)+1)=historical_effort_bu(floor(T_s/Y)+1,2); historical_effort_T(floor(T_s/Y)+1)=historical_effort_bu(floor(T_s/Y)+1,3); //////////////////////////////////////////////////////////////// nb_boats_Post_BAU_t(t,1:3)=round(nb_boats_Post_BAU(t,1:3)) /////////////////////////////////////////////////////////////// historical_effort_CCt(t)=historical_effort_CC(floor(T_s/Y)); historical_effort_CCAt(t)=historical_effort_CCA(floor(T_s/Y)); historical_effort_Tt(t)=historical_effort_T(floor(T_s/Y)); //////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////// //CAPTURES PAR FLOTTE Catch_CC(t,:)=(((historical_effort_CCt(t)) *ones(N_species,1)').*(q_CC)').*Xt(t,:); Catch_CCA(t,:)=(((historical_effort_CCAt(t)).*ones(N_species,1)').*(q_CCA)').*Xt(t,:); Catch_T(t,:)=(((historical_effort_Tt(t)).*ones(N_species,1)').*(q_T)').*Xt(t,:); Catch_(t,:)=Catch_CC(t,:)+Catch_CCA(t,:)+Catch_T(t,:) ///////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////// //CAPTURES PONDERES PAR FLOTTE CC_pond(t,:)=Catch_CC(t,:)./Catch_(t,:); CCA_pond(t,:)=Catch_CCA(t,:)./Catch_(t,:); T_pond(t,:)=Catch_T(t,:)./Catch_(t,:); // CAPTURE PAR ESPECE for i=1:NN_calib //CAPTURE DEPASSANT LA BIOMASSE if Catch_(t,i) > (Bio (t,i)-M'(1,i).*Bio(t,i)+trophic(1,i)) then Catch_CC(t,i)=CC_pond(t,i)*(Bio (1,i)-M'(1,i).*Bio(t,i)+trophic(1,i)) Catch_CCA(t,i)=CCA_pond(t,i)*(Bio (t,i)-M'(1,i).*Bio(t,i)+trophic(1,i)) Catch_T(t,i)=T_pond(t,i)*(Bio (t,i)-M'(1,i).*Bio(t,i)+trophic(1,i)) disp("a") end CA_T(t,i)=PrixTrim(t,i)*Catch_T(t,i); CA_CC(t,i)=PrixTrim(t,i)*Catch_CC(t,i); CA_CCA(t,i)=PrixTrim(t,i)*Catch_CCA(t,i); end //PROFIT CC CA_f_CC(t)= sum (CA_CC(t),'c')+ProOtSP(t,1); C_var_CC(t)=CoutVarTrim(t,1).*nb_boats_Post_BAU_t(t,1); C_fix_proj_CC(t)=(fix_cost_trim(1,1).*nb_boats_Post_BAU_t(t,1))./4; Profit_CC(t)=(1-bet(1,1))*(CA_f_CC(t)-C_var_CC(t)-C_fix_proj_CC(t)); //PROFIT CCA CA_f_CCA(t)= sum (CA_CCA(t),'c')+ProOtSP(t,2); C_var_CCA(t)=CoutVarTrim(t,2).*nb_boats_Post_BAU_t(t,2); C_fix_proj_CCA(t)=(fix_cost_trim(1,2).*nb_boats_Post_BAU_t(t,2))./4; Profit_CCA(t)=(1-bet(1,2))*(CA_f_CCA(t)-C_var_CCA(t)-C_fix_proj_CCA(t)); //PROFIT T CA_f_T(t)= sum (CA_T(t),'c')+ProOtSP(t,3); C_var_T(t)=CoutVarTrim(t,3).*nb_boats_Post_BAU_t(t,3); C_fix_proj_T(t)=(fix_cost_trim(1,3).*nb_boats_Post_BAU_t(t,3))./4; Profit_T(t)=(1-bet(1,3))*(CA_f_T(t)-C_var_T(t)-C_fix_proj_T(t)); /////////////////////////////////////////////////////////////////////////////////////// if Catch_T(t,:)==0 then Profit_T(t)=0 nb_boats_Post_BAU_t(t,3)=0 C_var_T(t)=0; C_fix_proj_T(t)=0; end if Catch_CCA(t,:)==0 then Profit_CCA(t)=0 nb_boats_Post_BAU_t(t,2)=0 C_var_CCA(t)=0; C_fix_proj_CCA(t)=0; end if Catch_CC(t,:)==0 then Profit_CC(t)=0 nb_boats_Post_BAU_t(t,1)=0 C_var_CC(t)=0; C_fix_proj_CC(t)=0; end /////////////////////////////////////////////////////////////////////////////////////// //CAPTURE ET BIOMASSE for i=1:NN_calib Catch(t,i)=Catch_CC(t,i)+Catch_CCA(t,i)+Catch_T(t,i); Bio(t+1,i)=(Bio(t,i)-M'(1,i).*Bio(t,i)-Catch(t,i)+trophic(1,i)); end //BIOMASSE RESSOURCE PLANCTONIQUE Bio(t+1,N_species)=(Bio(t,N_species)+I(t)-aij(1,N_species).*Bio(t,N_species).*Bio(t,1)-aij(2,N_species).*Bio(t,N_species).*Bio(t,2)-aij(3,N_species).*Bio(t,N_species).*Bio(t,3)); //PAS DE BIOMASSE NULLE Bio(t+1,:)=max(zeros(Bio(t,:)),Bio(t+1,:)); //RESULTAT Catch_msy=sum(Catch_CC(t,:)+Catch_CCA(t,:)+Catch_T(t,:)); CCt=[CCt;Catch_CC(t,:)]; CCAt=[CCAt;Catch_CCA(t,:)]; Tt=[Tt;Catch_T(t,:)]; //PROFIT ///////////////////////////////////////// Pro(t,1)=Profit_CC(t); Pro(t,2)=Profit_CCA(t); Pro(t,3)=Profit_T(t); ///////////////////////////////////////// //NPV ///////////////////////////////////////// IndNPV(t)=Pro(t)./ActuTrim(t); IndPro(t)=bool2s(IndNPV(t)>=0); end ///////////////////////////////////////////////////////// //Contrainte securite alimentaire ///////////////////////////////////////////////////////// FoodsecLim=1.6//A CHANGER IndFoodsect=bool2s(Foodssect>FoodsecLim); ///////////////////////////////////////////////////////// //Contrainte biologique ///////////////////////////////////////////////////////// //Biomasse limite Blim=[] Blimt0=[] Blimt0=[0,0,0] for t=1:T_proj for i=1:N_species-1 Blim(t,i)=Xt(t,i)-Blimt0(1,i) end end IndBlim=bool2s(Blim>=0); //diversite specifique for t=1:T_proj for i=1:N_species SPt(t,i)=bool2s(Xt(t,i)>0); end end SP=sum(SPt,"c"); IndSP=bool2s(SP==4); ////////////////////////////////////////////////// //Indice biologique IndBio_=[IndBio_,IndSP]; IndBio_=[IndBio_,IndBlim]; IndBio=bool2s(sum(IndBio_,"c")==2); ////////////////////////////////////////////////// ///////////////////////////////////////// //Pro ///////////////////////////////////////// Pro(t,1)=Profit_CC(t); Pro(t,2)=Profit_CCA(t); Pro(t,3)=Profit_T(t); CompteFi=[] CompteFi=[CompteFi,CA_f_CC,C_var_CC,C_fix_proj_CC,CA_f_CCA,C_var_CCA,C_fix_proj_CCA,CA_f_T,C_var_T,C_fix_proj_T] Catcht=sum(CCt,"c")+sum(CCAt,"c")+sum(Tt,"c"); Foodssect=(Catcht(:,1).*1000)./PopGuy(:); ///////////////////////////////////////// //NPV ///////////////////////////////////////// IndNPV(t)=Pro(t)./ActuTrim(t); IndPro(t)=bool2s(IndNPV(t)>=0); IndNPV=sum(Pro,"c")./ActuTrim(1:256,:); IndPro=bool2s(IndNPV>=0); IndGen=[IndGen,IndBio]; IndGen=[IndGen,IndFoodsect]; IndGen=[IndGen,IndPro]; //IndViab=sum(IndPro);//indgen est le score de viabilite IndViab=bool2s(sum(IndGen,"c")==3); IndGen=[IndGen,IndViab]; endfunction nb_boats_Post_BAU_t=nb_boats_BAU; aij=data_param(2:2+N_species-1,2:2+N_species-1); if cas=="26" then gam=gam_26; load('C:\Users\matve\Desktop\Code These\ResilienceMSY\Bsimul26','B_simul_26'); B_simul=B_simul_26; end if cas=="85" then gam=gam_85; load('C:\Users\matve\Desktop\Code These\ResilienceMSY\Bsimul85','B_simul_85'); B_simul=B_simul_85; end Y=20; PopGuyTr=PopGuyTrim; /////////////////////////////////////////////////// //Traj Del sans choc /////////////////////////////////////////////////// load('CoutVarDel','CoutVarTrim'); CoutVarTrim=CoutVarTrimDel [IndGen,IndPro,IndFoodsect,IndBlim,Pro,Catcht,CCt,CCAt,Tt,Xt,IndSP,IndBio,SP,Blim,Foodssect,nb_boats_Post_BAU_t,IndNPV,CompteFi,historical_effort_bu,CompteFi]=dynamique_MAT_2(nb_boats_Post_BAU,gam,aij,B_simul,Y,PopGuyTr) Blim=Blim(1:256,:) Pro=Pro(1:256,:) Foodssect=Foodssect(1:256,:) nb_boats_Post_BAU_t=nb_boats_Post_BAU_t(1:256,:) save('Blim_Del'+string(cas),'Blim'); save('Pro_Del'+string(cas),'Pro') save('Foodssect_Del'+string(cas),'Foodssect') save('Bateau_Del'+string(cas),'nb_boats_Post_BAU_t') /////////////////////////////////////////////////// /////////////////////////////////////////////////// //Traj Sus sans choc /////////////////////////////////////////////////// load('CoutVarSus','CoutVarTrim'); [IndGen,IndPro,IndFoodsect,IndBlim,Pro,Catcht,CCt,CCAt,Tt,Xt,IndSP,IndBio,SP,Blim,Foodssect,nb_boats_Post_BAU_t,IndNPV,CompteFi,historical_effort_bu,CompteFi]=dynamique_MAT_2(nb_boats_Post_BAU,gam,aij,B_simul,Y,PopGuyTr) Blim=Blim(1:256,:) Pro=Pro(1:256,:) Foodssect=Foodssect(1:256,:) nb_boats_Post_BAU_t=nb_boats_Post_BAU_t(1:256,:) save('Blim_Sus'+string(cas),'Blim'); save('Pro_Sus'+string(cas),'Pro') save('Foodssect_Sus'+string(cas),'Foodssect') save('Bateau_Sus'+string(cas),'nb_boats_Post_BAU_t') /////////////////////////////////////////////////// /////////////////////////////////////////////////// //Traj Trad /////////////////////////////////////////////////// load('CoutVarTrad','CoutVarTrim'); [IndGen,IndPro,IndFoodsect,IndBlim,Pro,Catcht,CCt,CCAt,Tt,Xt,IndSP,IndBio,SP,Blim,Foodssect,nb_boats_Post_BAU_t,IndNPV,CompteFi,historical_effort_bu,CompteFi]=dynamique_MAT_2(nb_boats_Post_BAU,gam,aij,B_simul,Y,PopGuyTr) Blim=Blim(1:256,:) Pro=Pro(1:256,:) Foodssect=Foodssect(1:256,:) nb_boats_Post_BAU_t=nb_boats_Post_BAU_t(1:256,:) save('Blim_sans_choc'+string(cas),'Blim'); save('Pro_sans_choc'+string(cas),'Pro') save('Foodssect_sans_choc'+string(cas),'Foodssect') save('nb_boats_Post_BAU_t_sans_choc'+string(cas),'nb_boats_Post_BAU_t') ///////////////////////////////////////////////////
600b8b43fba2ed3ca01e20728c865115d4be5a1b
449d555969bfd7befe906877abab098c6e63a0e8
/135/CH2/EX2.11/EX11.sce
bd7b1e556a025c73744bb4b5bfc5dc9e0b880aab
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,833
sce
EX11.sce
// Example 2.11 (a) Alternating component of voltage acroos load resistance // (b) Total voltage across load resistance // (c) Total current clc, clear T=293; // Operating temperature in kelvins VT=T/11600; // Voltage equivalent to temperatue at room temperature in volts // In the Fig. 2.21(a) VAA=9; // in volts Vm=0.2; // in volts RL=2e3; // Load resistance in ohms Vy=0.6; // Cut-in voltage in volts Rf=10; // Forward resistance of diode in ohms eta=2; disp("Part (a)") // From DC model in Fig. 2.21(b) IDQ=(VAA-Vy)/(RL+Rf); // DC current through diode or load resistance in amperes rd=eta*VT/IDQ; // Dynamic resistance in ohms // This dynamic resistance is used in AC model in Fig. 2.21(c) Vom=Vm*RL/(RL+rd); // Amplitude of alternating component of the voltage across load resistance in volts disp(Vom,"Amplitude of alternating component of the voltage across load resistance (V) ="); disp("Therefore, the alternating component of the voltage across load resistance is 0.199 sin ωt V"); disp("Part (b)"); VDQ=IDQ*RL; // DC component of voltage across load resistance in volts disp(VDQ,"DC component of voltage across load resistance (V) ="); disp("Therefore, total voltage across load resistance is (8.36 + 0.199 sin ωt) V"); disp("Part (C)"); IDQ=IDQ*1e3; // DC current through load resistance in miliamperes idm=Vm/(RL+rd); // Amplitude of alternating component of the current across load resistance in amperes idm=idm*1e3; // Amplitude of alternating component of the current across load resistance in miliamperes disp(IDQ,"DC component of current across load resistance (mA) ="); disp(idm,"Amplitude of alternating component of the current across load resistance (mA) ="); disp("Therefore, total current across load resistance is (4.18 + 0.099 sin ωt) mA");
4c7baf2dd0c24769b0312a7a53d7cfecb3586ed7
449d555969bfd7befe906877abab098c6e63a0e8
/3673/CH5/EX5.a.14/Example_a_5_14.sce
01492cf7ae01063e8f9298d29fffeddca4cad59a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
166
sce
Example_a_5_14.sce
//Example_a_5_14 page no:214 clc; R=10; Vr=50; omega=1000; theta=60; C=1/(tand(60)*omega*R); C=C*10^6; disp(C,"the unknown capacitance is (in microFarad)");
3d57a41efc7e4d094fb8b557fc1b0c1b063c6c58
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.5/Unix-Windows/scilab-2.5/macros/xdess/rotate.sci
bf8adaddc64c95fe3274b4602e186379918ea30a
[ "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
482
sci
rotate.sci
function [xy]=rotate(xy,teta,orig) // effectue une rotation // // xy : matrice a deux lignes // teta : angle en radian , 0 si omis // orig : centre de la rotation, <0;0> si omis //! // Copyright INRIA [lhs,rhs]=argn(0) select rhs case 2 then orig=[0;0]; case 3 then orig=matrix(orig,2,1); else error(39) end; // [m,n]=size(xy) if m<>2 then error('xy doit etre un vecteur a 2 lignes [x;y]'),end // xy=xy-orig*ones(1,n) c=cos(teta),s=sin(teta) xy=[c s;-s,c]*xy+orig*ones(1,n)
80f97d43c09415ce358e9fbf901b8d7636132660
449d555969bfd7befe906877abab098c6e63a0e8
/1199/CH1/EX1.1/1_1.sci
38bf04bbcbcffc523d24e284e626fffeea2c7f7d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
453
sci
1_1.sci
// 1.1 clc; c1=10^-6; f1=60; L1=1/(4*%pi*%pi*(f1^2)*c1); printf("inductance of the circuit 1 = %.2f H", L1) f2=50; w=2*%pi*f2; R1=100; Z1=complex(R1,((w*L1)-(1/w*c1))); //Z2=complex(100+j*((2*%pi*50*L2)-(1/(2*%pi*50*1.5*10^-6))))); //for equal currents in two circuits Z1=Z2 disp('inductance of circuit 2 L2=9.82 H') L2=9.82; C2=1.5*10^-6; Rf2=(1/(2*%pi))*(1/(L2*C2))^0.5; printf("Resonant frequency of the circuit 1 = %.2f Hz", Rf2)
9c48f4bc3adba157031e410ec44d7ac0df0c0404
449d555969bfd7befe906877abab098c6e63a0e8
/965/CH7/EX7.55/55.sci
0943b645f25f66ad697db2e71930bfa9b71ccec2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
776
sci
55.sci
clc; clear all; disp("number of tubes") ts=80;//degree C saturated steam temperature kb=110;// W/m.C thermal conductivity of brass do=1.59/100;// m OD of tubes ro=do/2; di=1.34/100;// m ID of tubes ri=di/2; tc1=20;//degree C tc2=40;//degree C mw=55000/3600;//kg/s U=1.4;//m/s kw=0.659;// W/m.C thermal conductivity of water rho=979.8;//kg/m^3 cp=4180;// J/kg.K mu=0.4044*10^(-3);//Pa.s ho=10760;// W/m^2.C Q=mw*cp*(tc2-tc1); Af=mw/(rho*U); N=ceil(4*Af/(%pi*di^2)); disp(N,"numebr of tubes =") Re=rho*U*di/mu; Pr=mu*cp/kw; Nu=0.023*Re^0.8*Pr^0.4; hi=kw*Nu/di; Uo=1/(1/ho+ro*(log(ro/ri))/(2*kb)+ro/(ri*hi)); th1=ts-tc1; th2=ts-tc2; thm=(th1-th2)/log(th1/th2); //Ao=%pi*do*L Ao=Q/(Uo*thm); L=Ao/(%pi*do*N); disp("m",L,"length of each tube =")
b8153a62b919703a95a34e96f6e09804eb74fd08
449d555969bfd7befe906877abab098c6e63a0e8
/620/CH23/EX23.7/example23_7.sce
3fbdae4de9251fe6be94677f33acb69e7efae4db
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
example23_7.sce
c1=8*10^(-6); c2=4*10^(-6); v=120; f=60; x_c1=1/(2*%pi*f*c1); x_c2=1/(2*%pi*f*c2); x_c=x_c1*x_c2/(x_c1+x_c2); disp("the total capacitive reactance (in Ω) is"); disp(x_c); disp("Part b"); i=v/x_c; disp("the total current drawn (in A) from the supply is"); disp(i);
de33fe61ac74b4cab21869b6088b7ca755e042e0
99b4e2e61348ee847a78faf6eee6d345fde36028
/Toolbox Test/rc2poly/rc2poly8.sce
1cf785566af27aa224c8595107a3c8414afaac0a
[]
no_license
deecube/fosseetesting
ce66f691121021fa2f3474497397cded9d57658c
e353f1c03b0c0ef43abf44873e5e477b6adb6c7e
refs/heads/master
2021-01-20T11:34:43.535019
2016-09-27T05:12:48
2016-09-27T05:12:48
59,456,386
0
0
null
null
null
null
UTF-8
Scilab
false
false
274
sce
rc2poly8.sce
//check o/p when vector containing elements of type doule are passed to the function z=[0.23 0.233 0.34 0.56 0.34 0.12 0.34 0 0.986]; [k] =rc2poly(z); disp(k); //output //1.0000 0.8252 1.2695 1.4682 1.7928 1.7871 1.4584 1.2612 0.8137 0.9860
5ca26cef76e43d7424ce6b0f6a98161a94c81539
a4ce37dd982e41bbd31bdf08b43c2913bfe5082a
/data/poverty_rate_table.tst
0b0f7cda2076249ee0a1291afa29c4a7d872a1a0
[]
no_license
karthik-aru/bcn-population-diversity
9c15c1ba1f38808f7917182128e4078fc001f1b8
97f67170a2d18219716b0a4d74a6d0adeb49982a
refs/heads/main
2023-02-22T02:29:58.836329
2021-01-24T15:03:46
2021-01-24T15:03:46
332,176,688
0
0
null
null
null
null
UTF-8
Scilab
false
false
422
tst
poverty_rate_table.tst
District.Code District.Name Perc_BPL      1 Ciutat Vella   37.2        2 Eixample   19.8        3 Sants-Montjuïc   29.1        4 Les Corts   20.2        5 Sarrià-Sant Gervasi   10.4        6 Gràcia   17.6        7 Horta-Guinardó   23.3        8 Nou Barris   43.3        9 Sant Andreu   25.9        10 Sant Martí   24.2
80e653bce297ffe94f1c103a6e7c246a4a707286
449d555969bfd7befe906877abab098c6e63a0e8
/1646/CH15/EX15.9/Ch015Ex9.sce
1355db257712e892759214175b92ff0bbafd8a7c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
786
sce
Ch015Ex9.sce
// Scilab code Ex15.9 : Pg:773(2011) clc;clear; function [bini]= decimal_binary(ni) // Function to convert decimal to binary bini = 0; i = 1; while (ni <> 0) rem = ni-fix(ni./2).*2; ni = int(ni/2); bini = bini + rem*i; i = i * 10; end endfunction function [deci]= binary_decimal(ni) // Function to convert binary to decimal deci = 0; i = 0; while (ni <> 0) rem = ni-fix(ni./10).*10; ni = int(ni/10); deci = deci + rem*2.^i; i = i + 1; end endfunction num1 = 1001; // Initialize the first binary number num2 = 0111; // Initialize the second binary number printf("%4d - 0%3d = 00%2d", num1, num2, decimal_binary(binary_decimal(num1)-binary_decimal(num2))); // Result // 1001 - 0111 = 0010
a022fb08de222de1ac4aaa400f07110563d22483
449d555969bfd7befe906877abab098c6e63a0e8
/278/CH32/EX32.3/ex_32_3.sce
66970e3ad5e869cdd6a5c32f443f3783b8c6cbdf
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
449
sce
ex_32_3.sce
//find clc //solution //given D=400//mm L=600//mm r=300//mm pb=0.3//N/mm^2 p=2.5//N/mm^2 W=50//kN //T1+T2=6.5//kN=P P=6.5 q=(%pi/180)*pb //l/r=5 Fp=(%pi/4)*D^2*p//N b=2*D b1=b/2 b2=b/2 H1=Fp*b1/b/1000//kN H2=Fp*b2/b/1000//kN //V2=W*c1/c //c1=c2=c/2 V2=W/2 V2=W/2 H2b=P/2 H3b=P/2 //let dc be crankpin dia,lc be length fb=75//N/mm^2 //Mc=(%pi/32)*dc^3*fb=7.364*10^-3*dc^3 Mc1=H1*b2 dc=(Mc1/(7.364*10^-3))^(1/3) printf("dia of crankpin is,%f mm\n",dc)
55b2319fae080a16e389369d0bb26b890ed2e388
449d555969bfd7befe906877abab098c6e63a0e8
/3793/CH4/EX4.15/exp_4_15.sce
563da9fb754b8cf42754649ed9a8f8db08a90623
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,051
sce
exp_4_15.sce
clear; clc; v=400; Xl=.30; Xc=3.75*10^(-6); l=300; L=Xl/(2*%pi*50); C=Xc/(2*%pi*50); Zc=sqrt(L/C); phase=2*%pi*50*sqrt(L*C); pconstant=%i*phase; Vs=v/sqrt(3); Vr=Vs/(cos(phase*l)); betal=18.9076; Xl=(Zc*sind(betal))/(1-cosd(betal)); Xr=(3*(Vs^2))/Xl; mprintf("Reactance and rating of inductive shunt reactor are %.4f ohm and %.4f MVAR\n",Xl,Xr); //case b l=800; pf=.8; del12=asind((l*pf*91.6532)/v^2); Q12=((Vs^2/91.6532)*cosd(betal))-((Vs^2/91.6532)*cosd(del12)); Cr=complex(0,3*Q12)-complex(0,800*.6); XC=v^2/Cr; cc=10^6/(2*%pi*50*(imag(XC))); mprintf("Rating and capacitance of capacitor are %.4f MVAR AND %.4f microF\n",imag(Cr),cc); //case c XX=Zc*sind(betal); com=.5; Xcs=com*XX; Ir=l/(sqrt(3)*v*pf); zz=complex(0,XX-Xcs); yy=complex(0,(2/Zc*tand(betal/2))); A=(1+(zz*yy/2)); B=zz; Irr=Ir*complex(.8,-.6); Vsss=(.9519*Vs)+(zz*Irr); Vss=sqrt(3)*Vsss; Reg=((abs(Vss)-v)/v)*100; mprintf("Sending end voltage is %.4f+j%.4f kV\n",real(Vss),imag(Vss)); mprintf("regulation is %.4f percent",Reg); disp(Irr)
83b143adfda96040a622c30c85cb65827810ba1b
449d555969bfd7befe906877abab098c6e63a0e8
/2594/CH7/EX7.2/Ex7_2.sce
7d1deba80bc56d4db8e466709569009a92ba9070
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
895
sce
Ex7_2.sce
clc NE=5*10^17 disp("NE = "+string(NE)+" /cm^3") //initializiation the value of doping concentration in the emitter . NB=10^16 disp("NB = "+string(NB)+" /cm^3") //initializiation the value of doping concentration in the base. NC=10^15 disp("NC = "+string(NC)+" /cm^3") //initializiation the value of doping concentration in the collector. WB=0.8*10^-4 disp("WB = "+string(WB)+" cm") //initializiation the value of base width of NPN transistor. no=1.5*10^10 disp("no = "+string(no)+"cm^-3") //initializing the intrinsic carrier concentration. pEO=(no^2/NE) disp("Number of Majority holes in the emitter,pEO=(no^2/NE) )="+string(pEO)+" /cm^3")//calculation nBO=(no^2/NB) disp("Number of Majority holes in the base,nBO=(no^2/NB))="+string(nBO)+" /cm^3")//calculation pCO=(no^2/NC) disp("Number of Majority holes in the collector,pCO=(no^2/NC))="+string(pCO)+" /cm^3")//calculation
40d2017ca1f94cb1d336050595afc9030360e052
449d555969bfd7befe906877abab098c6e63a0e8
/2219/CH4/EX4.5/Ex4_5.sce
1b510fb016b3add39d4978ffbf9f8acf451ae905
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
611
sce
Ex4_5.sce
// chapter 4 example 5 //----------------------------------------------------------------------------- clc; clear; // given data Pi = 5*10^-3; // Input power in W CF = 10; // coupling factor Piso = 10*10^-6 // power at isolated port in w // calculations // CF = 10log(Pi/Pc) Pc = Pi/(10^(CF/10)) // antilog conversion and coupling power // D = 10log(Pc/Piso) // Directivity D = 10*log10(Pc/Piso) // Output mprintf('Directivity = %3.0f dB\n',D); //------------------------------------------------------------------------------
ff71291ec4483ffa1a5bb53c9f066566946bf3f0
8217f7986187902617ad1bf89cb789618a90dd0a
/browsable_source/2.3.1/Unix-Windows/scilab-2.3/macros/percent/%pdr.sci
7fd653a478afeaf9a39d0057054e413b8b0ee576
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-public-domain" ]
permissive
clg55/Scilab-Workbench
4ebc01d2daea5026ad07fbfc53e16d4b29179502
9f8fd29c7f2a98100fa9aed8b58f6768d24a1875
refs/heads/master
2023-05-31T04:06:22.931111
2022-09-13T14:41:51
2022-09-13T14:41:51
258,270,193
0
1
null
null
null
null
UTF-8
Scilab
false
false
114
sci
%pdr.sci
function r=%pdr(p,r) // r=%pdr(p,r) <=> r= p./r polynomial./rational [n,d]=r(2:3) r(2)=d.*p;r(3)=n.*ones(p);
3cad486d1e6155a823f2e7bad8e3fce6500e3874
449d555969bfd7befe906877abab098c6e63a0e8
/52/CH4/EX4.23/Example4_23.sce
b8a307f1bf061a59cb4c141ead2f8e69afaca3f5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
244
sce
Example4_23.sce
//Example 4.23 //Program to Compute the DFT of given Sequence //x[n]=cos(n*pi/2), and N=4 using DIF-FFT Algorithm. clear; clc ; close ; N=4; pi=22/7; n=0:1:N-1; x =cos(n*pi/2); //FFT Computation X = fft (x , -1); disp(X,'X(z) = ');
de616a05eeb76438d309522b651e8404c8d767bb
449d555969bfd7befe906877abab098c6e63a0e8
/476/CH8/EX8.17/Example_8_17.sce
11d56abf75fb39e6d189e68db5a2bd0672793897
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,246
sce
Example_8_17.sce
//A Textbook of Chemical Engineering Thermodynamics //Chapter 8 //Phase Equilibria //Example 17 clear; clc; //Given: P = 40.25; //total pressure (kPa) y1 = 0.566; //mol fraction of benzene in vapour phase x1 = 0.384; //mol fraction of benzene in liquid state P1 = 29.6; //vapour pressure of benzene (kPa) P2 = 22.9; //vapour pressure of ethanol (kPa) //To determine the composition and total pressure of azeotrope x2 = 1-x1; y2 = 1-y1; //Using eq. 8.47 (Page no. 325) //Activity coeffecients: g1 = (y1*P)/(x1*P1); g2 = (y2*P)/(x2*P2); //Using eq. 8.69 (Page no. 348) //van Laar constants: A = log(g1)*((1 + (x2*log(g2))/(x1*log(g1)))^2); B = log(g2)*((1 + (x1*log(g1))/(x2*log(g2)))^2); //Assuming azeotropic comp. (for hit and trial method) x1 = 0.4; flag = 1; while(flag==1) x2 =1-x1; ln_g1 = (A*x2^2)/(((A/B)*x1 + x2)^2); ln_g2 = (B*x1^2)/((x1 + (B/A)*x2)^2); g1 = %e^ln_g1; g2 = %e^ln_g2; P_1 = g1*P1; P_2 = g2*P2; if((P_1-P_2)<=1) and ((P_1-P_2)>=-1) flag = 0; else x1 = x1+0.1; end end mprintf('Azeotropic compositon of benzene is %i percent',x1*100); mprintf('\n Total pressure of azeotrope is %f kPa',(P_1+P_2)/2); //end
43baf4ce15095e8a8bc41b5b889fe80bb788f6c7
449d555969bfd7befe906877abab098c6e63a0e8
/3136/CH12/EX12.7/Ex12_7.sce
b4f31b0e6fc677f5363a26acc27929506cbbc5bb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,281
sce
Ex12_7.sce
clear all; clc; disp("Referring to figure A-12 and assuming pure saturated liquid at the condenser outlet,we have h9=hf=93 Btu/lbm from the steam table") disp("With p8=p9=2 psia and p6=100 psia,we have h6=h9+delta_p*144/(Eta_p*rho)") h9=93 delta_p=100-2 Eta_p=0.8 rho=62.4*778 h6=h9+delta_p*144/(Eta_p*rho) printf(" h6=%0.1f Btu/lbm",h6) disp("Assuming T6 to be approximately equal to T9=585 R with the definition of boiler efficiency Eta_b=(h7-h6)*m_w/[Cp*(T4-T5)*m_g]") h7=0.75*0.24*(1374.5-585)/0.10+93.4 printf(" h7= %0.2f Btu/lbm",h7) disp("Assuming p6 to be approximately equal to p7=100 psia,we obtain s8s=s7=1.908 Btu/lbmR and h8s=1120 btu/lbm from the steam table") disp("From the definition of turbine efficiency,Eta_t=(h7-h8)/(h7-h8s) we can determine the value of h8") h8=1514.5-0.84*(1514.5-1120) printf(" h8=%0.0f Btu/lbm",h8) disp("Or w_t=h7-h8=331.4 Btu/lbm,w_p=0.4 Btu/lbm") disp("Hence the additional power output from the steam power plant per unit mass flow rate of gas through the gas turbine is delta_w=(w_t-w_p)*m_w*/m_g") delta_w=331*0.1 printf(" delta_w= %0.1f Btu/lbm=hp/(lbm/s)",delta_w) Eta_th=(99.8+46.8)/(382.6) printf("\n The new thermal efficiency = %0.3f =38.3 percent",Eta_th)
5556b4d2c322df5c84fae770ea0f8af15b0028af
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH12/EX12.26/Ex12_26.sce
b87933a5cec3d48c977d579b834352cd4015e456
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex12_26.sce
clear //Given l=0.5 //m n=20 //turns r=50 //cm A1=40*10**-4 //m**2 n1=25 A2=25*10**-4 //m**2 //Calculation u=4*%pi*10**-7 N=n*r N2=n1*r M=(u*N*N2*A2)/l //Result printf("\n Mutual induction of the system is %0.2f *10**-3 H",M*10**3)
106bd3702520f9649bd7f7a3449c6b49b99c7067
449d555969bfd7befe906877abab098c6e63a0e8
/2330/CH16/EX16.1/ex16_1.sce
8c898db39a98e8e7ed26ff889c894f3ad5fba08b
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
482
sce
ex16_1.sce
// Example 16.1 format('v',5) clc; clear; close; // given data A=100000;//unit less R1= 98*10^3;// in Ω R2= 2*10^3;// in Ω Vin= 1*10^-3;// in V B= R2/(R1+R2);// unit less A_CL= 1/B;// unit less A_CL= A/(1+A*B);// unit less // The output voltage Vout= Vin*A_CL;// in V // The error voltage Verror= Vout/A;// in V Vout= Vout*10^3;// in mV Verror= Verror*10^6;// in µV disp(Vout,"The output voltage in mV is : ") disp(Verror,"The error voltage in µV is : ")
85eeead490deb640950e52a4ed9f2a68a0d4aca6
717ddeb7e700373742c617a95e25a2376565112c
/278/CH14/EX14.1/ex_14_1.sce
076a13d5aa8708b33108443ffd06e1769ad1eea1
[]
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
230
sce
ex_14_1.sce
//determine dia of the shaft clc //solution //given N=200//rpm P=20*10^3//W t=42//N/mm^2 //let d be dia T=P*60000/(2*%pi*200)//N-mm //T=(%pi/16)*t*d^3=8.25*d^3 d=(T/8.25)^(1/3)//mm printf("the dia of shaft is,%f mm",d)
4b6181ba8fb73f2c95af72fefb81ec0d4c08133d
449d555969bfd7befe906877abab098c6e63a0e8
/3537/CH1/EX1.35/Ex1_35.sce
f8ecbd5644e96cd3b5fcd40d96b28ec75eee7db3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
235
sce
Ex1_35.sce
//Example 1_35 clc(); clear; //To calculate the intensity ratio of the bright and dark fringes I1=1 I2=25 A1=sqrt(I1) A2=sqrt(I2) Imax=(A1+A2)^2 Imin=(A2-A1)^2 printf("The intensity ratio is \n\t Imax:Imin %d:%d",Imax,Imin)
954c7c9c3ef4892d2cf734939dd9e0277d8db392
449d555969bfd7befe906877abab098c6e63a0e8
/3257/CH4/EX4.2/Ex4_2.sce
8095428c40aff60f6b29889f2a8822878319a6a0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
226
sce
Ex4_2.sce
// Adhesive wear in sliding clc v = 1 // wear volume in mm^3 k = 1e-2 // from table W = 100 //load in kg p = 150 // hardness in HB printf("\n Example 4.2") L = 3*v*p/(k*W) printf("\n Distance traveled is %d mm.",L)
ca19f59f0c27ad9e237ca06733e70133241f9768
449d555969bfd7befe906877abab098c6e63a0e8
/2606/CH10/EX10.25/ex10_25.sce
0dee7d81a3276359d32f50ae02577bb5e0f04394
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
786
sce
ex10_25.sce
//Page Number: 10.41 //Example 10.25 clc; //Given A1=0.5; A2=0.5; T=0.01; //sec N0=2*0.0001; //W/Hz f=50; //Hz //(a) Probability of bit error Es1=(A1^2*T)/2; Es2=(A2^2*T)/2; Eb=(Es1+Es2)/2; //As PE=Qsqrt(Ep+Eq-2Epq/2N0) //In this case Ep=Eq=Eb //Therefore PE=Qsqrt(Eb(1-p)/N0) //where p=Epq/Eb //p=(1/Eb)*integrate('0.5*cos(2000*%pi*t)*0.5*cos(2020*%pi*t)','t',0,T); //We get p=0.94; q=1-p; //As Pe=Q(z) //where z=sqrt(Eb/N0) z=sqrt((Eb*q)/N0); Pe=(1/2)*erfc(z/1.414); disp(Pe,'Probabilty of bit error:') //(b) //Given fs=50; //Hz //or fs=1/2T where T=0.001 //This implies y=tone spacing will be orthogonal //Therefor p=0 //As Pe=Q(z) //where z=sqrt(Eb/N0) zb=sqrt(Eb/N0); PB=(1/2)*erfc(zb/1.414); disp(PB,'Probabilty error for fs=50Hz:')
75e2571559f39b421f3eedc53dd398314c058bf7
449d555969bfd7befe906877abab098c6e63a0e8
/3289/CH4/EX4.5/Ex4_5.sce
f785f9700d7e342bca36fdb6d3e44f0da9b01818
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
881
sce
Ex4_5.sce
clc r=0.04 //m t=5 //mm sigmae=250 //MPa sigmay=300 //MPa //sigmathetamax=(p*r)/t =8*p max values of tangential stresses //sigmathetamin=((-p/4)*r)/t =-2*p min values of tangential stresses //sigmazamax=(p*r)/2*t =4*p axial principal stresses //sigmazmin=((-p/4)*r)/2*t =-p //sigmathetaa=(sigmathetamax-sigmathetamin)/2= 5p alternating and mean stresses //sigmathetam=(sigmathetamax+sigmathetamin)/2= 3p //sigmaza=(sigmazamax-sigmazmin)/2 =2.5p //sigmazm=(sigmazamax+sigmazmin)/2 =1.5p //sqrt(sigmathetaa^2-sigmathetaa*sigmaza+sigmaza^2)=sigmaea //sqrt(sigmathetam^2-sigmathetam*sigmazm+sigmazm^2)=sigmaem //sqrt(25p^2-12.3p^2+6.25p^2)=sigmaea //sqrt(9p^2-4.5p^2+2.25p^2)=sigmaem solving this equation we get sigmaea=4.33 //p sigmaem=2.60 //p p=1/((sigmaea/sigmae)+(sigmaem/sigmay)) disp(p,"the value of p in MPa is= ")
5fb5e4660fbc6fa82871ee48efb64fe1012bf175
449d555969bfd7befe906877abab098c6e63a0e8
/273/CH18/EX18.3/ex18_3.sce
ab7d198de604d1754f3cdab68c448a65d8ac9973
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
552
sce
ex18_3.sce
clc;clear; //Example 18.3 //calculation of fraction of e in CB //given values T=300;//temp in K kT=.026;//temperture equivalent at room temp in eV Eg1=.72;//forbidden gap of germanium in eV Eg2=1.1;//forbidden gap of silicon in eV Eg3=5.6;//forbidden gap of diamond in eV //calculation f1=%e^(-Eg1/(2*kT)); disp(f1,'fraction of e in conduction band of germanium is'); f2=%e^(-Eg2/(2*kT)); disp(f2,'fraction of e in conduction band of silicon is'); f3=%e^(-Eg3/(2*kT)); disp(f3,'fraction of e in conduction band of diamond is');
b6164b72a1bbe0f98138dc3cdcdd2144629c6a6c
449d555969bfd7befe906877abab098c6e63a0e8
/1757/CH6/EX6.13/EX6_13.sce
36eaf0f7002c03521939091e4a02a7c3555740cf
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
380
sce
EX6_13.sce
//Example6.13 // Determine the time constant of the integrator clc; clear; close; Vo = 20 ; t = 1*10^-3 ; VI = -1 ; // at t =0 ; // The output voltage of an integrator is define as RC = t/10 ; disp(' The time constant of the given filter is RC = '+string(RC)+ ' sec '); R = 1*10^3 ; // we assume C = RC/R ; disp('The capacitor value is = '+string(C)+ ' F');
a003352797c4502b410e372b3d17d197221f5d0c
449d555969bfd7befe906877abab098c6e63a0e8
/132/CH2/EX2.2/Example2_2.sce
e7121f98a80a296832b0cddfe376d33b92908457
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
602
sce
Example2_2.sce
//Example 2.2 //Program to Obtain Equivalent Voltage Source Representaion from Given Current Source Representation clear; clc ; close ; //Current Source or Norton's Representaion (Parallel Current Source & Resistor) Is=0.2; //Amperes Zs=100; //Ohms //Voltage Source or Thevenin's Representaion (Series Voltage Source & Resistor) Vs=Is*Zs; //Volts //Displaying The Results in Command Window printf("\n\n\t The Open Circuit Voltage is %f Volts.",Vs); printf("\n\n\t The Source Impedence Value is %f Ohms.",Zs); printf("\n\n\t The Voltage Source & Source Impedance are connected in Series.");
25918b58e81830c06749669f482090d23d4e96a1
449d555969bfd7befe906877abab098c6e63a0e8
/43/CH4/EX4.4/ex4_4.sce
5b5029869e25079dd34f6dc8255651ca68b880b9
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
62
sce
ex4_4.sce
clc; a=0.5; for n=1:10 x(n)=a^(n-1); end X=fft(x,-1);
cf25b1e093535c81891ded9ebb2b31b14e15fd7f
449d555969bfd7befe906877abab098c6e63a0e8
/1733/CH5/EX5.1/5_1.sce
c3ad289c66badf4de36ed07c8d826bf9811c921e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
588
sce
5_1.sce
//5.1 clc; Vin=150;R=8; duty_cycle=36/(36+64); VL=Vin*duty_cycle^0.5; printf("RMS output voltage=%.0f V", VL) Po=VL^2/R; printf("\nPower output =%.1f W", Po) // since losses are neglected Pi=Po; printf("\nPower Input =%.1f W", Pi) Irms_load=VL/R; Irms_input=11.25; VA_input=Irms_input*Vin; pf_input=Po/VA_input; printf(" \nInput Power factor =%.1f lagging", pf_input) Ip_thy=2^0.5*Vin/R; Iavg_thy=duty_cycle*Ip_thy/%pi; printf("\nAverage thyristor Current =%.3f A", Iavg_thy) Irms_thy=Ip_thy*duty_cycle^0.5/2; printf("\nRMS thyristor Current =%.3f A", Irms_thy)
22f696dc16cf63076c0b66b9c204e2d09d4e082b
449d555969bfd7befe906877abab098c6e63a0e8
/3782/CH10/EX10.5/Ex10_5.sce
801d43c142f39945bc34482dd0c0d01f44f0a37d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Ex10_5.sce
// // r=400 t1=15,t2=30,t3=60, ct=900 l=320 BT2=r*(tan((t1)*%pi/180)) CT2=l-BT2 r1=(CT2)/(tan((t2)*%pi/180)) printf("\n R1= %0.3f ",r1) t1t2=(%pi*r*t2)/(180) t2t3=(%pi*r1*t3)/(180) printf("\n length of arc T1T2= %0.3f ",t1t2) printf("\n length of arc T2T3= %0.3f ",t2t3) ct1=ct-BT2 ct3=ct1+t1t2+t2t3 printf("\n chainage of T1= %0.3f ",ct1) printf("\n chainage of T3= %0.3f ",ct3)
632ba8f07e0b354b26e52f39a8096d3404f8dbef
449d555969bfd7befe906877abab098c6e63a0e8
/1862/CH14/EX14.3/C14P3.sce
6881769fdaed049f2c9381b7795508c49778319a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
748
sce
C14P3.sce
clear clc //to find free fall acceleration of neutron ster and asteroid ceres // GIVEN: //mass of neutron star Mn = 1.99e30//in Kg //radius of neutron star Rn = 12e3//in m //mass of asteroid ceres Mc = 1.2e21//in Kg //radius of asteroid ceres Rc = 4.7e5//in m //Gravitational constant G = 6.67e-11//in N.m^2/Kg^2 // SOLUTION: //applying newton's law of universal gravitation and newton's second law of motion //free fall acceleration of neutron sterid g0 = G*(Mn/(Rn^2))//in m/s^2 //free fall acceleration of austeroid ceres go = G*(Mc/(Rc^2))//in m/s^2 printf ("\n\n Free fall acceleration of neutron sterid g0 = \n\n %.1e m/s^2",g0) printf ("\n\n Free fall acceleration of austeroid ceres go = \n\n %.2f m/s^2",go)
29c103927b215e017734c520a55cebdde0d90332
f6134e0a162a059c42ec3ef8de2a63941d73936c
/Scilab_code/Graph_search/add_stance_to_graph.sci
ae62a38b7d7f294c9fd715b4ffacdfa7de81169a
[]
no_license
mxch18/SRL-WRT_pathPlanning
38a1701934a4a0e919a6c1c7990092b242df72da
6992febbbe103814d2cef5351a0e8917b183a2b0
refs/heads/master
2020-03-23T06:43:54.155192
2018-09-26T17:26:56
2018-09-26T17:26:56
141,226,032
0
0
null
null
null
null
UTF-8
Scilab
false
false
7,657
sci
add_stance_to_graph.sci
function [bool_add,bool_fin,stance_graph_out] = add_stance_to_graph(STNC,parent_node_nb,stance_graph,params) //Author : Maxens ACHIEPI //Space Robotics Laboratory - Tohoku University //Description: // //INPUT //STNC : an array of foothold struct //stance_graph: a struct containing: // *metanet_graph: a graph defining the relation between the stances // *stance_list: a list of the 4-stance currently in the graph + their cost // *edge_list: a list of the 3-stance currently in the graph + their cost // *stance_hash: the hash list containing the binned centroids to try to // make sure you don't add the same stance 2 times // *cost_list : a priority queue, updated every time we add new stances //OUTPUT // //TODO //add roadmap //----------------------------------------------------------------------------// bool_fin = %F if isequal(find_centroid(params.goal_stance),find_centroid(STNC)) then bool_fin = %T; mprintf("Goal stance reached! Hallelujah!\n"); end stance_graph_out = struct('metanet_graph',stance_graph.metanet_graph,'stance_list',stance_graph.stance_list,'edge_list',stance_graph.edge_list,.. 'cost_list',stance_graph.cost_list,'stance_hash',stance_graph.stance_hash); bool_add = %F; // Check if stance already exists cntr = find_centroid(STNC); //centroid of the current stance. Row vector hash_bin = hash_XOR(cntr,length(stance_graph_out.stance_hash),params.cell_size,params.origin); bool_hash_ok = %T; //does the bucket already exists - because of list implementation try stance_graph_out.stance_hash(hash_bin) catch bool_hash_ok = %F end if bool_hash_ok then for i_cntr=1:size(stance_graph_out.stance_hash(hash_bin),1) if isequal(cntr,stance_graph_out.stance_hash(hash_bin)(i_cntr,1:3)) then mprintf("Centroid already exists, not adding stance\n"); return; //we don't add stances that already exist... end end stance_graph_out.stance_hash(hash_bin)=[stance_graph_out.stance_hash(hash_bin);cntr, -1]; else stance_graph_out.stance_hash(hash_bin) = [cntr, -1]; //add centroid to hash_table end mprintf("Adding stance\n"); node_nb = node_number(stance_graph_out.metanet_graph); stance_graph_out.metanet_graph = add_node(stance_graph_out.metanet_graph,[0;0]); //add to graph stance_graph_out.metanet_graph = add_edge(parent_node_nb,node_nb+1,stance_graph_out.metanet_graph); stance_gcost = stance_graph_out.stance_list(parent_node_nb).gcost+1;//number of steps stance_hcost = geometric_cost(STNC,params.goal_stance);//cost associated with other factors stance_roadmap_graph = make_graph('roadmap',1,1,[1],[1]); stance_roadmap_graph = delete_edges([1 1],stance_roadmap_graph); stance_roadmap_config_list = list(); stance_roadmap_edge_list = list(); stance_hash_LSH_dim = 7; //for 4-stance stance_hash_LSH_nb = params.stance_hash_LSH_nb; stance_hash_LSH_size = params.stance_hash_LSH_size; stance_hash_LSH_hashing_func = struct('array',zeros(stance_hash_LSH_nb,stance_hash_LSH_dim),'prime_factor',73856093); Mean_LSH = zeros(stance_hash_LSH_dim,1);Cov_LSH = eye(stance_hash_LSH_dim,stance_hash_LSH_dim); stance_hash_LSH_hash_tables = list(); for i_stance_hash_LSH = 1:stance_hash_LSH_nb vect_i = grand(1,"mn",Mean_LSH,Cov_LSH)'; vect_i = vect_i/norm(vect_i); stance_hash_LSH_hashing_func.array(i_stance_hash_LSH,:) = vect_i; stance_hash_LSH_hash_tables(i_stance_hash_LSH) = list(); for i_stance_hash_LSH_hash_tab=1:stance_hash_LSH_size stance_hash_LSH_hash_tables(i_stance_hash_LSH)(i_stance_hash_LSH_hash_tab) = []; end end stance_hash_LSH = struct('dimension',stance_hash_LSH_dim,'nb',stance_hash_LSH_nb,'size',stance_hash_LSH_size,.. 'hashing_functions',stance_hash_LSH_hashing_func,'hash_tables',stance_hash_LSH_hash_tables); stance_roadmap = struct('meta_graph',stance_roadmap_graph,'config_list',stance_roadmap_config_list,'edge_list',stance_roadmap_edge_list,'hash_LSH',stance_hash_LSH); stance_graph_out.stance_list($+1) = struct('stance',STNC,'roadmap',stance_roadmap,'gcost',stance_gcost,'hcost',stance_hcost); //add to end of stance_list mprintf("Stance added\n"); bool_add = %T; mprintf("Adding edge\n"); edge_nb = edge_number(stance_graph_out.metanet_graph); new_edge_stance = identify_transition(STNC,stance_graph_out.stance_list(parent_node_nb).stance); new_edge_stance_hcost = geometric_cost(new_edge_stance,params.goal_stance); // Check if transition already exists cntr_edge = find_centroid(new_edge_stance); //centroid of the transition. Row vector hash_bin_edge = hash_XOR(cntr_edge,length(stance_graph_out.stance_hash),params.cell_size,params.origin); bool_hash_edge_ok = %T; try stance_graph_out.stance_hash(hash_bin_edge) catch bool_hash_edge_ok = %F end if bool_hash_edge_ok then for i_cntr_edge=1:size(stance_graph_out.stance_hash(hash_bin_edge),1) if isequal(cntr_edge,stance_graph_out.stance_hash(hash_bin_edge)(i_cntr_edge,1:3)) then mprintf("Edge stance already exists, not adding stance to edge_list but linking it somehow lol\n"); exist_edge_nb = stance_graph_out.stance_hash(hash_bin_edge)(i_cntr_edge,4); stance_graph_out.edge_list($+1) = struct('link',exist_edge_nb,'stance',0,'roadmap',0,'cost',new_edge_stance_hcost); // stance_graph_out.stance_list(parent_node_nb).hcost = stance_graph_out.edge_list(exist_edge_nb).cost/2 + stance_graph_out.stance_list(parent_node_nb).hcost; stance_graph_out.stance_list(node_nb+1).hcost = stance_graph_out.edge_list(exist_edge_nb).cost/2 + stance_graph_out.stance_list(node_nb+1).hcost; stance_hcost = stance_graph_out.stance_list(node_nb+1).hcost; new_cost_elmt = struct('node_number',node_nb+1,'node_cost',stance_gcost+stance_hcost,'expanded',%F); stance_graph_out.cost_list = insert_in_queue(stance_graph_out.cost_list,new_cost_elmt); mprintf("Edge added\n"); return; end end stance_graph_out.stance_hash(hash_bin_edge) = [stance_graph_out.stance_hash(hash_bin_edge);cntr_edge, edge_nb]; else stance_graph_out.stance_hash(hash_bin_edge) = [cntr_edge, edge_nb]; //add centroid to hash_table end stance_graph_out.edge_list($+1) = struct('link',-1,'stance',new_edge_stance,'cost',new_edge_stance_hcost); // stance_graph_out.stance_list(parent_node_nb).hcost = new_edge_stance_hcost/2 + stance_graph_out.stance_list(parent_node_nb).hcost; stance_graph_out.stance_list(node_nb+1).hcost = new_edge_stance_hcost/2 + stance_graph_out.stance_list(node_nb+1).hcost; stance_hcost = stance_graph_out.stance_list(node_nb+1).hcost; new_cost_elmt = struct('node_number',node_nb+1,'node_cost',stance_gcost+stance_hcost,'expanded',%F); stance_graph_out.cost_list = insert_in_queue(stance_graph_out.cost_list,new_cost_elmt); mprintf("Edge added\n"); endfunction
35a7bf49178651057e8c661a8501fbd52dfecb8d
449d555969bfd7befe906877abab098c6e63a0e8
/2354/CH17/EX17.11/17_11.sce
f512655d4a5b4b399fd3e662dfcec840939773cc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
420
sce
17_11.sce
//example 17.11 clc; funcprot(0); // Initialization of Variable k=33.8e-3; L=0.71; A=1.02*0.71;//area Ts=505;//temperature Tsur=296//temperature Nu=147; h=Nu*k/L; q=h*A*(Ts-Tsur); disp(q,"heat transfer by convection in W"); qrad=A*5.67e-8*(Ts^4-Tsur^4); disp(qrad,"heat transfer by radiation in W"); hrad=5.67e-8*(Ts+Tsur)*(Ts^2+Tsur^2); disp(hrad,"linearized radiation coffecient in W/m^2-K"); clear()
07ca818ea118ac9e24be452574c3956eb961f223
449d555969bfd7befe906877abab098c6e63a0e8
/3769/CH13/EX13.17/Ex13_17.sce
bda77b716752ad5b3d73d20e0319d839ba9b0e32
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
314
sce
Ex13_17.sce
clear //Given C=50*10**-6 //F V=230 //V //Calculation // q=C*V*sqrt(2) E=0.5*C*(V*sqrt(2))**2 //Result printf("\n (i) Maximum charge on the capacitor is %0.2f *10**-3 C",q*10**3) printf("\n (ii) The maximum energy stored in the capacitor is %0.2f J",E)
b20c48351bfd5fad0e86a39a598425609276820e
940067908a620ecf3af07168e750cd30769047e4
/IntegraleTrapeze.sce
f3dabb9c45b680e512a22720eca0f78201efbc4b
[ "MIT" ]
permissive
davidfotsa/Numerical_Methods_With_Scilab
9bada60e6feba012fa7a52ce0e0ea85a40afd0d4
a3c731888b8a7a77f0d851210bc62e00e348ace9
refs/heads/main
2023-08-01T13:11:14.528993
2021-09-28T04:19:38
2021-09-28T04:19:38
407,939,339
0
0
null
null
null
null
UTF-8
Scilab
false
false
359
sce
IntegraleTrapeze.sce
//Integration par la méthode des trapèzes function y=f(x) y=exp(1+x.^2); endfunction; function I=IntTrap(f,a,b,h) I=(f(a)+f(b))/2; //h=(b-a)/n; x=a:h:b; n=length(x); if n>2 then I=I+sum(f(x(2:n-1))); end I=I*h; endfunction disp(IntTrap(f,1,2,1)); disp(IntTrap(f,1,2,.5)); disp(IntTrap(f,1,2,.25));
5228bdde8850dc04cee17a03e5ae9addbcb2dca3
449d555969bfd7befe906877abab098c6e63a0e8
/273/CH17/EX17.3/ex17_3.sce
f5ef28355a1bd679528848332d55f544d415e5f6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
290
sce
ex17_3.sce
clc;clear; //Example 17.3 //calculation of velocity of fraction of free electrons //given values E=5.5;//fermi level in eV kT=.026;//temperture equivalent at room temp in e //calculation f=2*kT/E; disp(f,'fraction of free electrone\s upto width kT on either side of Ef is');
e1cdad04cb2f5d201c99cc99d8b16a62f5b209b6
048b7c76423fe27dee2e31a52bae93c95883614e
/macros/periodogram.sci
33e15af7086d77955d0e82ded63afea87b226d6c
[]
no_license
vu2swz/FOSSEE-Signal-Processing-Toolbox
aa5f283d050be62418dddbf41552f197b9949c4c
d97a4b7e2f0f25fb5cd94bd90a3b822592179d1e
refs/heads/master
2021-08-19T20:06:19.346872
2017-11-27T09:57:21
2017-11-27T09:57:21
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
505
sci
periodogram.sci
function [d,n]=periodogram(a,b,c,d,e) funcprot(0); [nargout,nargin]=argn(); select nargin case 1 then [d,n]=callOctave('periodogram',a); case 2 then [d,n]=callOctave('periodogram',a,b); case 3 then [d,n]=callOctave('periodogram',a,b,c); case 4 then [d,n]=callOctave('periodogram',a,b,c,d); case 5 then [d,n]=callOctave('periodogram',a,b,c,d,e); else error("Incorrect no. of Input Arguments"); end endfunction
3fddb1f66a32b04f9f8b39f9d44195a6b29d3bdd
b29e9715ab76b6f89609c32edd36f81a0dcf6a39
/ketpic2escifiles6/Openobj.sci
e902ce5da90633e3062477c11d7010c76c5408d8
[]
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
659
sci
Openobj.sci
// s : 2014.06.22 // e : 14.09.07 function Out=Openobj(Fnm) global OBJFMT NPOINT NNORM OBJSCALE OBJFIGNO Wfile FID OBJJOIN OBJFMT= "%7.4f"; NPOINT= 0; NNORM=0; OBJSCALE=1; OBJFIGNO=0; OBJJOIN=0; // 140906 if Fnm =='' then Wfile='default'; else // errcatch(4,"continue"); //17.02.18from // Tmp=FID; // if iserror(4) then // FID=[]; // errclear(4); // end; // if FID~=[] then // mclose(FID); // FID=[]; // end // errcatch(4,"kill"); //17.02.18upto if length(mtlb_findstr(Fnm,".obj"))==0 Fnm=Fnm+".obj"; end; FID=mopen(Fnm,'w'); Wfile=Fnm; Out=Wfile; end endfunction
a4f1e21f6d0ad9b530d092b2734abc7181633911
449d555969bfd7befe906877abab098c6e63a0e8
/770/CH8/EX8.4/8_4.sce
d27918fb36a07e2a4701d875a6834f8412d19621
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
586
sce
8_4.sce
clear; clc; //Example - 8.4 //Page number - 292 printf("Example - 8.4 and Page number - 292\n\n"); //Given T_high = 20 + 273.15;//[K] - High temperature T_low = 0 + 273.15;//[K] - Low temperature Q_H = 10;//[kW] - Heat supplied //If 'Q_H' is the rate at which heat is taken from surrounding and 'W' is the rate at which work is done,then // Q_H = W + Q_L //(Q_H/Q_L) = (T_high/T_low) //Also for a reversible cycle, (Q_H/Q_L) = 1 + (W/Q_L). Solving we get, Q_L = (T_low/T_high)*Q_H;//[kW] W = (Q_H - Q_L) ;//[kW] printf("The minimum power required is %f kW",W);
b5f282330f2f0dabc4729fd5476c1ffc1cfe187d
449d555969bfd7befe906877abab098c6e63a0e8
/2132/CH4/EX4.9/Example4_9.sce
d625fef310a7e12a04ba0870f3f554acb6dbe19d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
380
sce
Example4_9.sce
//Example 4.9 clc; clear; close; format('v',9); //Given data : S1=1;//sp. gravity S2=13.6;//sp. gravity h1=120/1000;//m P_diff=h1*(S2-S1);//meter of water disp("Difference in pressure head is "+string(P_diff)+" meter of water"); w=1000;//kg/m^3 P_diff=P_diff*w*9.81;//Pa or Nm^2 disp(P_diff,"In terms of pressure intensity, the difference of pressure in N/m^2 : ");
9c75cb6de8fddfc45bd1295c3382aa6dc428f6f8
449d555969bfd7befe906877abab098c6e63a0e8
/1922/CH2/EX2.3/2_3.sce
b7687f8ac957ba5aff5d8535693892d6ccb3ddf1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
305
sce
2_3.sce
clc clear //Initialization of variables Pc=22.12*10^6 //Pa Tc=647.3 //K Vc=0.05697 //m^3/Kmol R=8.3143*10^3 Tr=0.7 //calculations Zc=Pc*Vc/(R*Tc) T=Tr*Tc Ps=10^6 //Pa w=-log10(Ps/Pc) -1 //results printf("critical compressibility factor = %.3f",Zc) printf("\n Accentric factor = %.4f",w)
440d0ab08480448e7fe84a4dc2a82d8ec8756364
da5b40d917ec2982828bd9bdf06b18b7bf189f26
/sim/scripts/proptable.tst
c974f193aaa7119aab33ee3425ffee8fa4e2b9b3
[]
no_license
psy007/NNPC-CHEMICAL-SIM-
4bddfc1012e0bc60c5ec6307149174bcd04398f9
8fb4c90180dc96be66f7ca05a30e59a8735fc072
refs/heads/master
2020-04-12T15:37:04.174834
2019-02-06T10:10:20
2019-02-06T10:10:20
162,587,144
1
0
null
null
null
null
UTF-8
Scilab
false
false
4,940
tst
proptable.tst
optimizecode 1 maxversions 0 units Field /LiquidPhases = 2 /StdLiqVolRefT = 288.15 /StdLiqVolRefT = 60 F /RecycleDetails = 1 displayproperties displayproperties VapFrac T P MoleFlow MassFlow VolumeFlow StdLiqVolumeFlow StdGasVolumeFlow Energy H S MolecularWeight MassDensity Cp ThermalConductivity Viscosity molarV ZFactor commonproperties commonproperties + ZFactor P T MolecularWeight MassDensity StdLiqMolarVolVapFrac T P MoleFlow MassFlow VolumeFlow StdLiqVolumeFlow StdGasVolumeFlow Energy H S MolecularWeight MassDensity Cp ThermalConductivity Viscosity molarV ZFactor $VMGThermo = VirtualMaterials.Advanced_Peng-Robinson / -> $VMGThermo /SolidPhases = 0 $VMGThermo + METHANE $VMGThermo + ETHANE $VMGThermo + PROPANE $VMGThermo + n-BUTANE $VMGThermo + n-PENTANE $VMGThermo + n-HEXANE $VMGThermo + n-HEPTANE $VMGThermo + WATER $VMGThermo + CARBON_DIOXIDE /PT1 = Properties.PropertyTable() '/PT1.In.Fraction' = .1 .1 .2 .1 .1 .1 .1 .1 .1 /PT1.XProperty = PRESSURE /PT1.XMin = 10 /PT1.XMax = 20 /PT1.XPoints = 4 /PT1.YProperty = TEMPERATURE /PT1.YMin = 60 /PT1.YMax = 100 /PT1.YPoints = 3 /PT1.Phase = FEED #One property /PT1.ZProperty = CP valueOf /PT1.TableXYZCP.convertedArrayRep #More than one property /PT1.ZProperty = CP CV ENTHALPY ENTROPY ZFACTOR valueOf /PT1.TableXYZCP.convertedArrayRep valueOf /PT1.TableXYZCV.convertedArrayRep valueOf /PT1.TableXYZENTHALPY.convertedArrayRep valueOf /PT1.TableXYZENTROPY.convertedArrayRep valueOf /PT1.TableXYZZFACTOR.convertedArrayRep #Change phases /PT1.Phase = LIQUID valueOf /PT1.TableXYZCP.convertedArrayRep valueOf /PT1.TableXYZCV.convertedArrayRep valueOf /PT1.TableXYZENTHALPY.convertedArrayRep valueOf /PT1.TableXYZENTROPY.convertedArrayRep valueOf /PT1.TableXYZZFACTOR.convertedArrayRep /PT1.Phase = VAPOR valueOf /PT1.TableXYZCP.convertedArrayRep valueOf /PT1.TableXYZCV.convertedArrayRep valueOf /PT1.TableXYZENTHALPY.convertedArrayRep valueOf /PT1.TableXYZENTROPY.convertedArrayRep valueOf /PT1.TableXYZZFACTOR.convertedArrayRep /PT1.Phase = LIQUID2 valueOf /PT1.TableXYZCP.convertedArrayRep valueOf /PT1.TableXYZCV.convertedArrayRep valueOf /PT1.TableXYZENTHALPY.convertedArrayRep valueOf /PT1.TableXYZENTROPY.convertedArrayRep valueOf /PT1.TableXYZZFACTOR.convertedArrayRep /PT1.Phase = FEED valueOf /PT1.TableXYZCP.convertedArrayRep valueOf /PT1.TableXYZCV.convertedArrayRep valueOf /PT1.TableXYZENTHALPY.convertedArrayRep valueOf /PT1.TableXYZENTROPY.convertedArrayRep valueOf /PT1.TableXYZZFACTOR.convertedArrayRep #With VF at the end BULK /PT1.ZProperty = CP CV ENTHALPY ENTROPY ZFACTOR VF valueOf /PT1.TableXYZCP.convertedArrayRep valueOf /PT1.TableXYZCV.convertedArrayRep valueOf /PT1.TableXYZENTHALPY.convertedArrayRep valueOf /PT1.TableXYZENTROPY.convertedArrayRep valueOf /PT1.TableXYZZFACTOR.convertedArrayRep valueOf /PT1.TableXYZVF.convertedArrayRep #With VF in the middle BULK /PT1.ZProperty = CP CV ENTHALPY ENTROPY ZFACTOR VF VISCOSITY valueOf /PT1.TableXYZCP.convertedArrayRep valueOf /PT1.TableXYZCV.convertedArrayRep valueOf /PT1.TableXYZENTHALPY.convertedArrayRep valueOf /PT1.TableXYZENTROPY.convertedArrayRep valueOf /PT1.TableXYZZFACTOR.convertedArrayRep valueOf /PT1.TableXYZVF.convertedArrayRep valueOf /PT1.TableXYZVISCOSITY.convertedArrayRep #With VF at the beginning BULK /PT1.ZProperty = VF VISCOSITY valueOf /PT1.TableXYZVF.convertedArrayRep valueOf /PT1.TableXYZVISCOSITY.convertedArrayRep #Now only VF in all phases /PT1.ZProperty = VF /PT1.Phase = VAPOR valueOf /PT1.TableXYZVF.convertedArrayRep /PT1.Phase = LIQUID valueOf /PT1.TableXYZVF.convertedArrayRep /PT1.Phase = LIQUID2 valueOf /PT1.TableXYZVF.convertedArrayRep /PT1.Phase = VAPOR valueOf /PT1.TableXYZVF.convertedArrayRep #With VF at the beginning all phases /PT1.ZProperty = VF VISCOSITY valueOf /PT1.TableXYZVF.convertedArrayRep valueOf /PT1.TableXYZVISCOSITY.convertedArrayRep /PT1.Phase = LIQUID valueOf /PT1.TableXYZVF.convertedArrayRep valueOf /PT1.TableXYZVISCOSITY.convertedArrayRep /PT1.Phase = LIQUID2 valueOf /PT1.TableXYZVF.convertedArrayRep valueOf /PT1.TableXYZVISCOSITY.convertedArrayRep #With VF in the middle all phases /PT1.ZProperty = ENTHALPY VF VISCOSITY valueOf /PT1.TableXYZVF.convertedArrayRep valueOf /PT1.TableXYZVISCOSITY.convertedArrayRep /PT1.Phase = LIQUID valueOf /PT1.TableXYZVF.convertedArrayRep valueOf /PT1.TableXYZVISCOSITY.convertedArrayRep /PT1.Phase = LIQUID2 valueOf /PT1.TableXYZVF.convertedArrayRep valueOf /PT1.TableXYZVISCOSITY.convertedArrayRep #With VF at the end all phases /PT1.ZProperty = VISCOSITY VF valueOf /PT1.TableXYZVF.convertedArrayRep valueOf /PT1.TableXYZVISCOSITY.convertedArrayRep /PT1.Phase = LIQUID valueOf /PT1.TableXYZVF.convertedArrayRep valueOf /PT1.TableXYZVISCOSITY.convertedArrayRep /PT1.Phase = LIQUID2 valueOf /PT1.TableXYZVF.convertedArrayRep valueOf /PT1.TableXYZVISCOSITY.convertedArrayRep copy /PT1 paste / valueOf /PT1Clone.TableXYZVISCOSITY.convertedArrayRep
3c403897982471d3c0a540284f9bd84a7248c70e
449d555969bfd7befe906877abab098c6e63a0e8
/3750/CH2/EX2.2/EX2_2.sce
2c93ceb04f5fbaa11026c0000f0246f9260b48d5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,807
sce
EX2_2.sce
//Strength Of Material By G.H.Ryder //Chapter 2 //Example 2 //To Find the dimensions so that the strength shall be same against all type of failure clc(); //Initialization of Variables d=5; //diameter of rod , Unit in cm f=1.25; //thickness of cotter , Unit in cm StressTension=300; //Permissible stress in tension, Unit in cm StressShearMember=150; //Permisible shear stress in members, Unit in N/mm^2 StressShearCotter=225; //Permissible shear cotter in members, Unit in N/mm^2 StressCrushing=450; //Permissible Crushing stress in members, Unit in N/mm^2 //Calculations //(1) Load (P) P=StressTension*(%pi)*(d*10)^2/4; //load, Unit in N //(2) Shear fo cotton:StressShearCotter=P/(2*e*f*10) e=P/(2*f*10*StressShearCotter); // Cotter , Unit in mm, The answer vary due to round off error //(3)Shear of right-handed member //ShearStressMember=P/(4*a*b) aMultiplyb=P/(4*StressShearMember); // Unit in mm^2 //(4)Shear of left-handed member //ShearStressMember=P/(2*c*h) cMultiplyh=P/(2*StressShearMember) //Unit in mm^2 //(5) Crusing between right hand member and cotter //StressCrushing=P/(2*a*f*10) a=P/(2*f*10*StressCrushing); //Unit in mm, The answer vary due to round off error b=aMultiplyb/a; //from (3), Unit in mm, The answer vary due to round off error //(6)Crushing between left hand member and cotter //StressCrusing=P/(f*10*h) h=P/(f*10*StressCrushing); //Unit in mm, The answer vary due to round off error c=cMultiplyh/h; //from (4), Unit in mm, The answer vary due to round off error //Results printf("Given: d=%.0fmm, f=%.2fmm\n",d,f) printf("The other dimension required are:\n\t") printf(" a=%.1f mm\n\t b=%.1f mm \n\t c=%.1f mm \n\t h=%.1f mm \n\t e=%.0f mm \n\t",a,b,c,h,e) //The answer vary due to round off error
92fde7c4fc305e65167599b67824b80d4220982b
1db0a7f58e484c067efa384b541cecee64d190ab
/macros/cheb2ord.sci
815ba0de3c900a016e2853094bf38875a78f1e5c
[]
no_license
sonusharma55/Signal-Toolbox
3eff678d177633ee8aadca7fb9782b8bd7c2f1ce
89bfeffefc89137fe3c266d3a3e746a749bbc1e9
refs/heads/master
2020-03-22T21:37:22.593805
2018-07-12T12:35:54
2018-07-12T12:35:54
140,701,211
2
0
null
null
null
null
UTF-8
Scilab
false
false
1,668
sci
cheb2ord.sci
function [n, Wc] = cheb2ord(Wp, Ws, Rp, Rs) //This function computes the minimum filter order of a Chebyshev type II filter with the desired response characteristics. //Calling Sequence //n = cheb2ord(Wp, Ws, Rp, Rs) //[n, Wc] = cheb2ord(Wp, Ws, Rp, Rs) //Parameters //Wp: scalar or vector of length 2, all elements must be in the range [0,1] //Ws: scalar or vector of length 2, all elements must be in the range [0,1] //Rp: real value //Rs: real value //Description //This is an Octave function. //This function computes the minimum filter order of a Chebyshev type II filter with the desired response characteristics. //Stopband frequency ws and passband frequency wp specify the the filter frequency band edges. //Frequencies are normalized to the Nyquist frequency in the range [0,1]. //Rp is measured in decibels and is the allowable passband ripple and Rs is also measured in decibels and is the minimum attenuation in the stop band. //If ws>wp then the filter is a low pass filter. If wp>ws, then the filter is a high pass filter. //If wp and ws are vectors of length 2, then the passband interval is defined by wp and the stopband interval is defined by ws. //If wp is contained within the lower and upper limits of ws, the filter is a band-pass filter. If ws is contained within the lower and upper limits of wp, the filter is a band-stop or band-reject filter. //Examples //cheb2ord([0.25,0.3],[0.2,0.8],0.3,0.4) //ans = 1 rhs = argn(2) lhs = argn(1) if(rhs~=4) error("Wrong number of input arguments.") end select(lhs) case 1 then n = callOctave("cheb2ord",Wp,Ws,Rp,Rs) case 2 then [n,Wc] = callOctave("cheb2ord",Wp,Ws,Rp,Rs) end endfunction
5fe293e9d2cad773354e1cfd19300d233ac7cb86
449d555969bfd7befe906877abab098c6e63a0e8
/3825/CH6/EX6.21/Ex6_21.sce
aca6d3c54019a610e2326fd3a5aa9b3a298fc8f5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
739
sce
Ex6_21.sce
clc m1=5 m2=6 m3=8 //values from appendix are used below given in book deltaa=m1*19.8+m2*32.24-(-3.626)-m3*28.11 mprintf("deta a=%E\n",deltaa)//ans in the textbook is wrong deltab=(m1*7.334+m2*0.1924-48.73-m3*(-3.68*10^-4))*10^-2 mprintf("deltab=%E\n",deltab)//ans vary due to roundoff error deltac=((m1*-5.602)+m2*1.055-(-25.8)-m3*1.746)*10^-5 mprintf("deltac=%E\n",deltac)//ans vary due to roundoff error deltad=(m1*1.715+(m2*-0.3596)-5.305-(m3*-1.065))*10^-8 mprintf("deltad=%E\n",deltad)//ans vary due to roundoff error T=298 deltaH298=-3274.5*10^3 deltaH0=deltaH298-(deltaa*T)+((deltab/2)*(T*T))-((deltac/3)*(T*T*T))-((deltad/4)*(T*T*T*T)) mprintf("deltaH0=%EkJ\n",deltaH0/1000)//ans in the textbook is wrong