TI-Basic:如何获得方程作为输入?
今天我在数学课上在 TI-84 上玩编程,我决定尝试编写一个程序来读取方程式并用它做一些事情。但我在阅读方程式时遇到困难。我尝试了 :Prompt Y1
但当我尝试使用该程序时,我不断收到数据类型错误。有谁对如何实现这一目标有任何想法?提前致谢。
I was playing around with programming on my TI-84 in math class today and I decide to try to write a program that reads an equation and than does a few things with it. But I'm having trouble reading an equation. I tried :Prompt Y1
but I kept getting a data type error when I try to use the program. Does anyone have any ideas on how to accomplish this? Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
或者,您可以
这样做,这样您就不必每次输入方程式时都添加引号。
正如 Timtech 所指出的,有一种更简单的写法。
摘自 TI-Basic 开发人员信息存储库。
Alternatively, you can do
This way you don't have to put in quotation marks each time you enter an equation.
As noted by Timtech, there is an easier way of writing this.
Excerpt from the TI-Basic Developer Information Repository.
我不确定 TI-84 是否相同,但在 83 上,如果您在输入方程式时将方程式放在引号中,则这将起作用。例如,使用以下程序:
运行它:
将绘制 y=2x+1 的图形(以及您当时已经输入的任何其他方程,IIRC)。
I'm not sure if the TI-84 is the same, but on the 83 this will work if you put the equation in quotes when you enter it. So for example, using the following program:
Running it:
Will cause the graph for y=2x+1 to be drawn (and any other equations you already had entered at the time, IIRC).
德州仪器 (TI) 为其一些可编程计算器提供了在线指南书籍。以下是 TI-84 plus 的 PDF:http://education.ti.com /guidebooks/graphing/84p/TI84PlusGuidebook_Part2_EN.pdf。查看第 16 章有关编程的内容。
Texas Instruments has guide books online for some of their programmable calculators. Here's the PDF for the TI-84 plus: http://education.ti.com/guidebooks/graphing/84p/TI84PlusGuidebook_Part2_EN.pdf. Check out chapter 16 on programming.