Gistlib Logo

gistlib

solve the equation cos (e^ax) = π/b, given a=2, b=4 in matlab in matlab

main.m
a = 2;
b = 4;

syms x;
eqn = cos(exp(a*x)) == pi/b;
sol = solve(eqn, x);
sol
77 chars
8 lines

similar matlab code snippets

how to calculate the volume of a sphere in matlab
how to calculate the area of a ellipse in matlab
how to calculate the secant of an angle in degrees in matlab
how to calculate the volume of a prism in matlab
how to calculate the first derivative of a function in matlab
how to calculate the arccosine of an angle in matlab
find the roots of a polynomial in matlab
how to calculate the arccosine of an angle in degrees in matlab
how to calculate the area of a triangle in matlab
find the slope of a set of points in matlab

related categories

matlab
mathematics

gistlibby LogSnag