Skip to content

amartos/babylon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Babylon - compute the square root using Heron’s method

This simple program written in C computes the truncated square root of a positive non-null integer using the Babylonian algorithm, also called Heron’s method.

Dependencies and compilation

None other than any standard C library. The Makefile compiler is set to gcc, but you can modify it as you wish. To compile, simply call make. The exectuable will be placed in the dist directory.

Usage

Usage: babylon [-hvw] N
babylon 0.1.0 - Copyright 2023 Alexandre Martos <[email protected]>
License GPLv3

This program computes the square root of a positive non-null
integer N using the Babylonian algorithm (Heron's method).

OPTIONS
-h print this help and exit.
-v print the version number and exit.
-w print the license name and exit.

About

Square root calculation using Heron's method

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published