Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 07 12:54
    sgjanssens starred symengine/symengine
  • Mar 07 12:07
    neok-m4700 starred symengine/symengine
  • Mar 07 06:53
    dsaw commented #1489
  • Mar 06 18:50
    HaoZeke synchronize #1733
  • Mar 06 14:32
    HaoZeke synchronize #1733
  • Mar 06 14:27
    HaoZeke closed #1731
  • Mar 06 14:26
    HaoZeke synchronize #1733
  • Mar 06 14:00
    HaoZeke synchronize #1733
  • Mar 06 13:41
    HaoZeke synchronize #1733
  • Mar 06 13:33
    HaoZeke synchronize #1733
  • Mar 06 13:19
    HaoZeke review_requested #1733
  • Mar 06 13:19
    HaoZeke opened #1733
  • Mar 06 13:19
    HaoZeke review_requested #1733
  • Mar 05 22:44
    danshapero commented #1732
  • Mar 05 17:58

    certik on master

    tut: Initialize from symengine.… tests: Run tutorials with conda… notebooks: Kill and fix links … and 1 more (compare)

  • Mar 05 17:58
    certik closed #1729
  • Mar 05 17:58

    github-actions[bot] on gh-pages

    deploy: 25c534d828bf1bd3a4dc49d… (compare)

  • Mar 05 17:56

    github-actions[bot] on gh-pages

    deploy: cb5823569d395ccb1366b69… (compare)

  • Mar 05 17:55
    certik closed #1728
  • Mar 05 17:55

    certik on master

    add: Complete API documentation… basic: Start updating as per st… add: Complete API as per style … and 2 more (compare)

sparkkk3l
@sparkkk3l
can anyone guide me on open source,it will really helpfull to me.
Arpan Chattopadhyay
@Arpan612
Hello, everyone. My name is Arpan. I have been active in the main SymPy room and Github page. Among the proposed projects, I am interested in SymEngine- SymPy integration, could someone please tell me what all is expected in the proposal?
@isuruf Respected Sir, could you please help me out?
Isuru Fernando
@isuruf
@Arpan612, the linked issues give some details
Here's an example PR that was closed that can be resurrected. sympy/sympy#13214
There's also symengine-sage integration project https://wiki.sagemath.org/GSoC/2020#Fast_evaluation_of_symbolic_expressions
Arpan Chattopadhyay
@Arpan612
Thank you sir, will definitely look into it.
Sir, could you please tell me who are the potential mentors for this project along with you?
Arpan Chattopadhyay
@Arpan612
@isuruf Sir, after Shikhar's work in GSoC 17, did anyone else in latter GSoC years work on symengine?
Also, I found the symengine-sage project interesting. Is this part of immediate attention to the symengine project? Actually, I am looking to work on a part of symengine project which is of immediate attention to this GSoC.
Anubhav Gupta
@sudoWin
@isuruf Sir, I have been contributing to Sympy for over 2 months and I have gone through the codebase of Symengine. I have even opened a PR in symengine similar to an issue in Sympy, can you please review it.
Arpan Chattopadhyay
@Arpan612
Hello All, i just posted my application on the github wiki for some reviews and comments, could you please look at it? Would very much appreciate it. Thanks!
Arpan Chattopadhyay
@Arpan612
@aktech @isuruf Could you please suggest me any python wrappers which can be worked on for SymEngine?
Arpan Chattopadhyay
@Arpan612
@Sumith1896 Sir, please help me with the question above. Also, I request everyone to give your suggestions on my application above.
harrylyx
@harrylyx
how to mod of two polynomials in SymEngine?Like this
from sympy.abc import x
from sympy import ZZ, Poly

a_list = [1,2,3,4,5]
b_list = [3,4,5,6,7]

a = Poly(a_list, x).set_domain(ZZ)
b = Poly(b_list, x).set_domain(ZZ)
print(a%b)
Kuenzang
@Kayzee805
Hello, I'm new to cpp and symengine. what does "sub(mul(A.m[i col + i], b.m[j bcol + k]),
mul(A.m[j col + i], b.m[i bcol + k]));" do? especially the sub part
Kuenzang
@Kayzee805
is it just subtract?
Bjorn
@bjodah
@Kayzee805 yes
nilot-pal
@nilot-pal
Guys, as of now, are there modules for multibody dynamics in symengine that I can use in python IDE?
Naveen Sai
@naveensaigit

Hi,
I'm trying to build symengine and I am running into some errors when I set the -DCMAKE_BUILD_TYPE=Debug and -DWITH_BFD=yes.

/home/naveen/dev/symengine/symengine/utilities/teuchos/Teuchos_stacktrace.cpp: In function ‘void {anonymous}::process_section(bfd*, asection*, void*)’:
/home/naveen/dev/symengine/symengine/utilities/teuchos/Teuchos_stacktrace.cpp:193:8: error: ‘bfd_get_section_flags’ was not declared in this scope; did you mean ‘bfd_set_section_flags’?
  193 |   if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0) {
      |        ^~~~~~~~~~~~~~~~~~~~~
      |        bfd_set_section_flags
/home/naveen/dev/symengine/symengine/utilities/teuchos/Teuchos_stacktrace.cpp:197:25: error: ‘bfd_get_section_vma’ was not declared in this scope; did you mean ‘bfd_set_section_vma’?
  197 |   bfd_vma section_vma = bfd_get_section_vma(abfd, section);
      |                         ^~~~~~~~~~~~~~~~~~~
      |                         bfd_set_section_vma
/home/naveen/dev/symengine/symengine/utilities/teuchos/Teuchos_stacktrace.cpp:203:49: error: cannot convert ‘bfd*’ to ‘const asection*’ {aka ‘const bfd_section*’}
  203 |   bfd_size_type section_size = bfd_section_size(abfd, section);
      |                                                 ^~~~
      |                                                 |
      |                                                 bfd*
In file included from /home/naveen/dev/symengine/symengine/utilities/teuchos/Teuchos_stacktrace.cpp:73:
/usr/include/bfd.h:1206:35: note:   initializing argument 1 of ‘bfd_size_type bfd_section_size(const asection*)’
 1206 | bfd_section_size (const asection *sec)
      |                   ~~~~~~~~~~~~~~~~^~~
make[2]: *** [symengine/utilities/teuchos/CMakeFiles/teuchos.dir/build.make:128: symengine/utilities/teuchos/CMakeFiles/teuchos.dir/Teuchos_stacktrace.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:784: symengine/utilities/teuchos/CMakeFiles/teuchos.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

I did search a little and found out that binutils-dev>2.34 has a change in its API. Can anyone help me out in fixing this?

Ondřej Čertík
@certik
Hi @naveensaigit, we'll have to figure out how to fix it. In the mean time, can you compile with WITH_BFD=no?
Can you open up an issue for this at github please?
Naveen Sai
@naveensaigit
Yes, compiling without debug works fine. I'll open an issue on Github
Naveen Sai
@naveensaigit

I compiled without these options and the build was successful. Even ctest works. However, I have a question. Can I actually use the library directly in C++? I tried to compile this piece of code, but I get an error again.

#include <symengine/basic.h>
#include <symengine/symbol.h>

using SymEngine::Basic;
using SymEngine::Symbol;
using SymEngine::RCP;
using SymEngine::symbol;

int main()
{
    RCP<const Basic> x = symbol("x");
}

This is the error I get.

(base) naveen@naveen-Legion-Y545:~/dev/projects$ g++ symengine.cpp
/usr/bin/ld: /tmp/ccSCjgXA.o: in function `SymEngine::RCP<SymEngine::Symbol const> SymEngine::make_rcp<SymEngine::Symbol const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
symengine.cpp:(.text._ZN9SymEngine8make_rcpIKNS_6SymbolEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEENS_3RCPIT_EEDpOT0_[_ZN9SymEngine8make_rcpIKNS_6SymbolEJRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEENS_3RCPIT_EEDpOT0_]+0x48): undefined reference to `SymEngine::Symbol::Symbol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
Bjorn
@bjodah
@naveensaigit you can write a CMakeLists.txt and have cmake generate your compile commands, see e.g. https://gist.github.com/bjodah/85fbf793da29a405e71ee382746db94d
or you can call cmake on the command-line and have it provide compile & link flags (CXXFLAGS & LDFLAGS typically), see e.g. https://github.com/symengine/symengine/wiki/Using-SymEngine-from-a-Cpp-project
Naveen Sai
@naveensaigit
@bjodah Thank you for the response. Using compile and link flags compiles the code. I have another question. Is there a way to set the compile links by default? I am right now defining the flags each time I open a new shell
Naveen Sai
@naveensaigit
@bjodah I went through your gist and using a build.sh is a good way to do it. Thank you, I understood it now :)
Bjorn
@bjodah
@naveensaigit glad I could help!
Daniel Shapero
@danshapero
Hi all! I was curious about how expressions are represented internally in symengine so I started browsing the source code. It looks like every expression is always canonicalized before it's stored in, say an Add or a Mul object. So for example (a + b) * (c + d) wouldn't be represented that way internally, it would first be expanded to a * c + ...etc. Is that impression correct or is there something I've missed?
Sorry if this is documented somewhere obvious, I didn't see anything on the sympy website
Isuru Fernando
@isuruf
@danshapero, no it's not expanded
x + x is canonicalized to 2*x
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