~smlavine/quadratic

Simple command-line quadratic formula solver

761edd3 Replace dashes with underlines for square root symbol

11 months ago
~smlavine/public-inbox

New mailing list added

1 year, 8 months ago

#quadratic

A simple, command-line quadratic formula solver. Written in Hare.

#Usage

$ quadratic
          ----------
   -b ± \/ b² - 4ac
------------------------
          2a

usage: quadratic a b c
$ quadratic 1 -1 -2
-1
2
$ quadratic -4 -1 0
0
-0.25
$ quadratic 1 2 5
-1 + 2i
-1 + -2i
$ quadratic 3 2 5
-0.3333333333333333 + 1.2472191289246473i
-0.3333333333333333 + -1.2472191289246473i
$

#Installation

To build, simply run

make

To install, run

make install

To uninstall, run

make uninstall

#Contributing

Patches may be sent to ~smlavine/public-inbox@lists.sr.ht.

Copyright (C) 2022 Sebastian LaVine

Licensed under the GNU GPL, v3 or later. See LICENSE.