Equation solving with absolute in it : <p>I have an equation which I want to simplify in order to retrieve the solution. But the equation contains absolute in it. How can it be more simplified?</p>

<pre><code>d = abs(X²-vs²)/2*a1 + abs(vf²-X²)/2*a2
</code></pre>

<p><strong>abs</strong> is the absolute of the value inside the parenthesis</p>

<p><strong>X</strong> is the unknown and we know <strong>d, vs, a1, vf</strong> and <strong>a2</strong></p>

<p>So in the end the equation would be X = ....</p>
