In [15]:
# Initial import statements
%matplotlib notebook
import matplotlib.pyplot as plt
import numpy as np
import sympy as sy
from matplotlib.pyplot import *
from numpy import *
from numpy.linalg import *
from sympy import *
a = 1.61340400000000
t3 = (99.1951 - 19 * a)
theta = np.deg2rad(45.0)
x = Symbol('x')
sy.solve(-(t3) + 6.0 * a - (6.0 * 9.81 * (sin(theta) - x * cos((theta)))), x)
Out[15]: