
Algebra PreAlgebra and Basic Algebra Math Forum 
 LinkBack  Thread Tools  Display Modes 
February 26th, 2014, 01:04 PM  #1 
Newbie Joined: Feb 2014 Posts: 4 Thanks: 0  Calculating angle sin and sin angle without any functions.
I discovered that calling functions in c++ is a really slow process. By doing everything inside of my function, it will be like 60% faster. Is there possible to calculate angle sin and sin angle ( reverse the sin ) without any functions? For example sin angle 90 = 0. something 0.something = 90 Also, I need cos, square root, atan2 I have no idea what is atan2 but here is what it does y and x are coordinates angleyaw = (atan2(y, x) * 180.0 / PI); Basically it takes x and y and does things with them. It gets angle between 2 coordinates ( 2 vector ) I would be very grateful if someone can help me with that. Thank you! 
February 26th, 2014, 04:57 PM  #2 
Global Moderator Joined: Dec 2006 Posts: 19,732 Thanks: 1810 
You can hold the answers in a table, the computer equivalent of the printed tables people used before computers were available. This won't be quite as accurate as the library functions, but it will be extremely fast.


Tags 
angle, calculating, functions, sin 
Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Value of angle x  MathematicallyObtuse  Algebra  6  November 25th, 2014 04:38 PM 
prove Angle DFE=3 Angle AEF  Albert.Teng  Algebra  26  February 19th, 2013 06:21 PM 
The angle between two curves is the angle between  kingkos  Algebra  2  December 7th, 2012 05:34 PM 
Calculating angle (not on special triangle)  TsAmE  Complex Analysis  3  November 9th, 2010 07:21 PM 
Calculating an angle  jojo  Algebra  9  July 5th, 2010 06:30 AM 