Hi,

I am very new to python and I am currently trying to migrate some code
from mathematica. What I'm stuck with is the following:

I have created a linear system A.x = B, and I have  a list of
replacement rules I would like to apply to the matrix A and the array
B before I go on to solve it. A minimal working example is as follows:

#####################

from numpy import *
from sympy import *
t, t1, t2, t3 = symbols ('t', 't1', 't2', 't3')
A = array( [ [sin(t1)], [0], [sin(t3)], [sin(t)] ] )
B = array( [sin(t1), 0, sin(t3), sin(t)] )
def Rule_Sub(x): return (x).subs(Repl_Rules)
B= map(Rule_Sub, B)
for i in range(len(A))


#####################
Now, I'd like to be able to do the same to the matrix A, i.e. apply a
list of replacement rules

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

Reply via email to