'could not find function "symbolicInt"

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)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source