Anonymous wrote:I have just finished writing my first program in Q basic.

I was dumbfounded that Q Basic does not allow trigonometrical functions that include inverse SIN (ASN)and COS,(ACS) yet allows inverse TAN (ATN). Not only that, it only gives trigonometrical results in RADIANS, not degrees. Whats the story here?

I acknowledge that I am only very new to this great programming medium and there is something I may have missed in the tutorials, but can someone point me in the right direction as to how I can include these functions in my programs, without having to convert degrees to radians.

Bill

When BASIC was first devised by two university professors, they used radians functions, as this is the "normal" mode for mathematical functions, in general. And, only the four tringonometric functions, SIN, COS, TAN and ATN were included, the others being left for students to derive, I guess as a challenge.

When QB, QBasic, BASICA, QuickBASIC and, yes, even Visual Basic came along, these little unpleasantries were not corrected, and, so, we are stuck with this, at least for the foreseeable future.

The other arc, or "inverse" functions, ASIN and ACOS have already been posted by the other "Guest" (not me), and a method of converting radians to degrees, and vice-versa also have been posted.

Finally, on could create the user-defined functions (UDF) for the various trigonemetric functions, for instance, one called SIND(angle in degrees), in which entering SIND(30) would be the equivalent of entering SIN(30-3.14159/180), and so on. Would that help you out, Guest No. 1? (the original poster, or OP, as "we" call them

)

RalphA