+ 2
I'm not sure where you took that syntax from.
Why not check the library documentation first?
https://www.rubydoc.info/gems/symbolic/0.3.8
There are some examples how you can use it. Like:
x = var :name => 'x'
expr = x**2 + 3 * x + 2
puts expr
The "integrals" is listed under TODO section, it means it's not implemented yet. Try to stick with features that actually exist. :)
+ 1
<Unforgettable/> I had no idea that ChatGPT is now being trained on code that is yet to be written by the library author in the future... Skynet is truly coming to get us đ€Ł
Maybe you should ask it to make a pull request and implement the integral function đ