@bellinitte i saw that @neauoire had an implementation of heron's algorithm in uxntal (but for integers), so that is probably a good place to start.
if it gives you trouble, let me know. i should probably add sqrt to fix16.tal sooner or later.
Top-level
@bellinitte i saw that @neauoire had an implementation of heron's algorithm in uxntal (but for integers), so that is probably a good place to start. if it gives you trouble, let me know. i should probably add sqrt to fix16.tal sooner or later. 6 comments
@neauoire @bellinitte i just implemented it for fun for fix16.tal. it's not 100% perfect but i think it's "close enough" for most things. i had to add a counter to make sure the algorithm terminated (it's not totally stable with fixed point math) @neauoire @bellinitte it should be up now. there was a delay getting it onto the web server. |
@d6 @bellinitte 👉 https://paste.sr.ht/~rabbits/9211f18fac8055aae3921ecf02b0da9dde439d5b