Answer to Question #200763 in Python for Firma Calay

Question #200763

Symbolic Python Ass #4

https://ibb.co/5631sdh


1
Expert's answer
2021-06-01T03:00:58-0400
import sympy
sympy.init_printing()
x, y, z = sympy.symbols('x,y,z')
# example math expression
expression = x**2 + 5*x -7
print(expression.subs(x, 1.5))
print(expression.subs(x, y))
print(expression.subs(x, z**2))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS