Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python sympy solve equation equal to 0

from sympy import *

x, y = symbols('x y') 

y=(x**2-2)/3*x

# solve the expression y (by default set equal to 0)
result = solve(y)

print(result)
Comment

PREVIOUS NEXT
Code Example
Python :: converting a string to a dictionary in python 
Python :: how to add a column to a pandas df 
Python :: pandas timedelta to seconds 
Python :: reverse pd based on index 
Python :: dynamo python templete 
Python :: rezing images of entire dataset in python 
Python :: first openfaas python function 
Python :: how to recurse a function 
Python :: Ascending discending 
Python :: google translate python 
Python :: how to extract words from sentence in python 
Python :: pandas datetime to date 
Python :: python selenium wait for page to load 
Python :: annaul sum resample pandas 
Python :: json load from file python 3 
Python :: how to iteratively create a grid within a bigger grid in python 
Python :: in 2002 elon musk age 
Python :: How to Add a Progress Bar into Pandas Apply 
Python :: auto-py-to-exe with python3 
Python :: replace column values pandas 
Python :: mongodb connection using python 
Python :: put array over array in numpy 
Python :: how to pronounce aesthetic 
Python :: print underline text python 
Python :: datetime date of 10 years ago python 
Python :: tkinter maximize window 
Python :: remove too short strings from a list python 
Python :: float print format python 
Python :: python number of elements in multidimensional array 
Python :: dataframe catch data types 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =