Question: Why does this procedure definition work when I name it with a subscript containing "1" but not "I"?

Below is a simple demonstration of something that I am very confused about in another worksheet I am working on.

Basically, I have a function of x called psi_I and I want to define another function of x called psi_I,d which is just the derivative of psi_I.

In, the snippet below, this works if I use the variable names psi_1 and psi_1,d, but not if I replace the "1" with a "I" as I want to do.

In addition, I don't know why the output (6) is different from (7) or (8). All three are from the same command in Maple.

restart

`ψ__1` := proc (x) options operator, arrow; C*exp(a*x) end proc

proc (x) options operator, arrow; C*exp(a*x) end proc

(1)

`ψ__1,d` := unapply(diff(`ψ__1`(x), x), x)

proc (x) options operator, arrow; C*a*exp(a*x) end proc

(2)

`ψ__1,d`(x)

C*a*exp(a*x)

(3)

NULL

restart

`ψ__I` := proc (x) options operator, arrow; C*exp(a*x) end proc

proc (x) options operator, arrow; C*exp(a*x) end proc

(4)

`ψ__I,d` := unapply(diff(`#msub(mi("psi",fontstyle = "normal"),mi("1"))`(x), x), x)

D(psi__1)

(5)

`#msub(mi("psi",fontstyle = "normal"),mi("1,d"))`(x)

`psi__1,d`(x)

(6)

`#msub(mi("psi",fontstyle = "normal"),mi("I,d"))`(x)

(D(psi__1))(x)

(7)

`ψ__I,d`(x)

(D(psi__1))(x)

(8)

NULL

Download psi_subscript.mw

Please Wait...