@akkartik @jack Two alternative versions that may aid your understanding... #1 chooses what I think are better variable names, since the xs & ys are mixed up in the original version. #2 uses vector operations. It would look a lot better with overloaded operators... but it's helpful anyway to see that the program is really operating on the vector level.
=> View attached media | View attached media
=> More informations about this toot | View the thread | More toots from qualmist@assemblag.es
=> View akkartik@merveilles.town profile | View jack@berlin.social profile
text/gemini
This content has been proxied by September (3851b).