View Single Post
  #3  
Old June 27th, 2009, 03:00 AM
CaptainBlack's Avatar
CaptainBlack CaptainBlack is offline
Grand Panjandrum
 
Join Date: Nov 2005
Location: South of England
Posts: 11,375
Country:
Thanks: 667
Thanked 3,618 Times in 2,915 Posts
CaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond reputeCaptainBlack has a reputation beyond repute
Default

Quote:
Originally Posted by CaptainBlack View Post
There are at least two answers to this (assuming a is a known numeric value)

1. Set up a model in Excel and use the solver to minimise:

\int_{t=0}^T [e^{at}-(a't+b')]^2 dt

of course this will be discretised so you will have to find (a', b') that minimises:

\sum_{t_i} [e^{at_i}-(a't_i+b')]^2

2. Expand e^{at} in orthogonal polynomials on (0,T) stopping at the linear term.

CB
I have run method 2 through Maxima and the results are shown in the attachment (I ought to condense this down to a function definition since this is at least the second time I have done this).

(this is just using Gram-Schmidt to find the first few orthogonormal basis polynomials then using the first couple of terms of the generalised Fourier series corresponding to the orthonormal basis - note I am using the inner product of real functions not that for complex)

CB
Attached Files
File Type: pdf Printing oth1.pdf (88.9 KB, 10 views)

Last edited by CaptainBlack; June 27th, 2009 at 03:57 AM.
Reply With Quote
The following users thank CaptainBlack for this useful post:
Donate to MHF