Why not post a screenshot of the material here? I’d suppose many people feel strange about having to download a single material function from an external site, espacially for a relatively simple one like this.
For anyone interested in converting from cartesian to polar or spherical coordinates, back and forth, check out this post: