<a href="http://www.qbasic.net//" target="_blank">QBasic Cafe Homepage</a>
PRINT " The value of sin(30) =";SIN(30*D2R)
PRINT " 30 degrees =";30*d2r;"radians, ";
PRINT "and 0.5 radians =";0.5*r2d;"degrees."
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.
Users browsing this forum: No registered users and 1 guest