Skip to content

Commit

Permalink
-improved readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fast-reflexes committed Nov 29, 2020
1 parent b735984 commit 9920a2a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,24 @@ or use the fat jar:
> kotlinc -cp BirthdayProblem-1.0-fat.jar Program.kt // compile
> kotlin -cp BirthdayProblem-1.0-fat.jar:. ProgramKt // run

The functions to call has signatures
The functions to call have signatures

fun solveForP(dOrDLog: BigDecimal, nOrNLog: BigDecimal, isBinary: Boolean, isCombinations: Boolean, method: CalcPrecision): Pair<BigDecimal, CalcPrecision>
fun solveForN(dOrDLog: BigDecimal, pIn: BigDecimal, isBinary: Boolean, isCombinations: Boolean): Pair<BigDecimal, CalcPrecision>

and may throw exceptions.

## Testing

To run tests, simply execute the Gradle task

> ./gradlew test

## Notes

* This project is also available in Python at https://github.com/fast-reflexes/BirthdayProblem-Python
* This project is available as an online solver at https://www.bdayprob.com

## Author

Elias Lousseief (2020)
Expand Down

0 comments on commit 9920a2a

Please sign in to comment.