Import files



daniel souza <profisicasouza <at> gmail.com> writes:

> Can I import files in WxMaxima? How can I import a file .dat to
> plot a graphic?
> 
> It's a list with some 2 columns and I want to calculate the
> logaritmic and plot the graphic for the two columns.

Maybe read_nested_list is what you want here. Something like:

  xy : read_nested_list ("/path/to/my/file.dat");
  xlogy : map (lambda ([p], [p[1], log(p[2])]), xy);
  plot2d ([discrete, xlogy]);

Just guessing -- I'm not sure what you want to do.

?? read and ?? write at the interactive prompt will find
some info about those functions.

best

Robert Dodier