[TIB] Re: Displaying values


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

[TIB] Re: Displaying values



I typed that in and got the correct answer multiple times.  You are typing
the square root symbol instead of "sqr(" in the program, right?  Also, you
do not need this program if you don't mind typing a little: 
cSolve(a*x^2+b*x+c=0,x) will do the same thing, and show the nonreal answers


-------Original Message-------

From: ti-basic@lists.ticalc.org
Date: Tuesday, August 27, 2002 7:45:55 PM
To: ti-basic@lists.ticalc.org
Subject: [TIB] Re: Displaying values

:kuad(a,b,c)
:Prgm
:Local d
:b^2-4*a*c->d:If d<0 Then
:Disp "Non-real answer":Stop:EndIf
:Disp (-b+sqr(d))/(2*a),(b+sqr(d))/(2*a)
:EndPrgm



----- Original Message -----
From: "Robert Mohr" <rmohr@calcware.org>
To: <ti-basic@lists.ticalc.org>
Sent: Tuesday, August 27, 2002 7:39 PM
Subject: [TIB] Re: Displaying values


> Can you give us the full code of the function you're using?
>
> -------Original Message-------
>
> From: ti-basic@lists.ticalc.org
> Date: Tuesday, August 27, 2002 7:37:56 PM
> To: TI Basic
> Subject: [TIB] Displaying values
>
> On the 92+, I have a program that takes d and puts it in a formula. How
come
> it comes out "(-b-3*sqr(185))/(2*a)" like I put it in, instead of (ex.) 54
> 222343576. ???
>
>
>
> .
>
>



.



Follow-Ups: References: