Re: TI-M: Even Square


[Prev][Next][Index][Thread]

Re: TI-M: Even Square




Or without even the If-Then statement...
(I assume ceiling means the smallest integer <= the argument.  I don't have a 
92)

evensq(n)
Func
return (ceiling(sqrt(n) / 2) * 2) ^ 2
EndFunc

If there's a simpler way to enter this in, I don't know it, because I don't 
have a 92.  This can be adapted to any other graphing calculator (using int 
instead of ceiling).



Follow-Ups: