+ 1
Need help debugging this code !
I don't get where actually the error is 'cause the error seems to be internal in the imported gem named "symbolic" . Help me figure out what's the reason behind the bug and help me debug it . Here's the code : https://code.sololearn.com/cGiDo62WPixv/?ref=app
5 Answers
+ 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. :)
+ 2
Tibor Santa 🎅 yeah sorry i got fooled by chatgpt 🤭😅
+ 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 😅
+ 1
Tibor Santa yeah exactly sir but i m not that expert to implement it , so can u telle steps how to implement it there at GitHub to their repo 🤭🤭😅
+ 1
Tibor Santa well actually it's better than atleast Google 's BARD for programming right now as free 😁