bbcmicrobit/micropython

we neeed arc-tangent on microbit

rhubarbdog opened this issue · 3 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

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?

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

yes thanks