You need to calculate sine(x) but you do not want to load a math library. How lean can you make it?How easy to read and obvious?

all 2 comments

sorted by: hot top controversial new old
[–] 1 point 1 day ago (1 child)

@futurebird Look at how it's done in a real libm that's just aiming for low ulp error not perfect rounding. On |x|≤π/2 it's just low order polynomial in x², times x.

  • source
  • hideshow 1 child comment