Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'recursive operations' topicStudent Support Forum > General > Archives > "recursive operations"

Next Comment >Help | Reply To Topic
Author Comment/Response
Furkan
02/26/05 10:33am

I have a code like
EvalAll[sys_]:=Module[{G1=sys,in=input},
...
]

whereas sys is a list of some variables. and the last cell of the list sys can have only two values

1. "Add"
2. "Multiply"

NOW, if we write codes like;

G1={{a,b,"Multiply"},{c,{e,f,"Add"},"Multiply"},"Add"}

C=EvalAll[G1];

(**)

I want the result C to be;
C=(a*b)+(c*(e+f))

Any suggestions?

URL: ,

Subject (listing for 'recursive operations')
Author Date Posted
recursive operations Furkan 02/26/05 10:33am
Re: recursive operations Andrew DuBui... 03/07/05 8:41pm
Next Comment >Help | Reply To Topic