2D arm simulation
Objective: #2D arm simulator import math import matplotlib.pyplot as plt # Inputs l1 = 1 l2 = 0.5 n_thetha = 6 thetha_start = 0 thetha_end =math.pi/2 thetha1 = [] thetha2 = [] for i in range (0,n_thetha): temp = thetha_start + i*(thetha_end - thetha_start)/(n_thetha - 1) thetha1.append(temp) thetha2.append(temp) x0 = 0 y0 = 0 ct…