checkVal.m

Last Updated: 4/18/22

The goal of this function is to quickly approximate what independent value of a function is associated with a dependent output. When the function is called, the code searches for all dependent values within a tolerance range of the desired value. The function then creates an array of the independent values associated with these dependent values. Finally, the function averages the identified independent values to create an approximate guess as to what the true intersection value is.

This script is useful when you just want to quickly analyze an output value array, but don't want to or need to use symbolic functions to find the exact point of intersection. In fact, for enough independent value points, you can likely find the true answer with this function.

This function was made during a class assignment during the Fall 2021 academic semester. I have used it several times for assignments and found that, with enough independent data points, my aanswers were just as accurate as any of my classmates.