Skip to main content
added 119 characters in body
Source Link

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 

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 

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 
Post Reopened by C. E., Mr.Wizard
added 271 characters in body
Source Link

I created a Mathematica librarypackagr 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 

I created a Mathematica library 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".

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 
Post Closed as "Needs details or clarity" by m_goldberg, bobthechemist, C. E., rm -rf
Source Link

Mathematica Library

I created a Mathematica library 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".