Ask Question
6 September, 19:44

The (X, y) coordinates of a certain object as a function of time' are given by Write a program to determine the time at which the object is the close t to the origin at (0, 0). Determine also the minimum distance.

+2
Answers (1)
  1. 6 September, 21:10
    0
    t = [0:0.01:4];

    x = 5*t - 10;

    y = 25442 - 120*t + 144;

    d = x.^2 + y.^2;

    min = 1e+14;

    for k = 1:length (t)

    if d (k) < min

    min = da (k);

    tmin = t (k);

    end

    end

    disp ('The minimum distance is: ')

    disp (sqrt (min))

    disp ('and it occurs at t = ')

    disp (tmin) Output:

    >> withLoop

    The minimum distance is:

    2.5106e+04

    and it occurs at t =

    4
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “The (X, y) coordinates of a certain object as a function of time' are given by Write a program to determine the time at which the object is ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers