TransWikia.com

Dot product two lists containing pure functions

Mathematica Asked by Irtiza on February 18, 2021

Can i get something like this to work?

{D[#1, t] & , D[#1, x] & } . {t, y}

and my expected output be

{D[#1, t] &[t], D[#1, x] &[y]}

basically just a dot product with pure functions in one list and i get a list with derivatives.Right now,i just get this

t*(D[#1, {t}] & ) + y*(D[#1, {x}] & )

One Answer

This?

Inner[Construct, {D[#1, t] &, D[#1, x] &}, {t, y}, List]

Correct answer by cvgmt on February 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP