Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 12 2022 01:39

    anutosh491 on GSoC_Pr4.2_Implementing_leading_term_and_series_methods_for_the_frac_function

    (compare)

  • Sep 11 2022 12:19

    anutosh491 on GSoC_Pr4.2_Implementing_leading_term_and_series_methods_for_the_frac_function

    Implemented leading term and ns… (compare)

  • Sep 10 2022 03:21

    anutosh491 on GSoC_Pr4.2_Implementing_leading_term_and_series_methods_for_the_frac_function

    made changes (compare)

  • Sep 08 2022 06:28

    anutosh491 on GSoC_Pr4.2_Implementing_leading_term_and_series_methods_for_the_frac_function

    added tests for leading terms f… (compare)

  • Sep 08 2022 03:43

    anutosh491 on GSoC_Pr4.2_Implementing_leading_term_and_series_methods_for_the_frac_function

    Changed the outputs being retur… (compare)

  • Sep 07 2022 09:34

    anutosh491 on GSoC_Pr4.2_Implementing_leading_term_and_series_methods_for_the_frac_function

    Changed leading term being ret… (compare)

  • Sep 07 2022 07:27

    anutosh491 on GSoC_Pr4.2_Implementing_leading_term_and_series_methods_for_the_frac_function

    Removed Redundant block from le… (compare)

  • Sep 07 2022 02:44

    anutosh491 on GSoC_Pr4.3_Implementing_some_series_method_for_uppergamma_lowergamma_expint_and_other_errors_functions

    Implemented some series methods… (compare)

  • Sep 06 2022 16:44

    anutosh491 on GSoC_Pr4.2_Implementing_leading_term_and_series_methods_for_the_frac_function

    Removed Order term (compare)

  • Sep 06 2022 11:39

    anutosh491 on GSoC_Pr4.2_Implementing_leading_term_and_series_methods_for_the_frac_function

    added test cases for limits and… (compare)

  • Sep 06 2022 10:51

    anutosh491 on GSoC_Pr4.2_Implementing_leading_term_and_series_methods_for_the_frac_function

    Implemented leading term and ns… (compare)

  • Sep 06 2022 10:40

    anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions

    (compare)

  • Sep 06 2022 04:13

    anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions

    This commit does the following … Refactored mrv_leadterm in grun… Fixed errors arising for limits… and 3 more (compare)

  • Sep 06 2022 02:08

    anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions

    fix(integrals): handle degenera… functions: Generalised Dirichle… author: update Megan Ly in .mai… and 23 more (compare)

  • Sep 05 2022 14:16

    anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions

    Changed if condition for bessel… (compare)

  • Sep 05 2022 02:49

    anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions

    Improved code quality (compare)

  • Sep 03 2022 10:24

    anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions

    changed is function to equality… (compare)

  • Sep 03 2022 10:14

    anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions

    fixed failing tests (compare)

  • Sep 01 2022 12:23

    anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions

    Fixed code quality (compare)

  • Sep 01 2022 12:00

    anutosh491 on GSoC_Pr4.1_Implementing_few_series_methods_for_bessel_functions

    Added case where number of term… (compare)

victor immanuel
@victorchrollo14
Hi ! I'm Victor, I want to start contributing to sympy, I went through the contribution guidelines and created a fork , set up
the virtual environment using conda , and cloned it to my local machine.
I am new to sympy, Some advice on how to get started , understanding the codebase would be really helpful.
Moises Zeleny
@moiseszeleny
Hi! I few years ago I have written a simple function with sympy version 1.5.1, to teste if an objest is a simbolic object of sympy given by
def issymbolic(*args):
    '''
    Test is some of the element of args list is an 
    instance of sympy

    Parameters
    ----------
    args: list
        List with differents types of elements they 
        could be float, int or sympy instances

    Returns
    -------
    Return True if someone of the elements of args list is a
    sympy instance, otherwise return False.

    '''
    from sympy import core
    return True in [isinstance(args[i],tuple(core.all_classes)) for i in range(len(args))]
3 replies
however with the version 1.10..1, this function don't work, the error says that sympy.core don't have all_classes atribute. Someone can help with this problem? or somene can say me where all_classes is?
u7122029
@u7122029
Quick q guys: how do I run all the tests in a specific test file that don't have the slow tag?
Nicolas Pettiaux
@npettiaux:matrix.org
[m]
Hello. I am a math teacher at secondary level (2 last years of hight school, in Brussels). I would like to know if sympy can be used as PhotoMath does and give the detailed computation to teach and train students, not only the solution ? Much thanks for your advices and help
Jeffrin Jose T
@ahiliation_gitlab
hello all
expr1 = exp((10 - 2)2 + (y - (-3))2) this expression is equal to 100
1 reply
it is giving me complex roots with solve
Jeffrin Jose T
@ahiliation_gitlab
really y = 3 or y = -9
Jeffrin Jose T
@ahiliation_gitlab
please see problem number 8
Soutrik-01
@Soutrik-01
Hi...I'm a sophomore at uni majoring in math. I'm really willing to contribute. Could anyone please tell me some pending first issues I could start with?
victor immanuel
@victorchrollo14
Hello soutrik, check out the contribution guidelines at https://docs.sympy.org/latest/contributing/index.html, For development workflow check out https://github.com/sympy/sympy/wiki/Development-workflow. Browse through github issues to find out issues labeled "easy to fix".
Kazi Abu Rousan
@aburousan
Can someone tell me how to verify this using Sympy commutator function?
Kazi Abu Rousan
@aburousan
I tried here is the code
from sympy.physics.quantum import Commutator, IdentityOperator, Operator
from sympy.physics.quantum.operator import DifferentialOperator
from sympy import Derivative, Function, Symbol
from sympy import sqrt
f = Function('f')
y = Symbol('y');x = Symbol('x');z = Symbol('z')
p1 = DifferentialOperator(-1j*Derivative(f(x,y),x),f(x,y))
p2 = DifferentialOperator(-1j*Derivative(f(x,y),y),f(x,y))
H = (p1**2 + p2**2)/2 - DifferentialOperator((z/(sqrt(x**2 + y**2)))*f(x,y),f(x,y))
Lz = x*p1 - y*p2
com_lh = Commutator(H,Lz)
com_lh.doit()
the result should be zero.
Kazi Abu Rousan
@aburousan
Anyone?😥
ABHISHEK PATIDAR
@1e9abhi1e10
Hello everyone.. I am 2nd year student , I want to know that how much knowledge about sympy is enough for contributing as a beginner?
Lin Hsu
@chaosink
from sympy import *

x, y, z = symbols('x y z')

steradian_expr = integrate(z / (x**2 + y**2 + z**2)**1.5, (x, -1, 0), (y, -1, 0))
steradian = steradian_expr.evalf(subs={z: 10})
print(steradian)

steradian_expr = integrate(z / (x**2 + y**2 + z**2)**1.5, (x, 0, 1), (y, 0, 1))
steradian = steradian_expr.evalf(subs={z: 10})
print(steradian)
# output
-0.00990115187117096
0.00990115187117096
The integrand is symmetric about x and y.
Why the two results are opposite?
Kalevi Suominen
@jksuom
Why the two results are opposite?
The integral is computed by meijerint that cannot reliably be used on the negative real axis. Hence the first integral has wrong sign.
Nicolas Pettiaux
@npettiaux:matrix.org
[m]
Can sympy give the path to the solution of a derivative , a limit calculation or an intégral ? Like what photomath or wolfram Alpha do
13 replies
ABHISHEK PATIDAR
@1e9abhi1e10
I got an error in the optional dependencies check in my pull request how to fix it?
ram vikram singh
@ramvikrams
I had a question that in this 'https://docs.sympy.org/latest/modules/testing/runtests.html' doc it is written py.test, my confusion was what is py.test or it is pytest
AlanStark
@AlanWilliamStark
How to realize Sum like this . With a restriction i neq j.
image.png
AlanStark
@AlanWilliamStark
Anyone who knows please do me a fever, thank you so much!
Ch_song
@Chsongcumt
Hello everyone, I want to solve this functions, but it return []. That's why?
from sympy.solvers import solve
from sympy import Symbol
from sympy import sqrt
x = Symbol('x')
y = Symbol('y')
z = Symbol('z')

expr = [2130 - sqrt((x-8413)**2 + (y-13233)**2 + (z-544)**2)/4700,
        2150 - sqrt((x-8384)**2 + (y-12857)**2 + (z-524)**2)/4700,
        2258 - sqrt((x-8941)**2 + (y-12632)**2 + (z-549)**2)/4700,
        2198 - sqrt((x-8691)**2 + (y-12737)**2 + (z-531)**2)/4700]

args = [x,y,z]

res = solve(expr,args)
print(res)
Nicolas Pettiaux
@npettiaux:matrix.org
[m]
Hello. I have not understood how I can run sympy in a terminal, and have the output as in https://gamma.sympy.org that is all the steps of a derivative or an integral and comment, and export that to latex for example.
2 replies
Much thanks for your help and suggestions
Somasree Majumder
@soma2000-lang
@asmeurer Are there any community meetings held for discussion.If there is ,then I would love to join.
Regards
Varsha kaushal
@Varshakaushal12_twitter
hello everyone, I am Varsha and I want to start open source contribution as I am a beginner please guide me, how should I start?
1 reply
bhargav1004
@bhargav1004
Hello Everyone, I want to use ± (plus or minus) operator in sympy expresssion, Can anyone help ?
andreichalapco
@andreichalapco
Hi guys I was wondering if simpy suppports
1 reply
Hi guys I was wondering if sympy supports solving matrix equations:
from sympy import *
n = 2
A = MatrixSymbol('A', n, n)
x = MatrixSymbol('x', n, 1)
b = MatrixSymbol('b', n, 1)
solve(A*x-b, x)
TypeError: First argument of MatrixElement should be a matrix
Abhi
@asm0-deus
Screenshot from 2023-01-13 16-59-28.png
Hey, I want to start open source contribution as I am a beginner please guide me in issue #24140 (sympy/sympy#24140). I am getting this while trying the make linecheck.
Ivan Petuhov
@satels_gitlab

Ambiguity:


# Python 3.9.16 (main, Dec  7 2022, 01:11:51) 
# [GCC 9.4.0] on linux
from sympy import evaluate, Rational, sympify
rational1 = sympify('1/5 + 1/4', rational=True, evaluate=False)
with evaluate(False):
    rational2 = Rational(1, 5) + Rational(1, 4)

rational1 == rational2
False
from sympy import __version__
__version__
'1.11.1'

but

rational1
1/5 + 1/4
rational2
1/5 + 1/4
rational1.doit() == rational2.doit()
True
Ivan Petuhov
@satels_gitlab
How to create chained equality object ?
May be like:
Eq(x**2 + x, x*(x + 1), 7)
Patrick Sullivan
@psulliv
Is this a room specifically for development or does it also function for Q&A?
Nima Rahnemoon
@nima-airbus

Hi guys, I'm trying to plot z = 0 in 3D (just a plane on XY),

from sympy import symbols
from sympy.plotting import plot3d
x, y, z = symbols('x y z')
plot3d(0)

but I'm getting:

In [14]: plot3d(0)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[14], line 1
----> 1 plot3d(0)
...

ValueError: Argument Z must be 2-dimensional.
Nima Rahnemoon
@nima-airbus
One more question - how do you plot a Line3D?
Atharv Parlikar
@atharvParlikar
Hello guys, I'm Atharv and I want to start with open source, and this seems like a great project to start with. I have read halfway through sympy docs, and also fully read the contribution guidelines, forked repo, and setup development env. I am familiar with git but not sure how people contribute to large-scale projects. I'm looking at good first issues and easy to fix but people seem to be asking to be assigned to the issue, do I have to be assigned to an issue? I'm really confused
1 reply