Created
October 27, 2013 01:45
-
-
Save alfredplpl/7176985 to your computer and use it in GitHub Desktop.
the result of hashLikeList.R
This file contains 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
> hash.test[["square"]](2) | |
[1] 4 | |
> hash.test[["pi"]] | |
[1] 3.141593 | |
> | |
> #probability that a random selected number is a prime number. | |
> 6/hash.test[["square"]](hash.test[["pi"]]) | |
[1] 0.6079271 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment