Polynomial regression: Difference between revisions

Content added Content deleted
m (J: added whitespace, for clarity)
(J: note about precision)
Line 421: Line 421:
Y (%. (^/ x:@i.@#)) X
Y (%. (^/ x:@i.@#)) X
1 2 3 0 0 0 0 0 0 0 0</lang>
1 2 3 0 0 0 0 0 0 0 0</lang>

Note that this implementation does not use floating point numbers, so we do not introduce floating point errors. Using exact arithmetic has a speed penalty, but for small problems like this it is inconsequential.


=={{header|MATLAB}}==
=={{header|MATLAB}}==