Dear colleagues,
Can somebody please help me with the following problem: I am trying to
generate a table in a file with three columns for three functions:
with_stdout ("data.txt", for x:0 thru 10 do (
a:x/1.0,
b:x^2/1.0,
c:x^3/1.0,
print(a,b,c)));
data: read_matrix("data.txt");
When I read data into Maxima
data: read_matrix("data.txt");
it reads (adds) also tags(!) and not only the array values:
matrix([<,mth,>,<,n,>,0.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,0.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,0.0,<,/,n,>,<,st,>,<,/,st,>,<,/,mth,>,<,mth,>,<,n,>,1.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,1.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,1.0,<,/,n,>,<,st,>,<,/,st,>,<,/,mth,>,<,mth,>,<,n,>,2.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,4.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,8.0,<,/,n,>,<,st,>,<,/,st,>,<,/,mth,>,<,mth,>,<,n,>,3.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,9.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,27.0,<,/,n,>,<,st,>,<,/,st,>,<,/,mth,>,<,mth,>,<,n,>,4.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,16.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,64.0,<,/,n,>,<,st,>,<,/,st,>,<,/,mth,>,<,mth,>,<,n,>,5.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,25.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,125.0,<,/,n,>,<,st,>,<,/,st,>,<,/,mth,>,<,mth,>,<,n,>,6.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,36.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,216.0,<,/,n,>,<,st,>,<,/,st,>,<,/,mth,>,<,mth,>,<,n,>,7.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,49.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,343.0,<,/,n,>,<,st,>,<,/,st,>,<,/,mth,>,<,mth,>,<,n,>,8.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,64.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,512.0,<,/,n,>,<,st,>,<,/,st,>,<,/,mth,>,<,mth,>,<,n,>,9.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,81.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,729.0,<,/,n,>,<,st,>,<,/,st,>,<,/,mth,>,<,mth,>,<,n,>,10.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,100.0,<,/,n,>,<,st,>,<,/,st,>,<,n,>,1000.0,<,/,n,>,<,st,>,<,/,st,>,<,/,mth,>])
How can I import only "pure" values from 3-values lines into an array (to
see a nice ASCII atrix)?
Next, how can I draw / make a plot with this matrix, where the first column
is the independent variable, while the other two vales are its maps
(functions)?
Many thanks.
Daniel