This should fit the bill Sheila:
Define LibPub discr(a,b,c)=
Func
:Local d,eq
:d:=b^(2)-4*a*c
:eq:=string(a)&"x²+"&string(b)&"x+"&string(c)
:Disp "The discriminant of ",eq," is ",d
:If d=0 Then
:Disp "This is a perfect square with two equal solutions"
:ElseIf d>0 Then
:Disp "Two distinct real solutions"
:Else
:Disp "No real solutions"
:EndIf
:Return d
:EndFunc
Hope this helps
Steve
With best wishes,
Steve
_________________
Dr Stephen Arnold
Educational Technology Consultant
Compass Learning Technologies
T3 Fellow, Teachers Teaching with Technology Australia
Office:
+61-2-4232-2080
Mobile: +61-4-0175-3834
Web:
http://compasstech.com.au
_________________