Skip to main content
8 events
when toggle format what by license comment
Oct 1, 2020 at 22:11 comment added StarBucK Thanks. I asked a separate question on this here mathematica.stackexchange.com/questions/231119/… I have some other questions related to your comment (in case you want to answer on the other topic). When you mean "inert wrapper" is it your way of calling the thing or a standard name (I typed inert wrapper mathematica on google but did not find anything). Also I didn't get what you mean with InputForm.
Oct 1, 2020 at 18:34 comment added Lukas Lang Another thing to note is that by default, everything is an inert wrapper in Mathematica: If you e.g. write f[x,y] without defining f, it just stays unevaluated and can be used to indicate something when used in another function (if that function explicitly checks for the form of the argument)
Oct 1, 2020 at 18:28 comment added Lukas Lang Unfortunately, it's not quite as consistently formulated in the documentation. Some indicators for inert objects: "represents, wrapper, formats as, ..." - in general, reading the documentation carefully and looking at the examples usually tells you whether a function is inert. Another option is to just look at whether it evaluates in a meaningful way (probably by using InputForm to make sure there's no formatting going on
Oct 1, 2020 at 17:31 comment added StarBucK Allright so in general how can I make sure to understand properly the object I am looking for ? As soon as there is written "xxx represents something" it means it should not be understood as a function ? Is there a tutorial explaining those concepts with further details ?
Oct 1, 2020 at 17:28 comment added Lukas Lang Graphics is an inert wrapper (as indicated by the wording "represents a two-dimensional graphical image") - that means that Graphics isn't a function that evaluates to something else, it just stays like it is, and the frontend knows how to display them. If you look at the first example in "Properties & Relations" (the one with InputForm), you'll see that the underlying structure is still the same as what you input. So in this sense, Graphics is like another version of List, with the difference that it is displayed differently.
Oct 1, 2020 at 17:23 comment added StarBucK In a way maybe I interpret Graphics as a function and not as something different conceptually (an object ?!). If it shouldn't be understood as a function I would like to see where it is explained (I don't see any conceptual difference between the doc of Graphics and ContourPlot for instance, if the latter should indeed be understood as a function and the first as something different "an object ?!").
Oct 1, 2020 at 17:19 comment added StarBucK Thank you for your answer. I still have an issue (which probably deserves a new question I don't know). By reading Graphics documentation the way I would understand "primitives" is the first parameter to give to Graphics which I understand as a function. Not as the first element (in the sense [[1]]) of a "Graphics" list. Why do you interpret primitives in this page as the first element of Graphics and not as an input parameters it must take ? I am super confused by reading the documentation. Thanks !
Oct 1, 2020 at 17:14 history answered Lukas Lang CC BY-SA 4.0