The curves defined by f(x) = e^x and g(x) = 3x intersect at some point between x = 1 and x = 2. Give all of the Matlab code necessary to locate the point of intersection and output its x and y coordinates.

1 次查看(过去 30 天)
%i really have no idea where to begin
f = @(x) exp(x);
g = @(x) 3*x;

回答(1 个)

Walter Roberson
Walter Roberson 2015-12-5
syms x
intersection_x = solve(exp(x)==3*x,x);

类别

Help CenterFile Exchange 中查找有关 Function Handles 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by