1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Sympy solve solutions missing

Discussão em 'Python' iniciado por Stack, Setembro 15, 2024.

  1. Stack

    Stack Membro Participativo

    Sympy's solve method doesn't return all solutions on this relatively simple problem:

    import sympy as sp
    y1, y2, x = sp.symbols('y1 y2 x')

    y1 = x**2
    y2 = x

    sp.solve(y1, y2, dict = True)


    This returns [{x: 0}] but there should be an x=1 solution as well.

    Am I using this correctly?

    Continue reading...

Compartilhe esta Página