% Define the coordinates of the apple x = < 3 > ; y = ...
Fantastic news! We've Found the answer you've been seeking!
Question:
Define the coordinates of the apple
x ;
y ;
Define the lengths of the robot arm
a ;
b ;
Calculate the distance from the robot to the apple
r sqrtx y;
Calculate theta using the fourquadrant inverse tangent
theta atany x;
Calculate theta using the law of cosines
theta acosr a b a r;
Display the results
dispTheta: numstrtheta;
dispTheta: numstrtheta;
Related Book For
Posted Date: