Mathematica: Solve error

  • #1
2
0

Main Question or Discussion Point

Here is my code
Code:
Nl = 10^(49) ;
Nh = 100 ;
b = 4*10^(-13) ;
Rs = N[((3 Nl)/(4 Pi b Nh^2))^(1/3)];
a = 6*10^(-18) ;

Solve[x/(4 Pi r^2)  E^(-Nh a x) a Nl == (1 - x)^2 b Nh, 
x]

When I run it, it shows the error:
"Solve::nsmet: This system cannot be solved with the methods available to Solve. >>"

How can I solve this equation? Thanks.
 
Last edited:

Answers and Replies

  • #2
191
8
Since you have an undetermined parameter, Mathematica tries to find an analytic solution, which I don't think will work in this case. If you know the value of r, then a numerical solution is possible (assuming x is a real number).
 
  • #3
2
0
Since you have an undetermined parameter, Mathematica tries to find an analytic solution, which I don't think will work in this case. If you know the value of r, then a numerical solution is possible (assuming x is a real number).
Thanks for your reply. Do you know any way to plot this (x vs. r) in mathematica? x should be some value between 0 and 1, and r is a positive number.
 
  • #4
191
8
Thanks for your reply. Do you know any way to plot this (x vs. r) in mathematica? x should be some value between 0 and 1, and r is a positive number.
The Plot3D command should be useful.
 

Related Threads on Mathematica: Solve error

  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
23
Views
4K
  • Last Post
Replies
6
Views
3K
Replies
13
Views
10K
Replies
4
Views
1K
Replies
4
Views
5K
  • Last Post
Replies
5
Views
4K
  • Last Post
2
Replies
34
Views
2K
Top