Actually since the x-axis (the domain of the function) is also subject to evolution, the result may come in different shapes. But you can take only one of them as reference. However, as @vela stated, xcos(x) works quite well, I guess this is the function that I was looking for.
Thanks @vela, that’s pretty close but when plotted, it doesn’t cut the origin like a diagonal as in the two sample graphs, but rather becomes tangent. But that’s a nice clue.
hi berkeman,
It’s actually my plot, so there’s no link. It’s the result of an evolutionary algorithm for a specific problem , where I consistently get such graphs. Since I’m not a physicist, I wanted to consult if there is any simple function representation that fits the shape.
Hi @haruspex,
It actually works, but only for positive x. For negative x, I want to see it mirrored, and in addition I would like to avoid using abs or conditionals in the function.
Hi;
This is in fact not a homework question, but it rather comes out of personal curiosity.
If you look at the graph of the two functions in the image attached, what is the simplest functional representation for such a symmetrical pattern?