Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Problem with NIntegrate' topicStudent Support Forum > General > Archives > "Problem with NIntegrate"

Next Comment >Help | Reply To Topic
Author Comment/Response
07/30/08 08:05am

Dear Mathematica specialists,
I have written a function to calculate the Poisson equation, namely a differential equation. It works well, and I can plot the result. The next step would be to integrate a function containing this result, and this does not work... can someone help me ? Hereafter I describe the problem in detail:
First I define

chargetest[z_,s_]:=Which[z<=0,0,z>0 && z<=s, rho,z>s,0]

Then I define my function


I can call it with


and it works, plotting the result.

My problem is that I now want to replace the Plot function above by


... and I get an "integrand not numerical" error message. And this I do not understand: I can plot <resultat> but not calculate with it ??

Thanks very much in advance

URL: ,

Subject (listing for 'Problem with NIntegrate')
Author Date Posted
Problem with NIntegrate Gunnar 07/30/08 08:05am
Re: Problem with NIntegrate Xavier 07/31/08 00:21am
Re: Re: Problem with NIntegrate Gunnar 07/31/08 07:03am
Re: Problem with NIntegrate Xavier 07/31/08 12:28pm
Next Comment >Help | Reply To Topic