Couple system of equations using loop structure

January 22 2012 by maple_fan 5
false
Maple 12

1


Suppose I have a system of three coupled equations as:

eqn[1] := a*x+b*x^2+c*x^3

eqn[2] := a1*x+b*x^3

eqn[3] := a2*x^2+b2*x^3 = a*x^2

If I simply write

eqs :=( eqn[1], eqn[2], eqn[3])

the equations get coupled.

1. Can I do it using loop structure?

2. Secondly, after coupling suppose I want to collect coefficoent of x, x^2 and x^3 from three equations ang get the equation in form

eq[0]:=a=0,a1=0

eq[1]:=b=0,a2=a

eq[2]:=c=0,b=0,b2=0

How do I get it?

 

 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account