Message Boards Message Boards

0
|
3181 Views
|
4 Replies
|
2 Total Likes
View groups...
Share
Share this post:

[Solved] Plot of a numerical integration

Posted 3 years ago

Please someone can help how to plot the following numerical integral with respect to "z". Here " z " varies from "0" to "1". I am using the following code:

Plot[{z,NIntegrate[x^(1/2)/(Exp[x] *z^(-1))+z/(1-z),{x,0,Infinity}]},{z,0,1}] 

But unable to get the correct result.

POSTED BY: Ram Sen
4 Replies

In the problem statement, is

z/(1-z)

part of the integral? If so, the pen & paper version needs parentheses. If not, it should not be inside the NIntegrate function.

POSTED BY: Richard Frost
Posted 3 years ago

No, z/ (1-z) is not a part of the integral. What all I want to do is , calculate the integral for a particular value of "z". and then add with it the value. "z / (1-z) ". And I want to do it for all values of "z" in between "0" to "1".

Please can you tell hopw should I modify my code?

POSTED BY: Ram Sen

It should not be inside the NIntegrate function.

POSTED BY: Richard Frost
Posted 3 years ago

Thanks, it worked.

POSTED BY: Ram Sen
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract