As Katie stated, there is no built in method for passing parameters between TI-Basic Programs. There is, however, a primitive method through which a single parameter can passed to a function.
An unevaluated expression can be held in one of the Y-VARS
variables. Using this variable in your program will cause the expression contained within to be evaluated and the result to be returned. The interesting part of this is that Y-VARS
variables can be passed a parameter which will be substituted for a single variable in the body of the expression. The variable that it is substituted for depends on the Y-VARS
variable you used. Function
variables use X
, Parametric
use T
and, Polar
use θ
.
This Sample program demonstrates what I have described.
:"XLog(X→Y1
:Disp Y1(10
:Disp Y1(5
When Y1
is passed 10
as a parameter, all instance of X
in Y1
are replace with 10
. Y1
is now equivalent to 10log(10
, or simply 10. The same affect is seen when passing 5
to Y1
.
The obvious drawback of this workaround is that only one parameter can be passed. Other drawbacks include that you can only put standard calculator functions into one of the Y-VARS
and that accessing Y-VARS
comes with a significant overhead.