Home > Back-end >  How to calculation formula of trigonometric function in c builder
How to calculation formula of trigonometric function in c builder

Time:09-27

Big topic is
A1, a2 are dimension
B1, b2 is longitude
Also can be regarded as a triangle Angle of
I'm in such a setting
CosS=sina1sina2 + cosa1cosa2cos (b2, b1)


Int jingdu1=StrToInt (Edit1 - & gt; The Text);
Int weidu1=StrToInt (Edit3 - & gt; The Text);
Int jingdu2=StrToInt (Edit2 - & gt; The Text);
Int weidu2=StrToInt (Edit4 - & gt; The Text);
Int jingdu3=StrToInt (Edit5 - & gt; The Text);
Int weidu3=StrToInt (Edit7 - & gt; The Text);
Int jingdu4=StrToInt (Edit6 - & gt; The Text);
Int weidu4=StrToInt (Edit8 - & gt; The Text);
Float cosS.
CosS=?

I want to know how do I calculate
Help you a great god

CodePudding user response:

#include
#include

Int main ()
{
Const double PI=3.14;//define the value of PI
Double a;
A=sin (45 * PI/180);//Angle into radian
Printf (" % f ", a);//the correct printf format
}
  • Related