R/sphere.para.R

Defines functions sphere.para

sphere.para<-function(x)
{
d<-length(x)

if (d==2){
   if (x[1]>=0) theta<-acos(x[2])
   else theta<-acos(x[2])+pi
}

return(theta)
}

Try the denpro package in your browser

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

denpro documentation built on May 2, 2019, 8:55 a.m.