Project

ruby-mpfr

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby bindings of MPFR that is a C library for multiple-precision floating-point computations
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
 Project Readme

ruby-mpfr¶ ↑

Description:¶ ↑

ruby-mpfr is a library to use MPFR which is a C library for multiple-precision floating-point computations. ruby-mpfr also includes Matrix class of MPFR; MPFR::Matrix, MPFR::SquareMatrix, MPFR::ColumnVector, and MPFR::RowVector.

Notice:¶ ↑

  • Many methods have not been tested sufficiently.

  • Documentation is not complete.

Requirements:¶ ↑

  • Ruby 1.9.1 or later

  • MPFR 3.0.0 or later

For Ubuntu 10.10, we can install MPFR with the following command.

$ sudo apt-get install libmpfr-dev

Note that ruby-mpfr does not work on MPFR 2. So, we need to upgrade MPFR to version 3.

Install:¶ ↑

The package of rubygems of ruby-mpfr is provided. You can install ruby-mpfr with the following command in the system satisfying the above requirements.

$ gem install ruby-mpfr

Related Software:¶ ↑

These two gem packages uses ruby-mpfr.

  • ruby-mpc: the arithmetic of complex numbers with multiprecision

  • ruby-mpfi: the interval arithmetic with multiprecision

The following is an another multiple precision library which uses GMP.

License:¶ ↑

ruby-mpfr Copyright © 2009 Takayuki YAMAGUCHI

This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.