Max Montauk

20 Reputation

2 Badges

18 years, 88 days

MaplePrimes Activity


These are questions asked by Max Montauk

The creation of 2D color plots is not very comprehensively supported by Maple. However, such plots may be produced by using plot3d with its 'color' option. Unfortunately, plot3d(..., color=myProc(x,y)) works only under certain conditions.  The problem seems to be that myProc(x,y) is evaluated by plot3d just one time. Thereby, unassigned variables 'x' and 'y' are given over instead of numeric values. The returned expression is then used for numerous calculations of the color by successively assigning different values to 'x' and 'y'.

I have a function with two arguments and want -- as the first argument gets fixed -- to transform it to a function with just one argument. The difficulty is that I use for the function definition the same symbols as in the worksheet where those symbols are assigned to numerical values. The main problem is, as the following minimal example shows, that the variable A is not evaluated during the definition of function g(). > a:=1: > b:=2: > f:=(a,b)->a+b; (a, b) -> a + b > A:=3.5: > g:=b->f(A,b); b -> f(A, b) > g(0); 3.5 # O.K. > A:=4:
Page 1 of 1