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.

6 visualizaciones (últimos 30 días)
%i really have no idea where to begin
f = @(x) exp(x);
g = @(x) 3*x;

Respuestas (1)

Walter Roberson
Walter Roberson el 5 de Dic. de 2015
syms x
intersection_x = solve(exp(x)==3*x,x);

Categorías

Más información sobre Nonlinear Optimization en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by