Packages like `Plots`

and `Integrals`

are able to determine point spacing by themselves (I imagine it is some sort of adaptive algorithm based on how quickly the function is changing). I would imagine that something similar could be done to obtain the maximum value of a continuous function but can’t find anything that does this. If it works for things like integrals… I would imagine it should work for finding the value.location of the maximum. Any thoughts?

Maximizing a function is considered an optimization problem whereas integration is usually a function approximation problem. There are many optimization (meta) packages available in Julia, for example NLopt.jl, that you could try out. If your function is not only continuous, but also differentiable, optimization via the gradient is also efficient and allows additional techniques, such as rootfinding (see NonlinearSolve.jl).

3 Likes

The most well-known optimization package is Julia is arguably Optim.jl, which is also a native Julia package.

2 Likes