Build a geometry with mathematical description

Hello,

I would like to know if there exists the possibility in Coreform Cubit to build a geometry based on a mathematical description. What I would like to do is to create something like the attached PNG (built in MATLAB). This is a solid geometry whose shape is defined by a function f that is a function of the three spatial variables x,y and z. Here is the mathematical description for this geometry:

f = @(x,y,z) cos(x) + cos(y) + cos(z);

Thank you in advance.
Regards,
Aida