Created
September 27, 2014 13:20
-
-
Save gfredericks/96e284ce2d52b91d481e to your computer and use it in GitHub Desktop.
The first 100 natural numbers expressed using only the java.lang.Math class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 0: | |
(-> Math/E Math/toRadians Math/round) | |
;; 1: | |
(-> Math/E Math/log Math/round) | |
;; 2: | |
(-> Math/E Math/sqrt Math/round) | |
;; 3: | |
(-> Math/E Math/round) | |
;; 4: | |
(-> Math/PI Math/ceil Math/round) | |
;; 5: | |
(-> Math/E Math/toDegrees Math/cbrt Math/round) | |
;; 6: | |
(-> Math/PI Math/toDegrees Math/cbrt Math/round) | |
;; 7: | |
(-> Math/E Math/exp Math/toDegrees Math/log Math/round) | |
;; 8: | |
(-> Math/PI Math/log Math/log Math/toDegrees Math/round) | |
;; 9: | |
(-> Math/E Math/cbrt Math/toDegrees Math/sqrt Math/round) | |
;; 10: | |
(-> Math/E Math/sqrt Math/toDegrees Math/sqrt Math/round) | |
;; 11: | |
(-> Math/PI Math/exp Math/toDegrees Math/cbrt Math/round) | |
;; 12: | |
(-> Math/E Math/toDegrees Math/sqrt Math/round) | |
;; 13: | |
(-> Math/PI Math/toDegrees Math/sqrt Math/round) | |
;; 14: | |
(-> Math/PI Math/toDegrees Math/sqrt Math/ceil Math/round) | |
;; 15: | |
(-> Math/E Math/exp Math/round) | |
;; 16: | |
(-> Math/E Math/exp Math/ceil Math/round) | |
;; 17: | |
(-> Math/PI Math/exp Math/cbrt Math/exp Math/round) | |
;; 18: | |
(-> Math/E Math/sqrt Math/toDegrees Math/toDegrees Math/cbrt Math/round) | |
;; 19: | |
(-> Math/E Math/cbrt Math/log Math/toDegrees Math/round) | |
;; 20: | |
(-> Math/E Math/toDegrees Math/toDegrees Math/cbrt Math/floor Math/round) | |
;; 21: | |
(-> Math/E Math/toDegrees Math/toDegrees Math/cbrt Math/round) | |
;; 22: | |
(-> Math/PI Math/toRadians Math/cbrt Math/toDegrees Math/round) | |
;; 23: | |
(-> Math/PI Math/exp Math/round) | |
;; 24: | |
(-> Math/PI Math/exp Math/ceil Math/round) | |
;; 25: | |
(-> Math/E Math/exp Math/exp Math/toDegrees Math/cbrt Math/sqrt Math/round) | |
;; 26: | |
(-> Math/E Math/sqrt Math/cbrt Math/exp Math/exp Math/round) | |
;; 27: | |
(-> Math/E Math/toDegrees Math/sqrt Math/toDegrees Math/sqrt Math/round) | |
;; 28: | |
(-> Math/PI Math/toRadians Math/sqrt Math/sqrt Math/toDegrees Math/round) | |
;; 29: | |
(-> Math/E Math/sqrt Math/log Math/toDegrees Math/round) | |
;; 30: | |
(-> Math/E Math/exp Math/toDegrees Math/sqrt Math/ceil Math/round) | |
;; 31: | |
(-> Math/E Math/cbrt Math/toRadians Math/cbrt Math/sqrt Math/toDegrees Math/round) | |
;; 32: | |
(-> Math/PI Math/sqrt Math/log Math/toDegrees Math/floor Math/round) | |
;; 33: | |
(-> Math/PI Math/sqrt Math/log Math/toDegrees Math/round) | |
;; 34: | |
(-> Math/E Math/toRadians Math/sqrt Math/cbrt Math/toDegrees Math/round) | |
;; 35: | |
(-> Math/PI Math/toRadians Math/cbrt Math/sqrt Math/toDegrees Math/round) | |
;; 36: | |
(-> Math/PI Math/exp Math/toDegrees Math/sqrt Math/round) | |
;; 37: | |
(-> Math/E Math/sqrt Math/sqrt Math/exp Math/exp Math/round) | |
;; 38: | |
(-> Math/PI Math/sqrt Math/sqrt Math/log Math/cbrt Math/toDegrees Math/round) | |
;; 39: | |
(-> Math/PI Math/exp Math/exp Math/cbrt Math/toRadians Math/round) | |
;; 40: | |
(-> Math/E Math/cbrt Math/log Math/cbrt Math/toDegrees Math/round) | |
;; 41: | |
(-> Math/E Math/exp Math/exp Math/toRadians Math/cbrt Math/round) | |
;; 42: | |
(-> Math/PI Math/cbrt Math/log Math/cbrt Math/toDegrees Math/round) | |
;; 43: | |
(-> Math/PI Math/sqrt Math/log Math/sqrt Math/toDegrees Math/round) | |
;; 44: | |
(-> Math/E Math/exp Math/exp Math/sqrt Math/sqrt Math/round) | |
;; 45: | |
(-> Math/E Math/sqrt Math/log Math/cbrt Math/toDegrees Math/round) | |
;; 46: | |
(-> Math/PI Math/exp Math/toDegrees Math/sqrt Math/toDegrees Math/sqrt Math/round) | |
;; 47: | |
(-> Math/E Math/log Math/toDegrees Math/cbrt Math/exp Math/round) | |
;; 48: | |
(-> Math/PI Math/sqrt Math/log Math/cbrt Math/toDegrees Math/round) | |
;; 49: | |
(-> Math/E Math/exp Math/sqrt Math/exp Math/round) | |
;; 50: | |
(-> Math/E Math/exp Math/sqrt Math/exp Math/ceil Math/round) | |
;; 51: | |
(-> Math/PI Math/sqrt Math/toDegrees Math/exp Math/sqrt Math/log Math/round) | |
;; 52: | |
(-> Math/E Math/toDegrees Math/exp Math/cbrt Math/log Math/round) | |
;; 53: | |
(-> Math/E Math/toDegrees Math/sqrt Math/log Math/log Math/toDegrees Math/round) | |
;; 54: | |
(-> Math/E Math/toRadians Math/log Math/toRadians Math/exp Math/toDegrees Math/round) | |
;; 55: | |
(-> Math/E Math/cbrt Math/cbrt Math/toDegrees Math/cbrt Math/exp Math/round) | |
;; 56: | |
(-> Math/PI Math/log Math/toDegrees Math/cbrt Math/exp Math/round) | |
;; 57: | |
(-> Math/E Math/log Math/toDegrees Math/round) | |
;; 58: | |
(-> Math/E Math/log Math/toDegrees Math/ceil Math/round) | |
;; 59: | |
(-> Math/E Math/cbrt Math/toRadians Math/exp Math/toDegrees Math/round) | |
;; 60: | |
(-> Math/E Math/toRadians Math/exp Math/toDegrees Math/round) | |
;; 61: | |
(-> Math/PI Math/log Math/sqrt Math/toDegrees Math/round) | |
;; 62: | |
(-> Math/E Math/sqrt Math/sqrt Math/cbrt Math/toDegrees Math/round) | |
;; 63: | |
(-> Math/PI Math/sqrt Math/sqrt Math/cbrt Math/toDegrees Math/round) | |
;; 64: | |
(-> Math/E Math/cbrt Math/cbrt Math/toDegrees Math/round) | |
;; 65: | |
(-> Math/PI Math/cbrt Math/cbrt Math/toDegrees Math/round) | |
;; 66: | |
(-> Math/PI Math/log Math/toDegrees Math/round) | |
;; 67: | |
(-> Math/E Math/sqrt Math/cbrt Math/toDegrees Math/floor Math/round) | |
;; 68: | |
(-> Math/E Math/cbrt Math/sqrt Math/toDegrees Math/round) | |
;; 69: | |
(-> Math/PI Math/sqrt Math/cbrt Math/toDegrees Math/round) | |
;; 70: | |
(-> Math/PI Math/sqrt Math/cbrt Math/toDegrees Math/ceil Math/round) | |
;; 71: | |
(-> Math/E Math/toRadians Math/sqrt Math/exp Math/toDegrees Math/round) | |
;; 72: | |
(-> Math/PI Math/toRadians Math/sqrt Math/exp Math/toDegrees Math/round) | |
;; 73: | |
(-> Math/E Math/sqrt Math/sqrt Math/toDegrees Math/floor Math/round) | |
;; 74: | |
(-> Math/E Math/sqrt Math/sqrt Math/toDegrees Math/round) | |
;; 75: | |
(-> Math/E Math/exp Math/toRadians Math/exp Math/toDegrees Math/round) | |
;; 76: | |
(-> Math/PI Math/cbrt Math/exp Math/exp Math/round) | |
;; 77: | |
(-> Math/E Math/exp Math/cbrt Math/cbrt Math/toDegrees Math/round) | |
;; 78: | |
(-> Math/E Math/exp Math/sqrt Math/log Math/toDegrees Math/round) | |
;; 79: | |
(-> Math/E Math/cbrt Math/toDegrees Math/floor Math/round) | |
;; 80: | |
(-> Math/E Math/cbrt Math/toDegrees Math/round) | |
;; 81: | |
(-> Math/PI Math/exp Math/cbrt Math/cbrt Math/toDegrees Math/round) | |
;; 82: | |
(-> Math/E Math/toRadians Math/cbrt Math/exp Math/toDegrees Math/round) | |
;; 83: | |
(-> Math/PI Math/cbrt Math/toDegrees Math/floor Math/round) | |
;; 84: | |
(-> Math/PI Math/cbrt Math/toDegrees Math/round) | |
;; 85: | |
(-> Math/PI Math/cbrt Math/toDegrees Math/cbrt Math/log Math/toDegrees Math/round) | |
;; 86: | |
(-> Math/PI Math/exp Math/toRadians Math/exp Math/toDegrees Math/round) | |
;; 87: | |
(-> Math/E Math/cbrt Math/toDegrees Math/sqrt Math/exp Math/sqrt Math/round) | |
;; 88: | |
(-> Math/PI Math/toDegrees Math/sqrt Math/exp Math/cbrt Math/round) | |
;; 89: | |
(-> Math/PI Math/sqrt Math/exp Math/sqrt Math/sqrt Math/toDegrees Math/round) | |
;; 90: | |
(-> Math/PI Math/toDegrees Math/exp Math/sqrt Math/log Math/round) | |
;; 91: | |
(-> Math/E Math/cbrt Math/exp Math/cbrt Math/toDegrees Math/round) | |
;; 92: | |
(-> Math/PI Math/toDegrees Math/exp Math/toDegrees Math/sqrt Math/log Math/round) | |
;; 93: | |
(-> Math/PI Math/cbrt Math/exp Math/cbrt Math/toDegrees Math/round) | |
;; 94: | |
(-> Math/E Math/sqrt Math/toDegrees Math/round) | |
;; 95: | |
(-> Math/E Math/sqrt Math/toDegrees Math/ceil Math/round) | |
;; 96: | |
(-> Math/E Math/toDegrees Math/cbrt Math/log Math/toDegrees Math/round) | |
;; 97: | |
(-> Math/PI Math/exp Math/sqrt Math/cbrt Math/toDegrees Math/round) | |
;; 98: | |
(-> Math/E Math/toDegrees Math/log Math/cbrt Math/toDegrees Math/round) | |
;; 99: | |
(-> Math/PI Math/toDegrees Math/cbrt Math/log Math/toDegrees Math/round) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment