Solution I by landen
Since the series is alternating and the terms decrease in absolute value, we can truncate after one term with a negative error:
Solution II by landen
Solution III by Bumperoni