Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.maple > #772
| From | Joe Riel <joer@san.rr.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.maple |
| Subject | Re: writeline and writedata |
| Date | 2013-06-08 18:04 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <87ip1odrgv.fsf@san.rr.com> (permalink) |
| References | <6127710e-c783-43e3-91d5-9c6f52267de9@googlegroups.com> <c0ecab95-ff9a-4c36-b775-2492fd3f7606@googlegroups.com> |
Roman Pearce <rpearcea@gmail.com> writes:
> On Saturday, June 8, 2013 8:02:25 AM UTC+10, pluton wrote:
>> B:=plot(x,x=-1..1): # creation of the plot
>> A:=op(1,op(1,B)): # counts the number of points in the plot
>> Is there a simple to achieve this?
>
> I would convert A to a list of rows and use the seq command:
>
> A := convert(A,listlist):
> seq( fprintf("Cfile.dat", "%10.6f\t%10.6f\n", op(i)) , i=A):
> close("Cfile.dat"):
That will give the most control, but here you could do
fprintf("file.dat", "%{c\t}10.6f\n", A);
See ?rtable_printf for the {} modifier; {c\t} means
use a tab as a column separator.
--
Joe Riel
Back to comp.soft-sys.math.maple | Previous | Next — Previous in thread | Next in thread | Find similar
writeline and writedata pluton <plutonesque@gmail.com> - 2013-06-07 15:02 -0700
Re: writeline and writedata Roman Pearce <rpearcea@gmail.com> - 2013-06-07 23:48 -0700
Re: writeline and writedata Joe Riel <joer@san.rr.com> - 2013-06-08 18:04 -0700
Re: writeline and writedata pluton <plutonesque@gmail.com> - 2013-06-10 23:43 -0700
csiph-web