Jump to content

Polynomial long division: Difference between revisions

m
J: shorten
m (J: shorten)
Line 595:
From http://www.jsoftware.com/jwiki/Phrases/Polynomials
 
<lang J>divmod=:>[:@-&# ({.}: ,&<; }.{:) ([ (] -/@,:&}. (* {:)) ] , %&{.~)^:(>:@-~&#)&.|.~</lang>
 
Wikipedia example:
Line 602:
┌────────┬────┐
│_27 _9 1│_123│
└────────┴────┘
 
=={{header|OCaml}}==
6,962

edits

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