Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to get a smooth plot?

0 views
Skip to first unread message

James Buddenhagen

unread,
Sep 29, 2002, 12:05:27 AM9/29/02
to
I would like a smooth plot for f (below). I tried:

f:=(33102 x - 103993)*(113 x - 355)*(x - Pi);
plot(f,x=3.141585..3.1416,numpoints=200);

But the plot was quite jagged. How can I get maple
to produce a smooth one?

--Jim Buddenhagen


James Buddenhagen

unread,
Sep 29, 2002, 9:26:50 AM9/29/02
to
I meant, of course,

f:=(33102*x - 103993)*(113*x - 355)*(x - Pi);
plot(f,x=3.141585..3.1416,numpoints=200);

Probably most any function would do. This just
happened to be the one I was looking at when I
encountered the zig-zag graph.

--Jim Buddenhagen


Colin Andrew Percival

unread,
Sep 29, 2002, 9:46:01 AM9/29/02
to
James Buddenhagen <jbud...@texas.net> wrote:
> f:=(33102 x - 103993)*(113 x - 355)*(x - Pi);
> plot(f,x=3.141585..3.1416,numpoints=200);

> But the plot was quite jagged. How can I get maple
> to produce a smooth one?

Looks fine to me, using Maple V release 4.

Colin Percival

James Buddenhagen

unread,
Sep 29, 2002, 11:29:17 AM9/29/02
to
"Colin Andrew Percival" <cper...@sfu.ca> wrote in message
news:an706p$mbn$1...@morgoth.sfu.ca...

Interesting. To me, using Maple 7.0 it looks like (link to 5K file):

http://lonestar.texas.net/~jbuddenh/temp/sample_plot.gif

--Jim Buddenhagen

James Buddenhagen

unread,
Sep 29, 2002, 11:37:59 AM9/29/02
to

"Colin Andrew Percival" <cper...@sfu.ca> wrote in message
news:an706p$mbn$1...@morgoth.sfu.ca...
> James Buddenhagen <jbud...@texas.net> wrote:
> > f:=(33102*x - 103993)*(113*x - 355)*(x - Pi);

> > plot(f,x=3.141585..3.1416,numpoints=200);
>
> > But the plot was quite jagged. How can I get maple
> > to produce a smooth one?
>
> Looks fine to me, using Maple V release 4.
>
> Colin Percival

(My apologies if this appears twice. Outlook express is doing some
strange stuff.)

Alec Mihailovs

unread,
Sep 29, 2002, 12:12:01 PM9/29/02
to
"James Buddenhagen" <jbud...@texas.net> wrote in message
news:r7Fl9.362917$5r1.16...@bin5.nnrp.aus1.giganews.com...

> > > f:=(33102*x - 103993)*(113*x - 355)*(x - Pi);
> > > plot(f,x=3.141585..3.1416,numpoints=200);
> >
> http://lonestar.texas.net/~jbuddenh/temp/sample_plot.gif

It is a display driver problem. Use

> plotsetup(gdi);

before plotting.

Best wishes,
Alec Mihailovs
http://webpages.shepherd.edu/amihailo/


James Buddenhagen

unread,
Sep 29, 2002, 1:18:13 PM9/29/02
to

"Alec Mihailovs" <al...@mihailovs.com> wrote in message
news:lDFl9.18776$CJ5.3...@news3.news.adelphia.net...

Thanks. That fixed it! Now I get a very nice plot even
with a tighter interval for x. A 7K picture is here:
http://lonestar.texas.net/~jbuddenh/temp/sample_plot2.gif

--Jim Buddenhagen

0 new messages