Converging area under a generic linear function between an upper and lower bound.
The program finds the area under (or over) a generic function,
high, and
wide, where
This leaves us with
to find the total area, which evaluates to
for
Prebuilt binaries for Linux amd64
, Linux aarch64
and Windows 64-bit
are provided in releases. If anyone can cross-compile for MacOS, that would be greatly appreciated; I build and compile on a Raspberry Pi.
If none of the binaries support your architecture, the binaries don't work, or you want to build from source, then clone the repo for the source code. The code is a single source file at:
/path/to/linear-line-area/src/main.cpp
It should compile with any toolchain without warnings. If you want to use my custom Makefile
, you can find it in the project folder /path/to/linear-line-area/Makefile
. Targets all
, clean
, and then individual targets for your architecture should be available. You may have to create the target
folder yourself, please read the code carefully.