To map two scalar numeric values (x0,x1) to two other scalar values (y0,y1):
- Plot the graph (x0,y0) and (x1,y1). Find the y-intercept s and slope
m. The mapping is s+m*x. Simplify for particular values of s and m. If
y0/y1 is 0, or if y0/y1 is 1, or if x0/x1 is boolean, there are functions
you can exploit, such as ^ or * .
- ((x0,x1)i.x){(y0,y1). Simplify for specific domains. For example if
x is known to be boolean you can simplify 0 1 i. x to just x .
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm