问题标签 [ti-nspire]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
237 浏览

lua - 使用 TI-Nspire 数学库中的 eval 函数

我试图了解如何通过 Lua 使用 TI-Nspire CAS 系统。我正在尝试模拟 solve(x+5/3,x) TI-Nspire CX CAS gui 中的功能。

我查看了此处找到的 API 文档:https ://education.ti.com/download/en/ed-tech/59108CCE54484B76AF68879C217D47B2/7EFB09CED41C4190AFF8F60283B6727A/TI-NspireLuaScriptingAPIReferenceGuide.pdf

我相信我正在寻找的是eval第 51 页上的功能,尽管我无法在网上找到太多可供采样的内容。提供的例子不是具体的例子。

我试过了

我不断收到错误“在初始化期间无法执行”。

1)如何修复错误

2)我可以有一些使用该功能的具体例子吗

0 投票
2 回答
357 浏览

ti-nspire - TI-Nspire 从求解中保存 2 个不同的变量

所以我定义了两个函数 f(x)=x^2-x-6g(x)=x+2 我需要找到f(x)=g(x) 当我

我得到两个值; 我的问题是,我可以从解决方案中单独定义这两个值吗,所以我得到 x=-2并且我 尝试将文本作为字符串使用和 另一个帖子的版本。但这似乎对我不起作用。谢谢!x=4x1=-2x2=4 ?string(solveres:=solve({x+2*y=5,x-y=2},{x,y})

0 投票
1 回答
205 浏览

ti-nspire - 使用 TI-NSpire CX CAS 进行部分推导

我正在尝试使用 TI-NSPIRE CX CAS 执行部分推导。但是,变量在结果中始终输出为 0。

nspire 示例:d/dx(yx) = 0

但我希望这里的结果是“y”。

Wolfram 给出了预期的结果作为例子。如何在计算器中输入 y 被视为变量?

0 投票
2 回答
421 浏览

pandas - 来自 TI-nspire 的 python 计算中不同的 Q1 和 Q3 值

我使用 Numpy/Pandas 和 TI-nspire 计算了上四分位数(Q3 或 75%-tile)和下四分位数(Q1 或 25%-tile)。但我得到不同的价值观。为什么会这样?

从 (5+8)/2=6.5 和 (18+21)/2=19.5,Numpy/Pandas Q1 和 Q3 是错误的。为什么 Numpy/Pandas 返回错误的数字?

Numpy 返回 18.0 和 8.0。Pandas 返回 18.0 和 8.0。但 TI-nspire 返回 19.5 和 6.5。

在此处输入图像描述

在此处输入图像描述

0 投票
1 回答
211 浏览

ti-basic - TI Inspire CX 变量未在 if 语句中定义

我正在尝试在我的 TI-Nspire CX 中基于此 c++ 版本编写模块化逆函数。

到目前为止,我有以下代码:

当我运行程序时

invmod(26,3)

我收到此错误:

错误:未定义变量

当我“查看”该错误时,它显示该行有问题(我认为),因为光标向右移动到该行。

在此处输入图像描述

0 投票
1 回答
392 浏览

ti-nspire - 无缘无故的参数错误太多

我遇到了这个奇怪的问题,我似乎无法解决。在这样一个简单的程序中:

调用函数时:

我得到错误:

像这样称呼它:

结果是:

我有我过去用与上面相同的代码编写的程序,它们按预期工作,但现在它对我不起作用。

如果你们中的某个人能帮我解决这个问题,那就太好了。

0 投票
1 回答
99 浏览

lua - TI Nspire lua 崩溃并抛出“中断”错误

我正在编写一个脚本来制作可以在我的 TI Nspire CX CAS 2 计算器上打开和关闭的小窗口。添加新窗口效果很好,但尝试删除它们会导致我的软件在应该删除窗口的功能完成时崩溃。我也在我的计算器上试过它,它仍然卡住,但我能够关闭脚本然后重新打开它。当我重新打开它时,第 465 行出现“中断”错误,我的计算器的图片出现错误

编辑:我刚刚发现,如果您在学生软件中运行脚本并且它陷入循环,按 F12 会中断循环(就像实际计算器上的主页按钮一样)。

0 投票
1 回答
100 浏览

ti-basic - 如何对函数中的列表/矩阵进行排序?

当我尝试在函数中使用SortAandSortD时:

我得到错误Invalid in a function or current expression。我认为这是因为SortA修改变量,这在函数中是不允许的,只能在程序中。有没有办法在函数中以这种方式对列表或矩阵进行排序?

0 投票
1 回答
172 浏览

texas-instruments - TI-Basic: Nspire Basic Function will show Too many arguments

I am currently struggling with TI-Basic. I am using a TI-Nspire CX II-T CAS and I want to write my own library and add some functions for statistics.

But at the moment I can not get to work any funcitons at all. Even the most basic code will not work. What I did was:

  1. Add a new Programm named "cube" type "Function" and Library Access "LibPub"
  2. I have written the following Code
  1. Saved it on my PC
  2. Copied to Hanheld's MyLib
  3. Refreshed the Handheld's library Docs --> 6
  4. Open the Library and Call the Function that will look like cube\cube(5)

Then I get the Error Message: "Error: Too many arguments"

Does someone know where I made the mistake?

My Goal before was to do a function that will take function(n,k) and return the value of n!/(n-k)!. I mean both should be pretty straight forward. I hope someone could help me wasted already more then 6h on this...

0 投票
2 回答
1225 浏览

python - TI NSpire CX II python 可以调用内置函数吗?

德州仪器最近在其 TI Nspire CX II 模型中添加了直接 python 编程。

计算器的内置函数已经包含一系列非常强大的数学 API。例如,您可以在 python 中调用isPrime()内置函数吗?

我知道,这个函数可以很容易地重新创建为 NSpire 中的 python 模块。但除此之外还有更多内置功能。Nspire的python有没有办法调用这些内置函数?