To calculate the second root

Given y = 6.78*sin(x-0.646)-2.67*exp(-x/0.754). How to calculate the following root,x of this equation when y = 0?
>> syms x
>> y = 6.78*sin(x-0.646)-2.67*exp(-(x)/0.754);
>> solve(y==0,x)
ans =
0.78541247081165011435531668600908

 Accepted Answer

f=@(x)6.78*sin(x-0.646)-2.67*exp(-x/0.754);
x1=fzero(f,[0 1]);
x2=fzero(f,[3 4]);
Best wishes
Torsten.

More Answers (1)

Torsten
Torsten on 10 Apr 2015
Your question is unclear to me. Could you clarify ?
Best wishes
Torsten.

1 Comment

I need to find the two roots to this equation y = 6.78*sin(x-0.646)-2.67*exp(-x/0.754) using matlab. Find the two values of x where f(x)=0. Thank You.=)

Sign in to comment.

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Asked:

on 10 Apr 2015

Commented:

on 10 Apr 2015

Community Treasure Hunt

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

Start Hunting!