Skip to content

Instantly share code, notes, and snippets.

@krantikal
Last active October 25, 2023 03:09
Show Gist options
  • Save krantikal/35bee50d76cd72b0badc8933e7019618 to your computer and use it in GitHub Desktop.
Save krantikal/35bee50d76cd72b0badc8933e7019618 to your computer and use it in GitHub Desktop.
[WX Maxima] facts #scicmp #cas #housekeeping

Maxima: Housekeeping facts

Autocomplete

  1. ctrl + k autocompletes, e.g sol ctrl+k
  2. shift + ctrl + k shows usage as well, e.g sol shift + ctrl +k

Greek vars

esc a esc gives you alpha (greek). Can be used as var name.

##Subscripted vars

x_i or p_3 would also work as subscripted names.

For longer subscripts use :

wxdeclare_subscript(variable_name);

or

wxdeclare_subscript([variable_name1,variable_name2,...]);

to declare them all at once

Handy shortcuts for objects

esc <thing> esc can be used for many other things, try e.g, 2,3,/2, sq, integral, hbar, partial, ii, ee for element, in, impl, inf, empty, !=, subset etc. Might turn out to be what you just need for text cells (ctrl +1); You can get palettes for them from the view menu.

Misc

  1. You can also use some markdown: *, > (block quotes, 1 for every line)
  2. Ctrl+ zooms in, Crl- zooms out.
  3. Maxima commands can be stored in .mac files and executed using batch command. You can store some of these in the documents folder and read them back using File / Batch File...
  4. wxm files can be read using the load command
  5. wxmx files would save the output with them
  6. plot and wxplot commands are not really different, wx embeds the graphics produced on the worksheet itself. There are wxplot, wxdraw and wxhistogram in the same line of definition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment