Skip to content

Opening book details…

Can I read MATLAB Functions for Square Roots and Velocity on EtoBox?

MATLAB Functions for Square Roots and Velocity by Djody Virgiawan Ramadhan is a document available to read on EtoBox.

What is MATLAB Functions for Square Roots and Velocity about?

1) Write a function that uses the divide and average method to approximate the square root of a number. The function should use a while loop, calculate the error at each step, and return both the result and the error once the error is less than a specified value. It should also return imaginary numbers for negative inputs. 2) Develop a piecewise function to calculate the velocity of a rocket based on time. Then, write a script that uses this function to plot the velocity versus time from -5 to 50 seconds.

Author
Djody Virgiawan Ramadhan
Language
EN