Both in V10.2:
So is ? not the same as Information? But in the help files, it looks like ? is a short form for Information ??
Both in V10.2:
So is ? not the same as Information? But in the help files, it looks like ? is a short form for Information ??
This looks very weird indeed. Here's my theory on what happens.
First, what is ?something equivalent to exactly? It's the same as
Information["something", LongForm -> False]
Note that I wrote "something" in quotes. This is not exactly the same as Information[something] (without quotes). ? is one of those operators that, when appearing at the beginning of the line, will cause the following characters to be interpreted as a string. << is another example of such an operator.
Keeping this subtlety in mind, ? and Information behave in exactly the same way.
Now what about the second weirdness, i.e. that if using a symbol name (not a string), then Information does return the usage message even though the VariationalMethods package was not loaded?
My best guess is that it's because the usage messages for the standard add-ons are replaced by Mathematica with messages stored in $InstallationDirectory/SystemFiles/Kernel/TextResources/Language/Usage.m (replace Language by your version's language, typically English). I think this is both to allow translations and to have nicely formatted messages with 2D math inside.
It seems that symbols from builtin packages seem to be in this strange state of semi-existence that Names will claim that they don't exist but creating them will immediately load their usage message. This is very similar to the Stub attribute, but Attributes["VariationalMethods`VariationalD"] doesn't find the symbol either.
MakeExpression[RowBox[{"?", "foo"}], StandardForm]
– Michael E2
Aug 09 '15 at 21:42
Information has an option LongForm.
?... is equivalent to
Information[..., LongForm -> False]
??... is equivalent to
Information[..., LongForm -> True]
Information[] is equivalent to one of the ? or ??. But neither [1] nor [2] is working, while [3] is working.
– Chen Stats Yu
Aug 09 '15 at 16:34
[3] working is explained in my answer to your other question.
– m_goldberg
Aug 09 '15 at 16:39
? and ??, done to translate them into their FullForm, is different from what the more formal Information[...] receives, and that may account for the difference you see. "translates to" might be a better term than "equivalent"
– m_goldberg
Aug 09 '15 at 16:49