Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 1;
area_correct = 25;
tolerance = 1e-12;
assert(abs(triangle_sequence(n)-area_correct)<tolerance)
|
2 | Pass |
n = 2;
area_correct = 41;
tolerance = 1e-12;
assert(abs(triangle_sequence(n)-area_correct)<tolerance)
|
3 | Pass |
n = 3;
area_correct = 66;
tolerance = 1e-12;
assert(abs(triangle_sequence(n)-area_correct)<tolerance)
c =
25 41 66
|
4 | Pass |
n = 50;
area_correct = 439116598409;
tolerance = 1e-3;
assert(abs(triangle_sequence(n)-area_correct)<tolerance)
c =
25 41 66
c =
25 41 66 107
c =
25 41 66 107 173
c =
25 41 66 107 173 280
c =
25 41 66 107 173 280 453
c =
25 41 66 107 173 280 453 733
c =
25 41 66 107 173 280 453 733 1186
c =
25 41 66 107 173 280 453 733 1186 1919
c =
25 41 66 107 173 280 453 733 1186 1919 3105
c =
25 41 66 107 173 280 453 733 1186 1919 3105 5024
c =
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129
c =
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Column 15
21282
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 16
21282 34435
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 17
21282 34435 55717
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 18
21282 34435 55717 90152
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 19
21282 34435 55717 90152 145869
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 20
21282 34435 55717 90152 145869 236021
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 21
21282 34435 55717 90152 145869 236021 381890
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 22
21282 34435 55717 90152 145869 236021 381890 617911
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 23
21282 34435 55717 90152 145869 236021 381890 617911 999801
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 24
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 25
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712 2617513
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 26
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712 2617513 4235225
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 27
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712 2617513 4235225 6852738
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 28
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712 2617513 4235225 6852738 11087963
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 28
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712 2617513 4235225 6852738 11087963
Column 29
17940701
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 28
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712 2617513 4235225 6852738 11087963
Columns 29 through 30
17940701 29028664
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 28
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712 2617513 4235225 6852738 11087963
Columns 29 through 31
17940701 29028664 46969365
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 28
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712 2617513 4235225 6852738 11087963
Columns 29 through 32
17940701 29028664 46969365 75998029
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 28
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712 2617513 4235225 6852738 11087963
Columns 29 through 33
17940701 29028664 46969365 75998029 122967394
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 28
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712 2617513 4235225 6852738 11087963
Columns 29 through 34
17940701 29028664 46969365 75998029 122967394 198965423
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 28
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712 2617513 4235225 6852738 11087963
Columns 29 through 35
17940701 29028664 46969365 75998029 122967394 198965423 321932817
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 28
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712 2617513 4235225 6852738 11087963
Columns 29 through 36
17940701 29028664 46969365 75998029 122967394 198965423 321932817 520898240
c =
Columns 1 through 14
25 41 66 107 173 280 453 733 1186 1919 3105 5024 8129 13153
Columns 15 through 28
21282 34435 55717 90152 145869 236021 381890 617911 999801 1617712 2617513 4235225 6852738 11087963
Columns 29 through 37
17940701 29028664 46969365 75998029 122967394 198965423 321932817 520898240 842831057
c =
1.0e+09 *
Columns 1 through 17
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 ...
|
1601 Solvers
965 Solvers
284 Solvers
302 Solvers
465 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!