0
$\begingroup$

I would like to build and interpolation function that takes in x & y data points and interpolates between them logarithmically in both x and y. I see that this a reply on this post (Interpolate on log scale) provides a nice way of interpolating along the y-axis; i.e., it linearly interpolates {x, log(y)} and then outputs the interpolated {x', y'} (in other words, it gives f(x)) by exponentiating the result rather than giving {x', log(y')}. What I would like to do is interpolate {log(x), log(y)} and then be given an interpolated function {x', y'} as the output rather than {log(x'), y'} (that is, I want f(x) instead of f(log(x)) ). Is this possible within Mathematica?

$\endgroup$
1
  • $\begingroup$ Please show the code that you have tried and what you obtained. $\endgroup$
    – bbgodfrey
    May 18, 2021 at 21:16

1 Answer 1

1
$\begingroup$

For example:

   if = Exp@*Interpolation[Log@data]@*Log

where data is the table you want to interpolate. Then if[x] returns the interpolation result at point x.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.