Is there a difference between creating matrix directly and using list2mat?
The following demonstrates what I found:
eq1:=m*(s^2*x-s*dx0-x0)+b*(s*x-x0)+k*x=0
vars:=[ m=2, b=8, k=26, xo=1, dx0=0 ] :;
vars1:=list2mat(vars,1)
subs(eq1,vars)
subs(eq1,vars1)
Note that substituting vars works, substituting vars1 does not.
Thank you,
Matt
Creating a matrix
Modérateur : xcasadmin
Re: Creating a matrix
list2mat(.,1) creates a matrix with 1 column, that's different from vars1 which is a list.
With version 0.9.1 both subst work.
With version 0.9.1 both subst work.
-
- Messages : 164
- Inscription : mer. janv. 13, 2010 3:20 pm
Re: Creating a matrix
Version 0.9.0 fixed my problem! Thank you very much.
Matt
Matt