how to know the domain and range of a function?

22 views (last 30 days)
The function f, defined by f(x) = x², whose domain { x | x∈R} and range { f(x) | f(x)≥0} I would like to know how Matlab can return the domain and range of a function, i.e. I type:
y = x^2;
and after that I want to know the domain and range of that function, How could I do it?, thank you so much.
  2 Comments
Bjorn Gustavsson
Bjorn Gustavsson on 16 Aug 2019
That seems like a very difficult task to solve. Your hypothetical range_domain_finder function would be able to detect even the most narrow peaks and valleys in a potentially infinitely large domain, and how would it be able to determine the domain of for example the function ?, is it {x | x>0} or {}, and why one and not the other?

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!