Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 19:55
    asmeurer commented #22006
  • 19:55
    asmeurer commented #22006
  • 19:54
    asmeurer commented #22006
  • 18:52
    asmeurer labeled #22105
  • 18:52
    asmeurer labeled #22105
  • 18:50
    asmeurer commented #22105
  • 18:49
    nanjekyejoannah edited #22007
  • 18:43
    nanjekyejoannah opened #22105
  • 18:35
    sympy-bot commented #22002
  • 18:35
    nanjekyejoannah synchronize #22002
  • 18:32
    nanjekyejoannah commented #22102
  • 18:30
    nanjekyejoannah edited #22007
  • 18:28
    behnood-eghbali starred sympy/sympy
  • 18:20
    asmeurer commented #22102
  • 18:11
    sympy-bot commented #22002
  • 18:10
    asmeurer reopened #22002
  • 18:10
    asmeurer closed #22002
  • 18:08
    asmeurer closed #22001
  • 18:07

    asmeurer on master

    Add explanation category Fix merge conflict Fix redirects and 4 more (compare)

  • 18:03
    wkaluza starred sympy/sympy
Thomas Aarholt
@thomasaarholt
That said, if you go to the github master, you can see that the red cross implies that the master branch is currently not passing tests
Aaron Stiff
@AaronStiff
image.png
Thomas Aarholt
@thomasaarholt
Are you getting something ala "SyntaxError: invalid escape sequence \e"?
None of those are failing :)
Aaron Stiff
@AaronStiff
They aren't?
Thomas Aarholt
@thomasaarholt
Unless you've done something to your colorscheme
Red = failures, yellow is just that it output a warning.
Aaron Stiff
@AaronStiff
I get this at the end: 844 passed, 61 skipped, 8 xfailed, 1 xpassed, 1 warning in 7.50s
Thomas Aarholt
@thomasaarholt
xfailed are "allowed/expected failures"
Aaron Stiff
@AaronStiff
Oh! That makes sense. Thanks.
Thomas Aarholt
@thomasaarholt
You're welcome!
Zachariah Etienne
@zachetienne
Sympy Travis is failing atm; sympy-dev appears to be pretty badly broken (AssertionError: {'sympy.polys.matrices'}). Any news on when it'll be fixed?
Sayandip Halder
@sayandip18
>>> sympify(0.0) == S.false
True
>>> S.false==sympify(0.0)
False
What's the reason for this behaviour? Shouldn't the latter be True too?
12 replies
Thomas Aarholt
@thomasaarholt
What does sympify(0.0) evaluate to?
I agree that it seems odd
(and what does S.false evaluate to?)
Sayandip Halder
@sayandip18
sympify(0.0) is sympy.core.numbers.Float whereas S.false is sympy.logic.boolalg.BooleanFalse
che2712
@che2712
Hello everyone, I'm Cheshta Babbar, a fourth year undergrad, studying at BITS Pilani. I would like to contribute to SymPy. This is my first time contributing to open source, currently going through "Introduction to contributing" in sympy wiki. Please guide me.
Suryam Arnav Kalra
@suryam35
Hi @che2712 , you can start with https://github.com/sympy/sympy/wiki/Introduction-to-contributing for starters, and then you can refer to the docs https://docs.sympy.org/latest/index.html. For the later part, refer to https://github.com/sympy/sympy/wiki/Development-workflow.
Ganesh C K M
@ckmganesh
Hey, there . If have a idea proposal or a feature proposal , Can I talk about it here
Ganesh C K M
@ckmganesh
@asmeurer This is just an idea I thought would be useful if implemented. Maclaurin's series is one of the most used series today but if we have to find it using existing methods, we have to manually find using derivative at every single point. But a separate module or inbuilt function would come really handy. The user will pass Maclaurins(function_name) and the function can return the coefficients as an array. This can save a lot of time if implemented . Any suggestion would be of great help. Hoping for a reply :)
Aaron Meurer
@asmeurer
That already exists, in the series submodule.
However, if you search the issue tracker, there are several issues that can be worked on relating to it.
Ganesh C K M
@ckmganesh
ohh okayy, Thankss
che2712
@che2712
Thanks @suryam35 , I'll start right away
Ganesh C K M
@ckmganesh
@asmeurer I went through all the files in the series submodule. I can't seem to find Maclaurin's function under the module. Can you please tell me the name of the file?
Aaron Meurer
@asmeurer
The main function is the series method. The actual code for it is on the various functions, mostly in sympy/functions. There is also sympy/series/formal.py for formal power series, which is for getting the general formula of a series rather than just the first few terms.
Ganesh C K M
@ckmganesh
@asmeurer I checked in all the scripts you suggested. I can't seem to find it. It's not exactly the Taylor series but it is based on that. I also checked the documentation for the same but I couldn't find anything. Could you please help me with it
Sayandip Halder
@sayandip18
Can someone confirm whether solve([abs(x) - 2, arg(x) - pi], x) is returning [(-2,)] on the master? It's showing NotImplementedError: solving Abs(x) when the argument is not real or imaginary. for me although it was returning the correct answer just a while back.
Aaron Meurer
@asmeurer
You can use git checkout to try older commits to find one that works, and use git bisect to find a commit that made the change.
Aaron Meurer
@asmeurer
Although based on the error message, you may have had x set as real=True before. It works if you do that.
Sidharth Mundhra
@0sidharth

