Skip to content

kaispishock/math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

a collection of small c programs that do math.

contents:

geometry

distance.c

distance [-h] [x1] [x2] [y1] [y2]

a simple cli tool for calculateing the distance between two points using the distance formula.

triangles

sides2ifExists

sides2ifExists [-h] [mesurement of side 1] [mesurement of side 2] [mesurement of side 3]

a simple tool that takes the sides of a triangle and determines if it exists. dont't worry about the sides being in the correct order; the program automaticaly sorts them in acending order before gatting the sum of the two least angles and compareing it. uses the triangle inequality theorem.

install directions:

1. install dependancies

debian:

install gcc and git.

sudo apt update; sudo apt install gcc git

fedora/rhel

sudo dnf install gcc git

arch linux

sudo pacman -Sy gcc git

2. clone the repository.

git clone https://github.com/kaispishock/math

3. compile the programs

make shure you are in the repo's directory math/. run compile.sh.

./compile.sh

4. install into /usr/bin (optional)

run install.sh as root.

sudo ./install.sh

This will place the compiled binaries into the /usr/bin directory, allowing them to be run from the shell without having to specify the path, regardless of working directory.

About

a collection of small c programs that do math

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages