We can generate a look-up table of sines from 0 to 45 degrees by starting with .7071 (sine of 45 deg), and taking equal proportions.
I know the "quarter wave" LUT implementation.... but quarter wave means 4 x 90°. How does the 45° table work?Symmetry - 32 points in 45 degrees means (360/45)*32 = 256 points in total.
.How do they get the precision?
I know the "quarter wave" LUT implementation.... but quarter wave means 4 x 90°. How does the 45° table work?
How does the 45° table work?
For angle less than 42 degrees from horizontal, multiply by ∏/180 to get sine within 10 percent error.
Surely possible but rarely reasonable, neither for µC nor programmable logic implementation.Using trigonometric identities.
For 90 >x >45, we use the formula
sin(90-x)=cos(x)=sqrt(1-sin^2(x))
Actually the sinus and cosinus tables are the same (one table does both the work).
Surely possible but rarely reasonable, neither for µC nor programmable logic implementation.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?