How can I type the interval −10 ≤ x=>10

The function y= log((x+sqrt(x.^2)+1));
a. Evaluate the values of function between the interval −10 ≤ x=>10
Setp size of 0.1

Answers (2)

The interval defined by -10 <= x >= 10 in steps of 0.1 is
x = 10 : 0.1 : inf;
because all values that are greater than or equal to 10 are also greater than or equal to -10
However, in practice the numbers that can be represented get further apart than 0.1 after 562949953421312 so you should use
x = 10 : 0.1 : 562949953421312
Good luck having enough memory to solve the question.

Asked:

ASA
on 9 Oct 2016

Answered:

on 9 Oct 2016

Community Treasure Hunt

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

Start Hunting!