<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/modmath.c, branch v1.5.2</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.5.2</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.5.2'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-12-12T15:12:54+00:00</updated>
<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>
<entry>
<title>py: Move float e/pi consts to objfloat and make mp_obj_float_t private.</title>
<updated>2015-10-20T11:35:17+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-08-20T22:42:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7e359c648b1f92e709c5ff4b7089011967ebb9f5'/>
<id>urn:sha1:7e359c648b1f92e709c5ff4b7089011967ebb9f5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming.</title>
<updated>2015-10-11T12:18:15+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-10-11T09:09:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1b586f3a734c27c78080fb2173bbde17168cb9e4'/>
<id>urn:sha1:1b586f3a734c27c78080fb2173bbde17168cb9e4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Implement second arg for math.log (optional value for base).</title>
<updated>2015-06-13T21:35:25+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-06-13T20:56:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6f4952004207a249a437dc822c5252422f63cc69'/>
<id>urn:sha1:6f4952004207a249a437dc822c5252422f63cc69</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Make math special functions configurable and disabled by default.</title>
<updated>2015-02-22T14:48:18+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-02-22T14:48:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5cbeacebdb8407425e692205f7333452e8a57784'/>
<id>urn:sha1:5cbeacebdb8407425e692205f7333452e8a57784</id>
<content type='text'>
The implementation of these functions is very large (order 4k) and they
are rarely used, so we don't enable them by default.

They are however enabled in stmhal and unix, since we have the room.
</content>
</entry>
</feed>
