0

Currently I am trying to make Mathematica handle vector expressions defined element-wise. For example,

enter image description here

But I can find no way to do this. Every way I tried requires a fixed-sized vector and returns a fixed sized vector rather than a formula for elements.

x and y

Evaluating y[{1, 2, 3}] works but y[x] doesn't work.

I'm new to Mathematica, but I believe there's an elegant way to do this :)

evanb
  • 6,026
  • 18
  • 30
Laie
  • 143
  • 4
  • Welcome! I suggest the following:
    1. As you receive help, try to give it too, by answering questions in your area of expertise.
    2. Take the tour and check the faqs!
    3. When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign!
    –  Jun 19 '16 at 15:21
  • People here generally like users to post code as Mathematica code instead of images or TeX, so they can copy-paste it. It makes it convenient for them and more likely you will get someone to help you. –  Jun 19 '16 at 15:22
  • @Louis thank you for your comments. It helped a lot. In fact I'm not completely new to stackexchange. I often answer and ask on stackoverflow.com. I think it won't take long time to be used to it. :D – Laie Jun 19 '16 at 15:32
  • 3
    Looks exactly like what I answered here. So it's probably a duplicate of how to differentiate formally – Jens Jun 19 '16 at 15:45
  • I found few things made me in trouble. Presense of /: := operator, not knowing KroneckerDelta, NonConstants optional of D, Assuming, ... I'm continuing trial. – Laie Jun 20 '16 at 01:25

0 Answers0