7.23 Creating/Removing Variable Dependency

There are several facilities in REDUCE, such as the differentiation operator and the linear operator facility, that can utilize knowledge of the dependency between various variables, or kernels. Such dependency may be expressed by the command DEPEND. This takes an arbitrary number of arguments and sets up a dependency of the first argument on the remaining arguments. For example,

        depend x,y,z;

says that X is dependent on both Y and Z.

        depend z,cos(x),y;

says that Z is dependent on COS(X) and Y.

Dependencies introduced by DEPEND can be removed by NODEPEND. The arguments of this are the same as for DEPEND. For example, given the above dependencies,

        nodepend z,cos(x);

says that Z is no longer dependent on COS(X), although it remains dependent on Y.