Ask Your Question
1

Differential operator

asked 2021-04-19 12:01:49 +0200

zannas gravatar image

updated 2021-04-19 20:07:54 +0200

slelievre gravatar image

Assuming:

f(x) = 3*x
g(x) = 4*x

m = matrix([[f],[g]])

Is it possible to define L as:

   L         M
[d/dx]   *   m   =   [3]
                     [4]

?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-04-19 13:17:28 +0200

tmonteil gravatar image

updated 2021-04-19 13:18:32 +0200

You can do :

sage: m.derivative(x)                                                                                                                                                                                        
[x |--> 3]
[x |--> 4]

If you do not like the mapping you can first "evaluate" to get a symbolic expression instead of a symbolic function:

sage: m(x).derivative(x)                                                                                                                                                                                     
[3]
[4]

Compare

sage: m                                                                                                                                                                                                      
[x |--> 3*x]
[x |--> 4*x]

with :

sage: m(x)                                                                                                                                                                                                   
[3*x]
[4*x]
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2021-04-19 12:00:41 +0200

Seen: 174 times

Last updated: Apr 19 '21