2

I would like to suppress the argument [0, 0, 0, 0] of K in the output of

Normal[Series[
   K[(Subscript[x, 0] - Subscript[x, 0] 0) t + 
     Subscript[x, 0] 0, (Subscript[x, 1] - Subscript[x, 1] 0) t + 
     Subscript[x, 1] 0, (Subscript[x, 2] - Subscript[x, 2] 0) t + 
     Subscript[x, 2] 0, (Subscript[x, 3] - Subscript[x, 3] 0) t + 
     Subscript[x, 3] 0], {t, 0, 2}]] /. t -> 1

Out

Karsten7
  • 27,448
  • 5
  • 73
  • 134
simon
  • 127
  • 5

1 Answers1

3
Normal[Series[
   K[(Subscript[x, 0] - Subscript[x, 0] 0) t + 
     Subscript[x, 0] 0, (Subscript[x, 1] - Subscript[x, 1] 0) t + 
     Subscript[x, 1] 0, (Subscript[x, 2] - Subscript[x, 2] 0) t + 
     Subscript[x, 2] 0, (Subscript[x, 3] - Subscript[x, 3] 0) t + 
     Subscript[x, 3] 0], {t, 0, 2}]] /. t -> 1

% /. K_[0, 0, 0, 0] -> K

Out

Karsten7
  • 27,448
  • 5
  • 73
  • 134
  • What does the underscore mean? – simon Dec 18 '14 at 09:39
  • @simon The underscore is called Blank in Wolfram Language and it stands for any expression. You could also use % /. whatever_[0, 0, 0, 0] -> whatever to get the same output. This tutorial gives a nice introduction to the basics of pattern. – Karsten7 Dec 18 '14 at 11:16