Skip to content

70 Things I wish I knew when I started using Macaulay2

Alejandro Vargas edited this page Jun 7, 2018 · 12 revisions
  1. I wish I had known about autocomplete feature in emacs sooner (M=meta): M -/
  2. I can use sub (substitute) to change the ring my polynomials live in
  3. peek [object], will give you the internal details of an object
  4. code methods [function], will show you the Macaulay2 code behind most functions and where you can find the code
  5. ``viewHelp x" brings up the HTML documentation for function/object/etc x.
  6. peek'_n will peek n levels deep
  7. make check checks everything and should be run before any pull request.
  8. toExternalString P gives me a string constructing P
  9. That you can use " list / function " to apply a function to all the elements in a list.
  10. Use last baseName to get the index of a subscripted variable, e.g. last baseName x_{2,3} is {2, 3}.
  11. That the command "restart" resets a session.
Clone this wiki locally