Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有 TI System Menu 模块中 eval_function 如何工作的示例?
我尝试过
s=eval_function("sin",0.5) print(s)
但此代码返回错误。
也一样
s=eval_function("sin(0.5)",True) print(s)
先感谢您,
埃迪
您需要在 Notes 或 Calculator 页面上使用用户定义的函数来为 OS 函数分配名称,如下所示:
ef(x) := sin(x)或者Define ef(x) = sin(x)
ef(x) := sin(x)
Define ef(x) = sin(x)
编辑器页面上的 Python 脚本示例:
from ti_system import * s = eval_function("ef", 0.5) print(s)