It was easy after knowing how the babylonian method worked:

link to video that explains babylonian method:

link to my code:

https://github.com/cortesivan96/WSQs/blob/master/babylonian%20method%20(WSQ13)

CC BY 4.0 WSQ 13: Babylonian method by cortesivan96 is licensed under a Creative Commons Attribution 4.0 International License.