Python Forum
Attribute error - Sympy
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attribute error - Sympy
#2
solve() return a list and show LaTeX form in shell/editor/NoteBook that support this.
Can try sympify() on content in list first.
a = sympify(x[0])
g = a.subs(y,1)
>>> print(repr(g))
-3/2
Reply


Messages In This Thread
Attribute error - Sympy - by VictorG8 - Apr-09-2020, 09:44 AM
RE: Attribute error - Sympy - by snippsat - Apr-09-2020, 06:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python sympy problem for symbolic equation definition joellapointe_engineering 0 92 Mar-24-2024, 11:09 PM
Last Post: joellapointe_engineering
  Using SHAP Library for my LSTM model - "Attribute Error" vatsalmtailor 0 2,041 Jul-13-2022, 04:34 PM
Last Post: vatsalmtailor
  error "list object has no attribute transpose()" usercat123 4 4,187 Jan-28-2022, 12:01 PM
Last Post: usercat123
  Attribute Error Raiden_Arctica 4 4,081 Mar-13-2021, 11:09 AM
Last Post: Raiden_Arctica
  Sympy nonlinsolve does not return explicit solution axelle 1 2,196 Jan-20-2021, 11:38 AM
Last Post: Serafim
  plot differential equation sympy dan_adi 0 2,931 Oct-13-2020, 10:44 AM
Last Post: dan_adi
  Attribute error in Dataframes deshanish 1 2,371 Jul-15-2020, 08:38 AM
Last Post: snippsat
  How to use list of symbols for sympy calculation in python? tanmaybhise 1 2,762 Mar-01-2020, 10:36 PM
Last Post: Gribouillis
  Next zero of a function on sympy VicenteM 0 2,055 Aug-21-2019, 04:58 PM
Last Post: VicenteM
  sympy psosmol 9 4,898 Mar-11-2019, 11:09 PM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020