[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Symbolic Bug 45423, is there a workaround
From: |
Thomas D. Dean |
Subject: |
Symbolic Bug 45423, is there a workaround |
Date: |
Mon, 8 May 2017 15:39:45 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
SymString = "syms s R1 C1 R2 C2 R3 R4 I_V1 V1 v_1 v_2 v_3 v_4"
eval(SymString);
## this produces an error. An open bug report exists.
Astring = "A=[ 0+1/R1 0-1/R1 0 0 1; 0-1/R1 0+1/R1+s*C1+1/R2 0-1/R2 0 0;
0 0-1/R2 0+1/R2+s*C2+1/R3 0-1/R3 0; 0 0 0-1/R3 0+1/R3+1/R4 0; 1 0 0 0 0;]";
eval(Astring)
## this does not produce the error
Astring = "A=[ 0+1/R1 0-1/R1 0 0 1; 0-1/R1 0+1/R1+s*C1+1/R2 0-1/R2 0 0;
sym(0) 0-1/R2 0+1/R2+s*C2+1/R3 0-1/R3 0; sym(0) 0 0-1/R3 0+1/R3+1/R4 0;
sym(1) 0 0 0 0;]";
eval(Astring)
This is in the middle of a complex matlab script, scam.m.
Is there an easy workaround?
Tom Dean