RubyGems Navigation menu

frac 0.9.6

Find rational approximation to given real number. Based on the theory of continued fractions if x = a1 + 1/(a2 + 1/(a3 + 1/(a4 + ...))) then best approximation is found by truncating this series (with some adjustments in the last term). Note the fraction can be recovered as the first column of the matrix ( a1 1 ) ( a2 1 ) ( a3 1 ) ... ( 1 0 ) ( 1 0 ) ( 1 0 ) Instead of keeping the sequence of continued fraction terms, we just keep the last partial product of these matrices.

Gemfile:
= Copier Copié!

installation:
=

Versions:

  1. 0.9.6 - January 17, 2013 (10 ko)
  2. 0.9.5 - July 25, 2011 (7,5 ko)
  3. 0.9.4 - June 23, 2011 (8 ko)
  4. 0.9.3 - May 26, 2010 (5,5 ko)
  5. 0.9.2 - May 25, 2010 (4,5 ko)
Voir toutes les versions (7)

Dépendances de Development (4):

rake ~> 10.0
rcov ~> 0.9
rdoc >= 0

Propriétaires:

Auteurs:

  • Pavel Valodzka

Total de contrôle SHA 256:

a8d9862f4e5dcc1e9f615fe0769c381cd4fb8fada000b9802e96cdb5e7d9642d

Total de téléchargements 143 868

Pour cette version 102 032

License:

MIT

Version de Ruby requise: None

Liens: