N
N
Nik_Haker2015-05-21 17:01:37
Programming
Nik_Haker, 2015-05-21 17:01:37

What is wrong in the program?

a=Edit1->Text;
b=Edit2->Text;
StrToInt(A);
StrToInt(B);
StrToInt(C); */
double m=StrToInt(a);
double n=StrToInt(b);
double o=StrToInt(Edit4->Text);
double sina=sin(o*PI/180);
double sinb=n/(m/sina);
B=asin(sinb);
Edit6->Text = sina;
Edit5->Text = B;
the problem is that in edit 5 degrees should be displayed, and, apparently, a sine is displayed. this is part of a program that solves triangles, you can offer your solution how to find this angle. a,b,c - triangle sides, ABC angles. the formula for finding the angle sin(b)=b/(a/(sin(a))) b=asin(b)
edit 1 2 3 4 5 6 is abc ABC respectively

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question