Question: Write a code in tibasic to basic that allows me to get the correct angle regardless of quadrant it's in . Think sort of like
Write a code in tibasic to basic that allows me to get the correct angle regardless of quadrant it's in Think sort of like atand Matlab function code in tibasic. test it first please! should display one correct angle at the endt
this is how far I was able to get, use this as a base or don't if you wish, up to you!
Define LibPub ankz
Func
:Local abtheta
:a:realz
:b:imagz
:theta :arctanba
:If a and b Then
: theta :anglez
:ElseIf a and b Then
: theta :theta
:Else
: theta :anglez
:EndIf
:Return theta
:EndFunc
Should work for anki anki anki anki and ankiii
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
