What is the best way to numerically compute things like the following within Rcpp?
exp(-1500)/(exp(-1500)+exp(-1501))
In many cases, the computa
I fear you may be mostly confused.
Rcpp is a bridge between R and C++. It is neither a new language, nor a new system.
And in C++ you use something like GNU gmplib aka The GNU Multiple Precision Arithmetic Library which, of course, has already been wrapped for R as package gmp
But if you want to write C++ functions, called from R, interfacing the GMP library -- you certainly. It falls back to 'how do I write a C++ function callable from R which accesses an external library' -- and that question has been covered numerous times here too.