ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1159. Fence

Why cannot we use asin, atan, or acos?? [just asinl .. ] (-)
Posted by Miguel Angel 1 Dec 2002 05:21
Re: Why cannot we use asin, atan, or acos?? [just asinl .. ] (-)
Posted by Илья Гофман (Ilya Gofman) 1 Dec 2002 17:21
Actually Pascal&Delphi have only ArcTan(x).
ArcSin(x) is calculted as
ArcSin(x) := ArcTan(x/sqrt(1-sqr(x)));
ArcCos(x) := ArcTan(sqrt(1-sqr(x))/x);
That is.
I mean for C++, anyway thanks :) (-)
Posted by Miguel Angel 2 Dec 2002 03:01
> Actually Pascal&Delphi have only ArcTan(x).
> ArcSin(x) is calculted as
> ArcSin(x) := ArcTan(x/sqrt(1-sqr(x)));
> ArcCos(x) := ArcTan(sqrt(1-sqr(x))/x);
> That is.