Mentions légales du service

Skip to content

Macro and include files (was Trigonometric functions)

Created by: motib

Studio should support a "normal" interface to the native trigonometric functions: Parameter a single value in hundreths of radians 0..628; Return value its sin/cos * 100. The non-standard mapping to the full range of signed 16-bit integers is confusing and error-prone, while the suggested precision is enough for this small robot.

I also don't understand the requirement that arrays be used, unless the intention is to precompute a table of sin/cos for discrete values. But for most applications, computing sin/cos of a single value would be sufficient.

Thanks Moti