eclark

261 Reputation

8 Badges

20 years, 110 days

MaplePrimes Activity


These are questions asked by eclark

I am generatings sets and lists of points [x,y,z] where x,y,z are floating point (real) numbers. And sets and lists of such set, etc. The computations which produce the lists and sets need to be done with Digits set to some large value but I want to consider two such sets or lists or sets of such sets, etc, to be equal if the components x,y,z, of the points in the sets etc, are equal to say 8 decimal places. Can anyone suggest a good, hopefully simple, way to do this? Applying evalf[8] to all expressions doesn't work. I have a very messy way to do it, but there ought to be a better way.
Note first that @ works as designed for a function named f: restart: > f:=x->x+a: > (f@f)(x); x + 2 a But if I name the function f[1] it doesn't work. > restart: > f[1]:=x->x+a: > (f[1]@f[1])(x); (2) ((f[1]) )(x) On the other hand if I have two functions named, respectively, f[1] and f[2] then it does work. > f[2]:=x->x+b: > (f[1]@f[2])(x); x + b + a Is this a bug? Or am I missing something? --Edwin >
1 2 3 4 Page 4 of 4