Python package to play with concavity of functions, find alpha for which function is convex, find if function is convex
I am interested in a Python package that can help me play with the concavity of a function. For example, I am interested in finding the solution to these problems: