Anonymous user
Hickerson series of almost integers: Difference between revisions
→{{header|Scala}}
(Scala solution added) |
|||
Line 1,856:
def ln2 = BigDecimal("0.69314718055994530941723212145818")
def div: BigDecimal = ln2.pow(n + 1) *
def factorial(num: Int): Long = {
Line 1,875:
}</lang>
{{Out}}See it in running in your browser by [https://scalafiddle.io/sf/tNNk9jB/
or by [https://scastie.scala-lang.org/
=={{header|Seed7}}==
<lang seed7>$ include "seed7_05.s7i";
|