From 33ddfb70a52dd0ffdb9612bb3b604b76ed5a692f Mon Sep 17 00:00:00 2001 From: jos Date: Sat, 13 Feb 2016 13:44:12 +0100 Subject: [PATCH] Updated docs for `pow` (see #525) --- lib/function/arithmetic/pow.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/function/arithmetic/pow.js b/lib/function/arithmetic/pow.js index 94f701cb1..86f2838ed 100644 --- a/lib/function/arithmetic/pow.js +++ b/lib/function/arithmetic/pow.js @@ -18,6 +18,10 @@ function factory (type, config, load, typed) { * Matrix exponentiation is supported for square matrices `x`, and positive * integer exponents `y`. * + * For cubic roots of negative numbers, the function returns the principal + * root by default. In order to let the function return the real root, + * math.js can be configured with `math.config({predictable: true})`. + * * Syntax: * * math.pow(x, y)