comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: interpolate large numbers
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: interpolate large numbers [message #76476 is a reply to message #76475] Tue, 07 June 2011 14:42 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Jun 7, 5:35 pm, ece <ecekile...@gmail.com> wrote:
> Hi,
> I have a problem. i want to interpolate linearly some large numbers
> such as:
>
> frequency                                        L
> 6.28865e+14                      8.2654538e+28
> 1.66951e+15                      4.0936348e+28
> 1.75106e+15                      3.9580807e+28
> 2.05175e+15                      3.4878620e+28
> 2.31700e+15                      3.0611352e+28
> 4.90883e+17                      1.0399752e+25
> 1.47366e+18                      1.2454723e+24
> 2.44933e+18                      4.6650308e+23
>
> First I created the interval for the interpolation :
> range=maken(6.28865E+14,2.44933E+18,1000)

1000 points will not divide that range in a fine enough
grid - the first few data points will all be around the
first element of your range array.

You could increase the resolution of your range, or
use a logarithmic scaling instead (which is probably
better).

Ciao,
Paolo



> I used the interpol:
> Lum=interpol(L,frequency,range)
>
> But when I plot the result it does not look a linear interpolation,
> there are gaps and curves between data points. Do you have a
> suggestion?
>
> My aim is to integrate this data points and get L. If I di it same way
> in the alog10(freq) and alog10(L) values the intepolation looks nice,
> but I couldn't figure out how to convert integral result in alog10
> values to normal scale.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: interpolate large numbers
Next Topic: openr or openw with COMPRESS flag broken for large data files

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:05:03 PDT 2025

Total time taken to generate the page: 0.00623 seconds