Can't use C++ math functions

I am trying to use simple math functions like sin(), sqrt(), floor(), etc. in a C++ module but I get the following message "Error: undefined identifier ‘sin’ "
Am I missing something? Thanks

Do you have #include <cmath> in your code?

this work fine in my test
image

3 Likes

No, sorry… it’s been time since I do not code in C (using python most of the time).
Now it’s working. Thank you very much!