Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 07:43
    Abdullahjavednesar review_requested #17620
  • 06:17
    codecov[bot] commented #17584
  • 05:51
    sympy-bot commented #17584
  • 05:51
    sylee957 edited #17584
  • 05:49
    asmeurer commented #17584
  • 05:45
    asmeurer closed #17605
  • 05:45

    asmeurer on master

    Add the math_dollar Sphinx exte… Add support for math in docstri… Enable the math_dollar Sphinx e… and 11 more (compare)

  • 05:45
    asmeurer closed #17623
  • 05:21
  • 04:52
    codecov[bot] commented #17584
  • 04:52
    sylee957 synchronize #17584
  • 03:25
    sylee957 synchronize #17584
  • 02:06
    cbm755 commented #17605
  • 00:41
    sylee957 commented #17584
  • 00:38
    oscarbenjamin commented #17584
  • 00:32
    sympy-bot updated the wiki
  • 00:32
    sympy-bot commented #17589
  • 00:32
    sympy-bot commented #17589
  • 00:32

    oscarbenjamin on master

    Use conjugate for dot Add test for conjugate dot Merge pull request #17589 from … (compare)

Vishesh Mangla
@XtremeGood
also one more thing
since the computation is done on 0, h, ... N*h where N is int but h is symbol
also N*h = 1 for my domain
Isuru Fernando
@isuruf
I don't think it's sympy's job to validate user input.
Vishesh Mangla
@XtremeGood
now if I subs 1 it replaces x by 1
Gagandeep Singh
@czgdp1807
Oh I see, then it's ok.
Vishesh Mangla
@XtremeGood
ok can I get some help in cython here?
Vishesh Mangla
@XtremeGood
image.png
hey there I think the code should be repaired since pos2 is not 0
I have to first use expand then coeff to get coeff
I wasted hours in debugging my code
Gagandeep Singh
@czgdp1807
Well please create an issue with all the information. In addition care to share the code rather than the image.
Vishesh Mangla
@XtremeGood
well I have changed the code now
Thomas Rodgers
@trodge
can this : http://mathb.in/36003 be done in sympy?
Gagandeep Singh
@czgdp1807
I don't think optimization techniques are there in SymPy. Are they, @/all?
stoopkid
@sto0pkid
is there a way to do solveset with equations involving elements of a productset?
Vishesh Mangla
@XtremeGood
image.png
is there any way to write this as M . alpha?
any decomposition?
so that M has all constants and alpha as functions?
if I can decompose it as a sum two matrix each with single alpha (i) it will work too
Megan Ly
@meganly
Is there a way to make SymPy raise an exception when evaluating 1/(1/0) instead of returning 0?
S.Y. Lee
@sylee957

@XtremeGood
If you mean by tri-diagonal matrix decomposition, I don't think that there are any specific algorithm implemented, but algorithms for generic dense matrix should work.
And it won't be that much difficult to implement a tridiagonal LU decomposition in SymPy, but I have not yet made PR about that yet.

But I'm not sure if I had got your words right. What do you mean by M . alpha or sum two matrix specifically?

Aaron Meurer
@asmeurer
@meganly I don't believe there is
it really depends on what you are doing, but you could use with evaluate(False) and check for 1/0 in the resulting unevaluated expression
Megan Ly
@meganly
Thanks @asmeurer . I'm trying to symbolically evaluate simple expressions like a/(b/c) where a user enters arbitrary integers for a, b, and c
Thomas Rodgers
@trodge
does anyone know of a sympy function which can turn something like this: x 2 + x y + 2 x + y2 + 2 y into something like this: x (x + y + 2) + y * (y + 2) ?
Thomas Rodgers
@trodge
gitter mangled my formula, I meant x ^ 2 + x y + 2 x + y 2 + y ^ 2 turns into x (x + y + 2) + y * (y + 2)
sympy.factor seems to only be able to factor expressions where every part of the sum is divisible
Aaron Meurer
@asmeurer
you can use ` around code to prevent it from being formatted wrong
that's related to this issue sympy/sympy#11869
the closest thing right now is collect
Thomas Rodgers
@trodge
this is what my code looks like right now: http://ideone.com/X9x6Zt
I think using collect would be inconvenient
keshawkk
@keshawkk
I'm a newbie here , so can anyone tell if sympy will take part in gsoc 2020 . And if it will then how should i start for it.
Gagandeep Singh
@czgdp1807
@keshawkk https://github.com/sympy/sympy/blob/master/README.rst can be a good starting point. Pick an issue, make a PR to fix it.
Srinivasa Arun Yeragudipati
@arun-y99
Hi. I am working on #17596 .
In the polygamma class, I am not able to understand the arguments of the function _eval_aseries
def _eval_aseries(self, n, args0, x, logx):
Can someone explain?
lynntinney
@lynntinney
Hi. I'm brand new to Python and I just downloaded Anaconda which comes with Sympy 1.4. I need to use Sympy 0.7.3, does anyone know how to install 0.7.3 instead of, or in addition to 1.4? Anaconda offer the option to install different versions of Sympy but the only options are 1.1.1, 1.2 and 1.3. Thanks for any help you can give!
Steven Lee
@stevenleeS0ht
Is there anyone who know how to suppress codeprinter warning "# Not supported by XXX\n# f" when printing an unknown function?
kascesar
@kascesar

hello, if i i hav a NxM matrix that have NxM symbols objects like 'w{0}', 'w{1}', ...'w_{NxN}' (all of this are sympy symbols objects)

How to assign numerical values for each one ? .

if i do w_{0} = 1 (for example), works perfect... but if i hav 100 symbols ... how do this by a human way! Thanks :) i hope you can help me.

Kalevi Suominen
@jksuom
@lynntinney You can find v.0.7.3 here.
S.Y. Lee
@sylee957

@kascesar It would be better to use MatrixSymbol('W', m, n).as_explicit() to define such large matrix conveniently, and you can use subs or xreplace to replace each matrix elements or the whole matrix base like

M = MatrixSymbol('M', 3, 3)
M.as_explicit().subs(M, Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]))

or

M.as_explicit().subs(M[0, 0], 2)

depending on your taste

S.Y. Lee
@sylee957
@stevenleeS0ht The best way would be adding the right printer for the specific function. But if you only want to suppress the comments printed out, you should use allow_unknwon_functions=True
S.Y. Lee
@sylee957
@arun-y99 I'm not sure about how _eval_aseries is dispatched, but I don't think that it's necessary to implement such features if it already exists in polygamma. You can rewrite things to polygamma and call the respective method.
lynntinney
@lynntinney
@jksuom @lynntinney Thanks Kalevi! There's a full explanation as to why Anaconda was no longer showing version 0.7.3 and how to install from tarball here: https://stackoverflow.com/questions/57914631/anaconda-navigator-installing-an-older-version-0-7-3-of-sympy.
Gunjan Paul
@gunjanmimo
i am new in this
what is the best way to start contributing
Divyanshu Thakur
@divyanshu132
@gunjanmimo start from here https://github.com/sympy/sympy/wiki/Introduction-to-contributing set up the code base and then try to solve Easy to fix issues.
Kenneth Emeka Odoh
@kenluck2001
I am new in the project. I am based in Vancouver, Canada. I have been reading the codebase for a few days. The technical expectation is within my abilities. I am looking for the workflow for creating PRs as part of my onboarding in sympy as I use Atlassian products at work. Kindly point me to PR examples and workflow for creating them.
Gagandeep Singh
@czgdp1807
Hi, @kenluck2001 please see this docs. Most of the PRs listed in it are stalled so you can continue any one of them.