Diophantine linear system solving: Difference between revisions

m
syntax highlighting fixup automation
m (syntax highlighting fixup automation)
Line 536:
=={{header|C}}==
{{trans|FreeBASIC}}
<syntaxhighlight lang="c">
<lang c>
// Subject: Solution of an m x n linear Diophantine system
// A*x = b using LLL reduction.
Line 976:
printf("loop %ld\n", tl);
}
</syntaxhighlight>
</lang>
{{out}}
<pre>The results are exactly the same as those described in the task assignment.</pre>
 
=={{header|FreeBASIC}}==
<langsyntaxhighlight lang="freebasic">
'Subject: Solution of an m x n linear Diophantine system
' A*x = b using LLL reduction.
Line 1,315:
print "loop"; tl
End Sub
</syntaxhighlight>
</lang>
 
=={{header|Phix}}==
You can run this online [http://phix.x10.mx/p2js/LLLHnf.htm here].
<!--<langsyntaxhighlight Phixlang="phix">(phixonline)-->
<span style="color: #000080;font-style:italic;">--
-- demo\rosetta\Diophantine_linear_system_solving.exw
Line 1,670:
<span style="color: #0000FF;">?</span><span style="color: #008000;">"done"</span>
<span style="color: #0000FF;">{}</span> <span style="color: #0000FF;">=</span> <span style="color: #7060A8;">wait_key</span><span style="color: #0000FF;">()</span>
<!--</langsyntaxhighlight>-->
 
=={{header|Wren}}==
Line 1,681:
 
A reasonably faithful translation though I've made some slight changes to the way data is input.
<langsyntaxhighlight lang="ecmascript">import "./ioutil" for Input
import "./complex" for Complex
import "./trait" for Stepped
Line 2,015:
main.call(sw)
System.print()
}</langsyntaxhighlight>
 
{{out}}
10,343

edits