Results 1 to 4 of 4

Thread: [TI-83] Solve Quadratic Equations

  1. #1

    Thread Starter
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Arrow [TI-83] Solve Quadratic Equations

    Simple program for the Texas Instruments TI-83 graphics calculator, for solving quadratic equations.

    Code:
    QUADEQ
    
    a+bi
    Disp "INSERT A,B,C"
    Prompt A,B,C
    (-B+(√(B²-4AC)))/(2A)->V
    (-B-(√(B²-4AC)))/(2A)->W
    If (B²-4AC)<0
    Then
    Fix 6
    Else
    Float
    End
    Disp "ZEROS:"
    If Str0="Y"
    Then
    Disp V>Frac,W>Frac
    Else
    Disp V>Dec,W>Dec
    End
    ((-B)/(2A))->D
    AD²+BD+C->E
    If A<0
    Then
    Disp "LOCAL MAX="
    Else
    Disp "LOCAL MIN="
    End
    If Str0="Y"
    Then
    Disp E>Frac,"WHEN X=",D>Frac
    Else
    Disp E>Dec,"WHEN X=",D>Dec
    End
    Float
    And an accompanying function to turn fractions mode on and off:
    Code:
    SETMODE
    
    Menu("FRACTIONS?","ON",A,"OFF",B)
    Lbl A
    "Y"->Str0
    Disp "FRACTIONS ON"
    Stop
    Lbl B
    "N"->Str0
    Disp "FRACTIONS OFF"

  2. #2

    Thread Starter
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Arrow Re: [TI-83] Solve Quadratic Equations


  3. #3
    New Member
    Join Date
    Jul 2009
    Posts
    1

    Re: [TI-83] Solve Quadratic Equations

    When I try to run the program, I'm getting this error message:
    ERR: UNDEFINED
    and when I choose Goto, it takes me back to this line:
    If Str0="Y"

    I don't understand what I've done wrong.

  4. #4

    Thread Starter
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [TI-83] Solve Quadratic Equations

    I'm sorry, I didn't make it clear in the original post. You need to run the SETMODE program first in order to assign Str0; then run QUADEQ.

    One probably ought to build in a check for this condition in QUADEQ. Perhaps an exercise for you?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width