2016年05月23日
Introduction to Programming with MATLAB Lesson 3
MATLABの復習のために、COURSERAのコースを進めている。Week4のテーマはFunctionということで、簡単な行列処理を交えた関数の作成が課題の中心。
ホームワークを提出するには、Graderと呼ばれるMATLABのファイルhw3.pをダウンロードして使用する。問題を解いて、このGraderを実行すると以下のような案内がでて、番号を選ぶことで各問題の答えをチェックすることができる。全ての問題をチェックし終えたら、"9"を選択して課題の添削を行う。添削が終わるとGraderがあるフォルダに”HW3.MOOC”というファイルが作成される。これをCourseraのコースのWebsiteにアップロードすることで、ホームワークの提出が完了する。
マイルとキロメートルの距離の変換を間違え、延々と無駄な時間を費やしたが、無事にLesson3が完了。
Homework 3 Grader (v3.16.7.2)
Type the number of the problem that you would like to check
or choose the last option to check all problems and compute
a score and a submission code. (Nothing is submitted.)
0. EXIT
1. circle
2. even_index
3. flip_it
4. top_right
5. peri_sum
6. light_speed
7. accelerate
8. income
9. ALL PROBLEMS (gives score and submission code)
Your selection: 9
Grading all problems ...
Problem 1 (circle):
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) 2
Feedback: Your function performed correctly for argument(s) 3
Feedback: Your function performed correctly for argument(s) 0
Feedback: Your function performed correctly for argument(s) 1.71456669863338
Feedback: Your function performed correctly for argument(s) 9.61035847547163
Feedback: Your function performed correctly for argument(s) 4.77685529036592
Feedback: Your function performed correctly for argument(s) 6.36225277991616
Feedback: Your function performed correctly for argument(s) 0.881510276101811
Your solution is correct.
Problem 2 (even_index):
Feedback: Your function performed correctly for argument(s) [1 2 3;4 5 6]
Feedback: Your function performed correctly for argument(s) [1 2 3 4;5 6 7 8]
Feedback: Your function performed correctly for argument(s) [1 2 3 4 5 6 7 8 9 10 11 12]
Feedback: Your function performed correctly for argument(s) [2;4;6;8;10;12;14;16;18;20;22]
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) [12 12 15 15 8 2 15;11 13 6 2 2 4 1;3 14 11 19 10 14 4;18 6 17 1 12 19 8;18 15 5 18 17 3 15;19 8 14 5 9 13 4;7 2 12 5 10 13 7]
Feedback: Your function performed correctly for argument(s) [12;9;8;13]
Feedback: Your function performed correctly for argument(s) [1 2;13 4]
Feedback: Your function performed correctly for argument(s) [1 4;19 1;12 1;12 12;10 6;7 11;16 8]
Feedback: Your function performed correctly for argument(s) [15 15 19 19 1 1 9 4 10 6 8 10 8;12 11 14 3 1 9 11 20 13 11 19 16 2;18 8 2 6 2 7 6 11 12 18 7 14 1;20 19 4 17 17 6 19 20 14 14 8 4 8;9 16 18 2 15 13 9 6 19 4 16 20 16;18 8 9 8 2 15 6 6 15 19 11 5 14;7 7 15 10 6 7 17 5 12 1 16 2 19;8 7 5 10 10 12 14 13 17 11 6 3 2;7 18 1 5 14 15 13 13 14 9 17 8 2;2 14 15 1 19 8 19 18 4 18 14 14 12;2 3 16 7 13 3 17 4 5 5 4 19 14;1 2 4 8 15 8 17 11 15 3 4 17 19]
Feedback: Your function performed correctly for argument(s) [2 17 17 3 17 10 18 12 16 14 1 5 16 11 13;18 15 1 11 15 12 9 9 1 2 5 1 2 12 8;14 10 16 20 13 3 16 10 17 10 7 2 3 15 12;7 6 1 16 14 14 8 1 9 17 17 13 4 12 17;12 5 13 3 14 13 6 17 17 5 14 17 3 4 20;14 9 6 16 8 9 1 8 1 19 7 11 12 3 1;18 2 14 3 2 12 10 16 13 6 17 17 16 7 11;17 9 18 9 14 8 2 20 15 12 15 15 9 4 1;8 5 20 10 20 8 5 17 16 7 11 14 7 11 4;13 17 1 5 20 6 12 17 8 15 20 9 1 12 13]
Your solution is correct.
Problem 3 (flip_it):
Feedback: Your function performed correctly for argument(s) [1 2 3]
Feedback: Your function performed correctly for argument(s) [1 3 5 7 9 11]
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) [9 2 10 2 7 3 10 8 7 4 4 8 1]
Feedback: Your function performed correctly for argument(s) [8 10 6 1 8 9 4 5 3 7 1 3 5]
Feedback: Your function performed correctly for argument(s) [4 1 4 8 8 9 4 9]
Feedback: Your function performed correctly for argument(s) [9 7 2 7 1 4 6 10 3]
Feedback: Your function performed correctly for argument(s) [6 2 10 6 9 6]
Feedback: Your function performed correctly for argument(s) [17 9 12 8 18 2 4 3 12 10 5 8 6 19 9]
Feedback: Your function performed correctly for argument(s) [19 15 8 1 14 18 6 2 2 15 5 19 2 17 14 17 6 7 19 11]
Your solution is correct.
Problem 4 (top_right):
Feedback: Your function performed correctly for argument(s) [1 2;3 4], 1
Feedback: Your function performed correctly for argument(s) [1 2;3 4], 2
Feedback: Your function performed correctly for argument(s) [8 1 10 8;6 7 1 8;6 8 9 1;2 9 4 5], 1
Feedback: Your function performed correctly for argument(s) [2 10 6 10;8 10 10 9;7 1 9 2;5 7 9 10], 2
Feedback: Your function performed correctly for argument(s) [6 6 6 4;4 1 1 6;2 6 7 10;4 7 4 2], 3
Feedback: Your function performed correctly for argument(s) [5 1 2 1;6 7 7 1;5 6 5 8;7 5 4 1], 4
Feedback: Your function performed correctly for argument(s) [1 2 3 4 5 6 7 8 9 10], 1
Feedback: Your function performed correctly for argument(s) [1;3;5;7;9;11;13;15;17;19;21], 1
Feedback: Your function performed correctly for argument(s) [13 20 12 15 6 13 10 17 13 8;14 18 15 13 20 5 17 20 17 7;16 8 8 4 11 17 6 3 12 17;12 14 18 20 9 8 19 1 1 8;11 5 1 5 20 16 20 11 1 8], 2
Feedback: Your function performed correctly for argument(s) [6 16 7 12 1;1 18 7 18 19;12 4 20 12 7;2 10 15 4 18;11 20 20 5 15;6 17 16 8 12;4 11 1 10 1;14 1 13 13 8], 2
Feedback: Your function performed correctly for argument(s) [9 20 1 2 13;2 19 10 2 20;2 14 15 17 5;13 20 12 10 4;8 14 3 7 1;19 4 7 8 13;11 1 13 16 19], 5
Feedback: Your function performed correctly for argument(s) [20 8 10 1 11 6 13 7 9 18;17 14 1 16 13 19 13 3 19 1;5 13 12 7 11 13 20 14 19 19;16 8 10 8 17 2 15 9 2 15;18 19 20 19 5 13 6 11 11 12;7 13 15 13 7 20 4 9 13 9;17 16 19 18 17 16 20 5 19 5;13 11 7 9 7 10 4 14 20 16;8 6 15 17 6 12 12 17 4 14;14 12 19 14 13 6 5 6 2 4], 5
Feedback: Your function performed correctly for argument(s) [13 20 6 8 16 17 12 10 13 13;4 7 7 20 16 17 10 1 10 2;3 15 6 2 1 15 12 6 3 11;5 14 9 17 9 2 17 20 19 8;6 14 9 15 10 4 16 13 20 5;19 16 20 9 5 15 6 13 7 3;3 19 1 15 2 13 17 1 7 20;1 13 18 10 5 18 14 7 8 12;20 16 7 19 18 17 10 1 2 15;6 7 11 12 17 10 7 18 1 12], 5
Feedback: Your function performed correctly for argument(s) [6 6 12 3 3 4 12 8 9 18 4 8 8 12 15;13 10 12 2 3 19 6 9 6 3 5 5 3 11 9;2 10 9 5 2 11 18 7 1 9 4 5 5 12 18;18 3 16 6 12 9 4 18 15 13 18 20 19 4 5;1 4 1 16 13 13 16 14 7 6 20 8 15 8 14;17 10 15 15 13 7 3 20 17 8 3 1 19 4 13;14 12 6 14 8 1 20 13 10 19 17 8 16 3 19;1 10 12 12 17 15 12 18 8 17 10 3 16 19 10;8 9 12 20 7 17 15 4 10 12 3 9 9 3 14;17 14 11 14 18 8 12 14 17 1 9 15 12 9 8;4 11 20 18 2 15 9 14 10 4 8 7 14 1 1;4 4 11 7 6 8 8 19 19 18 17 20 1 8 18;7 13 8 20 15 4 8 9 9 4 12 17 3 5 1;14 14 12 4 6 20 13 19 6 16 11 1 3 11 15;3 16 19 19 19 8 9 6 16 3 18 7 9 18 9;3 6 12 13 15 15 3 9 6 3 12 15 17 20 13], 2
Feedback: Your function performed correctly for argument(s) [6 11 14 15 4 1 11 7 9 6 11 7 8 4 5;9 12 12 11 9 7 1 11 16 15 20 20 12 13 10;4 7 6 9 10 7 15 11 20 4 1 8 12 4 5;17 7 20 11 18 14 6 15 14 1 6 1 6 10 7;4 2 15 11 1 20 14 7 4 20 12 9 12 1 12;1 16 5 13 16 7 13 18 2 18 5 19 6 10 9;20 5 6 16 7 11 15 6 20 14 15 2 18 11 13;4 18 9 16 19 10 5 13 16 19 18 20 11 3 6;11 5 6 15 15 18 17 5 17 18 12 19 18 7 6;2 20 13 2 4 11 17 20 8 8 7 17 18 11 12;3 1 8 20 7 19 17 20 5 5 8 5 13 4 3;8 13 12 9 13 10 13 13 17 19 19 9 3 7 13;17 3 9 9 5 13 12 8 14 9 18 12 3 18 20;12 11 11 3 10 14 7 14 17 5 9 20 15 15 20;15 2 14 9 13 18 7 1 11 12 12 9 4 9 16;14 17 13 7 16 13 7 19 16 11 15 11 4 6 18;5 4 3 15 13 9 3 11 3 15 5 12 16 14 11;9 13 4 20 6 12 16 13 20 4 6 6 4 17 19], 5
Your solution is correct.
Problem 5 (peri_sum):
Feedback: Your function performed correctly for argument(s) [1 1;1 1]
Feedback: Your function performed correctly for argument(s) [1 2 3;4 5 6;7 8 9]
Feedback: Your function performed correctly for argument(s) [7 7 1 2;4 5 6 7;10 2 6 2;5 1 10 6;7 4 6 3]
Feedback: Your function performed correctly for argument(s) [4 1 5 8 7;6 2 6 10 3;1 1 4 5 9]
Feedback: Your function performed correctly for argument(s) [5 6 4 10 15 17 2 10 9;9 1 7 13 12 10 10 7 6;16 11 16 3 15 13 5 15 6;11 20 7 14 16 15 20 9 11;18 4 2 7 3 14 10 16 17;17 5 9 2 14 4 12 6 2;16 11 19 17 3 20 15 11 5]
Feedback: Your function performed correctly for argument(s) [13 15 12 20 6;10 17 9 13 6;2 1 2 10 16;3 1 2 13 1;5 16 11 19 1;7 7 17 4 11;20 2 2 8 14;19 11 8 6 14;19 15 3 14 1;10 7 10 5 20]
Feedback: Your function performed correctly for argument(s) [12 5 20 13 3 3 19;6 11 10 16 14 8 7;7 1 18 14 17 19 6;16 4 16 7 11 7 8;19 18 3 15 17 20 7;1 12 8 2 20 3 18;11 10 1 13 2 17 16;8 2 6 15 6 18 6;12 18 11 10 8 10 7;3 15 8 20 11 9 14]
Feedback: Your function performed correctly for argument(s) [14 8 12 11 6 3 9 4 1;12 1 14 20 2 19 15 3 9;4 16 9 19 4 17 15 19 11;1 1 1 11 12 10 14 17 8;17 8 16 8 9 6 20 4 13]
Your solution is correct.
Problem 6 (light_speed):
Feedback: Your function performed correctly for argument(s) 150000000
Feedback: Your function performed correctly for argument(s) [1500000000 3000000000]
Feedback: Your function performed correctly for argument(s) [0 1000000]
Feedback: Your function performed correctly for argument(s) [1570902150.11882 3805108781.81416 5279778988.17646]
Feedback: Your function performed correctly for argument(s) [1716193830.64181 9586082369.64988 4660514773.14573 4332006372.25577 1819830327.28635 4140751031.51736]
Feedback: Your function performed correctly for argument(s) 211157862.834811
Feedback: Your function performed correctly for argument(s) [8179255724.34534 7779495854.71448 9132131985.32957 1164455916.32742]
Feedback: Your function performed correctly for argument(s) [8206315829.08654 3393111343.95214 3226478918.34334]
Your solution is correct.
Problem 7 (accelerate):
Feedback: Your function performed correctly for argument(s) [1;0;0], [0;0;0], 1
Feedback: Your function performed correctly for argument(s) [1;0;0], [1;0;0], 1
Feedback: Your function performed correctly for argument(s) [0;1;0], [0;1;0], 1
Feedback: Your function performed correctly for argument(s) [0;0;1], [0;0;1], 1
Feedback: Your function performed correctly for argument(s) [1;0;0], [0;1;0], 1
Feedback: Your function performed correctly for argument(s) [1;2;3], [3;2;1], 2
Feedback: Your function performed correctly for argument(s) [3.68185359342267;0.707953207157461;7.87421597196228], [6.04511625196917;1.74149149765483;1.23346075210125], 2.16964310148261
Feedback: Your function performed correctly for argument(s) [3.0036725309385;3.85475509409156;8.65788589249769], [5.78234263501875;8.12416759801194;4.424514756863], 0.610719680175074
Feedback: Your function performed correctly for argument(s) [0.288589179363482;4.2202588561756;0.0388997631641008], [5.12232587486394;6.10931688750328;4.19433669230859], 4.8970195639394
Feedback: Your function performed correctly for argument(s) [6.01893919634487;7.09003911183783;0.893744516337807], [0.323751802333829;5.83160561934083;4.96122623411892], 2.0321360319669
Feedback: Your function performed correctly for argument(s) [9.79510649456171;5.43799755864838;8.00860403877113], [3.72623254417782;1.93861681381644;0.453059994429209], 3.69149437994359
Feedback: Your function performed correctly for argument(s) [1.96449322228721;9.14493034363338;1.36060144303665], [5.78353416094174;6.83136106972525;5.8943334450245], 4.16334356862933
Your solution is correct.
Problem 8 (income):
Feedback: Your function performed correctly for argument(s) [1 1], [2 3]
Feedback: Your function performed correctly for argument(s) [1 2 3], [4 5 6]
Feedback: Your function performed correctly for argument(s) 7, 8
Feedback: Your function performed correctly for argument(s) [1 0 1], [2 3 2]
Feedback: Your function performed correctly for argument(s) [5 2], [0 3]
Feedback: Your function performed correctly for argument(s) [2 3 6], [3 4 8]
Feedback: Your function performed correctly for argument(s) [1 4 10], [3 5 8]
Feedback: Your function performed correctly for argument(s) [1 5 6 5], [2 1 6 10]
Feedback: Your function performed correctly for argument(s) [5 5 10 6], [9 3 4 8]
Feedback: Your function performed correctly for argument(s) [2 9 1 5 3 10], [6 5 2 3 4 10]
Feedback: Your function performed correctly for argument(s) [1 6 2 4 8 6], [5 4 6 2 3 4]
Your solution is correct.
Score: 8/8
Alphanumeric Code: xxxxxx
Code xxxxxx was stored in file HW3.MOOC. Submit this file on Coursera!
ホームワークを提出するには、Graderと呼ばれるMATLABのファイルhw3.pをダウンロードして使用する。問題を解いて、このGraderを実行すると以下のような案内がでて、番号を選ぶことで各問題の答えをチェックすることができる。全ての問題をチェックし終えたら、"9"を選択して課題の添削を行う。添削が終わるとGraderがあるフォルダに”HW3.MOOC”というファイルが作成される。これをCourseraのコースのWebsiteにアップロードすることで、ホームワークの提出が完了する。
マイルとキロメートルの距離の変換を間違え、延々と無駄な時間を費やしたが、無事にLesson3が完了。
Homework 3 Grader (v3.16.7.2)
Type the number of the problem that you would like to check
or choose the last option to check all problems and compute
a score and a submission code. (Nothing is submitted.)
0. EXIT
1. circle
2. even_index
3. flip_it
4. top_right
5. peri_sum
6. light_speed
7. accelerate
8. income
9. ALL PROBLEMS (gives score and submission code)
Your selection: 9
Grading all problems ...
Problem 1 (circle):
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) 2
Feedback: Your function performed correctly for argument(s) 3
Feedback: Your function performed correctly for argument(s) 0
Feedback: Your function performed correctly for argument(s) 1.71456669863338
Feedback: Your function performed correctly for argument(s) 9.61035847547163
Feedback: Your function performed correctly for argument(s) 4.77685529036592
Feedback: Your function performed correctly for argument(s) 6.36225277991616
Feedback: Your function performed correctly for argument(s) 0.881510276101811
Your solution is correct.
Problem 2 (even_index):
Feedback: Your function performed correctly for argument(s) [1 2 3;4 5 6]
Feedback: Your function performed correctly for argument(s) [1 2 3 4;5 6 7 8]
Feedback: Your function performed correctly for argument(s) [1 2 3 4 5 6 7 8 9 10 11 12]
Feedback: Your function performed correctly for argument(s) [2;4;6;8;10;12;14;16;18;20;22]
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) [12 12 15 15 8 2 15;11 13 6 2 2 4 1;3 14 11 19 10 14 4;18 6 17 1 12 19 8;18 15 5 18 17 3 15;19 8 14 5 9 13 4;7 2 12 5 10 13 7]
Feedback: Your function performed correctly for argument(s) [12;9;8;13]
Feedback: Your function performed correctly for argument(s) [1 2;13 4]
Feedback: Your function performed correctly for argument(s) [1 4;19 1;12 1;12 12;10 6;7 11;16 8]
Feedback: Your function performed correctly for argument(s) [15 15 19 19 1 1 9 4 10 6 8 10 8;12 11 14 3 1 9 11 20 13 11 19 16 2;18 8 2 6 2 7 6 11 12 18 7 14 1;20 19 4 17 17 6 19 20 14 14 8 4 8;9 16 18 2 15 13 9 6 19 4 16 20 16;18 8 9 8 2 15 6 6 15 19 11 5 14;7 7 15 10 6 7 17 5 12 1 16 2 19;8 7 5 10 10 12 14 13 17 11 6 3 2;7 18 1 5 14 15 13 13 14 9 17 8 2;2 14 15 1 19 8 19 18 4 18 14 14 12;2 3 16 7 13 3 17 4 5 5 4 19 14;1 2 4 8 15 8 17 11 15 3 4 17 19]
Feedback: Your function performed correctly for argument(s) [2 17 17 3 17 10 18 12 16 14 1 5 16 11 13;18 15 1 11 15 12 9 9 1 2 5 1 2 12 8;14 10 16 20 13 3 16 10 17 10 7 2 3 15 12;7 6 1 16 14 14 8 1 9 17 17 13 4 12 17;12 5 13 3 14 13 6 17 17 5 14 17 3 4 20;14 9 6 16 8 9 1 8 1 19 7 11 12 3 1;18 2 14 3 2 12 10 16 13 6 17 17 16 7 11;17 9 18 9 14 8 2 20 15 12 15 15 9 4 1;8 5 20 10 20 8 5 17 16 7 11 14 7 11 4;13 17 1 5 20 6 12 17 8 15 20 9 1 12 13]
Your solution is correct.
Problem 3 (flip_it):
Feedback: Your function performed correctly for argument(s) [1 2 3]
Feedback: Your function performed correctly for argument(s) [1 3 5 7 9 11]
Feedback: Your function performed correctly for argument(s) 1
Feedback: Your function performed correctly for argument(s) [9 2 10 2 7 3 10 8 7 4 4 8 1]
Feedback: Your function performed correctly for argument(s) [8 10 6 1 8 9 4 5 3 7 1 3 5]
Feedback: Your function performed correctly for argument(s) [4 1 4 8 8 9 4 9]
Feedback: Your function performed correctly for argument(s) [9 7 2 7 1 4 6 10 3]
Feedback: Your function performed correctly for argument(s) [6 2 10 6 9 6]
Feedback: Your function performed correctly for argument(s) [17 9 12 8 18 2 4 3 12 10 5 8 6 19 9]
Feedback: Your function performed correctly for argument(s) [19 15 8 1 14 18 6 2 2 15 5 19 2 17 14 17 6 7 19 11]
Your solution is correct.
Problem 4 (top_right):
Feedback: Your function performed correctly for argument(s) [1 2;3 4], 1
Feedback: Your function performed correctly for argument(s) [1 2;3 4], 2
Feedback: Your function performed correctly for argument(s) [8 1 10 8;6 7 1 8;6 8 9 1;2 9 4 5], 1
Feedback: Your function performed correctly for argument(s) [2 10 6 10;8 10 10 9;7 1 9 2;5 7 9 10], 2
Feedback: Your function performed correctly for argument(s) [6 6 6 4;4 1 1 6;2 6 7 10;4 7 4 2], 3
Feedback: Your function performed correctly for argument(s) [5 1 2 1;6 7 7 1;5 6 5 8;7 5 4 1], 4
Feedback: Your function performed correctly for argument(s) [1 2 3 4 5 6 7 8 9 10], 1
Feedback: Your function performed correctly for argument(s) [1;3;5;7;9;11;13;15;17;19;21], 1
Feedback: Your function performed correctly for argument(s) [13 20 12 15 6 13 10 17 13 8;14 18 15 13 20 5 17 20 17 7;16 8 8 4 11 17 6 3 12 17;12 14 18 20 9 8 19 1 1 8;11 5 1 5 20 16 20 11 1 8], 2
Feedback: Your function performed correctly for argument(s) [6 16 7 12 1;1 18 7 18 19;12 4 20 12 7;2 10 15 4 18;11 20 20 5 15;6 17 16 8 12;4 11 1 10 1;14 1 13 13 8], 2
Feedback: Your function performed correctly for argument(s) [9 20 1 2 13;2 19 10 2 20;2 14 15 17 5;13 20 12 10 4;8 14 3 7 1;19 4 7 8 13;11 1 13 16 19], 5
Feedback: Your function performed correctly for argument(s) [20 8 10 1 11 6 13 7 9 18;17 14 1 16 13 19 13 3 19 1;5 13 12 7 11 13 20 14 19 19;16 8 10 8 17 2 15 9 2 15;18 19 20 19 5 13 6 11 11 12;7 13 15 13 7 20 4 9 13 9;17 16 19 18 17 16 20 5 19 5;13 11 7 9 7 10 4 14 20 16;8 6 15 17 6 12 12 17 4 14;14 12 19 14 13 6 5 6 2 4], 5
Feedback: Your function performed correctly for argument(s) [13 20 6 8 16 17 12 10 13 13;4 7 7 20 16 17 10 1 10 2;3 15 6 2 1 15 12 6 3 11;5 14 9 17 9 2 17 20 19 8;6 14 9 15 10 4 16 13 20 5;19 16 20 9 5 15 6 13 7 3;3 19 1 15 2 13 17 1 7 20;1 13 18 10 5 18 14 7 8 12;20 16 7 19 18 17 10 1 2 15;6 7 11 12 17 10 7 18 1 12], 5
Feedback: Your function performed correctly for argument(s) [6 6 12 3 3 4 12 8 9 18 4 8 8 12 15;13 10 12 2 3 19 6 9 6 3 5 5 3 11 9;2 10 9 5 2 11 18 7 1 9 4 5 5 12 18;18 3 16 6 12 9 4 18 15 13 18 20 19 4 5;1 4 1 16 13 13 16 14 7 6 20 8 15 8 14;17 10 15 15 13 7 3 20 17 8 3 1 19 4 13;14 12 6 14 8 1 20 13 10 19 17 8 16 3 19;1 10 12 12 17 15 12 18 8 17 10 3 16 19 10;8 9 12 20 7 17 15 4 10 12 3 9 9 3 14;17 14 11 14 18 8 12 14 17 1 9 15 12 9 8;4 11 20 18 2 15 9 14 10 4 8 7 14 1 1;4 4 11 7 6 8 8 19 19 18 17 20 1 8 18;7 13 8 20 15 4 8 9 9 4 12 17 3 5 1;14 14 12 4 6 20 13 19 6 16 11 1 3 11 15;3 16 19 19 19 8 9 6 16 3 18 7 9 18 9;3 6 12 13 15 15 3 9 6 3 12 15 17 20 13], 2
Feedback: Your function performed correctly for argument(s) [6 11 14 15 4 1 11 7 9 6 11 7 8 4 5;9 12 12 11 9 7 1 11 16 15 20 20 12 13 10;4 7 6 9 10 7 15 11 20 4 1 8 12 4 5;17 7 20 11 18 14 6 15 14 1 6 1 6 10 7;4 2 15 11 1 20 14 7 4 20 12 9 12 1 12;1 16 5 13 16 7 13 18 2 18 5 19 6 10 9;20 5 6 16 7 11 15 6 20 14 15 2 18 11 13;4 18 9 16 19 10 5 13 16 19 18 20 11 3 6;11 5 6 15 15 18 17 5 17 18 12 19 18 7 6;2 20 13 2 4 11 17 20 8 8 7 17 18 11 12;3 1 8 20 7 19 17 20 5 5 8 5 13 4 3;8 13 12 9 13 10 13 13 17 19 19 9 3 7 13;17 3 9 9 5 13 12 8 14 9 18 12 3 18 20;12 11 11 3 10 14 7 14 17 5 9 20 15 15 20;15 2 14 9 13 18 7 1 11 12 12 9 4 9 16;14 17 13 7 16 13 7 19 16 11 15 11 4 6 18;5 4 3 15 13 9 3 11 3 15 5 12 16 14 11;9 13 4 20 6 12 16 13 20 4 6 6 4 17 19], 5
Your solution is correct.
Problem 5 (peri_sum):
Feedback: Your function performed correctly for argument(s) [1 1;1 1]
Feedback: Your function performed correctly for argument(s) [1 2 3;4 5 6;7 8 9]
Feedback: Your function performed correctly for argument(s) [7 7 1 2;4 5 6 7;10 2 6 2;5 1 10 6;7 4 6 3]
Feedback: Your function performed correctly for argument(s) [4 1 5 8 7;6 2 6 10 3;1 1 4 5 9]
Feedback: Your function performed correctly for argument(s) [5 6 4 10 15 17 2 10 9;9 1 7 13 12 10 10 7 6;16 11 16 3 15 13 5 15 6;11 20 7 14 16 15 20 9 11;18 4 2 7 3 14 10 16 17;17 5 9 2 14 4 12 6 2;16 11 19 17 3 20 15 11 5]
Feedback: Your function performed correctly for argument(s) [13 15 12 20 6;10 17 9 13 6;2 1 2 10 16;3 1 2 13 1;5 16 11 19 1;7 7 17 4 11;20 2 2 8 14;19 11 8 6 14;19 15 3 14 1;10 7 10 5 20]
Feedback: Your function performed correctly for argument(s) [12 5 20 13 3 3 19;6 11 10 16 14 8 7;7 1 18 14 17 19 6;16 4 16 7 11 7 8;19 18 3 15 17 20 7;1 12 8 2 20 3 18;11 10 1 13 2 17 16;8 2 6 15 6 18 6;12 18 11 10 8 10 7;3 15 8 20 11 9 14]
Feedback: Your function performed correctly for argument(s) [14 8 12 11 6 3 9 4 1;12 1 14 20 2 19 15 3 9;4 16 9 19 4 17 15 19 11;1 1 1 11 12 10 14 17 8;17 8 16 8 9 6 20 4 13]
Your solution is correct.
Problem 6 (light_speed):
Feedback: Your function performed correctly for argument(s) 150000000
Feedback: Your function performed correctly for argument(s) [1500000000 3000000000]
Feedback: Your function performed correctly for argument(s) [0 1000000]
Feedback: Your function performed correctly for argument(s) [1570902150.11882 3805108781.81416 5279778988.17646]
Feedback: Your function performed correctly for argument(s) [1716193830.64181 9586082369.64988 4660514773.14573 4332006372.25577 1819830327.28635 4140751031.51736]
Feedback: Your function performed correctly for argument(s) 211157862.834811
Feedback: Your function performed correctly for argument(s) [8179255724.34534 7779495854.71448 9132131985.32957 1164455916.32742]
Feedback: Your function performed correctly for argument(s) [8206315829.08654 3393111343.95214 3226478918.34334]
Your solution is correct.
Problem 7 (accelerate):
Feedback: Your function performed correctly for argument(s) [1;0;0], [0;0;0], 1
Feedback: Your function performed correctly for argument(s) [1;0;0], [1;0;0], 1
Feedback: Your function performed correctly for argument(s) [0;1;0], [0;1;0], 1
Feedback: Your function performed correctly for argument(s) [0;0;1], [0;0;1], 1
Feedback: Your function performed correctly for argument(s) [1;0;0], [0;1;0], 1
Feedback: Your function performed correctly for argument(s) [1;2;3], [3;2;1], 2
Feedback: Your function performed correctly for argument(s) [3.68185359342267;0.707953207157461;7.87421597196228], [6.04511625196917;1.74149149765483;1.23346075210125], 2.16964310148261
Feedback: Your function performed correctly for argument(s) [3.0036725309385;3.85475509409156;8.65788589249769], [5.78234263501875;8.12416759801194;4.424514756863], 0.610719680175074
Feedback: Your function performed correctly for argument(s) [0.288589179363482;4.2202588561756;0.0388997631641008], [5.12232587486394;6.10931688750328;4.19433669230859], 4.8970195639394
Feedback: Your function performed correctly for argument(s) [6.01893919634487;7.09003911183783;0.893744516337807], [0.323751802333829;5.83160561934083;4.96122623411892], 2.0321360319669
Feedback: Your function performed correctly for argument(s) [9.79510649456171;5.43799755864838;8.00860403877113], [3.72623254417782;1.93861681381644;0.453059994429209], 3.69149437994359
Feedback: Your function performed correctly for argument(s) [1.96449322228721;9.14493034363338;1.36060144303665], [5.78353416094174;6.83136106972525;5.8943334450245], 4.16334356862933
Your solution is correct.
Problem 8 (income):
Feedback: Your function performed correctly for argument(s) [1 1], [2 3]
Feedback: Your function performed correctly for argument(s) [1 2 3], [4 5 6]
Feedback: Your function performed correctly for argument(s) 7, 8
Feedback: Your function performed correctly for argument(s) [1 0 1], [2 3 2]
Feedback: Your function performed correctly for argument(s) [5 2], [0 3]
Feedback: Your function performed correctly for argument(s) [2 3 6], [3 4 8]
Feedback: Your function performed correctly for argument(s) [1 4 10], [3 5 8]
Feedback: Your function performed correctly for argument(s) [1 5 6 5], [2 1 6 10]
Feedback: Your function performed correctly for argument(s) [5 5 10 6], [9 3 4 8]
Feedback: Your function performed correctly for argument(s) [2 9 1 5 3 10], [6 5 2 3 4 10]
Feedback: Your function performed correctly for argument(s) [1 6 2 4 8 6], [5 4 6 2 3 4]
Your solution is correct.
Score: 8/8
Alphanumeric Code: xxxxxx
Code xxxxxx was stored in file HW3.MOOC. Submit this file on Coursera!
【このカテゴリーの最新記事】
-
no image
-
no image
-
no image
-
no image
この記事へのコメント
コメントを書く
この記事へのトラックバックURL
https://fanblogs.jp/tb/5090154
※ブログオーナーが承認したトラックバックのみ表示されます。
この記事へのトラックバック