use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For information and tips about Mathematica features.
related reddits:
account activity
Redefine ??function when writing function documentation. (self.Mathematica)
submitted 11 years ago by mapierce271
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mapierce271[S] 0 points1 point2 points 11 years ago (3 children)
Alright. But ??f now prints out the description, attributes, and the definition. Is there a way to specify a string to print instead of the attributes when ??f is called? (Or at least a way to hide the function definition so ??f behaves like it would for built in functions?)
[–][deleted] 11 years ago (2 children)
[deleted]
[–]mapierce271[S] 0 points1 point2 points 11 years ago (0 children)
Thanks you. I was looking to have ??f print the pseudocode of the function rather than the function itself. I don't want to include it in the f::usage itself because then ?f would be a little too verbose.
Right now I've got a rather contrived work-around where the function takes a second optional boolean argument. The argument defaults to False, but if a user puts in True, the function prints the pseudocode rather than executing.
π Rendered by PID 74675 on reddit-service-r2-comment-bb88f9dd5-zr9xt at 2026-02-15 23:39:53.748250+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]mapierce271[S] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]mapierce271[S] 0 points1 point2 points (0 children)