JoyCog

Check-in [0fcbc24244]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add README
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 0fcbc2424494903c945863e987f41545b70b7ad7e46325b4acbbb2873ffc0f46
User & Date: base@atomicules.co.uk 2014-02-07 23:56:13
Context
2014-03-06
22:22
Update README with installation and usage instructions check-in: ca77bc59ea user: base@atomicules.co.uk tags: origin/master, trunk
2014-02-11
12:23
Add license check-in: 47225a2c8f user: atomicules@users.noreply.github.com tags: origin/master, trunk
2014-02-07
23:56
Add README check-in: 0fcbc24244 user: base@atomicules.co.uk tags: origin/master, trunk
23:42
Finish programme. Can now supply function the two lists

- Add commentary for the state of the stack so I can understand what the
hell is going on
- Add examples and description
- Two functions. Extend work from last commit to make `ratios` which
given a number and a list creates the list of triples
- Figure out the main programme so can supply the two lists check-in: 364c19db20 user: base@atomicules.co.uk tags: origin/master, trunk

Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added README.markdown.





















>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
#JoyCog

A little learning exercise in [Joy](http://www.kevinalbrecht.com/code/joy-mirror/index.html). It's a "trivial" (It wasn't for me!) programme that takes a list of (two) chainset gears and a list of sprockets and then calculates all the ratios reporting out the results as a sorted list of ratios and gear pairs:

	> [34 50] [12 13 15 17 19 21 23 26] joycog.
	> [[1.30769 26 34] [1.47826 23 34] [1.61905 21 34] [1.78947 19 34] ... ]

I decided to do this as I was intrigued about what the theoretical progression of gears should be on my bike (you could never shift like this in practice). There is more overlap than I thought.

One possible extension I could do is to discount the ratios at the extremes of chain angle, e.g. biggest front geat and biggest rear sprocket. But wrapping my head around Joy has been hard, so I'll not do that too soon.