For example I want to define a function with parameters σx and σy, that is, the function will be declared as:
f[σx_,σy_] := . . .
I tried Symbolize but it doesn't work. How can I use Subscript in pattern names?
|
For example I want to define a function with parameters σx and σy, that is, the function will be declared as: f[σx I tried |
||||
|
|
|
You can use Then, just take the precaution of writing the pattern with its head explicit, such as: Pattern[xr, _] The problem is that Mathematica can't interpret the short notation for patterns ( |
||||
|
|
|
You can also use the input form in the definition
|
|||||
|