Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question
1

Differential operator

asked 3 years ago

zannas gravatar image

updated 3 years ago

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]

?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 3 years ago

tmonteil gravatar image

updated 3 years ago

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]
Preview: (hide)
link

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: 3 years ago

Seen: 252 times

Last updated: Apr 19 '21