Skip to content

Maxima Tricks

mkraska edited this page Aug 12, 2024 · 2 revisions

Functions for lists

Apply a function to a list:

map( f, [x1, x2...] );

Tables From Column Lists

STACK has the table( [title1, title2], [c11, c12]...]) for easy output as tables. Frequently we have lists, which provide the data for the columns. Here is a command for creating a table from such columns:

{@apply(table,append([[x_i,f_i]],args(transpose(matrix(x,f)))))@}
image

Tryout Space

In order to try code snippets in jsfiddle,

  1. copy the code from the wiki page to the clipboard
  2. follow the link for the JSXGraph version you want to try
  3. Replace the code in the HTML section (contents of <p hidden id="init">) with the content of the clipboard
Clone this wiki locally