Skip to main content
13 events
when toggle format what by license comment
Apr 13, 2017 at 12:55 history edited CommunityBot
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Aug 5, 2015 at 5:36 vote accept Phab
Jul 31, 2015 at 9:20 comment added J. M.'s missing motivation "should not" is a bit stronger than what I wanted to say; my only point was that this style looks to be difficult to maintain and can be easily broken during modification. The package is the classical way of having a few public functions that use private subroutines.
Jul 31, 2015 at 7:28 comment added Phab @Guesswhoitis. I don't mind you being frank, on contrary. As I would call myself still a beginner in Mathematica, I'm thankful for every suggestion for improvement. But yes, it's just a toy function :-) But I was not aware one should not define functions in functions (if they should be 'private'). So I guess building a own package would be a good way?! Or is there another way to have private functions?
Jul 31, 2015 at 2:38 comment added m_goldberg I gave this answer to illustrate a different issue, but it is a pretty good example of handling options in a function definition.
Jul 30, 2015 at 21:10 answer added Michael E2 timeline score: 1
Jul 30, 2015 at 19:36 answer added george2079 timeline score: 0
Jul 30, 2015 at 16:16 history edited m_goldberg CC BY-SA 3.0
deleted 10 characters in body; edited title
Jul 30, 2015 at 12:05 comment added J. M.'s missing motivation If you'll pardon me for being frank, your implementation looks a bit more fragile (unless this is a toy example and your actual routine has good reasons for having a function definition within a function definition). Maybe separate out Rescaled, and set up an option default list the way I did in my previous comment.
Jul 30, 2015 at 12:01 comment added Phab @Guesswhoitis. Is the edited solution what you meant?
Jul 30, 2015 at 11:52 history edited Phab CC BY-SA 3.0
added 738 characters in body
Jul 30, 2015 at 11:35 comment added J. M.'s missing motivation Options[myPlot] = Sort[Append[Options[Plot], "CommonZero" -> True]] and use OptionValue[] and FilterRules[] as necessary.
Jul 30, 2015 at 11:31 history asked Phab CC BY-SA 3.0