Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: How to solve very complex equations in matlab?
Replies: 13   Last Post: Jul 6, 2013 7:20 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Torsten Hennig

Posts: 2,419
Registered: 12/6/04
Re: How to solve very complex equations in matlab?
Posted: Jul 4, 2013 4:02 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> I have just taken one more term. Actually
> sigma(f1*f2)=0,sigma(f1*f3)=0,sigma(f1*f4)=0.
> And I have to solve them. TO use 'fsolve', I have to
> give an initial value right? With different initial
> values, I am getting different solutions. So, I am
> trying with solve command. Most importantly can you
> explain me that summation part in detail? Because I
> must be adding functions in the case of summation.
>
>
> Message was edited by: Srinath


Don't use the "solve" command - I doubt that you will get an explicit expression for x,y and z.
If you use "fsolve" instead, you can do the summation within a loop:
sum1=0;
sum2=0;
sum3=0;
For j=1:1000
f1=func_1(x,y,z,a(j),b(j));
f2=func_2(x,y,z,a(j),b(j));
f3=func_3(x,y,z,a(j),b(j));
f4=func_4(x,y,z,a(j),b(j));
sum1=sum1+f1*f2;
sum2=sum2+f1*f3;
sum3=sum3+f1*f4
end

Best wishes
Torsten.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.