This could be easily done in flowcode.
The most useful functions should be sin, cos and square root.
Here are a links to do this:
http://cdeval.free.fr/IMG/pdf/cordic.pdf
It is french but there is a code (in english) ready to us.
Here is for example the code for sin and cosinus for ti 92 calculator:
Code: Select all
Cordic2(z)
Func
Local angle,x,y,temp,s,i
{.7854,.46365,.24498,.12435,.06242,.03124,.01562,.00781,.00391,.00195,9.8e-4,4.9e–4,2.4e–4,1.2e–4,6.e-5}»angle
.60725»x
0»y
For i,0,14
when(z=0,1,signe(z))»s
x-s*y/2^i»temp
y+s*x/2^i»y
temp»x
z-s*angle[i+1]»z
EndFor
Return {x,y}
EndFunc
It is possible to find the other scientific function with similar cordic function.
Here are other links for CORDIC:
University of texas
http://www.math.utep.edu/Faculty/helmut ... ordic.html
Jacques Laporte - worked on HP-35 (hard to find ready to use functions)
http://www.jacques-laporte.org/index.html
Another solution is maybe to use HI TECH but it is more expensive...