@bitinn Taylor expansion comes to mind but also only works for a fixed exponent....
thomastc | frozenfractal @thomastc@mastodon.gamedev.place
@bitinn Taylor expansion comes to mind but also only works for a fixed exponent. Any function can be approximated using a polynomial, which is just a bunch of muls and adds. One issue is, it will pass through 0,0 but not necessarily through 1,1. Maybe you can add another term to correct for that at the end. Maybe lerp between different approximations to make this work for arbitrary exponents? I doubt it'll be faster than hardware pow() at that point though.