2008-07-22 04:31:11 -04:00
|
|
|
! Copyright © 2008 Reginald Keith Ford II
|
2008-07-22 20:45:13 -04:00
|
|
|
! Tools for quickly comparing, transforming, and evaluating mathematical Factor functions
|
2008-07-22 04:31:11 -04:00
|
|
|
|
2008-08-02 14:02:33 -04:00
|
|
|
USING: kernel math arrays sequences sequences.lib ;
|
2008-07-22 04:31:11 -04:00
|
|
|
IN: math.function-tools
|
2008-08-10 17:49:40 -04:00
|
|
|
: difference-func ( func func -- func ) [ bi - ] 2curry ; inline
|
|
|
|
: eval ( x func -- pt ) dupd call 2array ; inline
|
|
|
|
: eval-inverse ( y func -- pt ) dupd call swap 2array ; inline
|
|
|
|
: eval3d ( x y func -- pt ) [ 2dup ] dip call 3array ; inline
|