5
function calculate () {
6
p = "c (" + preg_replace ("/[, ]+/", ", ", getValue ("p")) + ")";
8
echo ('result <- (qexp (p = ' + p + ', rate = ' + getValue ("rate") + ', ' + getValue ("tail") + ', ' + getValue("logp") + '))\n');
11
function printout () {
12
echo ('rk.header ("Exponential quantiles", list ("Vector of probabilities", "' + p + '", "Rate", "' + getValue ("rate") + '", "Tail", "' + getValue ("tail") + '", "Probabilities p are given as", "' + getValue ("logp") + '"))\n');
13
echo ('rk.results (result, titles="Exponential quantiles")\n');