asking on maxima plotting data



here what I get so far,by using *with_stdout*

*with_stdout ("data4.txt", for x:1 thru 10 do print (x,2.0*x+38.0/x))$*
*
*
I got several problem here

1.  is my sampling is only 10 point, so when I want to use this data to plot
a graph its not suitable. The increment of *x* is 1 , how can I decrease the
increment of *x* around 0.01 maybe?

2. the function *2*x+38/x *can't be used to invoke those command, the result
in *data4.txt* can't be used by gnuplot outside Maxima environment. So I
need to float this equation first before put it in with_stdout command.

3. if the equation *2*x+38/x *come from several work before I invoke
with_stdout, I need to *float*, *string* and paste it in
*with_stdout*command, if not
*data4.txt* can't be used by gnuplot outside Maxima environment. Here what
I'm done
(%i1)2*x $
(%i2)38/x $
(%i3)%o1+%o2 $
(%i4)float(%) $
(%i5) string(%) ;
I copy manually and paste in(%i6)
(%i6)with_stdout ("data4.txt", for x:1 thru 10 do print (x,2.0*x+38.0/x))$
-------------------------------------
with_stdout ("data4.txt", for x:1 thru 10 do print (x,%i3))$
and
with_stdout ("data4.txt", for x:1 thru 10 do print (x,%i4))$

can't be used....




On Wed, Apr 20, 2011 at 11:36 AM, razif razali <razif66 at gmail.com> wrote:

> Dear all maxima user,
>
> if I invoke this command in Maxima ' plot2d(2*x+38/x,[x,0,10]); ' Maxima
> will automatically plot the given function in gnuplot for ' x ' from 0 to 10
>
> how to sampling the data that Maxima calculate before it plot in gnuplot?
>
> --
> Regards,
>
> RAZIF RAZALI,
> Tutor & Master Student,
> Physics Department,
> Faculty Of Science,
> Universiti Teknologi Malaysia(UTM).
> +60199393606
>
>
>
>


-- 
Regards,

RAZIF RAZALI,
Tutor & Master Student,
Physics Department,
Faculty Of Science,
Universiti Teknologi Malaysia(UTM).
+60199393606