Skip to content

Commit

Permalink
Mention coprime
Browse files Browse the repository at this point in the history
  • Loading branch information
mschauer authored May 5, 2020
1 parent 3e2df60 commit f3a26eb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,25 @@ For example if `m = (2819, 3508)`:

The image shows the fraction of the first 0.00005 (red) and the first 0.002 indices (black) in the `GoldenCartesianSequence((2819, 3508))`.

In short, good `m` are denominators of fractions given by the function `rationalize`
In short, good `m` are coprime denominators of fractions given by the function `rationalize`

```julia
d = 2
m = @. denominator(rationalize(GoldenSequences.phis[d]^(-(1:d)), tol=0.0000001))
```

```
julia> m
2-element Array{Int64,1}:
2819
3508
julia> gcd(m[1], m[2])
1
```



Interface
=========

Expand Down

0 comments on commit f3a26eb

Please sign in to comment.