H can I make a function on Ti-basic?

  • Thread starter Thread starter Link-
  • Start date Start date
  • Tags Tags
    Function
Click For Summary

Discussion Overview

The discussion centers around creating a mathematical function in TI-Basic for use on TI calculators, specifically in the context of implementing the bisection method for a Numerical Analysis class. Participants explore how to define and evaluate functions, share resources, and troubleshoot programming issues.

Discussion Character

  • Technical explanation
  • Homework-related
  • Debate/contested

Main Points Raised

  • One participant seeks guidance on defining a mathematical function in TI-Basic to evaluate expressions like f(x) = x^2 + 3x.
  • Another participant expresses frustration at the lack of responses, suggesting that programming on TI calculators may not be common.
  • Links to external resources for programming on TI calculators are shared, indicating that some participants have experience with TI assembly language as a potentially faster alternative.
  • A participant mentions the evalF command and its absence on the TI-89, indicating a need for a similar function.
  • Discussion includes a suggestion that the TI-89 allows for defining functions that can return values, which could be useful for the original poster's needs.
  • One participant shares a method for defining a function using the Define command, but encounters an error regarding variable definition when attempting to run the program.
  • A participant provides a sample program that evaluates a function but expresses dissatisfaction with its professionalism, indicating a desire for a more refined approach.

Areas of Agreement / Disagreement

Participants express varying levels of familiarity with programming on TI calculators, and while some agree on the capabilities of the TI-89, others highlight challenges and errors encountered in the programming process. No consensus is reached on the best method for defining functions in TI-Basic.

Contextual Notes

Participants note limitations in the TI-89 manual regarding programming commands, which may contribute to confusion and errors in function definition.

Who May Find This Useful

This discussion may be useful for students and educators involved in Numerical Analysis or those interested in programming on TI calculators, particularly the TI-89 model.

Link-
Messages
99
Reaction score
0
Hi,

Do anyone know how can I make a function on Ti-basic?

What I mean by function is mathematical function IE. f(x)=x^2+3x and then take the value of f(2) and f(3) and store them on a variable.

I'm trying to program the http://en.wikipedia.org/wiki/Bisection_method" on the calculator for my Numerical Analysis class and I need to take f(a) and f(Pn).

f(p)=0

Thanks

Link
 
Last edited by a moderator:
Technology news on Phys.org
Apparently nobody programs on a TI calculators.

Kind of obvious why.

:redface:
 
Last edited:
:evalF(F,x,A)->FA
:evalF(F,x,C)->FC

This evalf() command is not on the ti-89, at least doesn't have the same name and it just what I need.

Thanks Ranger
 
You say that it is a TI-89?

I am quite sure that the TI-89 allows you to actually define functions. I do not remember exactly where in the interface you do this, and I cannot find my TI-89 right now. However as I remember it, in the menu where you can create programs, you can also create "functions". Functions are like programs, but they return a value. This means (1) you can call them like functions from the interpreter prompt, which is what you seem to want to do and (2) you can call them from other programs the way functions in a normal programming language would work. Look in the menus, do you see what I am referring to?
 
Yes, Coin there is a way to define a function actually is Define like this

:Define f(x)=Funct
: /*Function of x*/
:
EndFunct

But for some reason when i try to run the program, I get an error message telling me that I didn't define variable. :confused:

I had read the manual a couple of times, is not real good source for programming and commands.
 
ranger said:

Thanks Ranger, but the problem is that I'm suppose to make the program. I already manage to evaluate the desire function but is was not a real profesional way. It is kind of lame.

I made this:

Code:
ClrIO
Dialog
Request "Function: f(x)",f
Request "Initial point",a
Request "Final Point",b
Request "Tolerance",tol
EndDlog
If Ok=0:Stop
expr(a)->a:expr(f)->f:expr(b)->b:expr(tol)->tol
[B]a->x
f->fa[/B]
While abs(a-b)/(abs(a+b)/2)>tol
     a+(b-a)*0.5->p
    [B] p-x
     f->fp[/B]
   If fp=0 Then
          Disp "p=",p
          Stop
   EndIf
   If fa*fp>0 Then
         p->a
         fp->a
   Else
        p->b
   EndIf
EndWhile
Disp "f(p)=0, p=",p
EndPrgm

The bold is how do manage to evaluate my function
 

Similar threads

  • · Replies 36 ·
2
Replies
36
Views
7K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
26
Views
6K
Replies
31
Views
4K
  • · Replies 32 ·
2
Replies
32
Views
6K
Replies
3
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K