I am trying to get the coeficient matrix of the following taylor series expansion
(%i47) SS: taylor( matrix( [sin(h)], [cos(t)] ) , [h,t], [h_0, t_0], 1 );
[ sin(h_0) + cos(h_0) (h - h_0) + . . . ]
(%o47)/T/ [ ]
[ cos(t_0) - sin(t_0) (t - t_0) + . . . ]
Now that I have the taylor expansion I have, I want this to of the form A[h;t] + b
.
coefmatrix( SS, [h,t,1] );
[ sin(h_0) + cos(h_0) (h - h_0) + . . . ]
coefmatrix: improper argument: [ ]
[ cos(t_0) - sin(t_0) (t - t_0) + . . . ]
-- an error. To debug this try: debugmode(true);
This last step gives an error. How can I accomplish what I desire?