Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
Posted: Wed May 07, 2008 11:39 am Post subject: [Help] Arccos (inverse cosine) in vb 6
well remember my angleator? i finished all of version 2 except for one very critical line, where i need to use arccos on one of my integers. apperantly vb 6 has no arccos option, and by googling and from msdn i got this formula:
Atan(-x / Sqrt(-x * x + 1)) + 2 * Atan(1)
however, it does not work. i inserted 0.5 as x (result shouldve been 60) and it gave me 0.9
and converting the delphi one to vb was 2 complicated for me
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum