-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Florescu
committed
Dec 21, 2019
1 parent
0356b4a
commit 4faa29f
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Collatz conjecture generator | ||
Really fast generator written in rust. It uses bitshifting to optimize calculations. | ||
|
||
## RCG (Rust Collatz conjecture Generator) | ||
Fast and saves the output to a `.csv` file. | ||
### Example | ||
The syntax is `./rcg {result filename} {upper limit to generate}`. | ||
```bash | ||
$ ./rcg "result.csv" 1000 | ||
``` | ||
|
||
## Plotting | ||
There is also a Rscript in the plottting directory, it plots the result from the `.csv` file. | ||
### Example | ||
The syntax is `Rscript {input filename} {output filename (.png only)}`. | ||
```bash | ||
$ Rscript lenght.r "result.csv" "result.png" | ||
null device | ||
1 | ||
``` | ||
It's normal that it says `null device 1`. | ||
|
||
## Docker | ||
There is no docker, since I don't really know how to make one that takes user arguments. | ||
|
||
## Licence | ||
[MIT]([www.google.com](https://opensource.org/licenses/MIT)) |