Preliminary support for Rmath functions. Testing needed for accuracy and efficiency.