RubyGems Navigation menu

frac 0.9.5

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:
= クリップボードにコピー コピー完了!

インストール:
=

バージョン履歴:

  1. 0.9.6 - January 17, 2013 (10KB)
  2. 0.9.5 - July 25, 2011 (7.5KB)
  3. 0.9.4 - June 23, 2011 (8KB)
  4. 0.9.3 - May 26, 2010 (5.5KB)
  5. 0.9.2 - May 25, 2010 (4.5KB)
全てのバージョンを表示(全7件)

Development依存関係 (3):

jeweler >= 0
rake >= 0
rcov >= 0

所有者:

作者:

  • Pavel Valodzka

SHA 256チェックサム:

51019465ea50c5617691df293b0858e912700b150cedf0f5c4db94e6ee4b2a58

累計ダウンロード数 144,437

このバージョンのみ 22,714

ライセンス:

N/A

必要なRubyのバージョン: なし

リンク: