{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lab_1_Poulos

# Lab_1_Poulos - H BME 341 Lab 1.1 ‘ Samuel T Poulos 1 28...

This preview shows pages 1–3. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: H ** BME 341 Lab 1.1 ‘ Samuel T. Poulos 1- 28- 09 ** L H * Lab 1: Synthetic Data * L H * General Commands * L Off @ General:: "spell" D ; Off @ General:: "spell1" D ; H * Create Synthetic Data * L ?Table Table @ expr , 8 i max <D generates a list of i max copies of expr . Table @ expr , 8 i , i max <D generates a list of the values of expr when i runs from 1 to i max . Table @ expr , 8 i , i min , i max <D starts with i = i min . Table @ expr , 8 i , i min , i max , di <D uses steps di . Table @ expr , 8 i , 8 i 1 , i 2 , … <<D uses the successive values i 1 , i 2 , … . Table A expr , 8 i , i min , i max < , 9 j , j min , j max = , … E gives a nested list. The list associated with i is outermost. à H * Table of Zeroes * L tab1 = Table @ 0, 8 10 < , 8 3 <D tab1 = Table @ 0, 8 a, 1, 10 < , 8 b, 1, 3 <D TableForm @ tab1 D 88 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 << 88 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 < , 8 0, 0, 0 << H * Table of Integers * L tab2 = Table @ b + 3 * H a- 1 L , 8 a, 1, 10 < , 8 b, 1, 3 <D TableForm @ tab2 D 88 1, 2, 3 < , 8 4, 5, 6 < , 8 7, 8, 9 < , 8 10, 11, 12 < , 8 13, 14, 15 < , 8 16, 17, 18 < , 8 19, 20, 21 < , 8 22, 23, 24 < , 8 25, 26, 27 < , 8 28, 29, 30 << 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 H * Table of a Traveling Wave * L ?: = lhs : = rhs assigns rhs to be the delayed value of lhs . rhs is maintained in an unevaluated form. When lhs appears, it is replaced by rhs , evaluated afresh each time. à f @ a _ , b _ D : = Sin @H a ê 1000- b ê 30 L * Pi D ; tab3 = Table @ f @ a, b D , 8 a, 1, 1000 < , 8 b, 1, 30 <D ; tab3 @@ 1 DD tab3 @@ 1000 DD :- Sin B 97 p 3000 F ,- Sin B 197 p 3000 F ,- Sin B 99 p 1000 F ,- Sin B 397 p 3000 F ,- Sin B 497 p 3000 F ,- Sin B 199 p 1000 F ,- Sin B 697 p 3000 F ,- Cos B 703 p 3000 F ,- Cos B 201 p 1000 F ,- Cos B 503 p 3000 F ,- Cos B 403 p 3000 F ,- Cos B 101 p 1000 F ,- Cos B 203 p 3000 F ,- Cos B 103 p 3000 F ,- Cos B p 1000 F ,- Cos B 97 p 3000 F ,- Cos B 197 p 3000 F ,- Cos B 99 p 1000 F ,- Cos B 397 p 3000 F ,- Cos B 497 p 3000 F ,- Cos B 199 p 1000 F ,- Cos B 697 p 3000 F ,- Sin B 703 p 3000 F ,- Sin B 201 p 1000 F ,- Sin B 503 p 3000 F ,- Sin B 403 p 3000 F ,- Sin B 101 p 1000 F ,- Sin B 203 p 3000 F ,- Sin B 103 p 3000 F ,- Sin B p 1000 F> : Sin B p 30 F , Sin B p 15 F , 1 4 J- 1 + 5 N , Sin B 2 p 15 F , 1 2 , 5 8- 5 8 , Sin B 7 p 30 F , Cos B 7 p 30 F , 1 4 J 1 + 5 N , 3 2 , Cos B 2 p 15 F , 5 8 + 5 8 , Cos B p 15 F , Cos B p 30 F , 1, Cos B p 30 F , Cos B p 15 F , 5 8 + 5 8 , Cos B 2 p 15 F...
View Full Document

{[ snackBarMessage ]}

### Page1 / 21

Lab_1_Poulos - H BME 341 Lab 1.1 ‘ Samuel T Poulos 1 28...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online