These are chat archives for symengine/symengine

2nd
Jul 2016
Ralf Stephan
@rwst
Jul 02 2016 07:54
Say I get MyFunc(0) from MyFunc(x).subs(x,zero). How to evaluate (not evalf but symbolically eg simplify)?
(without creating a new MyFunc)
Ralf Stephan
@rwst
Jul 02 2016 08:00
or should subs() do the simplification?
Arihant Parsoya
@parsoyaarihant
Jul 02 2016 12:12
Hi, I am fixing symengine/symengine#921 and am having some doubt in understanding the algorithm implemented for sec() function. Is there any reference I can look up to to get better understanding of the current algorithm implemented?
Isuru Fernando
@isuruf
Jul 02 2016 12:15
@rwst, subs should do the simplification
Srajan Garg
@srajangarg
Jul 02 2016 12:32
@parsoyaarihant look at the sec function in functions.cpp. See how the code progresses (manually) when the arguement 0 is passed. You can use gdb if you like. Follow it properly, and you'll be able to figure out what's wrong. I think you'll have to take a look at the eval function here, and see what it is returning, and what it should be returning.