I created a Mathematica packagr and then I used the Needs function to add the library to my .nb file, but when use a function in my .nb file and the function is built in my library it comes up with the functions output multiplied by "mylibrarynamePrivate".
My Package:
BeginPackage["Afak10`"] Unprotect @@ Names["Afak10`*"]; ClearAll @@ Names["Afak10`*"]; f::usage = "f[x]" Begin["Private"] f[x_] := Module[{}, x^2 + s]; End[] Protect @@ Names["Afak10`*"]; EndPackage[] Output:
Afak10`Private`s + x^2 What if I define f[x] as:
f[x_] := Module[{asdfs},asdfs]; The Output is:
Afak10`Private`asdfs$4980 
"] Unprotect @@ Names["Afak10*"]; ClearAll @@ Names["Afak10*"]; f::usage = "f[x]" Begin["Private"] f[x_] := Module[{}, x^2 + s]; End[] Protect @@ Names["Afak10*"]; EndPackage[] $\endgroup$