Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | The addition of rint() (by Peter Schneider-Kamp; I forgot to mention | Guido van Rossum | 2000-05-11 | 1 | -0/+4 |
| | | | | | | that before) in the previous patch has one problem; rint() is not in the C math library on all platforms (e.g. not for VC++). Make it conditional on HAVE_RINT. | ||||
* | Added math.rint() -- round according to current IEEE754 mode | Guido van Rossum | 2000-05-11 | 1 | -0/+3 |
| | |||||
* | Trent Mick: | Guido van Rossum | 2000-05-08 | 1 | -4/+4 |
| | | | | | | | | | | | | | Fix overflow bug in ldexp(x, exp). The 'exp' argument maps to a C int for the math library call [double ldexp(double, int)], however the 'd' PyArg_ParseTuple formatter was used to yield a double, which was subsequently cast to an int. This could overflow. [GvR: mysteriously, on Solaris 2.7, ldexp(1, 2147483647) returns Inf while ldexp(1, 2147483646) raises OverflowError; this seems a bug in the math library (it also takes a real long time to compute the Inf outcome). Does this point to a bug in the CHECK() macro? It should have discovered that the result was outside the HUGE_VAL range.] | ||||
* | Correctly document atan2. | Guido van Rossum | 1998-12-08 | 1 | -1/+1 |
| | |||||
* | Added Doc strings -- by Chris Petrilli. | Guido van Rossum | 1998-12-04 | 1 | -50/+97 |
| | |||||
* | Add DL_EXPORT() to all modules that could possibly be used | Guido van Rossum | 1998-12-04 | 1 | -1/+1 |
| | | | | on BeOS or Windows. | ||||
* | Removed MetroWerks workaround, replaced by defines in mymath.h (Jack) | Guido van Rossum | 1997-05-20 | 1 | -5/+0 |
| | |||||
* | New form of PyFPE_END_PROTECT macro. | Guido van Rossum | 1997-03-14 | 1 | -3/+3 |
| | |||||
* | Changes for Lee Busby's SIGFPE patch set. | Guido van Rossum | 1997-02-14 | 1 | -0/+6 |
| | | | | | Two new modules fpectl and fpetest. Surround various and sundry f.p. operations with PyFPE_*_PROTECT macros. | ||||
* | Removed references to getdoublearg and get2doublearg rename macros and | Roger E. Masse | 1996-12-18 | 1 | -8/+5 |
| | | | | substituted the appropriate PyArg_Parse calls. Retested. All appears well. | ||||
* | Correct *another* mistake (initmath() always fell through to fatal error). | Guido van Rossum | 1996-12-18 | 1 | -0/+1 |
| | | | | Watch it, Barry! :-) | ||||
* | Correct 1-char typo / syntax error. | Guido van Rossum | 1996-12-18 | 1 | -1/+1 |
| | |||||
* | Better error checking in initmath(). | Barry Warsaw | 1996-12-17 | 1 | -2/+13 |
| | |||||
* | Renamed | Barry Warsaw | 1996-12-09 | 1 | -43/+42 |
| | |||||
* | New permission notice, includes CNRI. | Guido van Rossum | 1996-10-25 | 1 | -13/+20 |
| | |||||
* | Move backup definition for hypot() to Python/hypot.c. | Guido van Rossum | 1996-08-29 | 1 | -27/+0 |
| | |||||
* | Avoid complaint about inconsistent hypot() linkage on NT. | Guido van Rossum | 1996-08-21 | 1 | -0/+2 |
| | |||||
* | Hack for Mac (where fabs is not usable as a function pointer). | Guido van Rossum | 1996-08-08 | 1 | -0/+5 |
| | |||||
* | Don't make an exception for NeXT (BBUM says it's no longer needed). | Guido van Rossum | 1996-07-30 | 1 | -1/+1 |
| | | | | | (But hypot() should really be defined in a separate file, triggered by configure.) | ||||
* | Microsoft C changes | Guido van Rossum | 1996-05-23 | 1 | -1/+4 |
| | |||||
* | added default hypot() implementation | Guido van Rossum | 1996-01-12 | 1 | -4/+21 |
| | |||||
* | NeXT doesn't like me to declare hypot(double, double) | Guido van Rossum | 1995-06-14 | 1 | -1/+1 |
| | |||||
* | include mymath.h | Guido van Rossum | 1995-03-01 | 1 | -1/+1 |
| | |||||
* | cleanup | Guido van Rossum | 1995-01-22 | 1 | -4/+0 |
| | |||||
* | rearrange declarations somewhat | Guido van Rossum | 1995-01-12 | 1 | -11/+11 |
| | |||||
* | Added 1995 to copyright message. | Guido van Rossum | 1995-01-04 | 1 | -2/+2 |
| | | | | | Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment. | ||||
* | Another bulky set of minor changes. | Guido van Rossum | 1995-01-02 | 1 | -0/+4 |
| | | | | | Note addition of gethostbyaddr() and improved repr() for sockets, renaming of md5.md5() to md5.new(), and fixing of leaks in threads. | ||||
* | add hypot() | Guido van Rossum | 1994-10-20 | 1 | -0/+2 |
| | |||||
* | Merge alpha100 branch back to main trunk | Guido van Rossum | 1994-08-01 | 1 | -1/+15 |
| | |||||
* | * Makefile: added all: and default: targets. | Guido van Rossum | 1993-07-05 | 1 | -3/+0 |
| | | | | | | | | | | | | * many files: made some functions static; removed "extern int errno;". * frozenmain.c: fixed bugs introduced on 24 June... * flmodule.c: remove 1.5 bw compat hacks, add new functions in 2.2a (and some old functions that were omitted). * timemodule.c: added MSDOS floatsleep version . * pgenmain.c: changed exit() to goaway() and added defn of goaway(). * intrcheck.c: add hack (to UNIX only) so interrupting 3 times will exit from a hanging program. The second interrupt prints a message explaining this to the user. | ||||
* | * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c. | Guido van Rossum | 1993-06-17 | 1 | -0/+3 |
| | | | | | | | | | | Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close(). | ||||
* | * Microscopic corrections to make things compile on the Cray APP. | Guido van Rossum | 1993-04-07 | 1 | -0/+5 |
| | | | | | * Removed one use of $> in Makefile and warned about others. Added configurable lines in Makefile to change CC and AR. | ||||
* | * Changed many files to use mkvalue() instead of newtupleobject(). | Guido van Rossum | 1993-03-16 | 1 | -24/+4 |
| | | | | | | | | | | * Fixcprt.py: added [-y file] option, do only files younger than file. * modsupport.[ch]: added vmkvalue(). * intobject.c: use mkvalue(). * stringobject.c: added "formatstring"; renamed string* to string_*; ceval.c: call formatstring for string % value. * longobject.c: close memory leak in divmod. * parsetok.c: set result node to NULL when returning an error. | ||||
* | Copyright for 1992 added | Guido van Rossum | 1992-04-05 | 1 | -1/+1 |
| | |||||
* | lint | Guido van Rossum | 1992-03-27 | 1 | -1/+1 |
| | |||||
* | Get rid of RuntimeError. | Guido van Rossum | 1992-02-26 | 1 | -1/+1 |
| | |||||
* | Get rid of AMOEBA deps; add declaration of fmod() if __STDC__ is not defined. | Guido van Rossum | 1992-01-14 | 1 | -5/+4 |
| | |||||
* | Improve error handling. | Guido van Rossum | 1991-12-16 | 1 | -5/+30 |
| | |||||
* | Added PROTO macro where needed. | Guido van Rossum | 1991-11-12 | 1 | -3/+3 |
| | |||||
* | Added frexp, ldexp, modf, fmod. | Guido van Rossum | 1991-10-24 | 1 | -12/+75 |
| | |||||
* | Add some err_errno calls that were missing | Guido van Rossum | 1991-07-27 | 1 | -3/+3 |
| | |||||
* | Apparently MPW has power() instead of pow(). | Guido van Rossum | 1991-06-24 | 1 | -0/+4 |
| | |||||
* | Moved get*doublearg() routines to modsupport.c | Guido van Rossum | 1991-04-03 | 1 | -29/+0 |
| | |||||
* | Added copyright notice. | Guido van Rossum | 1991-02-19 | 1 | -0/+24 |
| | |||||
* | Add <errno.h>. | Guido van Rossum | 1990-12-20 | 1 | -0/+5 |
| | |||||
* | "Compiling" version | Guido van Rossum | 1990-12-20 | 1 | -12/+3 |
| | |||||
* | DECREF pi and e after inserting in symbol table. | Guido van Rossum | 1990-11-18 | 1 | -2/+4 |
| | |||||
* | Take out duplication of code in initmodule(). | Guido van Rossum | 1990-10-26 | 1 | -11/+2 |
| | |||||
* | Initial revision | Guido van Rossum | 1990-10-14 | 1 | -0/+167 |