- integral needs the option 'ArrayValued',true to integrate vector valued functions.
- the term 1./r in your fun1 evaluates to [Inf ...]
- you redefine l (terrible choice of a variable name btw) as your loop variable, so by the time the loop is done (once you fixed it), l will have the value 2, and not be a 3-dim array.
Evaluate a function in a grid
6 Ansichten (letzte 30 Tage)
I want to plot an isosurface of a function*_ v_*.
Problem is that v doesn't accept matrix arguments (not vectorizable function as it contains Laguerre associated polynomials)
So if I create a meshgrid for the values of x,y,l
Then I suppose to evaluate v using loops (counters) as I can not bypass x , y & l as arguments
But I'm doing something wrong, and as a consequence I'm not evaluating v in the points of the grid:
does someone knows how to do the loops so I can obtain a v that matches in size with x, y, l so I can use:
or does someone knows how to obtain the mentioned isosurface v through an alternative way?
I actually need all the help I can get to do this.
Jonathan Epperl am 24 Apr. 2013
Does that code run for you? I'm sure it doesn't, you should have mentioned that, along with the error messages...
Anyway, there are several problems:
Fix that, see if it works, if it doesn't come back here, this time with error messages, please.