Re: logarithmic scale starting with 0



different wrote:

I'm trying to interpolate between to numbers using the logarithm
function.
I divided the inteval between the numbers in 20 parts and use the
equation in:
http://www.mpip-mainz.mpg.de/~deserno/science_notes/log_interpol/log_...

to compute the value at each step.
My problem is that my interval begins with 0.
I've already been suggested to shift the graph by 1. In this way the
equation becomes:
x = (x2 + 1)^f * (x1+1)^(1-f) - 1
But it doesn't work. If I use log10 on the interval [0;100] and f, the
position of the point of which I need the interpolated value, is 1/2 x
should be 10, but the equation gives another number.
Any suggestions?

I don't really understand what you are trying to do (and, btw, the link
seems to be broken). Given some number x, it seems that you want to
find some other number, y, that is the logarithmically interpolated
value, or translated value, or whatever you want to call it. To
construct a logarithmic mapping you need to fix exactly two pairs of
values. In other words, you need to stipulate that when x = x1, y = y1,
and when x = x2, y = y2, for some stated x1, y1, x2, y2. What are your
x1, y1, x2, y2? (It's also necessary to know which "way round" the
interpolation is supposed to work - that is, whether it is logarithmic
or exponential - but hopfeully that will be apparent from the values
you supply.)

.



Relevant Pages

  • Re: FAQ 4.36 How can I expand variables in text strings?
    ... The question states C<How can I expand variables in text strings?>. ... interpolation of double quoted strings. ... And the block eval does nothing for you, btw. ...
    (comp.lang.perl.misc)
  • Re: Interpolation with specified end derivatives
    ... Btw. the thing is there is a book about interpolation with end derivatives ... There were some questions about purpose - this should be very realtime and ...
    (comp.dsp)
  • Re: Showing 2D coordinates
    ... BlackIbanez wrote: ... you will have to decide which interpolation to use for the case ... example graph, probably simple linear interpolation would work, ... the intersection point ...
    (comp.soft-sys.matlab)
  • Quartic interpolation
    ... This is about finding the best interpolation of a function given two ... My problem (which is not a homework assignment, a real life need) is ... such that its graph has a shortest ... I think that I can find the family of possible coefficients (with one ...
    (sci.math)
  • Re: UYVY to AYUV transform filter - cannot connect to the renderer
    ... Yes, my source is a DV camera, so its format ... >too many mediatype changes may slow down my graph. ... interpolation by comparing the two outputs. ...
    (microsoft.public.win32.programmer.directx.video)