RESOLVED: Function pow(x) - negative

Build 55460 - 64-bit

Function pow(x) with a negative number does not handle the sign correctly.
Currently function behaves like this: -2 ^ 2 = -4

This is tscript? I’m not seeing this. Can you post the exact expression you are using?

Function CHOP
functionchop.jpg

So it looks like we’ve made a decision in the past to handle negative numbers in the power functions by inverting first as a way to avoid discontinuity and dealing with imaginary numbers. I’ve updated the wiki page to reflect this:

derivative.ca/wiki088/index. … ction_CHOP