The Crocodile Maths Problem¶
In [1]:
from sympy import *
init_printing(use_latex='mathjax')
x=symbols("x")
In [2]:
T=5*(36+x**2)**(0.5)+4*(20-x)
T
Out[2]:
In [3]:
%matplotlib inline
plot(T,(x,0,20))
Out[3]:
In [4]:
Tprime=diff(T,x)
Tprime
Out[4]:
In [5]:
solve(Tprime,x)
Out[5]:
In [6]:
T.subs(x,8.0)
Out[6]: