Logo by Trifox - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Support us via Flattr FLATTR Link
 
*
Welcome, Guest. Please login or register. April 26, 2024, 05:01:13 AM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: exponential interpolation ? like in ultrafractal  (Read 2087 times)
0 Members and 1 Guest are viewing this topic.
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« on: February 24, 2014, 04:53:14 PM »

hi all, i can not get my head around the "exponential interpolation" feature of ultrafractal, as described here:
http://www.ultrafractal.com/help/index.html?/help/tutorials/basicskills/bs-zoom.html

i want to implement such an interpolation method of my own, but i can not figure it out, and the internet seems
to be not providing any information as well, is it so easy no one writes about it ?!

question: i have a linear interpolation between point x and y. i now want to interpolate the values exponentially as described in the uf link... huh? huh? huh?
Logged

---

divide and conquer - iterate and rule - chaos is No random!
hobold
Fractal Bachius
*
Posts: 573


« Reply #1 on: February 24, 2014, 06:01:12 PM »

If I am not mistaken, you can can get exponential interpolation by working in logarithmic space. Conceptually that is a three step process:

if you want to interpolate a variable from value A to value B according to a time parameter t (with 0.0 <= t <= 1.0), then:

1. take the logarithm of A and B (any base of logarithm will do, as long as you are consistent later)

    logA = log(A);
    logB = log(B);

2. now interpolate the transformed values as you normally would, either linearly, or with a spline, or however you wish:

    logInterpolatedValue = interpolate(t, logA, logB);

3. finally, the interpolated value from log space needs to be mapped back (use the same base as with the log of step 1)

    interpolatedValue = exp(logInterpolatedValue);

That should do the trick. There are some limitations, because A and B may not be zero and must have the same sign. But that is a fundamental limitation of logarithmic space, not of this specific algorithm.
Logged
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #2 on: February 24, 2014, 07:17:31 PM »

very cool, thank you, it seems to work wink
Logged

---

divide and conquer - iterate and rule - chaos is No random!
hobold
Fractal Bachius
*
Posts: 573


« Reply #3 on: February 25, 2014, 12:20:28 AM »

Math works!  smiley
Logged
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #4 on: February 25, 2014, 12:47:51 AM »

right, and i never get how easy working with logarithms actually is wink
and for the zoom factors it is a MUST to get it continuously smooth
thank you for the pointing !!!
Logged

---

divide and conquer - iterate and rule - chaos is No random!
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
exponential-based complex dynamics Images Showcase (Rate My Fractal) bh 14 4932 Last post September 27, 2007, 12:04:37 AM
by gandreas
attempt on triplex numbers over exponential form Theory kram1032 2 3268 Last post December 10, 2009, 06:55:41 PM
by bugman
exponential growth ... 1,5 mio impressions in january Fractal Forums News cKleinhuis 4 2393 Last post February 01, 2012, 09:31:25 AM
by cKleinhuis
What software should I use to create exponential type functions? Fractal Programs M Benesi 4 4516 Last post April 15, 2014, 10:29:16 PM
by M Benesi
Exponential Mandelbrot Set Images Showcase (Rate My Fractal) laser blaster 2 1501 Last post October 02, 2014, 12:25:47 AM
by laser blaster

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.15 seconds with 24 queries. (Pretty URLs adds 0.01s, 2q)