Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2577 > unrolled thread

Overloading functions

Started bySam Takoy <sam.takoy@yahoo.com>
First post2011-05-21 10:50 +0000
Last post2011-05-21 10:50 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Overloading functions Sam Takoy <sam.takoy@yahoo.com> - 2011-05-21 10:50 +0000

#2577 — Overloading functions

FromSam Takoy <sam.takoy@yahoo.com>
Date2011-05-21 10:50 +0000
SubjectOverloading functions
Message-ID<ir85dd$bj4$1@smc.vnet.net>
Hi,

In the following code

MyOperator[g_][x_, y_] = 4 + Derivative[1, 0][g][x, y];

f[x_, y_] = x + y;
f[x_, y_, z_] = 2 x + 2 y + 2 z;

MyOperator[f][x, y]


how does Mathematica know which f to send to MyOperator. Can someone 
outline the formal decision tree that Mathematica follows?

Thanks!

Sam

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web