There are a number of ways to determine the range to the artillery piece . One way is to apply the law of cosines twice .
There are a number of ways to determine the range of the artillery piece : One possibility is to apply the cosines twice .