I got a problem with some code, but can't find the error. I'm trying to calculate the distance marked in red on the sketch below.
My code return the value: -41.63
Correct value is: 3.75
My code:
return round(6.5 * tan(30),2);
Based on: http://php.net/manual/en/function.tan.php
I thought was was going to be a simple task, but i hit a wall - can't see the error. I hope some of you can point me in the right direction.
Thanks,
Kenneth