Describing spherical harmonics using the procedural mesh generator

Hi all,

Looking for some tips on how to implement the formula:

r = sin(a * φ)^b + cos(c * φ)^d + sin(e * θ)^f + cos(g * θ)^h

… using a procedural mesh generator to generate representations of spherical harmonics, where ‘a’ through ‘h’ are input variables.

Reference: Spherical Harmonics Study Page 1

I was able to create something similar in Blender’s Serpens system by adding displacement to a sphere, but not familiar with the procedural mesh generator in UE.

Any advice on how to get started would be really appreciated.

Maybe a simpler question to start with: how can I plug spherical coordinates into the procedural mesh generator?