cothe on DeviantArthttps://www.deviantart.com/cothe/art/Pow-Block-Variation-81871260cothe

Deviation Actions

cothe's avatar

Pow-Block Variation

By
Published:
4.3K Views

Description

This is a heavily updated version of my Polynomial variation. It was developed using C, instead of Delphi, meaning that it should be relatively problem free.

This function treats the xy plane as the complex plane, and applies the standard power function z^(p/q) to each point, where p is the value given by the Numerator variable, and q is that given by the Denominator. This makes fractional roots a lot easier, since you don't have to try to plug in 0.333 for 1/3.

The Correction variable has been split up into CorrectN and CorrectD, which act as radial "correction" for the Numerator and Denominator. Basically, this function may cause points to get really big or really small (relative to the origin), and so you can renormalize them using CorrectN and CorrectD. Having a Numerator greater than 1 will cause points to get really large, so you set CorrectN to a value close to or equal to Numerator. Same thing goes for Denominator and CorrectD.

Also, everything is a floating point number now. Unfortunately "Root" doesn't work that well when Numerator and Denominator aren't integers, but this is unavoidable. If Numerator and Denominator are integers then a Root value of 0 will produce only the Principal Branch of roots, and a value of 1 will produce all branches.
© 2008 - 2024 cothe
Comments2
Join the community to add your comment. Already a deviant? Log In
lyc's avatar
interesting system with the "correction terms" :thumbsup: