[Python-ideas] Fwd: Trigonometry in degrees
Chris Barker
chris.barker at noaa.gov
Mon Jun 11 01:01:09 EDT 2018
On Sun, Jun 10, 2018 at 11:26 AM, Robert Vanden Eynde <
robertvandeneynde at hotmail.com> wrote:
> I agree that a big python library is more close to the standard python lib
> than matlab. However, helping transition from matlab is a great concern in
> the python scientific community, because matlab is used is a lot of
> engineering classes at University.
>
> That's a tough call hmmm.
>
not really -- if you are moving from matlab to python, you are going to be
using numpy and scipy -- we really don't need to spell similar
functionality differently than scipy does.
In regard to the "special values", and exact results -- a good math lib
should return results that are "exact" in all but maybe the last digit
stored. So you could check inputs and outputs with, e.g. math.isclose() to
give people the "exact" results. -- and keep it all in floating point.
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180610/37f57992/attachment.html>
More information about the Python-ideas
mailing list