Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news.harvard.edu!news2.near.net!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!wupost!news.utdallas.edu!corpgate!bcarh8ac.bnr.ca!bcarh189.bnr.ca!nott!cunews!dbuck
From: dbuck@superior.carleton.ca (Dave Buck)
Subject: Re: How to plot trig functions in ST/V?
Message-ID: <Cwz1I1.L5q@cunews.carleton.ca>
Sender: news@cunews.carleton.ca (News Administrator)
Organization: Carleton University, Ottawa, Canada
References: <36aj27$nf@tpd.dsccc.com>
Date: Sat, 1 Oct 1994 01:58:49 GMT
Lines: 44

In article <36aj27$nf@tpd.dsccc.com>,
Robert Lingenfelter <rlingenf@tpd.dsccc.com> wrote:
> Hi all! Could someone please give me a fair amount of help on how 
>to plot a trig function (actually the sinc funtion) in Smalltalk?
>I can do it of course in c, but I would like to move on (and up!) 
>to ST, and I would like to graph some stuff from Mr. Fourier. This 
>is quite probably NOT how to begin Smalltalk, but it's what I am
>fixated on at the moment. I know that I need the result of my trig
>function as the y coordinate, and I guess it has to be scaled to an
>integer for the Pen object to use it (best guess here). 
> Anybody "been there, done that!" ?
>
>                                      Thanks, Robert

Smalltalk-V has no built-in facilities for plotting graphs.  You could
brew your own, if you wish, by creating a window with a GraphPane and
using the line drawing routines in Pen.  Alternatively, you could
output a CSV file that could be imported into Excel.  Just output a
bunch of numbers (ASCII text) separated by commas.

You may be interested in a product called MathPack by GSoft.  It's a
package that includes a lot of math utilities (matrices, symbolic
math, complex numbers, etc), and also contains some very good 2D and
3D plotting classes.  Plotting your sine function would be a piece of
cake with this package.

For information on the package, contact:
    GSoft
    13918 Notley Road
    Silver Spring
    MD 20904
    (301) 384-8325

I am not associated with GSoft.

David Buck
dbuck@ccs.carleton.ca

_________________________________
| David K. Buck                 |
| dbuck@ccs.carleton.ca         |
| The Object People             |
|_______________________________|
 
