Hello,
I some problems with the Mathematica syntax for defining and solving equations
I have following equations:
 
electrondensity[x_, Z_, Avog_] := (7*Avog*Z)/(118) * (1/x)^3
electrondensitycrit[\[Lambda]_] := 1.1 10^21/\[Lambda]^2 
and try to solve them:
 
NSolve[electrondensity[x_, 12, Avog] == electrondensitycrit[10.6], x_]
This however works only if the underscores "_" are used for the variable x If "x" instead of "x_", the solution is {}
Why is it? and why the following error message in case of "x_" appears? (but still solves the equation):
 
 Solve::ratnz: Solve was unable to solve the system with inexact coefficients. The answer was obtained by solving a corresponding exact system and numericizing the result.
 
2nd question:
I want to define a formula:

Do I need to define the formula in this way? (indicating the variables?)
 
Kramer[Z_, \[Lambda]_, T_, x_] := 
 108*10^-4 *Z * 
  Log[4*T/100 *\[Lambda]*2 \[Pi]/(0.577*6.626*10^-34 *3*10^8)]/((T/
        100)^(3/2)*\[Lambda]^2 ) *((electrondensity[
       x])/(electrondensitycrit[\[Lambda]]))^2
The error appears:
 
 "Tag Times in (5.20617*10^-6\ [Lambda]^2\ Log[6.57374*10^25\ \ [Lambda]]\ Z)[Z,[Lambda],T,x_] is Protected"