Created
July 10, 2011 04:32
-
-
Save jayemerson/1074268 to your computer and use it in GitHub Desktop.
This works and does what I want...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub rexp(*@args) { | |
return Q:PIR { | |
$P0 = find_lex '@args' | |
.local num arg1 | |
arg1 = $P0[0] | |
.local pmc libRmath, rexp | |
.local num ans | |
libRmath = loadlib "libRmath" | |
rexp = dlfunc libRmath, "rexp", "dd" | |
ans = rexp(arg1) | |
%r = box ans | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment