These are chat archives for symengine/symengine

4th
Feb 2016
Charles Chen
@chenchfort
Feb 04 2016 06:00
Hi everybody. I’m trying to reinstall symengine. Should I uninstall it first? And how do I go about doing that?
Ralf Stephan
@rwst
Feb 04 2016 06:33
After make install the symengine library is still not integrated with the language you are using it, I assume Python? So you need to reinstall e.g. symengine.py as well.
Charles Chen
@chenchfort
Feb 04 2016 06:37
The language is C++
Can I just reinstall it without removing the exisitng symengine files?
Ralf Stephan
@rwst
Feb 04 2016 06:42
you should see which library is linked to your code with ldd. OTOH you see where symengine is installed when doing the make install. Probably it will just overwrite the old, unless you gave different paths to cmake...
Charles Chen
@chenchfort
Feb 04 2016 08:10
Right now I’m trying to use Symengine in another non-cmake cpp project. When I compile it according to the instruction on wiki it shows clang: error: no such file or directory: ' /usr/local/lib/libsymengine.a /usr/local/lib/libteuchos.a /usr/local/lib/libgmpxx.dylib /usr/local/lib/libgmp.dylib ‘ I know this is a link flag problem and I can manually point them to the correct directories. But any idea on why this is occurring?
Ralf Stephan
@rwst
Feb 04 2016 08:13
clang takes the whole string as one filename, i.e. you somewhere have too much quotes
Charles Chen
@chenchfort
Feb 04 2016 08:18

This is what I did (from wiki) 'compile_flags=cmake --find-package -DNAME=SymEngine -DCOMPILER_ID=GNU -DLANGUAGE=CXX -DMODE=COMPILE
link_flags=cmake --find-package -DNAME=SymEngine -DCOMPILER_ID=GNU -DLANGUAGE=CXX -DMODE=LINK

g++ $compile_flags main.cpp $link_flags'

Ralf Stephan
@rwst
Feb 04 2016 08:23
you have a quote after g++ (this forum swallows them)?
Charles Chen
@chenchfort
Feb 04 2016 08:24
Oh sorry I was going to type a grave accent, so should be like this g++ $compile_flags main.cpp $link_flags
Charles Chen
@chenchfort
Feb 04 2016 08:27
Do you mean the entire script? Or just those couple lines
Isuru Fernando
@isuruf
Feb 04 2016 08:52
Couple of
lines
Charles Chen
@chenchfort
Feb 04 2016 08:54
The ones regarding compile_flags and link_flags right? Yes I ran it and g++ still produces the same clang error output.
Ralf Stephan
@rwst
Feb 04 2016 09:01
@isuruf Times in sympy/sympy#10513 are now (A:0.33s, B:0.09s, C:4.7s) The latter is conversion of big rationals.
That's without evaluation=False.
Isuru Fernando
@isuruf
Feb 04 2016 09:12
If gmpy is installed, we can reduce that by using the types directly
Ralf Stephan
@rwst
Feb 04 2016 09:12
Fine!
Isuru Fernando
@isuruf
Feb 04 2016 10:07
symengine/symengine.py#48
Akash Trehan
@CodeMaxx
Feb 04 2016 10:49
I'm trying to fix #777 . In order to implement these function I was looking at how other such trig functions are being implemented. But I can't completely understand what the functions associated with them are being used for since there is no documentation. Need some description for what the functions do for e.g for cosh maybe
Isuru Fernando
@isuruf
Feb 04 2016 14:45
@CodeMaxx, can you be a little more specific?