Although %. is described as doing linear regression, it can be used in cases where y is not a linear function of x . e.g.:
x=: 10 [EMAIL PROTECTED] 100 y1=: (17 * 1.3 ^ x) + 10 [EMAIL PROTECTED] 0 ] c=: (^.y1) %. 1 ,. x 2.83334 0.262363 ^ c 17.0022 1.3 x ,. y1 ,. ^ (1 ,. x) +/ .* c 27 20273.5 20274.8 52 1.43055e7 1.43062e7 25 11996.5 11997 87 1.39162e11 1.39161e11 67 7.3224e8 7.32257e8 97 1.91847e12 1.91842e12 11 304.737 304.701 95 1.13519e12 1.13516e12 85 8.23444e10 8.23439e10 78 1.31229e10 1.3123e10 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
