521 reputation
210
bio website
location
age
visits member for 1 year, 3 months
seen May 7 at 15:13
stats profile views 26

Mar
1
comment Copying a symbol using a subpackage
I wrote the package to copy the names new from scratch and then it worked. The old one and the one written from scratch look equal to me. I don't have a clue, what was wrong with the old one, but now it works.
Mar
1
accepted Copying a symbol using a subpackage
Mar
1
revised Copying a symbol using a subpackage
Updated with a solution.
Mar
1
comment Copying a symbol using a subpackage
When i copy my one testfunction from production to the ``A```-setting copying works, using exactely the same copy (not set to private, just other Package/SubPackage Name, even hence having the same function name) won't work. I have no clue, where there's any difference left.
Mar
1
comment Copying a symbol using a subpackage
Running that after Loading A and at least Sub1 in a Notebook on a freshly started Kernel just works fine. With full contexts. But even if i define copy in Global context just Needs A`Sub2 won't work (neither does that work with a Sub2-local copy) to copy f to g in their contexts (tried putting none, one (each) and both in Context of their packages.
Mar
1
comment Copying a symbol using a subpackage
Yes, it is loaded, there is only one minor difference. The function f is defined in A`Sub1 (which is also loaded and in the ContextPath), there are some Messages (because I still have to work on one unrelated ::usage), but none related to that. In A`Sub2` I set `copy` to private and copy a function (say `f` to `g`) and doing that manually (in the notebook corresponding to `TestA`) works fine, but using the Sub2`` package the problem persists as described above (though for the MWE it works and I transcribed the solution letter by letter checked three times).
Mar
1
comment Copying a symbol using a subpackage
Thanks, I think setting copy private is a good idea, but up to know, I'm not able to adapt the answer (which works fine for the MWE) to the production code - though I checked character by character - the function does not get copied :/
Mar
1
comment Copying a symbol using a subpackage
Well for the MWE from above both approaches work fine - adapting that to my original package, nothing's changed there - but I'll check that slowly again now, whether i missed something (though there is not much to miss).
Mar
1
comment Copying a symbol using a subpackage
Oh. Didn't think of that one, because it's a sub package. I adapted your idea and used BeginPackage["A`Sub`",{"A`"}] (and learned about the double ticks), it works. Though my eyes hurt, that the subpackage has to load it's parent; but I'll have to get used to that I think. Works fine :)
Mar
1
asked Copying a symbol using a subpackage
Feb
23
comment Define a second name for a function
Wow! I tried to search some words, but didn't come up with those; actually your posted Question does even more that I wanted. With the mentioned Operator that even gets nicer than i thought. It's perfect - and you were very fast :)
Feb
23
asked Define a second name for a function
Feb
15
awarded  Yearling
Jan
15
comment Percentage axis ticks
Would it fit to your approach to use the label, i.e. somethin like AxesLabel -> {"your x-axis label", "something in %"} and leave the TicksLabels` as they are (and hence keep the MinorTicks ?
Jan
4
comment Best Practice to write ::usage for own package functions
@Nasser i just checked some other packages (non standard Mathematica but from the Library online) and many delevopers use functions starting with capital letters, e.g. IntegerSmithForm. I don't know, which would be better Mathematica Programming Practice...
Dec
24
awarded  Enthusiast
Dec
23
awarded  Nice Question
Dec
23
accepted Number format in Legend Labels
Dec
22
comment Number format in Legend Labels
Actually performing a further Floor[exp] is o good idea in order to get a decent scale (an not just $10^{-2.089744433}$ ;)
Dec
22
revised Number format in Legend Labels
Added second version.