If
If given the rational numbers
Requirements:
- A UNIX build environment with a C compiler and Make installed
- GNU Multiple Precision Arithmetic Library.
apt install libgmp-dev
on Debian-based systems
Build with make
.
If we want to evaluate the sum
/dev/stdin
)
1
0
1
since /dev/stdout
)
2
0
1/2
1/2
since
If you wanted to evaluate
2
1/3
-3/2
1
and get
3
1/3
-1/4
-1/4
1/3
i.e.