Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Suppose I have a variable var1, a function MyFunction, and a graphic SomePlot. I remember seeing a feature, which returned information about a particular object (either it was in Mathematica or in Python, but I don't recall the exact form or place in which I read about it). Suppose it was in a form objects_name?, for example:


would return: a variable, var1 = 4 etc.


would return: a function, MyFunction[#1,#2,...] = ... etc.


would return: 2d plot... etc.

Is there something like that in Mathematica? I suppose there is, but I wasn't able to skillfully enter a proper search query in the Documentation nor in Mathematica.SE...

share|improve this question

closed as off-topic by Ajasja, m_goldberg, Michael E2, Sjoerd C. de Vries, bobthechemist Jul 14 at 18:29

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Ajasja, m_goldberg, Michael E2, Sjoerd C. de Vries, bobthechemist
If this question can be reworded to fit the rules in the help center, please edit the question.

Move the ? to the start :) –  rm -rf Jul 14 at 15:38
I realize this question is stated poorly, but I only have a vague idea about what I'm asking for. If someone pushes me into the right direction, I may can restate the question to be more helpful. –  Lurco Jul 14 at 15:38
My comment is the answer you're looking for... ?MyFunction and ??MyFunction –  rm -rf Jul 14 at 15:39
Type "information" into the documentation search ;-) –  Szabolcs Jul 14 at 15:39
@Lurco so, Definition and Information –  acl Jul 14 at 15:51

1 Answer 1

up vote 2 down vote accepted

g[x_] := x^3
f1[x_] := g[x^2]
f2[x_] := g[x^3]


f1[x_] := g[x^2]


f1[x_] := g[x^2]
g[x_] := x^3




enter image description here

a[1] = 1;
a[2] = 2;

share|improve this answer
Is there a variant of FullDefinition that is computable or an approach (using Hold?) that can similarly bring together nested functions ? I've tried combos of Apply and 'Hold' –  PlaysDice Jul 14 at 17:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.