See attached file for example of the formulas
What exactly are you asking? Have you tried using an equation driven curve? Thank you.
You might take a look at this thread: https://forum.solidworks.com/message/191931#191931
I had posted some templates in this thread some time ago including an asphere: https://forum.solidworks.com/message/133740#133740
Retrieving data ...