The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.math.symbolic

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: saving plotting data into a file; define a plotable step function.
Replies: 3   Last Post: Dec 28, 1996 1:19 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Shang Xian

Posts: 4
Registered: 12/8/04
saving plotting data into a file; define a plotable step function.
Posted: Dec 27, 1996 5:28 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Happy holiday everyone!

I have two questions.

1. Has anyone succeed in saving the plotting output into a file in
data format? (not graphic). Say, I have a function f(x) and let the
maple to plot it in a region with 50 points; and now I'd like to save
these 50 pairs of points (x,y) in a file in 50 rows x 2 columns.

2. I'd like to define a step function which may be plotted by maple.
This is a simple example.
>u:= proc(x,y) if x<3 then x+y else x^2+y^2 fi; end;

Now if I do
Seems no problem, but if I do
>plot(u(x,1), x=0..5);
Error, (in u) cannot evaluate boolean

Any insight will be appreciated.

Xian Shang

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.