Post Closed as "duplicate" by RunnyKine, Öskå, Mr.Wizard of
3 made code copyable
source | link

I have the following problem, when defining and using a function, that's supposed to have an outside parameter xmin:

A[x_] := Exp[-x/x<sub>min</sub>]Subscript[x, min]]
A[5]

(*e<sup>-5/5<sub>min</sub></sup>*)

E^(-(5/Subscript[5, min]))

What can I do about it? I do not really want to rename the parameter to xmin ;)

I have the following problem, when defining and using a function, that's supposed to have an outside parameter xmin:

A[x_] := Exp[-x/x<sub>min</sub>]
A[5]

(*e<sup>-5/5<sub>min</sub></sup>*)

What can I do about it? I do not really want to rename the parameter to xmin ;)

I have the following problem, when defining and using a function, that's supposed to have an outside parameter xmin:

A[x_] := Exp[-x/Subscript[x, min]]
A[5]

E^(-(5/Subscript[5, min]))

What can I do about it? I do not really want to rename the parameter to xmin ;)

2 add code wrapper
source | link

I have the following problem, when defining and using a function, that's supposed to have an outside parameter xmin:

Input: A[x_] := Exp[-x/xmin]

Input: A[5]

Output: e-5/5min

A[x_] := Exp[-x/x<sub>min</sub>]
A[5]

(*e<sup>-5/5<sub>min</sub></sup>*)

What can I do about it? I do not really want to rename the parameter to xmin ;)

I have the following problem, when defining and using a function, that's supposed to have an outside parameter xmin:

Input: A[x_] := Exp[-x/xmin]

Input: A[5]

Output: e-5/5min

What can I do about it? I do not really want to rename the parameter to xmin ;)

I have the following problem, when defining and using a function, that's supposed to have an outside parameter xmin:

A[x_] := Exp[-x/x<sub>min</sub>]
A[5]

(*e<sup>-5/5<sub>min</sub></sup>*)

What can I do about it? I do not really want to rename the parameter to xmin ;)

1
source | link

How to prevent function from substituting the part of the parameter name if it has a subscript?

I have the following problem, when defining and using a function, that's supposed to have an outside parameter xmin:

Input: A[x_] := Exp[-x/xmin]

Input: A[5]

Output: e-5/5min

What can I do about it? I do not really want to rename the parameter to xmin ;)