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}}
<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,
if res1(3) = res2(3) then
|