My notebook can't load my package and I don't know why.
I called "testons.m" the file containing my package, I wrote inside it the following exemple code :
BeginPackage[ "Package`"]
MainFunction::usage =
"MainFunction[ x] computes a simple function."
Begin[ "Private`"]
MainFunction[ x_] :=
Module[ {y},
y = x^2;
y + 1
]
End[]
EndPackage[]
I put it in the folder :C:\Users\Me\Dropbox\internship-2017\Mathematica\initialisation
I wrote in my working notebook :
AppendTo[$Path,
"C:\\Users\\Me\\Dropbox\\internship-2017\\Mathematica\\initialisation"]
And when I write later in the same notebook :
<< Package`
Mathematica answers me : "Get::noopen: Cannot open Package`."
I followed the exact instruction written here : https://reference.wolfram.com/workbench/index.jsp?topic=/com.wolfram.eclipse.help/html/tasks/applications/packages.html
Where is my mistake ?
Thanks
Package`
context already reserved by Mathematica itself. $\endgroup$"Private`"
vs"`Private`"
$\endgroup$<<"Testons
"` . Package context can be different from its file name, but I think this is not good practice. $\endgroup$