cancel
Showing results for 
Search instead for 
Did you mean: 

I want to use a function called sincos ()

Ebun.1
Senior

Thank you for helping.

When building with sincos ()

'sincos' was not declared in this scope

I get the error.

What should I do?

#include "math.h" is declared.

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Kanna
Associate III

you can try with CMSIS library, there you have arm_sincos function

View solution in original post

3 REPLIES 3
TDK
Guru

sincos is not a standard function

This may or may not work:

https://stackoverflow.com/questions/61451008/where-did-sincos-go-gcc-c

If it doesn't work, just use sin and cos separately.

If you feel a post has answered your question, please click "Accept as Solution".
Kanna
Associate III

you can try with CMSIS library, there you have arm_sincos function

Ebun.1
Senior

Hi, TDK

Hi, Kanna

Thank you for your response.

I will investigate CMSIS and give it a try.

Thank you very much.