How to find the range in the form of (a, b) of this function?
Show older comments
The range of f = (7*x +sin(x))/(x^2 + x + 2) is of the form [a,b]. Give a and b correct to two decimal places
edit - Not a homework question. Its a Test question for revision, has me stumped
so far, I have this
clear all
syms x
hold on
fplot(@fun2, [-6 6]);
hold off
x1 = fminbnd(@fun2, -6, 6);
y1 = fun2(x1)
y1 = sprintf('%0.2f',y1);
x2 = fminbnd(@fun2_neq, -6,6);
y2 = fun2_neq(x2)
y2 = sprintf('%0.2f',y2)
But wouldn't I need to specify fun2_neq and fun2 in different mfiles? Also, what would I specify it as?
1 Comment
per isakson
on 9 Jun 2013
Edited: per isakson
on 9 Jun 2013
Homework? If so, what have you done so far?
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with MATLAB 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!