Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
:EndFuncLibPub ankzFunc: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 :EndFuncLibPub ankzFunc:Local abtheta :a:realz:b:imagz:theta :tanba:If a and b Then: theta :anglez:ElseIf a and b Then: theta :theta :Else: theta :anglez:EndIf:Return theta :EndFunc
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started