next up previous contents index
suivant: Make a random vector monter: Lists and vectors précédent: Make a list with   Table des matières   Index

Make a list with a function : makelist

makelist takes as argument a function f, the bounds a,b of an index variable and a step s (by default 1 or -1 depending on the bounds order).
makelist makes the list [f(a),f(a+p)...f(a+k*p)] with k such that : a < a + k*p $ \leq$ b < a + (k + 1)*p or a > a + k*p $ \geq$ b > a + (k + 1)*p.
Input :
or first define the function h(x) = x2 by h(x):=x^2 then input
Output :
Input :
Output :
Warning!!! purge x if x is not symbolic.

giac documentation written by Renée De Graeve and Bernard Parisse