Wrapper around math-library from c