the correct answer just a while back

I checked a few commits in the history till October, and it is returning NotImplementedError for me in all of them. I think, as mentioned above, x probably was set to real=True when you tried.

bdonnahue
@bdonnahue
hey folks. I am trying to solve an equation with nested expressions for example: y - f(x +2). I dont understand how to write f so that it can handle the expression x + 2
Sayandip Halder
@sayandip18
@bdonnahue
>>> f=Function('f')
>>> f(x)
f(x)
>>> f(x+2)
f(x + 2)
Christoph Heindl
@cheind
hey everyone! anyone in here that is working with sympy.units?
HighMans
@HighMans
Quick question, how do you either multiply a matrix with the eigenspace from the output of eigenvects or how do you convert a list of matrices in to one matrix?
almighty123789
@almighty123789
Hello Everyone, I am new to python dev and wanted to know how to use debug sympy code. I found on the docs to make SYMPY_DEBUG=True and then use debug_decorator(func). But I just get<function debug_decorator.<locals>.decorated at 0x0000017824EC1430>
Shivam Sundram
@RATED-R-SUNDRAM
hi everyone I am shivam sudram , 2nd year undergraduate at IIT Mandi , i would like to contribute to this org. Any guidance related to where to begin my cotributions and work flow would be very helpful
Anurag-Chevendra
@Anurag-Chevendra
Heyy, I'm Anurag Chevendra, a sophomore at VJTI Mumbai. I really liked this org and would love to start contributing. Can anyone help me out so as from where to start? Thank you.
ayushi-get
@ayushi-get
Hey I am Ayushi Rawat , 2nd year undergraduate and would really love to start my open source journey with this community.
Thank you
Suryam Arnav Kalra
@suryam35
Hi @RATED-R-SUNDRAM @Anurag-Chevendra @ayushi-get , you can start with https://github.com/sympy/sympy/wiki/Introduction-to-contributing for starters, and then you can refer to the docs https://docs.sympy.org/latest/index.html. For the later part, refer to https://github.com/sympy/sympy/wiki/Development-workflow.
Aaron Stiff
@AaronStiff
What does expr.p do?
Naveen Sai
@naveensaigit
@AaronStiff It gives the numerator, but it is only available for Rational as far as I know.
>>> a=Rational(1, 3)
>>> a.p
1
>>> a.q
3
1 reply
Vaibhav Bhat
@VBhat97
Hey! Are there any steps mentioned anywhere about setting up sympy live locally?
Sidharth Mundhra
@0sidharth
Hey, I believe sympy/sympy#12791 can be closed
zabuja
@zabuja
Hey guys, my name is Atanu Ghosh. I am currently a fresher at TMSL Kolkata. I had never contributed before but would surely like to contribute to this organisation and be part of this great open source community. Please guide me. ThankYou.
kirk86
@kirk86

Would it make sense in the following scenario:

X = sympy.symbols('x', real=True, positive=True)
stats.E(X)
x

stats.E(*) to output Integral of X dP for some probability space Ω,Σ,P instead of just x?

10 replies
Anurag-Chevendra
@Anurag-Chevendra
@suryam35 heyy, thank you! on it.
JP
@JP1128
I'm having problem with processing latex string into latex image using the preview function cause I can't get to install the latex program in Heroku. Does anyone know how to fix this problem?
Constantin Mateescu
@costica1234_twitter

Greetings! A while ago I played around with the LaTeX grammar (https://github.com/sympy/sympy/blob/master/sympy/parsing/latex/LaTeX.g4) and added support for complex conjugates to my dev version of sympy. The modification was really simple and only involved adding \overline to the grammar file, regenerating the classes via antlr along with some other small changes to _parse_latex_antlr.py.

Having the ability to compute arbitrary expressions with complex conjugates is really great for the application I'm building. For example, the return value of parse_expr(str(parse_latex('\overline{3 + 4I}'))) would be 3 - 4*I, as expected.

That being said, I was thinking about submitting a PR with this change, but wanted to check with the maintainers of sympy whether this feature makes sense or not. @asmeurer: What do you think?