卡西欧 fx-9860G 帮助

发布于 2024-09-09 01:02:25 字数 264 浏览 0 评论 0原文

我需要帮助为我的 casio fx-9860g 编写自定义函数,

我之前在 Texas Calc 中已经这样做过,但我不确定是否有一种方法可以使用 casio 计算器...比如说,例如,我想编写一个简单的函数,例如所以:

public int triple(int x)
{
return 3x;
}

我知道这是一个非常简单的函数,但我想要一种存储一些公式的方法,这样我就可以快速计算东西,而不必重新重写公式......提前致谢。

I need help writing custom functions for my casio fx-9860g

I have done this before in my Texas Calc but Im not sure there is a way to it with casio calculators... say, for instance, I want to write a simple function like so:

public int triple(int x)
{
return 3x;
}

I understand this is quite a simple function but I want a way to store some formulas so I can quickly calculate stuff without having to rewrite the formulas all over again.. thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

提赋 2024-09-16 01:02:25

卡西欧basic没有你想要的“功能”。对于简单的函数,您可以使用复制/粘贴,而不是使用函数进行抽象。 (这种冗余比您想象的要好)

对于较大的子例程,您可以将它们编写为程序文件并调用它们。请参阅手册中的progreturn命令。

File: "MySub"
----------------------
Y <- X * 3
return

File "MyProgram"
----------------------
X <- 5
Prog "MySub"

Casio basic doesn't have 'functions' like you want. For simple functions you use copy/paste, rather than abstract using functions. (This redundancy is better than you'd think)

For larger sub-routines you can write those as a program file and call them. See the prog and return commands in the manual.

File: "MySub"
----------------------
Y <- X * 3
return

File "MyProgram"
----------------------
X <- 5
Prog "MySub"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文