Python Forum
I need assistance with getting sympy to work
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need assistance with getting sympy to work
#1
I am trying to get sympy to work and am having trouble with it.

I have used pip install sympy to get it onto my computer.

I tried to make a simple equation to test if the program worked to solve variables because apparently it can do that.

import sympy as sp
from sp import *
# * should give me access to specific variables and the ability to solve equations

sp.init_session()

eqn = Eq(x+9, 8)

solve(eqn)
According to this video it should work however it is not.
https://www.youtube.com/watch?v=s0Tj2ausMBI

I am getting an error which says unable to import sp. I am not sure why this is the case.
Reply
#2
You can drop from sp import *,look like it dos nothing now.
Here a Notebook test.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  solve ODE with sympy Sergey_Novak 2 952 Dec-02-2023, 12:33 PM
Last Post: Sergey_Novak
  Sympy error "object is not callable" Cupcake 0 4,914 Feb-08-2020, 02:22 AM
Last Post: Cupcake
  Get the variables in a sympy expression SJ001 8 7,328 Feb-12-2019, 07:25 AM
Last Post: SJ001
  Sympy Import error: "unresolved referrence 'sympy' " BoaCoder3 0 2,690 Jul-27-2018, 12:48 PM
Last Post: BoaCoder3
  SymPy - SolveSet Values Plant_Boy 0 2,507 Jan-01-2018, 09:20 PM
Last Post: Plant_Boy
  Sympy symbolic Point shoulddt 0 2,766 Jul-17-2017, 06:07 PM
Last Post: shoulddt
  Sympy Integration Flexico 5 7,522 Dec-07-2016, 07:24 AM
Last Post: micseydel

Forum Jump:

User Panel Messages

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