How can I type the interval −10 ≤ x=>10
Show older comments
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)
Walter Roberson
on 9 Oct 2016
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.
KSSV
on 9 Oct 2016
x=-10:0.1:10;
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!