def pol2cart(theta, radius, units='deg'):
 if (units in ('deg', 'degs')):
  theta = ((theta * numpy.pi) / 180.0)
 xx = (radius * numpy.cos(theta))
 yy = (radius * numpy.sin(theta))
 return (xx, yy)

def pol2cart ( theta , radius , units = 'deg' ) : if ( units in ( 'deg' , 'degs' ) ) : theta = ( ( theta * numpy . pi ) / 180.0 ) xx = ( radius * numpy . cos ( theta ) ) yy = ( radius * numpy . sin ( theta ) ) return ( xx , yy )
convert from polar to cartesian coordinates .