Barton Willis [11/09/03 10:23 -0500]:
> I wasn't aware of these functions in commercial Macsyma; I agree,
> reproducing them seems to be the way to go.
>
> 1. The commercial Macsyma functions don't work with CSV files -- I think
> elements need to be separated by spaces, tabs, or linefeeds? Because of
> this,
> and since some (human) languages use a comma for a decimal point, should
> the Maxima functions also require that elements be separated by just
> spaces, tabs, or linefeeds and not possibly by commas?
>
> 2. The function read_num_data_to_matrix requires the user to give the
> matrix size. Would it be better to make the size arguments optional and
> when they aren't given to have each line of the input file be a matrix
> row?
>
I would vote for optional size arguments. For example, in Scilab
there is a command "read(file-desc,m,n,[format])" which reads data
from a file into an "m by n" matrix. Calling the command with m=-1
signals to Scilab that the number of lines in the file is not known
in advance, so the entire file should be read in.
I wish I had an idea how to do something like this in Maxima, or at
least to have some time at the moment to try, but ...
Milan Lukic
> Eventually (not in the next week or so) I'll try writing functions
> read_numerical_data & friends; if anybody does before I get around to it,
> that would be great!
>
> Barton
>
>
>
>
>
> Dan Stanger <dan.stanger@ieee.org>
> Sent by: maxima-admin@math.utexas.edu
> 09/10/2003 06:06 PM
>
>
> To: maxima@www.ma.utexas.edu
> cc:
> Subject: Re: [Maxima] saving as CSV, eigensystem
>
>
> The commercial Macsyma has the functions:
> READ_NUMERICAL_DATA,
> READ_NUM_DATA_TO_MATRIX and
> READ_NUM_DATA_TO_ARRAY.
> Perhaps for compatibility, they should be reproduced.
>
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>
>
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>