Search All of the Math Forum:

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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

 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

> 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.

Date Subject Author
7/4/13 Srinath
7/4/13 Torsten Hennig
7/4/13 Srinath
7/4/13 Torsten Hennig
7/4/13 Srinath
7/4/13 Torsten Hennig
7/4/13 Srinath
7/5/13 Torsten Hennig
7/5/13 Srinath
7/5/13 Torsten Hennig
7/5/13 Srinath
7/5/13 Torsten Hennig
7/5/13 Srinath
7/6/13 Torsten Hennig