Hello,

I'm working on a least-squares fit routine and I'm having a bit of
trouble. The method that I'm using involves finding a series of
orthogonal polynomials that have coefficients based on the input data.
Most of the structure is worked out, the polynomials are stored in a
list named phi and there are other lists that store the coefficients.
The way I'm storing the poly's is as lambda functions and this works
OK for the first two iterations of the routine.
On the third iteration I get this message:

TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'

The second to last cell in the worksheet has a comment marking the
problem line (mentioned by the error message), but I think that the
last statement in the for loop is the  real culprit, because that is
where phi is actually used.

I would be grateful for some input. Even looking at the code again
after a good nights sleep didn't help! Maybe there is a better way of
working with these polynomials than how I'm doing it?

Here is the URL to the worksheet:
https://sage.math.washington.edu:8101/home/pub/26/

Thanks.    Matthew
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to