Negate derived from value Example Source Header

Description: a value node that computes the negative of its last child

notes:
Category: Math
Author: Alex Hill
Revision: 11/01/01

    Comments

constructor Negate

method app

1 if this node has size greater than zero and has children
1.1 for each value in the last child node do
1.1.1 if the element is less than the size of this node then
1.1.1.1 set the element value to the negative of the child value