R/logspace.R

`logspace` <-
function(l, u, n)
{
	# test if u and l are numbers and l <= u
	if(length(l) != 1 || length(u) != 1 || l > u)
	{
		print("l and u must be numbers and l <= u")
		return()
	}
	# test if na is a number
	if(length(n) != 1)
	{
		print("n must be the number of points to generate")
		return()
	}
	
	return(10^seq(l, u, length.out=n))
}

Try the rdetools package in your browser

Any scripts or data that you put into this service are public.

rdetools documentation built on May 29, 2017, 8:50 p.m.