I Logarithmic scale - interpolation

FEAnalyst
Messages
348
Reaction score
149
TL;DR Summary
How can I interpolate between two values on a logarithmic scale plot?
Hi,

knowing the coordinates of two points: ##(x_1,y_1)## and ##(x_2,y_2)## on a linear scale plot, I can use linear interpolation to get ##y## for a point of known ##x## using the formula below: $$y=y_1+(x−x_1) \frac{(y_2−y_1)}{(x_2−x_1)}$$
But how does it look like in the case of logarithmic scale (log-log plot)? How can I get ##y## for known ##x## when I have the coordinates of two other points? So far I haven't found any working formula for that.

Thanks in advance for your help.
 
Mathematics news on Phys.org
FEAnalyst said:
when I have the coordinates of two other points?
You have to specify what you mean by that ! Example: Plot ##y = x^3## on log-log paper. Suppose you want to interpolate between ##(3,27)## and ##(4,64)## to find ##3.75^3## (is 52.73).

1619110562193.png


Do you have the coordinates of those points as found on the axis, or in mm on the paper ?

In the first case your $$y-y1=(x−x_1) \frac{(y_2−y_1)}{(x_2−x_1)}$$is still 'valid' in the logarithm world$$
\log{y\over y_1} = \log{x\over x_1}*{\log(y_2/y_1)\over \log(x_2/x_1)}$$as you can easily check with a calculator (or excel ?:) ):
1619109772500.png


In the second case you do something similar, but you already have the logarithms.
1619110493181.png


##\ ##
 
Just replace all y values by log(y) and all x-values by log(x). That's all. That's exactly what a log-log plot does. Your result is then log(y), but of course you can recover y using y = exp(log(y)).
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...

Similar threads

Back
Top