Yet another university project, written using Kotlin. It has 2 algorithms of calculating e constant.
Output on my machine:
------------------------------
Algorithm: Fast
------------------------------
Start of calculation...
End calculating n and d
End converting n to BigDecimal
End converting d to BigDecimal
End calculating the result
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Time spent: 15 seconds
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
------------------------------
Algorithm: Basic optimized
------------------------------
Start of calculation...
End calculating n and d...
End converting n to BigDecimal
End converting d to BigDecimal
End calculating the result
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Time spent: 54 seconds
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!