Jump to content

Vogel's approximation method: Difference between revisions

→‎{{header|Yabasic}}: Fixed bug carried over from C translation.
(→‎{{header|C}}: Fixed bug - results (fortuitously!) unchanged. Also added second example.)
(→‎{{header|Yabasic}}: Fixed bug carried over from C translation.)
Line 1,584:
=={{header|Yabasic}}==
{{trans|C}}
{{improve|Yabasic|diff() gets away with out-of-bounds subscript on row_done. See Go/Java/Kotlin calls to max_penalty()}}
Also, can someone test with the 2nd ruby example, ta, and show your output from both test cases here.
<lang Yabasic>
N_ROWS = 4 : N_COLS = 5
Line 1,689 ⟶ 1,687:
max_penalty(N_ROWS, N_COLS, TRUE, res1())
max_penalty(N_COLS, N_COLSN_ROWS, FALSE, res2())
if res1(3) = res2(3) then
9,487

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.