Fast transcendent / trigonometric functions for Java

前端 未结 12 1821
面向向阳花
面向向阳花 2020-11-29 02:06

Since the trigonometric functions in java.lang.Math are quite slow: is there a library that does a quick and good approximation? It seems possible to do a calculation severa

12条回答
  •  时光取名叫无心
    2020-11-29 02:30

    In the sin/cos test I was performing for integers zero to one million. I assume that 144 ns is not fast enough for you.

    Do you have a specific requirement for the speed you need?

    Can you qualify your requirement in terms of time per operation which is satisfactory?

提交回复
热议问题