找不到函数“ SymbolicInt”
我根本无法获得这些功能:symbolicint
和Integral
。不知道为什么。我只是重新安装了所有的东西。我以为也许是因为图书馆的诉讼,但我本身尝试了每个图书馆。没有工作。 例如,根据 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论