Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I have 2 questions:
1) I just noticed that the trig functions in Qbasic are not accurate or correct. For example the true sine of 45 degrees is .707... but when I ask that sin(45) be displayed it gives .850... Why is this? Am I doing something wrong, or using incorrect syntax? Is this a bug in Qbasic?
2) If question #1
is answered/solved, then what is
the correct syntax or format to get the inverse displayed? (From .707 etc.. back to 45 degrees)?
A book that I have on Qbasic says that the command ATN is available. This should mean that if I enter ATN(.4567) for example, the displayed result should be 24.546... (answer in decimal degrees).
Thanks for any help you can give. --- Lew
0 · ·