Skip to main content
deleted 1 character in body
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

I wante to define several functions, all of them with the same arguments, for example:

f[a_, b_, c_]:= ...
g[a_, b_, c_]:= ...
h[a_, b_, c_]:= ...

¿HowHow can I do this by using something like args = {a,b,c}?

So, having something like

f[arg_]:= ...
g[arg_]:= ...
h[arg_]:= ...

I wante to define several functions, all of them with the same arguments, for example:

f[a_, b_, c_]:= ...
g[a_, b_, c_]:= ...
h[a_, b_, c_]:= ...

¿How can I do this by using something like args = {a,b,c}?

So, having something like

f[arg_]:= ...
g[arg_]:= ...
h[arg_]:= ...

I wante to define several functions, all of them with the same arguments, for example:

f[a_, b_, c_]:= ...
g[a_, b_, c_]:= ...
h[a_, b_, c_]:= ...

How can I do this by using something like args = {a,b,c}?

So, having something like

f[arg_]:= ...
g[arg_]:= ...
h[arg_]:= ...
improved formatting; deleted tag
Source Link
bbgodfrey
  • 62.1k
  • 18
  • 92
  • 160

I wante to define several functions, all of them with the same arguments, for example:

f[a_, b_, c_]:= ... g[a_, b_, c_]:= ... h[a_, b_, c_]:= ...

f[a_, b_, c_]:= ...
g[a_, b_, c_]:= ...
h[a_, b_, c_]:= ...

¿How can I do this by using something like args = {a,b,c}?

So, having something like

f[arg_]:= ... g[arg_]:= ... h[arg_]:= ...

f[arg_]:= ...
g[arg_]:= ...
h[arg_]:= ...

I wante to define several functions, all of them with the same arguments, for example:

f[a_, b_, c_]:= ... g[a_, b_, c_]:= ... h[a_, b_, c_]:= ...

¿How can I do this by using something like args = {a,b,c}?

So, having something like

f[arg_]:= ... g[arg_]:= ... h[arg_]:= ...

I wante to define several functions, all of them with the same arguments, for example:

f[a_, b_, c_]:= ...
g[a_, b_, c_]:= ...
h[a_, b_, c_]:= ...

¿How can I do this by using something like args = {a,b,c}?

So, having something like

f[arg_]:= ...
g[arg_]:= ...
h[arg_]:= ...
Source Link

How to define functions with a list of arguments

I wante to define several functions, all of them with the same arguments, for example:

f[a_, b_, c_]:= ... g[a_, b_, c_]:= ... h[a_, b_, c_]:= ...

¿How can I do this by using something like args = {a,b,c}?

So, having something like

f[arg_]:= ... g[arg_]:= ... h[arg_]:= ...