Hi,

I use the following code in sage, which internally calls Maxima to solve 
the problem.
The solver never returns with a solution, even if i change the values 
randomly.
I tried to enter the same code into MATLAB and it also doesn't return with 
a solution.
What is the Problem?

L1=8;
L2=6;
L3=4;
C5=2;
C6=1;
C3=2;
C1=10-i*80;
C2=30;
s=i*2*pi*24;
def Par(Za,Zb):
    return (Za*Zb/(Za+Zb));
x=var("x");
y=var("y");
z=var("z");
Z1=s*L1;
Z2=s*L2;
Z3=1/(s*C3);
Z4=s*L3+1/(s*C5);
Z6=1/(s*C6);
Z2_=Par(Z2,x);
Zin_A=Par(Par(Par(Z1,z)+Z2_,y)+Z3+Z4,Z6);
Zin_B=Par(Par(Par(Z6,C2)+Z3+Z4,y)+Z2_,Z1);
solutions = solve([Zin_A==C2.conjugate(), Zin_B==C1.conjugate(), 
Par(z,x+y)==C1],x,y,z);
for solution in solutions: 
    print solution[x].n(digits=3), ",", solution[y].n(digits=3);

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to