Arithmetic/Complex: Difference between revisions

No edit summary
Line 280:
=={{header|AWK}}==
contributed by af
<lang awk># simulate a struct using associative arrays
<lang awk>
# simulate a struct using associative arrays
function complex(arr, re, im) {
arr["re"] = re
Line 336 ⟶ 335:
mult(i, i, i)
printComplex(i)
}
}</lang>
 
Anonymous user