Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Numerical Integration in a For Loop' topicStudent Support Forum > General > "Numerical Integration in a For Loop"

Next Comment >Help | Reply To Topic
Author Comment/Response
Alex Fere
10/06/07 06:07am


I have a function which I have numerically integrated in Mathematica. I would like to be able to change a parameter of that function and re-evaluate that integral and then record the answer.

Since this needs to be done for vary small changes of that independent variable it would be impossible for me to sit down and do it one by one.

I am thinking of using a for loop but I cannot understand how to use it in my case.

I would appreciate anyones help/

Here is the form of the function that I am integrating

ref[\[lambda], \[Theta], \[Phi], \[Pi]/5, (2 \[Pi])/5], {\[Theta],
0, \[Pi]}, {\[Phi], 0, 2 \[Pi]}]

I would like to be able to change the first variable within my ref function. This is lambda. So I want lambda to take different values within a range of 0 to 10 with increments of 0.01 and then store the output of the numerical integration. I would then like to plot lambda against the values obtained from the numerical integration.




URL: ,

Subject (listing for 'Numerical Integration in a For Loop')
Author Date Posted
Numerical Integration in a For Loop Alex Fere 10/06/07 06:07am
Re: Numerical Integration in a For Loop Xavier Brusset 11/06/07 06:15am
Next Comment >Help | Reply To Topic