VOOZH about

URL: https://www.geeksforgeeks.org/python/python-sympy-find-method/

⇱ Python | sympy.find() method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Python | sympy.find() method

Last Updated : 30 Jan, 2023

Using the find() method in sympy module, we can find the mathematical function's subexpression (if it exists). find() method returns the subexpression in the mathematical function.

Syntax : sympy.find(x)

Return : returns subexpression 

Code #1: With the help of the below examples, we can clearly understand that using sympy.find() method we can count the subexpression from the given expression. 

Output: 

{log(3*x)}

  Code #2: 

Output: 

{log(a), log(1/b), log(b)}
Comment
Article Tags:
Article Tags: