Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 25 15:58
    rikardn opened #1932
  • Sep 22 12:47
    AlexanderLasar commented #1931
  • Sep 22 11:06
    rikardn commented #1931
  • Sep 22 08:56
    AlexanderLasar opened #1931
  • Sep 18 22:45

    isuruf on master

    check before casting to Boolean Add sympy names add test and 5 more (compare)

  • Sep 18 22:45
    isuruf closed #1930
  • Sep 18 22:45
    isuruf commented #1930
  • Sep 17 04:24
    isuruf review_requested #1930
  • Sep 16 21:44
    isuruf synchronize #1930
  • Sep 16 21:22
    isuruf synchronize #1930
  • Sep 16 16:55
    isuruf synchronize #1930
  • Sep 16 16:47
    isuruf synchronize #1930
  • Sep 16 16:37
    isuruf opened #1930
  • Sep 16 09:14
    ashryramadhan10 starred symengine/symengine
  • Sep 15 16:33
    wills31415 starred symengine/symengine
  • Sep 14 12:02
    TJStienstra commented #1929
  • Sep 13 23:40
    Aurelius-Nero starred symengine/symengine
  • Sep 11 06:12
    kirioh starred symengine/symengine
  • Sep 09 08:05
    TJStienstra commented #1929
  • Sep 08 20:10
    TJStienstra commented #1929
Devesh Sawant
@dsaw
Hi, I am trying to build symengine on windows on my MSYS shell. I ran the cmake command successfully with -DGMP_LIBRARY="c:/.../lib -DGMP_INCLUDE_DIR="c:/.../lib" -DCMAKE_BUILD_TYPE="Debug" where it was able to find the directory of the manually built gmp library.
On running make it fails, throwing cannot find C:/gmp/lib: Permission denied, which is weird since it exists & is accessible .
Any ideas on what it could be?
Isuru Fernando
@isuruf
@dsaw, use -DGMP_LIBRARY_DIR instead of -DGMP_LIBRARY
Sayandip Halder
@sayandip18
Hi! Is there any update to symengine/symengine#1719? I would love to take it up as my GSoC Project!
Brandjpf
@Brandjpf
Hi i'm totally new to c++ and Symengine and i just managed to use it with VS 2019. I'm struggling with printing anything else than symbols. For example i try to print: RCP<const Basic>x= integer(1);
with the command cout << *x << endl; it triggers a breakpoint in basic-inl.h in line 97
and throws the exception: Unhandled exception at 0x00007FFC1F796AFB (ntdll.dll) in Test-symengine.exe: 0xC0000005: Access violation reading location 0x0000000000000009.
Siddharth
@bollu
Hey! I enjoy mathematics and programming, and I wish to learn more computational algebra --- in particular, computational group theory and ring theory. Is there an interest for Symengine to have algorithms to compute with permutation groups? How about ring algorithms? (eg. grobner basis computation and the like)?
Joseph Donato
@jsdonato
Hello everyone, I am trying to build the example provided on symengine.org and I get the following error when running make after running cmake .
-- Could NOT find SymEngine (missing: SymEngine_DIR)
This is what my CMakeLists.txt contains
cmake_minimum_required(VERSION 3.15.5)
find_package(SymEngine 0.8.1 CONFIG PATHS ~/.conan/data/symengine/0.8.1)
set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE} "-std=c++0x")

include_directories(${SYMENGINE_INCLUDE_DIRS})
add_executable(example main_example.cpp)
target_link_libraries(example ${SYMENGINE_LIBRARIES})
Am I missing something in order for cmake to find symengine? I used conan to install symengine
zhangfq-chemistry
@zhangfq-chemistry
Hey! How to define a symbol/integer matrix? Just like this: DenseMatrix A = DenseMatrix(3, 3,
{integer(1), symbol("b"), symbol("c"),
symbol("d"), symbol("e"), symbol("f"),
symbol("g"), symbol("h"), symbol("i")});
Isuru Fernando
@isuruf
Does it not work?
zhangfq-chemistry
@zhangfq-chemistry
It does not work
Isuru Fernando
@isuruf
What's the error?
You can also do
vec_basic vec;
vec.push_back(integer(1));
vec.push_back(symbol("b"));
vec.push_back(symbol("c"));
DenseMatrix A = DenseMatrix(3, 3, vec);
zhangfq-chemistry
@zhangfq-chemistry
/home/zhangfq/work/HMO/symengine/test/main.cpp:28:72: error: no matching function for call to ‘SymEngine::DenseMatrix::DenseMatrix(int, int, <brace-enclosed initializer list>)’
28 | symbol("g"), symbol("h"), symbol("i")});
| ^
zhangfq-chemistry
@zhangfq-chemistry
@isuruf Thanks! How to determinant a symbol matrix?
Rafael de Conde
@Rafael-Conde
Hello everyone! can we ask for help setting up symengine here?
Isuru Fernando
@isuruf
@Rafael-Conde, sure.
Rafael de Conde
@Rafael-Conde

Ok, so I installed miniconda and installed the symengine successfully(all following the instructions from github and the install page). but when I try to run the command conda env create -f symedocs.ymlit returns what I think it's an error message, the following:

EnvironmentFileNotFound: 'C:\Users\me\miniconda3\symedocs.yml' file not found

I tried creating the file manually and searching for solutions online but wasn't successfull

I think my problem is with anaconda but as I said, I couldn't find a solution so far
I think you can see by the file path but I'm using windows, I think this might be relevant
Isuru Fernando
@isuruf
@Rafael-Conde, that file is at https://raw.githubusercontent.com/symengine/symengine.github.io/sources/symedocs.yml, but that is needed only if you want to build the docs
you can just do conda install python-symengine if you don't want to build the docs yourself
Or even pip install symengine
what language do you want use symengine from?
Rafael de Conde
@Rafael-Conde
I would like to use symengine in C++
Isuru Fernando
@isuruf
Ah okay, then conda install symengine is all you need
Rafael de Conde
@Rafael-Conde
hum... and then I statically link the symengine.lib to my project and leave the .dll file in the same directory of the final executable?
Isuru Fernando
@isuruf
yes
Rafael de Conde
@Rafael-Conde
Awesome! I thought there were extra steps haha
but one last question
Isuru Fernando
@isuruf
you also need mpir.dll, mpfr.dll, mpc.dll, pthreadsVC2.dll, flint-8.dll
1 reply
Rafael de Conde
@Rafael-Conde

but one last question

I saw the binder version that can run C++ code in a notebook and I was wondering if that's possible to be done locally. as far as I know C++ is compiled but somehow that was working like python in a notebook haha

is it possible to do that locally?

Isuru Fernando
@isuruf
Yes, it's possible
conda install xeus-cling notebook
and launch jupyter notebook
Rafael de Conde
@Rafael-Conde

and launch jupyter notebook

and I'll be able to creat a notebook that runs C++ just like a notebook that runs Python?

conda install xeus-cling notebook

Thank you very much! I've spent hours and hours trying to figure out how to do this haha You helped me a lot @isuruf !!!

Brandon Bocklund
@bocklund:matrix.org
[m]

@isuruf: does the SymEngine team have a rough target for when the next release?

We having some changes ready downstream in pycalphad and ESPEI that are ready to switch fully to SymEngine from SymPy (a big QoL improvement for us) that are waiting on a new release of SymEngine with the recent serialization support.

No rush if you have other plans or don’t have time! Thanks 😊!

Isuru Fernando
@isuruf
@bocklund:matrix.org, no plans yet.
Isuru Fernando
@isuruf
@bocklund:matrix.org, 0.9.0 should be available now
1 reply
Arjun31415
@Arjun31415
Hello, Can I ask advice regarding GSOC-22 here ?
Isuru Fernando
@isuruf
@Arjun31415, sure
Brandon Bocklund
@bocklund:matrix.org
[m]
Is Float(S.Zero) == S.Zero -> False expected behavior?
Isuru Fernando
@isuruf
yes