Square root
√ is expressed by the symbol sqrt
Therefore, in the program, it will be like following.
/*
|\
| \ c
a| \
| ____\
b
*/
int a, b, c;
c = sqrt(a*a+b*b);
I use sources for Java.Therefore, I am not sure it is compatible with Arduino.But there are many similarity between Java and Arduino and I think it is very useful to check the web page of Java tutorial.
I use sources for Java.
返信削除Therefore, I am not sure it is compatible with Arduino.
But there are many similarity between Java and Arduino and I think it is very useful to check the web page of Java tutorial.