Page 1 sur 1

Greek letters for variable names

Publié : sam. févr. 12, 2022 7:00 pm
par XcasEngGuy
I can't find any information in the Xcas manual about using greek letters for variable names. I know that some are available, like sigma. Is there a way to use the letter Epsilon?

Matt

Re: Greek letters for variable names

Publié : dim. févr. 13, 2022 2:14 pm
par lukamar
"epsilon" and "Gamma" (uppercase gamma) are built-in function names, so they can't be used as symbols. If I'm not mistaken, all other greek symbols which are different from Latin letters (alpha, beta etc.) are available. If you want to use epsilon as a symbol you may use:

Code : Tout sélectionner

eps:=make_symbol("epsilon")
So "eps" will be printed as the greek letter.

Re: Greek letters for variable names

Publié : dim. févr. 13, 2022 11:22 pm
par XcasEngGuy
thanks! exactly what I needed

Matt

(edit) Oops, it didn't work. The initial command works, but when you use the variable it gets evaluated to 1E-12.

Re: Greek letters for variable names

Publié : lun. févr. 14, 2022 8:32 am
par parisse
You can still run eval(eps,1). But that's a little bit tricky...