My favorites | Sign in
Project Logo
                
Revision: r947
Author:  fredrik.johansson
Date:  Jun 28, 2009
Review scores: No one has yet scored this revision.
 

Log message

Some more features related to powers and roots

* made mpc_pow_int fast and more accurate for a pure real or pure imaginary
argument
* implemented powm1() for accurate calculation of x^y - 1
* added docs and tests for expm1(), and fixing the wrong value of expm1(0) (!)
* made nthroot() optionally compute any of the nonprincipal roots
* renamed nthroot() -> root() for brevity, keeping nthroot() as an alias
* more elaborate docstring for root()
* implemented unitroots(), computing all roots of unity (optionally primitive
only)
* implemented cyclotomic(), evaluating cyclotomic polynomials

Affected files

    expand all   collapse all
Modify/trunk/mpmath/__init__.pydiff
Modify/trunk/mpmath/function_docs.pydiff
Modify/trunk/mpmath/functions.pydiff
Modify/trunk/mpmath/libintmath.pydiff
Modify/trunk/mpmath/libmpc.pydiff
Modify/trunk/mpmath/tests/test_functions.pydiff

Project members, sign in to write a code review
Hosted by Google Code