i want to calculate sqrt and arctangent in javacard. i haven't any math lib to do this for me and i haven't float type to calculate it manually. I have some questions in my mind:
1- Can i use float number in byte array form and working on it? how? 2- Usually how these operations is calculated in javacard?
I found some links but i couldn't help me: http://stackoverflow.com/questions/15363244/math-library-for-javacard http://javacardos.com/javacardforum/viewtopic.php?t=437
I should mention that i have to calculate these operation on card. Thank you very much if anyone can help me.
The idea for CORDIC in the computation of
atan
is to have a table of valuesIt does not matter if the angles are precomputed in radians or degrees. Then use the tangent addition theorem
to successively reduce the given tangent value
Now one needs to translate these operations and constants into using some kind of fixed point format.