Peter Dalgaard wrote: > > It doesn't calculate it though... ;-) > My previous example is a bit ugly - this one looks nicer: f1=function(n){ -1 x = --- n return(x) } And it returns f(1) as -1/1 and f(-1) as -1/-1 as well.