Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienos.com/blob/main/om/lab-page/axpy.om # aienos.com Source of www.aienos.com, served from my own hardware Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienos.com / om / lab-page / axpy.om` 15 lines ยท 422 bytes Raw Blame History 1 note y[i] = a*x[i] + y[i]: one element per call. 2 fn axpy a long x long y long to long 3 ret add mul a x y 4 end 5 note The grid: elements lo to hi-1, with x[i] = i and y[i] = 2i+1 generated in place. 6 note Returns the sum of the results so a host can check every element. 7 fn run a long lo long hi long to long 8 s = long 0 9 i = lo 10 while lt i hi bound 999999 11 s = add s axpy a i add mul long 2 i long 1 12 i = add i long 1 13 end 14 ret s 15 end