help me solve this transdental equation using matlab ?
Show older comments
bn=((2*vdc)/(n*pi))*{1-2cos*n*a1+2cos*n*a2-2cos*n*a3+2cos*n*a4}.
FOR n=1,5,7,11 And equate b5=b7=b11=0
b1 is known (take any value) and find out a1 a2 a3 a4 ?????
2 Comments
Walter Roberson
on 15 Mar 2013
Where you have 2cos*n*a1 is that intended to mean 2*cos(n*a1) ?
Adithya Kesineni
on 16 Mar 2013
Answers (1)
Youssef Khmou
on 16 Mar 2013
Edited: Youssef Khmou
on 16 Mar 2013
try, this , Warning : it computationally heavy!!!!
% This is Non linear system
% lets take 2*vdc/n*pi=1 for simplification and b1=0 .
tic,
Solution=solve('1-2*cos(a1)+2*cos(a2)-2-cos(a3)+2*cos(a4)=2',...
'1-2*cos(5*a1)+2*cos(5*a2)-2-cos(5*a3)+2*cos(5*a4)=0',...
'1-2*cos(7*a1)+2*cos(7*a2)-2-cos(7*a3)+2*cos(7*a4)=0',...
'1-2*cos(11*a1)+2*cos(11*a2)-2-cos(11*a3)+2*cos(11*a4)=0',...
'a1','a2','a3','a4');
toc,
!!! it will take a long time
3 Comments
Adithya Kesineni
on 16 Mar 2013
Youssef Khmou
on 16 Mar 2013
hi, well take a look at that solution:
a1=Solution.a1;
a2=Solution.a2;
a3=Solution.a3;
a4=Solution.a4;
Walter Roberson
on 16 Mar 2013
I don't think you should be getting 1x1 sym.
If you add 2*Pi to any of the a* variables, then when you multiply that addition by the integer n, you are going to be adding integer*2*Pi to the value whose cos() is being taken, and that will have the same result as if the 2*Pi was not there. Therefore there are an infinite number of solutions for each of the a* variables.
Categories
Find more on Symbolic Math Toolbox 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!