micropython icon indicating copy to clipboard operation
micropython copied to clipboard

we neeed arc-tangent on microbit

Open rhubarbdog opened this issue 2 years ago • 2 comments

i want to make a mecca detector for microbit simply input your longtitude and lattitude using the compas and arc tanget calculate the shortest distance to mecca

rhubarbdog avatar Jul 25 '22 04:07 rhubarbdog

Hi @rhubarbdog,

The math module already contains atan() and atan2():

MicroPython 569e361 on 2022-06-20; micro:bit v2.0.0 with nRF52833
Type "help()" for more information.
>>> import math
>>> math.a
acos            asin            atan            atan2

Are those the functions you meant? Or is it a different one?

microbit-carlos avatar Jul 29 '22 16:07 microbit-carlos

Hi @rhubarbdog, did my previous reply answer your question?

microbit-carlos avatar Aug 31 '22 14:08 microbit-carlos

yes thanks

rhubarbdog avatar Sep 28 '22 12:09 rhubarbdog