Re: Is there a way to do sin, cos, and tan in Jack?
Administrator
This post was updated on .
You would need to add those functions to the Math library.
There are a number of ways to implement these functions. One method that you might explore is using the CORDIC algorithms, which is how scientific calculators used to compute these and other functions when they had resource-starved processors.
One problem you are going to have is that the existing language definition only supports integer data types, so you will need to either develop a protocol that accommodates that or implement either a fixed or floating point data type and extend the language to support it.