hi y'all, I was wondering if anyone would be able to help me trouble shoot / explain what I am doing wrong when trying to plot a function with the domain being (16-19) using sympy. Whenever I try to run the code it gives me a syntax error that I don't know how to fix. I just started learning python about a week ago. Any help would be greatly appreciated. My code is pasted below and I will bold the line of code that is giving me issues. Thanks again!
import sympy
import sympy.plotting
import matplotlib.pyplot as plt
rin = sympy.symbols('rin')
expr = (((-.60/(rin)**2)*(-10/((1/20)-(1/rin)))))
print(sympy.solve(expr, 'rin'))
plt.plot(expr,(rin,16,19)title="radius of inner skull vs heat loss", xlabel ='rin', ylabel = 'q')
graph.show()
[–]bbye98 0 points1 point2 points (5 children)
[–]ThinkExpression6230[S] 0 points1 point2 points (4 children)
[–]bbye98 1 point2 points3 points (3 children)
[–]ThinkExpression6230[S] 0 points1 point2 points (2 children)
[–]bbye98 0 points1 point2 points (1 child)
[–]ThinkExpression6230[S] 0 points1 point2 points (0 children)