1 element list Desmos
DesmosGraph Calculatoris an incredibly powerful tool to display curves ( Cartesian, polar, implicit ) and a lot more (with animation, sliders, summation and derivatives, custom functions, vectors of parameters, fitting, regression, stats, ). Firstly dedicated to pupils and high-school activities, it is also of interest for the scientist, the engineer and the university student. But the simplicity of principles and the minimalist manual hide some of the power of the tool. Conversely, some things are uneasy (and many think impossible) to do if you dont know how to twist the tool. Show
Disclaimer:Im not related to the development team. Im just ahard userof the tool Some official and unofficial links:
Share this:Like this:Like Loading... ActionsAn action is an instruction ( or a list of instructions ) that can be run when you want. e.g.:
if necessary, S can even have parameters: S(v) = a v Important note: EventsYou could already easily get some interaction via sliders. Even off/on effect or selection within a list of parameters or functions could be done (with some effort) via integer sliders. But there is now a more direct way: Ticker, for animationAnimation is obtained by automatically triggering an action over time. Attention: if ticker modifies a long list, updating the display of the text version in the commands display may slow down the graph by *a huge* factor put the list in a folder, and close it for the list does not appear in text. An extra variable dt is available in this field, measuring the time ( in milliseconds) since the previous call. More:
Share this:Like this:Like Loading... Desmos provides many accessibility features, includes playing curves as sound: we can use it to encode melodies. To activate sound playing of curves:
example: basic melody tuto , with pauses , longer partition (tetris theme) , continuous sound , procedural music. Share this:Like this:Like Loading... SlidersMaking a movable point from variables respects their constraints. Note that DesmosGraph is smart enough so that even translation and scaling are permitted to draw your slider: (0, v/2 + 1/2 ) . ( But not non-linear transforms ). Keyboard user controlDesmos have multiple input and output alternatives, to help with various disabilities. Alternate solutions for motion control:
For alphabetic keys:Predefining lists with the names of the target keys, so that their multiplication produce the effects (e.g. 3D motion ): Interrupted contoursSometime you want to store several contours or shapes in a same list. Example here. Function selectorSometime you want to test a transform other several possible functions, or let the user experiment. Instead of changing the formula for f(x) or swapping the namings fi(x) vs f(x), you can implement a function selector by storing them in a table: F(x) = [ all functions ] then f(x) = F(x)[s] . Copy-Pasting a Graph in anotherSometime you make ( or find ) utilitary graphs, e.g. with functions for complex, or geometry, or 3D, or Fourier, or music, or whatever. You would like to include them for use in your new shader. Share this:Like this:Like Loading... Disclaimer: This is the most technical and unreasonable post on this blog. Ephemeral & hazardous stuff here.
Plugins:
Secret beta-featuresAttention, these are unpublic and experimental, so they can disappear or change at any time, and have many bugs. Just for fun !
Examples: URL + parameterYou can also control the aspect at launch, and activate various secret parameters and features, by adding parameters to the graph URL: url?param1¶m2&...paramn. Short card:
Share this:Like this:Like Loading... We can use either points (x,y) or arrays [x,y] to implement complex, then redefine all classical operators mul, div, pow, exp, log. ( addition, subtraction, multiplication by scalar works directly ).
Note that to display the mapping of space via a complex transform we would like to display the transformed grid, via solving f(X) = grid. Alas, only array-complexes allow solving while only points-complexes allow grids. But we can still do that by testing that values are integer via mod()=0, or near integer. Share this:Like this:Like Loading... For once this is not about a hidden feature or advanced trick: it is about a not know enough incredibly powerful function of DesmosGraph: fitting, i.e., finding the parameters of a simple target curve best approaching your raw data or your too complex function. Simple example 2D example In the definition of g(), you can add contraints on the parameters , e.g. { -1 b 1 } to restrict search domain (in some complex situations this can help). More about the history of this feature, and about advanced advices to handle complex cases here. Share this:Like this:Like Loading... New (v 1.6) :Desmos Graph now have color functions ! Declaring this add a new color to the palette you can use when choosing colors. A cool use is to define array values for colors: then if you draw an array of points or curves and set this color to it, each successive element will use the successive color in the array. So now we can even do ray-tracing with the proper colors Deprecated way:Desmos Graph only allows a very small palette of 6 colors, even if you can simulate more by superimposing layers with transparency. Mr H. Here to Help proposed a useful hack to add more, via javascript: . Example
Attention: the object colors are correctly saved, but at loading they will no longer appear as choice in the color menu. Conveniently packed by Andre Issa as a Color Picker plugin [ To be continued ] See also: secret geometry features , undocumented details Share this:Like this:Like Loading... If you practice even a bit of Desmos Graph, you already know many way to draw curves (explicit, implicit, parametric, polar plot) and to fill them (using inequalities). We also presented herehow to draw series of curves and do more complex regions painting. With this we can already produce polygonal figures from equations: But it is also possible to directly draw and manipulates shapes, and there are even undocumented features to do so. At the base is the point: we already use them to draw parametrics ( X(t), Y(t) ), or to get visual sliders ( a, b ). This set point syntax. But there is a lot more you can do with points:
Share this:Like this:Like Loading... Its not uncommon to have either unexpected results or puzzling error messages in Desmos. Here are some classical examples and solutions. Misleading functions
Misleading span of variables
Ambiguous syntax
Copy-pasting
Out of conceptual spaceMany limitations can be twisted, like drawing in 3D or emulating vector algebra. But some concepts remain definitively out of reach:
Share this:Like this:Like Loading... Undocumented functions: (see more)
See example1 , example2. Manually:
Share this:Like this:Like Loading... |