$$Error = \vert(\tan(\theta)*20 – (9.8/2V^2(\cos\theta)^2)*20^2 - 2.2)\vert$$
$\vert\bullet\vert $ indicate absolute value.
Is it possible to manually minimise the above equation and if so how do I go about it? Here both $\theta$ and $V$ are the independent variables and $Error$ is the dependent variable. I need to minimise the error.