Date : Fri, 11 Feb 2005 23:16:44 GMT
From : Pete Turnbull <pete@...>
Subject: Re: programming tips
On Feb 11 2005, 22:23, Sprow wrote:
> In article <420C9BCF.7080206@...>,
> Richard Gellman <splodge@...> wrote:
>
> [snip]
>
> > y=FNequation(x,a,b,c)
> > PRINT "if y=ax2+bx+c, then y=";y
> > END
> >
> > DEF FNequation(x,a,b,c)
> > REM example statement to show FNs can be multiline
> > =((a*x)*(a*x))+(b*x)+c
>
> Unless I was asleep in that lesson I think you want
> =(a*(x*x))+(b*x)+c
> for a polynomial of order 2,
Yes, although you don't need any of the brackets.
--
Pete Peter Turnbull
Network Manager
University of York