symengine/symengine.hs

Name: symengine.hs

Owner: symengine

Description: Haskell bindings to SymEngine

Created: 2016-03-05 02:39:05.0

Updated: 2018-02-17 11:44:51.0

Pushed: 2017-07-20 06:24:11.0

Homepage: null

Size: 63

Language: Haskell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

SymEngine-hs

Build Status Test Coverage Issue Count

Haskell bindings to SymEngine

Prerequisites

Stack, a Haskell build tool

Stack is a Haskell build tool, which allows for cross-platform, reproducible builds.

The build toolchain of this project depends on stack, so please follow the installation instructions as outlined here

SymEngine, the library that this package provides a Haskell interface for

Please go through the SymEngine installation instructions, and make sure that the header files as well as the libraries

Since these are hard dependencies for SymEngine-hs to build.

Getting started

To quickly build and check everything is working, run

k build && stack test

All of the test cases should pass with SymEngine

Playing around in the interpreter

to launch a GHCi session, execute the interpreter with

k ghci --ghci-options " -lstdc++ -lgmpxx -lgmp -lsymengine -L/usr/local/lib/"

Make sure that you have built symengine.so (NOTE: you _need the shared object, and not just the library), and have installed the shared object as well.

Once you are inside GHCi, you can execute basic functions such as basic_const_zero, basic_const_one, etc.

A typical interpreter session will look like this:

 session with Symengine loaded


engine Symengine> basic_const_zero

engine Symengine> basic_const_zero

engine Symengine> basic_const_one

engine Symengine> basic_const_minus_one

Things to Do

[TODO: fill this up]

Contributing

[TODO: fill this up]

License

All code is released under the MIT License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.