【发布时间】:2022-07-08 15:51:35
【问题描述】:
我正在尝试在我的 ti-89 中用 TI-Basic 语言编写一个数值方法,问题是当我在循环中覆盖变量时它不会这样做,我是这种语言的新手而且我不知道我是否省略了背后的一些细节
Item()
prgm
Input "f(x)",a //call the function in text mode
define s(z,t) = a //convert the text into a function
local xa,ya //declare local variables
x->xa //assign values that I already have saved to local variables
y->ya
local i
For i,1,10
s(xa,ya)->xa //evaluate the function, and I have to rewrite the first parameter
EndFor
EndPrgm
【问题讨论】:
标签: ti-basic