<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/modmath.c, branch v1.8.7</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.7</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.7'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-11-03T01:33:01+00:00</updated>
<entry>
<title>py: Add MICROPY_FLOAT_CONST macro for defining float constants.</title>
<updated>2016-11-03T01:33:01+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-11-03T01:33:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=561844f3ba2dc81ce37c58468099042e27cd422b'/>
<id>urn:sha1:561844f3ba2dc81ce37c58468099042e27cd422b</id>
<content type='text'>
All float constants in the core should use this macro to prevent
unnecessary creation of double-precision floats, which makes code less
efficient.
</content>
</entry>
<entry>
<title>all: Remove 'name' member from mp_obj_module_t struct.</title>
<updated>2016-09-21T14:23:16+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-09-21T00:52:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=93c4a6a3f70e389b466fbc7a4f1ad2e1df87c93f'/>
<id>urn:sha1:93c4a6a3f70e389b466fbc7a4f1ad2e1df87c93f</id>
<content type='text'>
One can instead lookup __name__ in the modules dict to get the value.
</content>
</entry>
<entry>
<title>py/objfloat, py/modmath: Ensure M_PI and M_E defined.</title>
<updated>2016-05-12T12:28:45+00:00</updated>
<author>
<name>Colin Hogben</name>
<email>colin@infinnovation.co.uk</email>
</author>
<published>2016-05-09T21:11:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a896951a9a8d8585d094e5ee6d7d37ff17d1b73e'/>
<id>urn:sha1:a896951a9a8d8585d094e5ee6d7d37ff17d1b73e</id>
<content type='text'>
In some compliation enviroments (e.g. mbed online compiler) with
strict standards compliance, &lt;math.h&gt; does not define constants such
as M_PI.  Provide fallback definitions of M_E and M_PI where needed.
</content>
</entry>
<entry>
<title>py: Change type signature of builtin funs that take variable or kw args.</title>
<updated>2016-01-11T00:49:27+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-01-03T14:21:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4b72b3a133ea87a1ef8b964508dc25c551ccf093'/>
<id>urn:sha1:4b72b3a133ea87a1ef8b964508dc25c551ccf093</id>
<content type='text'>
With this patch the n_args parameter is changed type from mp_uint_t to
size_t.
</content>
</entry>
<entry>
<title>py/modmath: Add domain error checking to sqrt, log, log2, log10.</title>
<updated>2015-12-12T15:12:54+00:00</updated>
<author>
<name>Michael Buesch</name>
<email>m@bues.ch</email>
</author>
<published>2015-12-10T12:28:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=17298af61ededcfa4e96a6fdc6f484c79ffe220d'/>
<id>urn:sha1:17298af61ededcfa4e96a6fdc6f484c79ffe220d</id>
<content type='text'>
These functions will raise 'ValueError: math domain error' on invalid
input.
</content>
</entry>
<entry>
<title>py: Add MP_ROM_* macros and mp_rom_* types and use them.</title>
<updated>2015-11-29T14:25:04+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-11-27T13:38:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cbf7674025814797f5c537d6d1c195efe58ccaaf'/>
<id>urn:sha1:cbf7674025814797f5c537d6d1c195efe58ccaaf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/modmath: Make log2, log10 and hyperbolic funcs be SPECIAL_FUNCTIONS.</title>
<updated>2015-11-17T14:10:13+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-11-17T14:10:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a24eafacc9653232087bde15fb86bf86cb44cb06'/>
<id>urn:sha1:a24eafacc9653232087bde15fb86bf86cb44cb06</id>
<content type='text'>
Will be included only when MICROPY_PY_MATH_SPECIAL_FUNCTIONS is enabled.

Also covers cmath module (but only log10 is there at the moment).
</content>
</entry>
<entry>
<title>py/modmath: Don't create symbol entry for expm1() if not needed.</title>
<updated>2015-11-13T22:55:54+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-11-13T22:55:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=863d4cd862ca470f4bd4253977bba618b835fa39'/>
<id>urn:sha1:863d4cd862ca470f4bd4253977bba618b835fa39</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/modmath: Make expm1() be in MICROPY_PY_MATH_SPECIAL_FUNCTIONS.</title>
<updated>2015-11-13T22:46:52+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-11-13T22:46:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0d6116d86b916d3b5a70e188ac69f3cba40d0c6d'/>
<id>urn:sha1:0d6116d86b916d3b5a70e188ac69f3cba40d0c6d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix/mpconfigport: Move log2() definition to modmath.c.</title>
<updated>2015-11-13T13:24:48+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-11-13T11:24:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6d1eabfeaa44cab32a6ea37d3c041a9b06ac5798'/>
<id>urn:sha1:6d1eabfeaa44cab32a6ea37d3c041a9b06ac5798</id>
<content type='text'>
It's safer to define it where it's used, defining it for all source files
may lead to hard to diagnose conflicts in corner cases.
</content>
</entry>
</feed>
