[Maxima] I can't resist this one
miguel39123 at hotmail.com
Thu Jan 4 06:34:40 CST 2007
Given a list, say xx: [2,1,3,3,5], how would I use 'sublist' to
extract the indices where '3' occurs?
I know I can write a routine checking whether each element xx[i] = 3
or not and print out the indices 'i'.
What I want to know is how to implement a predicate in 'sublist'
which will work.
I can't resist to this one, this is really funny, the best of the day.
Also: Read the documentation of sublist, if gives the values of element of the
list, so how can you extract any number that is not on the list?.
what values of this list are equal to the position of fun?
Also: there is a list function position
:lisp (position 3 '[1 2 3 4 5 6 3 3 3])
Again, sorry but i can resist to this one,too funny for me.
More information about the Maxima