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

Home » Public Forums » archive » solving equation consisting of points - sort of...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
solving equation consisting of points - sort of... [message #63328] Thu, 06 November 2008 06:49 Go to next message
shokland is currently offline  shokland
Messages: 4
Registered: January 2008
Junior Member
I have a parametric curve, where I wish to calculate the parameter
value, t, at fixed positions along the trace, g. I calculate the
arclength a_i for a set of parameter values t_i, and now wish to
somehow solve the equations: t_j = a_j with t_j as the unknown. Does
anyone have a suggestion for performing this in an elegant (and
mathematically sound) manner? Obviously, given, a_k, one could find l,
such that a(t_l)<a_k and a(t_(l+1)) > a_k and perform a linear
interpolation to find t_k, but as said, I'm wondering if there's a
better way...

Thanks in advance for any help you can offer.

Kind regards,
Steffen
Re: solving equation consisting of points - sort of... [message #63373 is a reply to message #63328] Fri, 07 November 2008 01:50 Go to previous messageGo to next message
shokland is currently offline  shokland
Messages: 4
Registered: January 2008
Junior Member
> So you are trying to solve int_0^t f(x)dx=A for t given A and f?
Exactly! wasn't sure if LaTeX-style notation would be acceptable, but
certainly makes communication of problems easier...

> I would probably just use the simpler method with interpolate
OK - was that the (rather unsatisfying) solution that I originally
proposed?

Thanks,
Steffen
Re: solving equation consisting of points - sort of... [message #63389 is a reply to message #63328] Thu, 06 November 2008 12:19 Go to previous messageGo to next message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
So you are trying to solve int_0^t f(x)dx=A for t given A and f?

I would probably just use the simpler method with interpolate
unless highly accuracy was absolutely needed...


Ciao,
Paolo

shokland wrote:
> The curve is given by a function. However the arc length is not given
> as a closed function but rather as an integral, and what I would like
> to obtain is the parameter value corresponding to a particular arc
> length.
>
> Best regards,
> Steffen
Re: solving equation consisting of points - sort of... [message #63513 is a reply to message #63373] Fri, 07 November 2008 06:56 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
shokland wrote:
>> So you are trying to solve int_0^t f(x)dx=A for t given A and f?
> Exactly! wasn't sure if LaTeX-style notation would be acceptable, but
> certainly makes communication of problems easier...
>
>> I would probably just use the simpler method with interpolate
> OK - was that the (rather unsatisfying) solution that I originally
> proposed?

Yes, that would be computing the integral for different values
[t1,t2,...] and interpolate [A1,A2,...] at your desired t.

If your function is smooth, that should work pretty well...
If the function is not smooth, you may want to be
careful....

Ciao,
Paolo

>
> Thanks,
> Steffen
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Is there a simple way to describe and plot a simple geometry
Next Topic: Suse 10.3 : Envi 4.1 Segmentation Fault

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

Current Time: Wed Oct 08 20:02:06 PDT 2025

Total time taken to generate the page: 0.38265 seconds