Power node cannot handle negative exponent

Post your questions here and we'll all try to help.
Post Reply
dtristram
Posts: 14
Joined: Fri Dec 31, 2021 19:32

Power node cannot handle negative exponent

Post by dtristram »

in Wire, the Power node returns inf when given a negative exponent.

Negative exponents are a thing. 2 ^ (-1) = 1/2

please fix

Christoph
Posts: 174
Joined: Wed Jun 02, 2010 09:58

Re: Power node cannot handle negative exponent

Post by Christoph »

Which version of Wire are you running? It looks about correct to me on 7.23.1:
Screenshot 2025-08-25 222246.png
Screenshot 2025-08-25 222246.png (14.09 KiB) Viewed 765 times

dtristram
Posts: 14
Joined: Fri Dec 31, 2021 19:32

Re: Power node cannot handle negative exponent

Post by dtristram »

Ah, I see what happened. I had

Int In => Power => 1/x.

The result of an Integer negative exponent is rounded to zero as the result of Power is cast to Int. Then the 1/x gives inf.

Working as designed.

David

Post Reply