找不到函数“ SymbolicInt”

发布于 2025-01-28 14:21:57 字数 1349 浏览 2 评论 0原文

我根本无法获得这些功能:symbolicintIntegral。不知道为什么。我只是重新安装了所有的东西。我以为也许是因为图书馆的诉讼,但我本身尝试了每个图书馆。没有工作。 例如,根据 symbolicInt文档

//dtkaplan.github.io/rforcalculus/integrals-and-integration.html“ rel =“ nofollow noreferrer”>积分的文档 当前R版本: R 4.2 下载R42工具。

代码:

library('mosaic') 
library('mosaicCore')
library('mosaicCalc')

f <- function(x){a * x^2 ~ x}

F = antiD(a * x^2 ~ x, a = 1)
F

symbolicInt(f )

f = integral( 3*x**2 ~ x)
f(from=1,to=4)

结果:

Error in symbolicInt(f) : could not find function "symbolicInt"

Error in integral(f ~ x) : could not find function "integral"

编辑:我可以使用Mosaiccalc ::: SymbolicInt使用SymbolicInt;但是我无法处理此功能:

(x/sigma ** 2)*exp(( - x ** 2)/2*sigma ** 2)

它给出以下错误:

错误.intarith(表格,...):

错误:符号算法放弃

6。停止(“错误:符号算法放弃”)

5。.intarith(form,...)

4。symbolicantid(lform,...)

3。.intarith(form,...)

2。symbolicantid(form,...)

1。SI((x/sigma^2) * exp(( - x^2)/2 * sigma^2) + 1〜 x)

I simply cannot get these functions: symbolicInt and integral. Not sure why. I just re-installed everthing. I thought maybe it was becuase of the libraries but I tried each library, by itself; did not work.
For example, according to documentation of
Document of symbolicInt

Document of integral
Current R Versions:
R 4.2
R42-tools are downloaded.

Code:

library('mosaic') 
library('mosaicCore')
library('mosaicCalc')

f <- function(x){a * x^2 ~ x}

F = antiD(a * x^2 ~ x, a = 1)
F

symbolicInt(f )

f = integral( 3*x**2 ~ x)
f(from=1,to=4)

Result:

Error in symbolicInt(f) : could not find function "symbolicInt"

Error in integral(f ~ x) : could not find function "integral"

Edit: I am able to use symbolicInt by mosaicCalc:::symbolicInt ; but I cannot process this function:

(x/sigma**2)*exp((-x**2)/2*sigma**2 )

It gives following error:

Error in .intArith(form, ...) :

Error: symbolic algorithm gave up

6. stop("Error: symbolic algorithm gave up")

5. .intArith(form, ...)

4. symbolicAntiD(lform, ...)

3. .intArith(form, ...)

2. symbolicAntiD(form, ...)

1. sI((x/sigma^2) * exp((-x^2)/2 * sigma^2) + 1 ~ x)

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文