[Blender] create in python a specific F-curve

Hello,

Recent versions of Blender do not generate any type of F-curve.

In particular, after inserting a key position image on the object, I would like to enter:

-for Xposition: f (t) = 8 * cos (t ^ 3)

-for Yposition: f (t) = 8 * sin (t ^ 3)

-for Zposition: f (t) = 0

which is impossible with an F-curve modifier, to create on the object a circular plane motion of radius 8 and accelerated

All that remains is the python.

  1. A python script for this?

  2. More generally, I’m looking for a tutorial elaborating a pyrhon script to enter any type of mathematical function of a single variable, representing an F-curve related to any keyframe insertion.

Thank you for your help