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
35e208831a8f196cc8113b22ff2b1d0e7bef53fd
449d555969bfd7befe906877abab098c6e63a0e8
/1016/CH3/EX3.3/ex3_3.sce
8de84d2e28733db0d25c99678ad1bbf5fe8e71a5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
215
sce
ex3_3.sce
clc;clear; //Example 3.3 //given values B=2.179*10^-16;//a constant in J h=6.625*10^-34;//plank's constant in J-s //calculation E3=-B/3^2; E2=-B/2^2; f=(E3-E2)/h; disp(f,'frequency(in Hz) of radiation')
5382667797bf55411470ae167183641753a66193
449d555969bfd7befe906877abab098c6e63a0e8
/1754/CH5/EX5.10/Exa5_10.sce
df7a99f333355eb0cdf222a11278ade0bfec4efd
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
271
sce
Exa5_10.sce
//Exa 5.10 clc; clear; close; //Given data : format('v',5); A=1000;//gain(unitless) Beta=1/20;//feedback ratio (unitless) //Formula : Af=A/(1+A*Beta) Af=A/(1+A*Beta);//gain with feedback(unitless) Af=20*log10(Af);//in dB disp(Af,"Gain with feedback in dB : ");
500ac5d74917fe2ad217b8f2a18ecefbde1d93a6
449d555969bfd7befe906877abab098c6e63a0e8
/1100/CH8/EX8.4/8_4.sce
6e79ee8b50499f2301fb8e084dd4f1c221b017e4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
346
sce
8_4.sce
clc //initialisation of variables m= 1 //lb cp= 0.240 //btu/lb F T2= 150 //F T1= 50 //F //CALCULATIONS S= m*cp*(log(460+T2)-log(460+T1)) //RESULTS printf ('Entropy change = %.4f Btu/Fabs',S) //This result is same as the above since change in entropy does not depend on the process involved // but only on the initial and final states
8121f6c025ce1678fec0d00f958e9fc9536d95e6
449d555969bfd7befe906877abab098c6e63a0e8
/2297/CH2/EX2.5/Ex2_5.sce
f87c876a50d59281392b5b566eb3313254fbab09
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
680
sce
Ex2_5.sce
// Example 2.5 :Thevenin's and Norton's Equivalent clc; close; format('v',7) clear; // given : vs1=10;//voltage in volts R1=50;//resistance in ohms R2=50;//resistance in ohms R3=25;//resistance in ohms disp("(a) Applying Thevenins Theorem ") voc=(R1/(R1+R2))*vs1;//voltage in volts req=((R1*R2)/(R1+R2))+R3;//resistance in ohms disp(voc,"Thevenin equivalent open circuit voltage is, (V)=") disp(t=req,"Thevenin equivalent resistance is,(Ohm)=") disp("(b) Applying Nortons Theorem ") Isc=((vs1)/(R1+(R1*R3)/(R1+R3)))*(R1/(R1+R3));// req=((R1*R2)/(R1+R2))+R3;//resistance in ohms disp(Isc,"Norton short circuit current is,(A)=") disp(t=req,"Norton equivalent resistance is,(Ohm)=")
0c36fe8b3dfa9f91b33636b69692a8f540c406c6
cc2d34f24c651a9d4b81fc3ebd32ef5a23c5ef13
/SCILAB5/SCILAB3/exaplot2.sci
04a3262bad0dd6e5d5e2a16a07c302af18d9eb4b
[]
no_license
b4ss3k/D_DSP
85cfacf4e948109faa33cbc424390b44f53cc197
aabcc12fe0305e29713de6c0538428dd9ef323d3
refs/heads/master
2020-04-06T04:46:40.053395
2015-08-05T01:24:16
2015-08-05T01:24:16
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
115
sci
exaplot2.sci
plot2d1('enl',1,(1:10:10000)'); xtitle('plot2d1 log scale','t','y log scale'); // 3 = green 4 =blue xgrid(3);
9b87d244595f39826c5cbfae3344a62438ea95de
85fe3541d4988b676b5ab7c8ed719a26fe38e3c8
/Examples/dependent2.sce
e6884e090012b10962e761dd4c56abf816821739
[ "Unlicense" ]
permissive
UnknowableCoder/SimCampEl
c115105b2b5837b3a1eb012d1acb89015eade17f
9bd83c6316e16a161d19393ad79a4e3bdcb30679
refs/heads/main
2023-03-13T23:07:25.000479
2021-03-12T13:38:35
2021-03-12T13:38:35
347,071,759
1
0
null
null
null
null
UTF-8
Scilab
false
false
114
sce
dependent2.sce
1 0 0 0 0 0 1 0 0 0 1 1 1 The Lone Charger -100 -100 -10 100 100 100 sin(z) 0 0 0 0 0 299792448 5 0
f28eeacbb1ca7f7aa0b882d77877047efd4ce15d
449d555969bfd7befe906877abab098c6e63a0e8
/1163/CH21/EX21.7/example_21_7.sce
2bec7fa7d25bc74b1e052e5c6a7ffccc882984e0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,485
sce
example_21_7.sce
clear; clc; disp("--------------Example 21.7----------------") // multicast IP address 230.43.14.7 multicast_IP_address=dec2bin(230,5)+dec2bin(43,7)+dec2bin(14,7)+dec2bin(7,7); s=strsplit(multicast_IP_address,length(multicast_IP_address)-23); b=strsplit(s(2),[9 16]); starting_Ethernet_addr = "01:00:5E"; // 01:00:5E:00:00:00 Ethernet_multicast_addr=starting_Ethernet_addr; function[Ethernet_multicast_addr] = ethernet_address(b) // function to form Ethernet multicast physical address for i=1:3 d=bin2dec(b(i)); h(i)=dec2hex(d); // rightmost 23 bits of the IP address in hexadecimal end hs=strsplit(h(1)); if(hex2dec(hs(1)) > = 8) //subtract 8 from the leftmost digit if it is greater than or equal to 8 hs(1)=dec2hex(hex2dec(hs(1))-8); end h(1)=hs(2)+hs(3); for i=1:6 // add these hexadecimal digits to the starting Ethernet multicast address, which is 01:00:5E:00:00:00 if(modulo(i,2) == 0) if(length(h(i/2))==2) Ethernet_multicast_addr=Ethernet_multicast_addr+h(i/2); else Ethernet_multicast_addr=Ethernet_multicast_addr+'0'+h(i/2); end else Ethernet_multicast_addr=Ethernet_multicast_addr+":"; end end endfunction Ethernet_multicast_addr=ethernet_address(b); printf("The Ethernet multicast physical address is %s.",Ethernet_multicast_addr); // display result
524319e8e26f510323429d55eb3578d5f923fc39
c6bf685755436b2a7bf289ac90bec98340fe97fe
/APLICACAO_CIRCUITOS_ELETRICOS.sce
06c3c16767a864cdf50105cec39332019b52f274
[]
no_license
ivybin/PROGRAMAS-SCE
82296ac10f4fb02d6e283f64e910666c6103063a
e61918ceae020bd33fcf223908f7decdec1c41b4
refs/heads/master
2023-07-23T12:55:08.711868
2021-09-02T17:22:23
2021-09-02T17:22:23
400,595,765
0
0
null
null
null
null
UTF-8
Scilab
false
false
262
sce
APLICACAO_CIRCUITOS_ELETRICOS.sce
clear; clc; RS=[10 12 14 30 40]; REQS=0;REQp1=0; for i=1:1:5 REQS=REQS+RS(1,i); REQp1=REQp1+(1/RS(1,i)); end REQp=1/REQp1; disp("A RESISTENCIA EQUIVALENTE EM SERIE DADA EM OHMS:",REQS); disp("A RESISTENCIA EQUIVALENTE EM PARALELO DADA EM OHMS:",REQp);
decafc4b61296f331c8fb06bf5ab51bb2dac1d58
449d555969bfd7befe906877abab098c6e63a0e8
/3535/CH1/EX1.4/Ex1_4.sce
7ca5889cce1e2bcefba4b179402b6974007c6e1d
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
372
sce
Ex1_4.sce
//Chapter 1, Example 1.4, Page 23 clc clear //Density of Hydrogen atom in water p = 1 // density of water in g cm^-3 Na = 6.022*10^23 // molucules/mol A = 18 // atomic weight of water in g/mol N = (p*Na)/A NH = 2*N printf("The density of water = %e molecules/cm3",N); printf("\n The density of hydrogen atoms = %e atoms/cm3",NH); //Answers may vary due to round off error
17273ac60cdc99f0f0d4fc3ea4b982d9f8ac769a
449d555969bfd7befe906877abab098c6e63a0e8
/611/CH5/EX5.9/Chap5_Ex9_R1.sce
19f8cce7348b1a3cea30dc65be2542520b097cda
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
970
sce
Chap5_Ex9_R1.sce
// Y.V.C.Rao ,1997.Chemical Engineering Thermodynamics.Universities Press,Hyderabad,India. //Chapter-5,Example 9,Page 173 //Title: Change in entropy of water //================================================================================================================ clear clc //INPUT m=1;//amount of saturated liquid water in kg T_initial=100;//initial temperature of water in degree celsius T_body=500;//temperature of body which is brought into contact with the cylinder in degree celsius hfg=2256.94;//enthalpy of vaporization taken from steam tables corresponding to T1 in kJ/kg //CALCULATION T=T_initial+273.15;//conversion of temperature in K del_S=hfg/T;//calculation of the entropy change during the process using Eq.(5.34) in kJ/kgK //OUTPUT mprintf("\n The change in entropy of water=%0.4f kJ/kgK\n",del_S); //===============================================END OF PROGRAM===================================================
5bf6ed445e40ab1a0b392d8767817fa9237a6901
dc628e7d8425aa0bb1460d2583f04c9969b4ec9c
/dlog-server/examples/shi/shi_pelda.tst
48c1281ae3c3eecccadafc105c95e6a0ea00df18
[]
no_license
logicmoo/DLog
bc2c43523ccbc3747c381f2eb0e25960cfc8d6e1
855774c38c1eea119405fde0057cfdb1032006f0
refs/heads/master
2021-05-28T14:03:35.596790
2015-01-12T22:49:56
2015-01-12T22:49:56
27,461,790
1
1
null
null
null
null
UTF-8
Scilab
false
false
563
tst
shi_pelda.tst
%Generated from '../examples/shi/shi_pelda.dig'. query(instances(aconcept('Gazdag')), [d, e, c]). query(instances(aconcept('Boldog')), [d, e, a]). implies(some(inv(arole(utodja)), aconcept('Gazdag')), aconcept('Gazdag')). implies(some(arole(gyereke), aconcept('Gazdag')), aconcept('Boldog')). subrole(arole(gyereke), arole(utodja)). transitive(arole(utodja)). cassertion(aconcept('Gazdag'), d). rassertion(arole(gyereke), e, c). rassertion(arole(gyereke), d, e). rassertion(arole(gyereke), a, c). rassertion(arole(gyereke), a, b).
00ff0ded4a0cd7fda037334a8c880445b2f65207
449d555969bfd7befe906877abab098c6e63a0e8
/3428/CH9/EX4.9.12/Ex4_9_12.sce
fbb7f59051bfe8e5a21745aa0b21738846599f01
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
475
sce
Ex4_9_12.sce
//Section-4,Example-1,Page no.-I.78 //To calculate the number of protons in a sample exposed to the given magnetic field. clc; T=20+273 k=1.38*10^-23 //dl_E=g1*muN*B_0 B_01=1 dl_E1=2.821*10^-26*B_01 //N=N_a/N_b(ratio of protons having a&b spins respectively) N_1=((k*T)/((k*T)-(dl_E1))) disp(N_1,'Ratio for 1.0 Tesla magnetic field') B_02=10 dl_E2=2.821*10^-26*B_02 N_2=((k*T)/((k*T)-(dl_E2))) disp(N_2,'Ratio for 10.0 Tesla magnetic field') //Marked as Ex 1 in page I.78
6bcb657c35c28baf7dfe3c32d2af6dde9c606d7b
71688ca1121015a31165525a6c1d9db9daa2cd56
/READSCAL.TST
85b4a838d08d77e32ffafdc7d90e59a79a94aebe
[]
no_license
pingleware/apac-accounting-code
d340edf13b1b4dd327218a25ad535e2ac3875474
bee104c735e49b4c20fa86c299a993859e6ba884
refs/heads/master
2022-08-02T01:48:59.722370
2020-05-20T12:28:26
2020-05-20T12:28:26
265,557,663
0
0
null
null
null
null
WINDOWS-1252
Scilab
false
false
37,252
tst
READSCAL.TST
****************************************************************** * * * ****** ****** ***** ***** ***** ** ******* * * ** ** ** ** ** ** ** ** ** ** ** ** * * ** ** ** ** ** ** ** ** ** ** * * ***** ** ** ***** ** ******* ** ***** * * ** ** ** ** ** ** ** ** ** ** * * ** ** ** ** ** ** ** ** ** ** ** ** * * ** ** ****** ***** ***** ** ** ******* ******* * * * * ENGLISH * * * * R E A D I N P U T F R O M S C A L E P R O G R A M * * * * VERSION 6.65 - April 1996 * * * ****************************************************************** 000010 IDENTIFICATION DIVISION. 000020 PROGRAM-ID. RDSCALE. 000030 AUTHOR. J W LEMMON (APAC). 000040 DATE-WRITTEN. OCTOBER 1996. 000050 ENVIRONMENT DIVISION. 000060 CONFIGURATION SECTION. 000070 SPECIAL-NAMES. 000080 CONSOLE IS CRT. 000090 INPUT-OUTPUT SECTION. 000100 FILE-CONTROL. 000170 SELECT SCALES ASSIGN W02-SCALES 000300 ORGANIZATION LINE SEQUENTIAL 000180 STATUS WS-STATUS 000310 ACCESS SEQUENTIAL. SELECT SCALES-DISK ASSIGN DISK 000300 ORGANIZATION LINE SEQUENTIAL 000180 STATUS WS-STATUS 000310 ACCESS SEQUENTIAL. / 000260 DATA DIVISION. 000270 FILE SECTION. 000530 FD SCALES LABEL RECORD OMITTED. 000550 01 SCA-REC. 03 SCA-LINE. 05 SCA-DATA-1-40 PIC X(40). 05 SCA-DATA-41-256 PIC X(216). 01 SCA-REC2. 03 SCA-CHAR1 PIC X(01). 03 SCA-CHAR2-30 PIC X(29). 03 FILLER PIC X(226). 01 SCA-REC3. 03 SCA-KG PIC 9(02). * 03 SCA-DEC PIC X(01). 03 SCA-GRAM PIC 9(03). 03 FILLER PIC X(24). 03 FILLER PIC X(01). 03 FILLER PIC X(226). 01 SCA-REC4. 03 SCA-CHAR-1 PIC X(01). 03 SCA-CHAR-2 PIC X(01). 03 SCA-CHAR-3 PIC X(01). 03 SCA-CHAR-4 PIC X(01). 03 SCA-CHAR-5 PIC X(01). 03 FILLER PIC X(251). 000530 FD SCALES-DISK LABEL RECORD STANDARD 000020 VALUE OF FILE-ID "SCALDISK". 000550 01 SCD-REC. 03 SCD-LINE. 05 SCD-DATA-1-40 PIC X(40). 05 SCD-DATA-41-256 PIC X(216). / 000430 WORKING-STORAGE SECTION. 000440 77 WS-S1 PIC 9(04) COMP-5. 000440 77 WS-SUB PIC 9(06) COMP-5. 000560 77 WS-ERROR PIC 9(01) VALUE ZERO. 77 WS-OPTION PIC X(01). 77 TODAY-DDMMYY PIC 9(06) COMP-5. 77 WS-USUB PIC 9(04) COMP-5. 002420 01 WS-DB-LINE. 002430 03 WS-TOP-LNE. 002440 05 WS-TCHR PIC X(01) OCCURS 80. 03 WS-T-LINE REDEFINES WS-TOP-LNE. 05 FILLER PIC X(01). 05 WS-H-LINE PIC X(78). 05 FILLER PIC X(01). 002430 03 WS-TOP-LNE2. 002440 05 WS-TCH PIC X(01) OCCURS 80. 03 WS-TP-LINE2 REDEFINES WS-TOP-LNE2. 05 FILLER PIC X(01). 05 WS-TOP-COMP PIC X(40). 001430 05 FILLER PIC X(23). 05 WS-WRKHD PIC X(11). 001430 05 FILLER PIC X(01). 05 WS-WRKST PIC X(03). 001430 05 FILLER PIC X(01). 002450 03 WS-MID-LNE. 002460 05 WS-MCHR PIC X(01) OCCURS 80. 002450 03 WS-MID-LNE2. 05 FILLER PIC X(01) VALUE "³". 05 WS-BLNK78 PIC X(78) VALUE ALL "°". 05 FILLER PIC X(01) VALUE "³". 002470 03 WS-BOT-LNE. 002480 05 WS-BCHR PIC X(01) OCCURS 80. 03 WS-B-LINE REDEFINES WS-BOT-LNE. 05 FILLER PIC X(01). 05 WS-F-LINE PIC X(78). 05 FILLER PIC X(01). 002470 03 WS-BOT-LNE2. 002480 05 WS-BCH PIC X(01) OCCURS 80. 000590*COPY WS.WS. 000010 01 WS-FILE-STATUS. 000020 03 WS-STATUS PIC X(02). 000030 88 RECORD-LOCKED VALUE "94" "9D". 000040 01 WS-RED-STAT REDEFINES WS-FILE-STATUS. 000050 03 WS-STAT1 PIC X(01). 000060 88 RUNTIME-ERROR VALUE "9". 000070 03 WS-STAT2 PIC 9(02) COMP-X. 000080 88 FLE-LIMIT VALUE 14. 000090 88 IDX-CORRUPT VALUE 41 43. 000100 88 FLE-LOCKED VALUE 65. 000110 88 REC-LOCKED VALUE 68. 000120 88 TOO-MANY-LOCKS VALUE 213. 01 WS-VAT-CHANGES. 03 WS-VAT-DATE PIC 9(06). 03 WS-VAT-SUB PIC X(01) COMP-X. 000130 01 WS-FILE-ERRORS. 000140 03 WS-ACTION PIC 9(01) VALUE ZERO. 000150 03 WS-F-ERROR PIC 9(02) COMP-5. 000160 03 WS-WAIT PIC S9(06) COMP-5. 000160 03 WS-COUNT PIC 9(02) COMP-5 VALUE 1. 000170 03 WS-LOCKED PIC 9(01) VALUE 0. 000180 03 WS-FILE. 05 WS-SHRT-FN PIC X(06). 05 FILLER PIC X(08). 000190 03 WS-KEY PIC Z(05)9 BLANK WHEN ZERO. 03 WS-ERR-MES. 05 FILLER PIC X(01). 05 WS-CONT. 000200 07 WS-STAT-MESSAGE PIC X(23). 07 WS-KEYX. 09 FILLER PIC X(23) VALUE SPACES. 09 WS-ERREND PIC X(01) VALUE SPACES. 03 WS-ERR-CHAR REDEFINES WS-ERR-MES PIC X(01) OCCURS 48. 03 WS-ERR-STRING PIC X(32). 000930 01 WS-CONSOLE PIC 9(02) COMP-X. 01 WS-LENGTH PIC 9(08) COMP-5 VALUE 1. 01 STATUS-CODE PIC S9(04) COMP. 000210 01 WS1-CURSOR. 000220 03 CPOS PIC 9(04) VALUE ZERO. 000230 03 WS1-CURS REDEFINES CPOS. 000240 05 CLIN PIC 9(02). 000250 05 CCOL PIC 9(02). 01 SAVE-POS. 03 SAVE-LIN PIC 9(02) COMP-X VALUE ZERO. 03 SAVE-COL PIC 9(02) COMP-X VALUE ZERO. 000260 01 CSTART. 000270 03 COL-AND-LINE PIC 9(04). 01 CRT-LINE. 03 STORE-LIN PIC 9(02). 03 STORE-COL PIC 9(02). 01 CRT-DETAIL. 03 TOP-ROW PIC 9(02) COMP-X. 03 BOTTOM-ROW PIC 9(02) COMP-X. 03 STRING-LENGTH PIC 9(04) COMP-X. 03 SCREEN-POSITION. 05 SCREEN-LIN PIC 9(02) COMP-X. 05 SCREEN-COL PIC 9(02) COMP-X. 01 SCREEN-POS. 03 SLIN PIC 9(02). 03 SCOL PIC 9(02). 01 CUR-CONT. 03 CUR-ROW PIC X(01) COMP-X. 03 CUR-COL PIC X(01) COMP-X. 01 BLOCK-DETAIL. 03 ORIGINAL-VID. 05 ORIGINAL-CHAR PIC X(01) OCCURS 80. 03 REVERSE-VID. 05 REVERSE-CHAR PIC X(01) OCCURS 80. 01 SHADOW-DETAIL. 03 SHADE-ROW PIC 9(02) COMP-X. 03 SHADE-COL PIC 9(02) COMP-X. 03 SHADE-LINES PIC 9(02) COMP-X. 03 SHADE-WIDTH PIC 9(02) COMP-X. 03 SHADE-CHAR PIC X(01) VALUE X"08". 01 KEY-STATUS. 03 KEY-TYPE PIC X(01). 88 NORM-END VALUE "0". 88 USER-FUNC VALUE "1". 88 ADIS-FUNC VALUE "2". 88 DATA-8BIT VALUE "3". 88 DATA-16BIT VALUE "4". 03 KEY-CODE-1 PIC 9(02) COMP-X. 03 KEY-CODE-1X REDEFINES KEY-CODE-1 PIC X(01). 03 KEY-CODE-2 PIC 9(02) COMP-X. * * S C R E E N C O L O U R S * * 0 = BLACK * 1 = BLUE * 2 = GREEN * 3 = CYAN * 4 = RED * 5 = MAGENTA * 6 = BROWN / YELLOW * 7 = WHITE * 01 CRT-COLOURS. 03 WS-BGRND PIC 9(01) VALUE 1. 03 WS-FGRND PIC 9(01) VALUE 3. 03 WS-BGRND-1 PIC 9(01) VALUE 3. 03 WS-FGRND-1 PIC 9(01) VALUE 1. 03 WS-BGRND-2 PIC 9(01) VALUE 1. 03 WS-FGRND-2 PIC 9(01) VALUE 7. 03 WS-BGRND-3 PIC 9(01) VALUE 7. 03 WS-FGRND-3 PIC 9(01) VALUE 6. 03 WS-BGRND-4 PIC 9(01) VALUE 3. 03 WS-FGRND-4 PIC 9(01) VALUE 4. 03 WS-BGRND-5 PIC 9(01) VALUE 6. 03 WS-FGRND-5 PIC 9(01) VALUE 2. 03 WS-BGRND-6 PIC 9(01) VALUE 7. 03 WS-FGRND-6 PIC 9(01) VALUE 4. 03 WS-BGRND-7 PIC 9(01) VALUE 0. 03 WS-FGRND-7 PIC 9(01) VALUE 1. 03 WS-BGRND-8 PIC 9(01) VALUE 3. 03 WS-FGRND-8 PIC 9(01) VALUE 4. 03 WS-BGRND-9 PIC 9(01) VALUE 2. 03 WS-FGRND-9 PIC 9(01) VALUE 5. 03 WS-CCHNG PIC 9(01) VALUE 0. 03 WS-TEMPFG PIC 9(01) VALUE 0. 03 WS-TEMPBG PIC 9(01) VALUE 7. 01 X91-CALL. 03 X91-RES PIC 9(02) COMP-X. * * INTERPROGRAM - USING CALL X"91" * * 11 = SET COBOL PROGRAM SWITCHES * 12 = READ COBOL PROGRAM SWITCHES * 13 = SET RUN-TIME SWITCHES * 14 = READ RUN-TIME SWITCHES * 15 = CHECK IF A PROGRAM EXISTS * 16 = GET NUMBER OF LINKAGE PARAMETERS * 35 = CALL PROGRAM UNDER DOS ("4B" CALL) * 46 = ENABLE INSERTION OF NULL CHARACTERS * 47 = DISABLE INSERTION OF NULL CHARACTERS * 48 = ENABLE TAB INSERTION * 49 = DISABLE TAB INSERTION * 03 X91-FUN PIC 9(02) COMP-X VALUE 47. 01 PORT-CALLS. 03 PORT-ADDRESS PIC 9(05). 03 PORT-DATA PIC X(01). 03 PORT-COM1 PIC 9(04) COMP VALUE 1016. 03 PORT-COM2 PIC 9(04) COMP VALUE 760. 03 PORT-COM3 PIC 9(04) COMP VALUE 1000. 03 PORT-COM4 PIC 9(04) COMP VALUE 744. 03 PORT-INPUT. 05 PORT-WEIGHT PIC X(05). 05 PORT-CHAR PIC X(01). 03 PORT-INPUT-RED REDEFINES PORT-INPUT. 05 FILLER PIC X(01). 05 PORT-WEIGHT-2-6 PIC X(05). 03 PORT-COUNT PIC 9(02) COMP. 01 FILE-DETAILS. 03 FILE-SIZE PIC X(08) COMP-X. 03 FILE-DATE. 05 FILE-DAY PIC X(01) COMP-X. 05 FILE-MONTH PIC X(01) COMP-X. 05 FILE-YEAR PIC X(02) COMP-X. 03 FILE-TIME. 05 FILE-HOURS PIC X(01) COMP-X. 05 FILE-MINUTES PIC X(01) COMP-X. 05 FILE-SECONDS PIC X(01) COMP-X. 05 FILE-HUND-SECS PIC X(01) COMP-X. 000210 01 WS-MOUSE. * * MOUSE - USING CALL X"AF". * * 64 = ACTIVATE/TERMINATE MOUSE * PARAM: 0 = Terminate, 1 = Activate. * 66 = ENABLE/DISABLE MOUSE * PARAM: 0 = Disable, 1 = Enable. * 67 = GET MOUSE DETAILS. * Returns X and Y positions * Sets status. * 000220 03 MOUSE-FUNC PIC 9(02) COMP-X. 000230 03 MOUSE-PARAM PIC 9(02) COMP-X. 000240 03 MOUSE-DETAILS. 000250 05 MOUSE-X PIC 9(04) COMP-X. 000250 05 MOUSE-Y PIC 9(04) COMP-X. 000250 05 MOUSE-STAT PIC 9(04) COMP-X. 03 MOUSE-ENTER PIC X(01). 01 WS-MOUSE2. * * MOUSE - USING CALL BY NAME * * The mouse status will be non zero if any call made to the * mouse functions is unsuccessfull. * * CBL_INIT_MOUSE USING MOUSE-HANDLE MOUSE-BUTTONS * RETURNING MOUSE-STATUS. * The mouse must be initialized before any other mouse functions * can be performed. The handle is returned in MOUSE-HANDLE while * the number of buttons on the mouse is returned in MOUSE-BUTTONS. * * CBL_GET_MOUSE_MASK USING MOUSE-HANDLE EVENT-MASK * RETURNING MOUSE-STATUS. * This call gets the event mask - * bit 1 to 3 = buttons 1 to 3 * bit 0 = mouse moved * * CBL_GET_MOUSE_POSITION USING MOUSE-HANDLE MOUSE-POS * RETURNING MOUSE-STATUS. * This call is used to get the row and column location of * the mouse. * * CBL_GET_MOUSE_STATUS USING MOUSE-HANDLE MOUSE-EVENT * RETURNING MOUSE-STATUS. * This function is used to find out the number of events in the * queue. * * CBL_HIDE_MOUSE USING MOUSE-HANDLE * RETURNING MOUSE-STATUS. * Makes the mouse pointer invisible. * * CBL_READ_MOUSE_EVENT USING MOUSE-HANDLE EVENT-DATA READ-TYPE * RETURNING MOUSE-STATUS. * Reads the mouse event queue and returns information about * an event. * READ-TYPE = 0. If no events, returns imediately with zero * values. * = 1. Return is delayed until an event has been * queued. * * CBL_SET_MOUSE_MASK USING MOUSE-HANDLE EVENT-MASK * RETURNING MOUSE-STATUS. * Set the mouse event mask. * * CBL_SET_MOUSE_POSITION USING MOUSE-HANDLE MOUSE-POS * RETURNING MOUSE-STATUS. * Move mouse pointer to position specified. * * CBL_SHOW_MOUSE USING MOUSE-HANDLE MOUSE-POS * RETURNING MOUSE-STATUS. * Make the mouse pointer visible. * * CBL_TERM_MOUSE USING MOUSE-HANDLE * RETURNING MOUSE-STATUS. * Terminate mouse support. * * PC_GET_MOUSE_SHAPE USING MOUSE-HANDLE * RESEVERD-ITEM * MOUSE-PTR-SHAPE * RETURNING MOUSE-STATUS. * Get the shape of the mouse pointer. (bit map) * * PC_SET_MOUSE_HIDE_AREA USING MOUSE-HANDLE * COLLISION-AREA * RETURNING MOUSE-STATUS. * Defines the area where the mouse is to be invisible. * * PC_SET_MOUSE_SHAPE USING MOUSE-HANDLE * RESEVERD-ITEM * MOUSE-PTR-SHAPE * RETURNING MOUSE-STATUS. * Set the shape of the mouse pointer. * 03 MOUSE-HANDLE PIC X(04) COMP-X. 03 MOUSE-EVENT PIC X(02) COMP-X. 03 MOUSE-POS. 05 MOUSE-ROW PIC X(02) COMP-X. 05 MOUSE-COL PIC X(02) COMP-X. 03 MOUSE-BUTTONS PIC X(02) COMP-X. 03 MOUSE-STATUS PIC S9(04) COMP. 03 COLLISION-AREA. 05 TOP-LIN PIC X(02) COMP-X. 05 LEFT-COL PIC X(02) COMP-X. 05 BOTTOM-LIN PIC X(02) COMP-X. 05 RIGHT-COL PIC X(02) COMP-X. 03 MOUSE-PTR-SHAPE. 05 CHAR-AND-MASK PIC X(01) COMP-X. 05 ATTR-AND-MASK PIC X(01) COMP-X. 05 CHAR-XOR-MASK PIC X(01) COMP-X. 05 ATTR-XOR-MASK PIC X(01) COMP-X. 03 EVENT-DATA. 05 EVENT-TYPE PIC X(02) COMP-X. 05 EVENT-TIME PIC X(02) COMP-X. 05 EVENT-ROW PIC X(02) COMP-X. 05 EVENT-COL PIC X(02) COMP-X. 03 RESERVED-ITEM PIC X(10). 03 READ-TYPE PIC X(01) COMP-X. 03 MOUSE-ATTACHED PIC X(01) VALUE "N". 88 MOUSE VALUE "Y". 88 NO-MOUSE VALUE "N". 01 SCREEN-GRAPHICS. * * DECIMAL CODES USING THE ALTERNATE KEY AND NUMERIC KEY PAD * ÉÍÍÍÍËÍÍÍÑÍÍÍÑÍÍÍÑÍÍÍÑÍÍÍÑÍÍÍÑÍÍÍÑÍÍÍÑÍÍÍÑÍÍÍ» * ºPREFº 0 ³ 1 ³ 2 ³ 3 ³ 4 ³ 5 ³ 6 ³ 7 ³ 8 ³ 9 º * ÌÍÍÍÍÎÍÍÍØÍÍÍØÍÍÍØÍÍÍØÍÍÍØÍÍÍØÍÍÍØÍÍÍØÍÍÍØÍÍ͹ * º 17 º ³ ³ ³ ³ ³ ³ ° ³ ± ³ ² ³ ³ º * ÇÄÄÄÄ×ÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄĶ * º 18 º ´ ³ µ ³ ¶ ³ · ³ ¸ ³ ¹ ³ º ³ » ³ ¼ ³ ½ º * ÇÄÄÄÄ×ÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄĶ * º 19 º ¾ ³ ¿ ³ À ³ Á ³  ³ à ³ Ä ³ Å ³ Æ ³ Ç º * ÇÄÄÄÄ×ÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄĶ * º 20 º È ³ É ³ Ê ³ Ë ³ Ì ³ Í ³ Î ³ Ï ³ Ð ³ Ñ º * ÇÄÄÄÄ×ÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄÄÅÄÄĶ * º 21 º Ò ³ Ó ³ Ô ³ Õ ³ Ö ³ × ³ Ø ³ Ù ³ Ú ³ Û º * ÈÍÍÍÍÊÍÍÍÏÍÍÍÏÍÍÍÏÍÍÍÏÍÍÍÏÍÍÍÏÍÍÍÏÍÍÍÏÍÍÍÏÍÍͼ 000110 03 WS-G1 PIC X(01) VALUE "Í". 000120 03 WS-G2 PIC X(01) VALUE "Ñ". 000130 03 WS-G3 PIC X(01) VALUE "³". 000140 03 WS-G4 PIC X(01) VALUE "Ï". 000150 03 WS-G5 PIC X(01) VALUE "Ë". 000160 03 WS-G6 PIC X(01) VALUE "º". 000170 03 WS-G7 PIC X(01) VALUE "Ê". 000180 03 WS-G8 PIC X(01) VALUE "Ä". 000190 03 WS-G9 PIC X(01) VALUE "Ú". 000200 03 WS-G10 PIC X(01) VALUE "¿". 000210 03 WS-G11 PIC X(01) VALUE "À". 000220 03 WS-G12 PIC X(01) VALUE "Ù". 000230 03 WS-G13 PIC X(01) VALUE "µ". 000240 03 WS-G14 PIC X(01) VALUE "Æ". 000250 03 WS-G15 PIC X(01) VALUE "É". 000260 03 WS-G16 PIC X(01) VALUE "»". 000270 03 WS-G17 PIC X(01) VALUE "È". 000280 03 WS-G18 PIC X(01) VALUE "¼". 03 WS-G19 PIC X(01) VALUE "°". 03 WS-G20 PIC X(01) VALUE "±". 03 WS-G21 PIC X(01) VALUE "²". 03 WS-G22 PIC X(01) VALUE "Û". 03 WS-BACKGROUND PIC X(80) VALUE ALL "°". *COPY FUNCTION.WS. * * T E R M I N A T O R K E Y S * 78 NORM-TERM VALUE "0". 78 USER-FN-KEY VALUE "1". 78 ADIS-FN-KEY VALUE "2". 78 8BIT-DATA VALUE "3". 78 16BIT-DATA VALUE "4". 78 ERROR-TERM VALUE "9". * * A D I S F U N C T I O N K E Y S * 78 ENTER-KEY VALUE 0. 78 CR-KEY VALUE 2. 78 LEFT-KEY VALUE 3. 78 RIGHT-KEY VALUE 4. 78 UP-KEY VALUE 5. 78 DOWN-KEY VALUE 6. 78 HOME-KEY VALUE 7. 78 TAB-KEY VALUE 8. 78 BACKTAB-KEY VALUE 9. 78 END-KEY VALUE 10. 78 BACK-SPACE VALUE 14. 78 DEL-KEY VALUE 17. 78 INS-KEY VALUE 23. 78 MOUSE-KEY VALUE 27. * * U S E R F U N C T I O N K E Y S * 78 ESC-KEY VALUE 0. 78 F1-KEY VALUE 1. 78 F2-KEY VALUE 2. 78 F3-KEY VALUE 3. 78 F4-KEY VALUE 4. 78 F5-KEY VALUE 5. 78 F6-KEY VALUE 6. 78 F7-KEY VALUE 7. 78 F8-KEY VALUE 8. 78 F9-KEY VALUE 9. 78 F10-KEY VALUE 10. 78 SF1-KEY VALUE 11. 78 SF2-KEY VALUE 12. 78 SF3-KEY VALUE 13. 78 SF4-KEY VALUE 14. 78 SF5-KEY VALUE 15. 78 SF6-KEY VALUE 16. 78 SF7-KEY VALUE 17. 78 SF8-KEY VALUE 18. 78 SF9-KEY VALUE 19. 78 SF10-KEY VALUE 20. 78 CF1-KEY VALUE 21. 78 CF2-KEY VALUE 22. 78 CF3-KEY VALUE 23. 78 CF4-KEY VALUE 24. 78 CF5-KEY VALUE 25. 78 CF6-KEY VALUE 26. 78 CF7-KEY VALUE 27. 78 CF8-KEY VALUE 28. 78 CF9-KEY VALUE 29. 78 CF10-KEY VALUE 30. 78 AF1-KEY VALUE 31. 78 AF2-KEY VALUE 32. 78 AF3-KEY VALUE 33. 78 AF4-KEY VALUE 34. 78 AF5-KEY VALUE 35. 78 AF6-KEY VALUE 36. 78 AF7-KEY VALUE 37. 78 AF8-KEY VALUE 38. 78 AF9-KEY VALUE 39. 78 AF10-KEY VALUE 40. 78 ALT-1 VALUE 41. 78 ALT-2 VALUE 42. 78 ALT-3 VALUE 43. 78 ALT-4 VALUE 44. 78 ALT-5 VALUE 45. 78 ALT-6 VALUE 46. 78 ALT-7 VALUE 47. 78 ALT-8 VALUE 48. 78 ALT-9 VALUE 49. 78 ALT-0 VALUE 50. 78 ALT-HYPH VALUE 51. 78 ALT-EQUAL VALUE 52. 78 PAGE-UP VALUE 53. 78 PAGE-DOWN VALUE 54. 78 ALT-A VALUE 65. 78 ALT-B VALUE 66. 78 ALT-C VALUE 67. 78 ALT-D VALUE 68. 78 ALT-E VALUE 69. 78 ALT-F VALUE 70. 78 ALT-G VALUE 71. 78 ALT-H VALUE 72. 78 ALT-I VALUE 73. 78 ALT-J VALUE 74. 78 ALT-K VALUE 75. 78 ALT-L VALUE 76. 78 ALT-M VALUE 77. 78 ALT-N VALUE 78. 78 ALT-O VALUE 79. 78 ALT-P VALUE 80. 78 ALT-Q VALUE 81. 78 ALT-R VALUE 82. 78 ALT-S VALUE 83. 78 ALT-T VALUE 84. 78 ALT-U VALUE 85. 78 ALT-V VALUE 86. 78 ALT-W VALUE 87. 78 ALT-X VALUE 88. 78 ALT-Y VALUE 89. 78 ALT-Z VALUE 90. 78 F11-KEY VALUE 91. 78 F12-KEY VALUE 92. 78 SF11-KEY VALUE 93. 78 SF12-KEY VALUE 94. 78 CF11-KEY VALUE 95. 78 CF12-KEY VALUE 96. 78 AF11-KEY VALUE 97. 78 AF12-KEY VALUE 98. 01 SET-BIT-PAIRS PIC 9(02) COMP-X VALUE 1. 01 GET-SINGLE-CHAR PIC 9(02) COMP-X VALUE 26. * * ACTION : 1 = CONTROL USER FUNCTION KEYS * * SETTING 0 = DISABLE * 1 = ENABLE * NUMBER = NUMBER OF FIRST USER KEY * KEYS = NUMBER OF CONSECUTIVE KEYS * * SETTING 1 = STANDARD USER FUNCTION KEY LIST * 2 = COMPATIBILITY KEY LIST * NUMBER = 87 * KEYS = 1 * * 2 = CONTROL ADIS KEY MAPPINGS * * SETTING 0 = DISABLE KEYS * 1 = ENABLE * 2 = NORMAL ACTION * 3 = NORMAL ACTION UNLESS CURSOR * LEAVES CURRENT FIELD * NUMBER = NUMBER OF FIRST ADIS KEY * KEYS = NUMBER OF CONSECUTIVE KEYS * * SETTING 0 = PRE-DISPLAY FIXED-FORMAT * NUMERIC/NUM EDITED * 1 = NUMERIC AND FIXED-FORMAT * NUM EDITED FIELDS PRE-DISPLAYED * 2 = PRE-DISPLAY FIELD WHEN CURSOR * MOVED TO IT * 3 = ALL FIELDS IN ACCEPT ARE * PRE-DISPLAYED. * NUMBER = 76 * KEYS = 1 * * SETTING 0 = INDICATOR DISPLAYED IF NECCESSARY * 3 = INDICATOR IS NEVER DISPLAYED * NUMBER = 56 INSERT/REPLACE IND * = 57 END OF FIELD IND * = 58 AUTOCLEAR IND * KEYS = 1 * * SETTING 0 = ERROR MESSAGES NEVER DISPLAYED * BELL IS RUNG * 1 = MESSAGES NEVER DISPLAYED * BELL IS RUNG FOR INVALID NUMERIC * 2 = MESSAGES DISPLAYED * INVALID NUMERIC NOT REPORTED * 3 = MESSAGES DISPLAYED * BELL RUNG FOR INVALID NUMERIC * NUMBER = 44 * KEYS = 1 * 01 USER-KEY-CONTROL. 03 USER-SETTING PIC 9(02) COMP-X. 03 USER-ACTION PIC X(01) VALUE "2". 03 USER-NUMBER PIC 9(02) COMP-X. 03 USER-KEYS PIC 9(02) COMP-X VALUE 1. 01 W02-FILE-IDS. 03 W02-SCALES PIC X(04) VALUE "COM1". 01 W10-VALUES. 03 W10-WEIGHT. 05 W10-QNT PIC 9(03)V999. 03 W10-WEIGHT2 REDEFINES W10-WEIGHT. 05 W10-KG PIC 9(03). 05 W10-GR PIC 9(03). 03 W10-DISP PIC ZZ9.999. 000320 01 W12-DATE. 000330 03 W12-TODAY PIC 9(06). 000340 03 W12-DATE-DMY REDEFINES W12-TODAY. 000350 05 W12-DAY PIC 9(02). 000360 05 W12-MONTH PIC 9(02). 000370 05 W12-YEAR PIC 9(02). 000380 03 W12-T-YMD PIC 9(06). 000390 03 W12-DATE-YMD REDEFINES W12-T-YMD. 000400 05 W12-YY PIC 9(02). 000410 05 W12-MM PIC 9(02). 000420 05 W12-DD PIC 9(02). / 000850 SCREEN SECTION. *COPY BLANK.CRT. * * **** THIS SCREEN - CLEARS THE DISPLAY AND SETS THE DEFAULT * COLOUR TO 3 (LIGHT BLUE). * 001950 01 CLR-SCREEN. 003170 03 BLANK SCREEN FOREGROUND-COLOR 3 BACKGROUND-COLOR 1. 03 CLR-L1-2. 003860 05 LINE 1 COLUMN 1 BACKGROUND-COLOR 0 PIC X(80) USING WS-TOP-LNE2. 003870 05 LINE 2 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 004160 05 COLUMN 2 BACKGROUND-COLOR 7 FOREGROUND-COLOR 4 004170 VALUE "APAC Accounting". 05 COLUMN 17 PIC X(50) FROM WS-BACKGROUND. 004180 05 COLUMN 66 BACKGROUND-COLOR 7 FOREGROUND-COLOR 4 004190 VALUE "Version - 6.7 ". 003920 05 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 003930 03 LINE 3 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(64) FROM WS-BACKGROUND. 03 COLUMN 66 BACKGROUND-COLOR 3 FOREGROUND-COLOR 1 VALUE "Date: ". 03 COLUMN 72 BACKGROUND-COLOR 3 FOREGROUND-COLOR 1 PIC Z9/99/99 USING TODAY-DDMMYY. 003940 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 003950 03 LINE 4 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 003960 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 003970 03 LINE 5 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 003980 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 003990 03 LINE 6 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004000 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004010 03 LINE 7 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004020 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004030 03 LINE 8 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004040 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004050 03 LINE 9 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004060 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004070 03 LINE 10 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004080 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004090 03 LINE 11 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004100 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004110 03 LINE 12 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004120 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004130 03 LINE 13 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004140 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004150 03 LINE 14 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004160 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004170 03 LINE 15 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004180 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004190 03 LINE 16 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004200 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004210 03 LINE 17 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004220 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004230 03 LINE 18 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004240 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004250 03 LINE 19 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004260 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004270 03 LINE 20 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004280 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004290 03 LINE 21 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004300 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004310 03 LINE 22 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004320 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 004330 03 LINE 23 COLUMN 1 BACKGROUND-COLOR 0 VALUE "³". 03 COLUMN 2 PIC X(78) FROM WS-BACKGROUND. 004340 03 COLUMN 80 BACKGROUND-COLOR 0 VALUE "³". 006550 03 LINE 24 COLUMN 1 BACKGROUND-COLOR 0 VALUE "ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ - "ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ". 03 CLEAR-L25. 05 LINE 25 BLANK LINE BACKGROUND-COLOR 3 FOREGROUND-COLOR 1. 000860 01 S00. 000910 03 LINE 2 COLUMN 27 FOREGROUND-COLOR 7 HIGHLIGHT 000920 VALUE "READ SCALE - TESTING PROGRAM". 000950 03 LINE 6 COLUMN 12 VALUE "Data :". / 001230 PROCEDURE DIVISION. 001220 AA000 SECTION. 001230 AA00. 041220 MOVE 1 TO WS-S1. 021870 MOVE SPACES TO WS-MID-LNE. 041240 AA02. 041250 MOVE WS-G1 TO WS-TCHR (WS-S1) WS-BCHR (WS-S1). MOVE WS-G8 TO WS-TCH (WS-S1) WS-BCH (WS-S1). 041260 IF WS-S1 < 80 041270 ADD 1 TO WS-S1 041280 GO TO AA02. MOVE WS-G9 TO WS-TCH (1). MOVE WS-G10 TO WS-TCH (80). MOVE WS-G11 TO WS-BCH (1). MOVE WS-G12 TO WS-BCH (80). MOVE WS-G14 TO WS-TCHR (1) WS-BCHR (1). MOVE WS-G13 TO WS-TCHR (80) WS-BCHR (80). 021930 MOVE WS-G2 TO WS-TCHR (16) WS-TCHR (41) 021940 WS-TCHR (64) WS-TCHR (71). 021950 MOVE WS-G3 TO WS-MCHR (16) WS-MCHR (41) 021960 WS-MCHR (64) WS-MCHR (71) WS-MCHR (1) WS-MCHR (80). 021970 MOVE WS-G4 TO WS-BCHR (16) WS-BCHR (41) 021980 WS-BCHR (64) WS-BCHR (71). ACCEPT W12-T-YMD FROM DATE. MOVE W12-YY TO W12-YEAR. MOVE W12-MM TO W12-MONTH. MOVE W12-DD TO W12-DAY. MOVE W12-TODAY TO TODAY-DDMMYY. 001250 DISPLAY CLR-SCREEN. 001270 PERFORM ZA000. 001260 DISPLAY S00. 001340 AA05. MOVE X"05" TO SCA-LINE PORT-DATA. DISPLAY "Writing ENQ to COM port" AT 0619 WITH BACKGROUND-COLOR 5 FOREGROUND-COLOR 3 HIGHLIGHT. MOVE SCA-REC TO SCD-REC. MOVE W02-SCALES TO SCD-DATA-41-256. WRITE SCD-REC. CLOSE SCALES-DISK. OPEN EXTEND SCALES-DISK. DISPLAY PORT-ADDRESS AT 0660. CALL X"88" USING PORT-ADDRESS, PORT-DATA. MOVE " " TO PORT-INPUT. MOVE ZERO TO WS-SUB PORT-COUNT. LOOP. IF WS-SUB < 3300 ADD 1 TO WS-SUB GO TO LOOP. LOOP1. CALL X"87" USING PORT-ADDRESS, PORT-CHAR. IF PORT-CHAR = X"05" OR " " OR X"FC" GO TO LOOP1. IF (PORT-CHAR = X"1E") OR (PORT-COUNT > 25) * IF PORT-WEIGHT NUMERIC MOVE PORT-WEIGHT TO SCA-DATA-1-40 GO TO GOT-WEIGHT. * ELSE * GO TO AA05. MOVE PORT-WEIGHT-2-6 TO PORT-WEIGHT. MOVE " " TO PORT-CHAR. MOVE ZERO TO WS-SUB. ADD 1 TO PORT-COUNT. GO TO LOOP. GOT-WEIGHT. DISPLAY SCA-DATA-1-40 AT 0819 WITH BACKGROUND-COLOR 5 FOREGROUND-COLOR 3 HIGHLIGHT. DISPLAY "Unpacking data" AT 1019 WITH BACKGROUND-COLOR 5 FOREGROUND-COLOR 3 HIGHLIGHT. MOVE SCA-REC TO SCD-REC. WRITE SCD-REC. CLOSE SCALES-DISK. OPEN EXTEND SCALES-DISK. PERFORM AB000. MOVE W10-QNT TO W10-DISP. DISPLAY W10-DISP AT 1219 WITH BACKGROUND-COLOR 5 FOREGROUND-COLOR 3 HIGHLIGHT. DISPLAY "Press E (Caps lock on) to exit" AT 1419 WITH FOREGROUND-COLOR 6 HIGHLIGHT. ACCEPT WS-OPTION WITH AUTO. IF NOT (WS-OPTION = "E") GO TO AA05. 001450 AA10. 001830 CLOSE SCALES SCALES-DISK. 001950 STOP RUN. AB000 SECTION. AB00. MOVE ZERO TO W10-QNT. AB05. * IF NOT (SCA-CHAR1 = "+" OR "-") * MOVE SCA-CHAR2-79 TO SCA-REC * IF SCA-REC = SPACES * GO TO AB999 * ELSE * GO TO AB05. * MOVE SCA-CHAR2-79 TO SCA-REC. IF SCA-REC = SPACES GO TO AB999. MOVE SCA-KG TO W10-KG. MOVE SCA-GRAM TO W10-GR. AB999. EXIT. / 002460 ZA000 SECTION. 002470 ZA00. DISPLAY "COM PORT TO USE" AT 0312. ACCEPT WS-OPTION AT 0328 WITH FOREGROUND-COLOR 7 HIGHLIGHT BACKGROUND-COLOR 5 AUTO. IF WS-OPTION = "1" MOVE "COM1" TO W02-SCALES MOVE PORT-COM1 TO PORT-ADDRESS * MOVE PORT-REG1 TO PORT-REGISTER ELSE IF WS-OPTION = "2" MOVE "COM2" TO W02-SCALES MOVE PORT-COM2 TO PORT-ADDRESS * MOVE PORT-REG2 TO PORT-REGISTER ELSE IF WS-OPTION = "3" MOVE "COM3" TO W02-SCALES MOVE PORT-COM3 TO PORT-ADDRESS * MOVE PORT-REG3 TO PORT-REGISTER ELSE MOVE PORT-COM4 TO PORT-ADDRESS * MOVE PORT-REG4 TO PORT-REGISTER MOVE "COM4" TO W02-SCALES. 042140 OPEN I-O SCALES. CALL X"91" USING X91-RES X91-FUN SCALES. 003050 IF NOT (WS-STATUS = "00" OR "41") 003060 MOVE 2 TO WS-F-ERROR 003070 PERFORM OPEN-ERROR. OPEN OUTPUT SCALES-DISK. CALL X"91" USING X91-RES X91-FUN SCALES-DISK. 003080 ZA999-EXIT. 003090 EXIT. / 003100 ZB000-ERROR SECTION. 041480 OPEN-ERROR. 041490 DISPLAY CLR-SCREEN. 041500 DISPLAY "Open error" AT 0812 WITH FOREGROUND-COLOR 6 HIGHLIGHT. 041510 PERFORM DISPLAY-FILE-NAME. 041480 READ-ERROR. 041490 DISPLAY CLR-SCREEN. 041500 DISPLAY "Read error" AT 0812 WITH FOREGROUND-COLOR 6 HIGHLIGHT. 041510 PERFORM DISPLAY-FILE-NAME. 041520 WRITE-ERROR. 041530 DISPLAY CLR-SCREEN. 041540 DISPLAY "Write error" AT 0812 WITH FOREGROUND-COLOR 6 HIGHLIGHT. 041510 PERFORM DISPLAY-FILE-NAME. 041560 DISPLAY-FILE-NAME. 041620 MOVE W02-SCALES TO WS-FILE. MOVE ZERO TO WS-KEY. 041880 IF WS-STATUS = "10" 041890 MOVE "End of FILE" TO WS-STAT-MESSAGE 041900 ELSE 041910 IF WS-STATUS = "22" 041920 MOVE "Duplicate record number" TO WS-STAT-MESSAGE 041930 ELSE 041940 IF WS-STATUS = "23" 041950 MOVE "Invalid record number" TO WS-STAT-MESSAGE 041960 ELSE 041970 IF WS-STATUS = "24" 041980 MOVE "DISK full" TO WS-STAT-MESSAGE 041990 ELSE 042000 IF WS-STATUS = "30" 042010 MOVE "DISK error" TO WS-STAT-MESSAGE 042020 ELSE 042030 IF WS-STATUS = "94" 042040 MOVE "FILE locked" TO WS-STAT-MESSAGE. 045380 DISPLAY "File - " AT 1012 WS-FILE WITH FOREGROUND-COLOR 3 HIGHLIGHT. 045390 DISPLAY "Status " AT 1212 WS-STATUS WITH FOREGROUND-COLOR 3 HIGHLIGHT ": " WS-STAT-MESSAGE WITH FOREGROUND-COLOR 6 HIGHLIGHT. 045400 IF WS-STATUS NOT = "94" 045410 DISPLAY "Key " AT 1412 WS-KEY WITH FOREGROUND-COLOR 3 HIGHLIGHT 045420 DISPLAY "Reverse backup or contact program Support" AT 1612. 045440 DISPLAY "Please make a note of these details" AT 1812. 042170 STOP RUN.
061959f8f5ec3582cfff1abcd082e306c2ec58fe
449d555969bfd7befe906877abab098c6e63a0e8
/3802/CH4/EX4.16/Ex4_16.sce
cbcb797ed7c723697174befb1afbf749216d6430
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
521
sce
Ex4_16.sce
//Book Name:Fundamentals of Electrical Engineering //Author:Rajendra Prasad //Publisher: PHI Learning Private Limited //Edition:Third ,2014 //Ex4_16.sce. clc; clear; q1=-2e-9; q2=3e-9; q3=2e-9; q4=1e-9; AB=1; //Given square side as 1 metre BC=1; epsilon_not=8.854e-12; AP=sqrt(AB^2+BC^2)/2; //formula derived from the figure Vp=(1/(4*%pi*epsilon_not*AP))*(q1+q2+q3+q4); printf("\n Potential at the centre of the square=%2.2f volt",Vp) //Answer vary due to roundoff error
5e7cd3344e52502a8fc77758bdc23ce56eae0880
449d555969bfd7befe906877abab098c6e63a0e8
/858/CH9/EX9.4/example_4.sce
4158067fb08087bbf6a0d7bbf6d5adadd7f2605c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
136
sce
example_4.sce
clc clear printf("example 9.4 page number 387\n\n") printf("this is a theoretical question, book shall be referred for solution")
2da99f28622d610dda6f0374496cf46052037c76
449d555969bfd7befe906877abab098c6e63a0e8
/1271/CH13/EX13.8/example13_8.sce
a05545e0beb8fa9cc8dc672927360d38f10c3916
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
743
sce
example13_8.sce
clc // Given that x1 = 1 // coordinate on x axis in first case y1 = 2 // coordinate on y axis in first case z1 = 3 // coordinate on z axis in first case x2 = 1 y2 = 1 z2 = 0 // coordinate of first plane in second case x3 = 1 y3= 1 z3 = 1 // coordinate of second plane in second case // Sample Problem 8 on page no. 13.27 printf("\n # PROBLEM 8 # \n") printf("Standard formula used \n") printf(" d = 1 / (x1^2 + y1^2 + z1^2)^1/2 \n") x_=6/x1 y_=6/y1 z_=6/z1 d1 = 1 / sqrt(x2^2 + y2^2 + z2^2) d2= 1/ sqrt(x3^2 + y3^2 + z3^2) d = d1/d2 printf("\n The ratio of intercepts of three axes by the point are %d : %d : %d. \n The ratio of spacing between two planes is %f.",x_,y_,z_,d)
5a308140cabc3c0d59c02c2217109fdaa4cea41a
449d555969bfd7befe906877abab098c6e63a0e8
/3472/CH39/EX39.7/Example39_7.sce
19310d3b97b16ea2b7fabc07cb4fb57ebfef7565
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,134
sce
Example39_7.sce
// A Texbook on POWER SYSTEM ENGINEERING // A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar // DHANPAT RAI & Co. // SECOND EDITION // PART IV : UTILIZATION AND TRACTION // CHAPTER 1: INDUSTRIAL APPLICATIONS OF ELECTRIC MOTORS // EXAMPLE : 1.7 : // Page number 685-686 clear ; clc ; close ; // Clear the work space and console // Given data V = 230.0 // Voltage of DC shunt motor(V) N_1 = 1000.0 // No load speed(rpm) R_sh = 40.0 // Shunt resistance(ohm) N_2 = 1200.0 // Speed with series resistance(rpm) // Calculations phi_2 = N_1/N_2 // Flux_2 in terms flux_1 I_N1 = V/R_sh // Exciting current at 1000 rpm(A) phi_1 = 11.9 // Flux corresponding to I_N1(mWb) phi_N2 = phi_1*phi_2 // Flux at 1200 rpm(mWb) I_phi_N2 = 3.25 // Exciting current corresponding to phi_N2(A) R = V/I_phi_N2 // Resistance in field circuit(ohm) R_extra = R-R_sh // Resistance to be placed in series with shunt field(ohm) // Results disp("PART IV - EXAMPLE : 1.7 : SOLUTION :-") printf("\nResistance to be placed in series with shunt field = %.1f ohm", R_extra)
df7797c0a9a186ce0beca89172641893f28cf301
0812f3bb6f3cc038b570df68ccee4275da04b11f
/models/complexity_1000/Applied_Thermodynamics_and_Engineering/CH6/EX6.7/6_7.sce
f6f9d3013554445ef74a50c1c11c57837e7d083d
[]
no_license
apelttom/20-semester_PhD_thesis
edc0b55580bae9d364599932cd73cf32509f4b7a
ff28b115fcf5e121525e08021fa0c02b54a8e143
refs/heads/master
2018-12-26T22:03:38.510422
2018-12-14T20:04:11
2018-12-14T20:04:11
106,552,276
0
0
null
null
null
null
UTF-8
Scilab
false
false
556
sce
6_7.sce
clc; nC=0.120;//kmol nO=0.115;//kmol nN=0.765;//kmol m_C=44;//kg/kmol m_O=32;//kg/kmol m_N=28;//kg/kmol miC=m_C*nC;//kg miO=m_O*nO;//kg miN=m_N*nN;//kg m=miC+miO+miN; cpC=1.271;//kJ/kgK cpO=1.110;//kJ/kgK cpN=1.196;//kJ/kgK cp=cpC*(miC/m)+cpO*(miO/m)+cpN*(miN/m); R_=8.3145;//kJ/kg K R=(miC/m)*(R_/m_C)+(miO/m)*(R_/m_O)+(miN/m)*(R_/m_N); cv=cp-R; T1=1000+273; v1!v2=1/7; n=1.25; T2=T1*(v1!v2)^(n-1); W=R*(T2-T1)/(n-1); disp("Work done by th gas mixture is:"); disp("kJ/kg",-W,R,T2); disp("heat supplied is:"); Q=[cv*(T2-T1)]-W; disp("kJ/kg",Q);
d27a6658e6fcde7ec811810f7c5a184e7b10ab4c
449d555969bfd7befe906877abab098c6e63a0e8
/1913/CH6/EX6.2/ex2.sce
c411174ae0136ce91ee49db695bb44e5be5da5f2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
487
sce
ex2.sce
clc clear //Input data t1=30;//Normal temperature of black body in degree centigrade t2=100;//Heated temperature of black body in degree centigrade s=20.52*10^-8;//Stefan Boltzmann constant in kJ/hrK^4 A=1;//Assume area in m^2 //Calculations T1=273+t1;//Black body temperatures in kelvin K T2=273+t2;//Heated temperature of black body in kelvin K E=s*(T2^4-T1^4);//Increase of emissive power in kJ/hr //Output printf('The change in its emissive power E= %3.4f kJ/hr',E)
bd73f6fbef5768064f7bedf8d9536cdd8ff8f1f4
449d555969bfd7befe906877abab098c6e63a0e8
/1835/CH5/EX5.5/Ex5_5.sce
b0d240b9149c6ae0b8b459143db6c36f2751c41e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,304
sce
Ex5_5.sce
//CHAPTER 5 ILLUSRTATION 5 PAGE NO 163 //TITLE:Inertia Force Analysis in Machines //Figure 5.3 clc clear pi=3.141 N=1800// speed of the petrol engine in rpm r=.06// radius of crank in m l=.240// length of connecting rod in m D=.1// diameter of the piston in m mR=1// mass of piston in kg p=.8*10^6// gas pressure in N/m^2 x=.012// distance moved by piston in m //=============================================== w=2*pi*N/60// angular velocity of the engine in rad/s n=l/r Fl=pi/4*D^2*p// load on the piston in N teeta=32// by mearument from the figure 5.3 Fi=mR*w^2*r*(cosd(teeta)+cosd(2*teeta)/(n))// inertia force due to reciprocating parts in N Fp=Fl-Fi// net load on the gudgeon pin in N Fq=n*Fp/((n^2-(sind(teeta))^2)^.5)// thrust in the connecting rod in N Fn=Fp*sind(teeta)/((n^2-(sind(teeta))^2)^.5)// reaction between the piston and cylinder in N w1=(Fl/mR/r/(cosd(teeta)+cosd(2*teeta)/(n)))^.5 N1=60*w1/(2*pi)// printf('Net load on the gudgeon pin= %.3f N\n Thrust in the connecting rod= %.3f N\n Reaction between the cylinder and piston= %.3f N\n The engine speed at which the above values become zero= %.3f rpm',Fp,Fq,Fn,N1)
242a87c25dc6f0bde0481f8d748292d368145065
449d555969bfd7befe906877abab098c6e63a0e8
/1664/CH4/EX4.11/Ex4_11.sce
14ac4071b9403297cf344e15b1bf256d8e1e6cf0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
572
sce
Ex4_11.sce
//Example No.4.11. //Page No.138. clc;clear; n = 1;//For the lowest energy value n=1. h = 6.626*10^(-34);//Planck's constant. L = 1*10^(-10);//Width of the potential well -[m]. m = 9.1*10^(-31);//Mass of the electron. E = ((n^(2)*h^(2))/(8*m*L^(2))); E = ((h^(2))/(8*m*L^(2)));// For the lowest energy value n=1. printf("\nThe lowest energy of the electron in joules is %3.3e J",E);;// Lowest energy of the electron in joules. E = (E/(1.6*10^(-19))); printf("\nThe lowest energy of the electron in eV is %.2f eV",E);// Lowest energy of the electron in eV.
3bd94b8f1363555aaf505fbfb0c474883336a772
717ddeb7e700373742c617a95e25a2376565112c
/3428/CH21/EX14.21.9/Ex14_21_9.sce
98c865954c5201bde7759a5b16cc4cfe500de9d8
[]
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
213
sce
Ex14_21_9.sce
//Section-14,Example-5,Page no.-PC.17 //To calculate the temperature at which v_rms(He)=v_rms(H2). clc; //v_rms=sqrt((3*K*T)/m) //K=1(let) K=1 T_He=(3*K*200*4)/(3*K*2) disp(T_He,'Required temperature(K)')
511cbc4140782b25b6594da70e61841427c4fa26
449d555969bfd7befe906877abab098c6e63a0e8
/3411/CH1/EX1.8/Ex1_8.sce
3db76f95e86829103a25ae9e44ae8d78f9211cd5
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
320
sce
Ex1_8.sce
//Example 1.8 clc(); clear; //To calculate the distance from the edge of wedge alpha=0.01 //units in radians n=10 lamda=6000 //units in armstrongs lamda=lamda*10^-10 //units in mts x=((2*n-1)*lamda)/(4*alpha) //units in mts printf("Distance from the edge of the wedge is %.6fmts",x)
e37d8f6d9a0dc07e9103471491787d95a9fbe961
449d555969bfd7befe906877abab098c6e63a0e8
/1931/CH12/EX12.2/2.sce
65b74a65b5a16699426bd4d533ab7c275bd0efb7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
285
sce
2.sce
clc clear //INPUT DATA Tc=9.15//critical temperature of Nb in K t=6//temperature of critical field in K Ho=0.196//The critical field AT 0K in T //CALCULATION Hc=(Ho*(1-(t/Tc)^2))//The critical field at 6K in T //OUTPUT printf('The critical field at %iK is %3.4f T',t,Hc)
ac4f824fc84595a00caa18494f89e9c70d628bc1
449d555969bfd7befe906877abab098c6e63a0e8
/3511/CH7/EX7.4/Ex7_4.sce
4ea4e7389f62260e29b90b9fa0ea0627ce8445d2
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
379
sce
Ex7_4.sce
clc; cj=2700; // The effective jet velocity from jet engine in m/s ci=1350; // Flight velocity in m/s ma=78.6; // Air flow rate in m/s a=ci/cj; F=ma*(cj-ci); // Thrust P=F*ci; // Thrust power eff_P=2*a/(a+1); // Propulsive efficiency disp ("N",F,"(i).Thrust = "); disp ("MN",P/10^6,"(ii). Thrust power = "); disp ("%",eff_P*100,"(iii). Propulsive efficiency = ");
ffd33ceb5ca68d3733736495a845f85ff4c2a486
b29e9715ab76b6f89609c32edd36f81a0dcf6a39
/ketpicscifiles6/Mawarikomi.sci
11b02c6325714c8d78d757841561f83b0b3ec292
[]
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
697
sci
Mawarikomi.sci
function Mawarikomi(varargin) FL='default'; haba='10cm'; Nargs=length(varargin); if Nargs>0 haba=varargin(1); if Nargs>=2 FL=varargin(2); if FL=='' FL='tmp.tex' end end end StrM=[ '\begin{mawarikomi}%',... '%<1>[5](0,0)%',... '{'+haba+'}{%',... '',... '}',... '',... '',... '\end{mawarikomi}'... ]; if FL~='default' Fid=mopen(FL,'w'); mprintf('%s\n\n','Writing to '+FL); end; for I=1:size(StrM,2) Str=StrM(I); mprintf('%s\n',Str); if FL~='default' mfprintf(Fid,'%s\n',Str); end end if FL~='default' mclose(Fid); end endfunction
f5f36fbfb1f5a9ffe7827a6f75fbfe6b175eb2f5
36c5f94ce0d09d8d1cc8d0f9d79ecccaa78036bd
/WCP #4.sce
cda5d05c4d985d074d3f443f48eeffc22eb18005
[]
no_license
Ahmad6543/Scenarios
cef76bf19d46e86249a6099c01928e4e33db5f20
6a4563d241e61a62020f76796762df5ae8817cc8
refs/heads/master
2023-03-18T23:30:49.653812
2020-09-23T06:26:05
2020-09-23T06:26:05
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
45,171
sce
WCP #4.sce
Name=WCP #4 PlayerCharacters=pistol Launchman BotCharacters=crocbot.bot IsChallenge=true Timelimit=150.0 PlayerProfile=pistol Launchman AddedBots=crocbot.bot;crocbot.bot;crocbot.bot;crocbot.bot;crocbot.bot;crocbot.bot;crocbot.bot;crocbot.bot PlayerMaxLives=0 BotMaxLives=0;0;0;0;0;0;0;0 PlayerTeam=1 BotTeams=2;2;2;2;2;2;2;2 MapName=whacmap.map MapScale=1.0 BlockProjectilePredictors=true BlockCheats=true InvinciblePlayer=false InvincibleBots=false Timescale=1.0 BlockHealthbars=true TimeRefilledByKill=0.0 ScoreToWin=1000.0 ScorePerDamage=1.0 ScorePerKill=0.0 ScorePerMidairDirect=0.0 ScorePerAnyDirect=0.0 ScorePerTime=0.0 ScoreLossPerDamageTaken=0.0 ScoreLossPerDeath=0.0 ScoreLossPerMidairDirected=0.0 ScoreLossPerAnyDirected=0.0 ScoreMultAccuracy=false ScoreMultDamageEfficiency=false ScoreMultKillEfficiency=false GameTag=Inspired by Whac-a-croc and Whac-a-mole WeaponHeroTag=u can use the bat but its better if you use ur hands DifficultyTag=5 AuthorsTag=bozott BlockHitMarkers=false BlockHitSounds=false BlockMissSounds=false BlockFCT=false Description=Ouch! GameVersion=2.0.0.2 ScorePerDistance=0.0 MBSEnable=false MBSTime1=0.25 MBSTime2=0.5 MBSTime3=0.75 MBSTime1Mult=1.0 MBSTime2Mult=2.0 MBSTime3Mult=3.0 MBSFBInstead=false MBSRequireEnemyAlive=false [Aim Profile] Name=Default MinReactionTime=0.3 MaxReactionTime=0.4 MinSelfMovementCorrectionTime=0.001 MaxSelfMovementCorrectionTime=0.05 FlickFOV=30.0 FlickSpeed=1.5 FlickError=15.0 TrackSpeed=3.5 TrackError=3.5 MaxTurnAngleFromPadCenter=75.0 MinRecenterTime=0.3 MaxRecenterTime=0.5 OptimalAimFOV=30.0 OuterAimPenalty=1.0 MaxError=40.0 ShootFOV=15.0 VerticalAimOffset=0.0 MaxTolerableSpread=5.0 MinTolerableSpread=1.0 TolerableSpreadDist=2000.0 MaxSpreadDistFactor=2.0 AimingStyle=Original ScanSpeedMultiplier=1.0 MaxSeekPitch=30.0 MaxSeekYaw=30.0 AimingSpeed=5.0 MinShootDelay=0.3 MaxShootDelay=0.6 [Bot Profile] Name=crocbot DodgeProfileNames=jump DodgeProfileWeights=1.0 DodgeProfileMaxChangeTime=5.0 DodgeProfileMinChangeTime=1.0 WeaponProfileWeights=1.0;1.0;1.0;1.0;1.0;1.0;1.0;1.0 AimingProfileNames=Default;Default;Default;Default;Default;Default;Default;Default WeaponSwitchTime=3.0 UseWeapons=true CharacterProfile=croc SeeThroughWalls=false NoDodging=false NoAiming=false AbilityUseTimer=0.1 UseAbilityFrequency=1.0 UseAbilityFreqMinTime=0.3 UseAbilityFreqMaxTime=0.6 ShowLaser=false LaserRGB=X=1.000 Y=0.300 Z=0.000 LaserAlpha=1.0 [Character Profile] Name=pistol Launchman MaxHealth=300.0 WeaponProfileNames=bat;hands;;;;;; MinRespawnDelay=1.0 MaxRespawnDelay=1.0 StepUpHeight=75.0 CrouchHeightModifier=0.5 CrouchAnimationSpeed=1.0 CameraOffset=X=0.000 Y=0.000 Z=65.000 HeadshotOnly=false DamageKnockbackFactor=8.0 MovementType=Base MaxSpeed=0.0 MaxCrouchSpeed=500.0 Acceleration=0.0 AirAcceleration=16000.0 Friction=4.0 BrakingFrictionFactor=2.0 JumpVelocity=0.0 Gravity=3.0 AirControl=0.25 CanCrouch=false CanPogoJump=false CanCrouchInAir=true CanJumpFromCrouch=false EnemyBodyColor=X=0.771 Y=0.000 Z=0.000 EnemyHeadColor=X=1.000 Y=1.000 Z=1.000 TeamBodyColor=X=1.000 Y=0.888 Z=0.000 TeamHeadColor=X=1.000 Y=1.000 Z=1.000 BlockSelfDamage=false InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=0.0 MainBBType=Cuboid MainBBHeight=600.0 MainBBRadius=10.0 MainBBHasHead=true MainBBHeadRadius=30.0 MainBBHeadOffset=200.0 MainBBHide=false ProjBBType=Cylindrical ProjBBHeight=20.0 ProjBBRadius=10.0 ProjBBHasHead=false ProjBBHeadRadius=45.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.2 JetpackFullFuelTime=4.0 JetpackFuelIncPerSec=1.0 JetpackFuelRegensInAir=false JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=true AerialFriction=0.0 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.5 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=0.0 VerticalSpawnOffset=0.0 TerminalVelocity=0.0 CharacterModel=None CharacterSkin=Default SpawnXOffset=0.0 SpawnYOffset=0.0 InvertBlockedSpawn=false ViewBobTime=0.0 ViewBobAngleAdjustment=0.0 ViewBobCameraZOffset=0.0 ViewBobAffectsShots=false IsFlyer=false FlightObeysPitch=false FlightVelocityUp=800.0 FlightVelocityDown=800.0 [Character Profile] Name=croc MaxHealth=100.0 WeaponProfileNames=;;;;;;; MinRespawnDelay=0.001 MaxRespawnDelay=0.001 StepUpHeight=75.0 CrouchHeightModifier=0.5 CrouchAnimationSpeed=1.0 CameraOffset=X=0.000 Y=0.000 Z=0.000 HeadshotOnly=false DamageKnockbackFactor=8.0 MovementType=Base MaxSpeed=0.0 MaxCrouchSpeed=500.0 Acceleration=100.0 AirAcceleration=16000.0 Friction=8.0 BrakingFrictionFactor=4.0 JumpVelocity=750.0 Gravity=2.0 AirControl=0.125 CanCrouch=false CanPogoJump=true CanCrouchInAir=false CanJumpFromCrouch=false EnemyBodyColor=X=255.000 Y=0.000 Z=0.000 EnemyHeadColor=X=255.000 Y=255.000 Z=255.000 TeamBodyColor=X=0.000 Y=0.000 Z=255.000 TeamHeadColor=X=255.000 Y=255.000 Z=255.000 BlockSelfDamage=false InvinciblePlayer=false InvincibleBots=false BlockTeamDamage=false AirJumpCount=0 AirJumpVelocity=800.0 MainBBType=Spheroid MainBBHeight=110.0 MainBBRadius=55.0 MainBBHasHead=false MainBBHeadRadius=45.0 MainBBHeadOffset=0.0 MainBBHide=false ProjBBType=Spheroid ProjBBHeight=50.0 ProjBBRadius=25.0 ProjBBHasHead=false ProjBBHeadRadius=45.0 ProjBBHeadOffset=0.0 ProjBBHide=true HasJetpack=false JetpackActivationDelay=0.2 JetpackFullFuelTime=4.0 JetpackFuelIncPerSec=1.0 JetpackFuelRegensInAir=false JetpackThrust=6000.0 JetpackMaxZVelocity=400.0 JetpackAirControlWithThrust=0.25 AbilityProfileNames=;;; HideWeapon=true AerialFriction=0.05 StrafeSpeedMult=1.0 BackSpeedMult=1.0 RespawnInvulnTime=0.0 BlockedSpawnRadius=0.0 BlockSpawnFOV=0.0 BlockSpawnDistance=0.0 RespawnAnimationDuration=0.0 AllowBufferedJumps=true BounceOffWalls=false LeanAngle=0.0 LeanDisplacement=0.0 AirJumpExtraControl=0.0 ForwardSpeedBias=1.0 HealthRegainedonkill=0.0 HealthRegenPerSec=0.0 HealthRegenDelay=0.0 JumpSpeedPenaltyDuration=0.0 JumpSpeedPenaltyPercent=0.0 ThirdPersonCamera=false TPSArmLength=300.0 TPSOffset=X=0.000 Y=150.000 Z=150.000 BrakingDeceleration=2048.0 VerticalSpawnOffset=0.0 TerminalVelocity=0.0 CharacterModel=None CharacterSkin=Default SpawnXOffset=0.0 SpawnYOffset=0.0 InvertBlockedSpawn=false ViewBobTime=0.0 ViewBobAngleAdjustment=0.0 ViewBobCameraZOffset=0.0 ViewBobAffectsShots=false IsFlyer=false FlightObeysPitch=false FlightVelocityUp=800.0 FlightVelocityDown=800.0 [Dodge Profile] Name=jump MaxTargetDistance=0.0 MinTargetDistance=0.0 ToggleLeftRight=false ToggleForwardBack=false MinLRTimeChange=0.2 MaxLRTimeChange=0.5 MinFBTimeChange=0.2 MaxFBTimeChange=0.5 DamageReactionChangesDirection=false DamageReactionChanceToIgnore=0.5 DamageReactionMinimumDelay=0.125 DamageReactionMaximumDelay=0.25 DamageReactionCooldown=1.0 DamageReactionThreshold=0.0 DamageReactionResetTimer=0.1 JumpFrequency=0.25 CrouchInAirFrequency=0.0 CrouchOnGroundFrequency=0.0 TargetStrafeOverride=Ignore TargetStrafeMinDelay=0.125 TargetStrafeMaxDelay=0.25 MinProfileChangeTime=0.0 MaxProfileChangeTime=0.0 MinCrouchTime=0.3 MaxCrouchTime=0.6 MinJumpTime=0.3 MaxJumpTime=0.6 LeftStrafeTimeMult=1.0 RightStrafeTimeMult=1.0 StrafeSwapMinPause=0.0 StrafeSwapMaxPause=0.25 BlockedMovementPercent=0.5 BlockedMovementReactionMin=0.125 BlockedMovementReactionMax=0.2 WaypointLogic=Ignore WaypointTurnRate=200.0 MinTimeBeforeShot=0.15 MaxTimeBeforeShot=0.25 IgnoreShotChance=0.0 [Weapon Profile] Name=bat Type=Hitscan ShotsPerClick=1 DamagePerShot=100.0 KnockbackFactor=4.0 TimeBetweenShots=0.1 Pierces=false Category=SemiAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=2.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=0.5 ReloadTimeFromPartial=0.5 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=25.0 DelayBeforeShot=0.0 ProjectileGraphic=Ball VisualLifetime=0.1 BounceOffWorld=false BounceFactor=0.5 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=1.0 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=4.0 RecoilNegatable=false DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=false AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=false MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=72.099998 ADSFOVScale=Horizontal (4:3) ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 WeaponModel=Heavy Surge Rifle WeaponAnimation=Primary UseIncReload=false IncReloadStartupTime=0.0 IncReloadLoopTime=0.0 IncReloadAmmoPerLoop=1 IncReloadEndTime=0.0 IncReloadCancelWithShoot=true WeaponSkin=Default ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000 SpreadDecayDelay=0.0 ReloadBeforeRecovery=true 3rdPersonWeaponModel=Pistol 3rdPersonWeaponSkin=Default ParticleMuzzleFlash=None ParticleWallImpact=Gunshot ParticleBodyImpact=Flare ParticleProjectileTrail=None ParticleHitscanTrace=None ParticleMuzzleFlashScale=1.0 ParticleWallImpactScale=1.0 ParticleBodyImpactScale=1.0 ParticleProjectileTrailScale=1.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=100.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,5.0 SpreadSCA=1.0,1.0,-1.0,5.0 SpreadMSA=1.0,1.0,-1.0,5.0 SpreadMCA=1.0,1.0,-1.0,5.0 SpreadSSH=0.0,0.1,0.0,0.0 SpreadSCH=1.0,1.0,-1.0,5.0 SpreadMSH=0.0,0.1,0.0,0.0 SpreadMCH=1.0,1.0,-1.0,5.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=false TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=1.0 AAMaxSpeed=360.0 AADeadZone=0.0 AAFOV=360.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.175 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Weapon Profile] Name=hands Type=Hitscan ShotsPerClick=1 DamagePerShot=100.0 KnockbackFactor=4.0 TimeBetweenShots=0.1 Pierces=false Category=SemiAuto BurstShotCount=1 TimeBetweenBursts=0.5 ChargeStartDamage=10.0 ChargeStartVelocity=X=500.000 Y=0.000 Z=0.000 ChargeTimeToAutoRelease=2.0 ChargeTimeToCap=1.0 ChargeMoveSpeedModifier=1.0 MuzzleVelocityMin=X=2000.000 Y=0.000 Z=0.000 MuzzleVelocityMax=X=2000.000 Y=0.000 Z=0.000 InheritOwnerVelocity=0.0 OriginOffset=X=0.000 Y=0.000 Z=0.000 MaxTravelTime=5.0 MaxHitscanRange=100000.0 GravityScale=1.0 HeadshotCapable=true HeadshotMultiplier=2.0 MagazineMax=0 AmmoPerShot=1 ReloadTimeFromEmpty=0.5 ReloadTimeFromPartial=0.5 DamageFalloffStartDistance=100000.0 DamageFalloffStopDistance=100000.0 DamageAtMaxRange=25.0 DelayBeforeShot=0.0 ProjectileGraphic=Ball VisualLifetime=0.1 BounceOffWorld=false BounceFactor=0.5 BounceCount=0 HomingProjectileAcceleration=0.0 ProjectileEnemyHitRadius=1.0 CanAimDownSight=false ADSZoomDelay=0.0 ADSZoomSensFactor=0.7 ADSMoveFactor=1.0 ADSStartDelay=0.0 ShootSoundCooldown=0.08 HitSoundCooldown=0.08 HitscanVisualOffset=X=0.000 Y=0.000 Z=-50.000 ADSBlocksShooting=false ShootingBlocksADS=false KnockbackFactorAir=4.0 RecoilNegatable=false DecalType=1 DecalSize=30.0 DelayAfterShooting=0.0 BeamTracksCrosshair=false AlsoShoot= ADSShoot= StunDuration=0.0 CircularSpread=true SpreadStationaryVelocity=0.0 PassiveCharging=false BurstFullyAuto=true FlatKnockbackHorizontal=0.0 FlatKnockbackVertical=0.0 HitscanRadius=0.0 HitscanVisualRadius=6.0 TaggingDuration=0.0 TaggingMaxFactor=1.0 TaggingHitFactor=1.0 RecoilCrouchScale=1.0 RecoilADSScale=1.0 PSRCrouchScale=1.0 PSRADSScale=1.0 ProjectileAcceleration=0.0 AccelIncludeVertical=false AimPunchAmount=0.0 AimPunchResetTime=0.05 AimPunchCooldown=0.5 AimPunchHeadshotOnly=false AimPunchCosmeticOnly=false MinimumDecelVelocity=0.0 PSRManualNegation=false PSRAutoReset=true AimPunchUpTime=0.05 AmmoReloadedOnKill=0 CancelReloadOnKill=false FlatKnockbackHorizontalMin=0.0 FlatKnockbackVerticalMin=0.0 ADSScope=No Scope ADSFOVOverride=72.099998 ADSFOVScale=Horizontal (4:3) ADSAllowUserOverrideFOV=true IsBurstWeapon=false ForceFirstPersonInADS=true ZoomBlockedInAir=false ADSCameraOffsetX=0.0 ADSCameraOffsetY=0.0 ADSCameraOffsetZ=0.0 QuickSwitchTime=0.0 WeaponModel=Heavy Surge Rifle WeaponAnimation=Primary UseIncReload=false IncReloadStartupTime=0.0 IncReloadLoopTime=0.0 IncReloadAmmoPerLoop=1 IncReloadEndTime=0.0 IncReloadCancelWithShoot=true WeaponSkin=Default ProjectileVisualOffset=X=0.000 Y=0.000 Z=0.000 SpreadDecayDelay=0.0 ReloadBeforeRecovery=true 3rdPersonWeaponModel=Pistol 3rdPersonWeaponSkin=Default ParticleMuzzleFlash=None ParticleWallImpact=Gunshot ParticleBodyImpact=Flare ParticleProjectileTrail=None ParticleHitscanTrace=None ParticleMuzzleFlashScale=1.0 ParticleWallImpactScale=1.0 ParticleBodyImpactScale=1.0 ParticleProjectileTrailScale=1.0 Explosive=false Radius=500.0 DamageAtCenter=100.0 DamageAtEdge=100.0 SelfDamageMultiplier=0.5 ExplodesOnContactWithEnemy=false DelayAfterEnemyContact=0.0 ExplodesOnContactWithWorld=false DelayAfterWorldContact=0.0 ExplodesOnNextAttack=false DelayAfterSpawn=0.0 BlockedByWorld=false SpreadSSA=1.0,1.0,-1.0,5.0 SpreadSCA=1.0,1.0,-1.0,5.0 SpreadMSA=1.0,1.0,-1.0,5.0 SpreadMCA=1.0,1.0,-1.0,5.0 SpreadSSH=0.0,0.1,0.0,0.0 SpreadSCH=1.0,1.0,-1.0,5.0 SpreadMSH=0.0,0.1,0.0,0.0 SpreadMCH=1.0,1.0,-1.0,5.0 MaxRecoilUp=0.0 MinRecoilUp=0.0 MinRecoilHoriz=0.0 MaxRecoilHoriz=0.0 FirstShotRecoilMult=1.0 RecoilAutoReset=false TimeToRecoilPeak=0.05 TimeToRecoilReset=0.35 AAMode=0 AAPreferClosestPlayer=false AAAlpha=1.0 AAMaxSpeed=360.0 AADeadZone=0.0 AAFOV=360.0 AANeedsLOS=true TrackHorizontal=true TrackVertical=true AABlocksMouse=false AAOffTimer=0.0 AABackOnTimer=0.0 TriggerBotEnabled=false TriggerBotDelay=0.0 TriggerBotFOV=1.0 StickyLock=false HeadLock=false VerticalOffset=0.0 DisableLockOnKill=false UsePerShotRecoil=false PSRLoopStartIndex=0 PSRViewRecoilTracking=0.45 PSRCapUp=9.0 PSRCapRight=4.0 PSRCapLeft=4.0 PSRTimeToPeak=0.175 PSRResetDegreesPerSec=40.0 UsePerBulletSpread=false PBS0=0.0,0.0 [Map Data] reflex map version 8 global entity type WorldSpawn String32 targetGameOverCamera end UInt8 playersMin 1 UInt8 playersMax 16 brush vertices -640.000000 96.000000 1200.000000 560.000000 96.000000 1200.000000 560.000000 96.000000 48.000000 -640.000000 96.000000 48.000000 -640.000000 -16.000000 1200.000000 560.000000 -16.000000 1200.000000 560.000000 -16.000000 48.000000 -640.000000 -16.000000 48.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 288.000000 112.000000 1184.000000 304.000000 112.000000 1184.000000 304.000000 112.000000 992.000000 288.000000 112.000000 992.000000 288.000000 96.000000 1184.000000 304.000000 96.000000 1184.000000 304.000000 96.000000 992.000000 288.000000 96.000000 992.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 48.000000 112.000000 704.000000 64.000000 112.000000 704.000000 64.000000 112.000000 544.000000 48.000000 112.000000 544.000000 48.000000 96.000000 704.000000 64.000000 96.000000 704.000000 64.000000 96.000000 544.000000 48.000000 96.000000 544.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -640.000000 336.000000 1200.000000 -480.000000 336.000000 1200.000000 -480.000000 336.000000 48.000000 -640.000000 336.000000 48.000000 -640.000000 96.000000 1200.000000 -480.000000 96.000000 1200.000000 -480.000000 96.000000 48.000000 -640.000000 96.000000 48.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -640.000000 624.000000 1200.000000 -480.000000 624.000000 1200.000000 -480.000000 336.000000 48.000000 -640.000000 336.000000 1200.000000 -640.000000 336.000000 48.000000 -480.000000 336.000000 1200.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 brush vertices -319.999969 336.000000 208.000000 -320.000000 336.000000 48.000000 -480.000031 336.000000 48.000031 -480.000000 336.000000 208.000031 -319.999969 96.000000 208.000000 -320.000000 96.000000 48.000000 -480.000031 96.000000 48.000031 -480.000000 96.000000 208.000031 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -320.000000 336.000000 848.000000 -240.000000 336.000000 848.000000 -240.000000 336.000000 48.000000 -320.000000 336.000000 48.000000 -320.000000 96.000000 848.000000 -240.000000 96.000000 848.000000 -240.000000 96.000000 48.000000 -320.000000 96.000000 48.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -79.999969 336.000000 208.000000 -79.999969 336.000000 48.000000 -240.000000 336.000000 48.000000 -240.000000 336.000000 208.000000 -79.999969 96.000000 208.000000 -79.999969 96.000000 48.000000 -240.000000 96.000000 48.000000 -240.000000 96.000000 208.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -159.999969 336.000000 848.000000 -159.999969 336.000000 368.000000 -240.000000 336.000000 368.000000 -240.000000 336.000000 848.000000 -159.999969 96.000000 848.000000 -159.999969 96.000000 368.000000 -240.000000 96.000000 368.000000 -240.000000 96.000000 848.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -160.000000 336.000000 1184.000000 -112.000000 336.000000 1184.000000 -112.000000 336.000000 368.000000 -160.000000 336.000000 368.000000 -160.000000 96.000000 1184.000000 -112.000000 96.000000 1184.000000 -112.000000 96.000000 368.000000 -160.000000 96.000000 368.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -480.000000 336.000000 1184.000000 -320.000000 336.000000 1184.000000 -320.000000 336.000000 368.000000 -480.000000 336.000000 368.000000 -480.000000 96.000000 1184.000000 -320.000000 96.000000 1184.000000 -320.000000 96.000000 368.000000 -480.000000 96.000000 368.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -159.999969 336.000000 1184.000000 -159.999969 336.000000 1008.000000 -320.000000 336.000000 1008.000000 -320.000000 336.000000 1184.000000 -159.999969 96.000000 1184.000000 -159.999969 96.000000 1008.000000 -320.000000 96.000000 1008.000000 -320.000000 96.000000 1184.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 48.000031 336.000000 1184.000000 48.000031 336.000000 704.000000 -112.000000 336.000000 704.000000 -112.000000 336.000000 1184.000000 48.000031 96.000000 1184.000000 48.000031 96.000000 704.000000 -112.000000 96.000000 704.000000 -112.000000 96.000000 1184.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -79.999969 336.000000 544.000000 -79.999969 336.000000 368.000000 -112.000000 336.000000 368.000000 -112.000000 336.000000 544.000000 -79.999969 96.000000 544.000000 -79.999969 96.000000 368.000000 -112.000000 96.000000 368.000000 -112.000000 96.000000 544.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 0.000031 336.000000 544.000000 0.000031 336.000000 48.000000 -80.000000 336.000000 48.000000 -80.000000 336.000000 544.000000 0.000031 96.000000 544.000000 0.000031 96.000000 48.000000 -80.000000 96.000000 48.000000 -80.000000 96.000000 544.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 160.000031 336.000000 208.000000 160.000031 336.000000 48.000000 0.000000 336.000000 48.000000 0.000000 336.000000 208.000000 160.000031 96.000000 208.000000 160.000031 96.000000 48.000000 0.000000 96.000000 48.000000 0.000000 96.000000 208.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 160.000000 336.000000 848.000000 240.000000 336.000000 848.000000 240.000000 336.000000 48.000000 160.000000 336.000000 48.000000 160.000000 96.000000 848.000000 240.000000 96.000000 848.000000 240.000000 96.000000 48.000000 160.000000 96.000000 48.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 400.000031 336.000000 208.000000 400.000000 336.000000 48.000000 239.999969 336.000000 48.000031 240.000000 336.000000 208.000031 400.000031 96.000000 208.000000 400.000000 96.000000 48.000000 239.999969 96.000000 48.000031 240.000000 96.000000 208.000031 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 400.000000 336.000000 1200.000000 560.000000 336.000000 1200.000000 560.000000 336.000000 48.000000 400.000000 336.000000 48.000000 400.000000 96.000000 1200.000000 560.000000 96.000000 1200.000000 560.000000 96.000000 48.000000 400.000000 96.000000 48.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 400.000000 624.000000 1200.000000 560.000000 624.000000 1200.000000 560.000000 336.000000 48.000000 400.000000 336.000000 1200.000000 400.000000 336.000000 48.000000 560.000000 336.000000 1200.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 4 2 5 0x00000000 brush vertices 32.000031 336.000000 544.000000 32.000031 336.000000 368.000000 0.000000 336.000000 368.000000 0.000000 336.000000 544.000000 32.000031 96.000000 544.000000 32.000031 96.000000 368.000000 0.000000 96.000000 368.000000 0.000000 96.000000 544.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 32.000000 336.000000 1184.000000 80.000000 336.000000 1184.000000 80.000000 336.000000 368.000000 32.000000 336.000000 368.000000 32.000000 96.000000 1184.000000 80.000000 96.000000 1184.000000 80.000000 96.000000 368.000000 32.000000 96.000000 368.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 160.000031 336.000000 848.000000 160.000031 336.000000 368.000000 80.000000 336.000000 368.000000 80.000000 336.000000 848.000000 160.000031 96.000000 848.000000 160.000031 96.000000 368.000000 80.000000 96.000000 368.000000 80.000000 96.000000 848.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 240.000031 336.000000 1184.000000 240.000031 336.000000 1008.000000 80.000000 336.000000 1008.000000 80.000000 336.000000 1184.000000 240.000031 96.000000 1184.000000 240.000031 96.000000 1008.000000 80.000000 96.000000 1008.000000 80.000000 96.000000 1184.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -480.000000 416.000000 544.000000 400.000000 416.000000 544.000000 400.000000 416.000000 368.000000 -480.000000 416.000000 368.000000 -480.000000 336.000000 544.000000 400.000000 336.000000 544.000000 400.000000 336.000000 368.000000 -480.000000 336.000000 368.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -480.000000 496.000000 848.000000 400.000000 496.000000 848.000000 400.000000 496.000000 704.000000 -480.000000 496.000000 704.000000 -480.000000 336.000000 848.000000 400.000000 336.000000 848.000000 400.000000 336.000000 704.000000 -480.000000 336.000000 704.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -480.000000 576.000000 1184.000000 400.000000 576.000000 1184.000000 400.000000 576.000000 1008.000000 -480.000000 576.000000 1008.000000 -480.000000 336.000000 1184.000000 400.000000 336.000000 1184.000000 400.000000 336.000000 1008.000000 -480.000000 336.000000 1008.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -320.000000 416.000000 368.000000 -240.000000 416.000000 368.000000 -320.000000 336.000000 48.000000 -320.000000 336.000000 368.000000 -240.000000 336.000000 48.000000 -240.000000 336.000000 368.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 4 5 0x00000000 brush vertices -80.000000 416.000000 368.000000 0.000000 416.000000 368.000000 -80.000000 336.000000 48.000000 -80.000000 336.000000 368.000000 0.000000 336.000000 48.000000 0.000000 336.000000 368.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 4 5 0x00000000 brush vertices 160.000000 416.000000 368.000000 240.000000 416.000000 368.000000 160.000000 336.000000 48.000000 160.000000 336.000000 368.000000 240.000000 336.000000 48.000000 240.000000 336.000000 368.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 4 5 0x00000000 brush vertices 240.000000 336.000000 1184.000000 400.000000 336.000000 1184.000000 400.000000 336.000000 368.000000 240.000000 336.000000 368.000000 240.000000 96.000000 1184.000000 400.000000 96.000000 1184.000000 400.000000 96.000000 368.000000 240.000000 96.000000 368.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -480.000000 496.000000 704.000000 -112.000000 496.000000 704.000000 -480.000000 416.000000 368.000000 -480.000000 416.000000 704.000000 -112.000000 416.000000 368.000000 -112.000000 416.000000 704.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 4 5 0x00000000 brush vertices 32.000000 496.000000 704.000000 400.000000 496.000000 704.000000 32.000000 416.000000 368.000000 32.000000 416.000000 704.000000 400.000000 416.000000 368.000000 400.000000 416.000000 704.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 4 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 0 1 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 3 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 4 5 0x00000000 brush vertices -160.000000 576.000000 1008.000000 96.000000 576.000000 1008.000000 96.000000 496.000000 1008.000000 -160.000000 496.000000 704.000000 -160.000000 496.000000 1008.000000 96.000000 496.000000 704.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 2 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 4 3 5 0x00000000 brush vertices 240.000000 576.000000 1008.000000 400.000000 576.000000 1008.000000 400.000000 496.000000 1008.000000 240.000000 496.000000 704.000000 240.000000 496.000000 1008.000000 400.000000 496.000000 704.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 2 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 4 3 5 0x00000000 brush vertices -480.000000 576.000000 1008.000000 -320.000000 576.000000 1008.000000 -320.000000 496.000000 1008.000000 -480.000000 496.000000 704.000000 -480.000000 496.000000 1008.000000 -320.000000 496.000000 704.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 2 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 4 3 5 0x00000000 brush vertices -480.000000 624.000000 1200.000000 400.000000 624.000000 1200.000000 400.000000 576.000000 1200.000000 -480.000000 576.000000 1008.000000 -480.000000 576.000000 1200.000000 400.000000 576.000000 1008.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 2 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 0 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 0 1 5 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 4 3 5 0x00000000 brush vertices -640.000000 0.000000 48.000000 560.000000 0.000000 48.000000 560.000000 0.000000 -736.000000 -640.000000 0.000000 -736.000000 -640.000000 -16.000000 48.000000 560.000000 -16.000000 48.000000 560.000000 -16.000000 -736.000000 -640.000000 -16.000000 -736.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -112.000000 176.000000 704.000000 32.000000 176.000000 704.000000 32.000000 176.000000 544.000000 -112.000000 176.000000 544.000000 -112.000000 96.000000 704.000000 32.000000 96.000000 704.000000 32.000000 96.000000 544.000000 -112.000000 96.000000 544.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices 80.000000 256.000000 1008.000000 240.000000 256.000000 1008.000000 240.000000 256.000000 848.000000 80.000000 256.000000 848.000000 80.000000 96.000000 1008.000000 240.000000 96.000000 1008.000000 240.000000 96.000000 848.000000 80.000000 96.000000 848.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 brush vertices -320.000000 256.000000 1008.000000 -160.000000 256.000000 1008.000000 -160.000000 256.000000 848.000000 -320.000000 256.000000 848.000000 -320.000000 96.000000 1008.000000 -160.000000 96.000000 1008.000000 -160.000000 96.000000 848.000000 -320.000000 96.000000 848.000000 faces 0.000000 0.000000 1.000000 1.000000 0.000000 0 1 2 3 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 6 5 4 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 2 1 5 6 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 0 3 7 4 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 3 2 6 7 0x00000000 0.000000 0.000000 1.000000 1.000000 0.000000 1 0 4 5 0x00000000 entity type PlayerSpawn Vector3 position -32.000000 0.000000 -368.000000 Bool8 teamB 0 entity type CameraPath UInt8 posLerp 2 UInt8 angleLerp 2 entity type Effect Vector3 position 0.000000 256.000000 0.000000 String64 effectName internal/misc/reflectionprobe entity type Target Vector3 position 320.000000 256.000000 320.000000 Vector3 angles -135.000000 30.000000 0.000000 String32 name end entity type PlayerSpawn Vector3 position -400.000000 96.000000 288.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -160.000000 96.000000 288.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 80.000000 96.000000 288.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 320.000000 96.000000 288.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -32.000000 176.000000 624.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position 160.000000 256.000000 928.000000 Bool8 teamA 0 entity type PlayerSpawn Vector3 position -240.000000 256.000000 928.000000 Bool8 teamA 0
1f21f4c7b3d3de148f90299870c28f5a19412ee2
449d555969bfd7befe906877abab098c6e63a0e8
/1682/CH4/EX4.7/Exa4_7.sce
0edb0a0f44f2dfc974159b8357c28e5ea79db654
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
463
sce
Exa4_7.sce
//Exa 4.7 clc; clear; close; //Given data : P=12000;//in Rs A1=10000;//in Rs G=1000;//in Rs i=18;//in % per annum n=10;//in years //Formula : (P/A,i,n)=(((1+i/100)^n)-1)/((i/100)*(1+i/100)^n) //Formula : (A/G,i,n) :(((1+i/100)^n)-i*n/100-1)/(((i/100)*(1+i/100)^n)-i/100) PW=-P+(A1+G*(((1+i/100)^n)-i*n/100-1)/(((i/100)*(1+i/100)^n)-i/100))*(((1+i/100)^n)-1)/((i/100)*(1+i/100)^n);//in RS disp(PW,"The present worth of the small business in RS. : ");
47de557a20476bc344a58f95ca57342ea8a4c11f
2e676e3b1cebfbb9d20f9b935ceacd507c57d36a
/Octave/octave-4.2.1/share/octave/4.2.1/etc/tests/fixed/complex.tst
ce602487237f9358c14d2885a38a46deadacbc20
[]
no_license
vohrahul/ML-ang-coursera
239469e763b290aa178b7aa8a86eda08e4e7f4be
4c24fd2ecfb9f3de7df15e3a9f75627f782f9915
refs/heads/master
2022-12-28T03:45:54.810173
2020-10-16T12:33:25
2020-10-16T12:33:25
304,620,441
1
0
null
null
null
null
UTF-8
Scilab
false
false
2,151
tst
complex.tst
## Copyright (C) 2016-2017 Rik Wehbring ## ## This file is part of Octave. ## ## Octave is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3 of the License, or (at ## your option) any later version. ## ## Octave is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, see ## <http://www.gnu.org/licenses/>. ## Test ordering of complex values by magnitude and then by phase %!test %! x = [0 i 1+i 2 3i 3+4i]; %! assert (sort (x, "descend"), fliplr (x)); %! assert (sort (single (x), "descend"), fliplr (single (x))); %!test %! x = [1, -1, i, -i]; %! xs = [-i, 1, i, -1]; %! assert (sort (x), xs); %! assert (sort (x, "descend"), fliplr (xs)); %! assert (sort (single (x)), single (xs)); %! assert (sort (single (x), "descend"), fliplr (single (xs))); ## bug #44071, issorted incorrect because it uses different sort routine. %!assert (issorted ([1, -1, i, -i]), false) %!assert (issorted (single ([1, -1, i, -i])), false) ## bug #43313, -1 is both '>' and '==' to (-1 - 0i) %!test %! assert (complex(-1,0) == complex(-1,-0), true); %! assert (complex(-1,0) > complex(-1,-0), false); %! assert (complex(-1,0) < complex(-1,-0), false); ## Test that sort and issorted both agree on boundary case %!test %! x = [complex(-1,0), complex(-1,-0), i, -i, 1]; %! xs = sort (x); %! xf = single (x); %! xfs = sort (xf); %! assert (issorted (xs)); %! assert (issorted (xfs)); %! assert (double (xfs), xs); ## Finally, test that sort and issorted agree on NaNs %!test %! x = [complex(NaN,-1), complex(NaN,NaN), ... %! complex(-1,0), complex(-1,-0), i, -i, 1, ... %! complex(1,NaN)]; %! xs = sort (x); %! xf = single (x); %! xfs = sort (xf); %! assert (issorted (xs)); %! assert (issorted (xfs)); %! assert (double (xfs), xs);
95d3ae0c248ca813a26134c0009d841a25969d66
7d5f639d96c00f6068c51c15df7b40cf8e959f09
/code/ressources_q11aq14.sci
9c53c78381c41cd4597bb7516ec4d5095b53a372
[]
no_license
XAMEUS/MN
daf13aac1f92cf5137e55189e8d23bb42fe1a747
36e3f0e34c07641cdee4b401a98478822e0dee46
refs/heads/master
2021-03-24T11:50:44.826039
2017-05-02T19:54:26
2017-05-02T19:54:26
86,677,617
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,735
sci
ressources_q11aq14.sci
a = 0.8 l = 10 T = 60 n = 2000 delta_x = 2*l / (n + 1) n_t = 3000 delta_t = T / n_t t_inter = 2 * T / 3 t_fin = T mu = delta_t * (n+1)**2 / (2 * l)**2 F_cible = [-0.1, -0.18] function c=C(x, x_d) c = 1 - a * exp(-(x - x_d)**2 / 4) endfunction function c=Ci(i, x_d) c = C(i * delta_x - l, x_d) endfunction function [D, SD]=gen_matriceA(x_d) D = zeros(n, 1) SD = zeros(n-1, 1) for i=1:n-1 SD(i) = -Ci(i+1/2, x_d) D(i) = Ci(i-1/2, x_d) + Ci(i+1/2, x_d) end D(n) = Ci(n-1/2, x_d) + Ci(n+1/2, x_d) endfunction // Question 11 function res = flux(x_d) res = zeros(2) [A_D, A_SD] = gen_matriceA(x_d) M_D = ones(n, 1) + 0.5 * mu * A_D M_SD = 0.5 * mu * A_SD N_D = ones(n, 1) - 0.5 * mu * A_D N_SD = - 0.5 * mu * A_SD [d, m] = factorisation_cholesky(M_D, M_SD) U_actuel = zeros(n, 1) for t = 1:n_t Y = zeros(n, 1) Y(1) = N_D(1) * U_actuel(1) + N_SD(1) * U_actuel(2) for i=2:n-1 Y(i) = N_SD(i-1) * U_actuel(i-1) + N_D(i) * U_actuel(i) + N_SD(i) * U_actuel(i+1) end Y(n) = N_D(n) * U_actuel(n) + N_SD(n-1) * U_actuel(n-1) // B plus constante. Y(1) = Y(1) + mu * Ci(1/2, x_d) * (t**2 + (t-1)**2) / 2 / (n_t**2) U_actuel = remonte(d, m, descente(d, m, Y)) if t == int(2 * n_t / 3) then res(1) = (Ci(1/2, x_d) * (U_actuel(1) - (t / n_t)**2) / delta_x) - (delta_x * t) / (T * n_t) end end res(2) = (Ci(1/2, x_d) * (U_actuel(1) - (t / n_t)**2) / delta_x) - (delta_x * t) / (T * n_t) endfunction //Question 12 function norme=J(x_d) res = flux(x_d) norme = ((res(1) - F_cible(1))**2 + (res(2) - F_cible(2))**2) / (F_cible(1)**2 + F_cible(2)**2) endfunction //Question 13 function res=dichotomie(funct, epsilon, x_min, x_max) while(x_max - x_min >= epsilon) Ja = funct(x_min + (x_max-x_min) / 4) Jb = funct(x_min + (x_max-x_min) / 2) Jc = funct(x_min + (x_max-x_min) * 3 / 4) if Ja <= Jb then x_max = x_min + (x_max-x_min) / 2 elseif Jb <= Jc then swpa = x_min + (x_max-x_min) / 4 swpb = x_min + (x_max-x_min) * 3 / 4 x_min = swpa x_max = swpb else x_min = x_min + (x_max-x_min) / 2 end end res = (x_max + x_min) / 2 endfunction //Question 14 function res = derive(funct, x) h=1e-3 res =(funct(x+h) - funct(x-h)) / (2 * h) endfunction function res = newton(epsilon, x_init) res = x_init while(abs(derive(J, res)) >= epsilon) f_xk = flux(res) fd_xk = derive(flux, res) delta = - fd_xk' * (f_xk - F_cible') / (fd_xk' * fd_xk) res = res + delta end endfunction
b9c4d3fbea4954b207764326d549a17d917f038f
449d555969bfd7befe906877abab098c6e63a0e8
/2951/CH5/EX5.2/ex_5_2.sce
8eceeb2dff371da09c9d8c579ca37b290a39b2d0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
436
sce
ex_5_2.sce
clc; clear; //x(t)=2sin(4000*pi*t)+3sin(5000*pi*t)+4sin(8000*pi*t) fh=8000/2; fl=4000/2; disp(fh,"a) Highest Frequency component(in Hz)"); disp(fl,"Lowest Frequency component(in Hz)"); fs=2*fh; disp(fs," Minimum Sampling frequency(in Hz)"); Bw=fh-fl; disp(Bw," b)Bandwidth(in Hz) is"); n=fh/Bw; disp(n,"integer factor"); Fs_new=2*fh/n; disp(Fs_new,"Required Sampling frequency in this case(in Hz) is");
f1ec86d16f5d1280d1133502706eb121f2c7f303
449d555969bfd7befe906877abab098c6e63a0e8
/1553/CH24/EX24.22/24Ex22.sce
99b91e155c8c2cfb7fcd006dfaf74d454ea433b1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
206
sce
24Ex22.sce
//chapter 24 Ex 22 clc; clear; close; side=20; diagonal1=24; x=sqrt(side^2-(diagonal1/2)^2); diagonal2=2*x; area=(1/2)*(diagonal1*diagonal2); mprintf("The area of rhombus is %d square cm",area);
523d55f16b09e5120fa32a9fd5a5edea9bfe8915
7ca4d14804b833145ecf38070ff4e4b399cf4bfb
/tst/presentation_time.sce
195d1239cf96fc8dc2f6e40046b9ca16c8bb60d2
[]
no_license
gsz050769/jsqsce
6154e5d9fcd5b7884df7463963b982d26ba57942
eb6881fa08ec6f8eea3355d689f3be91afd7bbfe
refs/heads/master
2023-08-21T06:30:18.493109
2021-10-21T13:23:27
2021-10-21T13:23:27
343,663,868
0
0
null
null
null
null
UTF-8
Scilab
false
false
2,491
sce
presentation_time.sce
// Commands, syntax: // STATUS: = get status message // S_MSG: = setMsg <sip_id>|<a_msg_id>|<prio>|<ttl>|text| // S_MSG_FILE: = setMsg <sip_id>|<a_msg_id>|<file>| setMsg from <file> // D_MSG: = delMsg <sip_id>|<a_msg_id> // POS_BLE: = ble position req <sip_id> // POS_BLE: = dect position req <sip_id> // WAIT: = sleep <seconds> // RESTART: = start script again // END: = end scenrio here // LOG: = free text for console log outputput <text> +++++++++++++++++++++++++++ LOG: presentation_time test cases start +++++++++++++++++++++++++++ WAIT: 1 +++++++++++++++++++++++++++ LOG:determine api status +++++++++++++++++++++++++++ STATUS: WAIT: 2 +++++++++++++++++++++++++++ LOG:delete message +++++++++++++++++++++++++++ D_MSG:4021|4021_1| WAIT: 1 D_MSG:4021|4021_2| WAIT: 1 D_MSG:4021|4021_3| WAIT: 1 D_MSG:4021|4021_4| WAIT: 1 D_MSG:4021|4021_5| WAIT: 1 D_MSG:4021|4021_6| WAIT: 1 D_MSG:4021|4021_7| WAIT: 1 D_MSG:4021|4021_8| WAIT: 1 D_MSG:4021|4021_9| WAIT: 1 D_MSG:4021|4021_10| WAIT: 2 +++++++++++++++++++++++++++ LOG: presentation time =10 +++++++++++++++++++++++++++ S_MSG_FILE:4021|4021_1|./tst/msg/tst_29.json| +++++++++++++++++++++++++++ WAIT: 20 +++++++++++++++++++++++++++ LOG: presentation time =20 +++++++++++++++++++++++++++ S_MSG_FILE:4021|4021_2|./tst/msg/tst_30.json| +++++++++++++++++++++++++++ WAIT: 30 +++++++++++++++++++++++++++ LOG: presentation time =30 +++++++++++++++++++++++++++ S_MSG_FILE:4021|4021_3|./tst/msg/tst_31.json| +++++++++++++++++++++++++++ WAIT: 40 +++++++++++++++++++++++++++ LOG: presentation time =40 +++++++++++++++++++++++++++ S_MSG_FILE:4021|4021_4|./tst/msg/tst_32.json| +++++++++++++++++++++++++++ WAIT: 50 +++++++++++++++++++++++++++ LOG: presentation time =1000000000 +++++++++++++++++++++++++++ S_MSG_FILE:4021|4021_5|./tst/msg/tst_33.json| +++++++++++++++++++++++++++ WAIT: 10 +++++++++++++++++++++++++++ LOG: presentation time =-1 +++++++++++++++++++++++++++ S_MSG_FILE:4021|4021_6|./tst/msg/tst_34.json| +++++++++++++++++++++++++++ WAIT: 10 +++++++++++++++++++++++++++ LOG: presentation time = empty +++++++++++++++++++++++++++ S_MSG_FILE:4021|4021_7|./tst/msg/tst_35.json| +++++++++++++++++++++++++++ WAIT: 50 +++++++++++++++++++++++++++ LOG: presentation time not available +++++++++++++++++++++++++++ S_MSG_FILE:4021|4021_8|./tst/msg/tst_36.json| +++++++++++++++++++++++++++ WAIT: 50 +++++++++++++++++++++++++++ LOG:end test case presentation time +++++++++++++++++++++++++++ END:
8fd6ffd86fe149604649b20bce48e15baee47c77
449d555969bfd7befe906877abab098c6e63a0e8
/1442/CH3/EX3.6/3_6.sce
a004c28773ca33d12b30019f0478fac753467734
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
137
sce
3_6.sce
clc //initialisation of variables V= 12 //km/L //CALCULATIONS MPG= V*3.7854/1.609 //RESULTS printf ('car mileage = %.2f MPG',MPG)
e53d8c11c7a1f40644fb425200f2c17de9234113
449d555969bfd7befe906877abab098c6e63a0e8
/1523/CH3/EX3.42/3_42.sce
8c23b241df65449722c44a1601a5b50eacc68c1a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
695
sce
3_42.sce
//Network Theorem 1 //page no-3.48 //example3.42 //calculation of Vth disp("Removing the variable resistor RL from the network:"); disp("I1=50");....//equation 1 disp("Applying KVL to mesh 2:"); disp("5*I1-10*I2=0");....//equation 2 A=[1 0;5 -10]; B=[50 0]' X=inv(A)*B; disp(X); disp("I2 = 25 A"); disp("Writing Vth equation,"); a=25; v=3*a; printf("\nVth = %.f V",v); //calculation of Rth disp("replacing the current source of 50 A by an open circuit "); x=7; y=3; m=(x*y)/(x+y); printf("\nRth = %.1f Ohm",m); //calculation of RL disp("For maximum power transfer"); printf("\nRth = RL =%.1f Ohm",m); //calculation of Pmax n=(v^2)/(4*m); printf("\nPmax = %.2f W",n);
88a73d5a10ab6d8ea22be70764bde06e3e53ee1f
449d555969bfd7befe906877abab098c6e63a0e8
/3137/CH4/EX4.2/Ex4_2.sce
23f49ad648b3ebd9285acd8dd173d8ec42dd2443
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
517
sce
Ex4_2.sce
//Initilization of variables F=[20;-10;30] //N //co-ordinates in meters a=2 //m b=4 //m c=7 //m d=3 //m e=2 //m f=4 //m //Calculations R=F(1,1)+F(2,1)+F(3,1) //N M_o=F(1,1)*a+F(2,1)*b+F(3,1)*c //N-m x=M_o/R //m M_x=-F(3,1)*e-F(1,1)*d+F(2,1)*f //N-m z=-M_x/R //m //Result clc printf('The resultant is %f N \n',R) printf('The moment about point O is %f N-m \n',M_o) printf('The position of R is at %f from origin m \n',x) printf('The moment is %f N-m\n',M_x) printf('The z co-ordinate is %f m',z)
40a424ce9cafea66ec3e82ccdedc94456237af31
449d555969bfd7befe906877abab098c6e63a0e8
/764/CH4/EX4.3.b/solution4_3.sce
5f3fd332a555cf67bebd971252136f57dc12bef8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,077
sce
solution4_3.sce
//Obtain path of solution file path = get_absolute_file_path('solution4_3.sce') //Obtain path of data file datapath = path + filesep() + 'data4_3.sci' //Clear all clc //Execute the data file exec(datapath) //Calculate permissible stresses for cotter (N/mm2) //Tensile stress sigma sigma = Syt/fs //Yield strength in shear for cotter Ssy (N/mm2) Ssy = (50/100)*Syt //Shear stress tau tau = Ssy/fs //Shear failure criterion //Calculate thickness of cotter t (mm) t = sqrt((P * 1000)/(2 * 5 * tau)) //Calculate width of cotter b (mm) b = 5 * t //Bending failure criterion //Calculate thickness of cotter t1 (mm) t1 = ((((P * 1000)/2)*((d2/4) + ((d4 - d2)/6))*(5/2))/((100 * (5^3))/12))^(1/3) //Round up t1 t1 = ceil(t1) //Calculate width of cotter b1 (mm) b1 = 5 * t1 //Print results printf('\nShear failure criterion\n') printf('\nThickness of cotter(t) = %f mm\n',t) printf('\nWidth of cotter(b) = %f mm\n',b) printf('\nBending failure criterion\n') printf('\nThickness of cotter(t1) = %f mm\n',t1) printf('\nWidth of cotter(b1) = %f mm\n',b1)
3c61f51d0b4ab62be02848a078a42896b0d02355
449d555969bfd7befe906877abab098c6e63a0e8
/3630/CH7/EX7.8/Ex7_8.sce
0b4076b979e1317a4d788ece969b70f4784863de
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
262
sce
Ex7_8.sce
clc; Vcc=20; //volt R2=1000; //ohm R1=6800; //ohm Vb=(R2/(R1+R2))*Vcc; //volt//voltage divider rule Ve=Vb-0.7; //volt Re=1000; //ohm Ie=Ve/Re; //Ampere Hfe=50; Ib=Ie/(Hfe+1); //Ampere disp('Amperes',Ib,"Ib=");//The answers vary due to round off error
7bcef199119bca766ac1f1a7945faf15d6e3d963
389bd4af3bf5a0f54f51e8aafea5035f568ba445
/moduloyurt.sce
52361a9039e3950769082638bba96110dc0a3ff5
[]
no_license
esraatlici/Bilgisayar-Destekli-Matematik
d47f057d9cb7ee987e367c67f8923cfcf02342d8
dae1079f60fc7e0d3b54802b4cbed9182b52fcd7
refs/heads/main
2022-12-25T11:14:25.575530
2020-10-05T15:09:58
2020-10-05T15:09:58
301,447,895
0
0
null
null
null
null
UTF-8
Scilab
false
false
184
sce
moduloyurt.sce
function out=moduloluyurt(x,m) l=length(x); n=1; for i=1:1:l if modulo(x(i),e)==0 v(n)=x(i); n=n+1; end end out=v; endfunction
ec6f7b9e727ad8e83c31ebb12587779ef954f23a
449d555969bfd7befe906877abab098c6e63a0e8
/821/CH5/EX5.24/5_24.sce
8fc32bffb6610f133f481643c5e4427bf3771adc
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
592
sce
5_24.sce
T1=300;//initial temperature in kelvin// T2=600;//final temperature in kelvin// T3=373;//initial temperature in kelvin// T4=746;//final temperature in kelvin// Cv=6.09;//molar heat capacity in cal per deg// dS2=Cv*2.303*log10(T2/T1);//change in entropy for temperature change between 300k to 600k// printf('Change in entropy for temperature change between 300k to 600k=dS2=%fcal per deg',dS2); dS4=Cv*2.303*log10(T4/T3);//change in entropy for temperature change between 373k to 746k// printf('\nChange in entropy for temperature change between 373k to 746k=dS4=%fcal per deg',dS4);
ead9dec331b1fec60c2a9a6704a1b6f36e41bc6f
449d555969bfd7befe906877abab098c6e63a0e8
/2411/CH5/EX5.19/Ex5_19.sce
d305c9b7cacf375b81c6791369f5dc1e943a4748
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
778
sce
Ex5_19.sce
// Scilab Code Ex5.19: Page-294 (2008) clc; clear; h = 6.62e-034; // Planck's constant, Js e = 1.602e-019; // Energy equivalent of 1 eV, J m = 1.67e-027; // Rest mass of a proton, kg r = 5e-015; // Radius of the nucleus, m delta_x = 2*r; // Minimum uncertainty in position of the proton, m delta_p = h/(2*%pi*delta_x); // Minimum uncertainty in proton's momentum, kg-m/s KE = delta_p^2/(2*m); // Minimum kinetic emergy of the proton, J printf("\nThe minimum uncertainty in momentum of the proton = %4.2e kg-m/s", delta_p); printf("\nThe minimum kinetic emergy of the proton = %5.3f MeV", KE/(e*1e+006)); // Result // The minimum uncertainty in momentum of the proton = 1.05e-020 kg-m/s // The minimum kinetic emergy of the proton = 0.207 MeV
51df74ccd0138890afa492b825edb675e4f2c6f2
13d93c2922005af35056d015f1ae3ebebe05ee31
/scilab/math/graph/data/main.sce
00497ebc3c92177ec8a974cf37a47d7d1d4856d0
[]
no_license
scls19fr/openphysic
647cc2cdadbdafd050d178e02bc3873bd2b07445
67bdb548574f4feecb99b60995238f12f4ef26da
refs/heads/master
2021-04-30T23:16:26.197961
2020-11-16T20:21:17
2020-11-16T20:21:17
32,207,155
1
1
null
null
null
null
UTF-8
Scilab
false
false
269
sce
main.sce
clear(); // effacer les variables M=fscanfMat('data.txt'); // lire les donnees x=M(:,1); // recuperation de la 1ere colonne : x y=M(:,2); // recuperation de la 2ieme colonne : y [a,b,sig]=reglin(x',y') // regression lineaire ylin=a*x+b plot(x,[y ylin]) // trace
703d00d613fbbe558732e9ab6149dffca45854e0
b9602336613b26d0b9c22a09d219c0ed8e158b4e
/Examples/Examples_Mat/ceil.sce
a03db01e6d632e57ac2eea78268e76fc7a08e6cf
[ "BSD-2-Clause" ]
permissive
CEG-MCA-Scilab-Hackathon/Scilab_Armadillo_Toolbox
d0a366f5f058ee45d3c4be7a41e08ed419d4b7cd
70c97cda4e0dd54df0a638e9b99f380c09ffa37e
refs/heads/master
2022-12-11T01:28:28.742041
2020-08-26T12:24:27
2020-08-26T12:24:27
290,481,428
0
0
null
null
null
null
UTF-8
Scilab
false
false
99
sce
ceil.sce
// Calculating the ceil. y = [1.2, 1, 1.9; 4, 2.6, 5; 2.3, 8, 7]; ceilres = armaMat("ceil",y)
0beeffe5808e84936ce08a63f6ca095e148977c7
449d555969bfd7befe906877abab098c6e63a0e8
/3647/CH4/EX4.3/ex4_3.sce
35106883a626ac6b167eca508356da1cca0720d7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
475
sce
ex4_3.sce
//Solutions to Problems In applied mechanics //A N Gobby clear all; clc //initialisation of variables w=20//lbf p=12//ft/s v1=15//ft/s g=32.2//ft v2=10//ft/s d1=6//in d2=9//in a=10.82//in //CALCULATIONS Um=(v2*p)/sqrt(a^2-d2^2)//sec^-1 P=2*%pi/Um//sec V=w*a//in/s M=w^2*a/p//ft/s F=(w/g)*M//lbf //RESULTS printf('the velocity=% f in',a) printf('periodic time=% f sec',P) printf('the maximum velocity=% f in/s',V) printf('maximum acceleration=% f lbf',F)
fc2b147f338e404b5eedddec5702e8956484618e
05db16b4f57b0182fa452e2c11554c3de6fff271
/branches/vac4.52mkg_24_06_2010/scilab/str2arr.sci
f667a8009d7e7e829c6057f3a6414d73fdf782bc
[]
no_license
SpungMan/smaug-all
09b4fcf6fcec2fc7be1fa85c5c7f2d68c79e504b
01df12e98c734529ff984662badc26eaa3a9138b
refs/heads/master
2021-11-29T14:09:47.094457
2018-06-08T09:48:05
2018-06-08T09:48:05
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
1,414
sci
str2arr.sci
function [arr,n] = str2arr(str,nn) //function [arr,n] = str2arr(str) // Ouput variables initialisation (not found in input variables) arr=[]; n=[]; // Number of arguments in function call [%nargout,%nargin] = argn(0) // Display mode mode(0); // Display warning for floating point exception ieee(1); // Form a string array from str. In str elements are separated by spaces. // arr=str2arr(str) // [arr,n]=str2arr(str) // arr=str2arr(str,nn) // The optional nn argument extends the string array arr to have nn elements, // and fills up the rest of arr with the last element. The optional n output // argument returns the number of elements defined by str. l = max(size(mtlb_double(str))); n = 0; i = 1; while i<=l while mtlb_isspace(mtlb_e(str,i)) i = i+1; if i>l then break,end; end; if i>l then break,end; i0 = i; while ~mtlb_isspace(mtlb_e(str,i)) i = i+1; if i>l then break,end; end; if n==0 then arr = mtlb_e(str,i0:i-1); else arr = str2mat(arr,mtlb_e(str,i0:i-1)); end; n = n+1; end; if n==0 then arr = " "; n = 1; end; if %nargin==2 then //nn=argn(2); for i = mtlb_imp(n+1,mtlb_double(nn)) arr = str2mat(arr,arr(n,:)); end; if mtlb_logic(nn,"<",n) then // !! L.41: string output can be different from Matlab num2str output. disp("Warning: more than "+string(nn)+" values defined by string: "+str); end; end; endfunction
4d56c8bc2a338e5f68eb800f47f72d559930b235
449d555969bfd7befe906877abab098c6e63a0e8
/2168/CH3/EX3.11/Chapter3_example11.sce
4b1557a68e28b58fa20e01584ad5e4a2de461f8e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
545
sce
Chapter3_example11.sce
clc clear d=0.25//Diameter of the cylinder in m L=0.35//Stroke in m Cv=1500//Clearance volume in c.c s=5//cut off ratio takes place at 5 percent of stroke a=1.4//Explosion ratio g=1.4//Ratio of specific heats for air //Calculations Vs=(3.14/4)*d^2*L//Stroke volume in m^3 r=(Vs*10^6+Cv)/Cv//Compression ratio k=(Cv+((s/100)*Vs*10^6))/Cv//Cut off ratio na=(1-((1/(r^(g-1)))*((a*k^g-1)/((a-1)+a*g*(k-1)))))*100//Air standard efficiency in percent //Output printf('The air standard efficiency of the engine is %3.1f percent',na)
26d47aec21bce8deacf18ee0c0f5b0e8d80e60e8
449d555969bfd7befe906877abab098c6e63a0e8
/575/DEPENDENCIES/763.sci
a1dc497a42f8c1d8bda8491e37b16ebacb3799e7
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
65
sci
763.sci
m3=1150 //Kg/h H3=2676 //KJ/Kg H2=3074 //KJ/Kg H1=3278 //KJ/Kg
3ab19ec52f92f1c0186cc9aa8f69dcaea2e0e932
449d555969bfd7befe906877abab098c6e63a0e8
/2201/CH9/EX9.30/ex9_30.sce
6930bbe0e42c1a7b331f21f07fad23fef6c402eb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
620
sce
ex9_30.sce
// Exa 9.30 clc; clear; close; // Given data I_DD= 20;// in mA R2 = 10;// in k ohm R1 = 30;// in k ohm R_S= 1.2;// in k ohm R_D= 500*10^-3;// in k ohm V_DD = 12;// in V Vp= -6;// in V V_G = (R2/(R2+R1))*V_DD;// in V I_D= poly(0,'I_D') V_GS= V_G-I_D*R_S;// in V I_D=I_D-I_DD*(1-V_GS/Vp)^2; I_D= roots(I_D);// in mA I_D= I_D(2);// in mA V_DS= V_DD-I_D*(R_D+R_S);// in V V_D= V_DD-I_D*R_D;// in V V_S= V_D-V_DS;// in V disp(I_D,"The value of I_D in mA is : ") disp(V_DS,"The value of V_DS in volts is : ") disp(V_D,"The value of V_D in volts is : ") disp(V_S,"The value of V_S in volts is : ")
dc4f471ec6b0d06de219abfd7ad7469a4c249049
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.4.1/examples/addinter-examples/ex6f.sce
9f4a3b4406635b8e6d8844a3552d537bc07b69f4
[ "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
333
sce
ex6f.sce
// Copyright INRIA scifuncs=['modstr','stacc']; //Scilab functions files=G_make(['/tmp/ex6fi.o','/tmp/ex6f.o'],'ex6f.dll'); addinter(strcat(files,' '),'intex6f',scifuncs); //a's to o's x=modstr('gaad'); if x<>'good' then pause,end //variable read in Scilab stack param=1:10; z=stacc(); if norm(z-param) > %eps then pause,end
7e7c9561f8087e57f29a53e619cdd61369f7f4a2
a5f0fbcba032f945a9ee629716f6487647cafd5f
/Machine_Learning/demos/Decision Tree_Demo1.sce
0ced171a5c466266781f79aa5fd4d80d2ab446bf
[ "BSD-2-Clause" ]
permissive
SoumitraAgarwal/Scilab-gsoc
692c00e3fb7a5faf65082e6c23765620f4ecdf35
678e8f80c8a03ef0b9f4c1173bdda7f3e16d716f
refs/heads/master
2021-04-15T17:55:48.334164
2018-08-07T13:43:26
2018-08-07T13:43:26
126,500,126
1
1
null
null
null
null
UTF-8
Scilab
false
false
392
sce
Decision Tree_Demo1.sce
// Demo for decision tree -- Scilab getd('../macros') // Data preparation M = csvRead('Datasets/forestfires.csv') x = M(:,[5,6,7,8,9]); y = M(:, 13); y(or(isnan(x),'c'),:) = [] x(or(isnan(x),'c'),:) = [] n = length(y(:, 1)) for i = 1:n if(y(i)>0) y(i) = 1 end end [questions,flag] = decisionTreeFit(x, y); pred = decisionTreePredict(x, questions, flag); disp(0.5*norm(pred' - y))
8235997afb39da7d523caaf8d40c3ac80349885c
b39dfe4655bc09a15e7cf35b887e89ef12f4c8e5
/Atividade 3/PME3402_Grupo13_Atividade3.sce
808eb5f4701b144e05bc883cefe025b9de218023
[]
no_license
vitoramr/PME3402-Laboratorio-de-Medicao-e-Controle-Discreto
6a57131edff44859fb5c2c1c5b0dea0cc37735da
8228b3ae442a3bb64208c924afc0daf418abe3c2
refs/heads/master
2023-01-09T23:08:48.007029
2020-11-19T22:43:27
2020-11-19T22:43:27
288,795,340
1
0
null
null
null
null
UTF-8
Scilab
false
false
35,879
sce
PME3402_Grupo13_Atividade3.sce
/* ============================================================== Escola Politécnica da USP PME3402 - Laboratório de Medição e Controle Discreto -------------------------------------------------------------- ATIVIDADE 3 -------------------------------------------------------------- GRUPO 13 Membros: Tiago Vieira de Campos Krause Vinicius Rosario Dyonisio Vítor Albuquerque Maranhao Ribeiro Vitória Garcia Bittar --------------------------------------------------------------- Professores responsáveis: Edilson Hiroshi Tamai Flávio Trigo =============================================================== INSTRUÇÕES PARA RODAR O PROGRAMA Antes de rodar o programa, siga os seguintes passos 1) Certifique-se de que o Scilab está aberto na pasta "/Atividade 3/" em que o programa se encontra 2) Certifique-se de que os dados de medida estão na pasta "/Atividade 3/Dados" dentro da pasta do programa 3) Pressione Executar (APENAS UMA VEZ) para rodar o programa (devido aos arquivos de áudio, pode levar cerca de 1 minuto para rodar o programa. Cuidado ao apertar "Executar" diversas vezes. Caso isso ocorra, o programa irá fechar as janelas que ele acabou de plitar e rodar novamente) */ //LIMPEZA DE MEMÓRIA clear; clc; // Limpeza de variáveis e do console xdel(winsid()) // Fecha as janelas abertas // ============================================================ // CARREGAMENTO DOS DADOS // Obtendo os caminhos de cada arquivo do experimento base_path = pwd(); // Diretório atual onde o programa está s = filesep(); // Separador de arquivos para o OS atual ( '\' para Windows e '/' para Linux) data_directory = base_path + s + 'Dados'; /* 1.Introdução Nesta tarefa, o grupo decidiu fazer o experimento de filtros digitais utilizando instrumentos musicais. Uma vez que a frequência natural de notas musicais é conhecida pela teoria, considerou-se que a avaliação e filtragem de ruidos levando em conta frequências naturais conhecidas se mostra eficaz. Foram realizados ensaios com diferentes instrumentos musicais, tocando diferentes notas em diferentes oitavas, com diferentes métodos de gravação das notas, totalizando 22 ensaios. Os instrumentos utilizados foram flauta e violão, os métodos de gravação foram o celular e um microfone, e as notas gravadas foram Do4 (quarta oitava), Do5 (quinta oitava), Sol2 (segunda oitava), Sol3 (terceira oitava). Os sinais com nomeação final Sol_2_2, Sol_2_3 e Sol_2_4 são repetições da nota "sol na segunda oitava", que será usado para avaliar a repetibilidade do experimento e se há mais variações usando o microfone ou o celular. Pela teoria, a frequência natural da nota "dó" é 132Hz, na primeira oitava. Para as demais oitavas, é necessário multiplicar a frequência natural da primeira oitava pela oitava correspondente. No caso, para o "Do4", a frequência natural é igual a 132*4, que iguala a 528 Hz. Fazendo este procedimento para todas as notas e oitavas estudadas, chegamos às seguintes frequências naturais: - Do: 132 Hz - Do2: 264 Hz - Do4: 528 Hz - Do5: 660 Hz - Sol: 196 Hz - Sol2: 396 Hz - Sol3: 594 Hz É importante ter em conta estas frequências naturais na hora de aplicar a frequência de corte no filtro, uma vez que não se deve utilizar um filtro com uma frequência de corte muito baixa, já que isso cortaria o sinal que se quer evidenciar. Neste experimento, vamos filtrar os resultados encontrados, eliminando ruídos do ambientes e dos dispositivos e avaliar se os resultados de frequências naturais condizem com a da literatura. Além disso, serão analisados os diferentes métodos (flauta x violão e microfone x celular), e será averiguado se há diferenças significativas entre o nível de ruído entre eles (por exemplo, se há um instrumento que apresenta um ruído natural de sua estrutura mais significativo, ou se um dos métodos de gravação isola melhor os ruídos do ambiente). */ // Identificaç dos arquivos a serem lidos file_names = [ 'Celular_Flauta_Do4.wav', //1 'Celular_Flauta_Do5.wav', //2 'Celular_Flauta_Sol3.wav', //3 'Celular_Flauta_Sol4.wav', //4 'Celular_Violao_Do1.wav', //5 'Celular_Violao_Do2.wav', //6 'Celular_Violao_Sol1.wav', //7 'Celular_Violao_Sol2.wav', //8 'Microfone_Flauta_Do4.wav', //9 'Microfone_Flauta_Do5.wav', //10 'Microfone_Flauta_Sol3.wav', //11 'Microfone_Flauta_Sol4.wav', //12 'Microfone_Violao_Do1.wav', //13 'Microfone_Violao_Do2.wav', //14 'Microfone_Violao_Sol1.wav', //15 'Microfone_Violao_Sol2.wav', //16 'Celular_flauta_sol3_2.wav', //17 'Celular_flauta_sol3_3.wav', //18 'celular_flauta_sol3_4.wav', //19 'Microfone_Flauta_Sol3_2.wav', //20 'Microfone_Flauta_Sol3_3.wav', //21 'Microfone_Flauta_Sol3_4.wav', //22 ]; file_path = data_directory + s + file_names; //Leitura dos arquivos de áudio e de sua frequência de amostragem //Vê-se necessário cortar os áudios nos pontos em que o som é efetivamente emitido, visto que a gravação começa antes e termina depois da emissão do som e isso poderia afetar a precisão da FFT //Tal processo foi feito visualmente, analisando o instante do sinal em que o som foi emitido // Parâmetros de amostragem fam = 44100; //[Hz] Frequência de amostragem do microfone fac = 44000; //[Hz] Frequência de amostragem do celular [y, Fs] = wavread(file_path(1), [int(4.04*fac),int(8.88*fac)]); C_F_Do4 = y; [y, Fs] = wavread(file_path(2), [int(4.85*fac),int(9.48*fac)]); C_F_Do5 = y; [y, Fs] = wavread(file_path(3), [int(5.53*fac),int(10.71*fac)]); C_F_Sol3 = y; [y, Fs] = wavread(file_path(4), [int(3.82*fac),int(8.4*fac)]); C_F_Sol4 = y; [y, Fs] = wavread(file_path(5), [int(1.23*fac),int(4.85*fac)]); C_V_Do1 = y; [y, Fs] = wavread(file_path(6), [int(2.18*fac),int(6.94*fac)]); C_V_Do2 = y; [y, Fs] = wavread(file_path(7), [int(2.2*fac),int(7*fac)]); C_V_Sol1 = y; [y, Fs] = wavread(file_path(8), [int(2.64*fac),int(7.55*fac)]); C_V_Sol2 = y; [y, Fs] = wavread(file_path(9), [int(0.04*fam),int(4.775*fam)]); M_F_Do4 = y(1,:); //Microfone possui dois canais de gravação, porém a gravação foi feita em Mono, por isso considerou-se a gravação dos canais iguais [y, Fs] = wavread(file_path(10), [int(2.155*fam),int(6.45*fam)]); M_F_Do5 = y(1,:); [y, Fs] = wavread(file_path(11), [int(0.05*fam),int(5.2*fam)]); M_F_Sol3 = y(1,:); [y, Fs] = wavread(file_path(12), [int(3.1*fam),int(7.45*fam)]); M_F_Sol4 = y(1,:); [y, Fs] = wavread(file_path(13), [int(2.4*fam),int(4.95*fam)]); M_V_Do1 = y(1,:); [y, Fs] = wavread(file_path(14), [int(3.64*fam),int(4.75*fam)]); M_V_Do2 = y(1,:); [y, Fs] = wavread(file_path(15), [int(2.35*fam),int(3.55*fam)]); M_V_Sol1 = y(1,:); [y, Fs] = wavread(file_path(16), [int(3.93*fam),int(4.33*fam)]); M_V_Sol2 = y(1,:); [y, Fs] = wavread(file_path(17), [int(3.93*fac),int(4.33*fac)]); C_F_Sol3_2 = y; [y, Fs] = wavread(file_path(18), [int(3.93*fac),int(4.33*fac)]); C_F_Sol3_3 = y; [y, Fs] = wavread(file_path(19), [int(3.93*fac),int(4.33*fac)]); C_F_Sol3_4 = y; [y, Fs] = wavread(file_path(20), [int(3.93*fam),int(4.33*fam)]); M_F_Sol3_2 = y(1,:); [y, Fs] = wavread(file_path(21), [int(3.93*fam),int(4.33*fam)]); M_F_Sol3_3 = y(1,:); [y, Fs] = wavread(file_path(22), [int(3.93*fam),int(4.33*fam)]); M_F_Sol3_4 = y(1,:); function [y] = filtro_passa_baixa_1a_ordem(e, metodo , fa, fc) /* Recebe um sinal temporal discretizado e aplica um filtro digital de 1ª ordem a partir de um filtro no tempo contínuo por meio de equações de diferenças. É preciso, também, identificar qual o tipo de método de integração numérica deseja-se utilizar ('euler-foward','euler-backward', 'trapezoid') Inputs: e --> Vetor de tamanho 1xN com os valores do sinal temporal de entrada metodo --> Método de integração numérica desejado para o cálculo do filtro Possíveis: metodo = ['euler-foward','euler-backward', 'trapezoid'] fa --> Valor real (Hz). Frequência de amostragem do sinal fc --> Valor real (Hz). Frequência de corte passa-baixo para o sinal Output: y --> Vetor de tamanho 1xN com o valor temporal do sinal de saída (filtrado) */ T = 1/fa ; // Período de amostragem do sinal (s) wc = 2*%pi*fc; // Frequência de corte (rad/s) N = length(sinal_t); y = zeros(N,1); y(1) = e(1); select metodo // Seleciona o tratamento para cada tipo de método case 'euler-foward' K1 = (1-wc*T); K2 = wc*T; for k =2:N y(k) = K1*y(k-1) + K2*e(k-1) end case 'euler-backward' K1 = (1/(1+wc*T)) K2 = wc*T for k =2:N y(k) = K1*y(k-1) + K2*e(k-1) end case 'trapezoid' K1 = (1 - (wc*T)/2) / (1 + (wc*T)/2); K2 = ((wc*T)/2) / (1 + (wc*T)/2); for k =2:N y(k) = K1*y(k-1) + K2*(e(k-1) + e(k)) end end endfunction // ============================================================ // ANÁLISE ESPECTRAL function [sinal_filtrado, f, espectro, espectro_filtrado] = analise_espectral(sinal_t, metodo , fa, fc) /* Inputs: sinal_t --> um vetor unidimensional sinal_t (1xN) que representa o valor de um sinal temporal metodo --> Método de integração numérica desejado para o cálculo do filtro Possíveis: metodo = ['euler-foward','euler-backward', 'trapezoid'] fa --> Valor real (Hz). Frequência de amostragem do sinal fc --> Valor real (Hz). Frequência de corte passa-baixo para o sinal Outputs: sinal_filtrado --> vetor 1xN com o sinal temporal filtrado espectro --> vetor (1xN/2) o módulo da fft do sinal de entrada espectro_fitlrado --> vetor (1xN/2) o módulo da fft do sinal de saída f --> vetor (1xN/2) com a escala de frequência dos sinais em Hz */ N = length(sinal_t); N_f = round(N/2); // Como a FFT é simétrica, pega-se apenas metade dos valores do vetor de saída da fft espectro = abs(fft(sinal_t,-1))((1:N_f)); // Módulo da FFT do sinal temporal // Sinal filtrado passa baixa na frequência de corte sinal_filtrado = filtro_passa_baixa_1a_ordem(sinal_t, metodo , fa, fc) espectro_filtrado = abs(fft(sinal_filtrado,-1))((1:N_f)) f = (fa /N) * (0:N_f-1)' // Escala de frequências endfunction // Obtenção dos espectros de frequência metodos = ['euler-foward','euler-backward', 'trapezoid']; fc = 800; //analisar qual a frequência do ruído a ser cortado [C_F_Do4_filtrado, f_C_F_Do4, espectro_C_F_Do4, espectro_C_F_Do4_filtrado] = analise_espectral(C_F_Do4,'euler-foward', fac, fc) [C_F_Do5_filtrado, f_C_F_Do5, espectro_C_F_Do5, espectro_C_F_Do5_filtrado] = analise_espectral(C_F_Do5,'euler-foward', fac, fc) [C_F_Sol3_filtrado, f_C_F_Sol3, espectro_C_F_Sol3, espectro_C_F_Sol3_filtrado] = analise_espectral(C_F_Sol3,'euler-foward', fac, fc) [C_F_Sol4_filtrado, f_C_F_Sol4, espectro_C_F_Sol4, espectro_C_F_Sol4_filtrado] = analise_espectral(C_F_Sol4,'euler-foward', fac, fc) [C_V_Do1_filtrado, f_C_V_Do1, espectro_C_V_Do1, espectro_C_V_Do1_filtrado] = analise_espectral(C_V_Do1,'euler-foward', fac, fc) [C_V_Do2_filtrado, f_C_V_Do2, espectro_C_V_Do2, espectro_C_V_Do2_filtrado] = analise_espectral(C_V_Do2,'euler-foward', fac, fc) [C_V_Sol1_filtrado, f_C_V_Sol1, espectro_C_V_Sol1, espectro_C_V_Sol1_filtrado] = analise_espectral(C_V_Sol1,'euler-foward', fac, fc) [C_V_Sol2_filtrado, f_C_V_Sol2, espectro_C_V_Sol2, espectro_C_V_Sol2_filtrado] = analise_espectral(C_V_Sol2,'euler-foward', fac, fc) [M_F_Do4_filtrado, f_M_F_Do4, espectro_M_F_Do4, espectro_M_F_Do4_filtrado] = analise_espectral(M_F_Do4,'euler-foward', fam, fc) [M_F_Do5_filtrado, f_M_F_Do5, espectro_M_F_Do5, espectro_M_F_Do5_filtrado] = analise_espectral(M_F_Do5,'euler-foward', fam, fc) [M_F_Sol3_filtrado, f_M_F_Sol3, espectro_M_F_Sol3, espectro_M_F_Sol3_filtrado] = analise_espectral(M_F_Sol3,'euler-foward', fam, fc) [M_F_Sol4_filtrado, f_M_F_Sol4, espectro_M_F_Sol4, espectro_M_F_Sol4_filtrado] = analise_espectral(M_F_Sol4,'euler-foward', fam, fc) [M_V_Do1_filtrado, f_M_V_Do1, espectro_M_V_Do1, espectro_M_V_Do1_filtrado] = analise_espectral(M_V_Do1,'euler-foward', fam, fc) [M_V_Do2_filtrado, f_M_V_Do2, espectro_M_V_Do2, espectro_M_V_Do2_filtrado] = analise_espectral(M_V_Do2,'euler-foward', fam, fc) [M_V_Sol1_filtrado, f_M_V_Sol1, espectro_M_V_Sol1, espectro_M_V_Sol1_filtrado] = analise_espectral(M_V_Sol1,'euler-foward', fam, fc) [M_V_Sol2_filtrado, f_M_V_Sol2, espectro_M_V_Sol2, espectro_M_V_Sol2_filtrado] = analise_espectral(M_V_Sol2,'euler-foward', fam, fc) [C_F_Sol3_2_filtrado, f_C_F_Sol3_2, espectro_C_F_Sol3_2, espectro_C_F_Sol3_2_filtrado] = analise_espectral(C_F_Sol3_2,'euler-foward', fac, fc) [C_F_Sol3_3_filtrado, f_C_F_Sol3_3, espectro_C_F_Sol3_3, espectro_C_F_Sol3_3_filtrado] = analise_espectral(C_F_Sol3_3,'euler-foward', fac, fc) [C_F_Sol3_4_filtrado, f_C_F_Sol3_4, espectro_C_F_Sol3_4, espectro_C_F_Sol3_4_filtrado] = analise_espectral(C_F_Sol3_4,'euler-foward', fac, fc) [M_F_Sol3_2_filtrado, f_M_F_Sol3_2, espectro_M_F_Sol3_2, espectro_M_F_Sol3_2_filtrado] = analise_espectral(M_F_Sol3_2,'euler-foward', fam, fc) [M_F_Sol3_3_filtrado, f_M_F_Sol3_3, espectro_M_F_Sol3_3, espectro_M_F_Sol3_3_filtrado] = analise_espectral(M_F_Sol3_3,'euler-foward', fam, fc) [M_F_Sol3_4_filtrado, f_M_F_Sol3_4, espectro_M_F_Sol3_4, espectro_M_F_Sol3_4_filtrado] = analise_espectral(M_F_Sol3_4,'euler-foward', fam, fc) // ============================================================ // ANÁLISE DOS RESULTADOS /* Primeiramente, os sinais de áudio foram cortados em um software secundário para que os dados utilizados possuam o instante em que a nota começa a ser tocada. Em seguida, um filtro digital utilizado foi um filtro passa-baixa de primeira ordem aplicado no sinal discretizado e que utiliza o método de Euler para integração numérica. Como as notas gravadas possuem frequências naturais entre 528 e 792 Hz, o filtro passa-baixa foi aplicado no sinal temporal para uma frequência de corte de 800Hz. A partir do tratamento de dados, foi possível obter os espectros de frequência de cada uma das notas musicais gravadas (Dó4, Dó5, Sol4, Sol5) tocadas na Flauta e no Violão e gravadas tanto por meio de um microfone quanto por meio de um aparelho celular. Além disso, um filtro digital foi aplicado no sinal temporal e foi possível obter o espectro de frequência do som filtrado. Como pode-se perceber pela análise espectral dos sinais originais, as frequências que apresentam um pico máximo no espectro são próximas às frequências da nota tocada tanto para os sinais gravados pelo Microfone quanto para o Celular. O sinal também apresenta harmônicos, ou picos de amplitudes de espectro cada vez menores nas frequências que são múltiplas inteiras da frequência natural da nota original. Esse resultado era esperado de acordo com a teoria de acústica para instrumentos de sopro e corda, uma vez que o som produzido por esses instrumentos não é composto apenas da frequência da nota, mas também de seus harmônicos. Para uma representação dos dados, primeiramente as medições de áudio tanto no microfone quanto no celular foram ilustradas na figura 1-4. Para a figura 1-2, a nota Dó4, que possui frequência 528 Hz, produzidas pela flauta foi ilustrada. Já para a figura 3-4 a nota Dó2 (f = 264 Hz) tocada pelo violão está ilustrada. Comparando os dois diferentes instrumentos é possível observar que a flauta apresenta uma amplitude mais contante e uma oscilação única, a contância na amplitude está associada a forma de geração do som, a flauta teve o som gerado a partir de um sopro e o sinal só decaiu quando o fornecimento de ar parou enquanto que o violão teve o sinal gerado por apenas um estímulo, ou seja, é uma função impulso que gera o sinal, por isso a amplitude decai com o tempo. A oscilação secundária que aparece no sinal do violão é uma característica dos instrumentos de corda, em que a corda vibra no modo fundamental e nos harmônicos subsequentes. Isso pode estar associado tabém a uma vibração secundária gerada pela vibração do cavalete e consequente do tampo que funciona como uma caixa de ressonância. Comparando as duas formas de gravação é possível observar que o sinal gravado gerado pelo microfone apresenta um formato mais comportado no sentido de apresentar um sinal mais próximo de uma senóide, isso mostra melhor qualidade de gravação consequência da qualidade do equipamento e também do instrumento de conversão do sinal analógico para o digital, que para o microfone há um equipamento dedicado a isso (conversor de áudio analógico-digital como é possível ver nas fotografias) enquanto que o celular não possui um componente dedicado a essa função. */ // ============================================================ // PLOTAGEM DOS GRÁFICOS tempo_C_F_Do4 = linspace(0, size(C_F_Do4)(2)/fac, size(C_F_Do4)(2)) tempo_C_F_Do5 = linspace(0, size(C_F_Do5)(2)/fac, size(C_F_Do5)(2)) tempo_C_F_Sol3 = linspace(0, size(C_F_Sol3)(2)/fac, size(C_F_Sol3)(2)) tempo_C_F_Sol4 = linspace(0, size(C_F_Sol4)(2)/fac, size(C_F_Sol4)(2)) tempo_C_V_Do1 = linspace(0, size(C_V_Do1)(2)/fac, size(C_V_Do1)(2)) tempo_C_V_Do2 = linspace(0, size(C_V_Do2)(2)/fac, size(C_V_Do2)(2)) tempo_C_V_Sol1 = linspace(0, size(C_V_Sol1)(2)/fac, size(C_V_Sol1)(2)) tempo_C_V_Sol2 = linspace(0, size(C_V_Sol2)(2)/fac, size(C_V_Sol2)(2)) tempo_M_F_Do4 = linspace(0, size(M_F_Do4)(2)/fam, size(M_F_Do4)(2)) tempo_M_F_Do5 = linspace(0, size(M_F_Do5)(2)/fam, size(M_F_Do5)(2)) tempo_M_F_Sol3 = linspace(0, size(M_F_Sol3)(2)/fam, size(M_F_Sol3)(2)) tempo_M_F_Sol4 = linspace(0, size(M_F_Sol4)(2)/fam, size(M_F_Sol4)(2)) tempo_M_V_Do1 = linspace(0, size(M_V_Do1)(2)/fam, size(M_V_Do1)(2)) tempo_M_V_Do2 = linspace(0, size(M_V_Do2)(2)/fam, size(M_V_Do2)(2)) tempo_M_V_Sol1 = linspace(0, size(M_V_Sol1)(2)/fam, size(M_V_Sol1)(2)) tempo_M_V_Sol2 = linspace(0, size(M_V_Sol2)(2)/fam, size(M_V_Sol2)(2)) /* tempo_C_F_Sol3_2 = linspace(0, size(C_F_Sol3_2)(2)/fac, size(C_F_Sol3_2)(2)) tempo_C_F_Sol3_3 = linspace(0, size(C_F_Sol3_3)(2)/fac, size(C_F_Sol3_3)(2)) tempo_C_F_Sol3_4 = linspace(0, size(C_F_Sol3_4)(2)/fac, size(C_F_Sol3_4)(2)) tempo_M_F_Sol3_2 = linspace(0, size(M_F_Sol3_2)(2)/fac, size(M_F_Sol3_2)(2)) tempo_M_F_Sol3_3 = linspace(0, size(M_F_Sol3_3)(2)/fac, size(M_F_Sol3_3)(2)) tempo_M_F_Sol3_4 = linspace(0, size(M_F_Sol3_4)(2)/fac, size(M_F_Sol3_4)(2)) */ cores = [ 'blue4', 'springgreen4', 'firebrick1', 'magenta3', ] /* Plotagem dos gráficos, para cada nota, instrumento e método de medição, dos sinais temporais originais e filtrados e dos espectro de frequência do sinal originais e filtrados. */ f1 = scf(1) subplot(4,1,1) plot2d(tempo_C_F_Do4, C_F_Do4, color(cores(1)) ); title('Figura 1.1: Sinal temporal discretizado (Celular, Flauta, Do4)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_C_F_Do4, C_F_Do4_filtrado, color(cores(1)) ); title('Figura 1.2: Sinal temporal discretizado filtrado (Celular, Flauta, Do4)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_C_F_Do4, espectro_C_F_Do4, color(cores(1)) ); title('Figura 1.3: Espectro de frequência do sinal (Celular, Flauta, Do4)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_C_F_Do4, espectro_C_F_Do4_filtrado, color(cores(1)) ); title('Figura 1.4: Espectro de frequência do sinal filtrado (Celular, Flauta, Do4)') xlabel('f (Hz)'); ylabel('|A(f)|'); f9 = scf(9) subplot(4,1,1) plot2d(tempo_M_F_Do4, M_F_Do4, color(cores(1)) ); title('Figura 2.1: Sinal temporal discretizado (Microfone, Flauta, Do4)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_M_F_Do4, M_F_Do4_filtrado, color(cores(1)) ); title('Figura 2.2: Sinal temporal discretizado filtrado (Microfone, Flauta, Do4)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_M_F_Do4, espectro_M_F_Do4, color(cores(1)) ); title('Figura 2.3: Espectro de frequência do sinal (Microfone, Flauta, Do4)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_M_F_Do4, espectro_M_F_Do4_filtrado, color(cores(1)) ); title('Figura 2.4: Espectro de frequência do sinal filtrado (Microfone, Flauta, Do4)') xlabel('f (Hz)'); ylabel('|A(f)|'); f6 = scf(6) subplot(4,1,1) plot2d(tempo_C_V_Do2, C_V_Do2, color(cores(2)) ); title('Figura 3.1: Sinal temporal discretizado (Celular, Violão, Do2)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_C_V_Do2, C_V_Do2_filtrado, color(cores(2)) ); title('Figura 3.2: Sinal temporal discretizado (Celular, Violão, Do2)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_C_V_Do2, espectro_C_V_Do2, color(cores(2)) ); title('Figura 3.3: Espectro de frequência do sinal (Celular, Violão, Do2)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_C_V_Do2, espectro_C_V_Do2_filtrado, color(cores(2)) ); title('Figura 3.4: Espectro de frequência do sinal filtrado (Celular, Violão, Do2)') xlabel('f (Hz)'); ylabel('|A(f)|'); f14 = scf(14) subplot(4,1,1) plot2d(tempo_M_V_Do2, M_V_Do2, color(cores(2)) ); title('Figura 4.1: Sinal temporal discretizado (Microfone, Violão, Do2)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_M_V_Do2, M_V_Do2_filtrado, color(cores(2)) ); title('Figura 4.2: Sinal temporal discretizado (Microfone, Violão, Do2)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_M_V_Do2, espectro_M_V_Do2, color(cores(2)) ); title('Figura 4.3: Espectro de frequência do sinal (Microfone, Violão, Do2)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_M_V_Do2, espectro_M_V_Do2_filtrado, color(cores(2)) ); title('Figura 4.4: Espectro de frequência do sinal filtrado (Microfone, Violão, Do2)') xlabel('f (Hz)'); ylabel('|A(f)|'); /* // Demais comparações entre espectros de sinais originais e filtrados f2 = scf(2) subplot(4,1,1) plot2d(tempo_C_F_Do5, C_F_Do5, color(cores(2)) ); title('Sinal temporal discretizado (Celular, Flauta, Do5)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_C_F_Do5, C_F_Do5_filtrado, color(cores(2)) ); title('Sinal temporal discretizado (Celular, Flauta, Do5)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_C_F_Do5, espectro_C_F_Do5, color(cores(2)) ); title('Espectro de frequência do sinal (Celular, Flauta, Do5)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_C_F_Do5, espectro_C_F_Do5_filtrado, color(cores(2)) ); title('Espectro de frequência do sinal filtrado (Celular, Flauta, Do4)') xlabel('f (Hz)'); ylabel('|A(f)|'); f3 = scf(3) subplot(4,1,1) plot2d(tempo_C_F_Sol3, C_F_Sol3, color(cores(3)) ); title('Sinal temporal discretizado (Celular, Flauta, Sol3)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_C_F_Sol3, C_F_Sol3_filtrado, color(cores(3)) ); title('Sinal temporal discretizado (Celular, Flauta, Sol3)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_C_F_Sol3, espectro_C_F_Sol3, color(cores(3)) ); title('Espectro de frequência do sinal (Celular, Flauta, Sol3)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_C_F_Sol3, espectro_C_F_Sol3_filtrado, color(cores(3)) ); title('Espectro de frequência do sinal (Celular, Flauta, Sol3)') xlabel('f (Hz)'); ylabel('|A(f)|'); f4 = scf(4) subplot(4,1,1) plot2d(tempo_C_F_Sol4, C_F_Sol4, color(cores(4)) ); title('Sinal temporal discretizado (Celular, Flauta, Sol4)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_C_F_Sol4, C_F_Sol4_filtrado, color(cores(4)) ); title('Sinal temporal discretizado (Celular, Flauta, Sol4)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_C_F_Sol4, espectro_C_F_Sol4, color(cores(4)) ); title('Espectro de frequência do sinal (Celular, Flauta, Sol4)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_C_F_Sol4, espectro_C_F_Sol4_filtrado, color(cores(4)) ); title('Espectro de frequência do sinal (Celular, Flauta, Sol4)') xlabel('f (Hz)'); ylabel('|A(f)|'); f5 = scf(5) subplot(4,1,1) plot2d(tempo_C_V_Do1, C_V_Do1, color(cores(1)) ); title('Figura 2.1: Sinal temporal discretizado (Celular, Violão, Do1)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_C_V_Do1, C_V_Do1_filtrado, color(cores(1)) ); title('Figura 2.2: Sinal temporal discretizado filtrado (Celular, Violão, Do1)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_C_V_Do1, espectro_C_V_Do1, color(cores(1)) ); title('Figura 2.3: Espectro de frequência do sinal (Celular, Violão, Do1)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_C_V_Do1, espectro_C_V_Do1_filtrado, color(cores(1)) ); title('Figura 2.4: Espectro de frequência do sinal filtrado (Celular, Violão, Do1)') xlabel('f (Hz)'); ylabel('|A(f)|'); f7 = scf(7) subplot(4,1,1) plot2d(tempo_C_V_Sol1, C_V_Sol1, color(cores(3)) ); title('Sinal temporal discretizado (Celular, Violão, Sol1)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_C_V_Sol1, C_V_Sol1_filtrado, color(cores(3)) ); title('Sinal temporal discretizado (Celular, Violão, Sol1)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_C_V_Sol1, espectro_C_V_Sol1, color(cores(3)) ); title('Espectro de frequência do sinal (Celular, Violão, Sol1)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_C_V_Sol1, espectro_C_V_Sol1_filtrado, color(cores(3)) ); title('Espectro de frequência do sinal (Celular, Violão, Sol1)') xlabel('f (Hz)'); ylabel('|A(f)|'); f8 = scf(8) subplot(4,1,1) plot2d(tempo_C_V_Sol2, C_V_Sol2, color(cores(4)) ); title('Sinal temporal discretizado (Celular, Violão, Sol2)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_C_V_Sol2, C_V_Sol2_filtrado, color(cores(4)) ); title('Sinal temporal discretizado (Celular, Violão, Sol2)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_C_V_Sol2, espectro_C_V_Sol2, color(cores(4)) ); title('Espectro de frequência do sinal (Celular, Violão, Sol2)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_C_V_Sol2, espectro_C_V_Sol2_filtrado, color(cores(4)) ); title('Espectro de frequência do sinal (Celular, Violão, Sol2)') xlabel('f (Hz)'); ylabel('|A(f)|'); f10 = scf(10) subplot(4,1,1) plot2d(tempo_M_F_Do5, M_F_Do5, color(cores(2)) ); title('Sinal temporal discretizado (Microfone, Flauta, Do5)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_M_F_Do5, M_F_Do5_filtrado, color(cores(2)) ); title('Sinal temporal discretizado (Microfone, Flauta, Do5)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_M_F_Do5, espectro_M_F_Do5, color(cores(2)) ); title('Espectro de frequência do sinal (Microfone, Flauta, Do5)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_M_F_Do5, espectro_M_F_Do5_filtrado, color(cores(2)) ); title('Espectro de frequência do sinal filtrado (Microfone, Flauta, Do4)') xlabel('f (Hz)'); ylabel('|A(f)|'); f11 = scf(11) subplot(4,1,1) plot2d(tempo_M_F_Sol3, M_F_Sol3, color(cores(3)) ); title('Sinal temporal discretizado (Microfone, Flauta, Sol3)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_M_F_Sol3, M_F_Sol3_filtrado, color(cores(3)) ); title('Sinal temporal discretizado (Microfone, Flauta, Sol3)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_M_F_Sol3, espectro_M_F_Sol3, color(cores(3)) ); title('Espectro de frequência do sinal (Microfone, Flauta, Sol3)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_M_F_Sol3, espectro_M_F_Sol3_filtrado, color(cores(3)) ); title('Espectro de frequência do sinal (Microfone, Flauta, Sol3)') xlabel('f (Hz)'); ylabel('|A(f)|'); f12 = scf(12) subplot(4,1,1) plot2d(tempo_M_F_Sol4, M_F_Sol4, color(cores(4)) ); title('Sinal temporal discretizado (Microfone, Flauta, Sol4)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_M_F_Sol4, M_F_Sol4_filtrado, color(cores(4)) ); title('Sinal temporal discretizado (Microfone, Flauta, Sol4)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_M_F_Sol4, espectro_M_F_Sol4, color(cores(4)) ); title('Espectro de frequência do sinal (Microfone, Flauta, Sol4)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_M_F_Sol4, espectro_M_F_Sol4_filtrado, color(cores(4)) ); title('Espectro de frequência do sinal (Microfone, Flauta, Sol4)') xlabel('f (Hz)'); ylabel('|A(f)|'); f13 = scf(13) subplot(4,1,1) plot2d(tempo_M_V_Do1, M_V_Do1, color(cores(1)) ); title('Figura 4.1: Sinal temporal discretizado (Microfone, Violão, Do1)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_M_V_Do1, M_V_Do1_filtrado, color(cores(1)) ); title('Figura 4.2: Sinal temporal discretizado filtrado (Microfone, Violão, Do1)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_M_V_Do1, espectro_M_V_Do1, color(cores(1)) ); title('Figura 4.3: Espectro de frequência do sinal (Microfone, Violão, Do1)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_M_V_Do1, espectro_M_V_Do1_filtrado, color(cores(1)) ); title('Figura 4.4: Espectro de frequência do sinal filtrado (Microfone, Violão, Do1)') xlabel('f (Hz)'); ylabel('|A(f)|'); f15 = scf(15) subplot(4,1,1) plot2d(tempo_M_V_Sol1, M_V_Sol1, color(cores(3)) ); title('Sinal temporal discretizado (Microfone, Violão, Sol1)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_M_V_Sol1, M_V_Sol1_filtrado, color(cores(3)) ); title('Sinal temporal discretizado (Microfone, Violão, Sol1)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_M_V_Sol1, espectro_M_V_Sol1, color(cores(3)) ); title('Espectro de frequência do sinal (Microfone, Violão, Sol1)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_M_V_Sol1, espectro_M_V_Sol1_filtrado, color(cores(3)) ); title('Espectro de frequência do sinal (Microfone, Violão, Sol1)') xlabel('f (Hz)'); ylabel('|A(f)|'); f16 = scf(16) subplot(4,1,1) plot2d(tempo_M_V_Sol2, M_V_Sol2, color(cores(4)) ); title('Sinal temporal discretizado (Microfone, Violão, Sol2)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,2) plot2d(tempo_M_V_Sol2, M_V_Sol2_filtrado, color(cores(4)) ); title('Sinal temporal discretizado (Microfone, Violão, Sol2)') xlabel('t (s)'); ylabel('Amplitude'); subplot(4,1,3) plot2d(f_M_V_Sol2, espectro_M_V_Sol2, color(cores(4)) ); title('Espectro de frequência do sinal (Microfone, Violão, Sol2)') xlabel('f (Hz)'); ylabel('|A(f)|'); subplot(4,1,4) plot2d(f_M_V_Sol2, espectro_M_V_Sol2_filtrado, color(cores(4)) ); title('Espectro de frequência do sinal (Microfone, Violão, Sol2)') xlabel('f (Hz)'); ylabel('|A(f)|'); */ /* Plotagem dos gráficos, para fins de comparação e avaliação da qualidade dos áudios. Na figura 18, são comparados os sinais gerados para o celular e o microfone, para a flauta tocando Do4, e analogamente para os demais gráficos. */ f18= scf (18) subplot(1,1,1) plot2d(f_C_F_Do4, espectro_C_F_Do4_filtrado, color(cores(1)) ); plot2d(f_M_F_Do4, espectro_M_F_Do4_filtrado, color(cores(3)) ); hl=legend(['Celular';'Microfone']); zoom_rect([500,0,540,6000]); title('Espectro de frequência do sinal filtrado (Celular e microfone, Flauta, Do4)') xlabel('f (Hz)'); ylabel('|A(f)|'); f19= scf (19) subplot(1,1,1) plot2d(f_C_V_Do1, espectro_C_V_Do1_filtrado, color(cores(2)) ); plot2d(f_M_V_Do1, espectro_M_V_Do1_filtrado, color(cores(4)) ); hl=legend(['Celular';'Microfone']); zoom_rect([100,0,540,6000]); title('Espectro de frequência do sinal filtrado (Celular e microfone, Violão, Do1)') xlabel('f (Hz)'); ylabel('|A(f)|'); f20= scf (20) subplot(1,1,1) plot2d(f_C_F_Do5, espectro_C_F_Do5_filtrado, color(cores(1)) ); plot2d(f_M_F_Do5, espectro_M_F_Do5_filtrado, color(cores(3)) ); hl=legend(['Celular';'Microfone']); zoom_rect([0,0,2200,6000]); title('Espectro de frequência do sinal filtrado (Celular e microfone, Flauta, Do5)') xlabel('f (Hz)'); ylabel('|A(f)|'); f21= scf (21) subplot(1,1,1) plot2d(f_C_V_Do2, espectro_C_V_Do2_filtrado, color(cores(2)) ); plot2d(f_M_V_Do2, espectro_M_V_Do2_filtrado, color(cores(4)) ); hl=legend(['Celular';'Microfone']); zoom_rect([000,0,800,1500]); title('Espectro de frequência do sinal filtrado (Celular e microfone, Violão, Do2)') xlabel('f (Hz)'); ylabel('|A(f)|'); f22= scf (22) subplot(1,1,1) plot2d(f_C_V_Do2, espectro_C_V_Do2_filtrado, color(cores(2)) ); plot2d(f_M_V_Do2, espectro_M_V_Do2_filtrado, color(cores(4)) ); hl=legend(['Celular';'Microfone']); zoom_rect([000,0,350,1500]); title('Espectro de frequência do sinal filtrado (Celular e microfone, Violão, Do2), com enfoque no segundo harmônico') xlabel('f (Hz)'); ylabel('|A(f)|'); f23= scf (23) subplot(1,1,1) plot2d(f_C_F_Sol3_2, espectro_C_F_Sol3_2_filtrado, color(cores(1)) ); plot2d(f_C_F_Sol3_3, espectro_C_F_Sol3_3_filtrado, color(cores(2)) ); plot2d(f_C_F_Sol3_4, espectro_C_F_Sol3_4_filtrado, color(cores(3)) ); hl=legend(['Medição 1';'Medição 2';'Medição 3']); zoom_rect([100,0,900,2000]); title('Espectro de frequência do sinal filtrado (Celular, Flauta, Sol3, 3 medições da mesma nota)') xlabel('f (Hz)'); ylabel('|A(f)|'); f24= scf (24) subplot(1,1,1) plot2d(f_M_F_Sol3_2, espectro_M_F_Sol3_2_filtrado, color(cores(1)) ); plot2d(f_M_F_Sol3_3, espectro_M_F_Sol3_3_filtrado, color(cores(2)) ); plot2d(f_M_F_Sol3_4, espectro_M_F_Sol3_4_filtrado, color(cores(3)) ); hl=legend(['Medição 1';'Medição 2';'Medição 3']); zoom_rect([100,0,900,2000]); title('Espectro de frequência do sinal filtrado (Microfone, Flauta, Sol3, 3 medições da mesma nota)') xlabel('f (Hz)'); ylabel('|A(f)|');
aea59c544f608986477058027a86998bd11d5bbf
f542bc49c4d04b47d19c88e7c89d5db60922e34e
/PresentationFiles_Subjects/CONT/__SUBJECT_TEST_CONT/ATWM1_Working_Memory_MEG___SUBJECT_TEST_CONT_Session2/ATWM1_Working_Memory_MEG_Nonsalient_Cued_Run2.sce
d50e05626db060ae7d31e6b6a5892a0c6ab7da49
[]
no_license
atwm1/Presentation
65c674180f731f050aad33beefffb9ba0caa6688
9732a004ca091b184b670c56c55f538ff6600c08
refs/heads/master
2020-04-15T14:04:41.900640
2020-02-14T16:10:11
2020-02-14T16:10:11
56,771,016
0
1
null
null
null
null
UTF-8
Scilab
false
false
49,596
sce
ATWM1_Working_Memory_MEG_Nonsalient_Cued_Run2.sce
# ATWM1 MEG Experiment scenario = "ATWM1_Working_Memory_MEG_salient_cued_run2"; #scenario_type = fMRI; # Fuer Scanner #scenario_type = fMRI_emulation; # Zum Testen scenario_type = trials; # for MEG #scan_period = 2000; # TR #pulses_per_scan = 1; #pulse_code = 1; pulse_width=6; default_monitor_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; 43 62 292 292 399 125 2042 2992 2342 fixation_cross gabor_111 gabor_044 gabor_027 gabor_065 gabor_111 gabor_044 gabor_027_alt gabor_065_alt "2_1_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2350_gabor_patch_orientation_111_044_027_065_target_position_1_2_retrieval_position_2" gabor_circ gabor_044_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_1_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_044_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 1842 2992 2442 fixation_cross gabor_160 gabor_078 gabor_105 gabor_054 gabor_160 gabor_078_alt gabor_105_alt gabor_054 "2_2_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2450_gabor_patch_orientation_160_078_105_054_target_position_1_4_retrieval_position_1" gabor_160_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_2_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_160_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1842 2992 2542 fixation_cross gabor_090 gabor_068 gabor_131 gabor_108 gabor_090 gabor_068_alt gabor_131_alt gabor_108 "2_3_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2550_gabor_patch_orientation_090_068_131_108_target_position_1_4_retrieval_position_1" gabor_045_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_3_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_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; 43 61 292 292 399 125 2092 2992 2242 fixation_cross gabor_143 gabor_127 gabor_016 gabor_061 gabor_143_alt gabor_127 gabor_016_alt gabor_061 "2_4_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2250_gabor_patch_orientation_143_127_016_061_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_106_framed blank blank blank blank fixation_cross_target_position_2_4 "2_4_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_106_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 2092 2992 2542 fixation_cross gabor_089 gabor_155 gabor_033 gabor_008 gabor_089 gabor_155_alt gabor_033_alt gabor_008 "2_5_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2550_gabor_patch_orientation_089_155_033_008_target_position_1_4_retrieval_position_1" gabor_089_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_5_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_089_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 63 292 292 399 125 1942 2992 2392 fixation_cross gabor_096 gabor_029 gabor_165 gabor_011 gabor_096 gabor_029_alt gabor_165_alt gabor_011 "2_6_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1950_3000_2400_gabor_patch_orientation_096_029_165_011_target_position_1_4_retrieval_position_2" gabor_circ gabor_079_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_6_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_079_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1992 2992 2142 fixation_cross gabor_005 gabor_150 gabor_175 gabor_115 gabor_005_alt gabor_150_alt gabor_175 gabor_115 "2_7_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2000_3000_2150_gabor_patch_orientation_005_150_175_115_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_067_framed blank blank blank blank fixation_cross_target_position_3_4 "2_7_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_067_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1842 2992 2092 fixation_cross gabor_025 gabor_004 gabor_092 gabor_137 gabor_025 gabor_004_alt gabor_092_alt gabor_137 "2_8_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2100_gabor_patch_orientation_025_004_092_137_target_position_1_4_retrieval_position_1" gabor_163_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_8_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_163_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 64 292 292 399 125 1992 2992 1992 fixation_cross gabor_057 gabor_094 gabor_119 gabor_134 gabor_057_alt gabor_094 gabor_119_alt gabor_134 "2_9_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2000_3000_2000_gabor_patch_orientation_057_094_119_134_target_position_2_4_retrieval_position_1" gabor_057_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_9_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_057_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 2142 2992 2442 fixation_cross gabor_117 gabor_010 gabor_141 gabor_179 gabor_117 gabor_010_alt gabor_141 gabor_179_alt "2_10_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2450_gabor_patch_orientation_117_010_141_179_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_141_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_10_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_141_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 1842 2992 1992 fixation_cross gabor_096 gabor_073 gabor_029 gabor_159 gabor_096 gabor_073_alt gabor_029_alt gabor_159 "2_11_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_2000_gabor_patch_orientation_096_073_029_159_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_159_framed blank blank blank blank fixation_cross_target_position_1_4 "2_11_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_159_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 1892 2992 1942 fixation_cross gabor_031 gabor_053 gabor_005 gabor_176 gabor_031_alt gabor_053_alt gabor_005 gabor_176 "2_12_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_1950_gabor_patch_orientation_031_053_005_176_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_005_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_12_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_005_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1742 2992 1892 fixation_cross gabor_142 gabor_173 gabor_108 gabor_026 gabor_142 gabor_173_alt gabor_108 gabor_026_alt "2_13_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_1900_gabor_patch_orientation_142_173_108_026_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_060_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_13_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_060_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 2192 2992 2392 fixation_cross gabor_087 gabor_018 gabor_168 gabor_106 gabor_087 gabor_018_alt gabor_168_alt gabor_106 "2_14_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2400_gabor_patch_orientation_087_018_168_106_target_position_1_4_retrieval_position_1" gabor_132_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_14_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_132_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 1842 2992 1892 fixation_cross gabor_089 gabor_107 gabor_175 gabor_020 gabor_089 gabor_107 gabor_175_alt gabor_020_alt "2_15_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1850_3000_1900_gabor_patch_orientation_089_107_175_020_target_position_1_2_retrieval_position_1" gabor_089_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_15_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_089_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 2242 2992 2142 fixation_cross gabor_131 gabor_015 gabor_179 gabor_067 gabor_131_alt gabor_015 gabor_179 gabor_067_alt "2_16_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_2150_gabor_patch_orientation_131_015_179_067_target_position_2_3_retrieval_position_2" gabor_circ gabor_015_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_16_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_015_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 63 292 292 399 125 2092 2992 2042 fixation_cross gabor_095 gabor_111 gabor_076 gabor_148 gabor_095 gabor_111_alt gabor_076_alt gabor_148 "2_17_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2100_3000_2050_gabor_patch_orientation_095_111_076_148_target_position_1_4_retrieval_position_3" gabor_circ gabor_circ gabor_030_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_17_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_030_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1842 2992 2342 fixation_cross gabor_090 gabor_163 gabor_112 gabor_042 gabor_090 gabor_163 gabor_112_alt gabor_042_alt "2_18_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2350_gabor_patch_orientation_090_163_112_042_target_position_1_2_retrieval_position_2" gabor_circ gabor_023_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_18_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_023_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1942 2992 2092 fixation_cross gabor_180 gabor_045 gabor_124 gabor_099 gabor_180_alt gabor_045 gabor_124 gabor_099_alt "2_19_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_2100_gabor_patch_orientation_180_045_124_099_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_074_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_19_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_074_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 64 292 292 399 125 1942 2992 2492 fixation_cross gabor_179 gabor_156 gabor_115 gabor_094 gabor_179_alt gabor_156 gabor_115_alt gabor_094 "2_20_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1950_3000_2500_gabor_patch_orientation_179_156_115_094_target_position_2_4_retrieval_position_1" gabor_179_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_20_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_179_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1792 2992 2242 fixation_cross gabor_149 gabor_111 gabor_026 gabor_086 gabor_149_alt gabor_111_alt gabor_026 gabor_086 "2_21_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_2250_gabor_patch_orientation_149_111_026_086_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_165_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_21_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_165_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 2142 2992 2492 fixation_cross gabor_086 gabor_153 gabor_046 gabor_172 gabor_086 gabor_153 gabor_046_alt gabor_172_alt "2_22_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_2500_gabor_patch_orientation_086_153_046_172_target_position_1_2_retrieval_position_2" gabor_circ gabor_017_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_22_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_017_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 1992 2992 1892 fixation_cross gabor_146 gabor_173 gabor_100 gabor_127 gabor_146_alt gabor_173 gabor_100_alt gabor_127 "2_23_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_1900_gabor_patch_orientation_146_173_100_127_target_position_2_4_retrieval_position_2" gabor_circ gabor_173_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_23_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_173_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 2142 2992 2142 fixation_cross gabor_040 gabor_061 gabor_024 gabor_088 gabor_040 gabor_061 gabor_024_alt gabor_088_alt "2_24_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2150_gabor_patch_orientation_040_061_024_088_target_position_1_2_retrieval_position_2" gabor_circ gabor_061_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_24_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_061_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 1992 2992 2342 fixation_cross gabor_040 gabor_007 gabor_152 gabor_071 gabor_040 gabor_007 gabor_152_alt gabor_071_alt "2_25_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2350_gabor_patch_orientation_040_007_152_071_target_position_1_2_retrieval_position_1" gabor_040_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_25_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_040_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 63 292 292 399 125 2042 2992 1942 fixation_cross gabor_130 gabor_178 gabor_019 gabor_070 gabor_130_alt gabor_178_alt gabor_019 gabor_070 "2_26_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2050_3000_1950_gabor_patch_orientation_130_178_019_070_target_position_3_4_retrieval_position_2" gabor_circ gabor_043_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_26_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_043_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 1892 2992 2042 fixation_cross gabor_148 gabor_177 gabor_006 gabor_021 gabor_148_alt gabor_177 gabor_006_alt gabor_021 "2_27_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1900_3000_2050_gabor_patch_orientation_148_177_006_021_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_021_framed blank blank blank blank fixation_cross_target_position_2_4 "2_27_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_021_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 2192 2992 2592 fixation_cross gabor_020 gabor_138 gabor_088 gabor_073 gabor_020 gabor_138_alt gabor_088 gabor_073_alt "2_28_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2600_gabor_patch_orientation_020_138_088_073_target_position_1_3_retrieval_position_1" gabor_155_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_28_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_155_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 2042 2992 2042 fixation_cross gabor_062 gabor_038 gabor_172 gabor_102 gabor_062 gabor_038 gabor_172_alt gabor_102_alt "2_29_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2050_gabor_patch_orientation_062_038_172_102_target_position_1_2_retrieval_position_2" gabor_circ gabor_038_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_29_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_038_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 2242 2992 2492 fixation_cross gabor_089 gabor_142 gabor_056 gabor_023 gabor_089 gabor_142_alt gabor_056_alt gabor_023 "2_30_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2500_gabor_patch_orientation_089_142_056_023_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_162_framed blank blank blank blank fixation_cross_target_position_1_4 "2_30_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_162_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 2092 2992 2542 fixation_cross gabor_115 gabor_083 gabor_166 gabor_149 gabor_115_alt gabor_083_alt gabor_166 gabor_149 "2_31_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2100_3000_2550_gabor_patch_orientation_115_083_166_149_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_166_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_31_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_166_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 2142 2992 2442 fixation_cross gabor_043 gabor_126 gabor_015 gabor_095 gabor_043_alt gabor_126_alt gabor_015 gabor_095 "2_32_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2150_3000_2450_gabor_patch_orientation_043_126_015_095_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_065_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_32_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_065_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 63 292 292 399 125 2242 2992 1992 fixation_cross gabor_157 gabor_131 gabor_072 gabor_048 gabor_157_alt gabor_131 gabor_072_alt gabor_048 "2_33_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2250_3000_2000_gabor_patch_orientation_157_131_072_048_target_position_2_4_retrieval_position_3" gabor_circ gabor_circ gabor_025_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_33_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_025_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 1742 2992 2192 fixation_cross gabor_001 gabor_057 gabor_131 gabor_090 gabor_001 gabor_057 gabor_131_alt gabor_090_alt "2_34_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2200_gabor_patch_orientation_001_057_131_090_target_position_1_2_retrieval_position_2" gabor_circ gabor_057_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_34_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_057_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 2192 2992 2342 fixation_cross gabor_089 gabor_160 gabor_134 gabor_111 gabor_089_alt gabor_160 gabor_134_alt gabor_111 "2_35_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2200_3000_2350_gabor_patch_orientation_089_160_134_111_target_position_2_4_retrieval_position_2" gabor_circ gabor_160_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_35_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_160_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1892 2992 2192 fixation_cross gabor_180 gabor_029 gabor_104 gabor_045 gabor_180 gabor_029 gabor_104_alt gabor_045_alt "2_36_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2200_gabor_patch_orientation_180_029_104_045_target_position_1_2_retrieval_position_1" gabor_135_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_36_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_135_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 64 292 292 399 125 1892 2992 1992 fixation_cross gabor_030 gabor_079 gabor_004 gabor_142 gabor_030_alt gabor_079_alt gabor_004 gabor_142 "2_37_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1900_3000_2000_gabor_patch_orientation_030_079_004_142_target_position_3_4_retrieval_position_1" gabor_030_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_37_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_030_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1792 2992 2042 fixation_cross gabor_110 gabor_154 gabor_070 gabor_091 gabor_110_alt gabor_154 gabor_070_alt gabor_091 "2_38_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_2050_gabor_patch_orientation_110_154_070_091_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_138_framed blank blank blank blank fixation_cross_target_position_2_4 "2_38_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_138_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1892 2992 2292 fixation_cross gabor_137 gabor_107 gabor_050 gabor_066 gabor_137 gabor_107_alt gabor_050_alt gabor_066 "2_39_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2300_gabor_patch_orientation_137_107_050_066_target_position_1_4_retrieval_position_1" gabor_001_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_39_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_001_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 2242 2992 2242 fixation_cross gabor_035 gabor_087 gabor_170 gabor_012 gabor_035_alt gabor_087 gabor_170 gabor_012_alt "2_40_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2250_3000_2250_gabor_patch_orientation_035_087_170_012_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_122_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_40_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_122_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 2192 2992 1942 fixation_cross gabor_149 gabor_033 gabor_015 gabor_120 gabor_149 gabor_033_alt gabor_015 gabor_120_alt "2_41_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_1950_gabor_patch_orientation_149_033_015_120_target_position_1_3_retrieval_position_1" gabor_104_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_41_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_104_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 64 292 292 399 125 2092 2992 2592 fixation_cross gabor_142 gabor_084 gabor_019 gabor_002 gabor_142 gabor_084_alt gabor_019 gabor_002_alt "2_42_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2100_3000_2600_gabor_patch_orientation_142_084_019_002_target_position_1_3_retrieval_position_2" gabor_circ gabor_084_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_42_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_084_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 2192 2992 2042 fixation_cross gabor_051 gabor_177 gabor_101 gabor_072 gabor_051_alt gabor_177_alt gabor_101 gabor_072 "2_43_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2200_3000_2050_gabor_patch_orientation_051_177_101_072_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_072_framed blank blank blank blank fixation_cross_target_position_3_4 "2_43_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_072_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1742 2992 1992 fixation_cross gabor_103 gabor_176 gabor_063 gabor_047 gabor_103_alt gabor_176 gabor_063 gabor_047_alt "2_44_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2000_gabor_patch_orientation_103_176_063_047_target_position_2_3_retrieval_position_2" gabor_circ gabor_129_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_44_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_129_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1742 2992 1892 fixation_cross gabor_029 gabor_109 gabor_050 gabor_139 gabor_029_alt gabor_109 gabor_050 gabor_139_alt "2_45_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_1900_gabor_patch_orientation_029_109_050_139_target_position_2_3_retrieval_position_2" gabor_circ gabor_159_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_45_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_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; 43 61 292 292 399 125 1842 2992 2342 fixation_cross gabor_052 gabor_075 gabor_111 gabor_025 gabor_052 gabor_075_alt gabor_111_alt gabor_025 "2_46_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1850_3000_2350_gabor_patch_orientation_052_075_111_025_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_164_framed blank blank blank blank fixation_cross_target_position_1_4 "2_46_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_164_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 63 292 292 399 125 1942 2992 2092 fixation_cross gabor_012 gabor_075 gabor_047 gabor_027 gabor_012 gabor_075_alt gabor_047 gabor_027_alt "2_47_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1950_3000_2100_gabor_patch_orientation_012_075_047_027_target_position_1_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_163_framed blank blank blank blank fixation_cross_target_position_1_3 "2_47_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_163_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1792 2992 1942 fixation_cross gabor_094 gabor_007 gabor_063 gabor_153 gabor_094 gabor_007_alt gabor_063 gabor_153_alt "2_48_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1800_3000_1950_gabor_patch_orientation_094_007_063_153_target_position_1_3_retrieval_position_3" gabor_circ gabor_circ gabor_113_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_48_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_113_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1892 2992 2092 fixation_cross gabor_071 gabor_009 gabor_038 gabor_146 gabor_071_alt gabor_009_alt gabor_038 gabor_146 "2_49_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2100_gabor_patch_orientation_071_009_038_146_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_177_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_49_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_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; 43 64 292 292 399 125 1942 2992 2392 fixation_cross gabor_026 gabor_068 gabor_092 gabor_110 gabor_026_alt gabor_068 gabor_092_alt gabor_110 "2_50_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_1950_3000_2400_gabor_patch_orientation_026_068_092_110_target_position_2_4_retrieval_position_3" gabor_circ gabor_circ gabor_092_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_50_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_092_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 2142 2992 2142 fixation_cross gabor_025 gabor_050 gabor_176 gabor_135 gabor_025_alt gabor_050 gabor_176_alt gabor_135 "2_51_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2150_gabor_patch_orientation_025_050_176_135_target_position_2_4_retrieval_position_2" gabor_circ gabor_050_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_2_4 "2_51_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_050_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 2242 2992 2292 fixation_cross gabor_171 gabor_093 gabor_038 gabor_007 gabor_171_alt gabor_093 gabor_038_alt gabor_007 "2_52_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_2300_gabor_patch_orientation_171_093_038_007_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_007_framed blank blank blank blank fixation_cross_target_position_2_4 "2_52_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_007_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 1992 2992 2142 fixation_cross gabor_143 gabor_059 gabor_079 gabor_033 gabor_143 gabor_059_alt gabor_079_alt gabor_033 "2_53_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2000_3000_2150_gabor_patch_orientation_143_059_079_033_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_033_framed blank blank blank blank fixation_cross_target_position_1_4 "2_53_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_033_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 2242 2992 2492 fixation_cross gabor_027 gabor_115 gabor_137 gabor_082 gabor_027 gabor_115_alt gabor_137_alt gabor_082 "2_54_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2250_3000_2500_gabor_patch_orientation_027_115_137_082_target_position_1_4_retrieval_position_1" gabor_027_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_54_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_027_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 2092 2992 2392 fixation_cross gabor_059 gabor_025 gabor_101 gabor_141 gabor_059 gabor_025 gabor_101_alt gabor_141_alt "2_55_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2100_3000_2400_gabor_patch_orientation_059_025_101_141_target_position_1_2_retrieval_position_2" gabor_circ gabor_165_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_55_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_165_retrieval_position_2" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 2142 2992 2442 fixation_cross gabor_060 gabor_007 gabor_133 gabor_092 gabor_060_alt gabor_007_alt gabor_133 gabor_092 "2_56_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2150_3000_2450_gabor_patch_orientation_060_007_133_092_target_position_3_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_092_framed blank blank blank blank fixation_cross_target_position_3_4 "2_56_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_092_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 64 292 292 399 125 2042 2992 2292 fixation_cross gabor_180 gabor_114 gabor_030 gabor_008 gabor_180 gabor_114_alt gabor_030_alt gabor_008 "2_57_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2050_3000_2300_gabor_patch_orientation_180_114_030_008_target_position_1_4_retrieval_position_2" gabor_circ gabor_114_framed gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_57_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_114_retrieval_position_2" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 2192 2992 2592 fixation_cross gabor_169 gabor_053 gabor_032 gabor_139 gabor_169 gabor_053_alt gabor_032_alt gabor_139 "2_58_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_2200_3000_2600_gabor_patch_orientation_169_053_032_139_target_position_1_4_retrieval_position_1" gabor_119_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_4 "2_58_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_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; 43 63 292 292 399 125 2042 2992 2592 fixation_cross gabor_016 gabor_001 gabor_049 gabor_032 gabor_016_alt gabor_001 gabor_049 gabor_032_alt "2_59_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_2050_3000_2600_gabor_patch_orientation_016_001_049_032_target_position_2_3_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_167_framed blank blank blank blank fixation_cross_target_position_2_3 "2_59_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_167_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1742 2992 2242 fixation_cross gabor_148 gabor_100 gabor_127 gabor_166 gabor_148 gabor_100_alt gabor_127 gabor_166_alt "2_60_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1750_3000_2250_gabor_patch_orientation_148_100_127_166_target_position_1_3_retrieval_position_1" gabor_012_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_3 "2_60_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_012_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 1792 2992 2292 fixation_cross gabor_041 gabor_097 gabor_023 gabor_056 gabor_041_alt gabor_097 gabor_023 gabor_056_alt "2_61_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2300_gabor_patch_orientation_041_097_023_056_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_023_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_61_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_023_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1942 2992 1892 fixation_cross gabor_078 gabor_047 gabor_014 gabor_032 gabor_078 gabor_047_alt gabor_014_alt gabor_032 "2_62_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1950_3000_1900_gabor_patch_orientation_078_047_014_032_target_position_1_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_168_framed blank blank blank blank fixation_cross_target_position_1_4 "2_62_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_168_retrieval_position_4" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 2042 2992 2192 fixation_cross gabor_147 gabor_092 gabor_174 gabor_128 gabor_147_alt gabor_092 gabor_174 gabor_128_alt "2_63_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_2050_3000_2200_gabor_patch_orientation_147_092_174_128_target_position_2_3_retrieval_position_3" gabor_circ gabor_circ gabor_174_framed gabor_circ blank blank blank blank fixation_cross_target_position_2_3 "2_63_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_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; 43 62 292 292 399 125 1792 2992 2292 fixation_cross gabor_010 gabor_160 gabor_175 gabor_092 gabor_010_alt gabor_160_alt gabor_175 gabor_092 "2_64_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2300_gabor_patch_orientation_010_160_175_092_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_175_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_64_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_175_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 1792 2992 2192 fixation_cross gabor_064 gabor_129 gabor_153 gabor_014 gabor_064_alt gabor_129_alt gabor_153 gabor_014 "2_65_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2200_gabor_patch_orientation_064_129_153_014_target_position_3_4_retrieval_position_3" gabor_circ gabor_circ gabor_153_framed gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_65_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_153_retrieval_position_3" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 64 292 292 399 125 1992 2992 1942 fixation_cross gabor_117 gabor_031 gabor_175 gabor_010 gabor_117_alt gabor_031_alt gabor_175 gabor_010 "2_66_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_300_300_399_2000_3000_1950_gabor_patch_orientation_117_031_175_010_target_position_3_4_retrieval_position_1" gabor_117_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_3_4 "2_66_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_UncuedRetriev_retrieval_patch_orientation_117_retrieval_position_1" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 1792 2992 2092 fixation_cross gabor_007 gabor_159 gabor_049 gabor_089 gabor_007_alt gabor_159 gabor_049_alt gabor_089 "2_67_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1800_3000_2100_gabor_patch_orientation_007_159_049_089_target_position_2_4_retrieval_position_4" gabor_circ gabor_circ gabor_circ gabor_089_framed blank blank blank blank fixation_cross_target_position_2_4 "2_67_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_089_retrieval_position_4" 1 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 61 292 292 399 125 1892 2992 2242 fixation_cross gabor_046 gabor_010 gabor_029 gabor_063 gabor_046 gabor_010 gabor_029_alt gabor_063_alt "2_68_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_300_300_399_1900_3000_2250_gabor_patch_orientation_046_010_029_063_target_position_1_2_retrieval_position_1" gabor_095_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_68_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_CuedRetrieval_retrieval_patch_orientation_095_retrieval_position_1" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 63 292 292 399 125 1742 2992 2192 fixation_cross gabor_169 gabor_022 gabor_137 gabor_062 gabor_169 gabor_022 gabor_137_alt gabor_062_alt "2_69_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_300_300_399_1750_3000_2200_gabor_patch_orientation_169_022_137_062_target_position_1_2_retrieval_position_3" gabor_circ gabor_circ gabor_002_framed gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_69_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_DoChange_UncuedRetriev_retrieval_patch_orientation_002_retrieval_position_3" 2 58.69 58.69 -58.69 58.69 -58.69 -58.69 58.69 -58.69; 43 62 292 292 399 125 1742 2992 2542 fixation_cross gabor_114 gabor_156 gabor_034 gabor_088 gabor_114 gabor_156 gabor_034_alt gabor_088_alt "2_70_Encoding_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_300_300_399_1750_3000_2550_gabor_patch_orientation_114_156_034_088_target_position_1_2_retrieval_position_1" gabor_114_framed gabor_circ gabor_circ gabor_circ blank blank blank blank fixation_cross_target_position_1_2 "2_70_Retrieval_Working_Memory_MEG_P1_LR_Nonsalient_NoChange_CuedRetrieval_retrieval_patch_orientation_114_retrieval_position_1" 1 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; };
444240cee86f4cbc22290871565c243f80f28d2e
449d555969bfd7befe906877abab098c6e63a0e8
/3434/CH7/EX7.1/Ex7_1.sce
ac89e4d55633fed08f119f42f79b1ac385e660b8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,035
sce
Ex7_1.sce
// given data clear clc rho=1.226 // air density in kG/m^3 alpha =0.14 H=10.0 // height at which wind speed is given in m uH=12.0 // speed in m/s z=100.0 // tower height in m D=80.0 // diameter in m effigen=0.85 // efficiency og generator A=%pi*(D**2)/4 // area in m^3 u0=uH*(z/H)**alpha // velocity at 100 m in m/s u1=0.8*u0 // exit velocity in m/s Po=(A*rho*u0**3)/2 // Total Power in Wind // Part 1 printf("Total Power in Wind is %0.2f MW \n",Po/1000000) // Part 2 a=(u0-u1)/u0 // interference factor Cp=4*a*(1-a)**2 // Power Coefficient PT=Cp*Po/1000000 // power to turbine in MW printf("The power extracted by turbine is %0.2f MW \n",PT) // Part 3 Pelec=effigen*PT // electrical power generated in MW printf("The Electrical power generated is %0.2f MW \n",Pelec) // Part 4 FA=4*a*(1-a)*(A*rho*u0**2)/2 // axial thrust in N printf("The axial thrust is %0.2f N \n",FA) // Part 5 Fmax=(A*rho*u0**2)/2 // maximum thrust in N printf("Maximum axial thrust is %0.2f N \n ",Fmax)
53136b97b7c53cbacc74e2037623372ec370e6fa
449d555969bfd7befe906877abab098c6e63a0e8
/2489/CH7/EX7.3/7_3.sce
9b02c27ab0a7b1baf44f4ed571edf644ca98a66f
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
220
sce
7_3.sce
clc //Intitalisation of variables clear T= 18 //C n1= 7.5 n2= 3 n3= 6 R= 2*10^-3 //kcal dH= -783.4 //kcal //CALCULATIONS dE= dH+R*(273+T)*(n2+n3-n1) //RESULTS printf ('Heat of the reaction = %.1f kcal',dE)
5eba4401162f184cadf8ad4511a158c9ec84abf8
449d555969bfd7befe906877abab098c6e63a0e8
/770/CH12/EX12.4/12_4.sce
9bc5970f72bce06fc2d5a6b1a8753ad19b2fb01a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
3,547
sce
12_4.sce
clear; clc; //Example - 12.4 //Page number - 424 printf("Example - 12.4 and Page number - 424\n\n"); //Given //component 1 = formic acid //component 2 = water T = 20 + 273.15;//[K] - Temperature Mol_form = 46.027;//Molecular weight of formic acid Mol_water = 18.015;// Molecular weight of water Wt_perc=[10,18,30,50,72,78];//Weight percent of formic acid den=[1.0246,1.0441,1.0729,1.1207,1.1702,1.1818];//[g/cm^(3)] - Density of solution V_g=zeros(1,6);//[cm^(3)/g] - Volume of 1 g of solution x1=zeros(1,6);// Mole fraction of component 1 x2=zeros(1,6);// Mole fraction of component 2 n=zeros(1,6);// Number of moles in 1 g V_mol=zeros(1,6);//[cm^(3)/mol] - Volume of 1 mol of solution x_V=zeros(1,6);//[cm^(3)/mol] - x_V = x1*V_form + x2*V_water V_mix=zeros(1,6);//[cm^(3)/mol] - V_mix = V - x1*V_form - x2*V_water del_V=zeros(1,6);// [cm^(3)/mol] - del_V = V_mix/(x1*x2) //V_mol = V_form at x1 = 1 and V_mol = V_water at x1 = 0, therefore V_form = 37.737;//[cm^(3)/mol] - Molar volume of pure formic acid (component 1) V_water = 18.050;//[cm^(3)/mol] - Molar volume of pure water (component 2) for i=1:6; V_g(i)=1/den(i); x1(1,i)=(Wt_perc(i)/Mol_form)/((Wt_perc(i)/Mol_form)+((100-Wt_perc(i))/Mol_water)); x2(1,i)=1-x1(i); n(1,i)=((Wt_perc(i)/100)/Mol_form)+(((100-Wt_perc(i))/100)/Mol_water); V_mol(1,i)=V_g(i)/n(i); x_V(1,i)=V_form*x1(i)+V_water*x2(i); V_mix(1,i)=V_mol(i)-x1(i)*V_form-x2(i)*V_water; del_V(1,i)=V_mix(i)/(x1(i)*x2(i)); end //Now employing the concept of quadratic regression of the data ( x1 , del_V ) to solve the equation of the type //y = a0 + a1*x + a2*x^(2) //Here the above equation is in the form of //del_V = V_mix/(x1*x2) = a0 + a1*x1 + a2*x1^(2) //From the matrix method to solve simultaneous linear equations, we have a=[11 sum(x1) sum(x1^2);sum(x1) sum(x1^2) sum(x1^3);sum(x1^2) sum(x1^3) sum(x1^4)]; b=[sum(del_V);sum(x1.*del_V);sum((x1^2).*del_V)]; soln=a\b; a0=soln(1); a1=soln(2); a2=soln(3); //del_V = V_mix/(x1*x2) = a0 + a1*x1 + a2*x1^(2) //V_mix = (a0 + a1*x1 + a2*x1^(2))*(x1*(1 - x1)) //Solving the above equation for x1, deff('[y]=f(x1)','y=(a0+(a1*x1)+(a2*x1^2))*(x1*(1-x1))'); //Now differentiating the above equation with respect to x we get //d/dx(V_mix) = (-4*a2*x1^3) + (3*(a2-a1)*x1^2) + (2*(a1-a0)*x1)+ a0 //Again solving it for x1 deff('[y]=f1(x1)','y=(-4*a2*x1^3)+(3*(a2-a1)*x1^2)+(2*(a1-a0)*x1)+a0'); //At 15 Wt% of formic acid, x1 is given by x1_prime_1 = (15/Mol_form)/((15/Mol_form)+((100-15)/Mol_water)); //Similarly at 75 Wt% of formic acid, x1 is given by x1_prime_2 = (75/Mol_form)/((75/Mol_form)+((100-75)/Mol_water)); Wt_perc_prime=[15,75]; x1_prime=[x1_prime_1,x1_prime_2]; V_mix_prime=zeros(1,2);//[cm^(3)/mol] - V_mix = V - x1*V_meth - x2*V_water del_V_prime=zeros(1,2);//[cm^(3)/mol] - del_V = V_mix/(x1*x2) V1_bar=zeros(1,2);//[cm^(3)/mol] - Partial molar volume of component 1 V2_bar=zeros(1,2);//[cm^(3)/mol] - Partial molar volume of component 1 for j=1:2; V_mix_prime(j)=f(x1_prime(j)); del_V_prime(j)=f1(x1_prime(j)); V1_bar(j)=V_form+V_mix_prime(j)+(1-x1_prime(j))*del_V_prime(j); V2_bar(j)=V_water+V_mix_prime(j)-x1_prime(j)*del_V_prime(j); printf("For weight percent of formic acid = %f percent\n",Wt_perc_prime(j)); printf("The partial molar volume of formic acid (component 1) is %f cm^(3)/mol\n",V1_bar(j)); printf("The partial molar volume of water (component 2) is %f cm^(3)/mol\n\n",V2_bar(j)); end
28bd6a881a0ae7b148a78a8a3e4b957ecafd46f8
7c129ce7f747d44e6c7cedea4c007088e87aa90c
/Programs/Overlap_Save.sce
11f18fe5336e596296c9f607f0f7e8f8f8c8c1c1
[]
no_license
KilariSandhya/Digital-Signal-Processing
08d97a6d46ff46c533c7a2114c19883980c85e38
bad9dab8f5e02a8f1638ce20351e9eba1a0a11d0
refs/heads/master
2022-11-18T03:23:47.628061
2020-07-20T07:46:02
2020-07-20T08:00:23
281,047,630
1
0
null
null
null
null
UTF-8
Scilab
false
false
1,187
sce
Overlap_Save.sce
clc;close;clear; [x,Fs,bits]=wavread("machali.wav"); Fs=8000; bits=16 fm=3000 //freq of noise signal given t=0.0001:1/Fs:length(x)*1/Fs; xn=sin(2*%pi*fm*t); y=x+xn; h=[1 -2*cos(2*%pi*(3000/Fs)) 1]; //impulse response of filter //overlap and save method //getting values of x1,x2,x3..... i=1; j=1; r(1,1)=0; r(1,2)=0; j=3; for n=1:length(x) if modulo(n,98) == 0 then r(i,j)=y(n); j=1; i=i+1; r(i,j)=y(n-1); j=j+1; r(i,j)=y(n); j=3; else r(i,j)=y(n); j=j+1; end end h=[h zeros(1,(100-length(h)))]; N=100; N1=length(x); N2=length(h); for i=1:386 for n=0:N-1 y1(n+1)=0 for k=0:(N-1) n_minus_k_modN=modulo(n-k,N); if n_minus_k_modN<0 n_minus_k_modN=n_minus_k_modN+N; end if((n_minus_k_modN>=0)&(n_minus_k_modN<N)) y1(n+1)=y1(n+1)+r(i,k+1)*h(n_minus_k_modN+1); end end end for j=1:100 z(i,j)=y1(j) end end n=1; for i=1:386 for j=3:98 a(n)=z(i,j); n=n+1; end end figure; subplot(311);plot2d(y); subplot(312);plot2d(a); subplot(313);plot2d(x);
4f27a721beb405cf5a1ab71f923855a52e2ee603
449d555969bfd7befe906877abab098c6e63a0e8
/3812/CH8/EX8.2.c/8_2_c.sce
4d888d65d983cfda8e311e60c829bd8145042404
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
266
sce
8_2_c.sce
//Example 8_2<c> //determine the nyquist rate of x(t)=sinc(200*pi*t)+sinc2(200*pi*t) //here,sinc(400t)=0.5cos(400t)/400t+ clc; clear all; wq=400; wp=200; wf=0; if wp>=wq then wf=wp; else wf=wq; end F1=wf/2; Fs=2*F1; disp('Nyquist Rate='); disp(Fs);
44996b7b614b85cbff930db80c16537f6a2e8dab
449d555969bfd7befe906877abab098c6e63a0e8
/3862/CH8/EX8.26/Ex8_26.sce
56ebcca9448bc7252afb0e9825e1c7bf2ef083d4
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
648
sce
Ex8_26.sce
clear //variable declaration Ea=70*1000 //Young's modulus of aluminium,N/mm^2 Es=200*1000 //Young's modulus of steel,N/mm^2 alphaa=(0.000011) //expansion coefficient,/°C alphas=(0.000012) //expansion coefficient,/°C Aa=600 //Area of aluminium portion,mm^2 As=400 //Area of steel, mm^2 La=(1.5) //length of aluminium portion,m Ls=(3.0) //length of steel portion,m t=18 //temperature,°C delta=(alphaa*t*La*1000)+(alphas*t*Ls*1000) //mm P=(delta)/(((La*1000)/(Aa*Ea))+((Ls*1000)/(As*Es))) printf("\n P= %0.1f N",P)
00df69fd1c41f395df246713b424db2205b60f80
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.5/tests/examples/xfpoly.man.tst
fb5366ce701bad5118ace0a30052ce907cef57ce
[ "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
143
tst
xfpoly.man.tst
clear;lines(0); x=sin(2*%pi*(0:5)/5); y=cos(2*%pi*(0:5)/5); plot2d(0,0,-1,"010"," ",[-2,-2,2,2]) xset("pattern",5) xfpoly(x,y) xset("default")
6a8929029d7883ea557793ddf2980f9041edeb1e
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set7/s_Electronic_Devices_T._L._Floyd_61.zip/Electronic_Devices_T._L._Floyd_61/CH4/EX4.3/ex4_3.sce
60823111dedaef884ca7793bf337761d398e9fdc
[]
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
67
sce
ex4_3.sce
errcatch(-1,"stop");mode(2);//ex4.3 disp('cant be shown') exit();
9be34f14ff6959034666f0e3a17986af7f649344
a62e0da056102916ac0fe63d8475e3c4114f86b1
/set4/s_Concise_Physics_H._Matyaka_1991.zip/Concise_Physics_H._Matyaka_1991/CH2/EX2.16/16.sce
fddd1faafc2cdbefe6f31a4390020fa8c8fefb5f
[]
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
270
sce
16.sce
errcatch(-1,"stop");mode(2); //input m=140//mass v=8//speed r=5//radius g=9.8//acceleration due to gravity //calculation t=((m*v^2/5)^2)+(140*9.8)^2 //applying parallelogram of vectors t1=sqrt(t) //output printf("the tension in arm is %3.3f N",t1) exit();
b12e620524810f54f3d58fe68a3357e68505c8d3
ed2dc0ce80bf86680d743173c334ed2eb63ff60a
/testa.sci
d79a7befbffd8f7e04937577b93dacc960e66759
[]
no_license
edilsonmassuete/EC017
722cbfc2d7fed4ca424e2be1a3d8d35714907fb5
48bdfc34650db17ecb937d697e3327fd2ba1a7ca
refs/heads/master
2021-01-10T12:28:59.420600
2015-11-21T12:15:36
2015-11-21T12:15:36
46,496,054
1
0
null
null
null
null
UTF-8
Scilab
false
false
3,738
sci
testa.sci
function y=testa(W) //carrega o treinamento. load ('ANN_treina.sod', 'W', 'NeuralNetwork'); //entrada dos valores de teste x=[ 0 0 1 0 0 1 1 1 1 0 0 1 0 0 0 1 0 1 1 0 0 ; 0 0 1 0 0 1 1 1 1 0 0 1 0 0 0 1 0 0 1 0 0 ; 0 0 1 0 0 0 1 1 1 1 1 0 0 0 0 1 0 0 0 1 1 ; 1 0 1 1 0 1 1 0 1 1 0 0 1 0 0 1 0 1 0 0 1 ; 1 0 0 1 0 0 1 1 1 1 0 0 1 0 0 1 0 1 0 0 1 ; 1 0 0 1 0 0 0 1 1 1 0 0 1 0 0 1 1 1 0 0 1 ; 0 0 0 1 0 1 1 1 1 1 0 1 0 0 0 1 0 1 0 0 1 ; 1 0 0 1 0 0 1 1 1 1 0 0 1 0 0 1 0 1 0 0 1 ; 1 0 0 1 0 0 1 1 1 1 0 0 1 0 0 1 1 1 0 0 1 ; 1 0 0 1 0 0 1 1 1 1 0 0 1 0 0 1 0 1 0 0 1 ; 1 0 0 1 0 0 0 1 1 1 0 0 1 0 0 1 1 1 0 0 1 ; 0 1 1 0 0 0 1 0 1 1 0 0 0 1 0 1 0 1 0 1 0 ; 0 0 0 0 0 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 ; 0 0 1 0 0 1 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 ; 1 0 0 1 0 1 1 1 1 1 0 1 0 0 0 0 0 1 0 0 1 ; 1 0 0 1 0 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 1 ; 0 0 0 0 0 1 1 1 1 0 1 0 0 0 0 1 0 0 0 1 1 ; 0 0 1 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 1 1 1 ; 0 1 1 0 1 1 1 0 1 1 0 0 0 1 0 1 0 0 0 1 0 ; 0 1 1 0 1 1 1 0 1 1 0 0 0 1 0 1 0 0 0 1 0 ; 0 0 1 0 0 0 1 1 1 1 0 0 0 0 0 1 0 0 0 1 1 ; 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 1 ; 0 0 1 0 0 1 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 ; 0 1 1 0 1 0 0 0 1 1 0 0 0 1 0 1 0 0 0 1 0 ; 1 0 0 1 0 0 0 1 1 1 0 0 0 1 0 1 0 0 0 0 1 ; 0 0 1 0 0 1 1 0 0 0 0 0 1 0 1 0 0 0 1 1 1 ; 0 0 1 0 0 1 1 1 1 0 1 1 0 0 0 1 0 1 1 0 0 ; 0 1 1 0 1 1 0 0 1 1 0 0 0 1 0 1 0 1 0 1 0 ; 0 0 1 0 0 0 0 0 0 1 0 0 1 1 0 0 0 0 1 1 0 ; 0 0 1 0 0 1 0 1 1 1 0 0 1 0 0 0 0 0 1 0 1 ; 0 0 1 0 0 0 0 0 1 1 0 0 1 0 0 1 0 1 0 1 1 ; 0 0 1 0 0 0 1 1 1 1 0 0 1 0 0 1 0 0 0 1 1 ; 0 0 1 0 0 1 1 1 1 0 0 1 0 0 0 1 0 1 1 0 0 ; 1 0 0 1 1 0 0 1 1 1 0 0 0 1 0 1 0 0 0 0 1 ; 1 0 0 1 0 0 0 1 1 1 0 0 1 0 0 1 0 0 0 0 1 ; 0 1 1 0 1 0 1 0 1 1 0 0 0 1 0 1 0 1 0 1 0 ; 1 0 0 1 0 0 0 1 1 1 0 0 0 1 0 1 0 1 0 0 1 ; 1 0 1 0 1 0 0 0 0 1 1 0 1 1 0 0 0 0 1 1 0 ; 1 0 0 1 0 0 1 1 1 1 0 0 1 0 0 1 0 1 0 0 1 ; 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 1 ; 0 1 1 0 1 0 0 0 1 1 0 0 0 1 0 1 0 0 0 1 0 ; 0 1 1 0 1 0 0 0 1 1 0 0 0 1 0 1 0 0 0 1 0 ]'; disp(size(x)); //Definindo arquitetura da rede disp(" .::::::::::::::: EXECUTANDO O TESTE ::::::::::::::::."); cont1 = 0; cont2 = 0; cont3 = 0; cont4 = 0; cont5 = 0; cont6 = 0; cont7 = 0; cont8 = 0; NeuralNetwork=[21 14 7]; //executa a rede y = ann_FF_run(x,NeuralNetwork,W); y = round(y);//arredondando valores disp(y); [l,c]=size(y); for i=1:c if(y(1,i)==0 & y(2,i)==0 & y(3,i)==0 & y(4,i)==0 & y(5,i)==0 & y(6,i)==0 & y(7,i)==1) cont1 = cont1+1; elseif (y(1,i)==0 & y(2,i)==0 & y(3,i)==0 & y(4,i)==0 & y(5,i)==0 & y(6,i)==1 & y(7,i)==0) cont2 = cont2+1; elseif (y(1,i)==0 & y(2,i)==0 & y(3,i)==0 & y(4,i)==0 & y(5,i)==1 & y(6,i)==0 & y(7,i)==0) cont3 = cont3+1; elseif (y(1,i)==0 & y(2,i)==0 & y(3,i)==0 & y(4,i)==1 & y(5,i)==0 & y(6,i)==0 & y(7,i)==0) cont4 = cont4+1; elseif (y(1,i)==0 & y(2,i)==0 & y(3,i)==1 & y(4,i)==0 & y(5,i)==0 & y(6,i)==0 & y(7,i)==0) cont5 = cont5+1; elseif (y(1,i)==0 & y(2,i)==1 & y(3,i)==0 & y(4,i)==0 & y(5,i)==0 & y(6,i)==0 & y(7,i)==0) cont6 = cont6+1; elseif (y(1,i)==1 & y(2,i)==0 & y(3,i)==0 & y(4,i)==0 & y(5,i)==0 & y(6,i)==0 & y(7,i)==0) cont7 = cont7+1; else //indefinido cont8 = cont8+1; end end disp(".:: Classe 1"); disp(cont1); disp(".:: classe 2"); disp(cont2); disp(".:: Classe 3"); disp(cont3); disp(".:: Classe 4"); disp(cont4); disp(".:: Classe 5"); disp(cont5); disp(".:: Classe 6"); disp(cont6); disp(".:: Classe 7"); disp(cont7); disp(".:: indefinida"); disp(cont8); endfunction
00e3db23643b7cd5644e743ab1a134f69ee7b588
1bb72df9a084fe4f8c0ec39f778282eb52750801
/test/RV10.prev.tst
d98bc0da76b283c4d5c0a457182b906c2cbc454a
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
gfis/ramath
498adfc7a6d353d4775b33020fdf992628e3fbff
b09b48639ddd4709ffb1c729e33f6a4b9ef676b5
refs/heads/master
2023-08-17T00:10:37.092379
2023-08-04T07:48:00
2023-08-04T07:48:00
30,116,803
2
0
null
null
null
null
UTF-8
Scilab
false
false
50
tst
RV10.prev.tst
[1/2,2/3,-1/5] * -1/2 3 = [0,0,0,-1/4,-1/3,1/10]
0b4599e919ce36249ba67b7e66c1a278a827f424
b29e9715ab76b6f89609c32edd36f81a0dcf6a39
/ketpicscifiles6/BorderHiddenData.sci
dac1256130b8e63ceee4649b8e84fb4a89e7fe53
[]
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
109
sci
BorderHiddenData.sci
// 08.09.13 function Out=BorderHiddenData() global BORDERHIDDENDATA Out=BORDERHIDDENDATA; endfunction;
e1377883e353705c28e93ae43d0df2c6cb542144
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.5/tests/examples/fscanfMat.man.tst
5bf25bc2b3614341ad9f1933a7a7f4bb1efe35f9
[ "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
248
tst
fscanfMat.man.tst
clear;lines(0); fd=mopen(TMPDIR+'/Mat','w'); mfprintf(fd,'Some text.....\n'); mfprintf(fd,'Some text again\n'); a=rand(6,6); for i=1:6 , for j=1:6, mfprintf(fd,'%5.2f ',a(i,j));end; mfprintf(fd,'\n'); end mclose(fd); a1=fscanfMat(TMPDIR+'/Mat')
439fd730b43f68348d9dffee6c487ad119b0ce31
449d555969bfd7befe906877abab098c6e63a0e8
/3136/CH12/EX12.8/Ex12_8.sce
33f45c33870da8d370fb6145a676db0fc50a80eb
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
733
sce
Ex12_8.sce
clear all; clc; disp("We have h4=104 Btu/lbm,h2=h1=53 Btu/lbm,p4=p1=20psia,s4=s-s3=0.226Btu/lbm-R and Hs3=122 Btu/lbm") h4=104 hs3=122 Eta_c=0.75 h_3dash=h4+(hs3-h4)/Eta_c printf("h_3dash=%0.0f Btu/lbm",h_3dash) w_i=h_3dash-h4 printf("\n The compressor work required per unit mass is w_i =%0.0f Btu/lbm",w_i) h1=53 qi=h4-h1 printf("\n The heat absorbed by the evaporator per unit mass =qi= %0.0f Btu/lbm",qi) beta1=qi/w_i printf("\n The coefficient of performance beta= %0.1f",beta1) m=10 Pc=m*w_i printf("\n The total compressor power required Pc=%0.0f=240 Btu/s=340 hp",Pc) qi=51 Qr=m*qi printf("\n The refrigeration capacity is Qr= %0.0f Btu/s=153 tons",Qr)
8c467bc0fb261cce4e6ad1a2bf231ee689be157d
19fd40cb94855327f6f4db1330b2ccec188b13cb
/Codigos_Scilab/MQF1.sce
02df186ed11154ab9259a7969f5a3ee95709a0b2
[]
no_license
Afcam/Materiais-Eletricos-Magneticos
6e22194419f2704f5e49c4dc9f5b282ccabafc11
0fb3c8847a7c5a8ee9d46d7be1280eceefe08c79
refs/heads/master
2023-07-24T21:50:12.675217
2018-05-11T13:27:25
2018-05-11T13:27:25
126,596,938
0
0
null
null
null
null
UTF-8
Scilab
false
false
490
sce
MQF1.sce
//Exemplo: Ajuste de Modelo por Mínimos Quadrados //Caso com 2 Funções-base Ortogonais //%Programa:MQF1.sce clear; N = 9; xp = [-4,-3,-2,-1,0,1,2,3,4]; fp = 4*(xp.^2) + 20*xp; plot(xp,fp,'or'); //Funções Base Ortogonais g1 = xp.^2; g2 = xp; a1 = sum(fp.*g1)/sum(g1.*g1); a2 = sum(fp.*g2)/sum(g2.*g2); M = 100; xc = linspace(min(xp),max(xp),M); gc1 = xc.^2; gc2 = xc; fc = a1*gc1 + a2*gc2; plot(xc,fc,'b'); disp(a1,a2); EQT = sum((fp - (a1*g1 + a2*g2)).^2); disp(EQT,'EQT = ');
f4a1700cd0337e9f24097f2455a951288eec938a
449d555969bfd7befe906877abab098c6e63a0e8
/767/CH3/EX3.2.7/Ch03Exa3_2_7.sci
0f5629b21ad20e984413f1b776b90321a34b84f3
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
735
sci
Ch03Exa3_2_7.sci
// Scilab code Exa3.2.7 : To calculate the mass of Ra-226 :Page no. 127 (2011) t_h = 1620*31536000; // Half life of Ra-226, S D = 0.6931/t_h; // Decay constant, S^-1 A_Ci = 3.7e+010; // Activity, Ci N_Ci = A_Ci/D; // Number of atoms decayed m = 0.226; // Mass of 6.023e+023 atoms, kg M_Ci = m*N_Ci/6.023e+023; // Mass of 1-Ci sample of Ra-226, kg A_rf = 10^6; // Activity, Rf N_rf = A_rf/D; // Number of atoms decayed M_rf = m*N_rf/6.023e+023; // Mass of 1-Rf sample of Ra-226, kg printf("\n Mass of 1-Ci sample of Ra-226 = %5.3e kg and \n Mass of 1-Rf sample of Ra-226 = %4.2e kg ",M_Ci, M_rf ) // Result // Mass of 1-Ci sample of Ra-226 = 1.023e-003 kg and // Mass of 1-Rf sample of Ra-226 = 2.77e-008 kg
a143b27f21e048397101c1b58f56fadf4a8389e7
99b4e2e61348ee847a78faf6eee6d345fde36028
/Toolbox Test/lsf2poly/lsf2poly4.sce
31ac70d08ccfda9e1dd54ad1a305accb172e3265
[]
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
279
sce
lsf2poly4.sce
//check o/p when the i/p is a char matrix x=['a' 'b' 'c']; a=lsf2poly(x); //output // !--error 10000 //Input arguments must be double. //at line 21 of function lsf2poly called by : //a=lsf2poly(x); //at line 3 of exec file called by : //poly/lsf2poly4.sce', -1
e5a53a40bf76ccc73db43bba52c8126c241592a4
449d555969bfd7befe906877abab098c6e63a0e8
/848/CH6/EX6.1/Example6_1.sce
cee8c895d5cb66d7d3afb9ee8692a44b3360153c
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
360
sce
Example6_1.sce
//clear// //Caption:Cut-off wavelength of photodiode //Example6.1 //page224 clear; clc; close; h = 6.625*(10^-34); //planks constant C = 3*(10^8); //free space velocity Eg = 1.43*1.6*(10^-19);//joules LambdaC = h*C/Eg; disp(LambdaC,'Cut-off Wavelength of photodiode in meters =') //Result //Cut-off Wavelength of photodiode in meters= 0.0000009
ae9a3dcca2226da6afff360596b49867f6e449d6
449d555969bfd7befe906877abab098c6e63a0e8
/1640/CH5/EX5.18/5_18.sce
900f0159c5b826a95919bfbc41a248b06b5c0aef
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
304
sce
5_18.sce
clc //initialisation of variables A= 10000 //ft^2 H1= 50 //ft H2= 40 //ft l= 1500 //ft d= 6 //in f= 0.0075 g= 32.2 //f/sec^2 //CALCULATIONS t= 2*A*sqrt((1.5+(4*f*l/(d/12)))/(2*g))*(sqrt(H1)-sqrt(H2))/(%pi*(d/12)^2/4) //RESULTS printf ('Time taken to lower the level of water = %.f sec ',t)
cd67b97e9baf3b343f6ce559d01476a9c81d9149
449d555969bfd7befe906877abab098c6e63a0e8
/1727/CH11/EX11.3/11_3.sce
1ceb073884aeae4214062c6bdb031bea2c0ac34e
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
473
sce
11_3.sce
clc //Initialization of variables s=2.7 gamw=9810 //N/m^3 mu=0.001 //Ns/m^2 d=0.15*10^-3 //m rho=1000 //kg/m^3 //calculations gams=s*gamw U= d^2 *(gams-gamw)/(18*mu) RN= U*d*rho/mu Cd = (1+ 3/16 *RN)^0.5 *(24/RN) U22 = 4/3 *d*(gams-gamw) /(Cd*rho) U2=sqrt(U22) //results printf("Settling velocity of sand in case 1 = %.2f m/s",U) printf("\n Settling velocity of sand in case 2 = %.4f m/s",U2) //The answer is a bit different due to rounding off error.
a535aeb1a2f4e407ee43e5e2296cdd782f33782d
c3f24602becaed0467632bef7e37a04f6c6694d6
/presentation/sce/msit-simple.sce
9628337da07ade0994856da580d161be5f8b261b
[]
no_license
jmcarp/msit-rxn
31cd29e02226127d44707bd4390c3202ae299d9c
642a80cd4ae11e3ea785e3e65b545ccc7a5311ea
refs/heads/master
2021-01-01T20:48:05.201281
2013-03-07T00:22:04
2013-03-07T00:22:04
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
4,137
sce
msit-simple.sce
# Response parameters active_buttons = 1; button_codes = 1; response_matching = simple_matching; # Trigger parameters write_codes = true; pulse_width = 1; ########### ### SDL ### ########### begin; polygon_graphic { sides = 100; radius = 5; line_color = 255, 0, 0; fill_color = 255, 0, 0; } fixpoly; picture { polygon_graphic fixpoly; x = 0; y = 0; } default; trial { picture { polygon_graphic fixpoly; x = 0; y = 0; }; } ftrial; trial { stimulus_event { picture { polygon_graphic {} mspoly; x = 0; y = 0; polygon_graphic fixpoly; x = 0; y = 0; } mspic; port_code = 255; } msevt; } mstrial; trial { trial_type = specific_response; trial_duration = forever; terminator_button = 1; picture { text { caption = " "; font_size = 24; } itxt; x = 0; y = 0; }; } itrial; ########### ### PCL ### ########### begin_pcl; # Include miscellaneous utility functions include "../../util.pcl"; ################## ### Parameters ### ################## int tdur = 2500; # Total trial duration (ms) int sdur = 500; # Stimulus duration (ms) int textoff = 75; int maxiti = 4; int tr = 1250; int disdaq = 5; int ntrpost = 10; double radius = 100.0; string tgtfont = "Arial"; int fontsize = 96; int ntrials = 200; # Number of trials per block int onstime = 0; # Initial onset time # Set stimulus duration msevt.set_duration(sdur); mstrial.set_duration(tdur - 100); # Set correct button msevt.set_target_button(1); # Set shape params mspoly.set_radius(radius); ######################### ### Utility functions ### ######################### # Present instructions sub instruct( string txt ) begin; itxt.set_caption( txt ); itxt.redraw(); itrial.present(); end; # Show fixation cross sub showfix ( int dur, int onsinc ) begin; onstime = onstime + onsinc; ftrial.set_start_time(onstime); ftrial.set_duration(dur); ftrial.present(); end; sub array<int,1> getiti(int niti) begin; int nadd = niti; array<int> iti[0]; loop int itiidx = 0 until itiidx > maxiti begin; nadd = int(ceil(double(nadd) / 2.0)); loop int addidx = 1 until addidx > nadd begin; iti.add(itiidx); addidx = addidx + 1; if iti.count() >= niti then; break; end; end; itiidx = itiidx + 1; end; loop int addidx = iti.count() + 1 until addidx > niti begin; iti.add(maxiti); addidx = addidx + 1; end; return iti; end; sub dotrial (int nsides, int iti, int trialidx, int blockidx) begin; # Set sides mspoly.set_sides(nsides); mspoly.redraw(); # Set event code string code; code = code + "nsides:" + string(nsides); code = code + "|onstime:" + string(onstime); code = code + "|iti:" + string(iti * tr); code = code + "|trialidx:" + string(trialidx); code = code + "|blockidx:" + string(blockidx); msevt.set_event_code(code); # Present trial mstrial.set_start_time(onstime); onstime = onstime + tdur + iti * tr; mstrial.present(); end; sub doblock (int nblocktrials, int blockidx) begin; # Make trials ntrials = int(ceil(double(nblocktrials) / 24.0) * 24.0); array<int> itilist[ntrials / 2]; itilist = getiti(ntrials / 2); itilist.append(itilist); array<int> trialpos[ntrials]; trialpos.fill(1, ntrials, 1, 1); trialpos.shuffle(); # Present trials int nsides, iti; loop int trialidx = 1 until trialidx > ntrials begin; #nsides = mod(trialpos[trialidx], 4) + 1 + 2; # Always use a pentagon nsides = 5; iti = itilist[trialpos[trialidx]]; dotrial(nsides, iti, trialidx, blockidx); trialidx = trialidx + 1; end; end; ############ ### Main ### ############ # Initialize display showfix(1, 25); # Get parallel port if (output_port_manager.port_count() == 0) then term.print("Forgot to add an output port!"); end; output_port pport = output_port_manager.get_port(1); # Send parallel trigger pport.send_code(255); # Send start code logfile.add_event_entry("START"); # Set task onset time onstime = clock.time() + disdaq * tr; # Show trials doblock(96, 1); # Show post-block fixation showfix(ntrpost * tr, 0); # Clear parallel port pport.send_code(0); # Send end code logfile.add_event_entry("END");
392eb5f8f29f10f84584a4f909e04259fbaf3e5b
717ddeb7e700373742c617a95e25a2376565112c
/2474/CH11/EX11.18/Ch11Ex18.sce
d56dbc64eccaf62a6f4dc200afc08b3ce2629550
[]
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
782
sce
Ch11Ex18.sce
// Scilab code Ex11.18: Pg.525 (2008) clc; clear; V = 2.00e-03*%pi/4; // Volume of the sample, cm^3 M_Zr = 91.22; // Molecular weight if Zr, g/mol rho_Zr = 6.506; // Density of Zr, g/cm^3 N_A = 6.02e+23; // Avagrado's number N_Zr = N_A*V*rho_Zr/M_Zr*0.1127; // No. of atoms of Zr sigma = 900e-003*1e-024; // Cross section for the reaction, Sq.cm I = 6.5e+012; // Intensity of the thermal neutrons, neutrons/Sq.cm-sec R = sigma*I; // Number of reactions per unit time per Zr neucleus Rate = N_Zr*R; // Rate at which the reaction proceeds, per sec printf("\nThe rate at which the reaction proceeds = %4.2e per sec", Rate); // Result // The rate at which the reaction proceeds = 4.45e+007 per sec // The answer is given wrong in the textbook
ec5f836aa1cee3d9cc37b50f276db82b6c2e02cf
8217f7986187902617ad1bf89cb789618a90dd0a
/source/2.4.1/macros/sci2for/%log2for.sci
972fdae741fbd121c26b61328e06bdb84cea803f
[ "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
603
sci
%log2for.sci
function [stk,nwrk,txt,top]=%log2for(nwrk) // Copyright INRIA txt=[] iop=evstr(op(2)) s2=stk(top);s1=stk(top-1);top=top-1 if s1(4)=='1'&s1(5)=='1'&s2(4)=='1'&s2(5)=='1' then if s2(2)=='2' then s2(1)='('+s2(1)+')',end if s1(2)=='2' then s1(1)='('+s1(1)+')',end stk=list(s1(1)+ops(iop,1)+s2(1),'1','0','1','1') else nwrk=dclfun(nwrk,'mcompar','0') if s1(1)=='[]' then s1(1)='0.0d0',end //void reference if s2(1)=='[]' then s2(1)='0.0d0',end //void reference out=callfun(['mcompar',s1(1),s1(4),s1(5),''''+ops(iop,1)+'''',s2(1),s2(4),s2(5)],'0') stk=list(out+'.eq.1','-1','0','1','1') end
939a478305f52d548c667ccc43b8e7cea00f2575
449d555969bfd7befe906877abab098c6e63a0e8
/2150/CH1/EX1.22/ex1_22.sce
98142dad9acfb641502038fa8afb6a37e7d14b3a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
367
sce
ex1_22.sce
// Exa 1.22 clc; clear; close; // Given data V_S = 10;// in V R1 = 1.5*10^3;// in ohm R2 = 1.8*10^3;// in ohm I_T = V_S/(R1+R2);// in A disp(I_T*10^3,"Using the ideal diode, the total current in mA is "); V_D1 = 0.7;// in V V_D2 = 0.7;// in V I_T = (V_S-V_D1-V_D2)/(R1+R2);// in A disp(I_T*10^3,"Using the pracitcal diode, the total current in mA is");
d7e2ae400e9d7e10145971fd4dd8db2909ac9b65
449d555969bfd7befe906877abab098c6e63a0e8
/1739/CH3/EX3.3/Exa3_3.sce
273db8aab57298e85994526004845e3aa1120ae1
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
465
sce
Exa3_3.sce
//Exa 3.3 clc; clear; close; //Given data : //Formula Pulse Broadning per Km : deltaTmat(per Km)=(deltaTAUs*1000/c)*(lambda*d2n/dlambda^2) deltaTAUs=45;//in nm deltaTAUs=45*10^-9;//in m lambda=0.9;//in um lambda=0.9*10^-6;//in m //let say, d^2n/dlambda^2=a a=4*10^-2;//in um^-2 a=a*(10^-6)^-2;//in m^-2 c=3*10^8;//in m/s deltaTmat_Km=(deltaTAUs*1000/c)*(lambda*a);//in sec/Km disp(deltaTmat_Km*10^9,"Pulse broadning per Km in nano second per Km : ");
39fbc9d328a5d419a0f0ea0c393797e6bce2165e
449d555969bfd7befe906877abab098c6e63a0e8
/74/CH2/EX2.2/example2_sce.sce
ad318457d18b3400180b5a821be8e5003803de57
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
sce
example2_sce.sce
//chapter 2 //example 2.2 //page 70 Ib1=18*10^-6 ;Ib2=22*10^-6;// given Ib=(Ib1+Ib2)/2 //input base current disp(Ib) //result Iios=(Ib2-Ib1) // input offset current disp(Iios)// result
7bd02f09082430bf65b58f47eddd2b71d5629a4e
449d555969bfd7befe906877abab098c6e63a0e8
/647/CH10/EX10.7/Example10_7.sce
d61fb697f69285c2583ad5b042bcb367049659e0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
Example10_7.sce
clear; clc; // Example: 10.7 // Page: 408 printf("Example: 10.7 - Page: 408\n\n"); // Solution //*****Data******// Temp = 30;// [OC] A = 0.625; //**************// P1sat = exp(13.71 - 3800/Temp);// [kPa] P2sat = exp(14.01 - 3800/Temp);// [kPa] // At azeotropic point: // P = gama1*P1sat + gama2*P2sat // gama1/gama2 = P2sat/P1sat // log(gama1) - log(gama2) = log(P2sat) - log(P1sat) // Val = log(gama1) - gama2 Val = log(P2sat) - log(P1sat); // log(gama1) = (A*x2^2) // log(gama2) = (A*x1^2) // A(x2^2 - x1^2) = 0.625*(x2^2 - x1^2)..................... (1) // x1 + x2 = 1............................................. (2) // On simplifying, we get: // A*(1 - (2*x1)) = Val x1 = (1/2)*(1 - Val/A); x2 = 1 - x1; printf("Azeotropic Composition\n"); printf("The mole fraction of component 1 is %.3f\n",x1); printf("The mole fraction of component 2 is %.3f\n",x2);
c8cc8013b195cf1a59a52925b339f1485d8e9f36
449d555969bfd7befe906877abab098c6e63a0e8
/2141/CH8/EX8.2/Ex8_2.sce
1ffd66b4242cbcdd84ac240c880646cf3374f7ae
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
538
sce
Ex8_2.sce
clc //initialisation of variables hi=1306.9 //lbm si=1.5894//lbm x=0.077 //lbm n=0.7 //lbm\ T0=537 //F Te=586//F se=0.1897 //Btu/lbm hes=1116.2-se*(1022.2)//Btu/lbm Ws=hi-hes//Btu/lbm Wa=n*Ws//Btu/lbm he=hi-Wa //Btu/lbm S=1.9200 //Btu/lbm //CALCULATIONS Se=S-x*(1.7451)//Btu/lbm Wrev=(hi-he)-T0*(si-Se)//Btu/lbm I=Wrev-Wa //Btu/lbm M=T0*(Se-si)-0//Btu/lbm WS=hi-hes//Btu/lbm Wc=(Te-T0)*(Se-si)//Btu/lbm Wrev=WS-Wc//Btu/lbm //RESULTS printf('The work input to this heat pump per unit mass flow=% f Btu/lbm',Wrev)
01fb29e8bef32bdd27853f3d02fa2e649d6257d0
449d555969bfd7befe906877abab098c6e63a0e8
/1658/CH7/EX7.5/Ex7_5.sce
ee040fae2b4721ff1a7f12a24c6678d08397e55a
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
326
sce
Ex7_5.sce
clc; //e.g7.5 C1=5*10**-12;//min C2=5*10**-12;//min L=10*10**-3; CT=(C1*C2)/(C1+C2);//CTmax disp('F',CT*1,"CT="); fo=1/(2*%pi*sqrt(L*CT)); disp('MHZ',fo*10**-6,"fo="); C1=50*10**-12;//max C2=50*10**-12;//max CT=(C1*C2)/(C1+C2);//CTmin disp('F',CT*1,"CT="); fo=1/(2*%pi*sqrt(L*CT)); disp('kHZ',fo*10**-3,"fo=");
9d949032324ba85d1f4bd0fa357881939b4f00e6
a30001e45f0342ced961e0431af0f297bf00a538
/TraceFileDiagnostics/SciLabScripts/Euler2R.sci
340c979de4d08dd196ff9f7fcca4ae5882840c58
[]
no_license
jsayres82/TraceTool
54697a1c744d0838e894a9bfdce800a4ba6dbbde
68826d7b31d0fa064b758d24fc408dbe27763e8b
refs/heads/master
2021-08-30T08:03:07.854850
2017-12-16T23:12:05
2017-12-16T23:12:05
109,863,651
0
0
null
null
null
null
UTF-8
Scilab
false
false
349
sci
Euler2R.sci
function R = Euler2R(A) // Euler angle -> Orientation matrix a1 = A(1); a2 = A(2); a3 = A(3); R1 = [1, 0, 0; 0, cos(a1), -sin(a1); 0, sin(a1), cos(a1)]; R2 = [cos(a2), 0, sin(a2); 0, 1, 0; -sin(a2), 0, cos(a2)]; R3 = [cos(a3), -sin(a3), 0; sin(a3), cos(a3), 0; 0, 0, 1]; R = R1*R2*R3; endfunction
e166ab1e9ae4682a58fdf8fa4b3bb686216176ed
449d555969bfd7befe906877abab098c6e63a0e8
/2096/CH1/EX1.49/ex_1_49.sce
72ebea8daf7002dc7142d9ac769104288971c3d0
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
563
sce
ex_1_49.sce
//Example 1.49://ARITHEMATIC MEAN,AVERAGE DEVIATION ,STANDARD DEVIATION AND VARAIANCE clc; clear; q=[1.34,1.38,1.56,1.47,1.42,1.44,1.53,1.48,1.40,1.59];//length in mm AM= mean(q);//arithematic mean in mm for i= 1:10 qb(i)= q(i)-AM; end Q= [qb(1),qb(2),qb(3),qb(4),qb(5),qb(6),qb(7),qb(8),qb(9),qb(10)];// AV=(-qb(1)-qb(2)+qb(3)+qb(4)-qb(5)-qb(6)+qb(7)+qb(8)-qb(9)+qb(10))/10;// SD=stdev(Q);//standard deviation V=SD^2;//variance disp(AM,"arithematic mean in mm") disp(AV,"average deviation") disp(SD,"standard deviation in mm") disp(V,"variance in mm square")
4a0a93939bc68e434f0efe0530e1005e3cac5958
449d555969bfd7befe906877abab098c6e63a0e8
/620/CH13/EX13.1/example13_1.sce
0ecf75019f41e1c4452e6447a2d206eb019eec05
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
321
sce
example13_1.sce
v1=1.5; v2=0.96; v3=1; v4=0.014; disp("Part a"); true=v3+v4; disp("the true reading (in V) of the voltmeter is"); disp(true); disp("Part b"); cor=true-v2; disp("the voltmeter correction (in mV) is"); disp(cor*10^3); disp("Part c"); fsd=cor*100/v1; disp("The F.S.D. accuacy (in %) of the meter is"); disp(fsd);
c28655a08b2fdefa6c76c39e2cf6833a75f396d1
2ae858a680a4ccf8a2ec89a45a1e48a0292d8eab
/macros/threshold.sci
3155167f1953d77698fe7a13ee6296017fe7b750
[]
no_license
shreyneil/FOSSEE-Image-Processing-Toolbox
f315a82c325b2d6cbd0611689f3e30071a38490d
dd1cbd0dcbe0c3dd11d6ce1ab205b4b72011ae56
refs/heads/master
2020-12-02T16:26:13.755637
2017-07-07T19:22:33
2017-07-07T19:22:33
96,552,147
0
0
null
2017-07-07T15:32:15
2017-07-07T15:32:15
null
UTF-8
Scilab
false
false
1,594
sci
threshold.sci
// Copyright (C) 2015 - IIT Bombay - FOSSEE // // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt // Author: Shreyash Sharma // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in function [outputImg,res]= threshold(inputImage, threshold_value, max_value,thresholdType) // This function is used to apply an adaptive threshold to an array. // // Calling Sequence // B = threshold(A, threshold_value, max_value,thresholdType); // // Parameters // A: image matrix of the source image. // threshold_value: The thresh value with respect to which the thresholding operation is made. // max_value: The value used with the Binary thresholding operations (to set the chosen pixels). // thresholdType: One of the 5 thresholding operations. eg,THRESH_BINARY,THRESH_BINARY_INV,THRESH_TRUNC,THRESH_TOZERO,THRESH_TOZERO_INV. // B : output image by applying the threshold operation. // // Description // The function transforms a grayscale image to a binary image using a formulae according to the given threshold type. // // Examples // i = imread('lena.jpeg',0); // [ii ii1] = threshold(i,50,255,"THRESH_BINARY"); // imshow(ii); inputList=mattolist(inputImage); [outputList,res]=raw_threshold(inputList, threshold_value, max_value,thresholdType) for i=1:size(outputList) outputImg(:,:,i)=outputList(i) end endfunction
7126dfa24e429a694ef3b3383af04b039292e639
449d555969bfd7befe906877abab098c6e63a0e8
/2732/CH6/EX6.6/Ex6_6.sce
8735087d241529cbfbd64ef88c04ce100847c1df
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
393
sce
Ex6_6.sce
clc // initialization of variables clear // linked to 6_5 A=3 //cm^2 E= 2*10^6 //kg/cm^2 nu= 0.25 l= 60 //m L=150 //cm d=0.5 //cm dd=10 //cm D=180 //cm //calculations K=(l*100/(A*E))+(L*D/2*D*32*2*(1+nu)/(E*%pi*dd^4*2)) P=d/K Ts=P/A fs=dd*D*P*32/(%pi*4*dd^4) // results printf('The tensile stress is %.1f kg/cm^2',Ts) printf('\n Maximum shear stress is %.1f kg/cm^2',fs)
ebdebfcd78a1f7c4a38e840a48e13ef2be107771
a8592d34f144b71794ebf30f1c2a1b5faf0b053c
/TugasBesar2018/soal_01.sce
6867d969fb2b4191a58c6124d9415652c015200a
[]
no_license
f-fathurrahman/ffr-MetodeNumerik
ee9a6a7153b174b1ba3d714fe61ccbd1cb1dd327
e3a9da224c0fd5b32e671708e890018a3c4104c4
refs/heads/master
2023-07-19T22:29:38.810143
2023-07-07T10:02:34
2023-07-07T10:02:34
107,272,110
2
2
null
null
null
null
UTF-8
Scilab
false
false
1,577
sce
soal_01.sce
exec("ode_euler.sce",-1) exec("ode_euler_PC.sce",-1) exec("ode_RK4.sce",-1) // f and y are array with size 2 // y(1) = y // y(2) = y' // // f(1) = y' = y(2) // f(2) = y'' = -y = -y(1) // There is no dependence of f to t explicitly. // However, we put it here because in general there might be dependence // to t function f = dy(t,y) f(1) = y(2) f(2) = -y(1) f = f' endfunction tspan = [0 50] y0 = [0 1] //method = "euler" method = "euler_PC" //method = "RK4" h = 0.05 N = (tspan(2) - tspan(1))/h if method == "RK4" [t,y] = ode_RK4(dy,tspan,y0,N) elseif method == "euler" [t,y] = ode_euler(dy,tspan,y0,N) elseif method == "euler_PC" [t,y] = ode_euler_PC(dy,tspan,y0,N) else error("method is unknown") end clf() plot( y(:,1), y(:,2), 'b' ) // xmin, ymin, xmax, ymax xlabel('$y_1$') ylabel('$y_2$') if method == "euler" square(-15,-15,15,15) xs2pdf( gcf(), "images/soal_01_ode_euler_y1_y2.pdf" ) elseif method == "euler_PC" square(-1.5,-1.5,1.5,1.5) xs2pdf( gcf(), "images/soal_01_ode_euler_PC_y1_y2.pdf" ) elseif method == "RK4" square(-1.5,-1.5,1.5,1.5) xs2pdf( gcf(), "images/soal_01_ode_RK4_y1_y2.pdf" ) end clf() plot( t, y(:,1), 'b') xlabel('$t$') ylabel('$y_1$') if method == "euler" xs2pdf( gcf(), "images/soal_01_ode_euler_t_y1.pdf") elseif method == "euler_PC" set(gca(),"data_bounds",[0,50,-1.2,1.2]) xs2pdf( gcf(), "images/soal_01_ode_euler_PC_t_y1.pdf") elseif method == "RK4" set(gca(),"data_bounds",[0,50,-1.2,1.2]) xs2pdf( gcf(), "images/soal_01_ode_RK4_t_y1.pdf") end if getscilabmode() ~= "STD" quit() end
6f1072cccc5b8fffc1020280c92d35ec0e1bb7f3
449d555969bfd7befe906877abab098c6e63a0e8
/1376/CH10/EX10.1/10_1.sci
d4372d21991639832b5a1f54bf6e00dd7f425679
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
271
sci
10_1.sci
//10.1 clc; K=0.1*10^-3; d=60; N2=200; phi2=K*d/(2*N2); a2=25*10^-6; B=phi2/a2; N=300; I=10; l=0.1; H=N*I/l; Permability_absolute=4*%pi*10^-7; Permability_relative=B/(Permability_absolute*H) printf("Relative permability of iron=%.2f",Permability_relative)
d5513c12ba90778a21eee077c429f4c20641911a
449d555969bfd7befe906877abab098c6e63a0e8
/1499/CH5/EX5.20/s20.sce
e0ac18b83f4e2d3157c6e1a17ad52877dbc00d25
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
358
sce
s20.sce
s=%s; syms K h=syslin('c',(K/(s*(s+1)*(0.1*s+1)))) H=syslin('c',h) fmin=0.001; fmax=1000; bode(G,fmin,fmax) show_margins(G) xtitle("uncompensated system") [gm,freqGM]=g_margin(G) [pm,freqPM]=p_margin(G) disp(gm,"gain_margin=") disp((freqGM*2*%pi),"gain margin freq="); disp(pm,"phase margin=") disp((freqPM*2*%pi),"phase margin freq=");
39064c8aaa43732b08ca62116960c204f6b31c1f
3b9a879e67cbab4a5a4a5081e2e9c38b3e27a8cc
/Área 1/Revisão P1/ErroCondicionamentoEntradaSaida.sce
4f6308dcb1127b3a722c0414262e08120721e216
[ "MIT" ]
permissive
JPedroSilveira/numerical-calculus-with-scilab
32e04e9b1234a0a82275f86aa2d6416198fa6c81
190bc816dfaa73ec2efe289c34baf21191944a53
refs/heads/master
2023-05-10T22:39:02.550321
2021-05-11T17:17:09
2021-05-11T17:17:09
null
0
0
null
null
null
null
UTF-8
Scilab
false
false
496
sce
ErroCondicionamentoEntradaSaida.sce
A = [1.000001 2 3;4 5 6;7 8 9] x = [1;2;5] b1 = A*x b2 = b1 + [10^(-8);0;0] //Erro de 10^(-8) adicionado x1 = resolve(A,b1) x2 = resolve(A,b2) //Residuos residuo_x1 = b1 - A*x1 residuo_x2 = b2 - A*x2 //Erro Relativo erro_entrada = norm(b1-b2)/norm(b1) erro_saida = norm(x1-x2)/norm(x1) //Kappa para cada norma kappa1 = norm(A,1)*norm(inv(A),1) kappa2 = norm(A,2)*norm(inv(A),2) kappaInf = norm(A,%inf)*norm(inv(A),%inf) erro_maximo = erro_entrada*kappa2 //Erro máximo de acordo com o capa
db9d8d05f6a51cbedebe8f4666755f1d0b92de6f
449d555969bfd7befe906877abab098c6e63a0e8
/647/CH6/EX6.19/Example6_19.sce
e6cf5d9102a3b4f72eee0e2a009ebcb573e71041
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
332
sce
Example6_19.sce
clear; clc; // Example: 6.19 // Page: 227 printf("Example: 6.19 - Page: 227\n\n"); // Solution // *****Data******// a = 3.59;// [square L atm /square mol] b = 0.043;// [L/mol] R = 0.082;// [J/mol K] //***************// // From Eqn. 6.122: Ti = 2*a/(R*b);// [K] printf("Inversion of temperature is %.1f K",Ti);
e7cd9a08e7b25d7fc1024502074e7e2a618b0a7b
449d555969bfd7befe906877abab098c6e63a0e8
/2399/CH2/EX2.8.3/Example2_8_3.sce
8162e224779415c7651e588b55b7e2d19283a8c6
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
869
sce
Example2_8_3.sce
// Example 2.8.3 clc; clear; n1=1.482; //refractive index of core n2=1.474; //refractive index of cladding lamda=820d-9; //Wavelength NA=sqrt(n1^2 - n2^2); //computing Numerical aperture theta= asind(NA); //computing acceptance angle solid_angle=%pi*(NA)^2; //computing solid angle a=2.405*lamda/(2*3.14*NA); //computing core radius a=a*10^6; printf("\nNumerical aperture is %.3f.\nAcceptance angle is %.1f degrees.\nSolid angle is %.3f radians.\nCore radius is %.2f micrometer.",NA,theta,solid_angle,a); //answer in the book for Numerical aperture is 0.155, deviation of 0.001. //answer in the book for acceptance angle is 8.9, deviation of 0.1. //answer in the book for solid acceptance angle is 0.075, deviation of 0.001. //answer in the book for core radius is 2.02 micrometer, deviation of 0.02 micrometer.
cd6a66c07dee17d8d312831df55f54ba8f767a27
717ddeb7e700373742c617a95e25a2376565112c
/3044/CH7/EX7.9/Ex7_9.sce
112ce19951b404333c43da2d42f3629b61ae3398
[]
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
404
sce
Ex7_9.sce
//Variable declaration l = [5.57,5.76,4.18,4.64,7.02,6.62,6.33,7.24,5.57,7.89,4.67,7.24,6.43,5.59,5.39] // calculation Mean = mean(l) var = 0 for i = 1:length(l) var = var + (l(i)-Mean)^2 end var = var/length(l) coff = sqrt(var)/Mean // Results printf ( "Maximum likelihood estimates of Mean : %.3f , Variance : %.3f",Mean,var) printf ( "Cofficient of variation: %.3f",coff)
72a0b299d7f5b6ce8fec5a956e06a2e50dee01bd
449d555969bfd7befe906877abab098c6e63a0e8
/1994/CH7/EX7.7/Example7_7.sce
cb7c18bf6a38dad921f3c47e0bf628c215ce5159
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
134
sce
Example7_7.sce
//Chapter-7,Example7_7,pg 7-30 Rm=500 Im=40*10^-6 V=10 Rs=(V/Im)-Rm printf("multiplier resistance\n") printf("Rs=%.2f ohm",Rs)
776961078444793a48694ff2cc05b72e49c962f0
449d555969bfd7befe906877abab098c6e63a0e8
/3845/CH21/EX21.5/Ex21_5.sce
31e550e9be8de30068028febb5812bb81ec6f897
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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,025
sce
Ex21_5.sce
//Example 25.1 R1=6;//Resistance (ohm) R2=2.5;//Resistance (ohm) R3=1.5;//Resistance (ohm) r1=0.5;//Internal resistance (ohm) r2=0.5;//Internal resistance (ohm) emf1=18;//Emf 1 (V) emf2=45;//Emf 2 (V) //A set of three equations are required since there are three unknowns-currents I1,I2 and I3 //Equation 1: I1=I2+I3 (Using Kirchoff's junction rule, See Equation 21.54) //Equation 2: -I1*R1-I2*(R2+r1)=-emf1 (Using Kirchoff's loop rule in loop abcdea and rearranging, See Equation 21.55) //Equation 3: I1*R1+I3*(R3+r2)=emf2 (Using Kirchoff's loop rule in loop aefgha and rearranging, See Equation 21.57) A=[1 -1 -1;-R1 -(R2+r1) 0;R1 0 (R3+r2)];//Matrix containing coefficients of variables C=[0 -emf1 emf2]';//Matrix containing constants //Equation is of the form A*B=C, therefore B=inv(A)*C;//To compute values of variables //we use the form A*B=C for i=1:1:3 printf('Current I%d = %0.2f A\n',i,B(i,1)) end //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest
8d4b3af6c21b5835e02c97281b6b76507034ca23
449d555969bfd7befe906877abab098c6e63a0e8
/1775/CH6/EX6.10/Chapter6_Example10.sce
ab81e67eaef6a089912465e5629b1e4612adeeff
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
556
sce
Chapter6_Example10.sce
//Chapter-6, Illustration 10, Page 309 //Title: Refrigeration cycles //============================================================================= clc clear //INPUT DATA Tg=470;//Heating temperature in K T0=290;//Cooling temperature in K TL=270;//Refrigeration temperature in K //CALCULATIONS COP=((Tg-T0)/Tg)*(TL/(T0-TL));//Ideal COP of absorption refrigeration system //OUTPUT mprintf('Ideal COP of absorption refrigeration system is %3.2f',COP) //==============================END OF PROGRAM=================================
ef44b72c98d754f8d9095583fafa140f7c5e0d0a
1489f5f3f467ff75c3223c5c1defb60ccb55df3d
/tests/test_diff_3_a.tst
4b5c65c04256df84e1ed230ddc0004dc14be2a70
[ "MIT" ]
permissive
ciyam/ciyam
8e078673340b43f04e7b0d6ac81740b6cf3d78d0
935df95387fb140487d2e0053fabf612b0d3f9e2
refs/heads/master
2023-08-31T11:03:25.835641
2023-08-31T04:31:22
2023-08-31T04:31:22
3,124,021
18
16
null
2017-01-28T16:22:57
2012-01-07T10:55:14
C++
UTF-8
Scilab
false
false
55
tst
test_diff_3_a.tst
>>>>>> (1) x0 x1 >>>>>> (2) y0 y1 ====== a b c d e f g
359c892476cdc69f8f488908a6026a818b163922
08bfc8a1f8e44adc624d1f1c6250a3d9635f99de
/SDKs/swig/Examples/test-suite/scilab/primitive_types_runme.sci
83bfad74478b512a2f5e1dc0a726523272910783
[]
no_license
Personwithhat/CE_SDKs
cd998a2181fcbc9e3de8c58c7cc7b2156ca21d02
7afbd2f7767c9c5e95912a1af42b37c24d57f0d4
refs/heads/master
2020-04-09T22:14:56.917176
2019-07-04T00:19:11
2019-07-04T00:19:11
160,623,495
0
0
null
null
null
null
UTF-8
Scilab
false
false
129
sci
primitive_types_runme.sci
version https://git-lfs.github.com/spec/v1 oid sha256:73d06afb6aff4cbbad5fa7703bb05184b1ede26cbf51a87735e674c39d1b3d02 size 2433
0b6c25787b6d1388ea4d2351181714dab318a644
449d555969bfd7befe906877abab098c6e63a0e8
/2885/CH7/EX7.12/ex7_12.sce
ac577261d17f1bf7f558dc14cd1f109b4633b4e8
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
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
ex7_12.sce
//Calculate the voltage gain of the FET clear; clc; //soltion //given Idss=8*10^-3;//A Vp=4;//V rd=25*10^3;//ohm Rd=2.2*10^3;//ohm //by the help of figure Vgs=-1.8;//V gmo=2*Idss/(abs(Vp)); gm=gmo*(1-(Vgs/(-Vp))); Av=-gm*(rd*Rd/(rd+Rd)); printf("The voltage gain of the FET %.2f",Av);
3a286da726f4e6421855f676680412bea11fc406
449d555969bfd7befe906877abab098c6e63a0e8
/2615/CH11/EX48.1/48.sce
e7f2bc8bf79d749ae7c51cb9cd93f294363e1525
[]
no_license
FOSSEE/Scilab-TBC-Uploads
948e5d1126d46bdd2f89a44c54ba62b0f0a1f5e1
7bc77cb1ed33745c720952c92b3b2747c5cbf2df
refs/heads/master
2020-04-09T02:43:26.499817
2018-02-03T05:31:52
2018-02-03T05:31:52
37,975,407
3
12
null
null
null
null
UTF-8
Scilab
false
false
203
sce
48.sce
clc //initialisation of variables v=10//m/sec f=20//kg g=9.81//m/sec q=12//m/sec //CALCULATIONS M=f/q//kg*m^-1 sec^2 G=M*g//kg //RESULTS printf('the acceleration due to gravity is =% f kg',G)