Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/symengine/symengine.rb
Ruby wrappers for SymEngine
https://github.com/symengine/symengine.rb
computer-algebra math ruby rubydatascience
Last synced: 3 months ago
JSON representation
Ruby wrappers for SymEngine
- Host: GitHub
- URL: https://github.com/symengine/symengine.rb
- Owner: symengine
- License: mit
- Created: 2015-08-25T03:56:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-14T16:20:59.000Z (over 5 years ago)
- Last Synced: 2024-01-22T06:45:36.699Z (6 months ago)
- Topics: computer-algebra, math, ruby, rubydatascience
- Language: C
- Homepage:
- Size: 274 KB
- Stars: 28
- Watchers: 14
- Forks: 15
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- data-science-with-ruby - symengine
README
## SymEngine Ruby Wrappers
[![Build Status](https://travis-ci.org/symengine/symengine.rb.png?branch=master)](https://travis-ci.org/symengine/symengine.rb)
[![Build status](https://ci.appveyor.com/api/projects/status/github/symengine/symengine.rb?branch=master&svg=true)](https://ci.appveyor.com/project/certik/symengine-rb/branch/master)Ruby wrappers gem for SymEngine, a fast symbolic manipulation library, written in C++. https://github.com/symengine/symengine
### Installation
#### Prerequisites
- C++ compiler - See supported [compilers](https://github.com/symengine/symengine/wiki/Compiler-Support)
- CMake - with executable folder in the `PATH` variable
- libsymengine - See build [instructions](https://github.com/symengine/symengine/wiki/Building-SymEngine)
- ruby >= 2.0.0 - Needs Ruby shared library and headers
#### Installing
- Simply do,
gem install symengine
- If `libsymengine` is not found, you can give the installation directory or build directory by doing,
gem install symengine -- -DSymEngine_DIR=/path/to/symengine/root
### Development
* Install bundler by `gem install bundler`
* Execute `bundle install` this will install the gems required
* Build the gem, `gem build symengine.gemspec`
* Install the gem, `gem install symengine-0.1.0.gem`### Mailinglist, Chat
SciRuby mailinglist: http://groups.google.com/group/sciruby-devSymEngine mailinglist: http://groups.google.com/group/symengine
[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/symengine/symengine)
### Using the extensions
SymEngine is a module in the extensions, and the classes are a part of it. To check if
you can use them, fire up the interpreter and load the file
``` ruby
~$ irb
2.2.0 :001 > require 'symengine'
=> true```
Go ahead and try a function
``` ruby
2.2.0 :002 > SymEngine.ascii_art_____ _____ _
| __|_ _ _____| __|___ ___|_|___ ___
|__ | | | | __| | . | | | -_|
|_____|_ |_|_|_|_____|_|_|_ |_|_|_|___|
|___| |___|
=> nil
```
Please go through the [IRuby notebooks](https://github.com/symengine/symengine.rb/tree/master/notebooks) for more demonstrations. If you are new to symengine.rb, please refer to the [beginner notebook](https://github.com/symengine/symengine.rb/blob/master/notebooks/beginner.ipynb).