Creating a spline from a function

Hello,

I hope you're keeping well.

I am trying to create a CAM, which is a device that converts rotational motion into linear motion. I have been able to determine the right function for the CAM, which is:

r(θ)=9.5+(5/π)*θ

Where r is the radius (in millimetres) and theta is the angle in radians.

How can I create a spline that has these parameters?

Thanks in advance 🙂