SAVESTRUCTR INDEX

SAVESTRUCTR _ _ _ _ _ _ _ _ _ _ _ _ switch

When savestructr is on, results of the structr command are returned as a list whose first element is the representation for the expression and the remaining elements are equations showing the relationships of the generated variables.

examples:


off exp; 

structr((x+y)^3 + sin(x)^2); 

  ANS3
     where
                    3       2
        ANS3 := ANS1  + ANS2
        ANS2 := SIN(X)
        ANS1 := X + Y


ans3; 

  ANS3 


on savestructr; 

structr((x+y)^{3} + sin(x)^{2}); 

                3       2
  ANS3,ANS3=ANS1  + ANS2 ,ANS2=SIN(X),ANS1=X + Y 


ans3 where rest ws; 

         3         2
  (X + Y)  + SIN(X)

In normal operation, structr is only a display command. With savestructr on, you can access the various parts of the expression produced by structr.

The generic system names use the stem ANS. You can change this to your own stem by the command varname. REDUCE adds integers to this stem to make unique identifiers.