Need help debugging this code ! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

1st Jun 2023, 12:56 PM
Manuphile
Manuphile - avatar
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. :)
1st Jun 2023, 2:07 PM
Tibor Santa
Tibor Santa - avatar
+ 2
Tibor Santa 🎅 yeah sorry i got fooled by chatgpt 🤭😅
1st Jun 2023, 3:36 PM
Manuphile
Manuphile - avatar
+ 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 😅
1st Jun 2023, 3:44 PM
Tibor Santa
Tibor Santa - avatar
+ 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 🤭🤭😅
1st Jun 2023, 3:49 PM
Manuphile
Manuphile - avatar
+ 1
Tibor Santa well actually it's better than atleast Google 's BARD for programming right now as free 😁
1st Jun 2023, 3:50 PM
Manuphile
Manuphile - avatar