From: ehm <eri...@gm...> - 2024-10-09 23:07:40
|
I would like to use the unicode character for hbar, but this happens... (%i2) M: matrix([a,b],[c,d]); [ a b ] (%o2) [ ] [ c d ] (%i3) 1/hbar * M; [ a b ] [ ---- ---- ] [ hbar hbar ] (%o3) [ ] [ c d ] [ ---- ---- ] [ hbar hbar ] Looks good, this is what I expect. But now... (%i4) hbar: unicode("latin small letter h with stroke"); (%o4) ħ (%i5) 1/hbar * M; [ a b ] [ ] [ c d ] (%o5) -------- ħ If I do this without unicode variables it works: (%i9) hbar: g; (%o9) g (%i10) 1/hbar * M; [ a b ] [ -- -- ] [ g g ] (%o10) [ ] [ c d ] [ -- -- ] [ g g ] Why is the unicode character not behaving as a normal symbol? Thanks, Eric |