Arduino : Trigonometric Inverse Functions

About: I love making and flying RC planes.

a basic series solution to calculate inverse trigonometric function on arduino

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Paste This Function After Void Loop()

solutions are in radian use asin(), acos, atan();



float asin(float c){

float out;

out= ((c+(c*c*c)/6+(3*c*c*c*c*c)/40+(5*c*c*c*c*c*c*c)/112+

(35*c*c*c*c*c*c*c*c*c)/1152 +(c*c*c*c*c*c*c*c*c*c*c*0.022)+





if(c>=.96 && c<.97){out=1.287+(3.82*(c-.96)); }

if(c>=.97 && c<.98){out=(1.325+4.5*(c-.97));} // arcsin

if(c>=.98 && c<.99){out=(1.37+6*(c-.98));}

if(c>=.99 && c<=1){out=(1.43+14*(c-.99));}

return out;}

float acos(float c)

{float out;


return out;}

float atan(float c)

{float out;


return out;}

Step 2: Comparing Calculated Value to Analystical Value for Arcsin

Step 3: Comparing Calculated Value to Analystical Value for Arctan

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest