Post Reply 
map and apply for programming
10-11-2018, 01:00 PM
Post: #1
map and apply for programming
Is it possible to use map- and apply- commands for programming or they just work for CAS?
Thank you
Find all posts by this user
Quote this message in a reply
10-12-2018, 08:43 PM
Post: #2
RE: map and apply for programming
(10-11-2018 01:00 PM)SpendTimeForPrime Wrote:  Is it possible to use map- and apply- commands for programming or they just work for CAS?
Thank you

you can use // NOT TESTED
Code:

#cas
MapApply(VecM,VecA):=
BEGIN
  VecA:=apply(x->x^3,VecA);
  VecM:=map(VecM,x->x^3);
  RETURN VecM+VecA;
END;
#end
and use that cas program anywhere

check the details using [Help ] and User Guide
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: