Mr Ondrej, here a full example (wrote in mathematica) of what I want
to do. Unfortunately, it doesn't work in mathematica (especially for
nesting function and for lists) and that's why I want to know if sympy
could help me; It will be really great!
Reduce[ {
i<=iP,
j>=jP,
1*j+1*i==1*jP+1*iP,
mP==Nest[Rest,m,iP-i],
i+Length[m]==iP+Length[mP],
1*n-4*i==1*nP-4*iP,
4*i-1*n==4*iP-1*nP,
tt/3^(i/1)==ttP/3^(iP/1),
mP==Nest[Rest,m,j-jP],
j-Length[m]==jP-Length[mP],
4*j+1*n==4*jP+1*nP,
Nest[f,v,j]==Nest[f,vP,jP],
tt/3^(j/-1)==ttP/3^(jP/-1),
Join[l,m]==Join[lP,mP],
t-c*n*(n-4)/(2*4)==tP-c*nP*(nP-4)/(2*4),
tt/3^(n/4)==ttP/3^(nP/4),
vv+7*tt/(1-3)==vvP+7*ttP/(1-3),
x+Sum[A[k],{k,i,N}]==xP+Sum[A[k],{k,iP,N}],
y+Sum[B[k],{k,1,j}]==yP+Sum[B[k],{k,1,jP}],
w+Sum[Nest[f,v,k],{k,1,j}]==wP+Sum[Nest[f,vP,k],{k,1,jP}],
(iP==20+1)},
{iP, jP, lP, mP, nP, tP, ttP, vP, vvP, wP, xP, yP},Backsubstitution-
>True]
here: arrays are A and B and lists are l,m,lP and mP.
On 24 déc, 20:27, "Ondrej Certik" <[email protected]> wrote:
> On Wed, Dec 24, 2008 at 5:55 PM, olfa <[email protected]> wrote:
>
> > Mr Onrej,
> > really thank you for you kindness.
> > could you please tell me how can I write the system of equation given
> > in my example, in sympy syntax?
>
> Could you please past here the full mathematica script? It's hard for
> me to understand what exactly you want to do just from the couple
> lines you posted. What is the array A and B? What about C and D?
>
> Ondrej
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---