Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

p1788

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p1788

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

P1788

P1788 is a Ruby extension wrapping the C++ libieeep1788 interval arithmetic library.

The goal of this gem is to allow doing basic arithmetic in Ruby on set-based intervals. The output of operations are guaranteed to enclose the true result of operations.

Forward-mode and reverse-mode elementary functions are implemented to allow building contractors.

Documentation

The API documentation is hosted on rubydoc.info.

You can also build the documentation yourself from the sources:

# Install yard if you don't have it
gem install yard
# Clone the repository on your machine
git clone https://gitlab.ensta-bretagne.fr/bollenth/p1788.git
cd p1788
# Build the documentation
yard
# Open it!
firefox doc/index.html

Installation

Basically:

gem install p1788

To compile, P1788 requires to have the GNU GMP and MPFR development libraries installed on your machine, as well as the Ruby development headers:

sudo apt install libgmp-dev libmpfr-dev ruby-dev

A copy of libieeep1788 is embedded into this gem, so you do not need to install it. However, if an installation of libieeep1788 is found on your machine while the gem is installing, it will be used instead of the embedded copy. Note: to install libieeep1788 from its github repository, you may need to remove the flags -Wextra -Werror around line 65 of file libieeep1788/CMakeLists.txt:

-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -pedantic")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic")

Installation from sources

To install P1788 from sources:

# Clone the repository on your machine
git clone https://gitlab.ensta-bretagne.fr/bollenth/p1788.git
cd p1788
# Build the gem
gem build p1788.gemspec
# Install the gem (x.y.z is the gem version)
gem install p1788-x.y.z.gem

FAQs

Package last updated on 27 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc