Easy $3D$ functions with nice shape
Hello everyone,
I am searching for all those nice curvy functions that almost all math softwares throw around, but I have never been able to replicate it. What I mean is the following example:
What I need is the type of function that can create these nice hills and valleys while not shooting into space.
What I tried and why it does not work for me:
- I tried polynomials but they just create only $3$ hills ($2$ for each variable and $1$ for combination) and one valley, considering I want non-negativity in variables. I would say it is not enough curvy.
- Himmelblau's function starts to shoot into the space too fast. All modes are at the same "heigth" which is also not pleasant.
- Multimodal functions with too many hills are too curvy on the other hand. I would need something more gentle.
Summary of what I would like:
- Nice functional form (easy to implement and count with - something like polynomials)
- Flexible (meaning that it is easy to change position of hills and valleys)
- Not too many hills and valleys but not too few ($5$-$7$ shapes as in picture would be ok)
- Gentle (not dramatic changes, not overshooting etc.)
Do you know about some function as this?
Thank you very much!



How about this? I put this together very quickly, I'm sure it could be improved. Its just a bunch of Gaussians:
Link: https://www.math3d.org/UQh9ohGqt